1
0

autotool.patch 2.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856
  1. diff -Nur icecast-2.3.2.orig/aclocal.m4 icecast-2.3.2/aclocal.m4
  2. --- icecast-2.3.2.orig/aclocal.m4 2008-05-27 02:21:50.000000000 +0200
  3. +++ icecast-2.3.2/aclocal.m4 2010-02-18 21:27:36.308858757 +0100
  4. @@ -1,7 +1,7 @@
  5. -# generated automatically by aclocal 1.10 -*- Autoconf -*-
  6. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  7. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  8. -# 2005, 2006 Free Software Foundation, Inc.
  9. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  10. # This file is free software; the Free Software Foundation
  11. # gives unlimited permission to copy and/or distribute it,
  12. # with or without modifications, as long as this notice is preserved.
  13. @@ -11,6580 +11,15 @@
  14. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  15. # PARTICULAR PURPOSE.
  16. -m4_if(m4_PACKAGE_VERSION, [2.61],,
  17. -[m4_fatal([this file was generated for autoconf 2.61.
  18. -You have another version of autoconf. If you want to use that,
  19. -you should regenerate the build system entirely.], [63])])
  20. +m4_ifndef([AC_AUTOCONF_VERSION],
  21. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  22. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  23. +[m4_warning([this file was generated for autoconf 2.65.
  24. +You have another version of autoconf. It may work, but is not guaranteed to.
  25. +If you have problems, you may need to regenerate the build system entirely.
  26. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  27. -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  28. -
  29. -# serial 51 AC_PROG_LIBTOOL
  30. -
  31. -
  32. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  33. -# -----------------------------------------------------------
  34. -# If this macro is not defined by Autoconf, define it here.
  35. -m4_ifdef([AC_PROVIDE_IFELSE],
  36. - [],
  37. - [m4_define([AC_PROVIDE_IFELSE],
  38. - [m4_ifdef([AC_PROVIDE_$1],
  39. - [$2], [$3])])])
  40. -
  41. -
  42. -# AC_PROG_LIBTOOL
  43. -# ---------------
  44. -AC_DEFUN([AC_PROG_LIBTOOL],
  45. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  46. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  47. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  48. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  49. - [AC_LIBTOOL_CXX],
  50. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  51. - ])])
  52. -dnl And a similar setup for Fortran 77 support
  53. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  54. - [AC_LIBTOOL_F77],
  55. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  56. -])])
  57. -
  58. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  59. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  60. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  61. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  62. - [AC_LIBTOOL_GCJ],
  63. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  64. - [AC_LIBTOOL_GCJ],
  65. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  66. - [AC_LIBTOOL_GCJ],
  67. - [ifdef([AC_PROG_GCJ],
  68. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  69. - ifdef([A][M_PROG_GCJ],
  70. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  71. - ifdef([LT_AC_PROG_GCJ],
  72. - [define([LT_AC_PROG_GCJ],
  73. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  74. -])])# AC_PROG_LIBTOOL
  75. -
  76. -
  77. -# _AC_PROG_LIBTOOL
  78. -# ----------------
  79. -AC_DEFUN([_AC_PROG_LIBTOOL],
  80. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  81. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  82. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  83. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  84. -
  85. -# This can be used to rebuild libtool when needed
  86. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  87. -
  88. -# Always use our own libtool.
  89. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  90. -AC_SUBST(LIBTOOL)dnl
  91. -
  92. -# Prevent multiple expansion
  93. -define([AC_PROG_LIBTOOL], [])
  94. -])# _AC_PROG_LIBTOOL
  95. -
  96. -
  97. -# AC_LIBTOOL_SETUP
  98. -# ----------------
  99. -AC_DEFUN([AC_LIBTOOL_SETUP],
  100. -[AC_PREREQ(2.50)dnl
  101. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  102. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  103. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  104. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  105. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  106. -AC_REQUIRE([AC_PROG_CC])dnl
  107. -AC_REQUIRE([AC_PROG_LD])dnl
  108. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  109. -AC_REQUIRE([AC_PROG_NM])dnl
  110. -
  111. -AC_REQUIRE([AC_PROG_LN_S])dnl
  112. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  113. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  114. -AC_REQUIRE([AC_OBJEXT])dnl
  115. -AC_REQUIRE([AC_EXEEXT])dnl
  116. -dnl
  117. -
  118. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  119. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  120. -AC_LIBTOOL_OBJDIR
  121. -
  122. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  123. -_LT_AC_PROG_ECHO_BACKSLASH
  124. -
  125. -case $host_os in
  126. -aix3*)
  127. - # AIX sometimes has problems with the GCC collect2 program. For some
  128. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  129. - # vanish in a puff of smoke.
  130. - if test "X${COLLECT_NAMES+set}" != Xset; then
  131. - COLLECT_NAMES=
  132. - export COLLECT_NAMES
  133. - fi
  134. - ;;
  135. -esac
  136. -
  137. -# Sed substitution that helps us do robust quoting. It backslashifies
  138. -# metacharacters that are still active within double-quoted strings.
  139. -Xsed='sed -e 1s/^X//'
  140. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  141. -
  142. -# Same as above, but do not quote variable references.
  143. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  144. -
  145. -# Sed substitution to delay expansion of an escaped shell variable in a
  146. -# double_quote_subst'ed string.
  147. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  148. -
  149. -# Sed substitution to avoid accidental globbing in evaled expressions
  150. -no_glob_subst='s/\*/\\\*/g'
  151. -
  152. -# Constants:
  153. -rm="rm -f"
  154. -
  155. -# Global variables:
  156. -default_ofile=libtool
  157. -can_build_shared=yes
  158. -
  159. -# All known linkers require a `.a' archive for static linking (except MSVC,
  160. -# which needs '.lib').
  161. -libext=a
  162. -ltmain="$ac_aux_dir/ltmain.sh"
  163. -ofile="$default_ofile"
  164. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  165. -
  166. -AC_CHECK_TOOL(AR, ar, false)
  167. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  168. -AC_CHECK_TOOL(STRIP, strip, :)
  169. -
  170. -old_CC="$CC"
  171. -old_CFLAGS="$CFLAGS"
  172. -
  173. -# Set sane defaults for various variables
  174. -test -z "$AR" && AR=ar
  175. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  176. -test -z "$AS" && AS=as
  177. -test -z "$CC" && CC=cc
  178. -test -z "$LTCC" && LTCC=$CC
  179. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  180. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  181. -test -z "$LD" && LD=ld
  182. -test -z "$LN_S" && LN_S="ln -s"
  183. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  184. -test -z "$NM" && NM=nm
  185. -test -z "$SED" && SED=sed
  186. -test -z "$OBJDUMP" && OBJDUMP=objdump
  187. -test -z "$RANLIB" && RANLIB=:
  188. -test -z "$STRIP" && STRIP=:
  189. -test -z "$ac_objext" && ac_objext=o
  190. -
  191. -# Determine commands to create old-style static archives.
  192. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  193. -old_postinstall_cmds='chmod 644 $oldlib'
  194. -old_postuninstall_cmds=
  195. -
  196. -if test -n "$RANLIB"; then
  197. - case $host_os in
  198. - openbsd*)
  199. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  200. - ;;
  201. - *)
  202. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  203. - ;;
  204. - esac
  205. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  206. -fi
  207. -
  208. -_LT_CC_BASENAME([$compiler])
  209. -
  210. -# Only perform the check for file, if the check method requires it
  211. -case $deplibs_check_method in
  212. -file_magic*)
  213. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  214. - AC_PATH_MAGIC
  215. - fi
  216. - ;;
  217. -esac
  218. -
  219. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  220. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  221. -enable_win32_dll=yes, enable_win32_dll=no)
  222. -
  223. -AC_ARG_ENABLE([libtool-lock],
  224. - [AC_HELP_STRING([--disable-libtool-lock],
  225. - [avoid locking (might break parallel builds)])])
  226. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  227. -
  228. -AC_ARG_WITH([pic],
  229. - [AC_HELP_STRING([--with-pic],
  230. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  231. - [pic_mode="$withval"],
  232. - [pic_mode=default])
  233. -test -z "$pic_mode" && pic_mode=default
  234. -
  235. -# Use C for the default configuration in the libtool script
  236. -tagname=
  237. -AC_LIBTOOL_LANG_C_CONFIG
  238. -_LT_AC_TAGCONFIG
  239. -])# AC_LIBTOOL_SETUP
  240. -
  241. -
  242. -# _LT_AC_SYS_COMPILER
  243. -# -------------------
  244. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  245. -[AC_REQUIRE([AC_PROG_CC])dnl
  246. -
  247. -# If no C compiler was specified, use CC.
  248. -LTCC=${LTCC-"$CC"}
  249. -
  250. -# If no C compiler flags were specified, use CFLAGS.
  251. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  252. -
  253. -# Allow CC to be a program name with arguments.
  254. -compiler=$CC
  255. -])# _LT_AC_SYS_COMPILER
  256. -
  257. -
  258. -# _LT_CC_BASENAME(CC)
  259. -# -------------------
  260. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  261. -AC_DEFUN([_LT_CC_BASENAME],
  262. -[for cc_temp in $1""; do
  263. - case $cc_temp in
  264. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  265. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  266. - \-*) ;;
  267. - *) break;;
  268. - esac
  269. -done
  270. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  271. -])
  272. -
  273. -
  274. -# _LT_COMPILER_BOILERPLATE
  275. -# ------------------------
  276. -# Check for compiler boilerplate output or warnings with
  277. -# the simple compiler test code.
  278. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  279. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  280. -ac_outfile=conftest.$ac_objext
  281. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  282. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  283. -_lt_compiler_boilerplate=`cat conftest.err`
  284. -$rm conftest*
  285. -])# _LT_COMPILER_BOILERPLATE
  286. -
  287. -
  288. -# _LT_LINKER_BOILERPLATE
  289. -# ----------------------
  290. -# Check for linker boilerplate output or warnings with
  291. -# the simple link test code.
  292. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  293. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  294. -ac_outfile=conftest.$ac_objext
  295. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  296. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  297. -_lt_linker_boilerplate=`cat conftest.err`
  298. -$rm conftest*
  299. -])# _LT_LINKER_BOILERPLATE
  300. -
  301. -
  302. -# _LT_AC_SYS_LIBPATH_AIX
  303. -# ----------------------
  304. -# Links a minimal program and checks the executable
  305. -# for the system default hardcoded library path. In most cases,
  306. -# this is /usr/lib:/lib, but when the MPI compilers are used
  307. -# the location of the communication and MPI libs are included too.
  308. -# If we don't find anything, use the default library path according
  309. -# to the aix ld manual.
  310. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  311. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  312. -AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  313. -lt_aix_libpath_sed='
  314. - /Import File Strings/,/^$/ {
  315. - /^0/ {
  316. - s/^0 *\(.*\)$/\1/
  317. - p
  318. - }
  319. - }'
  320. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  321. -# Check for a 64-bit object if we didn't find anything.
  322. -if test -z "$aix_libpath"; then
  323. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  324. -fi],[])
  325. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  326. -])# _LT_AC_SYS_LIBPATH_AIX
  327. -
  328. -
  329. -# _LT_AC_SHELL_INIT(ARG)
  330. -# ----------------------
  331. -AC_DEFUN([_LT_AC_SHELL_INIT],
  332. -[ifdef([AC_DIVERSION_NOTICE],
  333. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  334. - [AC_DIVERT_PUSH(NOTICE)])
  335. -$1
  336. -AC_DIVERT_POP
  337. -])# _LT_AC_SHELL_INIT
  338. -
  339. -
  340. -# _LT_AC_PROG_ECHO_BACKSLASH
  341. -# --------------------------
  342. -# Add some code to the start of the generated configure script which
  343. -# will find an echo command which doesn't interpret backslashes.
  344. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  345. -[_LT_AC_SHELL_INIT([
  346. -# Check that we are running under the correct shell.
  347. -SHELL=${CONFIG_SHELL-/bin/sh}
  348. -
  349. -case X$ECHO in
  350. -X*--fallback-echo)
  351. - # Remove one level of quotation (which was required for Make).
  352. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  353. - ;;
  354. -esac
  355. -
  356. -echo=${ECHO-echo}
  357. -if test "X[$]1" = X--no-reexec; then
  358. - # Discard the --no-reexec flag, and continue.
  359. - shift
  360. -elif test "X[$]1" = X--fallback-echo; then
  361. - # Avoid inline document here, it may be left over
  362. - :
  363. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  364. - # Yippee, $echo works!
  365. - :
  366. -else
  367. - # Restart under the correct shell.
  368. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  369. -fi
  370. -
  371. -if test "X[$]1" = X--fallback-echo; then
  372. - # used as fallback echo
  373. - shift
  374. - cat <<EOF
  375. -[$]*
  376. -EOF
  377. - exit 0
  378. -fi
  379. -
  380. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  381. -# if CDPATH is set.
  382. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  383. -
  384. -if test -z "$ECHO"; then
  385. -if test "X${echo_test_string+set}" != Xset; then
  386. -# find a string as large as possible, as long as the shell can cope with it
  387. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  388. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  389. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  390. - echo_test_string=`eval $cmd` &&
  391. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  392. - then
  393. - break
  394. - fi
  395. - done
  396. -fi
  397. -
  398. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  399. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  400. - test "X$echo_testing_string" = "X$echo_test_string"; then
  401. - :
  402. -else
  403. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  404. - # backslashes. This makes it impossible to quote backslashes using
  405. - # echo "$something" | sed 's/\\/\\\\/g'
  406. - #
  407. - # So, first we look for a working echo in the user's PATH.
  408. -
  409. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  410. - for dir in $PATH /usr/ucb; do
  411. - IFS="$lt_save_ifs"
  412. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  413. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  414. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  415. - test "X$echo_testing_string" = "X$echo_test_string"; then
  416. - echo="$dir/echo"
  417. - break
  418. - fi
  419. - done
  420. - IFS="$lt_save_ifs"
  421. -
  422. - if test "X$echo" = Xecho; then
  423. - # We didn't find a better echo, so look for alternatives.
  424. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  425. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  426. - test "X$echo_testing_string" = "X$echo_test_string"; then
  427. - # This shell has a builtin print -r that does the trick.
  428. - echo='print -r'
  429. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  430. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  431. - # If we have ksh, try running configure again with it.
  432. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  433. - export ORIGINAL_CONFIG_SHELL
  434. - CONFIG_SHELL=/bin/ksh
  435. - export CONFIG_SHELL
  436. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  437. - else
  438. - # Try using printf.
  439. - echo='printf %s\n'
  440. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  441. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  442. - test "X$echo_testing_string" = "X$echo_test_string"; then
  443. - # Cool, printf works
  444. - :
  445. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  446. - test "X$echo_testing_string" = 'X\t' &&
  447. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  448. - test "X$echo_testing_string" = "X$echo_test_string"; then
  449. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  450. - export CONFIG_SHELL
  451. - SHELL="$CONFIG_SHELL"
  452. - export SHELL
  453. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  454. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  455. - test "X$echo_testing_string" = 'X\t' &&
  456. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  457. - test "X$echo_testing_string" = "X$echo_test_string"; then
  458. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  459. - else
  460. - # maybe with a smaller string...
  461. - prev=:
  462. -
  463. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  464. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  465. - then
  466. - break
  467. - fi
  468. - prev="$cmd"
  469. - done
  470. -
  471. - if test "$prev" != 'sed 50q "[$]0"'; then
  472. - echo_test_string=`eval $prev`
  473. - export echo_test_string
  474. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  475. - else
  476. - # Oops. We lost completely, so just stick with echo.
  477. - echo=echo
  478. - fi
  479. - fi
  480. - fi
  481. - fi
  482. -fi
  483. -fi
  484. -
  485. -# Copy echo and quote the copy suitably for passing to libtool from
  486. -# the Makefile, instead of quoting the original, which is used later.
  487. -ECHO=$echo
  488. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  489. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  490. -fi
  491. -
  492. -AC_SUBST(ECHO)
  493. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  494. -
  495. -
  496. -# _LT_AC_LOCK
  497. -# -----------
  498. -AC_DEFUN([_LT_AC_LOCK],
  499. -[AC_ARG_ENABLE([libtool-lock],
  500. - [AC_HELP_STRING([--disable-libtool-lock],
  501. - [avoid locking (might break parallel builds)])])
  502. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  503. -
  504. -# Some flags need to be propagated to the compiler or linker for good
  505. -# libtool support.
  506. -case $host in
  507. -ia64-*-hpux*)
  508. - # Find out which ABI we are using.
  509. - echo 'int i;' > conftest.$ac_ext
  510. - if AC_TRY_EVAL(ac_compile); then
  511. - case `/usr/bin/file conftest.$ac_objext` in
  512. - *ELF-32*)
  513. - HPUX_IA64_MODE="32"
  514. - ;;
  515. - *ELF-64*)
  516. - HPUX_IA64_MODE="64"
  517. - ;;
  518. - esac
  519. - fi
  520. - rm -rf conftest*
  521. - ;;
  522. -*-*-irix6*)
  523. - # Find out which ABI we are using.
  524. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  525. - if AC_TRY_EVAL(ac_compile); then
  526. - if test "$lt_cv_prog_gnu_ld" = yes; then
  527. - case `/usr/bin/file conftest.$ac_objext` in
  528. - *32-bit*)
  529. - LD="${LD-ld} -melf32bsmip"
  530. - ;;
  531. - *N32*)
  532. - LD="${LD-ld} -melf32bmipn32"
  533. - ;;
  534. - *64-bit*)
  535. - LD="${LD-ld} -melf64bmip"
  536. - ;;
  537. - esac
  538. - else
  539. - case `/usr/bin/file conftest.$ac_objext` in
  540. - *32-bit*)
  541. - LD="${LD-ld} -32"
  542. - ;;
  543. - *N32*)
  544. - LD="${LD-ld} -n32"
  545. - ;;
  546. - *64-bit*)
  547. - LD="${LD-ld} -64"
  548. - ;;
  549. - esac
  550. - fi
  551. - fi
  552. - rm -rf conftest*
  553. - ;;
  554. -
  555. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  556. -s390*-*linux*|sparc*-*linux*)
  557. - # Find out which ABI we are using.
  558. - echo 'int i;' > conftest.$ac_ext
  559. - if AC_TRY_EVAL(ac_compile); then
  560. - case `/usr/bin/file conftest.o` in
  561. - *32-bit*)
  562. - case $host in
  563. - x86_64-*kfreebsd*-gnu)
  564. - LD="${LD-ld} -m elf_i386_fbsd"
  565. - ;;
  566. - x86_64-*linux*)
  567. - LD="${LD-ld} -m elf_i386"
  568. - ;;
  569. - ppc64-*linux*|powerpc64-*linux*)
  570. - LD="${LD-ld} -m elf32ppclinux"
  571. - ;;
  572. - s390x-*linux*)
  573. - LD="${LD-ld} -m elf_s390"
  574. - ;;
  575. - sparc64-*linux*)
  576. - LD="${LD-ld} -m elf32_sparc"
  577. - ;;
  578. - esac
  579. - ;;
  580. - *64-bit*)
  581. - libsuff=64
  582. - case $host in
  583. - x86_64-*kfreebsd*-gnu)
  584. - LD="${LD-ld} -m elf_x86_64_fbsd"
  585. - ;;
  586. - x86_64-*linux*)
  587. - LD="${LD-ld} -m elf_x86_64"
  588. - ;;
  589. - ppc*-*linux*|powerpc*-*linux*)
  590. - LD="${LD-ld} -m elf64ppc"
  591. - ;;
  592. - s390*-*linux*)
  593. - LD="${LD-ld} -m elf64_s390"
  594. - ;;
  595. - sparc*-*linux*)
  596. - LD="${LD-ld} -m elf64_sparc"
  597. - ;;
  598. - esac
  599. - ;;
  600. - esac
  601. - fi
  602. - rm -rf conftest*
  603. - ;;
  604. -
  605. -*-*-sco3.2v5*)
  606. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  607. - SAVE_CFLAGS="$CFLAGS"
  608. - CFLAGS="$CFLAGS -belf"
  609. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  610. - [AC_LANG_PUSH(C)
  611. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  612. - AC_LANG_POP])
  613. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  614. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  615. - CFLAGS="$SAVE_CFLAGS"
  616. - fi
  617. - ;;
  618. -sparc*-*solaris*)
  619. - # Find out which ABI we are using.
  620. - echo 'int i;' > conftest.$ac_ext
  621. - if AC_TRY_EVAL(ac_compile); then
  622. - case `/usr/bin/file conftest.o` in
  623. - *64-bit*)
  624. - case $lt_cv_prog_gnu_ld in
  625. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  626. - *) LD="${LD-ld} -64" ;;
  627. - esac
  628. - ;;
  629. - esac
  630. - fi
  631. - rm -rf conftest*
  632. - ;;
  633. -
  634. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  635. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  636. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  637. - AC_CHECK_TOOL(AS, as, false)
  638. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  639. - ;;
  640. - ])
  641. -esac
  642. -
  643. -need_locks="$enable_libtool_lock"
  644. -
  645. -])# _LT_AC_LOCK
  646. -
  647. -
  648. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  649. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  650. -# ----------------------------------------------------------------
  651. -# Check whether the given compiler option works
  652. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  653. -[AC_REQUIRE([LT_AC_PROG_SED])
  654. -AC_CACHE_CHECK([$1], [$2],
  655. - [$2=no
  656. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  657. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  658. - lt_compiler_flag="$3"
  659. - # Insert the option either (1) after the last *FLAGS variable, or
  660. - # (2) before a word containing "conftest.", or (3) at the end.
  661. - # Note that $ac_compile itself does not contain backslashes and begins
  662. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  663. - # The option is referenced via a variable to avoid confusing sed.
  664. - lt_compile=`echo "$ac_compile" | $SED \
  665. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  666. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  667. - -e 's:$: $lt_compiler_flag:'`
  668. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  669. - (eval "$lt_compile" 2>conftest.err)
  670. - ac_status=$?
  671. - cat conftest.err >&AS_MESSAGE_LOG_FD
  672. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  673. - if (exit $ac_status) && test -s "$ac_outfile"; then
  674. - # The compiler can only warn and ignore the option if not recognized
  675. - # So say no if there are warnings other than the usual output.
  676. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  677. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  678. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  679. - $2=yes
  680. - fi
  681. - fi
  682. - $rm conftest*
  683. -])
  684. -
  685. -if test x"[$]$2" = xyes; then
  686. - ifelse([$5], , :, [$5])
  687. -else
  688. - ifelse([$6], , :, [$6])
  689. -fi
  690. -])# AC_LIBTOOL_COMPILER_OPTION
  691. -
  692. -
  693. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  694. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  695. -# ------------------------------------------------------------
  696. -# Check whether the given compiler option works
  697. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  698. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  699. -AC_CACHE_CHECK([$1], [$2],
  700. - [$2=no
  701. - save_LDFLAGS="$LDFLAGS"
  702. - LDFLAGS="$LDFLAGS $3"
  703. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  704. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  705. - # The linker can only warn and ignore the option if not recognized
  706. - # So say no if there are warnings
  707. - if test -s conftest.err; then
  708. - # Append any errors to the config.log.
  709. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  710. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  711. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  712. - if diff conftest.exp conftest.er2 >/dev/null; then
  713. - $2=yes
  714. - fi
  715. - else
  716. - $2=yes
  717. - fi
  718. - fi
  719. - $rm conftest*
  720. - LDFLAGS="$save_LDFLAGS"
  721. -])
  722. -
  723. -if test x"[$]$2" = xyes; then
  724. - ifelse([$4], , :, [$4])
  725. -else
  726. - ifelse([$5], , :, [$5])
  727. -fi
  728. -])# AC_LIBTOOL_LINKER_OPTION
  729. -
  730. -
  731. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  732. -# --------------------------
  733. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  734. -[# find the maximum length of command line arguments
  735. -AC_MSG_CHECKING([the maximum length of command line arguments])
  736. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  737. - i=0
  738. - teststring="ABCD"
  739. -
  740. - case $build_os in
  741. - msdosdjgpp*)
  742. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  743. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  744. - # during glob expansion). Even if it were fixed, the result of this
  745. - # check would be larger than it should be.
  746. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  747. - ;;
  748. -
  749. - gnu*)
  750. - # Under GNU Hurd, this test is not required because there is
  751. - # no limit to the length of command line arguments.
  752. - # Libtool will interpret -1 as no limit whatsoever
  753. - lt_cv_sys_max_cmd_len=-1;
  754. - ;;
  755. -
  756. - cygwin* | mingw*)
  757. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  758. - # about 5 minutes as the teststring grows exponentially.
  759. - # Worse, since 9x/ME are not pre-emptively multitasking,
  760. - # you end up with a "frozen" computer, even though with patience
  761. - # the test eventually succeeds (with a max line length of 256k).
  762. - # Instead, let's just punt: use the minimum linelength reported by
  763. - # all of the supported platforms: 8192 (on NT/2K/XP).
  764. - lt_cv_sys_max_cmd_len=8192;
  765. - ;;
  766. -
  767. - amigaos*)
  768. - # On AmigaOS with pdksh, this test takes hours, literally.
  769. - # So we just punt and use a minimum line length of 8192.
  770. - lt_cv_sys_max_cmd_len=8192;
  771. - ;;
  772. -
  773. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  774. - # This has been around since 386BSD, at least. Likely further.
  775. - if test -x /sbin/sysctl; then
  776. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  777. - elif test -x /usr/sbin/sysctl; then
  778. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  779. - else
  780. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  781. - fi
  782. - # And add a safety zone
  783. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  784. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  785. - ;;
  786. -
  787. - interix*)
  788. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  789. - lt_cv_sys_max_cmd_len=196608
  790. - ;;
  791. -
  792. - osf*)
  793. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  794. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  795. - # nice to cause kernel panics so lets avoid the loop below.
  796. - # First set a reasonable default.
  797. - lt_cv_sys_max_cmd_len=16384
  798. - #
  799. - if test -x /sbin/sysconfig; then
  800. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  801. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  802. - esac
  803. - fi
  804. - ;;
  805. - sco3.2v5*)
  806. - lt_cv_sys_max_cmd_len=102400
  807. - ;;
  808. - sysv5* | sco5v6* | sysv4.2uw2*)
  809. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  810. - if test -n "$kargmax"; then
  811. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  812. - else
  813. - lt_cv_sys_max_cmd_len=32768
  814. - fi
  815. - ;;
  816. - *)
  817. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  818. - if test -n "$lt_cv_sys_max_cmd_len"; then
  819. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  820. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  821. - else
  822. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  823. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  824. - = "XX$teststring") >/dev/null 2>&1 &&
  825. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  826. - lt_cv_sys_max_cmd_len=$new_result &&
  827. - test $i != 17 # 1/2 MB should be enough
  828. - do
  829. - i=`expr $i + 1`
  830. - teststring=$teststring$teststring
  831. - done
  832. - teststring=
  833. - # Add a significant safety factor because C++ compilers can tack on massive
  834. - # amounts of additional arguments before passing them to the linker.
  835. - # It appears as though 1/2 is a usable value.
  836. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  837. - fi
  838. - ;;
  839. - esac
  840. -])
  841. -if test -n $lt_cv_sys_max_cmd_len ; then
  842. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  843. -else
  844. - AC_MSG_RESULT(none)
  845. -fi
  846. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  847. -
  848. -
  849. -# _LT_AC_CHECK_DLFCN
  850. -# ------------------
  851. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  852. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  853. -])# _LT_AC_CHECK_DLFCN
  854. -
  855. -
  856. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  857. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  858. -# ---------------------------------------------------------------------
  859. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  860. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  861. -if test "$cross_compiling" = yes; then :
  862. - [$4]
  863. -else
  864. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  865. - lt_status=$lt_dlunknown
  866. - cat > conftest.$ac_ext <<EOF
  867. -[#line __oline__ "configure"
  868. -#include "confdefs.h"
  869. -
  870. -#if HAVE_DLFCN_H
  871. -#include <dlfcn.h>
  872. -#endif
  873. -
  874. -#include <stdio.h>
  875. -
  876. -#ifdef RTLD_GLOBAL
  877. -# define LT_DLGLOBAL RTLD_GLOBAL
  878. -#else
  879. -# ifdef DL_GLOBAL
  880. -# define LT_DLGLOBAL DL_GLOBAL
  881. -# else
  882. -# define LT_DLGLOBAL 0
  883. -# endif
  884. -#endif
  885. -
  886. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  887. - find out it does not work in some platform. */
  888. -#ifndef LT_DLLAZY_OR_NOW
  889. -# ifdef RTLD_LAZY
  890. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  891. -# else
  892. -# ifdef DL_LAZY
  893. -# define LT_DLLAZY_OR_NOW DL_LAZY
  894. -# else
  895. -# ifdef RTLD_NOW
  896. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  897. -# else
  898. -# ifdef DL_NOW
  899. -# define LT_DLLAZY_OR_NOW DL_NOW
  900. -# else
  901. -# define LT_DLLAZY_OR_NOW 0
  902. -# endif
  903. -# endif
  904. -# endif
  905. -# endif
  906. -#endif
  907. -
  908. -#ifdef __cplusplus
  909. -extern "C" void exit (int);
  910. -#endif
  911. -
  912. -void fnord() { int i=42;}
  913. -int main ()
  914. -{
  915. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  916. - int status = $lt_dlunknown;
  917. -
  918. - if (self)
  919. - {
  920. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  921. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  922. - /* dlclose (self); */
  923. - }
  924. - else
  925. - puts (dlerror ());
  926. -
  927. - exit (status);
  928. -}]
  929. -EOF
  930. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  931. - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  932. - lt_status=$?
  933. - case x$lt_status in
  934. - x$lt_dlno_uscore) $1 ;;
  935. - x$lt_dlneed_uscore) $2 ;;
  936. - x$lt_dlunknown|x*) $3 ;;
  937. - esac
  938. - else :
  939. - # compilation failed
  940. - $3
  941. - fi
  942. -fi
  943. -rm -fr conftest*
  944. -])# _LT_AC_TRY_DLOPEN_SELF
  945. -
  946. -
  947. -# AC_LIBTOOL_DLOPEN_SELF
  948. -# ----------------------
  949. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  950. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  951. -if test "x$enable_dlopen" != xyes; then
  952. - enable_dlopen=unknown
  953. - enable_dlopen_self=unknown
  954. - enable_dlopen_self_static=unknown
  955. -else
  956. - lt_cv_dlopen=no
  957. - lt_cv_dlopen_libs=
  958. -
  959. - case $host_os in
  960. - beos*)
  961. - lt_cv_dlopen="load_add_on"
  962. - lt_cv_dlopen_libs=
  963. - lt_cv_dlopen_self=yes
  964. - ;;
  965. -
  966. - mingw* | pw32*)
  967. - lt_cv_dlopen="LoadLibrary"
  968. - lt_cv_dlopen_libs=
  969. - ;;
  970. -
  971. - cygwin*)
  972. - lt_cv_dlopen="dlopen"
  973. - lt_cv_dlopen_libs=
  974. - ;;
  975. -
  976. - darwin*)
  977. - # if libdl is installed we need to link against it
  978. - AC_CHECK_LIB([dl], [dlopen],
  979. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  980. - lt_cv_dlopen="dyld"
  981. - lt_cv_dlopen_libs=
  982. - lt_cv_dlopen_self=yes
  983. - ])
  984. - ;;
  985. -
  986. - *)
  987. - AC_CHECK_FUNC([shl_load],
  988. - [lt_cv_dlopen="shl_load"],
  989. - [AC_CHECK_LIB([dld], [shl_load],
  990. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  991. - [AC_CHECK_FUNC([dlopen],
  992. - [lt_cv_dlopen="dlopen"],
  993. - [AC_CHECK_LIB([dl], [dlopen],
  994. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  995. - [AC_CHECK_LIB([svld], [dlopen],
  996. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  997. - [AC_CHECK_LIB([dld], [dld_link],
  998. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  999. - ])
  1000. - ])
  1001. - ])
  1002. - ])
  1003. - ])
  1004. - ;;
  1005. - esac
  1006. -
  1007. - if test "x$lt_cv_dlopen" != xno; then
  1008. - enable_dlopen=yes
  1009. - else
  1010. - enable_dlopen=no
  1011. - fi
  1012. -
  1013. - case $lt_cv_dlopen in
  1014. - dlopen)
  1015. - save_CPPFLAGS="$CPPFLAGS"
  1016. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1017. -
  1018. - save_LDFLAGS="$LDFLAGS"
  1019. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1020. -
  1021. - save_LIBS="$LIBS"
  1022. - LIBS="$lt_cv_dlopen_libs $LIBS"
  1023. -
  1024. - AC_CACHE_CHECK([whether a program can dlopen itself],
  1025. - lt_cv_dlopen_self, [dnl
  1026. - _LT_AC_TRY_DLOPEN_SELF(
  1027. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1028. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1029. - ])
  1030. -
  1031. - if test "x$lt_cv_dlopen_self" = xyes; then
  1032. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1033. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1034. - lt_cv_dlopen_self_static, [dnl
  1035. - _LT_AC_TRY_DLOPEN_SELF(
  1036. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1037. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1038. - ])
  1039. - fi
  1040. -
  1041. - CPPFLAGS="$save_CPPFLAGS"
  1042. - LDFLAGS="$save_LDFLAGS"
  1043. - LIBS="$save_LIBS"
  1044. - ;;
  1045. - esac
  1046. -
  1047. - case $lt_cv_dlopen_self in
  1048. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1049. - *) enable_dlopen_self=unknown ;;
  1050. - esac
  1051. -
  1052. - case $lt_cv_dlopen_self_static in
  1053. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1054. - *) enable_dlopen_self_static=unknown ;;
  1055. - esac
  1056. -fi
  1057. -])# AC_LIBTOOL_DLOPEN_SELF
  1058. -
  1059. -
  1060. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1061. -# ---------------------------------
  1062. -# Check to see if options -c and -o are simultaneously supported by compiler
  1063. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1064. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1065. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1066. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1067. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1068. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1069. - $rm -r conftest 2>/dev/null
  1070. - mkdir conftest
  1071. - cd conftest
  1072. - mkdir out
  1073. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1074. -
  1075. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  1076. - # Insert the option either (1) after the last *FLAGS variable, or
  1077. - # (2) before a word containing "conftest.", or (3) at the end.
  1078. - # Note that $ac_compile itself does not contain backslashes and begins
  1079. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1080. - lt_compile=`echo "$ac_compile" | $SED \
  1081. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1082. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1083. - -e 's:$: $lt_compiler_flag:'`
  1084. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1085. - (eval "$lt_compile" 2>out/conftest.err)
  1086. - ac_status=$?
  1087. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1088. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1089. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1090. - then
  1091. - # The compiler can only warn and ignore the option if not recognized
  1092. - # So say no if there are warnings
  1093. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1094. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1095. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1096. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1097. - fi
  1098. - fi
  1099. - chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1100. - $rm conftest*
  1101. - # SGI C++ compiler will create directory out/ii_files/ for
  1102. - # template instantiation
  1103. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1104. - $rm out/* && rmdir out
  1105. - cd ..
  1106. - rmdir conftest
  1107. - $rm conftest*
  1108. -])
  1109. -])# AC_LIBTOOL_PROG_CC_C_O
  1110. -
  1111. -
  1112. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1113. -# -----------------------------------------
  1114. -# Check to see if we can do hard links to lock some files if needed
  1115. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1116. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  1117. -
  1118. -hard_links="nottested"
  1119. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1120. - # do not overwrite the value of need_locks provided by the user
  1121. - AC_MSG_CHECKING([if we can lock with hard links])
  1122. - hard_links=yes
  1123. - $rm conftest*
  1124. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1125. - touch conftest.a
  1126. - ln conftest.a conftest.b 2>&5 || hard_links=no
  1127. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1128. - AC_MSG_RESULT([$hard_links])
  1129. - if test "$hard_links" = no; then
  1130. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1131. - need_locks=warn
  1132. - fi
  1133. -else
  1134. - need_locks=no
  1135. -fi
  1136. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1137. -
  1138. -
  1139. -# AC_LIBTOOL_OBJDIR
  1140. -# -----------------
  1141. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1142. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1143. -[rm -f .libs 2>/dev/null
  1144. -mkdir .libs 2>/dev/null
  1145. -if test -d .libs; then
  1146. - lt_cv_objdir=.libs
  1147. -else
  1148. - # MS-DOS does not allow filenames that begin with a dot.
  1149. - lt_cv_objdir=_libs
  1150. -fi
  1151. -rmdir .libs 2>/dev/null])
  1152. -objdir=$lt_cv_objdir
  1153. -])# AC_LIBTOOL_OBJDIR
  1154. -
  1155. -
  1156. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1157. -# ----------------------------------------------
  1158. -# Check hardcoding attributes.
  1159. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  1160. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  1161. -_LT_AC_TAGVAR(hardcode_action, $1)=
  1162. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1163. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  1164. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1165. -
  1166. - # We can hardcode non-existant directories.
  1167. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1168. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1169. - # have to relink, otherwise we might link with an installed library
  1170. - # when we should be linking with a yet-to-be-installed one
  1171. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1172. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  1173. - # Linking always hardcodes the temporary library directory.
  1174. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  1175. - else
  1176. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1177. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  1178. - fi
  1179. -else
  1180. - # We cannot hardcode anything, or else we can only hardcode existing
  1181. - # directories.
  1182. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  1183. -fi
  1184. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  1185. -
  1186. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  1187. - # Fast installation is not supported
  1188. - enable_fast_install=no
  1189. -elif test "$shlibpath_overrides_runpath" = yes ||
  1190. - test "$enable_shared" = no; then
  1191. - # Fast installation is not necessary
  1192. - enable_fast_install=needless
  1193. -fi
  1194. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  1195. -
  1196. -
  1197. -# AC_LIBTOOL_SYS_LIB_STRIP
  1198. -# ------------------------
  1199. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  1200. -[striplib=
  1201. -old_striplib=
  1202. -AC_MSG_CHECKING([whether stripping libraries is possible])
  1203. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  1204. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1205. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1206. - AC_MSG_RESULT([yes])
  1207. -else
  1208. -# FIXME - insert some real tests, host_os isn't really good enough
  1209. - case $host_os in
  1210. - darwin*)
  1211. - if test -n "$STRIP" ; then
  1212. - striplib="$STRIP -x"
  1213. - old_striplib="$STRIP -S"
  1214. - AC_MSG_RESULT([yes])
  1215. - else
  1216. - AC_MSG_RESULT([no])
  1217. -fi
  1218. - ;;
  1219. - *)
  1220. - AC_MSG_RESULT([no])
  1221. - ;;
  1222. - esac
  1223. -fi
  1224. -])# AC_LIBTOOL_SYS_LIB_STRIP
  1225. -
  1226. -
  1227. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1228. -# -----------------------------
  1229. -# PORTME Fill in your ld.so characteristics
  1230. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  1231. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1232. -AC_MSG_CHECKING([dynamic linker characteristics])
  1233. -library_names_spec=
  1234. -libname_spec='lib$name'
  1235. -soname_spec=
  1236. -shrext_cmds=".so"
  1237. -postinstall_cmds=
  1238. -postuninstall_cmds=
  1239. -finish_cmds=
  1240. -finish_eval=
  1241. -shlibpath_var=
  1242. -shlibpath_overrides_runpath=unknown
  1243. -version_type=none
  1244. -dynamic_linker="$host_os ld.so"
  1245. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1246. -m4_if($1,[],[
  1247. -if test "$GCC" = yes; then
  1248. - case $host_os in
  1249. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1250. - *) lt_awk_arg="/^libraries:/" ;;
  1251. - esac
  1252. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1253. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  1254. - # if the path contains ";" then we assume it to be the separator
  1255. - # otherwise default to the standard path separator (i.e. ":") - it is
  1256. - # assumed that no part of a normal pathname contains ";" but that should
  1257. - # okay in the real world where ";" in dirpaths is itself problematic.
  1258. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  1259. - else
  1260. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1261. - fi
  1262. - # Ok, now we have the path, separated by spaces, we can step through it
  1263. - # and add multilib dir if necessary.
  1264. - lt_tmp_lt_search_path_spec=
  1265. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1266. - for lt_sys_path in $lt_search_path_spec; do
  1267. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1268. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1269. - else
  1270. - test -d "$lt_sys_path" && \
  1271. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1272. - fi
  1273. - done
  1274. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  1275. -BEGIN {RS=" "; FS="/|\n";} {
  1276. - lt_foo="";
  1277. - lt_count=0;
  1278. - for (lt_i = NF; lt_i > 0; lt_i--) {
  1279. - if ($lt_i != "" && $lt_i != ".") {
  1280. - if ($lt_i == "..") {
  1281. - lt_count++;
  1282. - } else {
  1283. - if (lt_count == 0) {
  1284. - lt_foo="/" $lt_i lt_foo;
  1285. - } else {
  1286. - lt_count--;
  1287. - }
  1288. - }
  1289. - }
  1290. - }
  1291. - if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1292. - if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1293. -}'`
  1294. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  1295. -else
  1296. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1297. -fi])
  1298. -need_lib_prefix=unknown
  1299. -hardcode_into_libs=no
  1300. -
  1301. -# when you set need_version to no, make sure it does not cause -set_version
  1302. -# flags to be left without arguments
  1303. -need_version=unknown
  1304. -
  1305. -case $host_os in
  1306. -aix3*)
  1307. - version_type=linux
  1308. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1309. - shlibpath_var=LIBPATH
  1310. -
  1311. - # AIX 3 has no versioning support, so we append a major version to the name.
  1312. - soname_spec='${libname}${release}${shared_ext}$major'
  1313. - ;;
  1314. -
  1315. -aix4* | aix5*)
  1316. - version_type=linux
  1317. - need_lib_prefix=no
  1318. - need_version=no
  1319. - hardcode_into_libs=yes
  1320. - if test "$host_cpu" = ia64; then
  1321. - # AIX 5 supports IA64
  1322. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  1323. - shlibpath_var=LD_LIBRARY_PATH
  1324. - else
  1325. - # With GCC up to 2.95.x, collect2 would create an import file
  1326. - # for dependence libraries. The import file would start with
  1327. - # the line `#! .'. This would cause the generated library to
  1328. - # depend on `.', always an invalid library. This was fixed in
  1329. - # development snapshots of GCC prior to 3.0.
  1330. - case $host_os in
  1331. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  1332. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1333. - echo ' yes '
  1334. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  1335. - :
  1336. - else
  1337. - can_build_shared=no
  1338. - fi
  1339. - ;;
  1340. - esac
  1341. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  1342. - # soname into executable. Probably we can add versioning support to
  1343. - # collect2, so additional links can be useful in future.
  1344. - if test "$aix_use_runtimelinking" = yes; then
  1345. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  1346. - # instead of lib<name>.a to let people know that these are not
  1347. - # typical AIX shared libraries.
  1348. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1349. - else
  1350. - # We preserve .a as extension for shared libraries through AIX4.2
  1351. - # and later when we are not doing run time linking.
  1352. - library_names_spec='${libname}${release}.a $libname.a'
  1353. - soname_spec='${libname}${release}${shared_ext}$major'
  1354. - fi
  1355. - shlibpath_var=LIBPATH
  1356. - fi
  1357. - ;;
  1358. -
  1359. -amigaos*)
  1360. - library_names_spec='$libname.ixlibrary $libname.a'
  1361. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1362. - 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'
  1363. - ;;
  1364. -
  1365. -beos*)
  1366. - library_names_spec='${libname}${shared_ext}'
  1367. - dynamic_linker="$host_os ld.so"
  1368. - shlibpath_var=LIBRARY_PATH
  1369. - ;;
  1370. -
  1371. -bsdi[[45]]*)
  1372. - version_type=linux
  1373. - need_version=no
  1374. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1375. - soname_spec='${libname}${release}${shared_ext}$major'
  1376. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  1377. - shlibpath_var=LD_LIBRARY_PATH
  1378. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  1379. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  1380. - # the default ld.so.conf also contains /usr/contrib/lib and
  1381. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  1382. - # libtool to hard-code these into programs
  1383. - ;;
  1384. -
  1385. -cygwin* | mingw* | pw32*)
  1386. - version_type=windows
  1387. - shrext_cmds=".dll"
  1388. - need_version=no
  1389. - need_lib_prefix=no
  1390. -
  1391. - case $GCC,$host_os in
  1392. - yes,cygwin* | yes,mingw* | yes,pw32*)
  1393. - library_names_spec='$libname.dll.a'
  1394. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1395. - postinstall_cmds='base_file=`basename \${file}`~
  1396. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  1397. - dldir=$destdir/`dirname \$dlpath`~
  1398. - test -d \$dldir || mkdir -p \$dldir~
  1399. - $install_prog $dir/$dlname \$dldir/$dlname~
  1400. - chmod a+x \$dldir/$dlname'
  1401. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1402. - dlpath=$dir/\$dldll~
  1403. - $rm \$dlpath'
  1404. - shlibpath_overrides_runpath=yes
  1405. -
  1406. - case $host_os in
  1407. - cygwin*)
  1408. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1409. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1410. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1411. - ;;
  1412. - mingw*)
  1413. - # MinGW DLLs use traditional 'lib' prefix
  1414. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1415. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1416. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  1417. - # It is most probably a Windows format PATH printed by
  1418. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1419. - # path with ; separators, and with drive letters. We can handle the
  1420. - # drive letters (cygwin fileutils understands them), so leave them,
  1421. - # especially as we might pass files found there to a mingw objdump,
  1422. - # which wouldn't understand a cygwinified path. Ahh.
  1423. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1424. - else
  1425. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1426. - fi
  1427. - ;;
  1428. - pw32*)
  1429. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  1430. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1431. - ;;
  1432. - esac
  1433. - ;;
  1434. -
  1435. - *)
  1436. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  1437. - ;;
  1438. - esac
  1439. - dynamic_linker='Win32 ld.exe'
  1440. - # FIXME: first we should search . and the directory the executable is in
  1441. - shlibpath_var=PATH
  1442. - ;;
  1443. -
  1444. -darwin* | rhapsody*)
  1445. - dynamic_linker="$host_os dyld"
  1446. - version_type=darwin
  1447. - need_lib_prefix=no
  1448. - need_version=no
  1449. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  1450. - soname_spec='${libname}${release}${major}$shared_ext'
  1451. - shlibpath_overrides_runpath=yes
  1452. - shlibpath_var=DYLD_LIBRARY_PATH
  1453. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  1454. - m4_if([$1], [],[
  1455. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  1456. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  1457. - ;;
  1458. -
  1459. -dgux*)
  1460. - version_type=linux
  1461. - need_lib_prefix=no
  1462. - need_version=no
  1463. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  1464. - soname_spec='${libname}${release}${shared_ext}$major'
  1465. - shlibpath_var=LD_LIBRARY_PATH
  1466. - ;;
  1467. -
  1468. -freebsd1*)
  1469. - dynamic_linker=no
  1470. - ;;
  1471. -
  1472. -freebsd* | dragonfly*)
  1473. - # DragonFly does not have aout. When/if they implement a new
  1474. - # versioning mechanism, adjust this.
  1475. - if test -x /usr/bin/objformat; then
  1476. - objformat=`/usr/bin/objformat`
  1477. - else
  1478. - case $host_os in
  1479. - freebsd[[123]]*) objformat=aout ;;
  1480. - *) objformat=elf ;;
  1481. - esac
  1482. - fi
  1483. - version_type=freebsd-$objformat
  1484. - case $version_type in
  1485. - freebsd-elf*)
  1486. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1487. - need_version=no
  1488. - need_lib_prefix=no
  1489. - ;;
  1490. - freebsd-*)
  1491. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  1492. - need_version=yes
  1493. - ;;
  1494. - esac
  1495. - shlibpath_var=LD_LIBRARY_PATH
  1496. - case $host_os in
  1497. - freebsd2*)
  1498. - shlibpath_overrides_runpath=yes
  1499. - ;;
  1500. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  1501. - shlibpath_overrides_runpath=yes
  1502. - hardcode_into_libs=yes
  1503. - ;;
  1504. - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  1505. - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  1506. - shlibpath_overrides_runpath=no
  1507. - hardcode_into_libs=yes
  1508. - ;;
  1509. - *) # from 4.6 on, and DragonFly
  1510. - shlibpath_overrides_runpath=yes
  1511. - hardcode_into_libs=yes
  1512. - ;;
  1513. - esac
  1514. - ;;
  1515. -
  1516. -gnu*)
  1517. - version_type=linux
  1518. - need_lib_prefix=no
  1519. - need_version=no
  1520. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1521. - soname_spec='${libname}${release}${shared_ext}$major'
  1522. - shlibpath_var=LD_LIBRARY_PATH
  1523. - hardcode_into_libs=yes
  1524. - ;;
  1525. -
  1526. -hpux9* | hpux10* | hpux11*)
  1527. - # Give a soname corresponding to the major version so that dld.sl refuses to
  1528. - # link against other versions.
  1529. - version_type=sunos
  1530. - need_lib_prefix=no
  1531. - need_version=no
  1532. - case $host_cpu in
  1533. - ia64*)
  1534. - shrext_cmds='.so'
  1535. - hardcode_into_libs=yes
  1536. - dynamic_linker="$host_os dld.so"
  1537. - shlibpath_var=LD_LIBRARY_PATH
  1538. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1539. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1540. - soname_spec='${libname}${release}${shared_ext}$major'
  1541. - if test "X$HPUX_IA64_MODE" = X32; then
  1542. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  1543. - else
  1544. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  1545. - fi
  1546. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1547. - ;;
  1548. - hppa*64*)
  1549. - shrext_cmds='.sl'
  1550. - hardcode_into_libs=yes
  1551. - dynamic_linker="$host_os dld.sl"
  1552. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  1553. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1554. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1555. - soname_spec='${libname}${release}${shared_ext}$major'
  1556. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  1557. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1558. - ;;
  1559. - *)
  1560. - shrext_cmds='.sl'
  1561. - dynamic_linker="$host_os dld.sl"
  1562. - shlibpath_var=SHLIB_PATH
  1563. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  1564. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1565. - soname_spec='${libname}${release}${shared_ext}$major'
  1566. - ;;
  1567. - esac
  1568. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1569. - postinstall_cmds='chmod 555 $lib'
  1570. - ;;
  1571. -
  1572. -interix[[3-9]]*)
  1573. - version_type=linux
  1574. - need_lib_prefix=no
  1575. - need_version=no
  1576. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1577. - soname_spec='${libname}${release}${shared_ext}$major'
  1578. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  1579. - shlibpath_var=LD_LIBRARY_PATH
  1580. - shlibpath_overrides_runpath=no
  1581. - hardcode_into_libs=yes
  1582. - ;;
  1583. -
  1584. -irix5* | irix6* | nonstopux*)
  1585. - case $host_os in
  1586. - nonstopux*) version_type=nonstopux ;;
  1587. - *)
  1588. - if test "$lt_cv_prog_gnu_ld" = yes; then
  1589. - version_type=linux
  1590. - else
  1591. - version_type=irix
  1592. - fi ;;
  1593. - esac
  1594. - need_lib_prefix=no
  1595. - need_version=no
  1596. - soname_spec='${libname}${release}${shared_ext}$major'
  1597. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  1598. - case $host_os in
  1599. - irix5* | nonstopux*)
  1600. - libsuff= shlibsuff=
  1601. - ;;
  1602. - *)
  1603. - case $LD in # libtool.m4 will add one of these switches to LD
  1604. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  1605. - libsuff= shlibsuff= libmagic=32-bit;;
  1606. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  1607. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  1608. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  1609. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1610. - *) libsuff= shlibsuff= libmagic=never-match;;
  1611. - esac
  1612. - ;;
  1613. - esac
  1614. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  1615. - shlibpath_overrides_runpath=no
  1616. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1617. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1618. - hardcode_into_libs=yes
  1619. - ;;
  1620. -
  1621. -# No shared lib support for Linux oldld, aout, or coff.
  1622. -linux*oldld* | linux*aout* | linux*coff*)
  1623. - dynamic_linker=no
  1624. - ;;
  1625. -
  1626. -# This must be Linux ELF.
  1627. -linux* | k*bsd*-gnu)
  1628. - version_type=linux
  1629. - need_lib_prefix=no
  1630. - need_version=no
  1631. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1632. - soname_spec='${libname}${release}${shared_ext}$major'
  1633. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1634. - shlibpath_var=LD_LIBRARY_PATH
  1635. - shlibpath_overrides_runpath=no
  1636. - # This implies no fast_install, which is unacceptable.
  1637. - # Some rework will be needed to allow for fast_install
  1638. - # before this can be enabled.
  1639. - hardcode_into_libs=yes
  1640. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1641. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1642. -
  1643. - # Append ld.so.conf contents to the search path
  1644. - if test -f /etc/ld.so.conf; then
  1645. - 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' ' '`
  1646. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  1647. - fi
  1648. -
  1649. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  1650. - # powerpc, because MkLinux only supported shared libraries with the
  1651. - # GNU dynamic linker. Since this was broken with cross compilers,
  1652. - # most powerpc-linux boxes support dynamic linking these days and
  1653. - # people can always --disable-shared, the test was removed, and we
  1654. - # assume the GNU/Linux dynamic linker is in use.
  1655. - dynamic_linker='GNU/Linux ld.so'
  1656. - ;;
  1657. -
  1658. -netbsd*)
  1659. - version_type=sunos
  1660. - need_lib_prefix=no
  1661. - need_version=no
  1662. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1663. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1664. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1665. - dynamic_linker='NetBSD (a.out) ld.so'
  1666. - else
  1667. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1668. - soname_spec='${libname}${release}${shared_ext}$major'
  1669. - dynamic_linker='NetBSD ld.elf_so'
  1670. - fi
  1671. - shlibpath_var=LD_LIBRARY_PATH
  1672. - shlibpath_overrides_runpath=yes
  1673. - hardcode_into_libs=yes
  1674. - ;;
  1675. -
  1676. -newsos6)
  1677. - version_type=linux
  1678. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1679. - shlibpath_var=LD_LIBRARY_PATH
  1680. - shlibpath_overrides_runpath=yes
  1681. - ;;
  1682. -
  1683. -nto-qnx*)
  1684. - version_type=linux
  1685. - need_lib_prefix=no
  1686. - need_version=no
  1687. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1688. - soname_spec='${libname}${release}${shared_ext}$major'
  1689. - shlibpath_var=LD_LIBRARY_PATH
  1690. - shlibpath_overrides_runpath=yes
  1691. - ;;
  1692. -
  1693. -openbsd*)
  1694. - version_type=sunos
  1695. - sys_lib_dlsearch_path_spec="/usr/lib"
  1696. - need_lib_prefix=no
  1697. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  1698. - case $host_os in
  1699. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  1700. - *) need_version=no ;;
  1701. - esac
  1702. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1703. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1704. - shlibpath_var=LD_LIBRARY_PATH
  1705. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1706. - case $host_os in
  1707. - openbsd2.[[89]] | openbsd2.[[89]].*)
  1708. - shlibpath_overrides_runpath=no
  1709. - ;;
  1710. - *)
  1711. - shlibpath_overrides_runpath=yes
  1712. - ;;
  1713. - esac
  1714. - else
  1715. - shlibpath_overrides_runpath=yes
  1716. - fi
  1717. - ;;
  1718. -
  1719. -os2*)
  1720. - libname_spec='$name'
  1721. - shrext_cmds=".dll"
  1722. - need_lib_prefix=no
  1723. - library_names_spec='$libname${shared_ext} $libname.a'
  1724. - dynamic_linker='OS/2 ld.exe'
  1725. - shlibpath_var=LIBPATH
  1726. - ;;
  1727. -
  1728. -osf3* | osf4* | osf5*)
  1729. - version_type=osf
  1730. - need_lib_prefix=no
  1731. - need_version=no
  1732. - soname_spec='${libname}${release}${shared_ext}$major'
  1733. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1734. - shlibpath_var=LD_LIBRARY_PATH
  1735. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  1736. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1737. - ;;
  1738. -
  1739. -rdos*)
  1740. - dynamic_linker=no
  1741. - ;;
  1742. -
  1743. -solaris*)
  1744. - version_type=linux
  1745. - need_lib_prefix=no
  1746. - need_version=no
  1747. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1748. - soname_spec='${libname}${release}${shared_ext}$major'
  1749. - shlibpath_var=LD_LIBRARY_PATH
  1750. - shlibpath_overrides_runpath=yes
  1751. - hardcode_into_libs=yes
  1752. - # ldd complains unless libraries are executable
  1753. - postinstall_cmds='chmod +x $lib'
  1754. - ;;
  1755. -
  1756. -sunos4*)
  1757. - version_type=sunos
  1758. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1759. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  1760. - shlibpath_var=LD_LIBRARY_PATH
  1761. - shlibpath_overrides_runpath=yes
  1762. - if test "$with_gnu_ld" = yes; then
  1763. - need_lib_prefix=no
  1764. - fi
  1765. - need_version=yes
  1766. - ;;
  1767. -
  1768. -sysv4 | sysv4.3*)
  1769. - version_type=linux
  1770. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1771. - soname_spec='${libname}${release}${shared_ext}$major'
  1772. - shlibpath_var=LD_LIBRARY_PATH
  1773. - case $host_vendor in
  1774. - sni)
  1775. - shlibpath_overrides_runpath=no
  1776. - need_lib_prefix=no
  1777. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  1778. - runpath_var=LD_RUN_PATH
  1779. - ;;
  1780. - siemens)
  1781. - need_lib_prefix=no
  1782. - ;;
  1783. - motorola)
  1784. - need_lib_prefix=no
  1785. - need_version=no
  1786. - shlibpath_overrides_runpath=no
  1787. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  1788. - ;;
  1789. - esac
  1790. - ;;
  1791. -
  1792. -sysv4*MP*)
  1793. - if test -d /usr/nec ;then
  1794. - version_type=linux
  1795. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  1796. - soname_spec='$libname${shared_ext}.$major'
  1797. - shlibpath_var=LD_LIBRARY_PATH
  1798. - fi
  1799. - ;;
  1800. -
  1801. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1802. - version_type=freebsd-elf
  1803. - need_lib_prefix=no
  1804. - need_version=no
  1805. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1806. - soname_spec='${libname}${release}${shared_ext}$major'
  1807. - shlibpath_var=LD_LIBRARY_PATH
  1808. - hardcode_into_libs=yes
  1809. - if test "$with_gnu_ld" = yes; then
  1810. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  1811. - shlibpath_overrides_runpath=no
  1812. - else
  1813. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  1814. - shlibpath_overrides_runpath=yes
  1815. - case $host_os in
  1816. - sco3.2v5*)
  1817. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  1818. - ;;
  1819. - esac
  1820. - fi
  1821. - sys_lib_dlsearch_path_spec='/usr/lib'
  1822. - ;;
  1823. -
  1824. -uts4*)
  1825. - version_type=linux
  1826. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1827. - soname_spec='${libname}${release}${shared_ext}$major'
  1828. - shlibpath_var=LD_LIBRARY_PATH
  1829. - ;;
  1830. -
  1831. -*)
  1832. - dynamic_linker=no
  1833. - ;;
  1834. -esac
  1835. -AC_MSG_RESULT([$dynamic_linker])
  1836. -test "$dynamic_linker" = no && can_build_shared=no
  1837. -
  1838. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  1839. -if test "$GCC" = yes; then
  1840. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  1841. -fi
  1842. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1843. -
  1844. -
  1845. -# _LT_AC_TAGCONFIG
  1846. -# ----------------
  1847. -AC_DEFUN([_LT_AC_TAGCONFIG],
  1848. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1849. -AC_ARG_WITH([tags],
  1850. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  1851. - [include additional configurations @<:@automatic@:>@])],
  1852. - [tagnames="$withval"])
  1853. -
  1854. -if test -f "$ltmain" && test -n "$tagnames"; then
  1855. - if test ! -f "${ofile}"; then
  1856. - AC_MSG_WARN([output file `$ofile' does not exist])
  1857. - fi
  1858. -
  1859. - if test -z "$LTCC"; then
  1860. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  1861. - if test -z "$LTCC"; then
  1862. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  1863. - else
  1864. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  1865. - fi
  1866. - fi
  1867. - if test -z "$LTCFLAGS"; then
  1868. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  1869. - fi
  1870. -
  1871. - # Extract list of available tagged configurations in $ofile.
  1872. - # Note that this assumes the entire list is on one line.
  1873. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  1874. -
  1875. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1876. - for tagname in $tagnames; do
  1877. - IFS="$lt_save_ifs"
  1878. - # Check whether tagname contains only valid characters
  1879. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  1880. - "") ;;
  1881. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  1882. - ;;
  1883. - esac
  1884. -
  1885. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  1886. - then
  1887. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  1888. - fi
  1889. -
  1890. - # Update the list of available tags.
  1891. - if test -n "$tagname"; then
  1892. - echo appending configuration tag \"$tagname\" to $ofile
  1893. -
  1894. - case $tagname in
  1895. - CXX)
  1896. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  1897. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  1898. - (test "X$CXX" != "Xg++"))) ; then
  1899. - AC_LIBTOOL_LANG_CXX_CONFIG
  1900. - else
  1901. - tagname=""
  1902. - fi
  1903. - ;;
  1904. -
  1905. - F77)
  1906. - if test -n "$F77" && test "X$F77" != "Xno"; then
  1907. - AC_LIBTOOL_LANG_F77_CONFIG
  1908. - else
  1909. - tagname=""
  1910. - fi
  1911. - ;;
  1912. -
  1913. - GCJ)
  1914. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  1915. - AC_LIBTOOL_LANG_GCJ_CONFIG
  1916. - else
  1917. - tagname=""
  1918. - fi
  1919. - ;;
  1920. -
  1921. - RC)
  1922. - AC_LIBTOOL_LANG_RC_CONFIG
  1923. - ;;
  1924. -
  1925. - *)
  1926. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  1927. - ;;
  1928. - esac
  1929. -
  1930. - # Append the new tag name to the list of available tags.
  1931. - if test -n "$tagname" ; then
  1932. - available_tags="$available_tags $tagname"
  1933. - fi
  1934. - fi
  1935. - done
  1936. - IFS="$lt_save_ifs"
  1937. -
  1938. - # Now substitute the updated list of available tags.
  1939. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  1940. - mv "${ofile}T" "$ofile"
  1941. - chmod +x "$ofile"
  1942. - else
  1943. - rm -f "${ofile}T"
  1944. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  1945. - fi
  1946. -fi
  1947. -])# _LT_AC_TAGCONFIG
  1948. -
  1949. -
  1950. -# AC_LIBTOOL_DLOPEN
  1951. -# -----------------
  1952. -# enable checks for dlopen support
  1953. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  1954. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  1955. -])# AC_LIBTOOL_DLOPEN
  1956. -
  1957. -
  1958. -# AC_LIBTOOL_WIN32_DLL
  1959. -# --------------------
  1960. -# declare package support for building win32 DLLs
  1961. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  1962. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  1963. -])# AC_LIBTOOL_WIN32_DLL
  1964. -
  1965. -
  1966. -# AC_ENABLE_SHARED([DEFAULT])
  1967. -# ---------------------------
  1968. -# implement the --enable-shared flag
  1969. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1970. -AC_DEFUN([AC_ENABLE_SHARED],
  1971. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  1972. -AC_ARG_ENABLE([shared],
  1973. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  1974. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  1975. - [p=${PACKAGE-default}
  1976. - case $enableval in
  1977. - yes) enable_shared=yes ;;
  1978. - no) enable_shared=no ;;
  1979. - *)
  1980. - enable_shared=no
  1981. - # Look at the argument we got. We use all the common list separators.
  1982. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1983. - for pkg in $enableval; do
  1984. - IFS="$lt_save_ifs"
  1985. - if test "X$pkg" = "X$p"; then
  1986. - enable_shared=yes
  1987. - fi
  1988. - done
  1989. - IFS="$lt_save_ifs"
  1990. - ;;
  1991. - esac],
  1992. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  1993. -])# AC_ENABLE_SHARED
  1994. -
  1995. -
  1996. -# AC_DISABLE_SHARED
  1997. -# -----------------
  1998. -# set the default shared flag to --disable-shared
  1999. -AC_DEFUN([AC_DISABLE_SHARED],
  2000. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2001. -AC_ENABLE_SHARED(no)
  2002. -])# AC_DISABLE_SHARED
  2003. -
  2004. -
  2005. -# AC_ENABLE_STATIC([DEFAULT])
  2006. -# ---------------------------
  2007. -# implement the --enable-static flag
  2008. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2009. -AC_DEFUN([AC_ENABLE_STATIC],
  2010. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  2011. -AC_ARG_ENABLE([static],
  2012. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  2013. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  2014. - [p=${PACKAGE-default}
  2015. - case $enableval in
  2016. - yes) enable_static=yes ;;
  2017. - no) enable_static=no ;;
  2018. - *)
  2019. - enable_static=no
  2020. - # Look at the argument we got. We use all the common list separators.
  2021. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2022. - for pkg in $enableval; do
  2023. - IFS="$lt_save_ifs"
  2024. - if test "X$pkg" = "X$p"; then
  2025. - enable_static=yes
  2026. - fi
  2027. - done
  2028. - IFS="$lt_save_ifs"
  2029. - ;;
  2030. - esac],
  2031. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  2032. -])# AC_ENABLE_STATIC
  2033. -
  2034. -
  2035. -# AC_DISABLE_STATIC
  2036. -# -----------------
  2037. -# set the default static flag to --disable-static
  2038. -AC_DEFUN([AC_DISABLE_STATIC],
  2039. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2040. -AC_ENABLE_STATIC(no)
  2041. -])# AC_DISABLE_STATIC
  2042. -
  2043. -
  2044. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  2045. -# ---------------------------------
  2046. -# implement the --enable-fast-install flag
  2047. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2048. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  2049. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  2050. -AC_ARG_ENABLE([fast-install],
  2051. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  2052. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  2053. - [p=${PACKAGE-default}
  2054. - case $enableval in
  2055. - yes) enable_fast_install=yes ;;
  2056. - no) enable_fast_install=no ;;
  2057. - *)
  2058. - enable_fast_install=no
  2059. - # Look at the argument we got. We use all the common list separators.
  2060. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2061. - for pkg in $enableval; do
  2062. - IFS="$lt_save_ifs"
  2063. - if test "X$pkg" = "X$p"; then
  2064. - enable_fast_install=yes
  2065. - fi
  2066. - done
  2067. - IFS="$lt_save_ifs"
  2068. - ;;
  2069. - esac],
  2070. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  2071. -])# AC_ENABLE_FAST_INSTALL
  2072. -
  2073. -
  2074. -# AC_DISABLE_FAST_INSTALL
  2075. -# -----------------------
  2076. -# set the default to --disable-fast-install
  2077. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  2078. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2079. -AC_ENABLE_FAST_INSTALL(no)
  2080. -])# AC_DISABLE_FAST_INSTALL
  2081. -
  2082. -
  2083. -# AC_LIBTOOL_PICMODE([MODE])
  2084. -# --------------------------
  2085. -# implement the --with-pic flag
  2086. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2087. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  2088. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2089. -pic_mode=ifelse($#,1,$1,default)
  2090. -])# AC_LIBTOOL_PICMODE
  2091. -
  2092. -
  2093. -# AC_PROG_EGREP
  2094. -# -------------
  2095. -# This is predefined starting with Autoconf 2.54, so this conditional
  2096. -# definition can be removed once we require Autoconf 2.54 or later.
  2097. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  2098. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  2099. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2100. - then ac_cv_prog_egrep='grep -E'
  2101. - else ac_cv_prog_egrep='egrep'
  2102. - fi])
  2103. - EGREP=$ac_cv_prog_egrep
  2104. - AC_SUBST([EGREP])
  2105. -])])
  2106. -
  2107. -
  2108. -# AC_PATH_TOOL_PREFIX
  2109. -# -------------------
  2110. -# find a file program which can recognize shared library
  2111. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  2112. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2113. -AC_MSG_CHECKING([for $1])
  2114. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2115. -[case $MAGIC_CMD in
  2116. -[[\\/*] | ?:[\\/]*])
  2117. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2118. - ;;
  2119. -*)
  2120. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  2121. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2122. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  2123. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  2124. -dnl not every word. This closes a longstanding sh security hole.
  2125. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  2126. - for ac_dir in $ac_dummy; do
  2127. - IFS="$lt_save_ifs"
  2128. - test -z "$ac_dir" && ac_dir=.
  2129. - if test -f $ac_dir/$1; then
  2130. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2131. - if test -n "$file_magic_test_file"; then
  2132. - case $deplibs_check_method in
  2133. - "file_magic "*)
  2134. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2135. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2136. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2137. - $EGREP "$file_magic_regex" > /dev/null; then
  2138. - :
  2139. - else
  2140. - cat <<EOF 1>&2
  2141. -
  2142. -*** Warning: the command libtool uses to detect shared libraries,
  2143. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  2144. -*** The result is that libtool may fail to recognize shared libraries
  2145. -*** as such. This will affect the creation of libtool libraries that
  2146. -*** depend on shared libraries, but programs linked with such libtool
  2147. -*** libraries will work regardless of this problem. Nevertheless, you
  2148. -*** may want to report the problem to your system manager and/or to
  2149. -*** bug-libtool@gnu.org
  2150. -
  2151. -EOF
  2152. - fi ;;
  2153. - esac
  2154. - fi
  2155. - break
  2156. - fi
  2157. - done
  2158. - IFS="$lt_save_ifs"
  2159. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  2160. - ;;
  2161. -esac])
  2162. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2163. -if test -n "$MAGIC_CMD"; then
  2164. - AC_MSG_RESULT($MAGIC_CMD)
  2165. -else
  2166. - AC_MSG_RESULT(no)
  2167. -fi
  2168. -])# AC_PATH_TOOL_PREFIX
  2169. -
  2170. -
  2171. -# AC_PATH_MAGIC
  2172. -# -------------
  2173. -# find a file program which can recognize a shared library
  2174. -AC_DEFUN([AC_PATH_MAGIC],
  2175. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2176. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  2177. - if test -n "$ac_tool_prefix"; then
  2178. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2179. - else
  2180. - MAGIC_CMD=:
  2181. - fi
  2182. -fi
  2183. -])# AC_PATH_MAGIC
  2184. -
  2185. -
  2186. -# AC_PROG_LD
  2187. -# ----------
  2188. -# find the pathname to the GNU or non-GNU linker
  2189. -AC_DEFUN([AC_PROG_LD],
  2190. -[AC_ARG_WITH([gnu-ld],
  2191. - [AC_HELP_STRING([--with-gnu-ld],
  2192. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2193. - [test "$withval" = no || with_gnu_ld=yes],
  2194. - [with_gnu_ld=no])
  2195. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  2196. -AC_REQUIRE([AC_PROG_CC])dnl
  2197. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2198. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2199. -ac_prog=ld
  2200. -if test "$GCC" = yes; then
  2201. - # Check if gcc -print-prog-name=ld gives a path.
  2202. - AC_MSG_CHECKING([for ld used by $CC])
  2203. - case $host in
  2204. - *-*-mingw*)
  2205. - # gcc leaves a trailing carriage return which upsets mingw
  2206. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2207. - *)
  2208. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2209. - esac
  2210. - case $ac_prog in
  2211. - # Accept absolute paths.
  2212. - [[\\/]]* | ?:[[\\/]]*)
  2213. - re_direlt='/[[^/]][[^/]]*/\.\./'
  2214. - # Canonicalize the pathname of ld
  2215. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2216. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2217. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2218. - done
  2219. - test -z "$LD" && LD="$ac_prog"
  2220. - ;;
  2221. - "")
  2222. - # If it fails, then pretend we aren't using GCC.
  2223. - ac_prog=ld
  2224. - ;;
  2225. - *)
  2226. - # If it is relative, then search for the first ld in PATH.
  2227. - with_gnu_ld=unknown
  2228. - ;;
  2229. - esac
  2230. -elif test "$with_gnu_ld" = yes; then
  2231. - AC_MSG_CHECKING([for GNU ld])
  2232. -else
  2233. - AC_MSG_CHECKING([for non-GNU ld])
  2234. -fi
  2235. -AC_CACHE_VAL(lt_cv_path_LD,
  2236. -[if test -z "$LD"; then
  2237. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2238. - for ac_dir in $PATH; do
  2239. - IFS="$lt_save_ifs"
  2240. - test -z "$ac_dir" && ac_dir=.
  2241. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2242. - lt_cv_path_LD="$ac_dir/$ac_prog"
  2243. - # Check to see if the program is GNU ld. I'd rather use --version,
  2244. - # but apparently some variants of GNU ld only accept -v.
  2245. - # Break only if it was the GNU/non-GNU ld that we prefer.
  2246. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2247. - *GNU* | *'with BFD'*)
  2248. - test "$with_gnu_ld" != no && break
  2249. - ;;
  2250. - *)
  2251. - test "$with_gnu_ld" != yes && break
  2252. - ;;
  2253. - esac
  2254. - fi
  2255. - done
  2256. - IFS="$lt_save_ifs"
  2257. -else
  2258. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2259. -fi])
  2260. -LD="$lt_cv_path_LD"
  2261. -if test -n "$LD"; then
  2262. - AC_MSG_RESULT($LD)
  2263. -else
  2264. - AC_MSG_RESULT(no)
  2265. -fi
  2266. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2267. -AC_PROG_LD_GNU
  2268. -])# AC_PROG_LD
  2269. -
  2270. -
  2271. -# AC_PROG_LD_GNU
  2272. -# --------------
  2273. -AC_DEFUN([AC_PROG_LD_GNU],
  2274. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2275. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2276. -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2277. -case `$LD -v 2>&1 </dev/null` in
  2278. -*GNU* | *'with BFD'*)
  2279. - lt_cv_prog_gnu_ld=yes
  2280. - ;;
  2281. -*)
  2282. - lt_cv_prog_gnu_ld=no
  2283. - ;;
  2284. -esac])
  2285. -with_gnu_ld=$lt_cv_prog_gnu_ld
  2286. -])# AC_PROG_LD_GNU
  2287. -
  2288. -
  2289. -# AC_PROG_LD_RELOAD_FLAG
  2290. -# ----------------------
  2291. -# find reload flag for linker
  2292. -# -- PORTME Some linkers may need a different reload flag.
  2293. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  2294. -[AC_CACHE_CHECK([for $LD option to reload object files],
  2295. - lt_cv_ld_reload_flag,
  2296. - [lt_cv_ld_reload_flag='-r'])
  2297. -reload_flag=$lt_cv_ld_reload_flag
  2298. -case $reload_flag in
  2299. -"" | " "*) ;;
  2300. -*) reload_flag=" $reload_flag" ;;
  2301. -esac
  2302. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2303. -case $host_os in
  2304. - darwin*)
  2305. - if test "$GCC" = yes; then
  2306. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2307. - else
  2308. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2309. - fi
  2310. - ;;
  2311. -esac
  2312. -])# AC_PROG_LD_RELOAD_FLAG
  2313. -
  2314. -
  2315. -# AC_DEPLIBS_CHECK_METHOD
  2316. -# -----------------------
  2317. -# how to check for library dependencies
  2318. -# -- PORTME fill in with the dynamic library characteristics
  2319. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  2320. -[AC_CACHE_CHECK([how to recognize dependent libraries],
  2321. -lt_cv_deplibs_check_method,
  2322. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  2323. -lt_cv_file_magic_test_file=
  2324. -lt_cv_deplibs_check_method='unknown'
  2325. -# Need to set the preceding variable on all platforms that support
  2326. -# interlibrary dependencies.
  2327. -# 'none' -- dependencies not supported.
  2328. -# `unknown' -- same as none, but documents that we really don't know.
  2329. -# 'pass_all' -- all dependencies passed with no checks.
  2330. -# 'test_compile' -- check by making test program.
  2331. -# 'file_magic [[regex]]' -- check by looking for files in library path
  2332. -# which responds to the $file_magic_cmd with a given extended regex.
  2333. -# If you have `file' or equivalent on your system and you're not sure
  2334. -# whether `pass_all' will *always* work, you probably want this one.
  2335. -
  2336. -case $host_os in
  2337. -aix4* | aix5*)
  2338. - lt_cv_deplibs_check_method=pass_all
  2339. - ;;
  2340. -
  2341. -beos*)
  2342. - lt_cv_deplibs_check_method=pass_all
  2343. - ;;
  2344. -
  2345. -bsdi[[45]]*)
  2346. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2347. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  2348. - lt_cv_file_magic_test_file=/shlib/libc.so
  2349. - ;;
  2350. -
  2351. -cygwin*)
  2352. - # func_win32_libid is a shell function defined in ltmain.sh
  2353. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2354. - lt_cv_file_magic_cmd='func_win32_libid'
  2355. - ;;
  2356. -
  2357. -mingw* | pw32*)
  2358. - # Base MSYS/MinGW do not provide the 'file' command needed by
  2359. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2360. - # unless we find 'file', for example because we are cross-compiling.
  2361. - if ( file / ) >/dev/null 2>&1; then
  2362. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2363. - lt_cv_file_magic_cmd='func_win32_libid'
  2364. - else
  2365. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2366. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  2367. - fi
  2368. - ;;
  2369. -
  2370. -darwin* | rhapsody*)
  2371. - lt_cv_deplibs_check_method=pass_all
  2372. - ;;
  2373. -
  2374. -freebsd* | dragonfly*)
  2375. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2376. - case $host_cpu in
  2377. - i*86 )
  2378. - # Not sure whether the presence of OpenBSD here was a mistake.
  2379. - # Let's accept both of them until this is cleared up.
  2380. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2381. - lt_cv_file_magic_cmd=/usr/bin/file
  2382. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2383. - ;;
  2384. - esac
  2385. - else
  2386. - lt_cv_deplibs_check_method=pass_all
  2387. - fi
  2388. - ;;
  2389. -
  2390. -gnu*)
  2391. - lt_cv_deplibs_check_method=pass_all
  2392. - ;;
  2393. -
  2394. -hpux10.20* | hpux11*)
  2395. - lt_cv_file_magic_cmd=/usr/bin/file
  2396. - case $host_cpu in
  2397. - ia64*)
  2398. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2399. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2400. - ;;
  2401. - hppa*64*)
  2402. - [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]']
  2403. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2404. - ;;
  2405. - *)
  2406. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  2407. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2408. - ;;
  2409. - esac
  2410. - ;;
  2411. -
  2412. -interix[[3-9]]*)
  2413. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2414. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2415. - ;;
  2416. -
  2417. -irix5* | irix6* | nonstopux*)
  2418. - case $LD in
  2419. - *-32|*"-32 ") libmagic=32-bit;;
  2420. - *-n32|*"-n32 ") libmagic=N32;;
  2421. - *-64|*"-64 ") libmagic=64-bit;;
  2422. - *) libmagic=never-match;;
  2423. - esac
  2424. - lt_cv_deplibs_check_method=pass_all
  2425. - ;;
  2426. -
  2427. -# This must be Linux ELF.
  2428. -linux* | k*bsd*-gnu)
  2429. - lt_cv_deplibs_check_method=pass_all
  2430. - ;;
  2431. -
  2432. -netbsd*)
  2433. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2434. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2435. - else
  2436. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2437. - fi
  2438. - ;;
  2439. -
  2440. -newos6*)
  2441. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2442. - lt_cv_file_magic_cmd=/usr/bin/file
  2443. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2444. - ;;
  2445. -
  2446. -nto-qnx*)
  2447. - lt_cv_deplibs_check_method=unknown
  2448. - ;;
  2449. -
  2450. -openbsd*)
  2451. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2452. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2453. - else
  2454. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2455. - fi
  2456. - ;;
  2457. -
  2458. -osf3* | osf4* | osf5*)
  2459. - lt_cv_deplibs_check_method=pass_all
  2460. - ;;
  2461. -
  2462. -rdos*)
  2463. - lt_cv_deplibs_check_method=pass_all
  2464. - ;;
  2465. -
  2466. -solaris*)
  2467. - lt_cv_deplibs_check_method=pass_all
  2468. - ;;
  2469. -
  2470. -sysv4 | sysv4.3*)
  2471. - case $host_vendor in
  2472. - motorola)
  2473. - 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]]'
  2474. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2475. - ;;
  2476. - ncr)
  2477. - lt_cv_deplibs_check_method=pass_all
  2478. - ;;
  2479. - sequent)
  2480. - lt_cv_file_magic_cmd='/bin/file'
  2481. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  2482. - ;;
  2483. - sni)
  2484. - lt_cv_file_magic_cmd='/bin/file'
  2485. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  2486. - lt_cv_file_magic_test_file=/lib/libc.so
  2487. - ;;
  2488. - siemens)
  2489. - lt_cv_deplibs_check_method=pass_all
  2490. - ;;
  2491. - pc)
  2492. - lt_cv_deplibs_check_method=pass_all
  2493. - ;;
  2494. - esac
  2495. - ;;
  2496. -
  2497. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2498. - lt_cv_deplibs_check_method=pass_all
  2499. - ;;
  2500. -esac
  2501. -])
  2502. -file_magic_cmd=$lt_cv_file_magic_cmd
  2503. -deplibs_check_method=$lt_cv_deplibs_check_method
  2504. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2505. -])# AC_DEPLIBS_CHECK_METHOD
  2506. -
  2507. -
  2508. -# AC_PROG_NM
  2509. -# ----------
  2510. -# find the pathname to a BSD-compatible name lister
  2511. -AC_DEFUN([AC_PROG_NM],
  2512. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  2513. -[if test -n "$NM"; then
  2514. - # Let the user override the test.
  2515. - lt_cv_path_NM="$NM"
  2516. -else
  2517. - lt_nm_to_check="${ac_tool_prefix}nm"
  2518. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  2519. - lt_nm_to_check="$lt_nm_to_check nm"
  2520. - fi
  2521. - for lt_tmp_nm in $lt_nm_to_check; do
  2522. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2523. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  2524. - IFS="$lt_save_ifs"
  2525. - test -z "$ac_dir" && ac_dir=.
  2526. - tmp_nm="$ac_dir/$lt_tmp_nm"
  2527. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2528. - # Check to see if the nm accepts a BSD-compat flag.
  2529. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2530. - # nm: unknown option "B" ignored
  2531. - # Tru64's nm complains that /dev/null is an invalid object file
  2532. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2533. - */dev/null* | *'Invalid file or object type'*)
  2534. - lt_cv_path_NM="$tmp_nm -B"
  2535. - break
  2536. - ;;
  2537. - *)
  2538. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2539. - */dev/null*)
  2540. - lt_cv_path_NM="$tmp_nm -p"
  2541. - break
  2542. - ;;
  2543. - *)
  2544. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2545. - continue # so that we can try to find one that supports BSD flags
  2546. - ;;
  2547. - esac
  2548. - ;;
  2549. - esac
  2550. - fi
  2551. - done
  2552. - IFS="$lt_save_ifs"
  2553. - done
  2554. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2555. -fi])
  2556. -NM="$lt_cv_path_NM"
  2557. -])# AC_PROG_NM
  2558. -
  2559. -
  2560. -# AC_CHECK_LIBM
  2561. -# -------------
  2562. -# check for math library
  2563. -AC_DEFUN([AC_CHECK_LIBM],
  2564. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2565. -LIBM=
  2566. -case $host in
  2567. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  2568. - # These system don't have libm, or don't need it
  2569. - ;;
  2570. -*-ncr-sysv4.3*)
  2571. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  2572. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  2573. - ;;
  2574. -*)
  2575. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  2576. - ;;
  2577. -esac
  2578. -])# AC_CHECK_LIBM
  2579. -
  2580. -
  2581. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  2582. -# -----------------------------------
  2583. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  2584. -# LTDLINCL to the include flags for the libltdl header and adds
  2585. -# --enable-ltdl-convenience to the configure arguments. Note that
  2586. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  2587. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  2588. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  2589. -# (note the single quotes!). If your package is not flat and you're not
  2590. -# using automake, define top_builddir and top_srcdir appropriately in
  2591. -# the Makefiles.
  2592. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  2593. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2594. - case $enable_ltdl_convenience in
  2595. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  2596. - "") enable_ltdl_convenience=yes
  2597. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  2598. - esac
  2599. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  2600. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2601. - # For backwards non-gettext consistent compatibility...
  2602. - INCLTDL="$LTDLINCL"
  2603. -])# AC_LIBLTDL_CONVENIENCE
  2604. -
  2605. -
  2606. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  2607. -# -----------------------------------
  2608. -# sets LIBLTDL to the link flags for the libltdl installable library and
  2609. -# LTDLINCL to the include flags for the libltdl header and adds
  2610. -# --enable-ltdl-install to the configure arguments. Note that
  2611. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  2612. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  2613. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  2614. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  2615. -# flat and you're not using automake, define top_builddir and top_srcdir
  2616. -# appropriately in the Makefiles.
  2617. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  2618. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  2619. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2620. - AC_CHECK_LIB(ltdl, lt_dlinit,
  2621. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  2622. - [if test x"$enable_ltdl_install" = xno; then
  2623. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  2624. - else
  2625. - enable_ltdl_install=yes
  2626. - fi
  2627. - ])
  2628. - if test x"$enable_ltdl_install" = x"yes"; then
  2629. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  2630. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  2631. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2632. - else
  2633. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  2634. - LIBLTDL="-lltdl"
  2635. - LTDLINCL=
  2636. - fi
  2637. - # For backwards non-gettext consistent compatibility...
  2638. - INCLTDL="$LTDLINCL"
  2639. -])# AC_LIBLTDL_INSTALLABLE
  2640. -
  2641. -
  2642. -# AC_LIBTOOL_CXX
  2643. -# --------------
  2644. -# enable support for C++ libraries
  2645. -AC_DEFUN([AC_LIBTOOL_CXX],
  2646. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  2647. -])# AC_LIBTOOL_CXX
  2648. -
  2649. -
  2650. -# _LT_AC_LANG_CXX
  2651. -# ---------------
  2652. -AC_DEFUN([_LT_AC_LANG_CXX],
  2653. -[AC_REQUIRE([AC_PROG_CXX])
  2654. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  2655. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  2656. -])# _LT_AC_LANG_CXX
  2657. -
  2658. -# _LT_AC_PROG_CXXCPP
  2659. -# ------------------
  2660. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  2661. -[
  2662. -AC_REQUIRE([AC_PROG_CXX])
  2663. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  2664. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  2665. - (test "X$CXX" != "Xg++"))) ; then
  2666. - AC_PROG_CXXCPP
  2667. -fi
  2668. -])# _LT_AC_PROG_CXXCPP
  2669. -
  2670. -# AC_LIBTOOL_F77
  2671. -# --------------
  2672. -# enable support for Fortran 77 libraries
  2673. -AC_DEFUN([AC_LIBTOOL_F77],
  2674. -[AC_REQUIRE([_LT_AC_LANG_F77])
  2675. -])# AC_LIBTOOL_F77
  2676. -
  2677. -
  2678. -# _LT_AC_LANG_F77
  2679. -# ---------------
  2680. -AC_DEFUN([_LT_AC_LANG_F77],
  2681. -[AC_REQUIRE([AC_PROG_F77])
  2682. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  2683. -])# _LT_AC_LANG_F77
  2684. -
  2685. -
  2686. -# AC_LIBTOOL_GCJ
  2687. -# --------------
  2688. -# enable support for GCJ libraries
  2689. -AC_DEFUN([AC_LIBTOOL_GCJ],
  2690. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  2691. -])# AC_LIBTOOL_GCJ
  2692. -
  2693. -
  2694. -# _LT_AC_LANG_GCJ
  2695. -# ---------------
  2696. -AC_DEFUN([_LT_AC_LANG_GCJ],
  2697. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  2698. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  2699. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  2700. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  2701. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  2702. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  2703. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  2704. -])# _LT_AC_LANG_GCJ
  2705. -
  2706. -
  2707. -# AC_LIBTOOL_RC
  2708. -# -------------
  2709. -# enable support for Windows resource files
  2710. -AC_DEFUN([AC_LIBTOOL_RC],
  2711. -[AC_REQUIRE([LT_AC_PROG_RC])
  2712. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  2713. -])# AC_LIBTOOL_RC
  2714. -
  2715. -
  2716. -# AC_LIBTOOL_LANG_C_CONFIG
  2717. -# ------------------------
  2718. -# Ensure that the configuration vars for the C compiler are
  2719. -# suitably defined. Those variables are subsequently used by
  2720. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2721. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  2722. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  2723. -[lt_save_CC="$CC"
  2724. -AC_LANG_PUSH(C)
  2725. -
  2726. -# Source file extension for C test sources.
  2727. -ac_ext=c
  2728. -
  2729. -# Object file extension for compiled C test sources.
  2730. -objext=o
  2731. -_LT_AC_TAGVAR(objext, $1)=$objext
  2732. -
  2733. -# Code to be used in simple compile tests
  2734. -lt_simple_compile_test_code="int some_variable = 0;"
  2735. -
  2736. -# Code to be used in simple link tests
  2737. -lt_simple_link_test_code='int main(){return(0);}'
  2738. -
  2739. -_LT_AC_SYS_COMPILER
  2740. -
  2741. -# save warnings/boilerplate of simple test code
  2742. -_LT_COMPILER_BOILERPLATE
  2743. -_LT_LINKER_BOILERPLATE
  2744. -
  2745. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  2746. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  2747. -AC_LIBTOOL_PROG_CC_C_O($1)
  2748. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  2749. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  2750. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  2751. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  2752. -AC_LIBTOOL_SYS_LIB_STRIP
  2753. -AC_LIBTOOL_DLOPEN_SELF
  2754. -
  2755. -# Report which library types will actually be built
  2756. -AC_MSG_CHECKING([if libtool supports shared libraries])
  2757. -AC_MSG_RESULT([$can_build_shared])
  2758. -
  2759. -AC_MSG_CHECKING([whether to build shared libraries])
  2760. -test "$can_build_shared" = "no" && enable_shared=no
  2761. -
  2762. -# On AIX, shared libraries and static libraries use the same namespace, and
  2763. -# are all built from PIC.
  2764. -case $host_os in
  2765. -aix3*)
  2766. - test "$enable_shared" = yes && enable_static=no
  2767. - if test -n "$RANLIB"; then
  2768. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  2769. - postinstall_cmds='$RANLIB $lib'
  2770. - fi
  2771. - ;;
  2772. -
  2773. -aix4* | aix5*)
  2774. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  2775. - test "$enable_shared" = yes && enable_static=no
  2776. - fi
  2777. - ;;
  2778. -esac
  2779. -AC_MSG_RESULT([$enable_shared])
  2780. -
  2781. -AC_MSG_CHECKING([whether to build static libraries])
  2782. -# Make sure either enable_shared or enable_static is yes.
  2783. -test "$enable_shared" = yes || enable_static=yes
  2784. -AC_MSG_RESULT([$enable_static])
  2785. -
  2786. -AC_LIBTOOL_CONFIG($1)
  2787. -
  2788. -AC_LANG_POP
  2789. -CC="$lt_save_CC"
  2790. -])# AC_LIBTOOL_LANG_C_CONFIG
  2791. -
  2792. -
  2793. -# AC_LIBTOOL_LANG_CXX_CONFIG
  2794. -# --------------------------
  2795. -# Ensure that the configuration vars for the C compiler are
  2796. -# suitably defined. Those variables are subsequently used by
  2797. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2798. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  2799. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  2800. -[AC_LANG_PUSH(C++)
  2801. -AC_REQUIRE([AC_PROG_CXX])
  2802. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  2803. -
  2804. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2805. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  2806. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  2807. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  2808. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  2809. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  2810. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  2811. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  2812. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2813. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  2814. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  2815. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  2816. -_LT_AC_TAGVAR(module_cmds, $1)=
  2817. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  2818. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  2819. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  2820. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  2821. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2822. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  2823. -
  2824. -# Dependencies to place before and after the object being linked:
  2825. -_LT_AC_TAGVAR(predep_objects, $1)=
  2826. -_LT_AC_TAGVAR(postdep_objects, $1)=
  2827. -_LT_AC_TAGVAR(predeps, $1)=
  2828. -_LT_AC_TAGVAR(postdeps, $1)=
  2829. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  2830. -
  2831. -# Source file extension for C++ test sources.
  2832. -ac_ext=cpp
  2833. -
  2834. -# Object file extension for compiled C++ test sources.
  2835. -objext=o
  2836. -_LT_AC_TAGVAR(objext, $1)=$objext
  2837. -
  2838. -# Code to be used in simple compile tests
  2839. -lt_simple_compile_test_code="int some_variable = 0;"
  2840. -
  2841. -# Code to be used in simple link tests
  2842. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  2843. -
  2844. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  2845. -_LT_AC_SYS_COMPILER
  2846. -
  2847. -# save warnings/boilerplate of simple test code
  2848. -_LT_COMPILER_BOILERPLATE
  2849. -_LT_LINKER_BOILERPLATE
  2850. -
  2851. -# Allow CC to be a program name with arguments.
  2852. -lt_save_CC=$CC
  2853. -lt_save_LD=$LD
  2854. -lt_save_GCC=$GCC
  2855. -GCC=$GXX
  2856. -lt_save_with_gnu_ld=$with_gnu_ld
  2857. -lt_save_path_LD=$lt_cv_path_LD
  2858. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  2859. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  2860. -else
  2861. - $as_unset lt_cv_prog_gnu_ld
  2862. -fi
  2863. -if test -n "${lt_cv_path_LDCXX+set}"; then
  2864. - lt_cv_path_LD=$lt_cv_path_LDCXX
  2865. -else
  2866. - $as_unset lt_cv_path_LD
  2867. -fi
  2868. -test -z "${LDCXX+set}" || LD=$LDCXX
  2869. -CC=${CXX-"c++"}
  2870. -compiler=$CC
  2871. -_LT_AC_TAGVAR(compiler, $1)=$CC
  2872. -_LT_CC_BASENAME([$compiler])
  2873. -
  2874. -# We don't want -fno-exception wen compiling C++ code, so set the
  2875. -# no_builtin_flag separately
  2876. -if test "$GXX" = yes; then
  2877. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  2878. -else
  2879. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  2880. -fi
  2881. -
  2882. -if test "$GXX" = yes; then
  2883. - # Set up default GNU C++ configuration
  2884. -
  2885. - AC_PROG_LD
  2886. -
  2887. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  2888. - # archiving commands below assume that GNU ld is being used.
  2889. - if test "$with_gnu_ld" = yes; then
  2890. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2891. - _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'
  2892. -
  2893. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  2894. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  2895. -
  2896. - # If archive_cmds runs LD, not CC, wlarc should be empty
  2897. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  2898. - # investigate it a little bit more. (MM)
  2899. - wlarc='${wl}'
  2900. -
  2901. - # ancient GNU ld didn't support --whole-archive et. al.
  2902. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  2903. - grep 'no-whole-archive' > /dev/null; then
  2904. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  2905. - else
  2906. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2907. - fi
  2908. - else
  2909. - with_gnu_ld=no
  2910. - wlarc=
  2911. -
  2912. - # A generic and very simple default shared library creation
  2913. - # command for GNU C++ for the case where it uses the native
  2914. - # linker, instead of GNU ld. If possible, this setting should
  2915. - # overridden to take advantage of the native linker features on
  2916. - # the platform it is being used on.
  2917. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  2918. - fi
  2919. -
  2920. - # Commands to make compiler produce verbose output that lists
  2921. - # what "hidden" libraries, object files and flags are used when
  2922. - # linking a shared library.
  2923. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  2924. -
  2925. -else
  2926. - GXX=no
  2927. - with_gnu_ld=no
  2928. - wlarc=
  2929. -fi
  2930. -
  2931. -# PORTME: fill in a description of your system's C++ link characteristics
  2932. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  2933. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  2934. -case $host_os in
  2935. - aix3*)
  2936. - # FIXME: insert proper C++ library support
  2937. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2938. - ;;
  2939. - aix4* | aix5*)
  2940. - if test "$host_cpu" = ia64; then
  2941. - # On IA64, the linker does run time linking by default, so we don't
  2942. - # have to do anything special.
  2943. - aix_use_runtimelinking=no
  2944. - exp_sym_flag='-Bexport'
  2945. - no_entry_flag=""
  2946. - else
  2947. - aix_use_runtimelinking=no
  2948. -
  2949. - # Test if we are trying to use run time linking or normal
  2950. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  2951. - # need to do runtime linking.
  2952. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  2953. - for ld_flag in $LDFLAGS; do
  2954. - case $ld_flag in
  2955. - *-brtl*)
  2956. - aix_use_runtimelinking=yes
  2957. - break
  2958. - ;;
  2959. - esac
  2960. - done
  2961. - ;;
  2962. - esac
  2963. -
  2964. - exp_sym_flag='-bexport'
  2965. - no_entry_flag='-bnoentry'
  2966. - fi
  2967. -
  2968. - # When large executables or shared objects are built, AIX ld can
  2969. - # have problems creating the table of contents. If linking a library
  2970. - # or program results in "error TOC overflow" add -mminimal-toc to
  2971. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  2972. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  2973. -
  2974. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  2975. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2976. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  2977. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2978. -
  2979. - if test "$GXX" = yes; then
  2980. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  2981. - # We only want to do this on AIX 4.2 and lower, the check
  2982. - # below for broken collect2 doesn't work under 4.3+
  2983. - collect2name=`${CC} -print-prog-name=collect2`
  2984. - if test -f "$collect2name" && \
  2985. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  2986. - then
  2987. - # We have reworked collect2
  2988. - :
  2989. - else
  2990. - # We have old collect2
  2991. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  2992. - # It fails to find uninstalled libraries when the uninstalled
  2993. - # path is not listed in the libpath. Setting hardcode_minus_L
  2994. - # to unsupported forces relinking
  2995. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  2996. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2997. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2998. - fi
  2999. - ;;
  3000. - esac
  3001. - shared_flag='-shared'
  3002. - if test "$aix_use_runtimelinking" = yes; then
  3003. - shared_flag="$shared_flag "'${wl}-G'
  3004. - fi
  3005. - else
  3006. - # not using gcc
  3007. - if test "$host_cpu" = ia64; then
  3008. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  3009. - # chokes on -Wl,-G. The following line is correct:
  3010. - shared_flag='-G'
  3011. - else
  3012. - if test "$aix_use_runtimelinking" = yes; then
  3013. - shared_flag='${wl}-G'
  3014. - else
  3015. - shared_flag='${wl}-bM:SRE'
  3016. - fi
  3017. - fi
  3018. - fi
  3019. -
  3020. - # It seems that -bexpall does not export symbols beginning with
  3021. - # underscore (_), so it is better to generate a list of symbols to export.
  3022. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3023. - if test "$aix_use_runtimelinking" = yes; then
  3024. - # Warning - without using the other runtime loading flags (-brtl),
  3025. - # -berok will link without error, but may produce a broken library.
  3026. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  3027. - # Determine the default libpath from the value encoded in an empty executable.
  3028. - _LT_AC_SYS_LIBPATH_AIX
  3029. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3030. -
  3031. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  3032. - else
  3033. - if test "$host_cpu" = ia64; then
  3034. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  3035. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  3036. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  3037. - else
  3038. - # Determine the default libpath from the value encoded in an empty executable.
  3039. - _LT_AC_SYS_LIBPATH_AIX
  3040. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3041. - # Warning - without using the other run time loading flags,
  3042. - # -berok will link without error, but may produce a broken library.
  3043. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  3044. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  3045. - # Exported symbols can be pulled into shared objects from archives
  3046. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  3047. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  3048. - # This is similar to how AIX traditionally builds its shared libraries.
  3049. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  3050. - fi
  3051. - fi
  3052. - ;;
  3053. -
  3054. - beos*)
  3055. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3056. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3057. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  3058. - # support --undefined. This deserves some investigation. FIXME
  3059. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3060. - else
  3061. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3062. - fi
  3063. - ;;
  3064. -
  3065. - chorus*)
  3066. - case $cc_basename in
  3067. - *)
  3068. - # FIXME: insert proper C++ library support
  3069. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3070. - ;;
  3071. - esac
  3072. - ;;
  3073. -
  3074. - cygwin* | mingw* | pw32*)
  3075. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  3076. - # as there is no search path for DLLs.
  3077. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3078. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3079. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3080. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3081. -
  3082. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  3083. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  3084. - # If the export-symbols file already is a .def file (1st line
  3085. - # is EXPORTS), use it as is; otherwise, prepend...
  3086. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3087. - cp $export_symbols $output_objdir/$soname.def;
  3088. - else
  3089. - echo EXPORTS > $output_objdir/$soname.def;
  3090. - cat $export_symbols >> $output_objdir/$soname.def;
  3091. - fi~
  3092. - $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'
  3093. - else
  3094. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3095. - fi
  3096. - ;;
  3097. - darwin* | rhapsody*)
  3098. - case $host_os in
  3099. - rhapsody* | darwin1.[[012]])
  3100. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  3101. - ;;
  3102. - *) # Darwin 1.3 on
  3103. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  3104. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  3105. - else
  3106. - case ${MACOSX_DEPLOYMENT_TARGET} in
  3107. - 10.[[012]])
  3108. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  3109. - ;;
  3110. - 10.*)
  3111. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  3112. - ;;
  3113. - esac
  3114. - fi
  3115. - ;;
  3116. - esac
  3117. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3118. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3119. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3120. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3121. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  3122. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3123. -
  3124. - if test "$GXX" = yes ; then
  3125. - lt_int_apple_cc_single_mod=no
  3126. - output_verbose_link_cmd='echo'
  3127. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  3128. - lt_int_apple_cc_single_mod=yes
  3129. - fi
  3130. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  3131. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  3132. - else
  3133. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  3134. - fi
  3135. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3136. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  3137. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  3138. - _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}'
  3139. - else
  3140. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3141. - fi
  3142. - _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}'
  3143. - else
  3144. - case $cc_basename in
  3145. - xlc*)
  3146. - output_verbose_link_cmd='echo'
  3147. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  3148. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3149. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  3150. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3151. - _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}'
  3152. - ;;
  3153. - *)
  3154. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3155. - ;;
  3156. - esac
  3157. - fi
  3158. - ;;
  3159. -
  3160. - dgux*)
  3161. - case $cc_basename in
  3162. - ec++*)
  3163. - # FIXME: insert proper C++ library support
  3164. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3165. - ;;
  3166. - ghcx*)
  3167. - # Green Hills C++ Compiler
  3168. - # FIXME: insert proper C++ library support
  3169. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3170. - ;;
  3171. - *)
  3172. - # FIXME: insert proper C++ library support
  3173. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3174. - ;;
  3175. - esac
  3176. - ;;
  3177. - freebsd[[12]]*)
  3178. - # C++ shared libraries reported to be fairly broken before switch to ELF
  3179. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3180. - ;;
  3181. - freebsd-elf*)
  3182. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3183. - ;;
  3184. - freebsd* | dragonfly*)
  3185. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  3186. - # conventions
  3187. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3188. - ;;
  3189. - gnu*)
  3190. - ;;
  3191. - hpux9*)
  3192. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3193. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3194. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3195. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3196. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  3197. - # but as the default
  3198. - # location of the library.
  3199. -
  3200. - case $cc_basename in
  3201. - CC*)
  3202. - # FIXME: insert proper C++ library support
  3203. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3204. - ;;
  3205. - aCC*)
  3206. - _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'
  3207. - # Commands to make compiler produce verbose output that lists
  3208. - # what "hidden" libraries, object files and flags are used when
  3209. - # linking a shared library.
  3210. - #
  3211. - # There doesn't appear to be a way to prevent this compiler from
  3212. - # explicitly linking system object files so we need to strip them
  3213. - # from the output so that they don't get included in the library
  3214. - # dependencies.
  3215. - 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'
  3216. - ;;
  3217. - *)
  3218. - if test "$GXX" = yes; then
  3219. - _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'
  3220. - else
  3221. - # FIXME: insert proper C++ library support
  3222. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3223. - fi
  3224. - ;;
  3225. - esac
  3226. - ;;
  3227. - hpux10*|hpux11*)
  3228. - if test $with_gnu_ld = no; then
  3229. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3230. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3231. -
  3232. - case $host_cpu in
  3233. - hppa*64*|ia64*) ;;
  3234. - *)
  3235. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3236. - ;;
  3237. - esac
  3238. - fi
  3239. - case $host_cpu in
  3240. - hppa*64*|ia64*)
  3241. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3242. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3243. - ;;
  3244. - *)
  3245. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3246. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  3247. - # but as the default
  3248. - # location of the library.
  3249. - ;;
  3250. - esac
  3251. -
  3252. - case $cc_basename in
  3253. - CC*)
  3254. - # FIXME: insert proper C++ library support
  3255. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3256. - ;;
  3257. - aCC*)
  3258. - case $host_cpu in
  3259. - hppa*64*)
  3260. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3261. - ;;
  3262. - ia64*)
  3263. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3264. - ;;
  3265. - *)
  3266. - _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'
  3267. - ;;
  3268. - esac
  3269. - # Commands to make compiler produce verbose output that lists
  3270. - # what "hidden" libraries, object files and flags are used when
  3271. - # linking a shared library.
  3272. - #
  3273. - # There doesn't appear to be a way to prevent this compiler from
  3274. - # explicitly linking system object files so we need to strip them
  3275. - # from the output so that they don't get included in the library
  3276. - # dependencies.
  3277. - 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'
  3278. - ;;
  3279. - *)
  3280. - if test "$GXX" = yes; then
  3281. - if test $with_gnu_ld = no; then
  3282. - case $host_cpu in
  3283. - hppa*64*)
  3284. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3285. - ;;
  3286. - ia64*)
  3287. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3288. - ;;
  3289. - *)
  3290. - _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'
  3291. - ;;
  3292. - esac
  3293. - fi
  3294. - else
  3295. - # FIXME: insert proper C++ library support
  3296. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3297. - fi
  3298. - ;;
  3299. - esac
  3300. - ;;
  3301. - interix[[3-9]]*)
  3302. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3303. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3304. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3305. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3306. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  3307. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  3308. - # default) and relocated if they conflict, which is a slow very memory
  3309. - # consuming and fragmenting process. To avoid this, we pick a random,
  3310. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  3311. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  3312. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  3313. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  3314. - ;;
  3315. - irix5* | irix6*)
  3316. - case $cc_basename in
  3317. - CC*)
  3318. - # SGI C++
  3319. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3320. -
  3321. - # Archives containing C++ object files must be created using
  3322. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  3323. - # necessary to make sure instantiated templates are included
  3324. - # in the archive.
  3325. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  3326. - ;;
  3327. - *)
  3328. - if test "$GXX" = yes; then
  3329. - if test "$with_gnu_ld" = no; then
  3330. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3331. - else
  3332. - _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'
  3333. - fi
  3334. - fi
  3335. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3336. - ;;
  3337. - esac
  3338. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3339. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3340. - ;;
  3341. - linux* | k*bsd*-gnu)
  3342. - case $cc_basename in
  3343. - KCC*)
  3344. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  3345. -
  3346. - # KCC will only create a shared library if the output file
  3347. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3348. - # to its proper name (with version) after linking.
  3349. - _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'
  3350. - _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'
  3351. - # Commands to make compiler produce verbose output that lists
  3352. - # what "hidden" libraries, object files and flags are used when
  3353. - # linking a shared library.
  3354. - #
  3355. - # There doesn't appear to be a way to prevent this compiler from
  3356. - # explicitly linking system object files so we need to strip them
  3357. - # from the output so that they don't get included in the library
  3358. - # dependencies.
  3359. - 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'
  3360. -
  3361. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  3362. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3363. -
  3364. - # Archives containing C++ object files must be created using
  3365. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3366. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3367. - ;;
  3368. - icpc*)
  3369. - # Intel C++
  3370. - with_gnu_ld=yes
  3371. - # version 8.0 and above of icpc choke on multiply defined symbols
  3372. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  3373. - # earlier do not add the objects themselves.
  3374. - case `$CC -V 2>&1` in
  3375. - *"Version 7."*)
  3376. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3377. - _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'
  3378. - ;;
  3379. - *) # Version 8.0 or newer
  3380. - tmp_idyn=
  3381. - case $host_cpu in
  3382. - ia64*) tmp_idyn=' -i_dynamic';;
  3383. - esac
  3384. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3385. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3386. - ;;
  3387. - esac
  3388. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3389. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3390. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3391. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  3392. - ;;
  3393. - pgCC*)
  3394. - # Portland Group C++ compiler
  3395. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  3396. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  3397. -
  3398. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3399. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3400. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  3401. - ;;
  3402. - cxx*)
  3403. - # Compaq C++
  3404. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3405. - _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'
  3406. -
  3407. - runpath_var=LD_RUN_PATH
  3408. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3409. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3410. -
  3411. - # Commands to make compiler produce verbose output that lists
  3412. - # what "hidden" libraries, object files and flags are used when
  3413. - # linking a shared library.
  3414. - #
  3415. - # There doesn't appear to be a way to prevent this compiler from
  3416. - # explicitly linking system object files so we need to strip them
  3417. - # from the output so that they don't get included in the library
  3418. - # dependencies.
  3419. - 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'
  3420. - ;;
  3421. - *)
  3422. - case `$CC -V 2>&1 | sed 5q` in
  3423. - *Sun\ C*)
  3424. - # Sun C++ 5.9
  3425. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  3426. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3427. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  3428. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3429. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  3430. -
  3431. - # Not sure whether something based on
  3432. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  3433. - # would be better.
  3434. - output_verbose_link_cmd='echo'
  3435. -
  3436. - # Archives containing C++ object files must be created using
  3437. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  3438. - # necessary to make sure instantiated templates are included
  3439. - # in the archive.
  3440. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  3441. - ;;
  3442. - esac
  3443. - ;;
  3444. - esac
  3445. - ;;
  3446. - lynxos*)
  3447. - # FIXME: insert proper C++ library support
  3448. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3449. - ;;
  3450. - m88k*)
  3451. - # FIXME: insert proper C++ library support
  3452. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3453. - ;;
  3454. - mvs*)
  3455. - case $cc_basename in
  3456. - cxx*)
  3457. - # FIXME: insert proper C++ library support
  3458. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3459. - ;;
  3460. - *)
  3461. - # FIXME: insert proper C++ library support
  3462. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3463. - ;;
  3464. - esac
  3465. - ;;
  3466. - netbsd*)
  3467. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3468. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  3469. - wlarc=
  3470. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3471. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3472. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3473. - fi
  3474. - # Workaround some broken pre-1.5 toolchains
  3475. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  3476. - ;;
  3477. - openbsd2*)
  3478. - # C++ shared libraries are fairly broken
  3479. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3480. - ;;
  3481. - openbsd*)
  3482. - if test -f /usr/libexec/ld.so; then
  3483. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3484. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3485. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3486. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3487. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3488. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  3489. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3490. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3491. - fi
  3492. - output_verbose_link_cmd='echo'
  3493. - else
  3494. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3495. - fi
  3496. - ;;
  3497. - osf3*)
  3498. - case $cc_basename in
  3499. - KCC*)
  3500. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  3501. -
  3502. - # KCC will only create a shared library if the output file
  3503. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3504. - # to its proper name (with version) after linking.
  3505. - _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'
  3506. -
  3507. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3508. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3509. -
  3510. - # Archives containing C++ object files must be created using
  3511. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3512. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3513. -
  3514. - ;;
  3515. - RCC*)
  3516. - # Rational C++ 2.4.1
  3517. - # FIXME: insert proper C++ library support
  3518. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3519. - ;;
  3520. - cxx*)
  3521. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3522. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3523. -
  3524. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3525. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3526. -
  3527. - # Commands to make compiler produce verbose output that lists
  3528. - # what "hidden" libraries, object files and flags are used when
  3529. - # linking a shared library.
  3530. - #
  3531. - # There doesn't appear to be a way to prevent this compiler from
  3532. - # explicitly linking system object files so we need to strip them
  3533. - # from the output so that they don't get included in the library
  3534. - # dependencies.
  3535. - 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'
  3536. - ;;
  3537. - *)
  3538. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3539. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3540. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3541. -
  3542. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3543. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3544. -
  3545. - # Commands to make compiler produce verbose output that lists
  3546. - # what "hidden" libraries, object files and flags are used when
  3547. - # linking a shared library.
  3548. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3549. -
  3550. - else
  3551. - # FIXME: insert proper C++ library support
  3552. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3553. - fi
  3554. - ;;
  3555. - esac
  3556. - ;;
  3557. - osf4* | osf5*)
  3558. - case $cc_basename in
  3559. - KCC*)
  3560. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  3561. -
  3562. - # KCC will only create a shared library if the output file
  3563. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3564. - # to its proper name (with version) after linking.
  3565. - _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'
  3566. -
  3567. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3568. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3569. -
  3570. - # Archives containing C++ object files must be created using
  3571. - # the KAI C++ compiler.
  3572. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  3573. - ;;
  3574. - RCC*)
  3575. - # Rational C++ 2.4.1
  3576. - # FIXME: insert proper C++ library support
  3577. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3578. - ;;
  3579. - cxx*)
  3580. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  3581. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3582. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  3583. - echo "-hidden">> $lib.exp~
  3584. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  3585. - $rm $lib.exp'
  3586. -
  3587. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3588. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3589. -
  3590. - # Commands to make compiler produce verbose output that lists
  3591. - # what "hidden" libraries, object files and flags are used when
  3592. - # linking a shared library.
  3593. - #
  3594. - # There doesn't appear to be a way to prevent this compiler from
  3595. - # explicitly linking system object files so we need to strip them
  3596. - # from the output so that they don't get included in the library
  3597. - # dependencies.
  3598. - 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'
  3599. - ;;
  3600. - *)
  3601. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3602. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3603. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3604. -
  3605. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3606. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3607. -
  3608. - # Commands to make compiler produce verbose output that lists
  3609. - # what "hidden" libraries, object files and flags are used when
  3610. - # linking a shared library.
  3611. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3612. -
  3613. - else
  3614. - # FIXME: insert proper C++ library support
  3615. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3616. - fi
  3617. - ;;
  3618. - esac
  3619. - ;;
  3620. - psos*)
  3621. - # FIXME: insert proper C++ library support
  3622. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3623. - ;;
  3624. - sunos4*)
  3625. - case $cc_basename in
  3626. - CC*)
  3627. - # Sun C++ 4.x
  3628. - # FIXME: insert proper C++ library support
  3629. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3630. - ;;
  3631. - lcc*)
  3632. - # Lucid
  3633. - # FIXME: insert proper C++ library support
  3634. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3635. - ;;
  3636. - *)
  3637. - # FIXME: insert proper C++ library support
  3638. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3639. - ;;
  3640. - esac
  3641. - ;;
  3642. - solaris*)
  3643. - case $cc_basename in
  3644. - CC*)
  3645. - # Sun C++ 4.2, 5.x and Centerline C++
  3646. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  3647. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  3648. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3649. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3650. - $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'
  3651. -
  3652. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3653. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3654. - case $host_os in
  3655. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  3656. - *)
  3657. - # The compiler driver will combine and reorder linker options,
  3658. - # but understands `-z linker_flag'.
  3659. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  3660. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  3661. - ;;
  3662. - esac
  3663. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3664. -
  3665. - output_verbose_link_cmd='echo'
  3666. -
  3667. - # Archives containing C++ object files must be created using
  3668. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  3669. - # necessary to make sure instantiated templates are included
  3670. - # in the archive.
  3671. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  3672. - ;;
  3673. - gcx*)
  3674. - # Green Hills C++ Compiler
  3675. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3676. -
  3677. - # The C++ compiler must be used to create the archive.
  3678. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  3679. - ;;
  3680. - *)
  3681. - # GNU C++ compiler with Solaris linker
  3682. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3683. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  3684. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  3685. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3686. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3687. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3688. -
  3689. - # Commands to make compiler produce verbose output that lists
  3690. - # what "hidden" libraries, object files and flags are used when
  3691. - # linking a shared library.
  3692. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3693. - else
  3694. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  3695. - # platform.
  3696. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3697. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3698. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3699. -
  3700. - # Commands to make compiler produce verbose output that lists
  3701. - # what "hidden" libraries, object files and flags are used when
  3702. - # linking a shared library.
  3703. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3704. - fi
  3705. -
  3706. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  3707. - case $host_os in
  3708. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  3709. - *)
  3710. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  3711. - ;;
  3712. - esac
  3713. - fi
  3714. - ;;
  3715. - esac
  3716. - ;;
  3717. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  3718. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  3719. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3720. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3721. - runpath_var='LD_RUN_PATH'
  3722. -
  3723. - case $cc_basename in
  3724. - CC*)
  3725. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3726. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3727. - ;;
  3728. - *)
  3729. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3730. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  3731. - ;;
  3732. - esac
  3733. - ;;
  3734. - sysv5* | sco3.2v5* | sco5v6*)
  3735. - # Note: We can NOT use -z defs as we might desire, because we do not
  3736. - # link with -lc, and that would cause any symbols used from libc to
  3737. - # always be unresolved, which means just about no library would
  3738. - # ever link correctly. If we're not using GNU ld we use -z text
  3739. - # though, which does catch some bad symbols but isn't as heavy-handed
  3740. - # as -z defs.
  3741. - # For security reasons, it is highly recommended that you always
  3742. - # use absolute paths for naming shared libraries, and exclude the
  3743. - # DT_RUNPATH tag from executables and libraries. But doing so
  3744. - # requires that you compile everything twice, which is a pain.
  3745. - # So that behaviour is only enabled if SCOABSPATH is set to a
  3746. - # non-empty value in the environment. Most likely only useful for
  3747. - # creating official distributions of packages.
  3748. - # This is a hack until libtool officially supports absolute path
  3749. - # names for shared libraries.
  3750. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  3751. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  3752. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3753. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3754. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  3755. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3756. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3757. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  3758. - runpath_var='LD_RUN_PATH'
  3759. -
  3760. - case $cc_basename in
  3761. - CC*)
  3762. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3763. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3764. - ;;
  3765. - *)
  3766. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3767. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3768. - ;;
  3769. - esac
  3770. - ;;
  3771. - tandem*)
  3772. - case $cc_basename in
  3773. - NCC*)
  3774. - # NonStop-UX NCC 3.20
  3775. - # FIXME: insert proper C++ library support
  3776. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3777. - ;;
  3778. - *)
  3779. - # FIXME: insert proper C++ library support
  3780. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3781. - ;;
  3782. - esac
  3783. - ;;
  3784. - vxworks*)
  3785. - # FIXME: insert proper C++ library support
  3786. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3787. - ;;
  3788. - *)
  3789. - # FIXME: insert proper C++ library support
  3790. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3791. - ;;
  3792. -esac
  3793. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  3794. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  3795. -
  3796. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  3797. -_LT_AC_TAGVAR(LD, $1)="$LD"
  3798. -
  3799. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  3800. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3801. -AC_LIBTOOL_PROG_CC_C_O($1)
  3802. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3803. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3804. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3805. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3806. -
  3807. -AC_LIBTOOL_CONFIG($1)
  3808. -
  3809. -AC_LANG_POP
  3810. -CC=$lt_save_CC
  3811. -LDCXX=$LD
  3812. -LD=$lt_save_LD
  3813. -GCC=$lt_save_GCC
  3814. -with_gnu_ldcxx=$with_gnu_ld
  3815. -with_gnu_ld=$lt_save_with_gnu_ld
  3816. -lt_cv_path_LDCXX=$lt_cv_path_LD
  3817. -lt_cv_path_LD=$lt_save_path_LD
  3818. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  3819. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  3820. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  3821. -
  3822. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  3823. -# ------------------------------------
  3824. -# Figure out "hidden" library dependencies from verbose
  3825. -# compiler output when linking a shared library.
  3826. -# Parse the compiler output and extract the necessary
  3827. -# objects, libraries and library flags.
  3828. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  3829. -dnl we can't use the lt_simple_compile_test_code here,
  3830. -dnl because it contains code intended for an executable,
  3831. -dnl not a library. It's possible we should let each
  3832. -dnl tag define a new lt_????_link_test_code variable,
  3833. -dnl but it's only used here...
  3834. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  3835. -int a;
  3836. -void foo (void) { a = 0; }
  3837. -EOF
  3838. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  3839. -class Foo
  3840. -{
  3841. -public:
  3842. - Foo (void) { a = 0; }
  3843. -private:
  3844. - int a;
  3845. -};
  3846. -EOF
  3847. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  3848. - subroutine foo
  3849. - implicit none
  3850. - integer*4 a
  3851. - a=0
  3852. - return
  3853. - end
  3854. -EOF
  3855. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  3856. -public class foo {
  3857. - private int a;
  3858. - public void bar (void) {
  3859. - a = 0;
  3860. - }
  3861. -};
  3862. -EOF
  3863. -])
  3864. -dnl Parse the compiler output and extract the necessary
  3865. -dnl objects, libraries and library flags.
  3866. -if AC_TRY_EVAL(ac_compile); then
  3867. - # Parse the compiler output and extract the necessary
  3868. - # objects, libraries and library flags.
  3869. -
  3870. - # Sentinel used to keep track of whether or not we are before
  3871. - # the conftest object file.
  3872. - pre_test_object_deps_done=no
  3873. -
  3874. - # The `*' in the case matches for architectures that use `case' in
  3875. - # $output_verbose_cmd can trigger glob expansion during the loop
  3876. - # eval without this substitution.
  3877. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  3878. -
  3879. - for p in `eval $output_verbose_link_cmd`; do
  3880. - case $p in
  3881. -
  3882. - -L* | -R* | -l*)
  3883. - # Some compilers place space between "-{L,R}" and the path.
  3884. - # Remove the space.
  3885. - if test $p = "-L" \
  3886. - || test $p = "-R"; then
  3887. - prev=$p
  3888. - continue
  3889. - else
  3890. - prev=
  3891. - fi
  3892. -
  3893. - if test "$pre_test_object_deps_done" = no; then
  3894. - case $p in
  3895. - -L* | -R*)
  3896. - # Internal compiler library paths should come after those
  3897. - # provided the user. The postdeps already come after the
  3898. - # user supplied libs so there is no need to process them.
  3899. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  3900. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  3901. - else
  3902. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  3903. - fi
  3904. - ;;
  3905. - # The "-l" case would never come before the object being
  3906. - # linked, so don't bother handling this case.
  3907. - esac
  3908. - else
  3909. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  3910. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  3911. - else
  3912. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  3913. - fi
  3914. - fi
  3915. - ;;
  3916. -
  3917. - *.$objext)
  3918. - # This assumes that the test object file only shows up
  3919. - # once in the compiler output.
  3920. - if test "$p" = "conftest.$objext"; then
  3921. - pre_test_object_deps_done=yes
  3922. - continue
  3923. - fi
  3924. -
  3925. - if test "$pre_test_object_deps_done" = no; then
  3926. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  3927. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  3928. - else
  3929. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  3930. - fi
  3931. - else
  3932. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  3933. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  3934. - else
  3935. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  3936. - fi
  3937. - fi
  3938. - ;;
  3939. -
  3940. - *) ;; # Ignore the rest.
  3941. -
  3942. - esac
  3943. - done
  3944. -
  3945. - # Clean up.
  3946. - rm -f a.out a.exe
  3947. -else
  3948. - echo "libtool.m4: error: problem compiling $1 test program"
  3949. -fi
  3950. -
  3951. -$rm -f confest.$objext
  3952. -
  3953. -# PORTME: override above test on systems where it is broken
  3954. -ifelse([$1],[CXX],
  3955. -[case $host_os in
  3956. -interix[[3-9]]*)
  3957. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  3958. - # hack all around it, let's just trust "g++" to DTRT.
  3959. - _LT_AC_TAGVAR(predep_objects,$1)=
  3960. - _LT_AC_TAGVAR(postdep_objects,$1)=
  3961. - _LT_AC_TAGVAR(postdeps,$1)=
  3962. - ;;
  3963. -
  3964. -linux*)
  3965. - case `$CC -V 2>&1 | sed 5q` in
  3966. - *Sun\ C*)
  3967. - # Sun C++ 5.9
  3968. - #
  3969. - # The more standards-conforming stlport4 library is
  3970. - # incompatible with the Cstd library. Avoid specifying
  3971. - # it if it's in CXXFLAGS. Ignore libCrun as
  3972. - # -library=stlport4 depends on it.
  3973. - case " $CXX $CXXFLAGS " in
  3974. - *" -library=stlport4 "*)
  3975. - solaris_use_stlport4=yes
  3976. - ;;
  3977. - esac
  3978. - if test "$solaris_use_stlport4" != yes; then
  3979. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  3980. - fi
  3981. - ;;
  3982. - esac
  3983. - ;;
  3984. -
  3985. -solaris*)
  3986. - case $cc_basename in
  3987. - CC*)
  3988. - # The more standards-conforming stlport4 library is
  3989. - # incompatible with the Cstd library. Avoid specifying
  3990. - # it if it's in CXXFLAGS. Ignore libCrun as
  3991. - # -library=stlport4 depends on it.
  3992. - case " $CXX $CXXFLAGS " in
  3993. - *" -library=stlport4 "*)
  3994. - solaris_use_stlport4=yes
  3995. - ;;
  3996. - esac
  3997. -
  3998. - # Adding this requires a known-good setup of shared libraries for
  3999. - # Sun compiler versions before 5.6, else PIC objects from an old
  4000. - # archive will be linked into the output, leading to subtle bugs.
  4001. - if test "$solaris_use_stlport4" != yes; then
  4002. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  4003. - fi
  4004. - ;;
  4005. - esac
  4006. - ;;
  4007. -esac
  4008. -])
  4009. -
  4010. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  4011. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  4012. -esac
  4013. -])# AC_LIBTOOL_POSTDEP_PREDEP
  4014. -
  4015. -# AC_LIBTOOL_LANG_F77_CONFIG
  4016. -# --------------------------
  4017. -# Ensure that the configuration vars for the C compiler are
  4018. -# suitably defined. Those variables are subsequently used by
  4019. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4020. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  4021. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  4022. -[AC_REQUIRE([AC_PROG_F77])
  4023. -AC_LANG_PUSH(Fortran 77)
  4024. -
  4025. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4026. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4027. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  4028. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4029. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4030. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  4031. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4032. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4033. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4034. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4035. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4036. -_LT_AC_TAGVAR(module_cmds, $1)=
  4037. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4038. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4039. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4040. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  4041. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4042. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4043. -
  4044. -# Source file extension for f77 test sources.
  4045. -ac_ext=f
  4046. -
  4047. -# Object file extension for compiled f77 test sources.
  4048. -objext=o
  4049. -_LT_AC_TAGVAR(objext, $1)=$objext
  4050. -
  4051. -# Code to be used in simple compile tests
  4052. -lt_simple_compile_test_code="\
  4053. - subroutine t
  4054. - return
  4055. - end
  4056. -"
  4057. -
  4058. -# Code to be used in simple link tests
  4059. -lt_simple_link_test_code="\
  4060. - program t
  4061. - end
  4062. -"
  4063. -
  4064. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4065. -_LT_AC_SYS_COMPILER
  4066. -
  4067. -# save warnings/boilerplate of simple test code
  4068. -_LT_COMPILER_BOILERPLATE
  4069. -_LT_LINKER_BOILERPLATE
  4070. -
  4071. -# Allow CC to be a program name with arguments.
  4072. -lt_save_CC="$CC"
  4073. -CC=${F77-"f77"}
  4074. -compiler=$CC
  4075. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4076. -_LT_CC_BASENAME([$compiler])
  4077. -
  4078. -AC_MSG_CHECKING([if libtool supports shared libraries])
  4079. -AC_MSG_RESULT([$can_build_shared])
  4080. -
  4081. -AC_MSG_CHECKING([whether to build shared libraries])
  4082. -test "$can_build_shared" = "no" && enable_shared=no
  4083. -
  4084. -# On AIX, shared libraries and static libraries use the same namespace, and
  4085. -# are all built from PIC.
  4086. -case $host_os in
  4087. -aix3*)
  4088. - test "$enable_shared" = yes && enable_static=no
  4089. - if test -n "$RANLIB"; then
  4090. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4091. - postinstall_cmds='$RANLIB $lib'
  4092. - fi
  4093. - ;;
  4094. -aix4* | aix5*)
  4095. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4096. - test "$enable_shared" = yes && enable_static=no
  4097. - fi
  4098. - ;;
  4099. -esac
  4100. -AC_MSG_RESULT([$enable_shared])
  4101. -
  4102. -AC_MSG_CHECKING([whether to build static libraries])
  4103. -# Make sure either enable_shared or enable_static is yes.
  4104. -test "$enable_shared" = yes || enable_static=yes
  4105. -AC_MSG_RESULT([$enable_static])
  4106. -
  4107. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  4108. -_LT_AC_TAGVAR(LD, $1)="$LD"
  4109. -
  4110. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4111. -AC_LIBTOOL_PROG_CC_C_O($1)
  4112. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4113. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4114. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4115. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4116. -
  4117. -AC_LIBTOOL_CONFIG($1)
  4118. -
  4119. -AC_LANG_POP
  4120. -CC="$lt_save_CC"
  4121. -])# AC_LIBTOOL_LANG_F77_CONFIG
  4122. -
  4123. -
  4124. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  4125. -# --------------------------
  4126. -# Ensure that the configuration vars for the C compiler are
  4127. -# suitably defined. Those variables are subsequently used by
  4128. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4129. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  4130. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  4131. -[AC_LANG_SAVE
  4132. -
  4133. -# Source file extension for Java test sources.
  4134. -ac_ext=java
  4135. -
  4136. -# Object file extension for compiled Java test sources.
  4137. -objext=o
  4138. -_LT_AC_TAGVAR(objext, $1)=$objext
  4139. -
  4140. -# Code to be used in simple compile tests
  4141. -lt_simple_compile_test_code="class foo {}"
  4142. -
  4143. -# Code to be used in simple link tests
  4144. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  4145. -
  4146. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4147. -_LT_AC_SYS_COMPILER
  4148. -
  4149. -# save warnings/boilerplate of simple test code
  4150. -_LT_COMPILER_BOILERPLATE
  4151. -_LT_LINKER_BOILERPLATE
  4152. -
  4153. -# Allow CC to be a program name with arguments.
  4154. -lt_save_CC="$CC"
  4155. -CC=${GCJ-"gcj"}
  4156. -compiler=$CC
  4157. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4158. -_LT_CC_BASENAME([$compiler])
  4159. -
  4160. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  4161. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4162. -
  4163. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4164. -
  4165. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4166. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4167. -AC_LIBTOOL_PROG_CC_C_O($1)
  4168. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4169. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4170. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4171. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4172. -
  4173. -AC_LIBTOOL_CONFIG($1)
  4174. -
  4175. -AC_LANG_RESTORE
  4176. -CC="$lt_save_CC"
  4177. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  4178. -
  4179. -
  4180. -# AC_LIBTOOL_LANG_RC_CONFIG
  4181. -# -------------------------
  4182. -# Ensure that the configuration vars for the Windows resource compiler are
  4183. -# suitably defined. Those variables are subsequently used by
  4184. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4185. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  4186. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  4187. -[AC_LANG_SAVE
  4188. -
  4189. -# Source file extension for RC test sources.
  4190. -ac_ext=rc
  4191. -
  4192. -# Object file extension for compiled RC test sources.
  4193. -objext=o
  4194. -_LT_AC_TAGVAR(objext, $1)=$objext
  4195. -
  4196. -# Code to be used in simple compile tests
  4197. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  4198. -
  4199. -# Code to be used in simple link tests
  4200. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  4201. -
  4202. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4203. -_LT_AC_SYS_COMPILER
  4204. -
  4205. -# save warnings/boilerplate of simple test code
  4206. -_LT_COMPILER_BOILERPLATE
  4207. -_LT_LINKER_BOILERPLATE
  4208. -
  4209. -# Allow CC to be a program name with arguments.
  4210. -lt_save_CC="$CC"
  4211. -CC=${RC-"windres"}
  4212. -compiler=$CC
  4213. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4214. -_LT_CC_BASENAME([$compiler])
  4215. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  4216. -
  4217. -AC_LIBTOOL_CONFIG($1)
  4218. -
  4219. -AC_LANG_RESTORE
  4220. -CC="$lt_save_CC"
  4221. -])# AC_LIBTOOL_LANG_RC_CONFIG
  4222. -
  4223. -
  4224. -# AC_LIBTOOL_CONFIG([TAGNAME])
  4225. -# ----------------------------
  4226. -# If TAGNAME is not passed, then create an initial libtool script
  4227. -# with a default configuration from the untagged config vars. Otherwise
  4228. -# add code to config.status for appending the configuration named by
  4229. -# TAGNAME from the matching tagged config vars.
  4230. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  4231. -[# The else clause should only fire when bootstrapping the
  4232. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  4233. -# with your package, and you will get complaints that there are
  4234. -# no rules to generate ltmain.sh.
  4235. -if test -f "$ltmain"; then
  4236. - # See if we are running on zsh, and set the options which allow our commands through
  4237. - # without removal of \ escapes.
  4238. - if test -n "${ZSH_VERSION+set}" ; then
  4239. - setopt NO_GLOB_SUBST
  4240. - fi
  4241. - # Now quote all the things that may contain metacharacters while being
  4242. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  4243. - # variables and quote the copies for generation of the libtool script.
  4244. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  4245. - SED SHELL STRIP \
  4246. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  4247. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  4248. - deplibs_check_method reload_flag reload_cmds need_locks \
  4249. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  4250. - lt_cv_sys_global_symbol_to_c_name_address \
  4251. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  4252. - old_postinstall_cmds old_postuninstall_cmds \
  4253. - _LT_AC_TAGVAR(compiler, $1) \
  4254. - _LT_AC_TAGVAR(CC, $1) \
  4255. - _LT_AC_TAGVAR(LD, $1) \
  4256. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  4257. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  4258. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  4259. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  4260. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  4261. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  4262. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  4263. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  4264. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  4265. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  4266. - _LT_AC_TAGVAR(predep_objects, $1) \
  4267. - _LT_AC_TAGVAR(postdep_objects, $1) \
  4268. - _LT_AC_TAGVAR(predeps, $1) \
  4269. - _LT_AC_TAGVAR(postdeps, $1) \
  4270. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  4271. - _LT_AC_TAGVAR(archive_cmds, $1) \
  4272. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  4273. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  4274. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  4275. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  4276. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  4277. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  4278. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  4279. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  4280. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  4281. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  4282. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  4283. - _LT_AC_TAGVAR(module_cmds, $1) \
  4284. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  4285. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  4286. - _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  4287. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  4288. - _LT_AC_TAGVAR(include_expsyms, $1); do
  4289. -
  4290. - case $var in
  4291. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  4292. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  4293. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  4294. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  4295. - _LT_AC_TAGVAR(module_cmds, $1) | \
  4296. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  4297. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  4298. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  4299. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  4300. - postinstall_cmds | postuninstall_cmds | \
  4301. - old_postinstall_cmds | old_postuninstall_cmds | \
  4302. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  4303. - # Double-quote double-evaled strings.
  4304. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  4305. - ;;
  4306. - *)
  4307. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  4308. - ;;
  4309. - esac
  4310. - done
  4311. -
  4312. - case $lt_echo in
  4313. - *'\[$]0 --fallback-echo"')
  4314. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  4315. - ;;
  4316. - esac
  4317. -
  4318. -ifelse([$1], [],
  4319. - [cfgfile="${ofile}T"
  4320. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  4321. - $rm -f "$cfgfile"
  4322. - AC_MSG_NOTICE([creating $ofile])],
  4323. - [cfgfile="$ofile"])
  4324. -
  4325. - cat <<__EOF__ >> "$cfgfile"
  4326. -ifelse([$1], [],
  4327. -[#! $SHELL
  4328. -
  4329. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  4330. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  4331. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  4332. -#
  4333. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  4334. -# Free Software Foundation, Inc.
  4335. -#
  4336. -# This file is part of GNU Libtool:
  4337. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  4338. -#
  4339. -# This program is free software; you can redistribute it and/or modify
  4340. -# it under the terms of the GNU General Public License as published by
  4341. -# the Free Software Foundation; either version 2 of the License, or
  4342. -# (at your option) any later version.
  4343. -#
  4344. -# This program is distributed in the hope that it will be useful, but
  4345. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  4346. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  4347. -# General Public License for more details.
  4348. -#
  4349. -# You should have received a copy of the GNU General Public License
  4350. -# along with this program; if not, write to the Free Software
  4351. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  4352. -#
  4353. -# As a special exception to the GNU General Public License, if you
  4354. -# distribute this file as part of a program that contains a
  4355. -# configuration script generated by Autoconf, you may include it under
  4356. -# the same distribution terms that you use for the rest of that program.
  4357. -
  4358. -# A sed program that does not truncate output.
  4359. -SED=$lt_SED
  4360. -
  4361. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  4362. -Xsed="$SED -e 1s/^X//"
  4363. -
  4364. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  4365. -# if CDPATH is set.
  4366. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4367. -
  4368. -# The names of the tagged configurations supported by this script.
  4369. -available_tags=
  4370. -
  4371. -# ### BEGIN LIBTOOL CONFIG],
  4372. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  4373. -
  4374. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  4375. -
  4376. -# Shell to use when invoking shell scripts.
  4377. -SHELL=$lt_SHELL
  4378. -
  4379. -# Whether or not to build shared libraries.
  4380. -build_libtool_libs=$enable_shared
  4381. -
  4382. -# Whether or not to build static libraries.
  4383. -build_old_libs=$enable_static
  4384. -
  4385. -# Whether or not to add -lc for building shared libraries.
  4386. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  4387. -
  4388. -# Whether or not to disallow shared libs when runtime libs are static
  4389. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  4390. -
  4391. -# Whether or not to optimize for fast installation.
  4392. -fast_install=$enable_fast_install
  4393. -
  4394. -# The host system.
  4395. -host_alias=$host_alias
  4396. -host=$host
  4397. -host_os=$host_os
  4398. -
  4399. -# The build system.
  4400. -build_alias=$build_alias
  4401. -build=$build
  4402. -build_os=$build_os
  4403. -
  4404. -# An echo program that does not interpret backslashes.
  4405. -echo=$lt_echo
  4406. -
  4407. -# The archiver.
  4408. -AR=$lt_AR
  4409. -AR_FLAGS=$lt_AR_FLAGS
  4410. -
  4411. -# A C compiler.
  4412. -LTCC=$lt_LTCC
  4413. -
  4414. -# LTCC compiler flags.
  4415. -LTCFLAGS=$lt_LTCFLAGS
  4416. -
  4417. -# A language-specific compiler.
  4418. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  4419. -
  4420. -# Is the compiler the GNU C compiler?
  4421. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  4422. -
  4423. -# An ERE matcher.
  4424. -EGREP=$lt_EGREP
  4425. -
  4426. -# The linker used to build libraries.
  4427. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  4428. -
  4429. -# Whether we need hard or soft links.
  4430. -LN_S=$lt_LN_S
  4431. -
  4432. -# A BSD-compatible nm program.
  4433. -NM=$lt_NM
  4434. -
  4435. -# A symbol stripping program
  4436. -STRIP=$lt_STRIP
  4437. -
  4438. -# Used to examine libraries when file_magic_cmd begins "file"
  4439. -MAGIC_CMD=$MAGIC_CMD
  4440. -
  4441. -# Used on cygwin: DLL creation program.
  4442. -DLLTOOL="$DLLTOOL"
  4443. -
  4444. -# Used on cygwin: object dumper.
  4445. -OBJDUMP="$OBJDUMP"
  4446. -
  4447. -# Used on cygwin: assembler.
  4448. -AS="$AS"
  4449. -
  4450. -# The name of the directory that contains temporary libtool files.
  4451. -objdir=$objdir
  4452. -
  4453. -# How to create reloadable object files.
  4454. -reload_flag=$lt_reload_flag
  4455. -reload_cmds=$lt_reload_cmds
  4456. -
  4457. -# How to pass a linker flag through the compiler.
  4458. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  4459. -
  4460. -# Object file suffix (normally "o").
  4461. -objext="$ac_objext"
  4462. -
  4463. -# Old archive suffix (normally "a").
  4464. -libext="$libext"
  4465. -
  4466. -# Shared library suffix (normally ".so").
  4467. -shrext_cmds='$shrext_cmds'
  4468. -
  4469. -# Executable file suffix (normally "").
  4470. -exeext="$exeext"
  4471. -
  4472. -# Additional compiler flags for building library objects.
  4473. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  4474. -pic_mode=$pic_mode
  4475. -
  4476. -# What is the maximum length of a command?
  4477. -max_cmd_len=$lt_cv_sys_max_cmd_len
  4478. -
  4479. -# Does compiler simultaneously support -c and -o options?
  4480. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  4481. -
  4482. -# Must we lock files when doing compilation?
  4483. -need_locks=$lt_need_locks
  4484. -
  4485. -# Do we need the lib prefix for modules?
  4486. -need_lib_prefix=$need_lib_prefix
  4487. -
  4488. -# Do we need a version for libraries?
  4489. -need_version=$need_version
  4490. -
  4491. -# Whether dlopen is supported.
  4492. -dlopen_support=$enable_dlopen
  4493. -
  4494. -# Whether dlopen of programs is supported.
  4495. -dlopen_self=$enable_dlopen_self
  4496. -
  4497. -# Whether dlopen of statically linked programs is supported.
  4498. -dlopen_self_static=$enable_dlopen_self_static
  4499. -
  4500. -# Compiler flag to prevent dynamic linking.
  4501. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  4502. -
  4503. -# Compiler flag to turn off builtin functions.
  4504. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  4505. -
  4506. -# Compiler flag to allow reflexive dlopens.
  4507. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  4508. -
  4509. -# Compiler flag to generate shared objects directly from archives.
  4510. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  4511. -
  4512. -# Compiler flag to generate thread-safe objects.
  4513. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  4514. -
  4515. -# Library versioning type.
  4516. -version_type=$version_type
  4517. -
  4518. -# Format of library name prefix.
  4519. -libname_spec=$lt_libname_spec
  4520. -
  4521. -# List of archive names. First name is the real one, the rest are links.
  4522. -# The last name is the one that the linker finds with -lNAME.
  4523. -library_names_spec=$lt_library_names_spec
  4524. -
  4525. -# The coded name of the library, if different from the real name.
  4526. -soname_spec=$lt_soname_spec
  4527. -
  4528. -# Commands used to build and install an old-style archive.
  4529. -RANLIB=$lt_RANLIB
  4530. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  4531. -old_postinstall_cmds=$lt_old_postinstall_cmds
  4532. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  4533. -
  4534. -# Create an old-style archive from a shared archive.
  4535. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  4536. -
  4537. -# Create a temporary old-style archive to link instead of a shared archive.
  4538. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  4539. -
  4540. -# Commands used to build and install a shared archive.
  4541. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  4542. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  4543. -postinstall_cmds=$lt_postinstall_cmds
  4544. -postuninstall_cmds=$lt_postuninstall_cmds
  4545. -
  4546. -# Commands used to build a loadable module (assumed same as above if empty)
  4547. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  4548. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  4549. -
  4550. -# Commands to strip libraries.
  4551. -old_striplib=$lt_old_striplib
  4552. -striplib=$lt_striplib
  4553. -
  4554. -# Dependencies to place before the objects being linked to create a
  4555. -# shared library.
  4556. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  4557. -
  4558. -# Dependencies to place after the objects being linked to create a
  4559. -# shared library.
  4560. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  4561. -
  4562. -# Dependencies to place before the objects being linked to create a
  4563. -# shared library.
  4564. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  4565. -
  4566. -# Dependencies to place after the objects being linked to create a
  4567. -# shared library.
  4568. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  4569. -
  4570. -# The library search path used internally by the compiler when linking
  4571. -# a shared library.
  4572. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  4573. -
  4574. -# Method to check whether dependent libraries are shared objects.
  4575. -deplibs_check_method=$lt_deplibs_check_method
  4576. -
  4577. -# Command to use when deplibs_check_method == file_magic.
  4578. -file_magic_cmd=$lt_file_magic_cmd
  4579. -
  4580. -# Flag that allows shared libraries with undefined symbols to be built.
  4581. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  4582. -
  4583. -# Flag that forces no undefined symbols.
  4584. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  4585. -
  4586. -# Commands used to finish a libtool library installation in a directory.
  4587. -finish_cmds=$lt_finish_cmds
  4588. -
  4589. -# Same as above, but a single script fragment to be evaled but not shown.
  4590. -finish_eval=$lt_finish_eval
  4591. -
  4592. -# Take the output of nm and produce a listing of raw symbols and C names.
  4593. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  4594. -
  4595. -# Transform the output of nm in a proper C declaration
  4596. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  4597. -
  4598. -# Transform the output of nm in a C name address pair
  4599. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  4600. -
  4601. -# This is the shared library runtime path variable.
  4602. -runpath_var=$runpath_var
  4603. -
  4604. -# This is the shared library path variable.
  4605. -shlibpath_var=$shlibpath_var
  4606. -
  4607. -# Is shlibpath searched before the hard-coded library search path?
  4608. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  4609. -
  4610. -# How to hardcode a shared library path into an executable.
  4611. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  4612. -
  4613. -# Whether we should hardcode library paths into libraries.
  4614. -hardcode_into_libs=$hardcode_into_libs
  4615. -
  4616. -# Flag to hardcode \$libdir into a binary during linking.
  4617. -# This must work even if \$libdir does not exist.
  4618. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  4619. -
  4620. -# If ld is used when linking, flag to hardcode \$libdir into
  4621. -# a binary during linking. This must work even if \$libdir does
  4622. -# not exist.
  4623. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  4624. -
  4625. -# Whether we need a single -rpath flag with a separated argument.
  4626. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  4627. -
  4628. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  4629. -# resulting binary.
  4630. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  4631. -
  4632. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  4633. -# resulting binary.
  4634. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  4635. -
  4636. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  4637. -# the resulting binary.
  4638. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  4639. -
  4640. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  4641. -# and all subsequent libraries and executables linked against it.
  4642. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  4643. -
  4644. -# Variables whose values should be saved in libtool wrapper scripts and
  4645. -# restored at relink time.
  4646. -variables_saved_for_relink="$variables_saved_for_relink"
  4647. -
  4648. -# Whether libtool must link a program against all its dependency libraries.
  4649. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  4650. -
  4651. -# Compile-time system search path for libraries
  4652. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  4653. -
  4654. -# Run-time system search path for libraries
  4655. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  4656. -
  4657. -# Fix the shell variable \$srcfile for the compiler.
  4658. -fix_srcfile_path=$lt_fix_srcfile_path
  4659. -
  4660. -# Set to yes if exported symbols are required.
  4661. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  4662. -
  4663. -# The commands to list exported symbols.
  4664. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  4665. -
  4666. -# The commands to extract the exported symbol list from a shared archive.
  4667. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  4668. -
  4669. -# Symbols that should not be listed in the preloaded symbols.
  4670. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  4671. -
  4672. -# Symbols that must always be exported.
  4673. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  4674. -
  4675. -ifelse([$1],[],
  4676. -[# ### END LIBTOOL CONFIG],
  4677. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  4678. -
  4679. -__EOF__
  4680. -
  4681. -ifelse([$1],[], [
  4682. - case $host_os in
  4683. - aix3*)
  4684. - cat <<\EOF >> "$cfgfile"
  4685. -
  4686. -# AIX sometimes has problems with the GCC collect2 program. For some
  4687. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  4688. -# vanish in a puff of smoke.
  4689. -if test "X${COLLECT_NAMES+set}" != Xset; then
  4690. - COLLECT_NAMES=
  4691. - export COLLECT_NAMES
  4692. -fi
  4693. -EOF
  4694. - ;;
  4695. - esac
  4696. -
  4697. - # We use sed instead of cat because bash on DJGPP gets confused if
  4698. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  4699. - # text mode, it properly converts lines to CR/LF. This bash problem
  4700. - # is reportedly fixed, but why not run on old versions too?
  4701. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  4702. -
  4703. - mv -f "$cfgfile" "$ofile" || \
  4704. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  4705. - chmod +x "$ofile"
  4706. -])
  4707. -else
  4708. - # If there is no Makefile yet, we rely on a make rule to execute
  4709. - # `config.status --recheck' to rerun these tests and create the
  4710. - # libtool script then.
  4711. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  4712. - if test -f "$ltmain_in"; then
  4713. - test -f Makefile && make "$ltmain"
  4714. - fi
  4715. -fi
  4716. -])# AC_LIBTOOL_CONFIG
  4717. -
  4718. -
  4719. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  4720. -# -------------------------------------------
  4721. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  4722. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  4723. -
  4724. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4725. -
  4726. -if test "$GCC" = yes; then
  4727. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4728. -
  4729. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  4730. - lt_cv_prog_compiler_rtti_exceptions,
  4731. - [-fno-rtti -fno-exceptions], [],
  4732. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  4733. -fi
  4734. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  4735. -
  4736. -
  4737. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  4738. -# ---------------------------------
  4739. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  4740. -[AC_REQUIRE([AC_CANONICAL_HOST])
  4741. -AC_REQUIRE([LT_AC_PROG_SED])
  4742. -AC_REQUIRE([AC_PROG_NM])
  4743. -AC_REQUIRE([AC_OBJEXT])
  4744. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  4745. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  4746. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  4747. -[
  4748. -# These are sane defaults that work on at least a few old systems.
  4749. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4750. -
  4751. -# Character class describing NM global symbol codes.
  4752. -symcode='[[BCDEGRST]]'
  4753. -
  4754. -# Regexp to match symbols that can be accessed directly from C.
  4755. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  4756. -
  4757. -# Transform an extracted symbol line into a proper C declaration
  4758. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4759. -
  4760. -# Transform an extracted symbol line into symbol name and symbol address
  4761. -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'"
  4762. -
  4763. -# Define system-specific variables.
  4764. -case $host_os in
  4765. -aix*)
  4766. - symcode='[[BCDT]]'
  4767. - ;;
  4768. -cygwin* | mingw* | pw32*)
  4769. - symcode='[[ABCDGISTW]]'
  4770. - ;;
  4771. -hpux*) # Its linker distinguishes data from code symbols
  4772. - if test "$host_cpu" = ia64; then
  4773. - symcode='[[ABCDEGRST]]'
  4774. - fi
  4775. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4776. - 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'"
  4777. - ;;
  4778. -linux* | k*bsd*-gnu)
  4779. - if test "$host_cpu" = ia64; then
  4780. - symcode='[[ABCDGIRSTW]]'
  4781. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4782. - 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'"
  4783. - fi
  4784. - ;;
  4785. -irix* | nonstopux*)
  4786. - symcode='[[BCDEGRST]]'
  4787. - ;;
  4788. -osf*)
  4789. - symcode='[[BCDEGQRST]]'
  4790. - ;;
  4791. -solaris*)
  4792. - symcode='[[BDRT]]'
  4793. - ;;
  4794. -sco3.2v5*)
  4795. - symcode='[[DT]]'
  4796. - ;;
  4797. -sysv4.2uw2*)
  4798. - symcode='[[DT]]'
  4799. - ;;
  4800. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4801. - symcode='[[ABDT]]'
  4802. - ;;
  4803. -sysv4)
  4804. - symcode='[[DFNSTU]]'
  4805. - ;;
  4806. -esac
  4807. -
  4808. -# Handle CRLF in mingw tool chain
  4809. -opt_cr=
  4810. -case $build_os in
  4811. -mingw*)
  4812. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4813. - ;;
  4814. -esac
  4815. -
  4816. -# If we're using GNU nm, then use its standard symbol codes.
  4817. -case `$NM -V 2>&1` in
  4818. -*GNU* | *'with BFD'*)
  4819. - symcode='[[ABCDGIRSTW]]' ;;
  4820. -esac
  4821. -
  4822. -# Try without a prefix undercore, then with it.
  4823. -for ac_symprfx in "" "_"; do
  4824. -
  4825. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4826. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  4827. -
  4828. - # Write the raw and C identifiers.
  4829. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4830. -
  4831. - # Check to see that the pipe works correctly.
  4832. - pipe_works=no
  4833. -
  4834. - rm -f conftest*
  4835. - cat > conftest.$ac_ext <<EOF
  4836. -#ifdef __cplusplus
  4837. -extern "C" {
  4838. -#endif
  4839. -char nm_test_var;
  4840. -void nm_test_func(){}
  4841. -#ifdef __cplusplus
  4842. -}
  4843. -#endif
  4844. -int main(){nm_test_var='a';nm_test_func();return(0);}
  4845. -EOF
  4846. -
  4847. - if AC_TRY_EVAL(ac_compile); then
  4848. - # Now try to grab the symbols.
  4849. - nlist=conftest.nm
  4850. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  4851. - # Try sorting and uniquifying the output.
  4852. - if sort "$nlist" | uniq > "$nlist"T; then
  4853. - mv -f "$nlist"T "$nlist"
  4854. - else
  4855. - rm -f "$nlist"T
  4856. - fi
  4857. -
  4858. - # Make sure that we snagged all the symbols we need.
  4859. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  4860. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  4861. - cat <<EOF > conftest.$ac_ext
  4862. -#ifdef __cplusplus
  4863. -extern "C" {
  4864. -#endif
  4865. -
  4866. -EOF
  4867. - # Now generate the symbol file.
  4868. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  4869. -
  4870. - cat <<EOF >> conftest.$ac_ext
  4871. -#if defined (__STDC__) && __STDC__
  4872. -# define lt_ptr_t void *
  4873. -#else
  4874. -# define lt_ptr_t char *
  4875. -# define const
  4876. -#endif
  4877. -
  4878. -/* The mapping between symbol names and symbols. */
  4879. -const struct {
  4880. - const char *name;
  4881. - lt_ptr_t address;
  4882. -}
  4883. -lt_preloaded_symbols[[]] =
  4884. -{
  4885. -EOF
  4886. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  4887. - cat <<\EOF >> conftest.$ac_ext
  4888. - {0, (lt_ptr_t) 0}
  4889. -};
  4890. -
  4891. -#ifdef __cplusplus
  4892. -}
  4893. -#endif
  4894. -EOF
  4895. - # Now try linking the two files.
  4896. - mv conftest.$ac_objext conftstm.$ac_objext
  4897. - lt_save_LIBS="$LIBS"
  4898. - lt_save_CFLAGS="$CFLAGS"
  4899. - LIBS="conftstm.$ac_objext"
  4900. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  4901. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  4902. - pipe_works=yes
  4903. - fi
  4904. - LIBS="$lt_save_LIBS"
  4905. - CFLAGS="$lt_save_CFLAGS"
  4906. - else
  4907. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  4908. - fi
  4909. - else
  4910. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  4911. - fi
  4912. - else
  4913. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  4914. - fi
  4915. - else
  4916. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  4917. - cat conftest.$ac_ext >&5
  4918. - fi
  4919. - rm -f conftest* conftst*
  4920. -
  4921. - # Do not use the global_symbol_pipe unless it works.
  4922. - if test "$pipe_works" = yes; then
  4923. - break
  4924. - else
  4925. - lt_cv_sys_global_symbol_pipe=
  4926. - fi
  4927. -done
  4928. -])
  4929. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4930. - lt_cv_sys_global_symbol_to_cdecl=
  4931. -fi
  4932. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4933. - AC_MSG_RESULT(failed)
  4934. -else
  4935. - AC_MSG_RESULT(ok)
  4936. -fi
  4937. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  4938. -
  4939. -
  4940. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  4941. -# ---------------------------------------
  4942. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  4943. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  4944. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4945. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  4946. -
  4947. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  4948. - ifelse([$1],[CXX],[
  4949. - # C++ specific cases for pic, static, wl, etc.
  4950. - if test "$GXX" = yes; then
  4951. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4952. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4953. -
  4954. - case $host_os in
  4955. - aix*)
  4956. - # All AIX code is PIC.
  4957. - if test "$host_cpu" = ia64; then
  4958. - # AIX 5 now supports IA64 processor
  4959. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4960. - fi
  4961. - ;;
  4962. - amigaos*)
  4963. - # FIXME: we need at least 68020 code to build shared libraries, but
  4964. - # adding the `-m68020' flag to GCC prevents building anything better,
  4965. - # like `-m68040'.
  4966. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4967. - ;;
  4968. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4969. - # PIC is the default for these OSes.
  4970. - ;;
  4971. - mingw* | cygwin* | os2* | pw32*)
  4972. - # This hack is so that the source file can tell whether it is being
  4973. - # built for inclusion in a dll (and should export symbols for example).
  4974. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4975. - # (--disable-auto-import) libraries
  4976. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  4977. - ;;
  4978. - darwin* | rhapsody*)
  4979. - # PIC is the default on this platform
  4980. - # Common symbols not allowed in MH_DYLIB files
  4981. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4982. - ;;
  4983. - *djgpp*)
  4984. - # DJGPP does not support shared libraries at all
  4985. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4986. - ;;
  4987. - interix[[3-9]]*)
  4988. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4989. - # Instead, we relocate shared libraries at runtime.
  4990. - ;;
  4991. - sysv4*MP*)
  4992. - if test -d /usr/nec; then
  4993. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4994. - fi
  4995. - ;;
  4996. - hpux*)
  4997. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4998. - # not for PA HP-UX.
  4999. - case $host_cpu in
  5000. - hppa*64*|ia64*)
  5001. - ;;
  5002. - *)
  5003. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5004. - ;;
  5005. - esac
  5006. - ;;
  5007. - *)
  5008. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5009. - ;;
  5010. - esac
  5011. - else
  5012. - case $host_os in
  5013. - aix4* | aix5*)
  5014. - # All AIX code is PIC.
  5015. - if test "$host_cpu" = ia64; then
  5016. - # AIX 5 now supports IA64 processor
  5017. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5018. - else
  5019. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5020. - fi
  5021. - ;;
  5022. - chorus*)
  5023. - case $cc_basename in
  5024. - cxch68*)
  5025. - # Green Hills C++ Compiler
  5026. - # _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"
  5027. - ;;
  5028. - esac
  5029. - ;;
  5030. - darwin*)
  5031. - # PIC is the default on this platform
  5032. - # Common symbols not allowed in MH_DYLIB files
  5033. - case $cc_basename in
  5034. - xlc*)
  5035. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  5036. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5037. - ;;
  5038. - esac
  5039. - ;;
  5040. - dgux*)
  5041. - case $cc_basename in
  5042. - ec++*)
  5043. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5044. - ;;
  5045. - ghcx*)
  5046. - # Green Hills C++ Compiler
  5047. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5048. - ;;
  5049. - *)
  5050. - ;;
  5051. - esac
  5052. - ;;
  5053. - freebsd* | dragonfly*)
  5054. - # FreeBSD uses GNU C++
  5055. - ;;
  5056. - hpux9* | hpux10* | hpux11*)
  5057. - case $cc_basename in
  5058. - CC*)
  5059. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5060. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5061. - if test "$host_cpu" != ia64; then
  5062. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5063. - fi
  5064. - ;;
  5065. - aCC*)
  5066. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5067. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5068. - case $host_cpu in
  5069. - hppa*64*|ia64*)
  5070. - # +Z the default
  5071. - ;;
  5072. - *)
  5073. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5074. - ;;
  5075. - esac
  5076. - ;;
  5077. - *)
  5078. - ;;
  5079. - esac
  5080. - ;;
  5081. - interix*)
  5082. - # This is c89, which is MS Visual C++ (no shared libs)
  5083. - # Anyone wants to do a port?
  5084. - ;;
  5085. - irix5* | irix6* | nonstopux*)
  5086. - case $cc_basename in
  5087. - CC*)
  5088. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5089. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5090. - # CC pic flag -KPIC is the default.
  5091. - ;;
  5092. - *)
  5093. - ;;
  5094. - esac
  5095. - ;;
  5096. - linux* | k*bsd*-gnu)
  5097. - case $cc_basename in
  5098. - KCC*)
  5099. - # KAI C++ Compiler
  5100. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  5101. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5102. - ;;
  5103. - icpc* | ecpc*)
  5104. - # Intel C++
  5105. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5106. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5107. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5108. - ;;
  5109. - pgCC*)
  5110. - # Portland Group C++ compiler.
  5111. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5112. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5113. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5114. - ;;
  5115. - cxx*)
  5116. - # Compaq C++
  5117. - # Make sure the PIC flag is empty. It appears that all Alpha
  5118. - # Linux and Compaq Tru64 Unix objects are PIC.
  5119. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5120. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5121. - ;;
  5122. - *)
  5123. - case `$CC -V 2>&1 | sed 5q` in
  5124. - *Sun\ C*)
  5125. - # Sun C++ 5.9
  5126. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5127. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5128. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5129. - ;;
  5130. - esac
  5131. - ;;
  5132. - esac
  5133. - ;;
  5134. - lynxos*)
  5135. - ;;
  5136. - m88k*)
  5137. - ;;
  5138. - mvs*)
  5139. - case $cc_basename in
  5140. - cxx*)
  5141. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  5142. - ;;
  5143. - *)
  5144. - ;;
  5145. - esac
  5146. - ;;
  5147. - netbsd*)
  5148. - ;;
  5149. - osf3* | osf4* | osf5*)
  5150. - case $cc_basename in
  5151. - KCC*)
  5152. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  5153. - ;;
  5154. - RCC*)
  5155. - # Rational C++ 2.4.1
  5156. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5157. - ;;
  5158. - cxx*)
  5159. - # Digital/Compaq C++
  5160. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5161. - # Make sure the PIC flag is empty. It appears that all Alpha
  5162. - # Linux and Compaq Tru64 Unix objects are PIC.
  5163. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5164. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5165. - ;;
  5166. - *)
  5167. - ;;
  5168. - esac
  5169. - ;;
  5170. - psos*)
  5171. - ;;
  5172. - solaris*)
  5173. - case $cc_basename in
  5174. - CC*)
  5175. - # Sun C++ 4.2, 5.x and Centerline C++
  5176. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5177. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5178. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5179. - ;;
  5180. - gcx*)
  5181. - # Green Hills C++ Compiler
  5182. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5183. - ;;
  5184. - *)
  5185. - ;;
  5186. - esac
  5187. - ;;
  5188. - sunos4*)
  5189. - case $cc_basename in
  5190. - CC*)
  5191. - # Sun C++ 4.x
  5192. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5193. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5194. - ;;
  5195. - lcc*)
  5196. - # Lucid
  5197. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5198. - ;;
  5199. - *)
  5200. - ;;
  5201. - esac
  5202. - ;;
  5203. - tandem*)
  5204. - case $cc_basename in
  5205. - NCC*)
  5206. - # NonStop-UX NCC 3.20
  5207. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5208. - ;;
  5209. - *)
  5210. - ;;
  5211. - esac
  5212. - ;;
  5213. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5214. - case $cc_basename in
  5215. - CC*)
  5216. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5217. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5218. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5219. - ;;
  5220. - esac
  5221. - ;;
  5222. - vxworks*)
  5223. - ;;
  5224. - *)
  5225. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5226. - ;;
  5227. - esac
  5228. - fi
  5229. -],
  5230. -[
  5231. - if test "$GCC" = yes; then
  5232. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5233. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5234. -
  5235. - case $host_os in
  5236. - aix*)
  5237. - # All AIX code is PIC.
  5238. - if test "$host_cpu" = ia64; then
  5239. - # AIX 5 now supports IA64 processor
  5240. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5241. - fi
  5242. - ;;
  5243. -
  5244. - amigaos*)
  5245. - # FIXME: we need at least 68020 code to build shared libraries, but
  5246. - # adding the `-m68020' flag to GCC prevents building anything better,
  5247. - # like `-m68040'.
  5248. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  5249. - ;;
  5250. -
  5251. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5252. - # PIC is the default for these OSes.
  5253. - ;;
  5254. -
  5255. - mingw* | cygwin* | pw32* | os2*)
  5256. - # This hack is so that the source file can tell whether it is being
  5257. - # built for inclusion in a dll (and should export symbols for example).
  5258. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  5259. - # (--disable-auto-import) libraries
  5260. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  5261. - ;;
  5262. -
  5263. - darwin* | rhapsody*)
  5264. - # PIC is the default on this platform
  5265. - # Common symbols not allowed in MH_DYLIB files
  5266. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  5267. - ;;
  5268. -
  5269. - interix[[3-9]]*)
  5270. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5271. - # Instead, we relocate shared libraries at runtime.
  5272. - ;;
  5273. -
  5274. - msdosdjgpp*)
  5275. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  5276. - # on systems that don't support them.
  5277. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5278. - enable_shared=no
  5279. - ;;
  5280. -
  5281. - sysv4*MP*)
  5282. - if test -d /usr/nec; then
  5283. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5284. - fi
  5285. - ;;
  5286. -
  5287. - hpux*)
  5288. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5289. - # not for PA HP-UX.
  5290. - case $host_cpu in
  5291. - hppa*64*|ia64*)
  5292. - # +Z the default
  5293. - ;;
  5294. - *)
  5295. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5296. - ;;
  5297. - esac
  5298. - ;;
  5299. -
  5300. - *)
  5301. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5302. - ;;
  5303. - esac
  5304. - else
  5305. - # PORTME Check for flag to pass linker flags through the system compiler.
  5306. - case $host_os in
  5307. - aix*)
  5308. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5309. - if test "$host_cpu" = ia64; then
  5310. - # AIX 5 now supports IA64 processor
  5311. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5312. - else
  5313. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5314. - fi
  5315. - ;;
  5316. - darwin*)
  5317. - # PIC is the default on this platform
  5318. - # Common symbols not allowed in MH_DYLIB files
  5319. - case $cc_basename in
  5320. - xlc*)
  5321. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  5322. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5323. - ;;
  5324. - esac
  5325. - ;;
  5326. -
  5327. - mingw* | cygwin* | pw32* | os2*)
  5328. - # This hack is so that the source file can tell whether it is being
  5329. - # built for inclusion in a dll (and should export symbols for example).
  5330. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  5331. - ;;
  5332. -
  5333. - hpux9* | hpux10* | hpux11*)
  5334. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5335. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5336. - # not for PA HP-UX.
  5337. - case $host_cpu in
  5338. - hppa*64*|ia64*)
  5339. - # +Z the default
  5340. - ;;
  5341. - *)
  5342. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5343. - ;;
  5344. - esac
  5345. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5346. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5347. - ;;
  5348. -
  5349. - irix5* | irix6* | nonstopux*)
  5350. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5351. - # PIC (with -KPIC) is the default.
  5352. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5353. - ;;
  5354. -
  5355. - newsos6)
  5356. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5357. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5358. - ;;
  5359. -
  5360. - linux* | k*bsd*-gnu)
  5361. - case $cc_basename in
  5362. - icc* | ecc*)
  5363. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5364. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5365. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5366. - ;;
  5367. - pgcc* | pgf77* | pgf90* | pgf95*)
  5368. - # Portland Group compilers (*not* the Pentium gcc compiler,
  5369. - # which looks to be a dead project)
  5370. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5371. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5372. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5373. - ;;
  5374. - ccc*)
  5375. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5376. - # All Alpha code is PIC.
  5377. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5378. - ;;
  5379. - *)
  5380. - case `$CC -V 2>&1 | sed 5q` in
  5381. - *Sun\ C*)
  5382. - # Sun C 5.9
  5383. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5384. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5385. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5386. - ;;
  5387. - *Sun\ F*)
  5388. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  5389. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5390. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5391. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  5392. - ;;
  5393. - esac
  5394. - ;;
  5395. - esac
  5396. - ;;
  5397. -
  5398. - osf3* | osf4* | osf5*)
  5399. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5400. - # All OSF/1 code is PIC.
  5401. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5402. - ;;
  5403. -
  5404. - rdos*)
  5405. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5406. - ;;
  5407. -
  5408. - solaris*)
  5409. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5410. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5411. - case $cc_basename in
  5412. - f77* | f90* | f95*)
  5413. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  5414. - *)
  5415. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  5416. - esac
  5417. - ;;
  5418. -
  5419. - sunos4*)
  5420. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5421. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5422. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5423. - ;;
  5424. -
  5425. - sysv4 | sysv4.2uw2* | sysv4.3*)
  5426. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5427. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5428. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5429. - ;;
  5430. -
  5431. - sysv4*MP*)
  5432. - if test -d /usr/nec ;then
  5433. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  5434. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5435. - fi
  5436. - ;;
  5437. -
  5438. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5439. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5440. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5441. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5442. - ;;
  5443. -
  5444. - unicos*)
  5445. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5446. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5447. - ;;
  5448. -
  5449. - uts4*)
  5450. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5451. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5452. - ;;
  5453. -
  5454. - *)
  5455. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5456. - ;;
  5457. - esac
  5458. - fi
  5459. -])
  5460. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  5461. -
  5462. -#
  5463. -# Check to make sure the PIC flag actually works.
  5464. -#
  5465. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  5466. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  5467. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  5468. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  5469. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  5470. - "" | " "*) ;;
  5471. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  5472. - esac],
  5473. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5474. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  5475. -fi
  5476. -case $host_os in
  5477. - # For platforms which do not support PIC, -DPIC is meaningless:
  5478. - *djgpp*)
  5479. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5480. - ;;
  5481. - *)
  5482. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  5483. - ;;
  5484. -esac
  5485. -
  5486. -#
  5487. -# Check to make sure the static flag actually works.
  5488. -#
  5489. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  5490. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  5491. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  5492. - $lt_tmp_static_flag,
  5493. - [],
  5494. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  5495. -])
  5496. -
  5497. -
  5498. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  5499. -# ------------------------------------
  5500. -# See if the linker supports building shared libraries.
  5501. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  5502. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  5503. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5504. -ifelse([$1],[CXX],[
  5505. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5506. - case $host_os in
  5507. - aix4* | aix5*)
  5508. - # If we're using GNU nm, then we don't want the "-C" option.
  5509. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5510. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5511. - _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'
  5512. - else
  5513. - _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'
  5514. - fi
  5515. - ;;
  5516. - pw32*)
  5517. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  5518. - ;;
  5519. - cygwin* | mingw*)
  5520. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  5521. - ;;
  5522. - *)
  5523. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5524. - ;;
  5525. - esac
  5526. -],[
  5527. - runpath_var=
  5528. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5529. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5530. - _LT_AC_TAGVAR(archive_cmds, $1)=
  5531. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5532. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  5533. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  5534. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5535. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5536. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  5537. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5538. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5539. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5540. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5541. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5542. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5543. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5544. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5545. - _LT_AC_TAGVAR(module_cmds, $1)=
  5546. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5547. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5548. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5549. - # include_expsyms should be a list of space-separated symbols to be *always*
  5550. - # included in the symbol list
  5551. - _LT_AC_TAGVAR(include_expsyms, $1)=
  5552. - # exclude_expsyms can be an extended regexp of symbols to exclude
  5553. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5554. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5555. - # as well as any symbol that contains `d'.
  5556. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  5557. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5558. - # platforms (ab)use it in PIC code, but their linkers get confused if
  5559. - # the symbol is explicitly referenced. Since portable code cannot
  5560. - # rely on this symbol name, it's probably fine to never include it in
  5561. - # preloaded symbol tables.
  5562. - extract_expsyms_cmds=
  5563. - # Just being paranoid about ensuring that cc_basename is set.
  5564. - _LT_CC_BASENAME([$compiler])
  5565. - case $host_os in
  5566. - cygwin* | mingw* | pw32*)
  5567. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5568. - # When not using gcc, we currently assume that we are using
  5569. - # Microsoft Visual C++.
  5570. - if test "$GCC" != yes; then
  5571. - with_gnu_ld=no
  5572. - fi
  5573. - ;;
  5574. - interix*)
  5575. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  5576. - with_gnu_ld=yes
  5577. - ;;
  5578. - openbsd*)
  5579. - with_gnu_ld=no
  5580. - ;;
  5581. - esac
  5582. -
  5583. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5584. - if test "$with_gnu_ld" = yes; then
  5585. - # If archive_cmds runs LD, not CC, wlarc should be empty
  5586. - wlarc='${wl}'
  5587. -
  5588. - # Set some defaults for GNU ld with shared library support. These
  5589. - # are reset later if shared libraries are not supported. Putting them
  5590. - # here allows them to be overridden if necessary.
  5591. - runpath_var=LD_RUN_PATH
  5592. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5593. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5594. - # ancient GNU ld didn't support --whole-archive et. al.
  5595. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  5596. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5597. - else
  5598. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5599. - fi
  5600. - supports_anon_versioning=no
  5601. - case `$LD -v 2>/dev/null` in
  5602. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  5603. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5604. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5605. - *\ 2.11.*) ;; # other 2.11 versions
  5606. - *) supports_anon_versioning=yes ;;
  5607. - esac
  5608. -
  5609. - # See if GNU ld supports shared libraries.
  5610. - case $host_os in
  5611. - aix3* | aix4* | aix5*)
  5612. - # On AIX/PPC, the GNU linker is very broken
  5613. - if test "$host_cpu" != ia64; then
  5614. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5615. - cat <<EOF 1>&2
  5616. -
  5617. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5618. -*** to be unable to reliably create shared libraries on AIX.
  5619. -*** Therefore, libtool is disabling shared libraries support. If you
  5620. -*** really care for shared libraries, you may want to modify your PATH
  5621. -*** so that a non-GNU linker is found, and then restart.
  5622. -
  5623. -EOF
  5624. - fi
  5625. - ;;
  5626. -
  5627. - amigaos*)
  5628. - _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)'
  5629. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5630. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5631. -
  5632. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  5633. - # that the semantics of dynamic libraries on AmigaOS, at least up
  5634. - # to version 4, is to share data among multiple programs linked
  5635. - # with the same dynamic library. Since this doesn't match the
  5636. - # behavior of shared libraries on other platforms, we can't use
  5637. - # them.
  5638. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5639. - ;;
  5640. -
  5641. - beos*)
  5642. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5643. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5644. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5645. - # support --undefined. This deserves some investigation. FIXME
  5646. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5647. - else
  5648. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5649. - fi
  5650. - ;;
  5651. -
  5652. - cygwin* | mingw* | pw32*)
  5653. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5654. - # as there is no search path for DLLs.
  5655. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5656. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5657. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5658. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5659. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  5660. -
  5661. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5662. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5663. - # If the export-symbols file already is a .def file (1st line
  5664. - # is EXPORTS), use it as is; otherwise, prepend...
  5665. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5666. - cp $export_symbols $output_objdir/$soname.def;
  5667. - else
  5668. - echo EXPORTS > $output_objdir/$soname.def;
  5669. - cat $export_symbols >> $output_objdir/$soname.def;
  5670. - fi~
  5671. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5672. - else
  5673. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5674. - fi
  5675. - ;;
  5676. -
  5677. - interix[[3-9]]*)
  5678. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5679. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5680. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5681. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5682. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5683. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  5684. - # default) and relocated if they conflict, which is a slow very memory
  5685. - # consuming and fragmenting process. To avoid this, we pick a random,
  5686. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5687. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5688. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5689. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5690. - ;;
  5691. -
  5692. - gnu* | linux* | k*bsd*-gnu)
  5693. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5694. - tmp_addflag=
  5695. - case $cc_basename,$host_cpu in
  5696. - pgcc*) # Portland Group C compiler
  5697. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5698. - tmp_addflag=' $pic_flag'
  5699. - ;;
  5700. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  5701. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5702. - tmp_addflag=' $pic_flag -Mnomain' ;;
  5703. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5704. - tmp_addflag=' -i_dynamic' ;;
  5705. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5706. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  5707. - ifc* | ifort*) # Intel Fortran compiler
  5708. - tmp_addflag=' -nofor_main' ;;
  5709. - esac
  5710. - case `$CC -V 2>&1 | sed 5q` in
  5711. - *Sun\ C*) # Sun C 5.9
  5712. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5713. - tmp_sharedflag='-G' ;;
  5714. - *Sun\ F*) # Sun Fortran 8.3
  5715. - tmp_sharedflag='-G' ;;
  5716. - *)
  5717. - tmp_sharedflag='-shared' ;;
  5718. - esac
  5719. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5720. -
  5721. - if test $supports_anon_versioning = yes; then
  5722. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  5723. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5724. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  5725. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5726. - fi
  5727. - else
  5728. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5729. - fi
  5730. - ;;
  5731. -
  5732. - netbsd*)
  5733. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5734. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5735. - wlarc=
  5736. - else
  5737. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5738. - _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'
  5739. - fi
  5740. - ;;
  5741. -
  5742. - solaris*)
  5743. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  5744. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5745. - cat <<EOF 1>&2
  5746. -
  5747. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5748. -*** create shared libraries on Solaris systems. Therefore, libtool
  5749. -*** is disabling shared libraries support. We urge you to upgrade GNU
  5750. -*** binutils to release 2.9.1 or newer. Another option is to modify
  5751. -*** your PATH or compiler configuration so that the native linker is
  5752. -*** used, and then restart.
  5753. -
  5754. -EOF
  5755. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5756. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5757. - _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'
  5758. - else
  5759. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5760. - fi
  5761. - ;;
  5762. -
  5763. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  5764. - case `$LD -v 2>&1` in
  5765. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  5766. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5767. - cat <<_LT_EOF 1>&2
  5768. -
  5769. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  5770. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  5771. -*** is disabling shared libraries support. We urge you to upgrade GNU
  5772. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  5773. -*** your PATH or compiler configuration so that the native linker is
  5774. -*** used, and then restart.
  5775. -
  5776. -_LT_EOF
  5777. - ;;
  5778. - *)
  5779. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5780. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  5781. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  5782. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  5783. - else
  5784. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5785. - fi
  5786. - ;;
  5787. - esac
  5788. - ;;
  5789. -
  5790. - sunos4*)
  5791. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5792. - wlarc=
  5793. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5794. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5795. - ;;
  5796. -
  5797. - *)
  5798. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5799. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5800. - _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'
  5801. - else
  5802. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5803. - fi
  5804. - ;;
  5805. - esac
  5806. -
  5807. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  5808. - runpath_var=
  5809. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5810. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5811. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5812. - fi
  5813. - else
  5814. - # PORTME fill in a description of your system's linker (not GNU ld)
  5815. - case $host_os in
  5816. - aix3*)
  5817. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5818. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5819. - _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'
  5820. - # Note: this linker hardcodes the directories in LIBPATH if there
  5821. - # are no directories specified by -L.
  5822. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5823. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  5824. - # Neither direct hardcoding nor static linking is supported with a
  5825. - # broken collect2.
  5826. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5827. - fi
  5828. - ;;
  5829. -
  5830. - aix4* | aix5*)
  5831. - if test "$host_cpu" = ia64; then
  5832. - # On IA64, the linker does run time linking by default, so we don't
  5833. - # have to do anything special.
  5834. - aix_use_runtimelinking=no
  5835. - exp_sym_flag='-Bexport'
  5836. - no_entry_flag=""
  5837. - else
  5838. - # If we're using GNU nm, then we don't want the "-C" option.
  5839. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5840. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5841. - _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'
  5842. - else
  5843. - _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'
  5844. - fi
  5845. - aix_use_runtimelinking=no
  5846. -
  5847. - # Test if we are trying to use run time linking or normal
  5848. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5849. - # need to do runtime linking.
  5850. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  5851. - for ld_flag in $LDFLAGS; do
  5852. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5853. - aix_use_runtimelinking=yes
  5854. - break
  5855. - fi
  5856. - done
  5857. - ;;
  5858. - esac
  5859. -
  5860. - exp_sym_flag='-bexport'
  5861. - no_entry_flag='-bnoentry'
  5862. - fi
  5863. -
  5864. - # When large executables or shared objects are built, AIX ld can
  5865. - # have problems creating the table of contents. If linking a library
  5866. - # or program results in "error TOC overflow" add -mminimal-toc to
  5867. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5868. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5869. -
  5870. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  5871. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5872. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5873. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5874. -
  5875. - if test "$GCC" = yes; then
  5876. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5877. - # We only want to do this on AIX 4.2 and lower, the check
  5878. - # below for broken collect2 doesn't work under 4.3+
  5879. - collect2name=`${CC} -print-prog-name=collect2`
  5880. - if test -f "$collect2name" && \
  5881. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  5882. - then
  5883. - # We have reworked collect2
  5884. - :
  5885. - else
  5886. - # We have old collect2
  5887. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5888. - # It fails to find uninstalled libraries when the uninstalled
  5889. - # path is not listed in the libpath. Setting hardcode_minus_L
  5890. - # to unsupported forces relinking
  5891. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5892. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5893. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5894. - fi
  5895. - ;;
  5896. - esac
  5897. - shared_flag='-shared'
  5898. - if test "$aix_use_runtimelinking" = yes; then
  5899. - shared_flag="$shared_flag "'${wl}-G'
  5900. - fi
  5901. - else
  5902. - # not using gcc
  5903. - if test "$host_cpu" = ia64; then
  5904. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5905. - # chokes on -Wl,-G. The following line is correct:
  5906. - shared_flag='-G'
  5907. - else
  5908. - if test "$aix_use_runtimelinking" = yes; then
  5909. - shared_flag='${wl}-G'
  5910. - else
  5911. - shared_flag='${wl}-bM:SRE'
  5912. - fi
  5913. - fi
  5914. - fi
  5915. -
  5916. - # It seems that -bexpall does not export symbols beginning with
  5917. - # underscore (_), so it is better to generate a list of symbols to export.
  5918. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5919. - if test "$aix_use_runtimelinking" = yes; then
  5920. - # Warning - without using the other runtime loading flags (-brtl),
  5921. - # -berok will link without error, but may produce a broken library.
  5922. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5923. - # Determine the default libpath from the value encoded in an empty executable.
  5924. - _LT_AC_SYS_LIBPATH_AIX
  5925. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5926. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5927. - else
  5928. - if test "$host_cpu" = ia64; then
  5929. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5930. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5931. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  5932. - else
  5933. - # Determine the default libpath from the value encoded in an empty executable.
  5934. - _LT_AC_SYS_LIBPATH_AIX
  5935. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5936. - # Warning - without using the other run time loading flags,
  5937. - # -berok will link without error, but may produce a broken library.
  5938. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5939. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5940. - # Exported symbols can be pulled into shared objects from archives
  5941. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5942. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5943. - # This is similar to how AIX traditionally builds its shared libraries.
  5944. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  5945. - fi
  5946. - fi
  5947. - ;;
  5948. -
  5949. - amigaos*)
  5950. - _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)'
  5951. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5952. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5953. - # see comment about different semantics on the GNU ld section
  5954. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5955. - ;;
  5956. -
  5957. - bsdi[[45]]*)
  5958. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  5959. - ;;
  5960. -
  5961. - cygwin* | mingw* | pw32*)
  5962. - # When not using gcc, we currently assume that we are using
  5963. - # Microsoft Visual C++.
  5964. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  5965. - # no search path for DLLs.
  5966. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5967. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5968. - # Tell ltmain to make .lib files, not .a files.
  5969. - libext=lib
  5970. - # Tell ltmain to make .dll files, not .so files.
  5971. - shrext_cmds=".dll"
  5972. - # FIXME: Setting linknames here is a bad hack.
  5973. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  5974. - # The linker will automatically build a .lib file if we build a DLL.
  5975. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  5976. - # FIXME: Should let the user specify the lib program.
  5977. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  5978. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  5979. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5980. - ;;
  5981. -
  5982. - darwin* | rhapsody*)
  5983. - case $host_os in
  5984. - rhapsody* | darwin1.[[012]])
  5985. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  5986. - ;;
  5987. - *) # Darwin 1.3 on
  5988. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5989. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5990. - else
  5991. - case ${MACOSX_DEPLOYMENT_TARGET} in
  5992. - 10.[[012]])
  5993. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5994. - ;;
  5995. - 10.*)
  5996. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  5997. - ;;
  5998. - esac
  5999. - fi
  6000. - ;;
  6001. - esac
  6002. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6003. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  6004. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  6005. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6006. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  6007. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6008. - if test "$GCC" = yes ; then
  6009. - output_verbose_link_cmd='echo'
  6010. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6011. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6012. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6013. - _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}'
  6014. - _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}'
  6015. - else
  6016. - case $cc_basename in
  6017. - xlc*)
  6018. - output_verbose_link_cmd='echo'
  6019. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  6020. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6021. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6022. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6023. - _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}'
  6024. - ;;
  6025. - *)
  6026. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6027. - ;;
  6028. - esac
  6029. - fi
  6030. - ;;
  6031. -
  6032. - dgux*)
  6033. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6034. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6035. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6036. - ;;
  6037. -
  6038. - freebsd1*)
  6039. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6040. - ;;
  6041. -
  6042. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6043. - # support. Future versions do this automatically, but an explicit c++rt0.o
  6044. - # does not break anything, and helps significantly (at the cost of a little
  6045. - # extra space).
  6046. - freebsd2.2*)
  6047. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6048. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6049. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6050. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6051. - ;;
  6052. -
  6053. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6054. - freebsd2*)
  6055. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6056. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6057. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6058. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6059. - ;;
  6060. -
  6061. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6062. - freebsd* | dragonfly*)
  6063. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6064. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6065. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6066. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6067. - ;;
  6068. -
  6069. - hpux9*)
  6070. - if test "$GCC" = yes; then
  6071. - _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'
  6072. - else
  6073. - _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'
  6074. - fi
  6075. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6076. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6077. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6078. -
  6079. - # hardcode_minus_L: Not really in the search PATH,
  6080. - # but as the default location of the library.
  6081. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6082. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6083. - ;;
  6084. -
  6085. - hpux10*)
  6086. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6087. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6088. - else
  6089. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6090. - fi
  6091. - if test "$with_gnu_ld" = no; then
  6092. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6093. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6094. -
  6095. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6096. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6097. -
  6098. - # hardcode_minus_L: Not really in the search PATH,
  6099. - # but as the default location of the library.
  6100. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6101. - fi
  6102. - ;;
  6103. -
  6104. - hpux11*)
  6105. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6106. - case $host_cpu in
  6107. - hppa*64*)
  6108. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6109. - ;;
  6110. - ia64*)
  6111. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6112. - ;;
  6113. - *)
  6114. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6115. - ;;
  6116. - esac
  6117. - else
  6118. - case $host_cpu in
  6119. - hppa*64*)
  6120. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6121. - ;;
  6122. - ia64*)
  6123. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6124. - ;;
  6125. - *)
  6126. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6127. - ;;
  6128. - esac
  6129. - fi
  6130. - if test "$with_gnu_ld" = no; then
  6131. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6132. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6133. -
  6134. - case $host_cpu in
  6135. - hppa*64*|ia64*)
  6136. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  6137. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  6138. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6139. - ;;
  6140. - *)
  6141. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6142. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6143. -
  6144. - # hardcode_minus_L: Not really in the search PATH,
  6145. - # but as the default location of the library.
  6146. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6147. - ;;
  6148. - esac
  6149. - fi
  6150. - ;;
  6151. -
  6152. - irix5* | irix6* | nonstopux*)
  6153. - if test "$GCC" = yes; then
  6154. - _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'
  6155. - else
  6156. - _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'
  6157. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  6158. - fi
  6159. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6160. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6161. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6162. - ;;
  6163. -
  6164. - netbsd*)
  6165. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6166. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6167. - else
  6168. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6169. - fi
  6170. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6171. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6172. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6173. - ;;
  6174. -
  6175. - newsos6)
  6176. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6177. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6178. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6179. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6180. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6181. - ;;
  6182. -
  6183. - openbsd*)
  6184. - if test -f /usr/libexec/ld.so; then
  6185. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6186. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6187. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6188. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6189. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6190. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6191. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6192. - else
  6193. - case $host_os in
  6194. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  6195. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6196. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6197. - ;;
  6198. - *)
  6199. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6200. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6201. - ;;
  6202. - esac
  6203. - fi
  6204. - else
  6205. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6206. - fi
  6207. - ;;
  6208. -
  6209. - os2*)
  6210. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6211. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6212. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  6213. - _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'
  6214. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6215. - ;;
  6216. -
  6217. - osf3*)
  6218. - if test "$GCC" = yes; then
  6219. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6220. - _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'
  6221. - else
  6222. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6223. - _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'
  6224. - fi
  6225. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6226. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6227. - ;;
  6228. -
  6229. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  6230. - if test "$GCC" = yes; then
  6231. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6232. - _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'
  6233. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6234. - else
  6235. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6236. - _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'
  6237. - _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~
  6238. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  6239. -
  6240. - # Both c and cxx compiler support -rpath directly
  6241. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6242. - fi
  6243. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6244. - ;;
  6245. -
  6246. - solaris*)
  6247. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  6248. - if test "$GCC" = yes; then
  6249. - wlarc='${wl}'
  6250. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6251. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6252. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6253. - else
  6254. - wlarc=''
  6255. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6256. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6257. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6258. - fi
  6259. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6260. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6261. - case $host_os in
  6262. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6263. - *)
  6264. - # The compiler driver will combine and reorder linker options,
  6265. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  6266. - # but is careful enough not to reorder.
  6267. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  6268. - if test "$GCC" = yes; then
  6269. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6270. - else
  6271. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6272. - fi
  6273. - ;;
  6274. - esac
  6275. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6276. - ;;
  6277. -
  6278. - sunos4*)
  6279. - if test "x$host_vendor" = xsequent; then
  6280. - # Use $CC to link under sequent, because it throws in some extra .o
  6281. - # files that make .init and .fini sections work.
  6282. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6283. - else
  6284. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6285. - fi
  6286. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6287. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6288. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6289. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6290. - ;;
  6291. -
  6292. - sysv4)
  6293. - case $host_vendor in
  6294. - sni)
  6295. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6296. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  6297. - ;;
  6298. - siemens)
  6299. - ## LD is ld it makes a PLAMLIB
  6300. - ## CC just makes a GrossModule.
  6301. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6302. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  6303. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  6304. - ;;
  6305. - motorola)
  6306. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6307. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  6308. - ;;
  6309. - esac
  6310. - runpath_var='LD_RUN_PATH'
  6311. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6312. - ;;
  6313. -
  6314. - sysv4.3*)
  6315. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6316. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6317. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  6318. - ;;
  6319. -
  6320. - sysv4*MP*)
  6321. - if test -d /usr/nec; then
  6322. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6323. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6324. - runpath_var=LD_RUN_PATH
  6325. - hardcode_runpath_var=yes
  6326. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  6327. - fi
  6328. - ;;
  6329. -
  6330. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6331. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6332. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6333. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6334. - runpath_var='LD_RUN_PATH'
  6335. -
  6336. - if test "$GCC" = yes; then
  6337. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6338. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6339. - else
  6340. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6341. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6342. - fi
  6343. - ;;
  6344. -
  6345. - sysv5* | sco3.2v5* | sco5v6*)
  6346. - # Note: We can NOT use -z defs as we might desire, because we do not
  6347. - # link with -lc, and that would cause any symbols used from libc to
  6348. - # always be unresolved, which means just about no library would
  6349. - # ever link correctly. If we're not using GNU ld we use -z text
  6350. - # though, which does catch some bad symbols but isn't as heavy-handed
  6351. - # as -z defs.
  6352. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6353. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6354. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6355. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6356. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6357. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  6358. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6359. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6360. - runpath_var='LD_RUN_PATH'
  6361. -
  6362. - if test "$GCC" = yes; then
  6363. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6364. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6365. - else
  6366. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6367. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6368. - fi
  6369. - ;;
  6370. -
  6371. - uts4*)
  6372. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6373. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6374. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6375. - ;;
  6376. -
  6377. - *)
  6378. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6379. - ;;
  6380. - esac
  6381. - fi
  6382. -])
  6383. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  6384. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6385. -
  6386. -#
  6387. -# Do we need to explicitly link libc?
  6388. -#
  6389. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  6390. -x|xyes)
  6391. - # Assume -lc should be added
  6392. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  6393. -
  6394. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  6395. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  6396. - *'~'*)
  6397. - # FIXME: we may have to deal with multi-command sequences.
  6398. - ;;
  6399. - '$CC '*)
  6400. - # Test whether the compiler implicitly links with -lc since on some
  6401. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6402. - # to ld, don't add -lc before -lgcc.
  6403. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  6404. - $rm conftest*
  6405. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6406. -
  6407. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  6408. - soname=conftest
  6409. - lib=conftest
  6410. - libobjs=conftest.$ac_objext
  6411. - deplibs=
  6412. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6413. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  6414. - compiler_flags=-v
  6415. - linker_flags=-v
  6416. - verstring=
  6417. - output_objdir=.
  6418. - libname=conftest
  6419. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  6420. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  6421. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  6422. - then
  6423. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6424. - else
  6425. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  6426. - fi
  6427. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  6428. - else
  6429. - cat conftest.err 1>&5
  6430. - fi
  6431. - $rm conftest*
  6432. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  6433. - ;;
  6434. - esac
  6435. - fi
  6436. - ;;
  6437. -esac
  6438. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  6439. -
  6440. -
  6441. -# _LT_AC_FILE_LTDLL_C
  6442. -# -------------------
  6443. -# Be careful that the start marker always follows a newline.
  6444. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  6445. -# /* ltdll.c starts here */
  6446. -# #define WIN32_LEAN_AND_MEAN
  6447. -# #include <windows.h>
  6448. -# #undef WIN32_LEAN_AND_MEAN
  6449. -# #include <stdio.h>
  6450. -#
  6451. -# #ifndef __CYGWIN__
  6452. -# # ifdef __CYGWIN32__
  6453. -# # define __CYGWIN__ __CYGWIN32__
  6454. -# # endif
  6455. -# #endif
  6456. -#
  6457. -# #ifdef __cplusplus
  6458. -# extern "C" {
  6459. -# #endif
  6460. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  6461. -# #ifdef __cplusplus
  6462. -# }
  6463. -# #endif
  6464. -#
  6465. -# #ifdef __CYGWIN__
  6466. -# #include <cygwin/cygwin_dll.h>
  6467. -# DECLARE_CYGWIN_DLL( DllMain );
  6468. -# #endif
  6469. -# HINSTANCE __hDllInstance_base;
  6470. -#
  6471. -# BOOL APIENTRY
  6472. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  6473. -# {
  6474. -# __hDllInstance_base = hInst;
  6475. -# return TRUE;
  6476. -# }
  6477. -# /* ltdll.c ends here */
  6478. -])# _LT_AC_FILE_LTDLL_C
  6479. -
  6480. -
  6481. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  6482. -# ---------------------------------
  6483. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  6484. -
  6485. -
  6486. -# old names
  6487. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  6488. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  6489. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  6490. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  6491. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  6492. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  6493. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  6494. -
  6495. -# This is just to silence aclocal about the macro not being used
  6496. -ifelse([AC_DISABLE_FAST_INSTALL])
  6497. -
  6498. -AC_DEFUN([LT_AC_PROG_GCJ],
  6499. -[AC_CHECK_TOOL(GCJ, gcj, no)
  6500. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6501. - AC_SUBST(GCJFLAGS)
  6502. -])
  6503. -
  6504. -AC_DEFUN([LT_AC_PROG_RC],
  6505. -[AC_CHECK_TOOL(RC, windres, no)
  6506. -])
  6507. -
  6508. -
  6509. -# Cheap backport of AS_EXECUTABLE_P and required macros
  6510. -# from Autoconf 2.59; we should not use $as_executable_p directly.
  6511. -
  6512. -# _AS_TEST_PREPARE
  6513. -# ----------------
  6514. -m4_ifndef([_AS_TEST_PREPARE],
  6515. -[m4_defun([_AS_TEST_PREPARE],
  6516. -[if test -x / >/dev/null 2>&1; then
  6517. - as_executable_p='test -x'
  6518. -else
  6519. - as_executable_p='test -f'
  6520. -fi
  6521. -])])# _AS_TEST_PREPARE
  6522. -
  6523. -# AS_EXECUTABLE_P
  6524. -# ---------------
  6525. -# Check whether a file is executable.
  6526. -m4_ifndef([AS_EXECUTABLE_P],
  6527. -[m4_defun([AS_EXECUTABLE_P],
  6528. -[AS_REQUIRE([_AS_TEST_PREPARE])dnl
  6529. -$as_executable_p $1[]dnl
  6530. -])])# AS_EXECUTABLE_P
  6531. -
  6532. -# NOTE: This macro has been submitted for inclusion into #
  6533. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  6534. -# a released version of Autoconf we should remove this #
  6535. -# macro and use it instead. #
  6536. -# LT_AC_PROG_SED
  6537. -# --------------
  6538. -# Check for a fully-functional sed program, that truncates
  6539. -# as few characters as possible. Prefer GNU sed if found.
  6540. -AC_DEFUN([LT_AC_PROG_SED],
  6541. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  6542. -AC_CACHE_VAL(lt_cv_path_SED,
  6543. -[# Loop through the user's path and test for sed and gsed.
  6544. -# Then use that list of sed's as ones to test for truncation.
  6545. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6546. -for as_dir in $PATH
  6547. -do
  6548. - IFS=$as_save_IFS
  6549. - test -z "$as_dir" && as_dir=.
  6550. - for lt_ac_prog in sed gsed; do
  6551. - for ac_exec_ext in '' $ac_executable_extensions; do
  6552. - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
  6553. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  6554. - fi
  6555. - done
  6556. - done
  6557. -done
  6558. -IFS=$as_save_IFS
  6559. -lt_ac_max=0
  6560. -lt_ac_count=0
  6561. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  6562. -# along with /bin/sed that truncates output.
  6563. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  6564. - test ! -f $lt_ac_sed && continue
  6565. - cat /dev/null > conftest.in
  6566. - lt_ac_count=0
  6567. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  6568. - # Check for GNU sed and select it if it is found.
  6569. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  6570. - lt_cv_path_SED=$lt_ac_sed
  6571. - break
  6572. - fi
  6573. - while true; do
  6574. - cat conftest.in conftest.in >conftest.tmp
  6575. - mv conftest.tmp conftest.in
  6576. - cp conftest.in conftest.nl
  6577. - echo >>conftest.nl
  6578. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  6579. - cmp -s conftest.out conftest.nl || break
  6580. - # 10000 chars as input seems more than enough
  6581. - test $lt_ac_count -gt 10 && break
  6582. - lt_ac_count=`expr $lt_ac_count + 1`
  6583. - if test $lt_ac_count -gt $lt_ac_max; then
  6584. - lt_ac_max=$lt_ac_count
  6585. - lt_cv_path_SED=$lt_ac_sed
  6586. - fi
  6587. - done
  6588. -done
  6589. -])
  6590. -SED=$lt_cv_path_SED
  6591. -AC_SUBST([SED])
  6592. -AC_MSG_RESULT([$SED])
  6593. -])
  6594. -
  6595. -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
  6596. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  6597. #
  6598. # This file is free software; the Free Software Foundation
  6599. # gives unlimited permission to copy and/or distribute it,
  6600. @@ -6596,10 +31,10 @@
  6601. # generated from the m4 files accompanying Automake X.Y.
  6602. # (This private macro should not be called outside this file.)
  6603. AC_DEFUN([AM_AUTOMAKE_VERSION],
  6604. -[am__api_version='1.10'
  6605. +[am__api_version='1.11'
  6606. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  6607. dnl require some minimum version. Point them to the right macro.
  6608. -m4_if([$1], [1.10], [],
  6609. +m4_if([$1], [1.11.1], [],
  6610. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  6611. ])
  6612. @@ -6613,10 +48,12 @@
  6613. # AM_SET_CURRENT_AUTOMAKE_VERSION
  6614. # -------------------------------
  6615. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  6616. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  6617. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  6618. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  6619. -[AM_AUTOMAKE_VERSION([1.10])dnl
  6620. -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
  6621. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  6622. +m4_ifndef([AC_AUTOCONF_VERSION],
  6623. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  6624. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  6625. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  6626. @@ -6673,14 +110,14 @@
  6627. # AM_CONDITIONAL -*- Autoconf -*-
  6628. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  6629. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  6630. # Free Software Foundation, Inc.
  6631. #
  6632. # This file is free software; the Free Software Foundation
  6633. # gives unlimited permission to copy and/or distribute it,
  6634. # with or without modifications, as long as this notice is preserved.
  6635. -# serial 8
  6636. +# serial 9
  6637. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  6638. # -------------------------------------
  6639. @@ -6693,6 +130,7 @@
  6640. AC_SUBST([$1_FALSE])dnl
  6641. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  6642. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  6643. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  6644. if $2; then
  6645. $1_TRUE=
  6646. $1_FALSE='#'
  6647. @@ -6706,14 +144,14 @@
  6648. Usually this means the macro was only invoked conditionally.]])
  6649. fi])])
  6650. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  6651. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  6652. # Free Software Foundation, Inc.
  6653. #
  6654. # This file is free software; the Free Software Foundation
  6655. # gives unlimited permission to copy and/or distribute it,
  6656. # with or without modifications, as long as this notice is preserved.
  6657. -# serial 9
  6658. +# serial 10
  6659. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  6660. # written in clear, in which case automake, when reading aclocal.m4,
  6661. @@ -6770,6 +208,16 @@
  6662. if test "$am_compiler_list" = ""; then
  6663. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  6664. fi
  6665. + am__universal=false
  6666. + m4_case([$1], [CC],
  6667. + [case " $depcc " in #(
  6668. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6669. + esac],
  6670. + [CXX],
  6671. + [case " $depcc " in #(
  6672. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6673. + esac])
  6674. +
  6675. for depmode in $am_compiler_list; do
  6676. # Setup a source with many dependencies, because some compilers
  6677. # like to wrap large dependency lists on column 80 (with \), and
  6678. @@ -6787,7 +235,17 @@
  6679. done
  6680. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6681. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6682. + # mode. It turns out that the SunPro C++ compiler does not properly
  6683. + # handle `-M -o', and we need to detect this. Also, some Intel
  6684. + # versions had trouble with output in subdirs
  6685. + am__obj=sub/conftest.${OBJEXT-o}
  6686. + am__minus_obj="-o $am__obj"
  6687. case $depmode in
  6688. + gcc)
  6689. + # This depmode causes a compiler race in universal mode.
  6690. + test "$am__universal" = false || continue
  6691. + ;;
  6692. nosideeffect)
  6693. # after this tag, mechanisms are not by side-effect, so they'll
  6694. # only be used when explicitly requested
  6695. @@ -6797,19 +255,23 @@
  6696. break
  6697. fi
  6698. ;;
  6699. + msvisualcpp | msvcmsys)
  6700. + # This compiler won't grok `-c -o', but also, the minuso test has
  6701. + # not run yet. These depmodes are late enough in the game, and
  6702. + # so weak that their functioning should not be impacted.
  6703. + am__obj=conftest.${OBJEXT-o}
  6704. + am__minus_obj=
  6705. + ;;
  6706. none) break ;;
  6707. esac
  6708. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6709. - # mode. It turns out that the SunPro C++ compiler does not properly
  6710. - # handle `-M -o', and we need to detect this.
  6711. if depmode=$depmode \
  6712. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6713. + source=sub/conftest.c object=$am__obj \
  6714. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6715. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6716. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6717. >/dev/null 2>conftest.err &&
  6718. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6719. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6720. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6721. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6722. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6723. # icc doesn't choke on unknown options, it will just issue warnings
  6724. # or remarks (even with -Werror). So we grep stderr for any message
  6725. @@ -6866,57 +328,68 @@
  6726. # Generate code to set up dependency tracking. -*- Autoconf -*-
  6727. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  6728. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  6729. # Free Software Foundation, Inc.
  6730. #
  6731. # This file is free software; the Free Software Foundation
  6732. # gives unlimited permission to copy and/or distribute it,
  6733. # with or without modifications, as long as this notice is preserved.
  6734. -#serial 3
  6735. +#serial 5
  6736. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  6737. # ------------------------------
  6738. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  6739. -[for mf in $CONFIG_FILES; do
  6740. - # Strip MF so we end up with the name of the file.
  6741. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  6742. - # Check whether this is an Automake generated Makefile or not.
  6743. - # We used to match only the files named `Makefile.in', but
  6744. - # some people rename them; so instead we look at the file content.
  6745. - # Grep'ing the first line is not enough: some people post-process
  6746. - # each Makefile.in and add a new line on top of each file to say so.
  6747. - # Grep'ing the whole file is not good either: AIX grep has a line
  6748. - # limit of 2048, but all sed's we know have understand at least 4000.
  6749. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  6750. - dirpart=`AS_DIRNAME("$mf")`
  6751. - else
  6752. - continue
  6753. - fi
  6754. - # Extract the definition of DEPDIR, am__include, and am__quote
  6755. - # from the Makefile without running `make'.
  6756. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  6757. - test -z "$DEPDIR" && continue
  6758. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  6759. - test -z "am__include" && continue
  6760. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  6761. - # When using ansi2knr, U may be empty or an underscore; expand it
  6762. - U=`sed -n 's/^U = //p' < "$mf"`
  6763. - # Find all dependency output files, they are included files with
  6764. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  6765. - # simplest approach to changing $(DEPDIR) to its actual value in the
  6766. - # expansion.
  6767. - for file in `sed -n "
  6768. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  6769. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  6770. - # Make sure the directory exists.
  6771. - test -f "$dirpart/$file" && continue
  6772. - fdir=`AS_DIRNAME(["$file"])`
  6773. - AS_MKDIR_P([$dirpart/$fdir])
  6774. - # echo "creating $dirpart/$file"
  6775. - echo '# dummy' > "$dirpart/$file"
  6776. +[{
  6777. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  6778. + # are listed without --file. Let's play safe and only enable the eval
  6779. + # if we detect the quoting.
  6780. + case $CONFIG_FILES in
  6781. + *\'*) eval set x "$CONFIG_FILES" ;;
  6782. + *) set x $CONFIG_FILES ;;
  6783. + esac
  6784. + shift
  6785. + for mf
  6786. + do
  6787. + # Strip MF so we end up with the name of the file.
  6788. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  6789. + # Check whether this is an Automake generated Makefile or not.
  6790. + # We used to match only the files named `Makefile.in', but
  6791. + # some people rename them; so instead we look at the file content.
  6792. + # Grep'ing the first line is not enough: some people post-process
  6793. + # each Makefile.in and add a new line on top of each file to say so.
  6794. + # Grep'ing the whole file is not good either: AIX grep has a line
  6795. + # limit of 2048, but all sed's we know have understand at least 4000.
  6796. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  6797. + dirpart=`AS_DIRNAME("$mf")`
  6798. + else
  6799. + continue
  6800. + fi
  6801. + # Extract the definition of DEPDIR, am__include, and am__quote
  6802. + # from the Makefile without running `make'.
  6803. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  6804. + test -z "$DEPDIR" && continue
  6805. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  6806. + test -z "am__include" && continue
  6807. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  6808. + # When using ansi2knr, U may be empty or an underscore; expand it
  6809. + U=`sed -n 's/^U = //p' < "$mf"`
  6810. + # Find all dependency output files, they are included files with
  6811. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  6812. + # simplest approach to changing $(DEPDIR) to its actual value in the
  6813. + # expansion.
  6814. + for file in `sed -n "
  6815. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  6816. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  6817. + # Make sure the directory exists.
  6818. + test -f "$dirpart/$file" && continue
  6819. + fdir=`AS_DIRNAME(["$file"])`
  6820. + AS_MKDIR_P([$dirpart/$fdir])
  6821. + # echo "creating $dirpart/$file"
  6822. + echo '# dummy' > "$dirpart/$file"
  6823. + done
  6824. done
  6825. -done
  6826. +}
  6827. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  6828. @@ -6948,13 +421,13 @@
  6829. # Do all the work for Automake. -*- Autoconf -*-
  6830. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  6831. -# 2005, 2006 Free Software Foundation, Inc.
  6832. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  6833. #
  6834. # This file is free software; the Free Software Foundation
  6835. # gives unlimited permission to copy and/or distribute it,
  6836. # with or without modifications, as long as this notice is preserved.
  6837. -# serial 12
  6838. +# serial 16
  6839. # This macro actually does too much. Some checks are only needed if
  6840. # your package does certain things. But this isn't really a big deal.
  6841. @@ -6971,7 +444,7 @@
  6842. # arguments mandatory, and then we can depend on a new Autoconf
  6843. # release and drop the old call support.
  6844. AC_DEFUN([AM_INIT_AUTOMAKE],
  6845. -[AC_PREREQ([2.60])dnl
  6846. +[AC_PREREQ([2.62])dnl
  6847. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  6848. dnl the ones we care about.
  6849. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  6850. @@ -7022,8 +495,8 @@
  6851. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  6852. AM_MISSING_PROG(AUTOHEADER, autoheader)
  6853. AM_MISSING_PROG(MAKEINFO, makeinfo)
  6854. -AM_PROG_INSTALL_SH
  6855. -AM_PROG_INSTALL_STRIP
  6856. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  6857. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  6858. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  6859. # We need awk for the "check" target. The system "awk" is bad on
  6860. # some platforms.
  6861. @@ -7031,23 +504,36 @@
  6862. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  6863. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  6864. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  6865. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  6866. - [_AM_PROG_TAR([v7])])])
  6867. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  6868. + [_AM_PROG_TAR([v7])])])
  6869. _AM_IF_OPTION([no-dependencies],,
  6870. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  6871. - [_AM_DEPENDENCIES(CC)],
  6872. - [define([AC_PROG_CC],
  6873. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  6874. + [_AM_DEPENDENCIES(CC)],
  6875. + [define([AC_PROG_CC],
  6876. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  6877. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  6878. - [_AM_DEPENDENCIES(CXX)],
  6879. - [define([AC_PROG_CXX],
  6880. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  6881. + [_AM_DEPENDENCIES(CXX)],
  6882. + [define([AC_PROG_CXX],
  6883. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  6884. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  6885. - [_AM_DEPENDENCIES(OBJC)],
  6886. - [define([AC_PROG_OBJC],
  6887. - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  6888. -])
  6889. -])
  6890. + [_AM_DEPENDENCIES(OBJC)],
  6891. + [define([AC_PROG_OBJC],
  6892. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  6893. +])
  6894. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  6895. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  6896. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  6897. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  6898. +AC_CONFIG_COMMANDS_PRE(dnl
  6899. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  6900. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  6901. +])
  6902. +
  6903. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  6904. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  6905. +dnl mangled by Autoconf and run in a shell conditional statement.
  6906. +m4_define([_AC_COMPILER_EXEEXT],
  6907. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  6908. # When config.status generates a header, we must update the stamp-h file.
  6909. @@ -7059,18 +545,19 @@
  6910. # our stamp files there.
  6911. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  6912. [# Compute $1's index in $config_headers.
  6913. +_am_arg=$1
  6914. _am_stamp_count=1
  6915. for _am_header in $config_headers :; do
  6916. case $_am_header in
  6917. - $1 | $1:* )
  6918. + $_am_arg | $_am_arg:* )
  6919. break ;;
  6920. * )
  6921. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  6922. esac
  6923. done
  6924. -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  6925. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  6926. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  6927. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  6928. #
  6929. # This file is free software; the Free Software Foundation
  6930. # gives unlimited permission to copy and/or distribute it,
  6931. @@ -7081,7 +568,14 @@
  6932. # Define $install_sh.
  6933. AC_DEFUN([AM_PROG_INSTALL_SH],
  6934. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  6935. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  6936. +if test x"${install_sh}" != xset; then
  6937. + case $am_aux_dir in
  6938. + *\ * | *\ *)
  6939. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  6940. + *)
  6941. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  6942. + esac
  6943. +fi
  6944. AC_SUBST(install_sh)])
  6945. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  6946. @@ -7108,27 +602,38 @@
  6947. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  6948. # From Jim Meyering
  6949. -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
  6950. +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  6951. # Free Software Foundation, Inc.
  6952. #
  6953. # This file is free software; the Free Software Foundation
  6954. # gives unlimited permission to copy and/or distribute it,
  6955. # with or without modifications, as long as this notice is preserved.
  6956. -# serial 4
  6957. +# serial 5
  6958. +# AM_MAINTAINER_MODE([DEFAULT-MODE])
  6959. +# ----------------------------------
  6960. +# Control maintainer-specific portions of Makefiles.
  6961. +# Default is to disable them, unless `enable' is passed literally.
  6962. +# For symmetry, `disable' may be passed as well. Anyway, the user
  6963. +# can override the default with the --enable/--disable switch.
  6964. AC_DEFUN([AM_MAINTAINER_MODE],
  6965. -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  6966. - dnl maintainer-mode is disabled by default
  6967. - AC_ARG_ENABLE(maintainer-mode,
  6968. -[ --enable-maintainer-mode enable make rules and dependencies not useful
  6969. +[m4_case(m4_default([$1], [disable]),
  6970. + [enable], [m4_define([am_maintainer_other], [disable])],
  6971. + [disable], [m4_define([am_maintainer_other], [enable])],
  6972. + [m4_define([am_maintainer_other], [enable])
  6973. + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  6974. +AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  6975. + dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  6976. + AC_ARG_ENABLE([maintainer-mode],
  6977. +[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  6978. (and sometimes confusing) to the casual installer],
  6979. - USE_MAINTAINER_MODE=$enableval,
  6980. - USE_MAINTAINER_MODE=no)
  6981. + [USE_MAINTAINER_MODE=$enableval],
  6982. + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  6983. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  6984. - AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  6985. + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  6986. MAINT=$MAINTAINER_MODE_TRUE
  6987. - AC_SUBST(MAINT)dnl
  6988. + AC_SUBST([MAINT])dnl
  6989. ]
  6990. )
  6991. @@ -7136,13 +641,13 @@
  6992. # Check to see how 'make' treats includes. -*- Autoconf -*-
  6993. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  6994. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  6995. #
  6996. # This file is free software; the Free Software Foundation
  6997. # gives unlimited permission to copy and/or distribute it,
  6998. # with or without modifications, as long as this notice is preserved.
  6999. -# serial 3
  7000. +# serial 4
  7001. # AM_MAKE_INCLUDE()
  7002. # -----------------
  7003. @@ -7151,7 +656,7 @@
  7004. [am_make=${MAKE-make}
  7005. cat > confinc << 'END'
  7006. am__doit:
  7007. - @echo done
  7008. + @echo this is the am__doit target
  7009. .PHONY: am__doit
  7010. END
  7011. # If we don't find an include directive, just comment out the code.
  7012. @@ -7161,24 +666,24 @@
  7013. _am_result=none
  7014. # First try GNU make style include.
  7015. echo "include confinc" > confmf
  7016. -# We grep out `Entering directory' and `Leaving directory'
  7017. -# messages which can occur if `w' ends up in MAKEFLAGS.
  7018. -# In particular we don't look at `^make:' because GNU make might
  7019. -# be invoked under some other name (usually "gmake"), in which
  7020. -# case it prints its new name instead of `make'.
  7021. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  7022. - am__include=include
  7023. - am__quote=
  7024. - _am_result=GNU
  7025. -fi
  7026. +# Ignore all kinds of additional output from `make'.
  7027. +case `$am_make -s -f confmf 2> /dev/null` in #(
  7028. +*the\ am__doit\ target*)
  7029. + am__include=include
  7030. + am__quote=
  7031. + _am_result=GNU
  7032. + ;;
  7033. +esac
  7034. # Now try BSD make style include.
  7035. if test "$am__include" = "#"; then
  7036. echo '.include "confinc"' > confmf
  7037. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  7038. - am__include=.include
  7039. - am__quote="\""
  7040. - _am_result=BSD
  7041. - fi
  7042. + case `$am_make -s -f confmf 2> /dev/null` in #(
  7043. + *the\ am__doit\ target*)
  7044. + am__include=.include
  7045. + am__quote="\""
  7046. + _am_result=BSD
  7047. + ;;
  7048. + esac
  7049. fi
  7050. AC_SUBST([am__include])
  7051. AC_SUBST([am__quote])
  7052. @@ -7188,14 +693,14 @@
  7053. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  7054. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  7055. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  7056. # Free Software Foundation, Inc.
  7057. #
  7058. # This file is free software; the Free Software Foundation
  7059. # gives unlimited permission to copy and/or distribute it,
  7060. # with or without modifications, as long as this notice is preserved.
  7061. -# serial 5
  7062. +# serial 6
  7063. # AM_MISSING_PROG(NAME, PROGRAM)
  7064. # ------------------------------
  7065. @@ -7212,7 +717,14 @@
  7066. AC_DEFUN([AM_MISSING_HAS_RUN],
  7067. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  7068. AC_REQUIRE_AUX_FILE([missing])dnl
  7069. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  7070. +if test x"${MISSING+set}" != xset; then
  7071. + case $am_aux_dir in
  7072. + *\ * | *\ *)
  7073. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  7074. + *)
  7075. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  7076. + esac
  7077. +fi
  7078. # Use eval to expand $SHELL
  7079. if eval "$MISSING --run true"; then
  7080. am_missing_run="$MISSING --run "
  7081. @@ -7250,13 +762,13 @@
  7082. # Helper functions for option handling. -*- Autoconf -*-
  7083. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  7084. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  7085. #
  7086. # This file is free software; the Free Software Foundation
  7087. # gives unlimited permission to copy and/or distribute it,
  7088. # with or without modifications, as long as this notice is preserved.
  7089. -# serial 3
  7090. +# serial 4
  7091. # _AM_MANGLE_OPTION(NAME)
  7092. # -----------------------
  7093. @@ -7273,7 +785,7 @@
  7094. # ----------------------------------
  7095. # OPTIONS is a space-separated list of Automake options.
  7096. AC_DEFUN([_AM_SET_OPTIONS],
  7097. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  7098. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  7099. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  7100. # -------------------------------------------
  7101. @@ -7283,14 +795,14 @@
  7102. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  7103. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  7104. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  7105. # Free Software Foundation, Inc.
  7106. #
  7107. # This file is free software; the Free Software Foundation
  7108. # gives unlimited permission to copy and/or distribute it,
  7109. # with or without modifications, as long as this notice is preserved.
  7110. -# serial 4
  7111. +# serial 5
  7112. # AM_SANITY_CHECK
  7113. # ---------------
  7114. @@ -7299,16 +811,29 @@
  7115. # Just in case
  7116. sleep 1
  7117. echo timestamp > conftest.file
  7118. +# Reject unsafe characters in $srcdir or the absolute working directory
  7119. +# name. Accept space and tab only in the latter.
  7120. +am_lf='
  7121. +'
  7122. +case `pwd` in
  7123. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  7124. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  7125. +esac
  7126. +case $srcdir in
  7127. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  7128. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  7129. +esac
  7130. +
  7131. # Do `set' in a subshell so we don't clobber the current shell's
  7132. # arguments. Must try -L first in case configure is actually a
  7133. # symlink; some systems play weird games with the mod time of symlinks
  7134. # (eg FreeBSD returns the mod time of the symlink's containing
  7135. # directory).
  7136. if (
  7137. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  7138. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  7139. if test "$[*]" = "X"; then
  7140. # -L didn't work.
  7141. - set X `ls -t $srcdir/configure conftest.file`
  7142. + set X `ls -t "$srcdir/configure" conftest.file`
  7143. fi
  7144. rm -f conftest.file
  7145. if test "$[*]" != "X $srcdir/configure conftest.file" \
  7146. @@ -7361,18 +886,25 @@
  7147. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  7148. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  7149. -# Copyright (C) 2006 Free Software Foundation, Inc.
  7150. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  7151. #
  7152. # This file is free software; the Free Software Foundation
  7153. # gives unlimited permission to copy and/or distribute it,
  7154. # with or without modifications, as long as this notice is preserved.
  7155. +# serial 2
  7156. +
  7157. # _AM_SUBST_NOTMAKE(VARIABLE)
  7158. # ---------------------------
  7159. -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
  7160. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  7161. # This macro is traced by Automake.
  7162. AC_DEFUN([_AM_SUBST_NOTMAKE])
  7163. +# AM_SUBST_NOTMAKE(VARIABLE)
  7164. +# ---------------------------
  7165. +# Public sister of _AM_SUBST_NOTMAKE.
  7166. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  7167. +
  7168. # Check how to create a tarball. -*- Autoconf -*-
  7169. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  7170. @@ -7470,6 +1002,11 @@
  7171. ]) # _AM_PROG_TAR
  7172. m4_include([m4/acx_pthread.m4])
  7173. +m4_include([m4/libtool.m4])
  7174. +m4_include([m4/ltoptions.m4])
  7175. +m4_include([m4/ltsugar.m4])
  7176. +m4_include([m4/ltversion.m4])
  7177. +m4_include([m4/lt~obsolete.m4])
  7178. m4_include([m4/ogg.m4])
  7179. m4_include([m4/speex.m4])
  7180. m4_include([m4/theora.m4])
  7181. diff -Nur icecast-2.3.2.orig/admin/Makefile.in icecast-2.3.2/admin/Makefile.in
  7182. --- icecast-2.3.2.orig/admin/Makefile.in 2008-05-30 01:58:57.000000000 +0200
  7183. +++ icecast-2.3.2/admin/Makefile.in 2010-02-18 21:27:41.556853485 +0100
  7184. @@ -1,8 +1,9 @@
  7185. -# Makefile.in generated by automake 1.10 from Makefile.am.
  7186. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  7187. # @configure_input@
  7188. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  7189. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7190. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  7191. +# Inc.
  7192. # This Makefile.in is free software; the Free Software Foundation
  7193. # gives unlimited permission to copy and/or distribute it,
  7194. # with or without modifications, as long as this notice is preserved.
  7195. @@ -16,8 +17,9 @@
  7196. VPATH = @srcdir@
  7197. pkgdatadir = $(datadir)/@PACKAGE@
  7198. -pkglibdir = $(libdir)/@PACKAGE@
  7199. pkgincludedir = $(includedir)/@PACKAGE@
  7200. +pkglibdir = $(libdir)/@PACKAGE@
  7201. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  7202. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  7203. install_sh_DATA = $(install_sh) -c -m 644
  7204. install_sh_PROGRAM = $(install_sh) -c
  7205. @@ -37,9 +39,11 @@
  7206. $(srcdir)/Makefile.in
  7207. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  7208. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  7209. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  7210. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  7211. - $(top_srcdir)/m4/xiph_compiler.m4 \
  7212. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  7213. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  7214. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  7215. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  7216. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  7217. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  7218. $(top_srcdir)/m4/xiph_openssl.m4 \
  7219. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  7220. @@ -49,6 +53,7 @@
  7221. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  7222. CONFIG_HEADER = $(top_builddir)/config.h
  7223. CONFIG_CLEAN_FILES =
  7224. +CONFIG_CLEAN_VPATH_FILES =
  7225. SOURCES =
  7226. DIST_SOURCES =
  7227. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  7228. @@ -56,9 +61,23 @@
  7229. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  7230. *) f=$$p;; \
  7231. esac;
  7232. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  7233. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  7234. +am__install_max = 40
  7235. +am__nobase_strip_setup = \
  7236. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  7237. +am__nobase_strip = \
  7238. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  7239. +am__nobase_list = $(am__nobase_strip_setup); \
  7240. + for p in $$list; do echo "$$p $$p"; done | \
  7241. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  7242. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  7243. + if (++n[$$2] == $(am__install_max)) \
  7244. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  7245. + END { for (dir in files) print dir, files[dir] }'
  7246. +am__base_list = \
  7247. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  7248. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  7249. am__installdirs = "$(DESTDIR)$(admindir)"
  7250. -dist_adminDATA_INSTALL = $(INSTALL_DATA)
  7251. DATA = $(dist_admin_DATA)
  7252. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  7253. ACLOCAL = @ACLOCAL@
  7254. @@ -76,22 +95,17 @@
  7255. CURL_CFLAGS = @CURL_CFLAGS@
  7256. CURL_CONFIG = @CURL_CONFIG@
  7257. CURL_LIBS = @CURL_LIBS@
  7258. -CXX = @CXX@
  7259. -CXXCPP = @CXXCPP@
  7260. -CXXDEPMODE = @CXXDEPMODE@
  7261. -CXXFLAGS = @CXXFLAGS@
  7262. CYGPATH_W = @CYGPATH_W@
  7263. DEBUG = @DEBUG@
  7264. DEFS = @DEFS@
  7265. DEPDIR = @DEPDIR@
  7266. -ECHO = @ECHO@
  7267. +DSYMUTIL = @DSYMUTIL@
  7268. +DUMPBIN = @DUMPBIN@
  7269. ECHO_C = @ECHO_C@
  7270. ECHO_N = @ECHO_N@
  7271. ECHO_T = @ECHO_T@
  7272. EGREP = @EGREP@
  7273. EXEEXT = @EXEEXT@
  7274. -F77 = @F77@
  7275. -FFLAGS = @FFLAGS@
  7276. FGREP = @FGREP@
  7277. GREP = @GREP@
  7278. HAVE_KATE = @HAVE_KATE@
  7279. @@ -102,26 +116,34 @@
  7280. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  7281. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  7282. KATE_LIBS = @KATE_LIBS@
  7283. +LD = @LD@
  7284. LDFLAGS = @LDFLAGS@
  7285. LIBOBJS = @LIBOBJS@
  7286. LIBS = @LIBS@
  7287. LIBTOOL = @LIBTOOL@
  7288. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  7289. +LIPO = @LIPO@
  7290. LN_S = @LN_S@
  7291. LTLIBOBJS = @LTLIBOBJS@
  7292. MAINT = @MAINT@
  7293. MAKEINFO = @MAKEINFO@
  7294. MKDIR_P = @MKDIR_P@
  7295. +NM = @NM@
  7296. +NMEDIT = @NMEDIT@
  7297. +OBJDUMP = @OBJDUMP@
  7298. OBJEXT = @OBJEXT@
  7299. OGG_CFLAGS = @OGG_CFLAGS@
  7300. OGG_LDFLAGS = @OGG_LDFLAGS@
  7301. OGG_LIBS = @OGG_LIBS@
  7302. OGG_PREFIX = @OGG_PREFIX@
  7303. +OTOOL = @OTOOL@
  7304. +OTOOL64 = @OTOOL64@
  7305. PACKAGE = @PACKAGE@
  7306. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  7307. PACKAGE_NAME = @PACKAGE_NAME@
  7308. PACKAGE_STRING = @PACKAGE_STRING@
  7309. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  7310. +PACKAGE_URL = @PACKAGE_URL@
  7311. PACKAGE_VERSION = @PACKAGE_VERSION@
  7312. PATH_SEPARATOR = @PATH_SEPARATOR@
  7313. PKGCONFIG = @PKGCONFIG@
  7314. @@ -160,8 +182,7 @@
  7315. abs_top_builddir = @abs_top_builddir@
  7316. abs_top_srcdir = @abs_top_srcdir@
  7317. ac_ct_CC = @ac_ct_CC@
  7318. -ac_ct_CXX = @ac_ct_CXX@
  7319. -ac_ct_F77 = @ac_ct_F77@
  7320. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  7321. acx_pthread_config = @acx_pthread_config@
  7322. am__include = @am__include@
  7323. am__leading_dot = @am__leading_dot@
  7324. @@ -193,6 +214,7 @@
  7325. libexecdir = @libexecdir@
  7326. localedir = @localedir@
  7327. localstatedir = @localstatedir@
  7328. +lt_ECHO = @lt_ECHO@
  7329. mandir = @mandir@
  7330. mkdir_p = @mkdir_p@
  7331. oldincludedir = @oldincludedir@
  7332. @@ -205,6 +227,7 @@
  7333. srcdir = @srcdir@
  7334. sysconfdir = @sysconfdir@
  7335. target_alias = @target_alias@
  7336. +top_build_prefix = @top_build_prefix@
  7337. top_builddir = @top_builddir@
  7338. top_srcdir = @top_srcdir@
  7339. AUTOMAKE_OPTIONS = foreign
  7340. @@ -219,14 +242,14 @@
  7341. @for dep in $?; do \
  7342. case '$(am__configure_deps)' in \
  7343. *$$dep*) \
  7344. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  7345. - && exit 0; \
  7346. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  7347. + && { if test -f $@; then exit 0; else break; fi; }; \
  7348. exit 1;; \
  7349. esac; \
  7350. done; \
  7351. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign admin/Makefile'; \
  7352. - cd $(top_srcdir) && \
  7353. - $(AUTOMAKE) --foreign admin/Makefile
  7354. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign admin/Makefile'; \
  7355. + $(am__cd) $(top_srcdir) && \
  7356. + $(AUTOMAKE) --foreign admin/Makefile
  7357. .PRECIOUS: Makefile
  7358. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  7359. @case '$?' in \
  7360. @@ -244,6 +267,7 @@
  7361. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  7362. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  7363. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  7364. +$(am__aclocal_m4_deps):
  7365. mostlyclean-libtool:
  7366. -rm -f *.lo
  7367. @@ -253,20 +277,23 @@
  7368. install-dist_adminDATA: $(dist_admin_DATA)
  7369. @$(NORMAL_INSTALL)
  7370. test -z "$(admindir)" || $(MKDIR_P) "$(DESTDIR)$(admindir)"
  7371. - @list='$(dist_admin_DATA)'; for p in $$list; do \
  7372. + @list='$(dist_admin_DATA)'; test -n "$(admindir)" || list=; \
  7373. + for p in $$list; do \
  7374. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  7375. - f=$(am__strip_dir) \
  7376. - echo " $(dist_adminDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(admindir)/$$f'"; \
  7377. - $(dist_adminDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(admindir)/$$f"; \
  7378. + echo "$$d$$p"; \
  7379. + done | $(am__base_list) | \
  7380. + while read files; do \
  7381. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(admindir)'"; \
  7382. + $(INSTALL_DATA) $$files "$(DESTDIR)$(admindir)" || exit $$?; \
  7383. done
  7384. uninstall-dist_adminDATA:
  7385. @$(NORMAL_UNINSTALL)
  7386. - @list='$(dist_admin_DATA)'; for p in $$list; do \
  7387. - f=$(am__strip_dir) \
  7388. - echo " rm -f '$(DESTDIR)$(admindir)/$$f'"; \
  7389. - rm -f "$(DESTDIR)$(admindir)/$$f"; \
  7390. - done
  7391. + @list='$(dist_admin_DATA)'; test -n "$(admindir)" || list=; \
  7392. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  7393. + test -n "$$files" || exit 0; \
  7394. + echo " ( cd '$(DESTDIR)$(admindir)' && rm -f" $$files ")"; \
  7395. + cd "$(DESTDIR)$(admindir)" && rm -f $$files
  7396. tags: TAGS
  7397. TAGS:
  7398. @@ -290,13 +317,17 @@
  7399. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  7400. if test -d $$d/$$file; then \
  7401. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  7402. + if test -d "$(distdir)/$$file"; then \
  7403. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  7404. + fi; \
  7405. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  7406. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  7407. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  7408. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  7409. fi; \
  7410. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  7411. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  7412. else \
  7413. - test -f $(distdir)/$$file \
  7414. - || cp -p $$d/$$file $(distdir)/$$file \
  7415. + test -f "$(distdir)/$$file" \
  7416. + || cp -p $$d/$$file "$(distdir)/$$file" \
  7417. || exit 1; \
  7418. fi; \
  7419. done
  7420. @@ -327,6 +358,7 @@
  7421. distclean-generic:
  7422. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  7423. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  7424. maintainer-clean-generic:
  7425. @echo "This command is intended for maintainers to use"
  7426. @@ -345,6 +377,8 @@
  7427. html: html-am
  7428. +html-am:
  7429. +
  7430. info: info-am
  7431. info-am:
  7432. @@ -353,18 +387,28 @@
  7433. install-dvi: install-dvi-am
  7434. +install-dvi-am:
  7435. +
  7436. install-exec-am:
  7437. install-html: install-html-am
  7438. +install-html-am:
  7439. +
  7440. install-info: install-info-am
  7441. +install-info-am:
  7442. +
  7443. install-man:
  7444. install-pdf: install-pdf-am
  7445. +install-pdf-am:
  7446. +
  7447. install-ps: install-ps-am
  7448. +install-ps-am:
  7449. +
  7450. installcheck-am:
  7451. maintainer-clean: maintainer-clean-am
  7452. @@ -399,6 +443,7 @@
  7453. mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
  7454. ps ps-am uninstall uninstall-am uninstall-dist_adminDATA
  7455. +
  7456. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  7457. # Otherwise a system limit (for SysV at least) may be exceeded.
  7458. .NOEXPORT:
  7459. diff -Nur icecast-2.3.2.orig/conf/Makefile.in icecast-2.3.2/conf/Makefile.in
  7460. --- icecast-2.3.2.orig/conf/Makefile.in 2008-05-30 01:58:57.000000000 +0200
  7461. +++ icecast-2.3.2/conf/Makefile.in 2010-02-18 21:27:41.872855443 +0100
  7462. @@ -1,8 +1,9 @@
  7463. -# Makefile.in generated by automake 1.10 from Makefile.am.
  7464. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  7465. # @configure_input@
  7466. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  7467. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7468. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  7469. +# Inc.
  7470. # This Makefile.in is free software; the Free Software Foundation
  7471. # gives unlimited permission to copy and/or distribute it,
  7472. # with or without modifications, as long as this notice is preserved.
  7473. @@ -16,8 +17,9 @@
  7474. VPATH = @srcdir@
  7475. pkgdatadir = $(datadir)/@PACKAGE@
  7476. -pkglibdir = $(libdir)/@PACKAGE@
  7477. pkgincludedir = $(includedir)/@PACKAGE@
  7478. +pkglibdir = $(libdir)/@PACKAGE@
  7479. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  7480. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  7481. install_sh_DATA = $(install_sh) -c -m 644
  7482. install_sh_PROGRAM = $(install_sh) -c
  7483. @@ -36,9 +38,11 @@
  7484. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  7485. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  7486. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  7487. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  7488. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  7489. - $(top_srcdir)/m4/xiph_compiler.m4 \
  7490. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  7491. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  7492. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  7493. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  7494. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  7495. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  7496. $(top_srcdir)/m4/xiph_openssl.m4 \
  7497. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  7498. @@ -48,6 +52,7 @@
  7499. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  7500. CONFIG_HEADER = $(top_builddir)/config.h
  7501. CONFIG_CLEAN_FILES =
  7502. +CONFIG_CLEAN_VPATH_FILES =
  7503. SOURCES =
  7504. DIST_SOURCES =
  7505. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  7506. @@ -55,9 +60,23 @@
  7507. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  7508. *) f=$$p;; \
  7509. esac;
  7510. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  7511. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  7512. +am__install_max = 40
  7513. +am__nobase_strip_setup = \
  7514. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  7515. +am__nobase_strip = \
  7516. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  7517. +am__nobase_list = $(am__nobase_strip_setup); \
  7518. + for p in $$list; do echo "$$p $$p"; done | \
  7519. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  7520. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  7521. + if (++n[$$2] == $(am__install_max)) \
  7522. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  7523. + END { for (dir in files) print dir, files[dir] }'
  7524. +am__base_list = \
  7525. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  7526. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  7527. am__installdirs = "$(DESTDIR)$(docdir)"
  7528. -docDATA_INSTALL = $(INSTALL_DATA)
  7529. DATA = $(doc_DATA)
  7530. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  7531. ACLOCAL = @ACLOCAL@
  7532. @@ -75,22 +94,17 @@
  7533. CURL_CFLAGS = @CURL_CFLAGS@
  7534. CURL_CONFIG = @CURL_CONFIG@
  7535. CURL_LIBS = @CURL_LIBS@
  7536. -CXX = @CXX@
  7537. -CXXCPP = @CXXCPP@
  7538. -CXXDEPMODE = @CXXDEPMODE@
  7539. -CXXFLAGS = @CXXFLAGS@
  7540. CYGPATH_W = @CYGPATH_W@
  7541. DEBUG = @DEBUG@
  7542. DEFS = @DEFS@
  7543. DEPDIR = @DEPDIR@
  7544. -ECHO = @ECHO@
  7545. +DSYMUTIL = @DSYMUTIL@
  7546. +DUMPBIN = @DUMPBIN@
  7547. ECHO_C = @ECHO_C@
  7548. ECHO_N = @ECHO_N@
  7549. ECHO_T = @ECHO_T@
  7550. EGREP = @EGREP@
  7551. EXEEXT = @EXEEXT@
  7552. -F77 = @F77@
  7553. -FFLAGS = @FFLAGS@
  7554. FGREP = @FGREP@
  7555. GREP = @GREP@
  7556. HAVE_KATE = @HAVE_KATE@
  7557. @@ -101,26 +115,34 @@
  7558. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  7559. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  7560. KATE_LIBS = @KATE_LIBS@
  7561. +LD = @LD@
  7562. LDFLAGS = @LDFLAGS@
  7563. LIBOBJS = @LIBOBJS@
  7564. LIBS = @LIBS@
  7565. LIBTOOL = @LIBTOOL@
  7566. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  7567. +LIPO = @LIPO@
  7568. LN_S = @LN_S@
  7569. LTLIBOBJS = @LTLIBOBJS@
  7570. MAINT = @MAINT@
  7571. MAKEINFO = @MAKEINFO@
  7572. MKDIR_P = @MKDIR_P@
  7573. +NM = @NM@
  7574. +NMEDIT = @NMEDIT@
  7575. +OBJDUMP = @OBJDUMP@
  7576. OBJEXT = @OBJEXT@
  7577. OGG_CFLAGS = @OGG_CFLAGS@
  7578. OGG_LDFLAGS = @OGG_LDFLAGS@
  7579. OGG_LIBS = @OGG_LIBS@
  7580. OGG_PREFIX = @OGG_PREFIX@
  7581. +OTOOL = @OTOOL@
  7582. +OTOOL64 = @OTOOL64@
  7583. PACKAGE = @PACKAGE@
  7584. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  7585. PACKAGE_NAME = @PACKAGE_NAME@
  7586. PACKAGE_STRING = @PACKAGE_STRING@
  7587. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  7588. +PACKAGE_URL = @PACKAGE_URL@
  7589. PACKAGE_VERSION = @PACKAGE_VERSION@
  7590. PATH_SEPARATOR = @PATH_SEPARATOR@
  7591. PKGCONFIG = @PKGCONFIG@
  7592. @@ -159,8 +181,7 @@
  7593. abs_top_builddir = @abs_top_builddir@
  7594. abs_top_srcdir = @abs_top_srcdir@
  7595. ac_ct_CC = @ac_ct_CC@
  7596. -ac_ct_CXX = @ac_ct_CXX@
  7597. -ac_ct_F77 = @ac_ct_F77@
  7598. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  7599. acx_pthread_config = @acx_pthread_config@
  7600. am__include = @am__include@
  7601. am__leading_dot = @am__leading_dot@
  7602. @@ -192,6 +213,7 @@
  7603. libexecdir = @libexecdir@
  7604. localedir = @localedir@
  7605. localstatedir = @localstatedir@
  7606. +lt_ECHO = @lt_ECHO@
  7607. mandir = @mandir@
  7608. mkdir_p = @mkdir_p@
  7609. oldincludedir = @oldincludedir@
  7610. @@ -204,6 +226,7 @@
  7611. srcdir = @srcdir@
  7612. sysconfdir = @sysconfdir@
  7613. target_alias = @target_alias@
  7614. +top_build_prefix = @top_build_prefix@
  7615. top_builddir = @top_builddir@
  7616. top_srcdir = @top_srcdir@
  7617. AUTOMAKE_OPTIONS = foreign
  7618. @@ -221,14 +244,14 @@
  7619. @for dep in $?; do \
  7620. case '$(am__configure_deps)' in \
  7621. *$$dep*) \
  7622. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  7623. - && exit 0; \
  7624. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  7625. + && { if test -f $@; then exit 0; else break; fi; }; \
  7626. exit 1;; \
  7627. esac; \
  7628. done; \
  7629. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign conf/Makefile'; \
  7630. - cd $(top_srcdir) && \
  7631. - $(AUTOMAKE) --foreign conf/Makefile
  7632. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign conf/Makefile'; \
  7633. + $(am__cd) $(top_srcdir) && \
  7634. + $(AUTOMAKE) --foreign conf/Makefile
  7635. .PRECIOUS: Makefile
  7636. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  7637. @case '$?' in \
  7638. @@ -246,6 +269,7 @@
  7639. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  7640. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  7641. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  7642. +$(am__aclocal_m4_deps):
  7643. mostlyclean-libtool:
  7644. -rm -f *.lo
  7645. @@ -255,20 +279,23 @@
  7646. install-docDATA: $(doc_DATA)
  7647. @$(NORMAL_INSTALL)
  7648. test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)"
  7649. - @list='$(doc_DATA)'; for p in $$list; do \
  7650. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  7651. + for p in $$list; do \
  7652. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  7653. - f=$(am__strip_dir) \
  7654. - echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \
  7655. - $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
  7656. + echo "$$d$$p"; \
  7657. + done | $(am__base_list) | \
  7658. + while read files; do \
  7659. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \
  7660. + $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \
  7661. done
  7662. uninstall-docDATA:
  7663. @$(NORMAL_UNINSTALL)
  7664. - @list='$(doc_DATA)'; for p in $$list; do \
  7665. - f=$(am__strip_dir) \
  7666. - echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \
  7667. - rm -f "$(DESTDIR)$(docdir)/$$f"; \
  7668. - done
  7669. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  7670. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  7671. + test -n "$$files" || exit 0; \
  7672. + echo " ( cd '$(DESTDIR)$(docdir)' && rm -f" $$files ")"; \
  7673. + cd "$(DESTDIR)$(docdir)" && rm -f $$files
  7674. tags: TAGS
  7675. TAGS:
  7676. @@ -292,13 +319,17 @@
  7677. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  7678. if test -d $$d/$$file; then \
  7679. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  7680. + if test -d "$(distdir)/$$file"; then \
  7681. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  7682. + fi; \
  7683. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  7684. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  7685. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  7686. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  7687. fi; \
  7688. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  7689. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  7690. else \
  7691. - test -f $(distdir)/$$file \
  7692. - || cp -p $$d/$$file $(distdir)/$$file \
  7693. + test -f "$(distdir)/$$file" \
  7694. + || cp -p $$d/$$file "$(distdir)/$$file" \
  7695. || exit 1; \
  7696. fi; \
  7697. done
  7698. @@ -329,6 +360,7 @@
  7699. distclean-generic:
  7700. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  7701. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  7702. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  7703. maintainer-clean-generic:
  7704. @@ -348,6 +380,8 @@
  7705. html: html-am
  7706. +html-am:
  7707. +
  7708. info: info-am
  7709. info-am:
  7710. @@ -355,21 +389,30 @@
  7711. install-data-am: install-docDATA
  7712. @$(NORMAL_INSTALL)
  7713. $(MAKE) $(AM_MAKEFLAGS) install-data-hook
  7714. -
  7715. install-dvi: install-dvi-am
  7716. +install-dvi-am:
  7717. +
  7718. install-exec-am:
  7719. install-html: install-html-am
  7720. +install-html-am:
  7721. +
  7722. install-info: install-info-am
  7723. +install-info-am:
  7724. +
  7725. install-man:
  7726. install-pdf: install-pdf-am
  7727. +install-pdf-am:
  7728. +
  7729. install-ps: install-ps-am
  7730. +install-ps-am:
  7731. +
  7732. installcheck-am:
  7733. maintainer-clean: maintainer-clean-am
  7734. @@ -427,6 +470,7 @@
  7735. profile:
  7736. $(MAKE) all CFLAGS="@PROFILE@"
  7737. +
  7738. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  7739. # Otherwise a system limit (for SysV at least) may be exceeded.
  7740. .NOEXPORT:
  7741. diff -Nur icecast-2.3.2.orig/config.h.in icecast-2.3.2/config.h.in
  7742. --- icecast-2.3.2.orig/config.h.in 2008-04-29 06:54:28.000000000 +0200
  7743. +++ icecast-2.3.2/config.h.in 2010-02-18 21:27:40.476856140 +0100
  7744. @@ -93,7 +93,7 @@
  7745. /* Define to 1 if you have the <string.h> header file. */
  7746. #undef HAVE_STRING_H
  7747. -/* Define to 1 if `ss_family' is member of `struct sockaddr_storage'. */
  7748. +/* Define to 1 if `ss_family' is a member of `struct sockaddr_storage'. */
  7749. #undef HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
  7750. /* Define to 1 if you have the <sys/select.h> header file. */
  7751. @@ -126,6 +126,10 @@
  7752. /* Define to 1 if you have the `xsltSaveResultToString' function. */
  7753. #undef HAVE_XSLTSAVERESULTTOSTRING
  7754. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  7755. + */
  7756. +#undef LT_OBJDIR
  7757. +
  7758. /* Name of package */
  7759. #undef PACKAGE
  7760. @@ -141,6 +145,9 @@
  7761. /* Define to the one symbol short name of this package. */
  7762. #undef PACKAGE_TARNAME
  7763. +/* Define to the home page for this package. */
  7764. +#undef PACKAGE_URL
  7765. +
  7766. /* Define to the version of this package. */
  7767. #undef PACKAGE_VERSION
  7768. diff -Nur icecast-2.3.2.orig/configure icecast-2.3.2/configure
  7769. --- icecast-2.3.2.orig/configure 2008-05-27 02:21:57.000000000 +0200
  7770. +++ icecast-2.3.2/configure 2010-02-18 21:27:38.596852163 +0100
  7771. @@ -1,62 +1,85 @@
  7772. #! /bin/sh
  7773. # Guess values for system-dependent variables and create Makefiles.
  7774. -# Generated by GNU Autoconf 2.61 for Icecast 2.3.2.
  7775. +# Generated by GNU Autoconf 2.65 for Icecast 2.3.2.
  7776. #
  7777. # Report bugs to <icecast@xiph.org>.
  7778. #
  7779. +#
  7780. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7781. -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7782. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  7783. +# Inc.
  7784. +#
  7785. +#
  7786. # This configure script is free software; the Free Software Foundation
  7787. # gives unlimited permission to copy, distribute and modify it.
  7788. -## --------------------- ##
  7789. -## M4sh Initialization. ##
  7790. -## --------------------- ##
  7791. +## -------------------- ##
  7792. +## M4sh Initialization. ##
  7793. +## -------------------- ##
  7794. # Be more Bourne compatible
  7795. DUALCASE=1; export DUALCASE # for MKS sh
  7796. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  7797. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7798. emulate sh
  7799. NULLCMD=:
  7800. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  7801. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7802. # is contrary to our usage. Disable this feature.
  7803. alias -g '${1+"$@"}'='"$@"'
  7804. setopt NO_GLOB_SUBST
  7805. else
  7806. - case `(set -o) 2>/dev/null` in
  7807. - *posix*) set -o posix ;;
  7808. + case `(set -o) 2>/dev/null` in #(
  7809. + *posix*) :
  7810. + set -o posix ;; #(
  7811. + *) :
  7812. + ;;
  7813. esac
  7814. -
  7815. fi
  7816. -
  7817. -
  7818. -# PATH needs CR
  7819. -# Avoid depending upon Character Ranges.
  7820. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7821. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7822. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7823. -as_cr_digits='0123456789'
  7824. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  7825. -
  7826. -# The user is always right.
  7827. -if test "${PATH_SEPARATOR+set}" != set; then
  7828. - echo "#! /bin/sh" >conf$$.sh
  7829. - echo "exit 0" >>conf$$.sh
  7830. - chmod +x conf$$.sh
  7831. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7832. - PATH_SEPARATOR=';'
  7833. - else
  7834. - PATH_SEPARATOR=:
  7835. +as_nl='
  7836. +'
  7837. +export as_nl
  7838. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  7839. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7840. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7841. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7842. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  7843. +# but without wasting forks for bash or zsh.
  7844. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  7845. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  7846. + as_echo='print -r --'
  7847. + as_echo_n='print -rn --'
  7848. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  7849. + as_echo='printf %s\n'
  7850. + as_echo_n='printf %s'
  7851. +else
  7852. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  7853. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  7854. + as_echo_n='/usr/ucb/echo -n'
  7855. + else
  7856. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  7857. + as_echo_n_body='eval
  7858. + arg=$1;
  7859. + case $arg in #(
  7860. + *"$as_nl"*)
  7861. + expr "X$arg" : "X\\(.*\\)$as_nl";
  7862. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  7863. + esac;
  7864. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  7865. + '
  7866. + export as_echo_n_body
  7867. + as_echo_n='sh -c $as_echo_n_body as_echo'
  7868. fi
  7869. - rm -f conf$$.sh
  7870. + export as_echo_body
  7871. + as_echo='sh -c $as_echo_body as_echo'
  7872. fi
  7873. -# Support unset when possible.
  7874. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7875. - as_unset=unset
  7876. -else
  7877. - as_unset=false
  7878. +# The user is always right.
  7879. +if test "${PATH_SEPARATOR+set}" != set; then
  7880. + PATH_SEPARATOR=:
  7881. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  7882. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  7883. + PATH_SEPARATOR=';'
  7884. + }
  7885. fi
  7886. @@ -65,20 +88,18 @@
  7887. # there to prevent editors from complaining about space-tab.
  7888. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7889. # splitting by setting IFS to empty value.)
  7890. -as_nl='
  7891. -'
  7892. IFS=" "" $as_nl"
  7893. # Find who we are. Look in the path if we contain no directory separator.
  7894. -case $0 in
  7895. +case $0 in #((
  7896. *[\\/]* ) as_myself=$0 ;;
  7897. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7898. for as_dir in $PATH
  7899. do
  7900. IFS=$as_save_IFS
  7901. test -z "$as_dir" && as_dir=.
  7902. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7903. -done
  7904. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7905. + done
  7906. IFS=$as_save_IFS
  7907. ;;
  7908. @@ -89,32 +110,271 @@
  7909. as_myself=$0
  7910. fi
  7911. if test ! -f "$as_myself"; then
  7912. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7913. - { (exit 1); exit 1; }
  7914. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7915. + exit 1
  7916. fi
  7917. -# Work around bugs in pre-3.0 UWIN ksh.
  7918. -for as_var in ENV MAIL MAILPATH
  7919. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  7920. +# Unset variables that we do not need and which cause bugs (e.g. in
  7921. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  7922. +# suppresses any "Segmentation fault" message there. '((' could
  7923. +# trigger a bug in pdksh 5.2.14.
  7924. +for as_var in BASH_ENV ENV MAIL MAILPATH
  7925. +do eval test x\${$as_var+set} = xset \
  7926. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  7927. done
  7928. PS1='$ '
  7929. PS2='> '
  7930. PS4='+ '
  7931. # NLS nuisances.
  7932. -for as_var in \
  7933. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  7934. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  7935. - LC_TELEPHONE LC_TIME
  7936. +LC_ALL=C
  7937. +export LC_ALL
  7938. +LANGUAGE=C
  7939. +export LANGUAGE
  7940. +
  7941. +# CDPATH.
  7942. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7943. +
  7944. +if test "x$CONFIG_SHELL" = x; then
  7945. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  7946. + emulate sh
  7947. + NULLCMD=:
  7948. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  7949. + # is contrary to our usage. Disable this feature.
  7950. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  7951. + setopt NO_GLOB_SUBST
  7952. +else
  7953. + case \`(set -o) 2>/dev/null\` in #(
  7954. + *posix*) :
  7955. + set -o posix ;; #(
  7956. + *) :
  7957. + ;;
  7958. +esac
  7959. +fi
  7960. +"
  7961. + as_required="as_fn_return () { (exit \$1); }
  7962. +as_fn_success () { as_fn_return 0; }
  7963. +as_fn_failure () { as_fn_return 1; }
  7964. +as_fn_ret_success () { return 0; }
  7965. +as_fn_ret_failure () { return 1; }
  7966. +
  7967. +exitcode=0
  7968. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  7969. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  7970. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  7971. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  7972. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  7973. +
  7974. +else
  7975. + exitcode=1; echo positional parameters were not saved.
  7976. +fi
  7977. +test x\$exitcode = x0 || exit 1"
  7978. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  7979. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  7980. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  7981. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  7982. +test \$(( 1 + 1 )) = 2 || exit 1"
  7983. + if (eval "$as_required") 2>/dev/null; then :
  7984. + as_have_required=yes
  7985. +else
  7986. + as_have_required=no
  7987. +fi
  7988. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  7989. +
  7990. +else
  7991. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7992. +as_found=false
  7993. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  7994. do
  7995. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  7996. - eval $as_var=C; export $as_var
  7997. - else
  7998. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  7999. - fi
  8000. + IFS=$as_save_IFS
  8001. + test -z "$as_dir" && as_dir=.
  8002. + as_found=:
  8003. + case $as_dir in #(
  8004. + /*)
  8005. + for as_base in sh bash ksh sh5; do
  8006. + # Try only shells that exist, to save several forks.
  8007. + as_shell=$as_dir/$as_base
  8008. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  8009. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  8010. + CONFIG_SHELL=$as_shell as_have_required=yes
  8011. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  8012. + break 2
  8013. +fi
  8014. +fi
  8015. + done;;
  8016. + esac
  8017. + as_found=false
  8018. done
  8019. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  8020. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  8021. + CONFIG_SHELL=$SHELL as_have_required=yes
  8022. +fi; }
  8023. +IFS=$as_save_IFS
  8024. +
  8025. +
  8026. + if test "x$CONFIG_SHELL" != x; then :
  8027. + # We cannot yet assume a decent shell, so we have to provide a
  8028. + # neutralization value for shells without unset; and this also
  8029. + # works around shells that cannot unset nonexistent variables.
  8030. + BASH_ENV=/dev/null
  8031. + ENV=/dev/null
  8032. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  8033. + export CONFIG_SHELL
  8034. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  8035. +fi
  8036. +
  8037. + if test x$as_have_required = xno; then :
  8038. + $as_echo "$0: This script requires a shell more modern than all"
  8039. + $as_echo "$0: the shells that I found on your system."
  8040. + if test x${ZSH_VERSION+set} = xset ; then
  8041. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  8042. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  8043. + else
  8044. + $as_echo "$0: Please tell bug-autoconf@gnu.org and icecast@xiph.org
  8045. +$0: about your system, including any error possibly output
  8046. +$0: before this message. Then install a modern shell, or
  8047. +$0: manually run the script under such a shell if you do
  8048. +$0: have one."
  8049. + fi
  8050. + exit 1
  8051. +fi
  8052. +fi
  8053. +fi
  8054. +SHELL=${CONFIG_SHELL-/bin/sh}
  8055. +export SHELL
  8056. +# Unset more variables known to interfere with behavior of common tools.
  8057. +CLICOLOR_FORCE= GREP_OPTIONS=
  8058. +unset CLICOLOR_FORCE GREP_OPTIONS
  8059. +
  8060. +## --------------------- ##
  8061. +## M4sh Shell Functions. ##
  8062. +## --------------------- ##
  8063. +# as_fn_unset VAR
  8064. +# ---------------
  8065. +# Portably unset VAR.
  8066. +as_fn_unset ()
  8067. +{
  8068. + { eval $1=; unset $1;}
  8069. +}
  8070. +as_unset=as_fn_unset
  8071. +
  8072. +# as_fn_set_status STATUS
  8073. +# -----------------------
  8074. +# Set $? to STATUS, without forking.
  8075. +as_fn_set_status ()
  8076. +{
  8077. + return $1
  8078. +} # as_fn_set_status
  8079. +
  8080. +# as_fn_exit STATUS
  8081. +# -----------------
  8082. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8083. +as_fn_exit ()
  8084. +{
  8085. + set +e
  8086. + as_fn_set_status $1
  8087. + exit $1
  8088. +} # as_fn_exit
  8089. +
  8090. +# as_fn_mkdir_p
  8091. +# -------------
  8092. +# Create "$as_dir" as a directory, including parents if necessary.
  8093. +as_fn_mkdir_p ()
  8094. +{
  8095. +
  8096. + case $as_dir in #(
  8097. + -*) as_dir=./$as_dir;;
  8098. + esac
  8099. + test -d "$as_dir" || eval $as_mkdir_p || {
  8100. + as_dirs=
  8101. + while :; do
  8102. + case $as_dir in #(
  8103. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8104. + *) as_qdir=$as_dir;;
  8105. + esac
  8106. + as_dirs="'$as_qdir' $as_dirs"
  8107. + as_dir=`$as_dirname -- "$as_dir" ||
  8108. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8109. + X"$as_dir" : 'X\(//\)[^/]' \| \
  8110. + X"$as_dir" : 'X\(//\)$' \| \
  8111. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8112. +$as_echo X"$as_dir" |
  8113. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8114. + s//\1/
  8115. + q
  8116. + }
  8117. + /^X\(\/\/\)[^/].*/{
  8118. + s//\1/
  8119. + q
  8120. + }
  8121. + /^X\(\/\/\)$/{
  8122. + s//\1/
  8123. + q
  8124. + }
  8125. + /^X\(\/\).*/{
  8126. + s//\1/
  8127. + q
  8128. + }
  8129. + s/.*/./; q'`
  8130. + test -d "$as_dir" && break
  8131. + done
  8132. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  8133. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  8134. +
  8135. +
  8136. +} # as_fn_mkdir_p
  8137. +# as_fn_append VAR VALUE
  8138. +# ----------------------
  8139. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  8140. +# advantage of any shell optimizations that allow amortized linear growth over
  8141. +# repeated appends, instead of the typical quadratic growth present in naive
  8142. +# implementations.
  8143. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8144. + eval 'as_fn_append ()
  8145. + {
  8146. + eval $1+=\$2
  8147. + }'
  8148. +else
  8149. + as_fn_append ()
  8150. + {
  8151. + eval $1=\$$1\$2
  8152. + }
  8153. +fi # as_fn_append
  8154. +
  8155. +# as_fn_arith ARG...
  8156. +# ------------------
  8157. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  8158. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  8159. +# must be portable across $(()) and expr.
  8160. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8161. + eval 'as_fn_arith ()
  8162. + {
  8163. + as_val=$(( $* ))
  8164. + }'
  8165. +else
  8166. + as_fn_arith ()
  8167. + {
  8168. + as_val=`expr "$@" || test $? -eq 1`
  8169. + }
  8170. +fi # as_fn_arith
  8171. +
  8172. +
  8173. +# as_fn_error ERROR [LINENO LOG_FD]
  8174. +# ---------------------------------
  8175. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8176. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8177. +# script with status $?, using 1 if that was 0.
  8178. +as_fn_error ()
  8179. +{
  8180. + as_status=$?; test $as_status -eq 0 && as_status=1
  8181. + if test "$3"; then
  8182. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8183. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  8184. + fi
  8185. + $as_echo "$as_me: error: $1" >&2
  8186. + as_fn_exit $as_status
  8187. +} # as_fn_error
  8188. -# Required to use basename.
  8189. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8190. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8191. as_expr=expr
  8192. @@ -128,13 +388,17 @@
  8193. as_basename=false
  8194. fi
  8195. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8196. + as_dirname=dirname
  8197. +else
  8198. + as_dirname=false
  8199. +fi
  8200. -# Name of the executable.
  8201. as_me=`$as_basename -- "$0" ||
  8202. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8203. X"$0" : 'X\(//\)$' \| \
  8204. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8205. -echo X/"$0" |
  8206. +$as_echo X/"$0" |
  8207. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8208. s//\1/
  8209. q
  8210. @@ -149,428 +413,142 @@
  8211. }
  8212. s/.*/./; q'`
  8213. -# CDPATH.
  8214. -$as_unset CDPATH
  8215. +# Avoid depending upon Character Ranges.
  8216. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8217. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8218. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8219. +as_cr_digits='0123456789'
  8220. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  8221. -if test "x$CONFIG_SHELL" = x; then
  8222. - if (eval ":") 2>/dev/null; then
  8223. - as_have_required=yes
  8224. -else
  8225. - as_have_required=no
  8226. -fi
  8227. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  8228. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  8229. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  8230. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  8231. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  8232. + sed -n '
  8233. + p
  8234. + /[$]LINENO/=
  8235. + ' <$as_myself |
  8236. + sed '
  8237. + s/[$]LINENO.*/&-/
  8238. + t lineno
  8239. + b
  8240. + :lineno
  8241. + N
  8242. + :loop
  8243. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  8244. + t loop
  8245. + s/-\n.*//
  8246. + ' >$as_me.lineno &&
  8247. + chmod +x "$as_me.lineno" ||
  8248. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  8249. - if test $as_have_required = yes && (eval ":
  8250. -(as_func_return () {
  8251. - (exit \$1)
  8252. -}
  8253. -as_func_success () {
  8254. - as_func_return 0
  8255. -}
  8256. -as_func_failure () {
  8257. - as_func_return 1
  8258. -}
  8259. -as_func_ret_success () {
  8260. - return 0
  8261. -}
  8262. -as_func_ret_failure () {
  8263. - return 1
  8264. + # Don't try to exec as it changes $[0], causing all sort of problems
  8265. + # (the dirname of $[0] is not the place where we might find the
  8266. + # original and so on. Autoconf is especially sensitive to this).
  8267. + . "./$as_me.lineno"
  8268. + # Exit status is that of the last command.
  8269. + exit
  8270. }
  8271. -exitcode=0
  8272. -if as_func_success; then
  8273. - :
  8274. -else
  8275. - exitcode=1
  8276. - echo as_func_success failed.
  8277. -fi
  8278. +ECHO_C= ECHO_N= ECHO_T=
  8279. +case `echo -n x` in #(((((
  8280. +-n*)
  8281. + case `echo 'xy\c'` in
  8282. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8283. + xy) ECHO_C='\c';;
  8284. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8285. + ECHO_T=' ';;
  8286. + esac;;
  8287. +*)
  8288. + ECHO_N='-n';;
  8289. +esac
  8290. -if as_func_failure; then
  8291. - exitcode=1
  8292. - echo as_func_failure succeeded.
  8293. +rm -f conf$$ conf$$.exe conf$$.file
  8294. +if test -d conf$$.dir; then
  8295. + rm -f conf$$.dir/conf$$.file
  8296. +else
  8297. + rm -f conf$$.dir
  8298. + mkdir conf$$.dir 2>/dev/null
  8299. fi
  8300. -
  8301. -if as_func_ret_success; then
  8302. - :
  8303. +if (echo >conf$$.file) 2>/dev/null; then
  8304. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  8305. + as_ln_s='ln -s'
  8306. + # ... but there are two gotchas:
  8307. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8308. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8309. + # In both cases, we have to default to `cp -p'.
  8310. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8311. + as_ln_s='cp -p'
  8312. + elif ln conf$$.file conf$$ 2>/dev/null; then
  8313. + as_ln_s=ln
  8314. + else
  8315. + as_ln_s='cp -p'
  8316. + fi
  8317. else
  8318. - exitcode=1
  8319. - echo as_func_ret_success failed.
  8320. + as_ln_s='cp -p'
  8321. fi
  8322. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8323. +rmdir conf$$.dir 2>/dev/null
  8324. -if as_func_ret_failure; then
  8325. - exitcode=1
  8326. - echo as_func_ret_failure succeeded.
  8327. +if mkdir -p . 2>/dev/null; then
  8328. + as_mkdir_p='mkdir -p "$as_dir"'
  8329. +else
  8330. + test -d ./-p && rmdir ./-p
  8331. + as_mkdir_p=false
  8332. fi
  8333. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  8334. - :
  8335. +if test -x / >/dev/null 2>&1; then
  8336. + as_test_x='test -x'
  8337. else
  8338. - exitcode=1
  8339. - echo positional parameters were not saved.
  8340. + if ls -dL / >/dev/null 2>&1; then
  8341. + as_ls_L_option=L
  8342. + else
  8343. + as_ls_L_option=
  8344. + fi
  8345. + as_test_x='
  8346. + eval sh -c '\''
  8347. + if test -d "$1"; then
  8348. + test -d "$1/.";
  8349. + else
  8350. + case $1 in #(
  8351. + -*)set "./$1";;
  8352. + esac;
  8353. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  8354. + ???[sx]*):;;*)false;;esac;fi
  8355. + '\'' sh
  8356. + '
  8357. fi
  8358. +as_executable_p=$as_test_x
  8359. -test \$exitcode = 0) || { (exit 1); exit 1; }
  8360. -
  8361. -(
  8362. - as_lineno_1=\$LINENO
  8363. - as_lineno_2=\$LINENO
  8364. - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  8365. - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  8366. -") 2> /dev/null; then
  8367. - :
  8368. -else
  8369. - as_candidate_shells=
  8370. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8371. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8372. -do
  8373. - IFS=$as_save_IFS
  8374. - test -z "$as_dir" && as_dir=.
  8375. - case $as_dir in
  8376. - /*)
  8377. - for as_base in sh bash ksh sh5; do
  8378. - as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  8379. - done;;
  8380. - esac
  8381. -done
  8382. -IFS=$as_save_IFS
  8383. +# Sed expression to map a string onto a valid CPP name.
  8384. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8385. +# Sed expression to map a string onto a valid variable name.
  8386. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8387. - for as_shell in $as_candidate_shells $SHELL; do
  8388. - # Try only shells that exist, to save several forks.
  8389. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  8390. - { ("$as_shell") 2> /dev/null <<\_ASEOF
  8391. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8392. - emulate sh
  8393. - NULLCMD=:
  8394. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8395. - # is contrary to our usage. Disable this feature.
  8396. - alias -g '${1+"$@"}'='"$@"'
  8397. - setopt NO_GLOB_SUBST
  8398. -else
  8399. - case `(set -o) 2>/dev/null` in
  8400. - *posix*) set -o posix ;;
  8401. -esac
  8402. -fi
  8403. +# Check that we are running under the correct shell.
  8404. +SHELL=${CONFIG_SHELL-/bin/sh}
  8405. -:
  8406. -_ASEOF
  8407. -}; then
  8408. - CONFIG_SHELL=$as_shell
  8409. - as_have_required=yes
  8410. - if { "$as_shell" 2> /dev/null <<\_ASEOF
  8411. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8412. - emulate sh
  8413. - NULLCMD=:
  8414. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8415. - # is contrary to our usage. Disable this feature.
  8416. - alias -g '${1+"$@"}'='"$@"'
  8417. - setopt NO_GLOB_SUBST
  8418. -else
  8419. - case `(set -o) 2>/dev/null` in
  8420. - *posix*) set -o posix ;;
  8421. +case X$lt_ECHO in
  8422. +X*--fallback-echo)
  8423. + # Remove one level of quotation (which was required for Make).
  8424. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  8425. + ;;
  8426. esac
  8427. -fi
  8428. -
  8429. -
  8430. -:
  8431. -(as_func_return () {
  8432. - (exit $1)
  8433. -}
  8434. -as_func_success () {
  8435. - as_func_return 0
  8436. -}
  8437. -as_func_failure () {
  8438. - as_func_return 1
  8439. -}
  8440. -as_func_ret_success () {
  8441. - return 0
  8442. -}
  8443. -as_func_ret_failure () {
  8444. - return 1
  8445. -}
  8446. -
  8447. -exitcode=0
  8448. -if as_func_success; then
  8449. - :
  8450. -else
  8451. - exitcode=1
  8452. - echo as_func_success failed.
  8453. -fi
  8454. -
  8455. -if as_func_failure; then
  8456. - exitcode=1
  8457. - echo as_func_failure succeeded.
  8458. -fi
  8459. -
  8460. -if as_func_ret_success; then
  8461. - :
  8462. -else
  8463. - exitcode=1
  8464. - echo as_func_ret_success failed.
  8465. -fi
  8466. -
  8467. -if as_func_ret_failure; then
  8468. - exitcode=1
  8469. - echo as_func_ret_failure succeeded.
  8470. -fi
  8471. -
  8472. -if ( set x; as_func_ret_success y && test x = "$1" ); then
  8473. - :
  8474. -else
  8475. - exitcode=1
  8476. - echo positional parameters were not saved.
  8477. -fi
  8478. -
  8479. -test $exitcode = 0) || { (exit 1); exit 1; }
  8480. -
  8481. -(
  8482. - as_lineno_1=$LINENO
  8483. - as_lineno_2=$LINENO
  8484. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  8485. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  8486. -
  8487. -_ASEOF
  8488. -}; then
  8489. - break
  8490. -fi
  8491. -
  8492. -fi
  8493. -
  8494. - done
  8495. -
  8496. - if test "x$CONFIG_SHELL" != x; then
  8497. - for as_var in BASH_ENV ENV
  8498. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  8499. - done
  8500. - export CONFIG_SHELL
  8501. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  8502. -fi
  8503. -
  8504. -
  8505. - if test $as_have_required = no; then
  8506. - echo This script requires a shell more modern than all the
  8507. - echo shells that I found on your system. Please install a
  8508. - echo modern shell, or manually run the script under such a
  8509. - echo shell if you do have one.
  8510. - { (exit 1); exit 1; }
  8511. -fi
  8512. -
  8513. -
  8514. -fi
  8515. -
  8516. -fi
  8517. -
  8518. -
  8519. -
  8520. -(eval "as_func_return () {
  8521. - (exit \$1)
  8522. -}
  8523. -as_func_success () {
  8524. - as_func_return 0
  8525. -}
  8526. -as_func_failure () {
  8527. - as_func_return 1
  8528. -}
  8529. -as_func_ret_success () {
  8530. - return 0
  8531. -}
  8532. -as_func_ret_failure () {
  8533. - return 1
  8534. -}
  8535. -
  8536. -exitcode=0
  8537. -if as_func_success; then
  8538. - :
  8539. -else
  8540. - exitcode=1
  8541. - echo as_func_success failed.
  8542. -fi
  8543. -
  8544. -if as_func_failure; then
  8545. - exitcode=1
  8546. - echo as_func_failure succeeded.
  8547. -fi
  8548. -
  8549. -if as_func_ret_success; then
  8550. - :
  8551. -else
  8552. - exitcode=1
  8553. - echo as_func_ret_success failed.
  8554. -fi
  8555. -
  8556. -if as_func_ret_failure; then
  8557. - exitcode=1
  8558. - echo as_func_ret_failure succeeded.
  8559. -fi
  8560. -
  8561. -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  8562. - :
  8563. -else
  8564. - exitcode=1
  8565. - echo positional parameters were not saved.
  8566. -fi
  8567. -
  8568. -test \$exitcode = 0") || {
  8569. - echo No shell found that supports shell functions.
  8570. - echo Please tell autoconf@gnu.org about your system,
  8571. - echo including any error possibly output before this
  8572. - echo message
  8573. -}
  8574. -
  8575. -
  8576. -
  8577. - as_lineno_1=$LINENO
  8578. - as_lineno_2=$LINENO
  8579. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  8580. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  8581. -
  8582. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8583. - # uniformly replaced by the line number. The first 'sed' inserts a
  8584. - # line-number line after each line using $LINENO; the second 'sed'
  8585. - # does the real work. The second script uses 'N' to pair each
  8586. - # line-number line with the line containing $LINENO, and appends
  8587. - # trailing '-' during substitution so that $LINENO is not a special
  8588. - # case at line end.
  8589. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8590. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  8591. - # E. McMahon (1931-1989) for sed's syntax. :-)
  8592. - sed -n '
  8593. - p
  8594. - /[$]LINENO/=
  8595. - ' <$as_myself |
  8596. - sed '
  8597. - s/[$]LINENO.*/&-/
  8598. - t lineno
  8599. - b
  8600. - :lineno
  8601. - N
  8602. - :loop
  8603. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  8604. - t loop
  8605. - s/-\n.*//
  8606. - ' >$as_me.lineno &&
  8607. - chmod +x "$as_me.lineno" ||
  8608. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  8609. - { (exit 1); exit 1; }; }
  8610. -
  8611. - # Don't try to exec as it changes $[0], causing all sort of problems
  8612. - # (the dirname of $[0] is not the place where we might find the
  8613. - # original and so on. Autoconf is especially sensitive to this).
  8614. - . "./$as_me.lineno"
  8615. - # Exit status is that of the last command.
  8616. - exit
  8617. -}
  8618. -
  8619. -
  8620. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8621. - as_dirname=dirname
  8622. -else
  8623. - as_dirname=false
  8624. -fi
  8625. -
  8626. -ECHO_C= ECHO_N= ECHO_T=
  8627. -case `echo -n x` in
  8628. --n*)
  8629. - case `echo 'x\c'` in
  8630. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8631. - *) ECHO_C='\c';;
  8632. - esac;;
  8633. -*)
  8634. - ECHO_N='-n';;
  8635. -esac
  8636. -
  8637. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  8638. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8639. - as_expr=expr
  8640. -else
  8641. - as_expr=false
  8642. -fi
  8643. -
  8644. -rm -f conf$$ conf$$.exe conf$$.file
  8645. -if test -d conf$$.dir; then
  8646. - rm -f conf$$.dir/conf$$.file
  8647. -else
  8648. - rm -f conf$$.dir
  8649. - mkdir conf$$.dir
  8650. -fi
  8651. -echo >conf$$.file
  8652. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  8653. - as_ln_s='ln -s'
  8654. - # ... but there are two gotchas:
  8655. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8656. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8657. - # In both cases, we have to default to `cp -p'.
  8658. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8659. - as_ln_s='cp -p'
  8660. -elif ln conf$$.file conf$$ 2>/dev/null; then
  8661. - as_ln_s=ln
  8662. -else
  8663. - as_ln_s='cp -p'
  8664. -fi
  8665. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8666. -rmdir conf$$.dir 2>/dev/null
  8667. -
  8668. -if mkdir -p . 2>/dev/null; then
  8669. - as_mkdir_p=:
  8670. -else
  8671. - test -d ./-p && rmdir ./-p
  8672. - as_mkdir_p=false
  8673. -fi
  8674. -
  8675. -if test -x / >/dev/null 2>&1; then
  8676. - as_test_x='test -x'
  8677. -else
  8678. - if ls -dL / >/dev/null 2>&1; then
  8679. - as_ls_L_option=L
  8680. - else
  8681. - as_ls_L_option=
  8682. - fi
  8683. - as_test_x='
  8684. - eval sh -c '\''
  8685. - if test -d "$1"; then
  8686. - test -d "$1/.";
  8687. - else
  8688. - case $1 in
  8689. - -*)set "./$1";;
  8690. - esac;
  8691. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  8692. - ???[sx]*):;;*)false;;esac;fi
  8693. - '\'' sh
  8694. - '
  8695. -fi
  8696. -as_executable_p=$as_test_x
  8697. -
  8698. -# Sed expression to map a string onto a valid CPP name.
  8699. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8700. -
  8701. -# Sed expression to map a string onto a valid variable name.
  8702. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8703. -
  8704. -
  8705. -
  8706. -
  8707. -# Check that we are running under the correct shell.
  8708. -SHELL=${CONFIG_SHELL-/bin/sh}
  8709. -
  8710. -case X$ECHO in
  8711. -X*--fallback-echo)
  8712. - # Remove one level of quotation (which was required for Make).
  8713. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  8714. - ;;
  8715. -esac
  8716. -
  8717. -echo=${ECHO-echo}
  8718. +ECHO=${lt_ECHO-echo}
  8719. if test "X$1" = X--no-reexec; then
  8720. # Discard the --no-reexec flag, and continue.
  8721. shift
  8722. elif test "X$1" = X--fallback-echo; then
  8723. # Avoid inline document here, it may be left over
  8724. :
  8725. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  8726. - # Yippee, $echo works!
  8727. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  8728. + # Yippee, $ECHO works!
  8729. :
  8730. else
  8731. # Restart under the correct shell.
  8732. @@ -580,9 +558,9 @@
  8733. if test "X$1" = X--fallback-echo; then
  8734. # used as fallback echo
  8735. shift
  8736. - cat <<EOF
  8737. + cat <<_LT_EOF
  8738. $*
  8739. -EOF
  8740. +_LT_EOF
  8741. exit 0
  8742. fi
  8743. @@ -590,122 +568,118 @@
  8744. # if CDPATH is set.
  8745. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8746. -if test -z "$ECHO"; then
  8747. -if test "X${echo_test_string+set}" != Xset; then
  8748. -# find a string as large as possible, as long as the shell can cope with it
  8749. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  8750. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  8751. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  8752. - echo_test_string=`eval $cmd` &&
  8753. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  8754. - then
  8755. - break
  8756. - fi
  8757. - done
  8758. -fi
  8759. +if test -z "$lt_ECHO"; then
  8760. + if test "X${echo_test_string+set}" != Xset; then
  8761. + # find a string as large as possible, as long as the shell can cope with it
  8762. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  8763. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  8764. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  8765. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  8766. + then
  8767. + break
  8768. + fi
  8769. + done
  8770. + fi
  8771. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  8772. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  8773. - test "X$echo_testing_string" = "X$echo_test_string"; then
  8774. - :
  8775. -else
  8776. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  8777. - # backslashes. This makes it impossible to quote backslashes using
  8778. - # echo "$something" | sed 's/\\/\\\\/g'
  8779. - #
  8780. - # So, first we look for a working echo in the user's PATH.
  8781. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  8782. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  8783. + test "X$echo_testing_string" = "X$echo_test_string"; then
  8784. + :
  8785. + else
  8786. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  8787. + # backslashes. This makes it impossible to quote backslashes using
  8788. + # echo "$something" | sed 's/\\/\\\\/g'
  8789. + #
  8790. + # So, first we look for a working echo in the user's PATH.
  8791. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8792. - for dir in $PATH /usr/ucb; do
  8793. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8794. + for dir in $PATH /usr/ucb; do
  8795. + IFS="$lt_save_ifs"
  8796. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  8797. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  8798. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  8799. + test "X$echo_testing_string" = "X$echo_test_string"; then
  8800. + ECHO="$dir/echo"
  8801. + break
  8802. + fi
  8803. + done
  8804. IFS="$lt_save_ifs"
  8805. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  8806. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  8807. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  8808. - test "X$echo_testing_string" = "X$echo_test_string"; then
  8809. - echo="$dir/echo"
  8810. - break
  8811. - fi
  8812. - done
  8813. - IFS="$lt_save_ifs"
  8814. - if test "X$echo" = Xecho; then
  8815. - # We didn't find a better echo, so look for alternatives.
  8816. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  8817. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  8818. - test "X$echo_testing_string" = "X$echo_test_string"; then
  8819. - # This shell has a builtin print -r that does the trick.
  8820. - echo='print -r'
  8821. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  8822. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  8823. - # If we have ksh, try running configure again with it.
  8824. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  8825. - export ORIGINAL_CONFIG_SHELL
  8826. - CONFIG_SHELL=/bin/ksh
  8827. - export CONFIG_SHELL
  8828. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  8829. - else
  8830. - # Try using printf.
  8831. - echo='printf %s\n'
  8832. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  8833. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  8834. - test "X$echo_testing_string" = "X$echo_test_string"; then
  8835. - # Cool, printf works
  8836. - :
  8837. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  8838. - test "X$echo_testing_string" = 'X\t' &&
  8839. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  8840. - test "X$echo_testing_string" = "X$echo_test_string"; then
  8841. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  8842. - export CONFIG_SHELL
  8843. - SHELL="$CONFIG_SHELL"
  8844. - export SHELL
  8845. - echo="$CONFIG_SHELL $0 --fallback-echo"
  8846. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  8847. - test "X$echo_testing_string" = 'X\t' &&
  8848. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  8849. - test "X$echo_testing_string" = "X$echo_test_string"; then
  8850. - echo="$CONFIG_SHELL $0 --fallback-echo"
  8851. + if test "X$ECHO" = Xecho; then
  8852. + # We didn't find a better echo, so look for alternatives.
  8853. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  8854. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  8855. + test "X$echo_testing_string" = "X$echo_test_string"; then
  8856. + # This shell has a builtin print -r that does the trick.
  8857. + ECHO='print -r'
  8858. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  8859. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  8860. + # If we have ksh, try running configure again with it.
  8861. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  8862. + export ORIGINAL_CONFIG_SHELL
  8863. + CONFIG_SHELL=/bin/ksh
  8864. + export CONFIG_SHELL
  8865. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  8866. else
  8867. - # maybe with a smaller string...
  8868. - prev=:
  8869. + # Try using printf.
  8870. + ECHO='printf %s\n'
  8871. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  8872. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  8873. + test "X$echo_testing_string" = "X$echo_test_string"; then
  8874. + # Cool, printf works
  8875. + :
  8876. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  8877. + test "X$echo_testing_string" = 'X\t' &&
  8878. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  8879. + test "X$echo_testing_string" = "X$echo_test_string"; then
  8880. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  8881. + export CONFIG_SHELL
  8882. + SHELL="$CONFIG_SHELL"
  8883. + export SHELL
  8884. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  8885. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  8886. + test "X$echo_testing_string" = 'X\t' &&
  8887. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  8888. + test "X$echo_testing_string" = "X$echo_test_string"; then
  8889. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  8890. + else
  8891. + # maybe with a smaller string...
  8892. + prev=:
  8893. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  8894. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  8895. - then
  8896. - break
  8897. - fi
  8898. - prev="$cmd"
  8899. - done
  8900. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  8901. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  8902. + then
  8903. + break
  8904. + fi
  8905. + prev="$cmd"
  8906. + done
  8907. - if test "$prev" != 'sed 50q "$0"'; then
  8908. - echo_test_string=`eval $prev`
  8909. - export echo_test_string
  8910. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  8911. - else
  8912. - # Oops. We lost completely, so just stick with echo.
  8913. - echo=echo
  8914. - fi
  8915. + if test "$prev" != 'sed 50q "$0"'; then
  8916. + echo_test_string=`eval $prev`
  8917. + export echo_test_string
  8918. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  8919. + else
  8920. + # Oops. We lost completely, so just stick with echo.
  8921. + ECHO=echo
  8922. + fi
  8923. + fi
  8924. fi
  8925. fi
  8926. fi
  8927. fi
  8928. -fi
  8929. # Copy echo and quote the copy suitably for passing to libtool from
  8930. # the Makefile, instead of quoting the original, which is used later.
  8931. -ECHO=$echo
  8932. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  8933. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  8934. +lt_ECHO=$ECHO
  8935. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  8936. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  8937. fi
  8938. -tagnames=${tagnames+${tagnames},}CXX
  8939. -
  8940. -tagnames=${tagnames+${tagnames},}F77
  8941. -
  8942. -exec 7<&0 </dev/null 6>&1
  8943. +test -n "$DJDIR" || exec 7<&0 </dev/null
  8944. +exec 6>&1
  8945. # Name of the host.
  8946. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  8947. @@ -723,7 +697,6 @@
  8948. subdirs=
  8949. MFLAGS=
  8950. MAKEFLAGS=
  8951. -SHELL=${CONFIG_SHELL-/bin/sh}
  8952. # Identity of this package.
  8953. PACKAGE_NAME='Icecast'
  8954. @@ -731,6 +704,7 @@
  8955. PACKAGE_VERSION='2.3.2'
  8956. PACKAGE_STRING='Icecast 2.3.2'
  8957. PACKAGE_BUGREPORT='icecast@xiph.org'
  8958. +PACKAGE_URL=''
  8959. ac_unique_file="src/main.c"
  8960. # Factoring default headers for most tests.
  8961. @@ -769,153 +743,178 @@
  8962. # include <unistd.h>
  8963. #endif"
  8964. -ac_subst_vars='SHELL
  8965. -PATH_SEPARATOR
  8966. -PACKAGE_NAME
  8967. -PACKAGE_TARNAME
  8968. -PACKAGE_VERSION
  8969. -PACKAGE_STRING
  8970. -PACKAGE_BUGREPORT
  8971. -exec_prefix
  8972. -prefix
  8973. -program_transform_name
  8974. -bindir
  8975. -sbindir
  8976. -libexecdir
  8977. -datarootdir
  8978. -datadir
  8979. -sysconfdir
  8980. -sharedstatedir
  8981. -localstatedir
  8982. -includedir
  8983. -oldincludedir
  8984. -docdir
  8985. -infodir
  8986. -htmldir
  8987. -dvidir
  8988. -pdfdir
  8989. -psdir
  8990. -libdir
  8991. -localedir
  8992. -mandir
  8993. -DEFS
  8994. -ECHO_C
  8995. -ECHO_N
  8996. -ECHO_T
  8997. -LIBS
  8998. -build_alias
  8999. -host_alias
  9000. -target_alias
  9001. -INSTALL_PROGRAM
  9002. -INSTALL_SCRIPT
  9003. -INSTALL_DATA
  9004. -am__isrc
  9005. -CYGPATH_W
  9006. -PACKAGE
  9007. -VERSION
  9008. -ACLOCAL
  9009. -AUTOCONF
  9010. -AUTOMAKE
  9011. -AUTOHEADER
  9012. -MAKEINFO
  9013. -install_sh
  9014. -STRIP
  9015. -INSTALL_STRIP_PROGRAM
  9016. -mkdir_p
  9017. -AWK
  9018. -SET_MAKE
  9019. -am__leading_dot
  9020. -AMTAR
  9021. -am__tar
  9022. -am__untar
  9023. -MAINTAINER_MODE_TRUE
  9024. -MAINTAINER_MODE_FALSE
  9025. -MAINT
  9026. -CC
  9027. -CFLAGS
  9028. -LDFLAGS
  9029. -CPPFLAGS
  9030. -ac_ct_CC
  9031. -EXEEXT
  9032. -OBJEXT
  9033. -DEPDIR
  9034. -am__include
  9035. -am__quote
  9036. -AMDEP_TRUE
  9037. -AMDEP_FALSE
  9038. -AMDEPBACKSLASH
  9039. -CCDEPMODE
  9040. -am__fastdepCC_TRUE
  9041. -am__fastdepCC_FALSE
  9042. -build
  9043. -build_cpu
  9044. -build_vendor
  9045. -build_os
  9046. -host
  9047. -host_cpu
  9048. -host_vendor
  9049. -host_os
  9050. -SED
  9051. -GREP
  9052. -EGREP
  9053. -LN_S
  9054. -ECHO
  9055. -AR
  9056. -RANLIB
  9057. -CPP
  9058. -CXX
  9059. -CXXFLAGS
  9060. -ac_ct_CXX
  9061. -CXXDEPMODE
  9062. -am__fastdepCXX_TRUE
  9063. -am__fastdepCXX_FALSE
  9064. -CXXCPP
  9065. -F77
  9066. -FFLAGS
  9067. -ac_ct_F77
  9068. -LIBTOOL
  9069. +ac_subst_vars='am__EXEEXT_FALSE
  9070. +am__EXEEXT_TRUE
  9071. +LTLIBOBJS
  9072. +LIBOBJS
  9073. +KATE_LIBS
  9074. +HAVE_KATE
  9075. +ICECAST_OPTIONAL
  9076. +PROFILE
  9077. +DEBUG
  9078. +LIBTOOL_DEPS
  9079. +XIPH_LDFLAGS
  9080. +XIPH_LIBS
  9081. +XIPH_CFLAGS
  9082. +XIPH_CPPFLAGS
  9083. +PKGCONFIG
  9084. +CURL_LIBS
  9085. +CURL_CFLAGS
  9086. +CURL_CONFIG
  9087. +PTHREAD_CPPFLAGS
  9088. +PTHREAD_CFLAGS
  9089. +PTHREAD_LIBS
  9090. +PTHREAD_CC
  9091. +acx_pthread_config
  9092. +SPEEX_LIBS
  9093. +SPEEX_LDFLAGS
  9094. +SPEEX_CFLAGS
  9095. +SPEEX
  9096. +THEORA_LIBS
  9097. +THEORA_LDFLAGS
  9098. +THEORA_CFLAGS
  9099. +THEORA
  9100. +VORBISENC_LIBS
  9101. +VORBISFILE_LIBS
  9102. +VORBIS_LIBS
  9103. +VORBIS_LDFLAGS
  9104. +VORBIS_CFLAGS
  9105. +VORBIS_PREFIX
  9106. +OGG_LDFLAGS
  9107. +OGG_CFLAGS
  9108. +OGG_LIBS
  9109. +OGG_PREFIX
  9110. XSLTCONFIG
  9111. +CPP
  9112. +OTOOL64
  9113. +OTOOL
  9114. +LIPO
  9115. +NMEDIT
  9116. +DSYMUTIL
  9117. +lt_ECHO
  9118. +RANLIB
  9119. +AR
  9120. +OBJDUMP
  9121. +LN_S
  9122. +NM
  9123. +ac_ct_DUMPBIN
  9124. +DUMPBIN
  9125. +LD
  9126. FGREP
  9127. -OGG_PREFIX
  9128. -OGG_LIBS
  9129. -OGG_CFLAGS
  9130. -OGG_LDFLAGS
  9131. -VORBIS_PREFIX
  9132. -VORBIS_CFLAGS
  9133. -VORBIS_LDFLAGS
  9134. -VORBIS_LIBS
  9135. -VORBISFILE_LIBS
  9136. -VORBISENC_LIBS
  9137. -THEORA
  9138. -THEORA_CFLAGS
  9139. -THEORA_LDFLAGS
  9140. -THEORA_LIBS
  9141. -SPEEX
  9142. -SPEEX_CFLAGS
  9143. -SPEEX_LDFLAGS
  9144. -SPEEX_LIBS
  9145. -acx_pthread_config
  9146. -PTHREAD_CC
  9147. -PTHREAD_LIBS
  9148. -PTHREAD_CFLAGS
  9149. -PTHREAD_CPPFLAGS
  9150. -CURL_CONFIG
  9151. -CURL_CFLAGS
  9152. -CURL_LIBS
  9153. -PKGCONFIG
  9154. -XIPH_CPPFLAGS
  9155. -XIPH_CFLAGS
  9156. -XIPH_LIBS
  9157. -XIPH_LDFLAGS
  9158. -LIBTOOL_DEPS
  9159. -DEBUG
  9160. -PROFILE
  9161. -ICECAST_OPTIONAL
  9162. -HAVE_KATE
  9163. -KATE_LIBS
  9164. -LIBOBJS
  9165. -LTLIBOBJS'
  9166. +EGREP
  9167. +GREP
  9168. +SED
  9169. +LIBTOOL
  9170. +host_os
  9171. +host_vendor
  9172. +host_cpu
  9173. +host
  9174. +build_os
  9175. +build_vendor
  9176. +build_cpu
  9177. +build
  9178. +am__fastdepCC_FALSE
  9179. +am__fastdepCC_TRUE
  9180. +CCDEPMODE
  9181. +AMDEPBACKSLASH
  9182. +AMDEP_FALSE
  9183. +AMDEP_TRUE
  9184. +am__quote
  9185. +am__include
  9186. +DEPDIR
  9187. +OBJEXT
  9188. +EXEEXT
  9189. +ac_ct_CC
  9190. +CPPFLAGS
  9191. +LDFLAGS
  9192. +CFLAGS
  9193. +CC
  9194. +MAINT
  9195. +MAINTAINER_MODE_FALSE
  9196. +MAINTAINER_MODE_TRUE
  9197. +am__untar
  9198. +am__tar
  9199. +AMTAR
  9200. +am__leading_dot
  9201. +SET_MAKE
  9202. +AWK
  9203. +mkdir_p
  9204. +MKDIR_P
  9205. +INSTALL_STRIP_PROGRAM
  9206. +STRIP
  9207. +install_sh
  9208. +MAKEINFO
  9209. +AUTOHEADER
  9210. +AUTOMAKE
  9211. +AUTOCONF
  9212. +ACLOCAL
  9213. +VERSION
  9214. +PACKAGE
  9215. +CYGPATH_W
  9216. +am__isrc
  9217. +INSTALL_DATA
  9218. +INSTALL_SCRIPT
  9219. +INSTALL_PROGRAM
  9220. +target_alias
  9221. +host_alias
  9222. +build_alias
  9223. +LIBS
  9224. +ECHO_T
  9225. +ECHO_N
  9226. +ECHO_C
  9227. +DEFS
  9228. +mandir
  9229. +localedir
  9230. +libdir
  9231. +psdir
  9232. +pdfdir
  9233. +dvidir
  9234. +htmldir
  9235. +infodir
  9236. +docdir
  9237. +oldincludedir
  9238. +includedir
  9239. +localstatedir
  9240. +sharedstatedir
  9241. +sysconfdir
  9242. +datadir
  9243. +datarootdir
  9244. +libexecdir
  9245. +sbindir
  9246. +bindir
  9247. +program_transform_name
  9248. +prefix
  9249. +exec_prefix
  9250. +PACKAGE_URL
  9251. +PACKAGE_BUGREPORT
  9252. +PACKAGE_STRING
  9253. +PACKAGE_VERSION
  9254. +PACKAGE_TARNAME
  9255. +PACKAGE_NAME
  9256. +PATH_SEPARATOR
  9257. +SHELL'
  9258. ac_subst_files=''
  9259. +ac_user_opts='
  9260. +enable_option_checking
  9261. +enable_maintainer_mode
  9262. +enable_dependency_tracking
  9263. +enable_shared
  9264. +enable_static
  9265. +with_pic
  9266. +enable_fast_install
  9267. +with_gnu_ld
  9268. +enable_libtool_lock
  9269. +enable_largefile
  9270. +with_xslt_config
  9271. +with_ogg
  9272. +with_vorbis
  9273. +with_theora
  9274. +with_speex
  9275. +with_curl
  9276. +with_curl_config
  9277. +enable_yp
  9278. +with_openssl
  9279. +'
  9280. ac_precious_vars='build_alias
  9281. host_alias
  9282. target_alias
  9283. @@ -925,12 +924,6 @@
  9284. LIBS
  9285. CPPFLAGS
  9286. CPP
  9287. -CXX
  9288. -CXXFLAGS
  9289. -CCC
  9290. -CXXCPP
  9291. -F77
  9292. -FFLAGS
  9293. XSLTCONFIG
  9294. OGG_PREFIX
  9295. VORBIS_PREFIX
  9296. @@ -941,6 +934,8 @@
  9297. # Initialize some variables set by options.
  9298. ac_init_help=
  9299. ac_init_version=false
  9300. +ac_unrecognized_opts=
  9301. +ac_unrecognized_sep=
  9302. # The variables have the same names as the options, with
  9303. # dashes changed to underlines.
  9304. cache_file=/dev/null
  9305. @@ -1039,13 +1034,20 @@
  9306. datarootdir=$ac_optarg ;;
  9307. -disable-* | --disable-*)
  9308. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  9309. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  9310. # Reject names that are not valid shell variable names.
  9311. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  9312. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  9313. - { (exit 1); exit 1; }; }
  9314. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  9315. - eval enable_$ac_feature=no ;;
  9316. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  9317. + as_fn_error "invalid feature name: $ac_useropt"
  9318. + ac_useropt_orig=$ac_useropt
  9319. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  9320. + case $ac_user_opts in
  9321. + *"
  9322. +"enable_$ac_useropt"
  9323. +"*) ;;
  9324. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  9325. + ac_unrecognized_sep=', ';;
  9326. + esac
  9327. + eval enable_$ac_useropt=no ;;
  9328. -docdir | --docdir | --docdi | --doc | --do)
  9329. ac_prev=docdir ;;
  9330. @@ -1058,13 +1060,20 @@
  9331. dvidir=$ac_optarg ;;
  9332. -enable-* | --enable-*)
  9333. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  9334. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  9335. # Reject names that are not valid shell variable names.
  9336. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  9337. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  9338. - { (exit 1); exit 1; }; }
  9339. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  9340. - eval enable_$ac_feature=\$ac_optarg ;;
  9341. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  9342. + as_fn_error "invalid feature name: $ac_useropt"
  9343. + ac_useropt_orig=$ac_useropt
  9344. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  9345. + case $ac_user_opts in
  9346. + *"
  9347. +"enable_$ac_useropt"
  9348. +"*) ;;
  9349. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  9350. + ac_unrecognized_sep=', ';;
  9351. + esac
  9352. + eval enable_$ac_useropt=\$ac_optarg ;;
  9353. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  9354. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  9355. @@ -1255,22 +1264,36 @@
  9356. ac_init_version=: ;;
  9357. -with-* | --with-*)
  9358. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  9359. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  9360. # Reject names that are not valid shell variable names.
  9361. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  9362. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  9363. - { (exit 1); exit 1; }; }
  9364. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  9365. - eval with_$ac_package=\$ac_optarg ;;
  9366. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  9367. + as_fn_error "invalid package name: $ac_useropt"
  9368. + ac_useropt_orig=$ac_useropt
  9369. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  9370. + case $ac_user_opts in
  9371. + *"
  9372. +"with_$ac_useropt"
  9373. +"*) ;;
  9374. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  9375. + ac_unrecognized_sep=', ';;
  9376. + esac
  9377. + eval with_$ac_useropt=\$ac_optarg ;;
  9378. -without-* | --without-*)
  9379. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  9380. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  9381. # Reject names that are not valid shell variable names.
  9382. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  9383. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  9384. - { (exit 1); exit 1; }; }
  9385. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  9386. - eval with_$ac_package=no ;;
  9387. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  9388. + as_fn_error "invalid package name: $ac_useropt"
  9389. + ac_useropt_orig=$ac_useropt
  9390. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  9391. + case $ac_user_opts in
  9392. + *"
  9393. +"with_$ac_useropt"
  9394. +"*) ;;
  9395. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  9396. + ac_unrecognized_sep=', ';;
  9397. + esac
  9398. + eval with_$ac_useropt=no ;;
  9399. --x)
  9400. # Obsolete; use --with-x.
  9401. @@ -1290,25 +1313,25 @@
  9402. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  9403. x_libraries=$ac_optarg ;;
  9404. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  9405. -Try \`$0 --help' for more information." >&2
  9406. - { (exit 1); exit 1; }; }
  9407. + -*) as_fn_error "unrecognized option: \`$ac_option'
  9408. +Try \`$0 --help' for more information."
  9409. ;;
  9410. *=*)
  9411. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  9412. # Reject names that are not valid shell variable names.
  9413. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  9414. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  9415. - { (exit 1); exit 1; }; }
  9416. + case $ac_envvar in #(
  9417. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  9418. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  9419. + esac
  9420. eval $ac_envvar=\$ac_optarg
  9421. export $ac_envvar ;;
  9422. *)
  9423. # FIXME: should be removed in autoconf 3.0.
  9424. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  9425. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  9426. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  9427. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  9428. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  9429. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  9430. ;;
  9431. @@ -1317,23 +1340,36 @@
  9432. if test -n "$ac_prev"; then
  9433. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  9434. - { echo "$as_me: error: missing argument to $ac_option" >&2
  9435. - { (exit 1); exit 1; }; }
  9436. + as_fn_error "missing argument to $ac_option"
  9437. fi
  9438. -# Be sure to have absolute directory names.
  9439. +if test -n "$ac_unrecognized_opts"; then
  9440. + case $enable_option_checking in
  9441. + no) ;;
  9442. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  9443. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  9444. + esac
  9445. +fi
  9446. +
  9447. +# Check all directory arguments for consistency.
  9448. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  9449. datadir sysconfdir sharedstatedir localstatedir includedir \
  9450. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  9451. libdir localedir mandir
  9452. do
  9453. eval ac_val=\$$ac_var
  9454. + # Remove trailing slashes.
  9455. + case $ac_val in
  9456. + */ )
  9457. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  9458. + eval $ac_var=\$ac_val;;
  9459. + esac
  9460. + # Be sure to have absolute directory names.
  9461. case $ac_val in
  9462. [\\/$]* | ?:[\\/]* ) continue;;
  9463. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  9464. esac
  9465. - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  9466. - { (exit 1); exit 1; }; }
  9467. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  9468. done
  9469. # There might be people who depend on the old broken behavior: `$host'
  9470. @@ -1347,7 +1383,7 @@
  9471. if test "x$host_alias" != x; then
  9472. if test "x$build_alias" = x; then
  9473. cross_compiling=maybe
  9474. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  9475. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  9476. If a cross compiler is detected then cross compile mode will be used." >&2
  9477. elif test "x$build_alias" != "x$host_alias"; then
  9478. cross_compiling=yes
  9479. @@ -1363,23 +1399,21 @@
  9480. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  9481. ac_ls_di=`ls -di .` &&
  9482. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  9483. - { echo "$as_me: error: Working directory cannot be determined" >&2
  9484. - { (exit 1); exit 1; }; }
  9485. + as_fn_error "working directory cannot be determined"
  9486. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  9487. - { echo "$as_me: error: pwd does not report name of working directory" >&2
  9488. - { (exit 1); exit 1; }; }
  9489. + as_fn_error "pwd does not report name of working directory"
  9490. # Find the source files, if location was not specified.
  9491. if test -z "$srcdir"; then
  9492. ac_srcdir_defaulted=yes
  9493. # Try the directory containing this script, then the parent directory.
  9494. - ac_confdir=`$as_dirname -- "$0" ||
  9495. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9496. - X"$0" : 'X\(//\)[^/]' \| \
  9497. - X"$0" : 'X\(//\)$' \| \
  9498. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9499. -echo X"$0" |
  9500. + ac_confdir=`$as_dirname -- "$as_myself" ||
  9501. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9502. + X"$as_myself" : 'X\(//\)[^/]' \| \
  9503. + X"$as_myself" : 'X\(//\)$' \| \
  9504. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  9505. +$as_echo X"$as_myself" |
  9506. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9507. s//\1/
  9508. q
  9509. @@ -1406,13 +1440,11 @@
  9510. fi
  9511. if test ! -r "$srcdir/$ac_unique_file"; then
  9512. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  9513. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  9514. - { (exit 1); exit 1; }; }
  9515. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  9516. fi
  9517. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  9518. ac_abs_confdir=`(
  9519. - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  9520. - { (exit 1); exit 1; }; }
  9521. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  9522. pwd)`
  9523. # When building in place, set srcdir=.
  9524. if test "$ac_abs_confdir" = "$ac_pwd"; then
  9525. @@ -1460,9 +1492,9 @@
  9526. Installation directories:
  9527. --prefix=PREFIX install architecture-independent files in PREFIX
  9528. - [$ac_default_prefix]
  9529. + [$ac_default_prefix]
  9530. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  9531. - [PREFIX]
  9532. + [PREFIX]
  9533. By default, \`make install' will install all the files in
  9534. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  9535. @@ -1472,25 +1504,25 @@
  9536. For better control, use the options below.
  9537. Fine tuning of the installation directories:
  9538. - --bindir=DIR user executables [EPREFIX/bin]
  9539. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  9540. - --libexecdir=DIR program executables [EPREFIX/libexec]
  9541. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  9542. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  9543. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  9544. - --libdir=DIR object code libraries [EPREFIX/lib]
  9545. - --includedir=DIR C header files [PREFIX/include]
  9546. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  9547. - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  9548. - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  9549. - --infodir=DIR info documentation [DATAROOTDIR/info]
  9550. - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  9551. - --mandir=DIR man documentation [DATAROOTDIR/man]
  9552. - --docdir=DIR documentation root [DATAROOTDIR/doc/icecast]
  9553. - --htmldir=DIR html documentation [DOCDIR]
  9554. - --dvidir=DIR dvi documentation [DOCDIR]
  9555. - --pdfdir=DIR pdf documentation [DOCDIR]
  9556. - --psdir=DIR ps documentation [DOCDIR]
  9557. + --bindir=DIR user executables [EPREFIX/bin]
  9558. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  9559. + --libexecdir=DIR program executables [EPREFIX/libexec]
  9560. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  9561. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  9562. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  9563. + --libdir=DIR object code libraries [EPREFIX/lib]
  9564. + --includedir=DIR C header files [PREFIX/include]
  9565. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  9566. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  9567. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  9568. + --infodir=DIR info documentation [DATAROOTDIR/info]
  9569. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  9570. + --mandir=DIR man documentation [DATAROOTDIR/man]
  9571. + --docdir=DIR documentation root [DATAROOTDIR/doc/icecast]
  9572. + --htmldir=DIR html documentation [DOCDIR]
  9573. + --dvidir=DIR dvi documentation [DOCDIR]
  9574. + --pdfdir=DIR pdf documentation [DOCDIR]
  9575. + --psdir=DIR ps documentation [DOCDIR]
  9576. _ACEOF
  9577. cat <<\_ACEOF
  9578. @@ -1513,6 +1545,7 @@
  9579. cat <<\_ACEOF
  9580. Optional Features:
  9581. + --disable-option-checking ignore unrecognized --enable/--with options
  9582. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  9583. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  9584. --enable-maintainer-mode enable make rules and dependencies not useful
  9585. @@ -1530,10 +1563,9 @@
  9586. Optional Packages:
  9587. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  9588. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  9589. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  9590. --with-pic try to use only PIC/non-PIC objects [default=use
  9591. both]
  9592. - --with-tags[=TAGS] include additional configurations [automatic]
  9593. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  9594. --with-xslt-config=PATH use xslt-config in PATH to find libxslt
  9595. --with-ogg=PREFIX Prefix where libogg is installed (optional)
  9596. --with-vorbis=PREFIX Prefix where libvorbis is installed (optional)
  9597. @@ -1550,14 +1582,9 @@
  9598. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  9599. nonstandard directory <lib dir>
  9600. LIBS libraries to pass to the linker, e.g. -l<library>
  9601. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  9602. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  9603. you have headers in a nonstandard directory <include dir>
  9604. CPP C preprocessor
  9605. - CXX C++ compiler command
  9606. - CXXFLAGS C++ compiler flags
  9607. - CXXCPP C++ preprocessor
  9608. - F77 Fortran 77 compiler command
  9609. - FFLAGS Fortran 77 compiler flags
  9610. XSLTCONFIG XSLT configuration program
  9611. OGG_PREFIX path to ogg installation
  9612. VORBIS_PREFIX
  9613. @@ -1576,15 +1603,17 @@
  9614. if test "$ac_init_help" = "recursive"; then
  9615. # If there are subdirs, report their specific --help.
  9616. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  9617. - test -d "$ac_dir" || continue
  9618. + test -d "$ac_dir" ||
  9619. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  9620. + continue
  9621. ac_builddir=.
  9622. case "$ac_dir" in
  9623. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9624. *)
  9625. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9626. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9627. # A ".." for each directory in $ac_dir_suffix.
  9628. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  9629. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9630. case $ac_top_builddir_sub in
  9631. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9632. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9633. @@ -1620,7 +1649,7 @@
  9634. echo &&
  9635. $SHELL "$ac_srcdir/configure" --help=recursive
  9636. else
  9637. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  9638. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  9639. fi || ac_status=$?
  9640. cd "$ac_pwd" || { ac_status=$?; break; }
  9641. done
  9642. @@ -1630,23 +1659,530 @@
  9643. if $ac_init_version; then
  9644. cat <<\_ACEOF
  9645. Icecast configure 2.3.2
  9646. -generated by GNU Autoconf 2.61
  9647. +generated by GNU Autoconf 2.65
  9648. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9649. -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9650. +Copyright (C) 2009 Free Software Foundation, Inc.
  9651. This configure script is free software; the Free Software Foundation
  9652. gives unlimited permission to copy, distribute and modify it.
  9653. _ACEOF
  9654. exit
  9655. fi
  9656. -cat >config.log <<_ACEOF
  9657. -This file contains any messages produced by compilers while
  9658. -running configure, to aid debugging if configure makes a mistake.
  9659. -
  9660. -It was created by Icecast $as_me 2.3.2, which was
  9661. -generated by GNU Autoconf 2.61. Invocation command line was
  9662. -
  9663. - $ $0 $@
  9664. +
  9665. +## ------------------------ ##
  9666. +## Autoconf initialization. ##
  9667. +## ------------------------ ##
  9668. +
  9669. +# ac_fn_c_try_compile LINENO
  9670. +# --------------------------
  9671. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  9672. +ac_fn_c_try_compile ()
  9673. +{
  9674. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9675. + rm -f conftest.$ac_objext
  9676. + if { { ac_try="$ac_compile"
  9677. +case "(($ac_try" in
  9678. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9679. + *) ac_try_echo=$ac_try;;
  9680. +esac
  9681. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9682. +$as_echo "$ac_try_echo"; } >&5
  9683. + (eval "$ac_compile") 2>conftest.err
  9684. + ac_status=$?
  9685. + if test -s conftest.err; then
  9686. + grep -v '^ *+' conftest.err >conftest.er1
  9687. + cat conftest.er1 >&5
  9688. + mv -f conftest.er1 conftest.err
  9689. + fi
  9690. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9691. + test $ac_status = 0; } && {
  9692. + test -z "$ac_c_werror_flag" ||
  9693. + test ! -s conftest.err
  9694. + } && test -s conftest.$ac_objext; then :
  9695. + ac_retval=0
  9696. +else
  9697. + $as_echo "$as_me: failed program was:" >&5
  9698. +sed 's/^/| /' conftest.$ac_ext >&5
  9699. +
  9700. + ac_retval=1
  9701. +fi
  9702. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  9703. + as_fn_set_status $ac_retval
  9704. +
  9705. +} # ac_fn_c_try_compile
  9706. +
  9707. +# ac_fn_c_try_link LINENO
  9708. +# -----------------------
  9709. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  9710. +ac_fn_c_try_link ()
  9711. +{
  9712. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9713. + rm -f conftest.$ac_objext conftest$ac_exeext
  9714. + if { { ac_try="$ac_link"
  9715. +case "(($ac_try" in
  9716. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9717. + *) ac_try_echo=$ac_try;;
  9718. +esac
  9719. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9720. +$as_echo "$ac_try_echo"; } >&5
  9721. + (eval "$ac_link") 2>conftest.err
  9722. + ac_status=$?
  9723. + if test -s conftest.err; then
  9724. + grep -v '^ *+' conftest.err >conftest.er1
  9725. + cat conftest.er1 >&5
  9726. + mv -f conftest.er1 conftest.err
  9727. + fi
  9728. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9729. + test $ac_status = 0; } && {
  9730. + test -z "$ac_c_werror_flag" ||
  9731. + test ! -s conftest.err
  9732. + } && test -s conftest$ac_exeext && {
  9733. + test "$cross_compiling" = yes ||
  9734. + $as_test_x conftest$ac_exeext
  9735. + }; then :
  9736. + ac_retval=0
  9737. +else
  9738. + $as_echo "$as_me: failed program was:" >&5
  9739. +sed 's/^/| /' conftest.$ac_ext >&5
  9740. +
  9741. + ac_retval=1
  9742. +fi
  9743. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  9744. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  9745. + # interfere with the next link command; also delete a directory that is
  9746. + # left behind by Apple's compiler. We do this before executing the actions.
  9747. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  9748. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  9749. + as_fn_set_status $ac_retval
  9750. +
  9751. +} # ac_fn_c_try_link
  9752. +
  9753. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  9754. +# -------------------------------------------------------
  9755. +# Tests whether HEADER exists and can be compiled using the include files in
  9756. +# INCLUDES, setting the cache variable VAR accordingly.
  9757. +ac_fn_c_check_header_compile ()
  9758. +{
  9759. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9760. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  9761. +$as_echo_n "checking for $2... " >&6; }
  9762. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  9763. + $as_echo_n "(cached) " >&6
  9764. +else
  9765. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9766. +/* end confdefs.h. */
  9767. +$4
  9768. +#include <$2>
  9769. +_ACEOF
  9770. +if ac_fn_c_try_compile "$LINENO"; then :
  9771. + eval "$3=yes"
  9772. +else
  9773. + eval "$3=no"
  9774. +fi
  9775. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9776. +fi
  9777. +eval ac_res=\$$3
  9778. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9779. +$as_echo "$ac_res" >&6; }
  9780. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  9781. +
  9782. +} # ac_fn_c_check_header_compile
  9783. +
  9784. +# ac_fn_c_try_cpp LINENO
  9785. +# ----------------------
  9786. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  9787. +ac_fn_c_try_cpp ()
  9788. +{
  9789. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9790. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  9791. +case "(($ac_try" in
  9792. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9793. + *) ac_try_echo=$ac_try;;
  9794. +esac
  9795. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9796. +$as_echo "$ac_try_echo"; } >&5
  9797. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  9798. + ac_status=$?
  9799. + if test -s conftest.err; then
  9800. + grep -v '^ *+' conftest.err >conftest.er1
  9801. + cat conftest.er1 >&5
  9802. + mv -f conftest.er1 conftest.err
  9803. + fi
  9804. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9805. + test $ac_status = 0; } >/dev/null && {
  9806. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9807. + test ! -s conftest.err
  9808. + }; then :
  9809. + ac_retval=0
  9810. +else
  9811. + $as_echo "$as_me: failed program was:" >&5
  9812. +sed 's/^/| /' conftest.$ac_ext >&5
  9813. +
  9814. + ac_retval=1
  9815. +fi
  9816. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  9817. + as_fn_set_status $ac_retval
  9818. +
  9819. +} # ac_fn_c_try_cpp
  9820. +
  9821. +# ac_fn_c_try_run LINENO
  9822. +# ----------------------
  9823. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  9824. +# that executables *can* be run.
  9825. +ac_fn_c_try_run ()
  9826. +{
  9827. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9828. + if { { ac_try="$ac_link"
  9829. +case "(($ac_try" in
  9830. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9831. + *) ac_try_echo=$ac_try;;
  9832. +esac
  9833. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9834. +$as_echo "$ac_try_echo"; } >&5
  9835. + (eval "$ac_link") 2>&5
  9836. + ac_status=$?
  9837. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9838. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  9839. + { { case "(($ac_try" in
  9840. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9841. + *) ac_try_echo=$ac_try;;
  9842. +esac
  9843. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9844. +$as_echo "$ac_try_echo"; } >&5
  9845. + (eval "$ac_try") 2>&5
  9846. + ac_status=$?
  9847. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9848. + test $ac_status = 0; }; }; then :
  9849. + ac_retval=0
  9850. +else
  9851. + $as_echo "$as_me: program exited with status $ac_status" >&5
  9852. + $as_echo "$as_me: failed program was:" >&5
  9853. +sed 's/^/| /' conftest.$ac_ext >&5
  9854. +
  9855. + ac_retval=$ac_status
  9856. +fi
  9857. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  9858. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  9859. + as_fn_set_status $ac_retval
  9860. +
  9861. +} # ac_fn_c_try_run
  9862. +
  9863. +# ac_fn_c_check_func LINENO FUNC VAR
  9864. +# ----------------------------------
  9865. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  9866. +ac_fn_c_check_func ()
  9867. +{
  9868. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9869. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  9870. +$as_echo_n "checking for $2... " >&6; }
  9871. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  9872. + $as_echo_n "(cached) " >&6
  9873. +else
  9874. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9875. +/* end confdefs.h. */
  9876. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  9877. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9878. +#define $2 innocuous_$2
  9879. +
  9880. +/* System header to define __stub macros and hopefully few prototypes,
  9881. + which can conflict with char $2 (); below.
  9882. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9883. + <limits.h> exists even on freestanding compilers. */
  9884. +
  9885. +#ifdef __STDC__
  9886. +# include <limits.h>
  9887. +#else
  9888. +# include <assert.h>
  9889. +#endif
  9890. +
  9891. +#undef $2
  9892. +
  9893. +/* Override any GCC internal prototype to avoid an error.
  9894. + Use char because int might match the return type of a GCC
  9895. + builtin and then its argument prototype would still apply. */
  9896. +#ifdef __cplusplus
  9897. +extern "C"
  9898. +#endif
  9899. +char $2 ();
  9900. +/* The GNU C library defines this for functions which it implements
  9901. + to always fail with ENOSYS. Some functions are actually named
  9902. + something starting with __ and the normal name is an alias. */
  9903. +#if defined __stub_$2 || defined __stub___$2
  9904. +choke me
  9905. +#endif
  9906. +
  9907. +int
  9908. +main ()
  9909. +{
  9910. +return $2 ();
  9911. + ;
  9912. + return 0;
  9913. +}
  9914. +_ACEOF
  9915. +if ac_fn_c_try_link "$LINENO"; then :
  9916. + eval "$3=yes"
  9917. +else
  9918. + eval "$3=no"
  9919. +fi
  9920. +rm -f core conftest.err conftest.$ac_objext \
  9921. + conftest$ac_exeext conftest.$ac_ext
  9922. +fi
  9923. +eval ac_res=\$$3
  9924. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9925. +$as_echo "$ac_res" >&6; }
  9926. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  9927. +
  9928. +} # ac_fn_c_check_func
  9929. +
  9930. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  9931. +# -------------------------------------------------------
  9932. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  9933. +# the include files in INCLUDES and setting the cache variable VAR
  9934. +# accordingly.
  9935. +ac_fn_c_check_header_mongrel ()
  9936. +{
  9937. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9938. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  9939. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  9940. +$as_echo_n "checking for $2... " >&6; }
  9941. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  9942. + $as_echo_n "(cached) " >&6
  9943. +fi
  9944. +eval ac_res=\$$3
  9945. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9946. +$as_echo "$ac_res" >&6; }
  9947. +else
  9948. + # Is the header compilable?
  9949. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  9950. +$as_echo_n "checking $2 usability... " >&6; }
  9951. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9952. +/* end confdefs.h. */
  9953. +$4
  9954. +#include <$2>
  9955. +_ACEOF
  9956. +if ac_fn_c_try_compile "$LINENO"; then :
  9957. + ac_header_compiler=yes
  9958. +else
  9959. + ac_header_compiler=no
  9960. +fi
  9961. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9962. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  9963. +$as_echo "$ac_header_compiler" >&6; }
  9964. +
  9965. +# Is the header present?
  9966. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  9967. +$as_echo_n "checking $2 presence... " >&6; }
  9968. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9969. +/* end confdefs.h. */
  9970. +#include <$2>
  9971. +_ACEOF
  9972. +if ac_fn_c_try_cpp "$LINENO"; then :
  9973. + ac_header_preproc=yes
  9974. +else
  9975. + ac_header_preproc=no
  9976. +fi
  9977. +rm -f conftest.err conftest.$ac_ext
  9978. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  9979. +$as_echo "$ac_header_preproc" >&6; }
  9980. +
  9981. +# So? What about this header?
  9982. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  9983. + yes:no: )
  9984. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  9985. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9986. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  9987. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  9988. + ;;
  9989. + no:yes:* )
  9990. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  9991. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  9992. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  9993. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  9994. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  9995. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  9996. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  9997. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  9998. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  9999. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  10000. +( cat <<\_ASBOX
  10001. +## ------------------------------- ##
  10002. +## Report this to icecast@xiph.org ##
  10003. +## ------------------------------- ##
  10004. +_ASBOX
  10005. + ) | sed "s/^/$as_me: WARNING: /" >&2
  10006. + ;;
  10007. +esac
  10008. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  10009. +$as_echo_n "checking for $2... " >&6; }
  10010. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  10011. + $as_echo_n "(cached) " >&6
  10012. +else
  10013. + eval "$3=\$ac_header_compiler"
  10014. +fi
  10015. +eval ac_res=\$$3
  10016. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10017. +$as_echo "$ac_res" >&6; }
  10018. +fi
  10019. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  10020. +
  10021. +} # ac_fn_c_check_header_mongrel
  10022. +
  10023. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  10024. +# -------------------------------------------
  10025. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  10026. +# variable VAR accordingly.
  10027. +ac_fn_c_check_type ()
  10028. +{
  10029. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10030. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  10031. +$as_echo_n "checking for $2... " >&6; }
  10032. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  10033. + $as_echo_n "(cached) " >&6
  10034. +else
  10035. + eval "$3=no"
  10036. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10037. +/* end confdefs.h. */
  10038. +$4
  10039. +int
  10040. +main ()
  10041. +{
  10042. +if (sizeof ($2))
  10043. + return 0;
  10044. + ;
  10045. + return 0;
  10046. +}
  10047. +_ACEOF
  10048. +if ac_fn_c_try_compile "$LINENO"; then :
  10049. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10050. +/* end confdefs.h. */
  10051. +$4
  10052. +int
  10053. +main ()
  10054. +{
  10055. +if (sizeof (($2)))
  10056. + return 0;
  10057. + ;
  10058. + return 0;
  10059. +}
  10060. +_ACEOF
  10061. +if ac_fn_c_try_compile "$LINENO"; then :
  10062. +
  10063. +else
  10064. + eval "$3=yes"
  10065. +fi
  10066. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10067. +fi
  10068. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10069. +fi
  10070. +eval ac_res=\$$3
  10071. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10072. +$as_echo "$ac_res" >&6; }
  10073. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  10074. +
  10075. +} # ac_fn_c_check_type
  10076. +
  10077. +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  10078. +# ----------------------------------------------------
  10079. +# Tries to find if the field MEMBER exists in type AGGR, after including
  10080. +# INCLUDES, setting cache variable VAR accordingly.
  10081. +ac_fn_c_check_member ()
  10082. +{
  10083. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10084. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  10085. +$as_echo_n "checking for $2.$3... " >&6; }
  10086. +if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  10087. + $as_echo_n "(cached) " >&6
  10088. +else
  10089. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10090. +/* end confdefs.h. */
  10091. +$5
  10092. +int
  10093. +main ()
  10094. +{
  10095. +static $2 ac_aggr;
  10096. +if (ac_aggr.$3)
  10097. +return 0;
  10098. + ;
  10099. + return 0;
  10100. +}
  10101. +_ACEOF
  10102. +if ac_fn_c_try_compile "$LINENO"; then :
  10103. + eval "$4=yes"
  10104. +else
  10105. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10106. +/* end confdefs.h. */
  10107. +$5
  10108. +int
  10109. +main ()
  10110. +{
  10111. +static $2 ac_aggr;
  10112. +if (sizeof ac_aggr.$3)
  10113. +return 0;
  10114. + ;
  10115. + return 0;
  10116. +}
  10117. +_ACEOF
  10118. +if ac_fn_c_try_compile "$LINENO"; then :
  10119. + eval "$4=yes"
  10120. +else
  10121. + eval "$4=no"
  10122. +fi
  10123. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10124. +fi
  10125. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10126. +fi
  10127. +eval ac_res=\$$4
  10128. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10129. +$as_echo "$ac_res" >&6; }
  10130. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  10131. +
  10132. +} # ac_fn_c_check_member
  10133. +
  10134. +# ac_fn_c_check_decl LINENO SYMBOL VAR
  10135. +# ------------------------------------
  10136. +# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  10137. +ac_fn_c_check_decl ()
  10138. +{
  10139. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10140. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
  10141. +$as_echo_n "checking whether $2 is declared... " >&6; }
  10142. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  10143. + $as_echo_n "(cached) " >&6
  10144. +else
  10145. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10146. +/* end confdefs.h. */
  10147. +$4
  10148. +int
  10149. +main ()
  10150. +{
  10151. +#ifndef $2
  10152. + (void) $2;
  10153. +#endif
  10154. +
  10155. + ;
  10156. + return 0;
  10157. +}
  10158. +_ACEOF
  10159. +if ac_fn_c_try_compile "$LINENO"; then :
  10160. + eval "$3=yes"
  10161. +else
  10162. + eval "$3=no"
  10163. +fi
  10164. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10165. +fi
  10166. +eval ac_res=\$$3
  10167. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10168. +$as_echo "$ac_res" >&6; }
  10169. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  10170. +
  10171. +} # ac_fn_c_check_decl
  10172. +cat >config.log <<_ACEOF
  10173. +This file contains any messages produced by compilers while
  10174. +running configure, to aid debugging if configure makes a mistake.
  10175. +
  10176. +It was created by Icecast $as_me 2.3.2, which was
  10177. +generated by GNU Autoconf 2.65. Invocation command line was
  10178. +
  10179. + $ $0 $@
  10180. _ACEOF
  10181. exec 5>>config.log
  10182. @@ -1680,8 +2216,8 @@
  10183. do
  10184. IFS=$as_save_IFS
  10185. test -z "$as_dir" && as_dir=.
  10186. - echo "PATH: $as_dir"
  10187. -done
  10188. + $as_echo "PATH: $as_dir"
  10189. + done
  10190. IFS=$as_save_IFS
  10191. } >&5
  10192. @@ -1715,12 +2251,12 @@
  10193. | -silent | --silent | --silen | --sile | --sil)
  10194. continue ;;
  10195. *\'*)
  10196. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10197. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10198. esac
  10199. case $ac_pass in
  10200. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  10201. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  10202. 2)
  10203. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  10204. + as_fn_append ac_configure_args1 " '$ac_arg'"
  10205. if test $ac_must_keep_next = true; then
  10206. ac_must_keep_next=false # Got value, back to normal.
  10207. else
  10208. @@ -1736,13 +2272,13 @@
  10209. -* ) ac_must_keep_next=true ;;
  10210. esac
  10211. fi
  10212. - ac_configure_args="$ac_configure_args '$ac_arg'"
  10213. + as_fn_append ac_configure_args " '$ac_arg'"
  10214. ;;
  10215. esac
  10216. done
  10217. done
  10218. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  10219. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  10220. +{ ac_configure_args0=; unset ac_configure_args0;}
  10221. +{ ac_configure_args1=; unset ac_configure_args1;}
  10222. # When interrupted or exit'd, cleanup temporary files, and complete
  10223. # config.log. We remove comments because anyway the quotes in there
  10224. @@ -1767,12 +2303,13 @@
  10225. case $ac_val in #(
  10226. *${as_nl}*)
  10227. case $ac_var in #(
  10228. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  10229. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  10230. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10231. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10232. esac
  10233. case $ac_var in #(
  10234. _ | IFS | as_nl) ;; #(
  10235. - *) $as_unset $ac_var ;;
  10236. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10237. + *) { eval $ac_var=; unset $ac_var;} ;;
  10238. esac ;;
  10239. esac
  10240. done
  10241. @@ -1801,9 +2338,9 @@
  10242. do
  10243. eval ac_val=\$$ac_var
  10244. case $ac_val in
  10245. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  10246. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  10247. esac
  10248. - echo "$ac_var='\''$ac_val'\''"
  10249. + $as_echo "$ac_var='\''$ac_val'\''"
  10250. done | sort
  10251. echo
  10252. @@ -1818,9 +2355,9 @@
  10253. do
  10254. eval ac_val=\$$ac_var
  10255. case $ac_val in
  10256. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  10257. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  10258. esac
  10259. - echo "$ac_var='\''$ac_val'\''"
  10260. + $as_echo "$ac_var='\''$ac_val'\''"
  10261. done | sort
  10262. echo
  10263. fi
  10264. @@ -1836,83 +2373,88 @@
  10265. echo
  10266. fi
  10267. test "$ac_signal" != 0 &&
  10268. - echo "$as_me: caught signal $ac_signal"
  10269. - echo "$as_me: exit $exit_status"
  10270. + $as_echo "$as_me: caught signal $ac_signal"
  10271. + $as_echo "$as_me: exit $exit_status"
  10272. } >&5
  10273. rm -f core *.core core.conftest.* &&
  10274. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  10275. exit $exit_status
  10276. ' 0
  10277. for ac_signal in 1 2 13 15; do
  10278. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  10279. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  10280. done
  10281. ac_signal=0
  10282. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  10283. rm -f -r conftest* confdefs.h
  10284. +$as_echo "/* confdefs.h */" > confdefs.h
  10285. +
  10286. # Predefined preprocessor variables.
  10287. cat >>confdefs.h <<_ACEOF
  10288. #define PACKAGE_NAME "$PACKAGE_NAME"
  10289. _ACEOF
  10290. -
  10291. cat >>confdefs.h <<_ACEOF
  10292. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  10293. _ACEOF
  10294. -
  10295. cat >>confdefs.h <<_ACEOF
  10296. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  10297. _ACEOF
  10298. -
  10299. cat >>confdefs.h <<_ACEOF
  10300. #define PACKAGE_STRING "$PACKAGE_STRING"
  10301. _ACEOF
  10302. -
  10303. cat >>confdefs.h <<_ACEOF
  10304. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  10305. _ACEOF
  10306. +cat >>confdefs.h <<_ACEOF
  10307. +#define PACKAGE_URL "$PACKAGE_URL"
  10308. +_ACEOF
  10309. +
  10310. # Let the site file select an alternate cache file if it wants to.
  10311. -# Prefer explicitly selected file to automatically selected ones.
  10312. +# Prefer an explicitly selected file to automatically selected ones.
  10313. +ac_site_file1=NONE
  10314. +ac_site_file2=NONE
  10315. if test -n "$CONFIG_SITE"; then
  10316. - set x "$CONFIG_SITE"
  10317. + ac_site_file1=$CONFIG_SITE
  10318. elif test "x$prefix" != xNONE; then
  10319. - set x "$prefix/share/config.site" "$prefix/etc/config.site"
  10320. + ac_site_file1=$prefix/share/config.site
  10321. + ac_site_file2=$prefix/etc/config.site
  10322. else
  10323. - set x "$ac_default_prefix/share/config.site" \
  10324. - "$ac_default_prefix/etc/config.site"
  10325. + ac_site_file1=$ac_default_prefix/share/config.site
  10326. + ac_site_file2=$ac_default_prefix/etc/config.site
  10327. fi
  10328. -shift
  10329. -for ac_site_file
  10330. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  10331. do
  10332. - if test -r "$ac_site_file"; then
  10333. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  10334. -echo "$as_me: loading site script $ac_site_file" >&6;}
  10335. + test "x$ac_site_file" = xNONE && continue
  10336. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  10337. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  10338. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  10339. sed 's/^/| /' "$ac_site_file" >&5
  10340. . "$ac_site_file"
  10341. fi
  10342. done
  10343. if test -r "$cache_file"; then
  10344. - # Some versions of bash will fail to source /dev/null (special
  10345. - # files actually), so we avoid doing that.
  10346. - if test -f "$cache_file"; then
  10347. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  10348. -echo "$as_me: loading cache $cache_file" >&6;}
  10349. + # Some versions of bash will fail to source /dev/null (special files
  10350. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  10351. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  10352. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  10353. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  10354. case $cache_file in
  10355. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  10356. *) . "./$cache_file";;
  10357. esac
  10358. fi
  10359. else
  10360. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  10361. -echo "$as_me: creating cache $cache_file" >&6;}
  10362. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  10363. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  10364. >$cache_file
  10365. fi
  10366. @@ -1926,102 +2468,82 @@
  10367. eval ac_new_val=\$ac_env_${ac_var}_value
  10368. case $ac_old_set,$ac_new_set in
  10369. set,)
  10370. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  10371. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  10372. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  10373. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  10374. ac_cache_corrupted=: ;;
  10375. ,set)
  10376. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  10377. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  10378. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  10379. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  10380. ac_cache_corrupted=: ;;
  10381. ,);;
  10382. *)
  10383. if test "x$ac_old_val" != "x$ac_new_val"; then
  10384. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  10385. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  10386. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  10387. -echo "$as_me: former value: $ac_old_val" >&2;}
  10388. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  10389. -echo "$as_me: current value: $ac_new_val" >&2;}
  10390. - ac_cache_corrupted=:
  10391. + # differences in whitespace do not lead to failure.
  10392. + ac_old_val_w=`echo x $ac_old_val`
  10393. + ac_new_val_w=`echo x $ac_new_val`
  10394. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  10395. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  10396. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  10397. + ac_cache_corrupted=:
  10398. + else
  10399. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  10400. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  10401. + eval $ac_var=\$ac_old_val
  10402. + fi
  10403. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  10404. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  10405. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  10406. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  10407. fi;;
  10408. esac
  10409. # Pass precious variables to config.status.
  10410. if test "$ac_new_set" = set; then
  10411. case $ac_new_val in
  10412. - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  10413. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  10414. *) ac_arg=$ac_var=$ac_new_val ;;
  10415. esac
  10416. case " $ac_configure_args " in
  10417. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  10418. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  10419. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  10420. esac
  10421. fi
  10422. done
  10423. if $ac_cache_corrupted; then
  10424. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  10425. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  10426. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  10427. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  10428. - { (exit 1); exit 1; }; }
  10429. -fi
  10430. -
  10431. -
  10432. -
  10433. -
  10434. -
  10435. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10436. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10437. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  10438. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  10439. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  10440. +fi
  10441. +## -------------------- ##
  10442. +## Main body of script. ##
  10443. +## -------------------- ##
  10444. +ac_ext=c
  10445. +ac_cpp='$CPP $CPPFLAGS'
  10446. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10447. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10448. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10449. -
  10450. -
  10451. -
  10452. -
  10453. -
  10454. -
  10455. -
  10456. -
  10457. -
  10458. -
  10459. -
  10460. -
  10461. -
  10462. -ac_ext=c
  10463. -ac_cpp='$CPP $CPPFLAGS'
  10464. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10465. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10466. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10467. -
  10468. -
  10469. -
  10470. -
  10471. -
  10472. -
  10473. -am__api_version='1.10'
  10474. +am__api_version='1.11'
  10475. ac_aux_dir=
  10476. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  10477. - if test -f "$ac_dir/install-sh"; then
  10478. - ac_aux_dir=$ac_dir
  10479. - ac_install_sh="$ac_aux_dir/install-sh -c"
  10480. - break
  10481. - elif test -f "$ac_dir/install.sh"; then
  10482. - ac_aux_dir=$ac_dir
  10483. - ac_install_sh="$ac_aux_dir/install.sh -c"
  10484. - break
  10485. - elif test -f "$ac_dir/shtool"; then
  10486. - ac_aux_dir=$ac_dir
  10487. - ac_install_sh="$ac_aux_dir/shtool install -c"
  10488. - break
  10489. - fi
  10490. + for ac_t in install-sh install.sh shtool; do
  10491. + if test -f "$ac_dir/$ac_t"; then
  10492. + ac_aux_dir=$ac_dir
  10493. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  10494. + break 2
  10495. + fi
  10496. + done
  10497. done
  10498. if test -z "$ac_aux_dir"; then
  10499. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  10500. -echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  10501. - { (exit 1); exit 1; }; }
  10502. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  10503. fi
  10504. # These three variables are undocumented and unsupported,
  10505. @@ -2046,22 +2568,23 @@
  10506. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  10507. # OS/2's system install, which has a completely different semantic
  10508. # ./install, which can be erroneously created by make from ./install.sh.
  10509. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  10510. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  10511. +# Reject install programs that cannot install multiple files.
  10512. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  10513. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  10514. if test -z "$INSTALL"; then
  10515. -if test "${ac_cv_path_install+set}" = set; then
  10516. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10517. +if test "${ac_cv_path_install+set}" = set; then :
  10518. + $as_echo_n "(cached) " >&6
  10519. else
  10520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10521. for as_dir in $PATH
  10522. do
  10523. IFS=$as_save_IFS
  10524. test -z "$as_dir" && as_dir=.
  10525. - # Account for people who put trailing slashes in PATH elements.
  10526. -case $as_dir/ in
  10527. - ./ | .// | /cC/* | \
  10528. + # Account for people who put trailing slashes in PATH elements.
  10529. +case $as_dir/ in #((
  10530. + ./ | .// | /[cC]/* | \
  10531. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  10532. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  10533. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  10534. /usr/ucb/* ) ;;
  10535. *)
  10536. # OSF1 and SCO ODT 3.0 have their own names for install.
  10537. @@ -2079,17 +2602,29 @@
  10538. # program-specific install script used by HP pwplus--don't use.
  10539. :
  10540. else
  10541. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  10542. - break 3
  10543. + rm -rf conftest.one conftest.two conftest.dir
  10544. + echo one > conftest.one
  10545. + echo two > conftest.two
  10546. + mkdir conftest.dir
  10547. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  10548. + test -s conftest.one && test -s conftest.two &&
  10549. + test -s conftest.dir/conftest.one &&
  10550. + test -s conftest.dir/conftest.two
  10551. + then
  10552. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  10553. + break 3
  10554. + fi
  10555. fi
  10556. fi
  10557. done
  10558. done
  10559. ;;
  10560. esac
  10561. -done
  10562. +
  10563. + done
  10564. IFS=$as_save_IFS
  10565. +rm -rf conftest.one conftest.two conftest.dir
  10566. fi
  10567. if test "${ac_cv_path_install+set}" = set; then
  10568. @@ -2102,8 +2637,8 @@
  10569. INSTALL=$ac_install_sh
  10570. fi
  10571. fi
  10572. -{ echo "$as_me:$LINENO: result: $INSTALL" >&5
  10573. -echo "${ECHO_T}$INSTALL" >&6; }
  10574. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  10575. +$as_echo "$INSTALL" >&6; }
  10576. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  10577. # It thinks the first close brace ends the variable substitution.
  10578. @@ -2113,21 +2648,34 @@
  10579. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  10580. -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  10581. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  10582. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  10583. +$as_echo_n "checking whether build environment is sane... " >&6; }
  10584. # Just in case
  10585. sleep 1
  10586. echo timestamp > conftest.file
  10587. +# Reject unsafe characters in $srcdir or the absolute working directory
  10588. +# name. Accept space and tab only in the latter.
  10589. +am_lf='
  10590. +'
  10591. +case `pwd` in
  10592. + *[\\\"\#\$\&\'\`$am_lf]*)
  10593. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  10594. +esac
  10595. +case $srcdir in
  10596. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  10597. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  10598. +esac
  10599. +
  10600. # Do `set' in a subshell so we don't clobber the current shell's
  10601. # arguments. Must try -L first in case configure is actually a
  10602. # symlink; some systems play weird games with the mod time of symlinks
  10603. # (eg FreeBSD returns the mod time of the symlink's containing
  10604. # directory).
  10605. if (
  10606. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  10607. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  10608. if test "$*" = "X"; then
  10609. # -L didn't work.
  10610. - set X `ls -t $srcdir/configure conftest.file`
  10611. + set X `ls -t "$srcdir/configure" conftest.file`
  10612. fi
  10613. rm -f conftest.file
  10614. if test "$*" != "X $srcdir/configure conftest.file" \
  10615. @@ -2137,11 +2685,8 @@
  10616. # if, for instance, CONFIG_SHELL is bash and it inherits a
  10617. # broken ls alias from the environment. This has actually
  10618. # happened. Such a system could not be considered "sane".
  10619. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  10620. -alias in your environment" >&5
  10621. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  10622. -alias in your environment" >&2;}
  10623. - { (exit 1); exit 1; }; }
  10624. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  10625. +alias in your environment" "$LINENO" 5
  10626. fi
  10627. test "$2" = conftest.file
  10628. @@ -2150,52 +2695,162 @@
  10629. # Ok.
  10630. :
  10631. else
  10632. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  10633. -Check your system clock" >&5
  10634. -echo "$as_me: error: newly created file is older than distributed files!
  10635. -Check your system clock" >&2;}
  10636. - { (exit 1); exit 1; }; }
  10637. + as_fn_error "newly created file is older than distributed files!
  10638. +Check your system clock" "$LINENO" 5
  10639. fi
  10640. -{ echo "$as_me:$LINENO: result: yes" >&5
  10641. -echo "${ECHO_T}yes" >&6; }
  10642. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10643. +$as_echo "yes" >&6; }
  10644. test "$program_prefix" != NONE &&
  10645. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  10646. # Use a double $ so make ignores it.
  10647. test "$program_suffix" != NONE &&
  10648. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  10649. -# Double any \ or $. echo might interpret backslashes.
  10650. +# Double any \ or $.
  10651. # By default was `s,x,x', remove it if useless.
  10652. -cat <<\_ACEOF >conftest.sed
  10653. -s/[\\$]/&&/g;s/;s,x,x,$//
  10654. -_ACEOF
  10655. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  10656. -rm -f conftest.sed
  10657. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  10658. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  10659. # expand $ac_aux_dir to an absolute path
  10660. am_aux_dir=`cd $ac_aux_dir && pwd`
  10661. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  10662. +if test x"${MISSING+set}" != xset; then
  10663. + case $am_aux_dir in
  10664. + *\ * | *\ *)
  10665. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  10666. + *)
  10667. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  10668. + esac
  10669. +fi
  10670. # Use eval to expand $SHELL
  10671. if eval "$MISSING --run true"; then
  10672. am_missing_run="$MISSING --run "
  10673. else
  10674. am_missing_run=
  10675. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  10676. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  10677. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  10678. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  10679. +fi
  10680. +
  10681. +if test x"${install_sh}" != xset; then
  10682. + case $am_aux_dir in
  10683. + *\ * | *\ *)
  10684. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  10685. + *)
  10686. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  10687. + esac
  10688. +fi
  10689. +
  10690. +# Installed binaries are usually stripped using `strip' when the user
  10691. +# run `make install-strip'. However `strip' might not be the right
  10692. +# tool to use in cross-compilation environments, therefore Automake
  10693. +# will honor the `STRIP' environment variable to overrule this program.
  10694. +if test "$cross_compiling" != no; then
  10695. + if test -n "$ac_tool_prefix"; then
  10696. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10697. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  10698. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10699. +$as_echo_n "checking for $ac_word... " >&6; }
  10700. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  10701. + $as_echo_n "(cached) " >&6
  10702. +else
  10703. + if test -n "$STRIP"; then
  10704. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10705. +else
  10706. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10707. +for as_dir in $PATH
  10708. +do
  10709. + IFS=$as_save_IFS
  10710. + test -z "$as_dir" && as_dir=.
  10711. + for ac_exec_ext in '' $ac_executable_extensions; do
  10712. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10713. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10714. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10715. + break 2
  10716. + fi
  10717. +done
  10718. + done
  10719. +IFS=$as_save_IFS
  10720. +
  10721. +fi
  10722. +fi
  10723. +STRIP=$ac_cv_prog_STRIP
  10724. +if test -n "$STRIP"; then
  10725. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10726. +$as_echo "$STRIP" >&6; }
  10727. +else
  10728. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10729. +$as_echo "no" >&6; }
  10730. +fi
  10731. +
  10732. +
  10733. +fi
  10734. +if test -z "$ac_cv_prog_STRIP"; then
  10735. + ac_ct_STRIP=$STRIP
  10736. + # Extract the first word of "strip", so it can be a program name with args.
  10737. +set dummy strip; ac_word=$2
  10738. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10739. +$as_echo_n "checking for $ac_word... " >&6; }
  10740. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  10741. + $as_echo_n "(cached) " >&6
  10742. +else
  10743. + if test -n "$ac_ct_STRIP"; then
  10744. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10745. +else
  10746. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10747. +for as_dir in $PATH
  10748. +do
  10749. + IFS=$as_save_IFS
  10750. + test -z "$as_dir" && as_dir=.
  10751. + for ac_exec_ext in '' $ac_executable_extensions; do
  10752. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10753. + ac_cv_prog_ac_ct_STRIP="strip"
  10754. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10755. + break 2
  10756. + fi
  10757. +done
  10758. + done
  10759. +IFS=$as_save_IFS
  10760. +
  10761. +fi
  10762. +fi
  10763. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10764. +if test -n "$ac_ct_STRIP"; then
  10765. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10766. +$as_echo "$ac_ct_STRIP" >&6; }
  10767. +else
  10768. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10769. +$as_echo "no" >&6; }
  10770. +fi
  10771. +
  10772. + if test "x$ac_ct_STRIP" = x; then
  10773. + STRIP=":"
  10774. + else
  10775. + case $cross_compiling:$ac_tool_warned in
  10776. +yes:)
  10777. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10778. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10779. +ac_tool_warned=yes ;;
  10780. +esac
  10781. + STRIP=$ac_ct_STRIP
  10782. + fi
  10783. +else
  10784. + STRIP="$ac_cv_prog_STRIP"
  10785. fi
  10786. -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  10787. -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  10788. +fi
  10789. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  10790. +
  10791. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  10792. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  10793. if test -z "$MKDIR_P"; then
  10794. - if test "${ac_cv_path_mkdir+set}" = set; then
  10795. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10796. + if test "${ac_cv_path_mkdir+set}" = set; then :
  10797. + $as_echo_n "(cached) " >&6
  10798. else
  10799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10800. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  10801. do
  10802. IFS=$as_save_IFS
  10803. test -z "$as_dir" && as_dir=.
  10804. - for ac_prog in mkdir gmkdir; do
  10805. + for ac_prog in mkdir gmkdir; do
  10806. for ac_exec_ext in '' $ac_executable_extensions; do
  10807. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  10808. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  10809. @@ -2207,11 +2862,12 @@
  10810. esac
  10811. done
  10812. done
  10813. -done
  10814. + done
  10815. IFS=$as_save_IFS
  10816. fi
  10817. + test -d ./--version && rmdir ./--version
  10818. if test "${ac_cv_path_mkdir+set}" = set; then
  10819. MKDIR_P="$ac_cv_path_mkdir -p"
  10820. else
  10821. @@ -2219,12 +2875,11 @@
  10822. # value for MKDIR_P within a source directory, because that will
  10823. # break other packages using the cache if that directory is
  10824. # removed, or if the value is a relative name.
  10825. - test -d ./--version && rmdir ./--version
  10826. MKDIR_P="$ac_install_sh -d"
  10827. fi
  10828. fi
  10829. -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  10830. -echo "${ECHO_T}$MKDIR_P" >&6; }
  10831. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  10832. +$as_echo "$MKDIR_P" >&6; }
  10833. mkdir_p="$MKDIR_P"
  10834. case $mkdir_p in
  10835. @@ -2236,10 +2891,10 @@
  10836. do
  10837. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10838. set dummy $ac_prog; ac_word=$2
  10839. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  10840. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  10841. -if test "${ac_cv_prog_AWK+set}" = set; then
  10842. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10843. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10844. +$as_echo_n "checking for $ac_word... " >&6; }
  10845. +if test "${ac_cv_prog_AWK+set}" = set; then :
  10846. + $as_echo_n "(cached) " >&6
  10847. else
  10848. if test -n "$AWK"; then
  10849. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  10850. @@ -2249,36 +2904,37 @@
  10851. do
  10852. IFS=$as_save_IFS
  10853. test -z "$as_dir" && as_dir=.
  10854. - for ac_exec_ext in '' $ac_executable_extensions; do
  10855. + for ac_exec_ext in '' $ac_executable_extensions; do
  10856. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10857. ac_cv_prog_AWK="$ac_prog"
  10858. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10859. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10860. break 2
  10861. fi
  10862. done
  10863. -done
  10864. + done
  10865. IFS=$as_save_IFS
  10866. fi
  10867. fi
  10868. AWK=$ac_cv_prog_AWK
  10869. if test -n "$AWK"; then
  10870. - { echo "$as_me:$LINENO: result: $AWK" >&5
  10871. -echo "${ECHO_T}$AWK" >&6; }
  10872. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  10873. +$as_echo "$AWK" >&6; }
  10874. else
  10875. - { echo "$as_me:$LINENO: result: no" >&5
  10876. -echo "${ECHO_T}no" >&6; }
  10877. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10878. +$as_echo "no" >&6; }
  10879. fi
  10880. test -n "$AWK" && break
  10881. done
  10882. -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  10883. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  10884. -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  10885. -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  10886. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10887. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  10888. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  10889. +set x ${MAKE-make}
  10890. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  10891. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  10892. + $as_echo_n "(cached) " >&6
  10893. else
  10894. cat >conftest.make <<\_ACEOF
  10895. SHELL = /bin/sh
  10896. @@ -2295,12 +2951,12 @@
  10897. rm -f conftest.make
  10898. fi
  10899. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  10900. - { echo "$as_me:$LINENO: result: yes" >&5
  10901. -echo "${ECHO_T}yes" >&6; }
  10902. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10903. +$as_echo "yes" >&6; }
  10904. SET_MAKE=
  10905. else
  10906. - { echo "$as_me:$LINENO: result: no" >&5
  10907. -echo "${ECHO_T}no" >&6; }
  10908. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10909. +$as_echo "no" >&6; }
  10910. SET_MAKE="MAKE=${MAKE-make}"
  10911. fi
  10912. @@ -2319,9 +2975,7 @@
  10913. am__isrc=' -I$(srcdir)'
  10914. # test to see if srcdir already configured
  10915. if test -f $srcdir/config.status; then
  10916. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  10917. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  10918. - { (exit 1); exit 1; }; }
  10919. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  10920. fi
  10921. fi
  10922. @@ -2365,112 +3019,6 @@
  10923. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  10924. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  10925. -
  10926. -# Installed binaries are usually stripped using `strip' when the user
  10927. -# run `make install-strip'. However `strip' might not be the right
  10928. -# tool to use in cross-compilation environments, therefore Automake
  10929. -# will honor the `STRIP' environment variable to overrule this program.
  10930. -if test "$cross_compiling" != no; then
  10931. - if test -n "$ac_tool_prefix"; then
  10932. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10933. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  10934. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  10935. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  10936. -if test "${ac_cv_prog_STRIP+set}" = set; then
  10937. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10938. -else
  10939. - if test -n "$STRIP"; then
  10940. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10941. -else
  10942. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10943. -for as_dir in $PATH
  10944. -do
  10945. - IFS=$as_save_IFS
  10946. - test -z "$as_dir" && as_dir=.
  10947. - for ac_exec_ext in '' $ac_executable_extensions; do
  10948. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10949. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10950. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10951. - break 2
  10952. - fi
  10953. -done
  10954. -done
  10955. -IFS=$as_save_IFS
  10956. -
  10957. -fi
  10958. -fi
  10959. -STRIP=$ac_cv_prog_STRIP
  10960. -if test -n "$STRIP"; then
  10961. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  10962. -echo "${ECHO_T}$STRIP" >&6; }
  10963. -else
  10964. - { echo "$as_me:$LINENO: result: no" >&5
  10965. -echo "${ECHO_T}no" >&6; }
  10966. -fi
  10967. -
  10968. -
  10969. -fi
  10970. -if test -z "$ac_cv_prog_STRIP"; then
  10971. - ac_ct_STRIP=$STRIP
  10972. - # Extract the first word of "strip", so it can be a program name with args.
  10973. -set dummy strip; ac_word=$2
  10974. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  10975. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  10976. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  10977. - echo $ECHO_N "(cached) $ECHO_C" >&6
  10978. -else
  10979. - if test -n "$ac_ct_STRIP"; then
  10980. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10981. -else
  10982. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10983. -for as_dir in $PATH
  10984. -do
  10985. - IFS=$as_save_IFS
  10986. - test -z "$as_dir" && as_dir=.
  10987. - for ac_exec_ext in '' $ac_executable_extensions; do
  10988. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10989. - ac_cv_prog_ac_ct_STRIP="strip"
  10990. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10991. - break 2
  10992. - fi
  10993. -done
  10994. -done
  10995. -IFS=$as_save_IFS
  10996. -
  10997. -fi
  10998. -fi
  10999. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  11000. -if test -n "$ac_ct_STRIP"; then
  11001. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  11002. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  11003. -else
  11004. - { echo "$as_me:$LINENO: result: no" >&5
  11005. -echo "${ECHO_T}no" >&6; }
  11006. -fi
  11007. -
  11008. - if test "x$ac_ct_STRIP" = x; then
  11009. - STRIP=":"
  11010. - else
  11011. - case $cross_compiling:$ac_tool_warned in
  11012. -yes:)
  11013. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  11014. -whose name does not start with the host triplet. If you think this
  11015. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  11016. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  11017. -whose name does not start with the host triplet. If you think this
  11018. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  11019. -ac_tool_warned=yes ;;
  11020. -esac
  11021. - STRIP=$ac_ct_STRIP
  11022. - fi
  11023. -else
  11024. - STRIP="$ac_cv_prog_STRIP"
  11025. -fi
  11026. -
  11027. -fi
  11028. -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  11029. -
  11030. # We need awk for the "check" target. The system "awk" is bad on
  11031. # some platforms.
  11032. # Always define AMTAR for backward compatibility.
  11033. @@ -2485,17 +3033,18 @@
  11034. ac_config_headers="$ac_config_headers config.h"
  11035. -{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  11036. -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  11037. +
  11038. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  11039. +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  11040. # Check whether --enable-maintainer-mode was given.
  11041. -if test "${enable_maintainer_mode+set}" = set; then
  11042. +if test "${enable_maintainer_mode+set}" = set; then :
  11043. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  11044. else
  11045. USE_MAINTAINER_MODE=no
  11046. fi
  11047. - { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  11048. -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  11049. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  11050. +$as_echo "$USE_MAINTAINER_MODE" >&6; }
  11051. if test $USE_MAINTAINER_MODE = yes; then
  11052. MAINTAINER_MODE_TRUE=
  11053. MAINTAINER_MODE_FALSE='#'
  11054. @@ -2516,10 +3065,10 @@
  11055. if test -n "$ac_tool_prefix"; then
  11056. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11057. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11058. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11059. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11060. -if test "${ac_cv_prog_CC+set}" = set; then
  11061. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11062. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11063. +$as_echo_n "checking for $ac_word... " >&6; }
  11064. +if test "${ac_cv_prog_CC+set}" = set; then :
  11065. + $as_echo_n "(cached) " >&6
  11066. else
  11067. if test -n "$CC"; then
  11068. ac_cv_prog_CC="$CC" # Let the user override the test.
  11069. @@ -2529,25 +3078,25 @@
  11070. do
  11071. IFS=$as_save_IFS
  11072. test -z "$as_dir" && as_dir=.
  11073. - for ac_exec_ext in '' $ac_executable_extensions; do
  11074. + for ac_exec_ext in '' $ac_executable_extensions; do
  11075. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11076. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11077. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11078. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11079. break 2
  11080. fi
  11081. done
  11082. -done
  11083. + done
  11084. IFS=$as_save_IFS
  11085. fi
  11086. fi
  11087. CC=$ac_cv_prog_CC
  11088. if test -n "$CC"; then
  11089. - { echo "$as_me:$LINENO: result: $CC" >&5
  11090. -echo "${ECHO_T}$CC" >&6; }
  11091. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11092. +$as_echo "$CC" >&6; }
  11093. else
  11094. - { echo "$as_me:$LINENO: result: no" >&5
  11095. -echo "${ECHO_T}no" >&6; }
  11096. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11097. +$as_echo "no" >&6; }
  11098. fi
  11099. @@ -2556,10 +3105,10 @@
  11100. ac_ct_CC=$CC
  11101. # Extract the first word of "gcc", so it can be a program name with args.
  11102. set dummy gcc; ac_word=$2
  11103. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11104. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11105. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  11106. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11107. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11108. +$as_echo_n "checking for $ac_word... " >&6; }
  11109. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  11110. + $as_echo_n "(cached) " >&6
  11111. else
  11112. if test -n "$ac_ct_CC"; then
  11113. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11114. @@ -2569,25 +3118,25 @@
  11115. do
  11116. IFS=$as_save_IFS
  11117. test -z "$as_dir" && as_dir=.
  11118. - for ac_exec_ext in '' $ac_executable_extensions; do
  11119. + for ac_exec_ext in '' $ac_executable_extensions; do
  11120. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11121. ac_cv_prog_ac_ct_CC="gcc"
  11122. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11123. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11124. break 2
  11125. fi
  11126. done
  11127. -done
  11128. + done
  11129. IFS=$as_save_IFS
  11130. fi
  11131. fi
  11132. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11133. if test -n "$ac_ct_CC"; then
  11134. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  11135. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  11136. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11137. +$as_echo "$ac_ct_CC" >&6; }
  11138. else
  11139. - { echo "$as_me:$LINENO: result: no" >&5
  11140. -echo "${ECHO_T}no" >&6; }
  11141. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11142. +$as_echo "no" >&6; }
  11143. fi
  11144. if test "x$ac_ct_CC" = x; then
  11145. @@ -2595,12 +3144,8 @@
  11146. else
  11147. case $cross_compiling:$ac_tool_warned in
  11148. yes:)
  11149. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  11150. -whose name does not start with the host triplet. If you think this
  11151. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  11152. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  11153. -whose name does not start with the host triplet. If you think this
  11154. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  11155. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11156. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11157. ac_tool_warned=yes ;;
  11158. esac
  11159. CC=$ac_ct_CC
  11160. @@ -2613,10 +3158,10 @@
  11161. if test -n "$ac_tool_prefix"; then
  11162. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11163. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11164. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11165. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11166. -if test "${ac_cv_prog_CC+set}" = set; then
  11167. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11168. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11169. +$as_echo_n "checking for $ac_word... " >&6; }
  11170. +if test "${ac_cv_prog_CC+set}" = set; then :
  11171. + $as_echo_n "(cached) " >&6
  11172. else
  11173. if test -n "$CC"; then
  11174. ac_cv_prog_CC="$CC" # Let the user override the test.
  11175. @@ -2626,25 +3171,25 @@
  11176. do
  11177. IFS=$as_save_IFS
  11178. test -z "$as_dir" && as_dir=.
  11179. - for ac_exec_ext in '' $ac_executable_extensions; do
  11180. + for ac_exec_ext in '' $ac_executable_extensions; do
  11181. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11182. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11183. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11184. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11185. break 2
  11186. fi
  11187. done
  11188. -done
  11189. + done
  11190. IFS=$as_save_IFS
  11191. fi
  11192. fi
  11193. CC=$ac_cv_prog_CC
  11194. if test -n "$CC"; then
  11195. - { echo "$as_me:$LINENO: result: $CC" >&5
  11196. -echo "${ECHO_T}$CC" >&6; }
  11197. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11198. +$as_echo "$CC" >&6; }
  11199. else
  11200. - { echo "$as_me:$LINENO: result: no" >&5
  11201. -echo "${ECHO_T}no" >&6; }
  11202. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11203. +$as_echo "no" >&6; }
  11204. fi
  11205. @@ -2653,10 +3198,10 @@
  11206. if test -z "$CC"; then
  11207. # Extract the first word of "cc", so it can be a program name with args.
  11208. set dummy cc; ac_word=$2
  11209. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11210. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11211. -if test "${ac_cv_prog_CC+set}" = set; then
  11212. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11213. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11214. +$as_echo_n "checking for $ac_word... " >&6; }
  11215. +if test "${ac_cv_prog_CC+set}" = set; then :
  11216. + $as_echo_n "(cached) " >&6
  11217. else
  11218. if test -n "$CC"; then
  11219. ac_cv_prog_CC="$CC" # Let the user override the test.
  11220. @@ -2667,18 +3212,18 @@
  11221. do
  11222. IFS=$as_save_IFS
  11223. test -z "$as_dir" && as_dir=.
  11224. - for ac_exec_ext in '' $ac_executable_extensions; do
  11225. + for ac_exec_ext in '' $ac_executable_extensions; do
  11226. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11227. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11228. ac_prog_rejected=yes
  11229. continue
  11230. fi
  11231. ac_cv_prog_CC="cc"
  11232. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11233. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11234. break 2
  11235. fi
  11236. done
  11237. -done
  11238. + done
  11239. IFS=$as_save_IFS
  11240. if test $ac_prog_rejected = yes; then
  11241. @@ -2697,11 +3242,11 @@
  11242. fi
  11243. CC=$ac_cv_prog_CC
  11244. if test -n "$CC"; then
  11245. - { echo "$as_me:$LINENO: result: $CC" >&5
  11246. -echo "${ECHO_T}$CC" >&6; }
  11247. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11248. +$as_echo "$CC" >&6; }
  11249. else
  11250. - { echo "$as_me:$LINENO: result: no" >&5
  11251. -echo "${ECHO_T}no" >&6; }
  11252. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11253. +$as_echo "no" >&6; }
  11254. fi
  11255. @@ -2712,10 +3257,10 @@
  11256. do
  11257. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11258. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11259. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11260. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11261. -if test "${ac_cv_prog_CC+set}" = set; then
  11262. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11263. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11264. +$as_echo_n "checking for $ac_word... " >&6; }
  11265. +if test "${ac_cv_prog_CC+set}" = set; then :
  11266. + $as_echo_n "(cached) " >&6
  11267. else
  11268. if test -n "$CC"; then
  11269. ac_cv_prog_CC="$CC" # Let the user override the test.
  11270. @@ -2725,25 +3270,25 @@
  11271. do
  11272. IFS=$as_save_IFS
  11273. test -z "$as_dir" && as_dir=.
  11274. - for ac_exec_ext in '' $ac_executable_extensions; do
  11275. + for ac_exec_ext in '' $ac_executable_extensions; do
  11276. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11277. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11278. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11279. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11280. break 2
  11281. fi
  11282. done
  11283. -done
  11284. + done
  11285. IFS=$as_save_IFS
  11286. fi
  11287. fi
  11288. CC=$ac_cv_prog_CC
  11289. if test -n "$CC"; then
  11290. - { echo "$as_me:$LINENO: result: $CC" >&5
  11291. -echo "${ECHO_T}$CC" >&6; }
  11292. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11293. +$as_echo "$CC" >&6; }
  11294. else
  11295. - { echo "$as_me:$LINENO: result: no" >&5
  11296. -echo "${ECHO_T}no" >&6; }
  11297. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11298. +$as_echo "no" >&6; }
  11299. fi
  11300. @@ -2756,10 +3301,10 @@
  11301. do
  11302. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11303. set dummy $ac_prog; ac_word=$2
  11304. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  11305. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11306. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  11307. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11308. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11309. +$as_echo_n "checking for $ac_word... " >&6; }
  11310. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  11311. + $as_echo_n "(cached) " >&6
  11312. else
  11313. if test -n "$ac_ct_CC"; then
  11314. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11315. @@ -2769,25 +3314,25 @@
  11316. do
  11317. IFS=$as_save_IFS
  11318. test -z "$as_dir" && as_dir=.
  11319. - for ac_exec_ext in '' $ac_executable_extensions; do
  11320. + for ac_exec_ext in '' $ac_executable_extensions; do
  11321. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11322. ac_cv_prog_ac_ct_CC="$ac_prog"
  11323. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11324. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11325. break 2
  11326. fi
  11327. done
  11328. -done
  11329. + done
  11330. IFS=$as_save_IFS
  11331. fi
  11332. fi
  11333. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11334. if test -n "$ac_ct_CC"; then
  11335. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  11336. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  11337. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11338. +$as_echo "$ac_ct_CC" >&6; }
  11339. else
  11340. - { echo "$as_me:$LINENO: result: no" >&5
  11341. -echo "${ECHO_T}no" >&6; }
  11342. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11343. +$as_echo "no" >&6; }
  11344. fi
  11345. @@ -2799,12 +3344,8 @@
  11346. else
  11347. case $cross_compiling:$ac_tool_warned in
  11348. yes:)
  11349. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  11350. -whose name does not start with the host triplet. If you think this
  11351. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  11352. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  11353. -whose name does not start with the host triplet. If you think this
  11354. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  11355. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11356. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11357. ac_tool_warned=yes ;;
  11358. esac
  11359. CC=$ac_ct_CC
  11360. @@ -2814,51 +3355,37 @@
  11361. fi
  11362. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  11363. -See \`config.log' for more details." >&5
  11364. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  11365. -See \`config.log' for more details." >&2;}
  11366. - { (exit 1); exit 1; }; }
  11367. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11368. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11369. +as_fn_error "no acceptable C compiler found in \$PATH
  11370. +See \`config.log' for more details." "$LINENO" 5; }
  11371. # Provide some information about the compiler.
  11372. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  11373. -ac_compiler=`set X $ac_compile; echo $2`
  11374. -{ (ac_try="$ac_compiler --version >&5"
  11375. -case "(($ac_try" in
  11376. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11377. - *) ac_try_echo=$ac_try;;
  11378. -esac
  11379. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11380. - (eval "$ac_compiler --version >&5") 2>&5
  11381. - ac_status=$?
  11382. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11383. - (exit $ac_status); }
  11384. -{ (ac_try="$ac_compiler -v >&5"
  11385. -case "(($ac_try" in
  11386. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11387. - *) ac_try_echo=$ac_try;;
  11388. -esac
  11389. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11390. - (eval "$ac_compiler -v >&5") 2>&5
  11391. - ac_status=$?
  11392. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11393. - (exit $ac_status); }
  11394. -{ (ac_try="$ac_compiler -V >&5"
  11395. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11396. +set X $ac_compile
  11397. +ac_compiler=$2
  11398. +for ac_option in --version -v -V -qversion; do
  11399. + { { ac_try="$ac_compiler $ac_option >&5"
  11400. case "(($ac_try" in
  11401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11402. *) ac_try_echo=$ac_try;;
  11403. esac
  11404. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11405. - (eval "$ac_compiler -V >&5") 2>&5
  11406. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11407. +$as_echo "$ac_try_echo"; } >&5
  11408. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11409. ac_status=$?
  11410. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11411. - (exit $ac_status); }
  11412. + if test -s conftest.err; then
  11413. + sed '10a\
  11414. +... rest of stderr output deleted ...
  11415. + 10q' conftest.err >conftest.er1
  11416. + cat conftest.er1 >&5
  11417. + fi
  11418. + rm -f conftest.er1 conftest.err
  11419. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11420. + test $ac_status = 0; }
  11421. +done
  11422. -cat >conftest.$ac_ext <<_ACEOF
  11423. -/* confdefs.h. */
  11424. -_ACEOF
  11425. -cat confdefs.h >>conftest.$ac_ext
  11426. -cat >>conftest.$ac_ext <<_ACEOF
  11427. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11428. /* end confdefs.h. */
  11429. int
  11430. @@ -2870,42 +3397,38 @@
  11431. }
  11432. _ACEOF
  11433. ac_clean_files_save=$ac_clean_files
  11434. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  11435. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  11436. # Try to create an executable without -o first, disregard a.out.
  11437. # It will help us diagnose broken compilers, and finding out an intuition
  11438. # of exeext.
  11439. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  11440. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  11441. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  11442. -#
  11443. -# List of possible output files, starting from the most likely.
  11444. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  11445. -# only as a last resort. b.out is created by i960 compilers.
  11446. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  11447. -#
  11448. -# The IRIX 6 linker writes into existing files which may not be
  11449. -# executable, retaining their permissions. Remove them first so a
  11450. -# subsequent execution test works.
  11451. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  11452. +$as_echo_n "checking whether the C compiler works... " >&6; }
  11453. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  11454. +
  11455. +# The possible output files:
  11456. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  11457. +
  11458. ac_rmfiles=
  11459. for ac_file in $ac_files
  11460. do
  11461. case $ac_file in
  11462. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  11463. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  11464. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  11465. esac
  11466. done
  11467. rm -f $ac_rmfiles
  11468. -if { (ac_try="$ac_link_default"
  11469. +if { { ac_try="$ac_link_default"
  11470. case "(($ac_try" in
  11471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11472. *) ac_try_echo=$ac_try;;
  11473. esac
  11474. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11475. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11476. +$as_echo "$ac_try_echo"; } >&5
  11477. (eval "$ac_link_default") 2>&5
  11478. ac_status=$?
  11479. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11480. - (exit $ac_status); }; then
  11481. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11482. + test $ac_status = 0; }; then :
  11483. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  11484. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  11485. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  11486. @@ -2915,14 +3438,14 @@
  11487. do
  11488. test -f "$ac_file" || continue
  11489. case $ac_file in
  11490. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  11491. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  11492. ;;
  11493. [ab].out )
  11494. # We found the default executable, but exeext='' is most
  11495. # certainly right.
  11496. break;;
  11497. *.* )
  11498. - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  11499. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  11500. then :; else
  11501. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  11502. fi
  11503. @@ -2941,78 +3464,42 @@
  11504. else
  11505. ac_file=''
  11506. fi
  11507. -
  11508. -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  11509. -echo "${ECHO_T}$ac_file" >&6; }
  11510. -if test -z "$ac_file"; then
  11511. - echo "$as_me: failed program was:" >&5
  11512. -sed 's/^/| /' conftest.$ac_ext >&5
  11513. -
  11514. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  11515. -See \`config.log' for more details." >&5
  11516. -echo "$as_me: error: C compiler cannot create executables
  11517. -See \`config.log' for more details." >&2;}
  11518. - { (exit 77); exit 77; }; }
  11519. -fi
  11520. -
  11521. +if test -z "$ac_file"; then :
  11522. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11523. +$as_echo "no" >&6; }
  11524. +$as_echo "$as_me: failed program was:" >&5
  11525. +sed 's/^/| /' conftest.$ac_ext >&5
  11526. +
  11527. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11528. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11529. +{ as_fn_set_status 77
  11530. +as_fn_error "C compiler cannot create executables
  11531. +See \`config.log' for more details." "$LINENO" 5; }; }
  11532. +else
  11533. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11534. +$as_echo "yes" >&6; }
  11535. +fi
  11536. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  11537. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  11538. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  11539. +$as_echo "$ac_file" >&6; }
  11540. ac_exeext=$ac_cv_exeext
  11541. -# Check that the compiler produces executables we can run. If not, either
  11542. -# the compiler is broken, or we cross compile.
  11543. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  11544. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  11545. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  11546. -# If not cross compiling, check that we can run a simple program.
  11547. -if test "$cross_compiling" != yes; then
  11548. - if { ac_try='./$ac_file'
  11549. - { (case "(($ac_try" in
  11550. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11551. - *) ac_try_echo=$ac_try;;
  11552. -esac
  11553. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11554. - (eval "$ac_try") 2>&5
  11555. - ac_status=$?
  11556. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11557. - (exit $ac_status); }; }; then
  11558. - cross_compiling=no
  11559. - else
  11560. - if test "$cross_compiling" = maybe; then
  11561. - cross_compiling=yes
  11562. - else
  11563. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  11564. -If you meant to cross compile, use \`--host'.
  11565. -See \`config.log' for more details." >&5
  11566. -echo "$as_me: error: cannot run C compiled programs.
  11567. -If you meant to cross compile, use \`--host'.
  11568. -See \`config.log' for more details." >&2;}
  11569. - { (exit 1); exit 1; }; }
  11570. - fi
  11571. - fi
  11572. -fi
  11573. -{ echo "$as_me:$LINENO: result: yes" >&5
  11574. -echo "${ECHO_T}yes" >&6; }
  11575. -
  11576. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  11577. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  11578. ac_clean_files=$ac_clean_files_save
  11579. -# Check that the compiler produces executables we can run. If not, either
  11580. -# the compiler is broken, or we cross compile.
  11581. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  11582. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  11583. -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  11584. -echo "${ECHO_T}$cross_compiling" >&6; }
  11585. -
  11586. -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  11587. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  11588. -if { (ac_try="$ac_link"
  11589. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  11590. +$as_echo_n "checking for suffix of executables... " >&6; }
  11591. +if { { ac_try="$ac_link"
  11592. case "(($ac_try" in
  11593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11594. *) ac_try_echo=$ac_try;;
  11595. esac
  11596. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11597. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11598. +$as_echo "$ac_try_echo"; } >&5
  11599. (eval "$ac_link") 2>&5
  11600. ac_status=$?
  11601. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11602. - (exit $ac_status); }; then
  11603. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11604. + test $ac_status = 0; }; then :
  11605. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  11606. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  11607. # work properly (i.e., refer to `conftest.exe'), while it won't with
  11608. @@ -3020,37 +3507,90 @@
  11609. for ac_file in conftest.exe conftest conftest.*; do
  11610. test -f "$ac_file" || continue
  11611. case $ac_file in
  11612. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  11613. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  11614. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  11615. break;;
  11616. * ) break;;
  11617. esac
  11618. done
  11619. else
  11620. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  11621. -See \`config.log' for more details." >&5
  11622. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  11623. -See \`config.log' for more details." >&2;}
  11624. - { (exit 1); exit 1; }; }
  11625. -fi
  11626. -
  11627. -rm -f conftest$ac_cv_exeext
  11628. -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  11629. -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  11630. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11631. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11632. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  11633. +See \`config.log' for more details." "$LINENO" 5; }
  11634. +fi
  11635. +rm -f conftest conftest$ac_cv_exeext
  11636. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  11637. +$as_echo "$ac_cv_exeext" >&6; }
  11638. rm -f conftest.$ac_ext
  11639. EXEEXT=$ac_cv_exeext
  11640. ac_exeext=$EXEEXT
  11641. -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  11642. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  11643. -if test "${ac_cv_objext+set}" = set; then
  11644. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11645. -else
  11646. - cat >conftest.$ac_ext <<_ACEOF
  11647. -/* confdefs.h. */
  11648. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11649. +/* end confdefs.h. */
  11650. +#include <stdio.h>
  11651. +int
  11652. +main ()
  11653. +{
  11654. +FILE *f = fopen ("conftest.out", "w");
  11655. + return ferror (f) || fclose (f) != 0;
  11656. +
  11657. + ;
  11658. + return 0;
  11659. +}
  11660. _ACEOF
  11661. -cat confdefs.h >>conftest.$ac_ext
  11662. -cat >>conftest.$ac_ext <<_ACEOF
  11663. +ac_clean_files="$ac_clean_files conftest.out"
  11664. +# Check that the compiler produces executables we can run. If not, either
  11665. +# the compiler is broken, or we cross compile.
  11666. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  11667. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  11668. +if test "$cross_compiling" != yes; then
  11669. + { { ac_try="$ac_link"
  11670. +case "(($ac_try" in
  11671. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11672. + *) ac_try_echo=$ac_try;;
  11673. +esac
  11674. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11675. +$as_echo "$ac_try_echo"; } >&5
  11676. + (eval "$ac_link") 2>&5
  11677. + ac_status=$?
  11678. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11679. + test $ac_status = 0; }
  11680. + if { ac_try='./conftest$ac_cv_exeext'
  11681. + { { case "(($ac_try" in
  11682. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11683. + *) ac_try_echo=$ac_try;;
  11684. +esac
  11685. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11686. +$as_echo "$ac_try_echo"; } >&5
  11687. + (eval "$ac_try") 2>&5
  11688. + ac_status=$?
  11689. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11690. + test $ac_status = 0; }; }; then
  11691. + cross_compiling=no
  11692. + else
  11693. + if test "$cross_compiling" = maybe; then
  11694. + cross_compiling=yes
  11695. + else
  11696. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11697. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11698. +as_fn_error "cannot run C compiled programs.
  11699. +If you meant to cross compile, use \`--host'.
  11700. +See \`config.log' for more details." "$LINENO" 5; }
  11701. + fi
  11702. + fi
  11703. +fi
  11704. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  11705. +$as_echo "$cross_compiling" >&6; }
  11706. +
  11707. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  11708. +ac_clean_files=$ac_clean_files_save
  11709. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  11710. +$as_echo_n "checking for suffix of object files... " >&6; }
  11711. +if test "${ac_cv_objext+set}" = set; then :
  11712. + $as_echo_n "(cached) " >&6
  11713. +else
  11714. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11715. /* end confdefs.h. */
  11716. int
  11717. @@ -3062,51 +3602,46 @@
  11718. }
  11719. _ACEOF
  11720. rm -f conftest.o conftest.obj
  11721. -if { (ac_try="$ac_compile"
  11722. +if { { ac_try="$ac_compile"
  11723. case "(($ac_try" in
  11724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11725. *) ac_try_echo=$ac_try;;
  11726. esac
  11727. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11728. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11729. +$as_echo "$ac_try_echo"; } >&5
  11730. (eval "$ac_compile") 2>&5
  11731. ac_status=$?
  11732. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11733. - (exit $ac_status); }; then
  11734. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11735. + test $ac_status = 0; }; then :
  11736. for ac_file in conftest.o conftest.obj conftest.*; do
  11737. test -f "$ac_file" || continue;
  11738. case $ac_file in
  11739. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  11740. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  11741. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  11742. break;;
  11743. esac
  11744. done
  11745. else
  11746. - echo "$as_me: failed program was:" >&5
  11747. + $as_echo "$as_me: failed program was:" >&5
  11748. sed 's/^/| /' conftest.$ac_ext >&5
  11749. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  11750. -See \`config.log' for more details." >&5
  11751. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  11752. -See \`config.log' for more details." >&2;}
  11753. - { (exit 1); exit 1; }; }
  11754. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11755. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11756. +as_fn_error "cannot compute suffix of object files: cannot compile
  11757. +See \`config.log' for more details." "$LINENO" 5; }
  11758. fi
  11759. -
  11760. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  11761. fi
  11762. -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  11763. -echo "${ECHO_T}$ac_cv_objext" >&6; }
  11764. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  11765. +$as_echo "$ac_cv_objext" >&6; }
  11766. OBJEXT=$ac_cv_objext
  11767. ac_objext=$OBJEXT
  11768. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  11769. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  11770. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  11771. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11772. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  11773. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  11774. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  11775. + $as_echo_n "(cached) " >&6
  11776. else
  11777. - cat >conftest.$ac_ext <<_ACEOF
  11778. -/* confdefs.h. */
  11779. -_ACEOF
  11780. -cat confdefs.h >>conftest.$ac_ext
  11781. -cat >>conftest.$ac_ext <<_ACEOF
  11782. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11783. /* end confdefs.h. */
  11784. int
  11785. @@ -3120,54 +3655,34 @@
  11786. return 0;
  11787. }
  11788. _ACEOF
  11789. -rm -f conftest.$ac_objext
  11790. -if { (ac_try="$ac_compile"
  11791. -case "(($ac_try" in
  11792. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11793. - *) ac_try_echo=$ac_try;;
  11794. -esac
  11795. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11796. - (eval "$ac_compile") 2>conftest.er1
  11797. - ac_status=$?
  11798. - grep -v '^ *+' conftest.er1 >conftest.err
  11799. - rm -f conftest.er1
  11800. - cat conftest.err >&5
  11801. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11802. - (exit $ac_status); } && {
  11803. - test -z "$ac_c_werror_flag" ||
  11804. - test ! -s conftest.err
  11805. - } && test -s conftest.$ac_objext; then
  11806. +if ac_fn_c_try_compile "$LINENO"; then :
  11807. ac_compiler_gnu=yes
  11808. else
  11809. - echo "$as_me: failed program was:" >&5
  11810. -sed 's/^/| /' conftest.$ac_ext >&5
  11811. -
  11812. - ac_compiler_gnu=no
  11813. + ac_compiler_gnu=no
  11814. fi
  11815. -
  11816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11817. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11818. fi
  11819. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  11820. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  11821. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  11822. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11823. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  11824. +if test $ac_compiler_gnu = yes; then
  11825. + GCC=yes
  11826. +else
  11827. + GCC=
  11828. +fi
  11829. ac_test_CFLAGS=${CFLAGS+set}
  11830. ac_save_CFLAGS=$CFLAGS
  11831. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  11832. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  11833. -if test "${ac_cv_prog_cc_g+set}" = set; then
  11834. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11835. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11836. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  11837. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  11838. + $as_echo_n "(cached) " >&6
  11839. else
  11840. ac_save_c_werror_flag=$ac_c_werror_flag
  11841. ac_c_werror_flag=yes
  11842. ac_cv_prog_cc_g=no
  11843. CFLAGS="-g"
  11844. - cat >conftest.$ac_ext <<_ACEOF
  11845. -/* confdefs.h. */
  11846. -_ACEOF
  11847. -cat confdefs.h >>conftest.$ac_ext
  11848. -cat >>conftest.$ac_ext <<_ACEOF
  11849. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11850. /* end confdefs.h. */
  11851. int
  11852. @@ -3178,34 +3693,11 @@
  11853. return 0;
  11854. }
  11855. _ACEOF
  11856. -rm -f conftest.$ac_objext
  11857. -if { (ac_try="$ac_compile"
  11858. -case "(($ac_try" in
  11859. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11860. - *) ac_try_echo=$ac_try;;
  11861. -esac
  11862. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11863. - (eval "$ac_compile") 2>conftest.er1
  11864. - ac_status=$?
  11865. - grep -v '^ *+' conftest.er1 >conftest.err
  11866. - rm -f conftest.er1
  11867. - cat conftest.err >&5
  11868. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11869. - (exit $ac_status); } && {
  11870. - test -z "$ac_c_werror_flag" ||
  11871. - test ! -s conftest.err
  11872. - } && test -s conftest.$ac_objext; then
  11873. +if ac_fn_c_try_compile "$LINENO"; then :
  11874. ac_cv_prog_cc_g=yes
  11875. else
  11876. - echo "$as_me: failed program was:" >&5
  11877. -sed 's/^/| /' conftest.$ac_ext >&5
  11878. -
  11879. - CFLAGS=""
  11880. - cat >conftest.$ac_ext <<_ACEOF
  11881. -/* confdefs.h. */
  11882. -_ACEOF
  11883. -cat confdefs.h >>conftest.$ac_ext
  11884. -cat >>conftest.$ac_ext <<_ACEOF
  11885. + CFLAGS=""
  11886. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11887. /* end confdefs.h. */
  11888. int
  11889. @@ -3216,35 +3708,12 @@
  11890. return 0;
  11891. }
  11892. _ACEOF
  11893. -rm -f conftest.$ac_objext
  11894. -if { (ac_try="$ac_compile"
  11895. -case "(($ac_try" in
  11896. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11897. - *) ac_try_echo=$ac_try;;
  11898. -esac
  11899. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11900. - (eval "$ac_compile") 2>conftest.er1
  11901. - ac_status=$?
  11902. - grep -v '^ *+' conftest.er1 >conftest.err
  11903. - rm -f conftest.er1
  11904. - cat conftest.err >&5
  11905. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11906. - (exit $ac_status); } && {
  11907. - test -z "$ac_c_werror_flag" ||
  11908. - test ! -s conftest.err
  11909. - } && test -s conftest.$ac_objext; then
  11910. - :
  11911. -else
  11912. - echo "$as_me: failed program was:" >&5
  11913. -sed 's/^/| /' conftest.$ac_ext >&5
  11914. +if ac_fn_c_try_compile "$LINENO"; then :
  11915. - ac_c_werror_flag=$ac_save_c_werror_flag
  11916. +else
  11917. + ac_c_werror_flag=$ac_save_c_werror_flag
  11918. CFLAGS="-g"
  11919. - cat >conftest.$ac_ext <<_ACEOF
  11920. -/* confdefs.h. */
  11921. -_ACEOF
  11922. -cat confdefs.h >>conftest.$ac_ext
  11923. -cat >>conftest.$ac_ext <<_ACEOF
  11924. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11925. /* end confdefs.h. */
  11926. int
  11927. @@ -3255,42 +3724,18 @@
  11928. return 0;
  11929. }
  11930. _ACEOF
  11931. -rm -f conftest.$ac_objext
  11932. -if { (ac_try="$ac_compile"
  11933. -case "(($ac_try" in
  11934. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11935. - *) ac_try_echo=$ac_try;;
  11936. -esac
  11937. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11938. - (eval "$ac_compile") 2>conftest.er1
  11939. - ac_status=$?
  11940. - grep -v '^ *+' conftest.er1 >conftest.err
  11941. - rm -f conftest.er1
  11942. - cat conftest.err >&5
  11943. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11944. - (exit $ac_status); } && {
  11945. - test -z "$ac_c_werror_flag" ||
  11946. - test ! -s conftest.err
  11947. - } && test -s conftest.$ac_objext; then
  11948. +if ac_fn_c_try_compile "$LINENO"; then :
  11949. ac_cv_prog_cc_g=yes
  11950. -else
  11951. - echo "$as_me: failed program was:" >&5
  11952. -sed 's/^/| /' conftest.$ac_ext >&5
  11953. -
  11954. -
  11955. fi
  11956. -
  11957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11958. fi
  11959. -
  11960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11961. fi
  11962. -
  11963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11964. ac_c_werror_flag=$ac_save_c_werror_flag
  11965. fi
  11966. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  11967. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  11968. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11969. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  11970. if test "$ac_test_CFLAGS" = set; then
  11971. CFLAGS=$ac_save_CFLAGS
  11972. elif test $ac_cv_prog_cc_g = yes; then
  11973. @@ -3306,18 +3751,14 @@
  11974. CFLAGS=
  11975. fi
  11976. fi
  11977. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  11978. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  11979. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  11980. - echo $ECHO_N "(cached) $ECHO_C" >&6
  11981. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  11982. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  11983. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  11984. + $as_echo_n "(cached) " >&6
  11985. else
  11986. ac_cv_prog_cc_c89=no
  11987. ac_save_CC=$CC
  11988. -cat >conftest.$ac_ext <<_ACEOF
  11989. -/* confdefs.h. */
  11990. -_ACEOF
  11991. -cat confdefs.h >>conftest.$ac_ext
  11992. -cat >>conftest.$ac_ext <<_ACEOF
  11993. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11994. /* end confdefs.h. */
  11995. #include <stdarg.h>
  11996. #include <stdio.h>
  11997. @@ -3374,31 +3815,9 @@
  11998. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11999. do
  12000. CC="$ac_save_CC $ac_arg"
  12001. - rm -f conftest.$ac_objext
  12002. -if { (ac_try="$ac_compile"
  12003. -case "(($ac_try" in
  12004. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12005. - *) ac_try_echo=$ac_try;;
  12006. -esac
  12007. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12008. - (eval "$ac_compile") 2>conftest.er1
  12009. - ac_status=$?
  12010. - grep -v '^ *+' conftest.er1 >conftest.err
  12011. - rm -f conftest.er1
  12012. - cat conftest.err >&5
  12013. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12014. - (exit $ac_status); } && {
  12015. - test -z "$ac_c_werror_flag" ||
  12016. - test ! -s conftest.err
  12017. - } && test -s conftest.$ac_objext; then
  12018. + if ac_fn_c_try_compile "$LINENO"; then :
  12019. ac_cv_prog_cc_c89=$ac_arg
  12020. -else
  12021. - echo "$as_me: failed program was:" >&5
  12022. -sed 's/^/| /' conftest.$ac_ext >&5
  12023. -
  12024. -
  12025. fi
  12026. -
  12027. rm -f core conftest.err conftest.$ac_objext
  12028. test "x$ac_cv_prog_cc_c89" != "xno" && break
  12029. done
  12030. @@ -3409,17 +3828,19 @@
  12031. # AC_CACHE_VAL
  12032. case "x$ac_cv_prog_cc_c89" in
  12033. x)
  12034. - { echo "$as_me:$LINENO: result: none needed" >&5
  12035. -echo "${ECHO_T}none needed" >&6; } ;;
  12036. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12037. +$as_echo "none needed" >&6; } ;;
  12038. xno)
  12039. - { echo "$as_me:$LINENO: result: unsupported" >&5
  12040. -echo "${ECHO_T}unsupported" >&6; } ;;
  12041. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12042. +$as_echo "unsupported" >&6; } ;;
  12043. *)
  12044. CC="$CC $ac_cv_prog_cc_c89"
  12045. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  12046. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  12047. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12048. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  12049. esac
  12050. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  12051. +fi
  12052. ac_ext=c
  12053. ac_cpp='$CPP $CPPFLAGS'
  12054. @@ -3434,44 +3855,44 @@
  12055. am_make=${MAKE-make}
  12056. cat > confinc << 'END'
  12057. am__doit:
  12058. - @echo done
  12059. + @echo this is the am__doit target
  12060. .PHONY: am__doit
  12061. END
  12062. # If we don't find an include directive, just comment out the code.
  12063. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  12064. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  12065. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  12066. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  12067. am__include="#"
  12068. am__quote=
  12069. _am_result=none
  12070. # First try GNU make style include.
  12071. echo "include confinc" > confmf
  12072. -# We grep out `Entering directory' and `Leaving directory'
  12073. -# messages which can occur if `w' ends up in MAKEFLAGS.
  12074. -# In particular we don't look at `^make:' because GNU make might
  12075. -# be invoked under some other name (usually "gmake"), in which
  12076. -# case it prints its new name instead of `make'.
  12077. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  12078. - am__include=include
  12079. - am__quote=
  12080. - _am_result=GNU
  12081. -fi
  12082. +# Ignore all kinds of additional output from `make'.
  12083. +case `$am_make -s -f confmf 2> /dev/null` in #(
  12084. +*the\ am__doit\ target*)
  12085. + am__include=include
  12086. + am__quote=
  12087. + _am_result=GNU
  12088. + ;;
  12089. +esac
  12090. # Now try BSD make style include.
  12091. if test "$am__include" = "#"; then
  12092. echo '.include "confinc"' > confmf
  12093. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  12094. - am__include=.include
  12095. - am__quote="\""
  12096. - _am_result=BSD
  12097. - fi
  12098. + case `$am_make -s -f confmf 2> /dev/null` in #(
  12099. + *the\ am__doit\ target*)
  12100. + am__include=.include
  12101. + am__quote="\""
  12102. + _am_result=BSD
  12103. + ;;
  12104. + esac
  12105. fi
  12106. -{ echo "$as_me:$LINENO: result: $_am_result" >&5
  12107. -echo "${ECHO_T}$_am_result" >&6; }
  12108. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  12109. +$as_echo "$_am_result" >&6; }
  12110. rm -f confinc confmf
  12111. # Check whether --enable-dependency-tracking was given.
  12112. -if test "${enable_dependency_tracking+set}" = set; then
  12113. +if test "${enable_dependency_tracking+set}" = set; then :
  12114. enableval=$enable_dependency_tracking;
  12115. fi
  12116. @@ -3491,10 +3912,10 @@
  12117. depcc="$CC" am_compiler_list=
  12118. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  12119. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  12120. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  12121. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12122. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12123. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  12124. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  12125. + $as_echo_n "(cached) " >&6
  12126. else
  12127. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12128. # We make a subdir and do the tests there. Otherwise we can end up
  12129. @@ -3519,6 +3940,11 @@
  12130. if test "$am_compiler_list" = ""; then
  12131. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12132. fi
  12133. + am__universal=false
  12134. + case " $depcc " in #(
  12135. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12136. + esac
  12137. +
  12138. for depmode in $am_compiler_list; do
  12139. # Setup a source with many dependencies, because some compilers
  12140. # like to wrap large dependency lists on column 80 (with \), and
  12141. @@ -3536,7 +3962,17 @@
  12142. done
  12143. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12144. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12145. + # mode. It turns out that the SunPro C++ compiler does not properly
  12146. + # handle `-M -o', and we need to detect this. Also, some Intel
  12147. + # versions had trouble with output in subdirs
  12148. + am__obj=sub/conftest.${OBJEXT-o}
  12149. + am__minus_obj="-o $am__obj"
  12150. case $depmode in
  12151. + gcc)
  12152. + # This depmode causes a compiler race in universal mode.
  12153. + test "$am__universal" = false || continue
  12154. + ;;
  12155. nosideeffect)
  12156. # after this tag, mechanisms are not by side-effect, so they'll
  12157. # only be used when explicitly requested
  12158. @@ -3546,19 +3982,23 @@
  12159. break
  12160. fi
  12161. ;;
  12162. + msvisualcpp | msvcmsys)
  12163. + # This compiler won't grok `-c -o', but also, the minuso test has
  12164. + # not run yet. These depmodes are late enough in the game, and
  12165. + # so weak that their functioning should not be impacted.
  12166. + am__obj=conftest.${OBJEXT-o}
  12167. + am__minus_obj=
  12168. + ;;
  12169. none) break ;;
  12170. esac
  12171. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12172. - # mode. It turns out that the SunPro C++ compiler does not properly
  12173. - # handle `-M -o', and we need to detect this.
  12174. if depmode=$depmode \
  12175. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  12176. + source=sub/conftest.c object=$am__obj \
  12177. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12178. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  12179. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12180. >/dev/null 2>conftest.err &&
  12181. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12182. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12183. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  12184. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12185. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12186. # icc doesn't choke on unknown options, it will just issue warnings
  12187. # or remarks (even with -Werror). So we grep stderr for any message
  12188. @@ -3582,8 +4022,8 @@
  12189. fi
  12190. fi
  12191. -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  12192. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  12193. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  12194. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  12195. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12196. if
  12197. @@ -3599,35 +4039,27 @@
  12198. # Make sure we can run config.sub.
  12199. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  12200. - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  12201. -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  12202. - { (exit 1); exit 1; }; }
  12203. -
  12204. -{ echo "$as_me:$LINENO: checking build system type" >&5
  12205. -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  12206. -if test "${ac_cv_build+set}" = set; then
  12207. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12208. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  12209. +
  12210. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  12211. +$as_echo_n "checking build system type... " >&6; }
  12212. +if test "${ac_cv_build+set}" = set; then :
  12213. + $as_echo_n "(cached) " >&6
  12214. else
  12215. ac_build_alias=$build_alias
  12216. test "x$ac_build_alias" = x &&
  12217. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  12218. test "x$ac_build_alias" = x &&
  12219. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  12220. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  12221. - { (exit 1); exit 1; }; }
  12222. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  12223. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  12224. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  12225. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  12226. - { (exit 1); exit 1; }; }
  12227. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  12228. fi
  12229. -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  12230. -echo "${ECHO_T}$ac_cv_build" >&6; }
  12231. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  12232. +$as_echo "$ac_cv_build" >&6; }
  12233. case $ac_cv_build in
  12234. *-*-*) ;;
  12235. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  12236. -echo "$as_me: error: invalid value of canonical build" >&2;}
  12237. - { (exit 1); exit 1; }; };;
  12238. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  12239. esac
  12240. build=$ac_cv_build
  12241. ac_save_IFS=$IFS; IFS='-'
  12242. @@ -3643,28 +4075,24 @@
  12243. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  12244. -{ echo "$as_me:$LINENO: checking host system type" >&5
  12245. -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  12246. -if test "${ac_cv_host+set}" = set; then
  12247. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12248. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  12249. +$as_echo_n "checking host system type... " >&6; }
  12250. +if test "${ac_cv_host+set}" = set; then :
  12251. + $as_echo_n "(cached) " >&6
  12252. else
  12253. if test "x$host_alias" = x; then
  12254. ac_cv_host=$ac_cv_build
  12255. else
  12256. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  12257. - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  12258. -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  12259. - { (exit 1); exit 1; }; }
  12260. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  12261. fi
  12262. fi
  12263. -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  12264. -echo "${ECHO_T}$ac_cv_host" >&6; }
  12265. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  12266. +$as_echo "$ac_cv_host" >&6; }
  12267. case $ac_cv_host in
  12268. *-*-*) ;;
  12269. -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  12270. -echo "$as_me: error: invalid value of canonical host" >&2;}
  12271. - { (exit 1); exit 1; }; };;
  12272. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  12273. esac
  12274. host=$ac_cv_host
  12275. ac_save_IFS=$IFS; IFS='-'
  12276. @@ -3680,180 +4108,75 @@
  12277. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  12278. -# Check whether --enable-shared was given.
  12279. -if test "${enable_shared+set}" = set; then
  12280. - enableval=$enable_shared; p=${PACKAGE-default}
  12281. - case $enableval in
  12282. - yes) enable_shared=yes ;;
  12283. - no) enable_shared=no ;;
  12284. - *)
  12285. - enable_shared=no
  12286. - # Look at the argument we got. We use all the common list separators.
  12287. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12288. - for pkg in $enableval; do
  12289. - IFS="$lt_save_ifs"
  12290. - if test "X$pkg" = "X$p"; then
  12291. - enable_shared=yes
  12292. - fi
  12293. - done
  12294. - IFS="$lt_save_ifs"
  12295. - ;;
  12296. - esac
  12297. -else
  12298. - enable_shared=yes
  12299. -fi
  12300. +case `pwd` in
  12301. + *\ * | *\ *)
  12302. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  12303. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  12304. +esac
  12305. -# Check whether --enable-static was given.
  12306. -if test "${enable_static+set}" = set; then
  12307. - enableval=$enable_static; p=${PACKAGE-default}
  12308. - case $enableval in
  12309. - yes) enable_static=yes ;;
  12310. - no) enable_static=no ;;
  12311. - *)
  12312. - enable_static=no
  12313. - # Look at the argument we got. We use all the common list separators.
  12314. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12315. - for pkg in $enableval; do
  12316. - IFS="$lt_save_ifs"
  12317. - if test "X$pkg" = "X$p"; then
  12318. - enable_static=yes
  12319. - fi
  12320. - done
  12321. - IFS="$lt_save_ifs"
  12322. - ;;
  12323. - esac
  12324. -else
  12325. - enable_static=yes
  12326. -fi
  12327. +macro_version='2.2.6b'
  12328. +macro_revision='1.3017'
  12329. -# Check whether --enable-fast-install was given.
  12330. -if test "${enable_fast_install+set}" = set; then
  12331. - enableval=$enable_fast_install; p=${PACKAGE-default}
  12332. - case $enableval in
  12333. - yes) enable_fast_install=yes ;;
  12334. - no) enable_fast_install=no ;;
  12335. - *)
  12336. - enable_fast_install=no
  12337. - # Look at the argument we got. We use all the common list separators.
  12338. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12339. - for pkg in $enableval; do
  12340. - IFS="$lt_save_ifs"
  12341. - if test "X$pkg" = "X$p"; then
  12342. - enable_fast_install=yes
  12343. - fi
  12344. - done
  12345. - IFS="$lt_save_ifs"
  12346. - ;;
  12347. - esac
  12348. -else
  12349. - enable_fast_install=yes
  12350. -fi
  12351. -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  12352. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  12353. -if test "${lt_cv_path_SED+set}" = set; then
  12354. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12355. -else
  12356. - # Loop through the user's path and test for sed and gsed.
  12357. -# Then use that list of sed's as ones to test for truncation.
  12358. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12359. -for as_dir in $PATH
  12360. -do
  12361. - IFS=$as_save_IFS
  12362. - test -z "$as_dir" && as_dir=.
  12363. - for lt_ac_prog in sed gsed; do
  12364. - for ac_exec_ext in '' $ac_executable_extensions; do
  12365. - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  12366. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  12367. - fi
  12368. - done
  12369. - done
  12370. -done
  12371. -IFS=$as_save_IFS
  12372. -lt_ac_max=0
  12373. -lt_ac_count=0
  12374. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  12375. -# along with /bin/sed that truncates output.
  12376. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  12377. - test ! -f $lt_ac_sed && continue
  12378. - cat /dev/null > conftest.in
  12379. - lt_ac_count=0
  12380. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  12381. - # Check for GNU sed and select it if it is found.
  12382. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  12383. - lt_cv_path_SED=$lt_ac_sed
  12384. - break
  12385. - fi
  12386. - while true; do
  12387. - cat conftest.in conftest.in >conftest.tmp
  12388. - mv conftest.tmp conftest.in
  12389. - cp conftest.in conftest.nl
  12390. - echo >>conftest.nl
  12391. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  12392. - cmp -s conftest.out conftest.nl || break
  12393. - # 10000 chars as input seems more than enough
  12394. - test $lt_ac_count -gt 10 && break
  12395. - lt_ac_count=`expr $lt_ac_count + 1`
  12396. - if test $lt_ac_count -gt $lt_ac_max; then
  12397. - lt_ac_max=$lt_ac_count
  12398. - lt_cv_path_SED=$lt_ac_sed
  12399. - fi
  12400. - done
  12401. -done
  12402. -fi
  12403. -SED=$lt_cv_path_SED
  12404. -{ echo "$as_me:$LINENO: result: $SED" >&5
  12405. -echo "${ECHO_T}$SED" >&6; }
  12406. -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  12407. -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  12408. -if test "${ac_cv_path_GREP+set}" = set; then
  12409. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12410. -else
  12411. - # Extract the first word of "grep ggrep" to use in msg output
  12412. -if test -z "$GREP"; then
  12413. -set dummy grep ggrep; ac_prog_name=$2
  12414. -if test "${ac_cv_path_GREP+set}" = set; then
  12415. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12416. -else
  12417. - ac_path_GREP_found=false
  12418. -# Loop through the user's path and test for each of PROGNAME-LIST
  12419. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12420. -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  12421. +
  12422. +
  12423. +
  12424. +
  12425. +
  12426. +
  12427. +ltmain="$ac_aux_dir/ltmain.sh"
  12428. +
  12429. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  12430. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  12431. +if test "${ac_cv_path_SED+set}" = set; then :
  12432. + $as_echo_n "(cached) " >&6
  12433. +else
  12434. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  12435. + for ac_i in 1 2 3 4 5 6 7; do
  12436. + ac_script="$ac_script$as_nl$ac_script"
  12437. + done
  12438. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  12439. + { ac_script=; unset ac_script;}
  12440. + if test -z "$SED"; then
  12441. + ac_path_SED_found=false
  12442. + # Loop through the user's path and test for each of PROGNAME-LIST
  12443. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12444. +for as_dir in $PATH
  12445. do
  12446. IFS=$as_save_IFS
  12447. test -z "$as_dir" && as_dir=.
  12448. - for ac_prog in grep ggrep; do
  12449. - for ac_exec_ext in '' $ac_executable_extensions; do
  12450. - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  12451. - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  12452. - # Check for GNU ac_path_GREP and select it if it is found.
  12453. - # Check for GNU $ac_path_GREP
  12454. -case `"$ac_path_GREP" --version 2>&1` in
  12455. + for ac_prog in sed gsed; do
  12456. + for ac_exec_ext in '' $ac_executable_extensions; do
  12457. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  12458. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  12459. +# Check for GNU ac_path_SED and select it if it is found.
  12460. + # Check for GNU $ac_path_SED
  12461. +case `"$ac_path_SED" --version 2>&1` in
  12462. *GNU*)
  12463. - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  12464. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  12465. *)
  12466. ac_count=0
  12467. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  12468. + $as_echo_n 0123456789 >"conftest.in"
  12469. while :
  12470. do
  12471. cat "conftest.in" "conftest.in" >"conftest.tmp"
  12472. mv "conftest.tmp" "conftest.in"
  12473. cp "conftest.in" "conftest.nl"
  12474. - echo 'GREP' >> "conftest.nl"
  12475. - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  12476. + $as_echo '' >> "conftest.nl"
  12477. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  12478. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  12479. - ac_count=`expr $ac_count + 1`
  12480. - if test $ac_count -gt ${ac_path_GREP_max-0}; then
  12481. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  12482. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  12483. # Best one so far, save it but keep looking for a better one
  12484. - ac_cv_path_GREP="$ac_path_GREP"
  12485. - ac_path_GREP_max=$ac_count
  12486. + ac_cv_path_SED="$ac_path_SED"
  12487. + ac_path_SED_max=$ac_count
  12488. fi
  12489. # 10*(2^10) chars as input seems more than enough
  12490. test $ac_count -gt 10 && break
  12491. @@ -3861,77 +4184,137 @@
  12492. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  12493. esac
  12494. -
  12495. - $ac_path_GREP_found && break 3
  12496. + $ac_path_SED_found && break 3
  12497. + done
  12498. + done
  12499. done
  12500. -done
  12501. -
  12502. -done
  12503. IFS=$as_save_IFS
  12504. -
  12505. -
  12506. + if test -z "$ac_cv_path_SED"; then
  12507. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  12508. + fi
  12509. +else
  12510. + ac_cv_path_SED=$SED
  12511. fi
  12512. -GREP="$ac_cv_path_GREP"
  12513. -if test -z "$GREP"; then
  12514. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  12515. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  12516. - { (exit 1); exit 1; }; }
  12517. fi
  12518. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  12519. +$as_echo "$ac_cv_path_SED" >&6; }
  12520. + SED="$ac_cv_path_SED"
  12521. + rm -f conftest.sed
  12522. -else
  12523. - ac_cv_path_GREP=$GREP
  12524. -fi
  12525. +test -z "$SED" && SED=sed
  12526. +Xsed="$SED -e 1s/^X//"
  12527. +
  12528. +
  12529. +
  12530. +
  12531. +
  12532. +
  12533. +
  12534. +
  12535. +
  12536. +
  12537. +
  12538. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  12539. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  12540. +if test "${ac_cv_path_GREP+set}" = set; then :
  12541. + $as_echo_n "(cached) " >&6
  12542. +else
  12543. + if test -z "$GREP"; then
  12544. + ac_path_GREP_found=false
  12545. + # Loop through the user's path and test for each of PROGNAME-LIST
  12546. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12547. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  12548. +do
  12549. + IFS=$as_save_IFS
  12550. + test -z "$as_dir" && as_dir=.
  12551. + for ac_prog in grep ggrep; do
  12552. + for ac_exec_ext in '' $ac_executable_extensions; do
  12553. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  12554. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  12555. +# Check for GNU ac_path_GREP and select it if it is found.
  12556. + # Check for GNU $ac_path_GREP
  12557. +case `"$ac_path_GREP" --version 2>&1` in
  12558. +*GNU*)
  12559. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  12560. +*)
  12561. + ac_count=0
  12562. + $as_echo_n 0123456789 >"conftest.in"
  12563. + while :
  12564. + do
  12565. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  12566. + mv "conftest.tmp" "conftest.in"
  12567. + cp "conftest.in" "conftest.nl"
  12568. + $as_echo 'GREP' >> "conftest.nl"
  12569. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  12570. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  12571. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  12572. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  12573. + # Best one so far, save it but keep looking for a better one
  12574. + ac_cv_path_GREP="$ac_path_GREP"
  12575. + ac_path_GREP_max=$ac_count
  12576. + fi
  12577. + # 10*(2^10) chars as input seems more than enough
  12578. + test $ac_count -gt 10 && break
  12579. + done
  12580. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  12581. +esac
  12582. + $ac_path_GREP_found && break 3
  12583. + done
  12584. + done
  12585. + done
  12586. +IFS=$as_save_IFS
  12587. + if test -z "$ac_cv_path_GREP"; then
  12588. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  12589. + fi
  12590. +else
  12591. + ac_cv_path_GREP=$GREP
  12592. +fi
  12593. fi
  12594. -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  12595. -echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  12596. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  12597. +$as_echo "$ac_cv_path_GREP" >&6; }
  12598. GREP="$ac_cv_path_GREP"
  12599. -{ echo "$as_me:$LINENO: checking for egrep" >&5
  12600. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  12601. -if test "${ac_cv_path_EGREP+set}" = set; then
  12602. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12603. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  12604. +$as_echo_n "checking for egrep... " >&6; }
  12605. +if test "${ac_cv_path_EGREP+set}" = set; then :
  12606. + $as_echo_n "(cached) " >&6
  12607. else
  12608. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  12609. then ac_cv_path_EGREP="$GREP -E"
  12610. else
  12611. - # Extract the first word of "egrep" to use in msg output
  12612. -if test -z "$EGREP"; then
  12613. -set dummy egrep; ac_prog_name=$2
  12614. -if test "${ac_cv_path_EGREP+set}" = set; then
  12615. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12616. -else
  12617. + if test -z "$EGREP"; then
  12618. ac_path_EGREP_found=false
  12619. -# Loop through the user's path and test for each of PROGNAME-LIST
  12620. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12621. + # Loop through the user's path and test for each of PROGNAME-LIST
  12622. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12623. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  12624. do
  12625. IFS=$as_save_IFS
  12626. test -z "$as_dir" && as_dir=.
  12627. - for ac_prog in egrep; do
  12628. - for ac_exec_ext in '' $ac_executable_extensions; do
  12629. - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  12630. - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  12631. - # Check for GNU ac_path_EGREP and select it if it is found.
  12632. + for ac_prog in egrep; do
  12633. + for ac_exec_ext in '' $ac_executable_extensions; do
  12634. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  12635. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  12636. +# Check for GNU ac_path_EGREP and select it if it is found.
  12637. # Check for GNU $ac_path_EGREP
  12638. case `"$ac_path_EGREP" --version 2>&1` in
  12639. *GNU*)
  12640. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  12641. *)
  12642. ac_count=0
  12643. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  12644. + $as_echo_n 0123456789 >"conftest.in"
  12645. while :
  12646. do
  12647. cat "conftest.in" "conftest.in" >"conftest.tmp"
  12648. mv "conftest.tmp" "conftest.in"
  12649. cp "conftest.in" "conftest.nl"
  12650. - echo 'EGREP' >> "conftest.nl"
  12651. + $as_echo 'EGREP' >> "conftest.nl"
  12652. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  12653. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  12654. - ac_count=`expr $ac_count + 1`
  12655. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  12656. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  12657. # Best one so far, save it but keep looking for a better one
  12658. ac_cv_path_EGREP="$ac_path_EGREP"
  12659. @@ -3943,39 +4326,114 @@
  12660. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  12661. esac
  12662. -
  12663. - $ac_path_EGREP_found && break 3
  12664. + $ac_path_EGREP_found && break 3
  12665. + done
  12666. + done
  12667. done
  12668. -done
  12669. -
  12670. -done
  12671. IFS=$as_save_IFS
  12672. -
  12673. -
  12674. + if test -z "$ac_cv_path_EGREP"; then
  12675. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  12676. + fi
  12677. +else
  12678. + ac_cv_path_EGREP=$EGREP
  12679. fi
  12680. -EGREP="$ac_cv_path_EGREP"
  12681. -if test -z "$EGREP"; then
  12682. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  12683. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  12684. - { (exit 1); exit 1; }; }
  12685. + fi
  12686. fi
  12687. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  12688. +$as_echo "$ac_cv_path_EGREP" >&6; }
  12689. + EGREP="$ac_cv_path_EGREP"
  12690. +
  12691. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  12692. +$as_echo_n "checking for fgrep... " >&6; }
  12693. +if test "${ac_cv_path_FGREP+set}" = set; then :
  12694. + $as_echo_n "(cached) " >&6
  12695. else
  12696. - ac_cv_path_EGREP=$EGREP
  12697. -fi
  12698. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  12699. + then ac_cv_path_FGREP="$GREP -F"
  12700. + else
  12701. + if test -z "$FGREP"; then
  12702. + ac_path_FGREP_found=false
  12703. + # Loop through the user's path and test for each of PROGNAME-LIST
  12704. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12705. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  12706. +do
  12707. + IFS=$as_save_IFS
  12708. + test -z "$as_dir" && as_dir=.
  12709. + for ac_prog in fgrep; do
  12710. + for ac_exec_ext in '' $ac_executable_extensions; do
  12711. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  12712. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  12713. +# Check for GNU ac_path_FGREP and select it if it is found.
  12714. + # Check for GNU $ac_path_FGREP
  12715. +case `"$ac_path_FGREP" --version 2>&1` in
  12716. +*GNU*)
  12717. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  12718. +*)
  12719. + ac_count=0
  12720. + $as_echo_n 0123456789 >"conftest.in"
  12721. + while :
  12722. + do
  12723. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  12724. + mv "conftest.tmp" "conftest.in"
  12725. + cp "conftest.in" "conftest.nl"
  12726. + $as_echo 'FGREP' >> "conftest.nl"
  12727. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  12728. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  12729. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  12730. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  12731. + # Best one so far, save it but keep looking for a better one
  12732. + ac_cv_path_FGREP="$ac_path_FGREP"
  12733. + ac_path_FGREP_max=$ac_count
  12734. + fi
  12735. + # 10*(2^10) chars as input seems more than enough
  12736. + test $ac_count -gt 10 && break
  12737. + done
  12738. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  12739. +esac
  12740. + $ac_path_FGREP_found && break 3
  12741. + done
  12742. + done
  12743. + done
  12744. +IFS=$as_save_IFS
  12745. + if test -z "$ac_cv_path_FGREP"; then
  12746. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  12747. + fi
  12748. +else
  12749. + ac_cv_path_FGREP=$FGREP
  12750. +fi
  12751. fi
  12752. fi
  12753. -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  12754. -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  12755. - EGREP="$ac_cv_path_EGREP"
  12756. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  12757. +$as_echo "$ac_cv_path_FGREP" >&6; }
  12758. + FGREP="$ac_cv_path_FGREP"
  12759. +
  12760. +
  12761. +test -z "$GREP" && GREP=grep
  12762. +
  12763. +
  12764. +
  12765. +
  12766. +
  12767. +
  12768. +
  12769. +
  12770. +
  12771. +
  12772. +
  12773. +
  12774. +
  12775. +
  12776. +
  12777. +
  12778. # Check whether --with-gnu-ld was given.
  12779. -if test "${with_gnu_ld+set}" = set; then
  12780. +if test "${with_gnu_ld+set}" = set; then :
  12781. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  12782. else
  12783. with_gnu_ld=no
  12784. @@ -3984,8 +4442,8 @@
  12785. ac_prog=ld
  12786. if test "$GCC" = yes; then
  12787. # Check if gcc -print-prog-name=ld gives a path.
  12788. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  12789. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  12790. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12791. +$as_echo_n "checking for ld used by $CC... " >&6; }
  12792. case $host in
  12793. *-*-mingw*)
  12794. # gcc leaves a trailing carriage return which upsets mingw
  12795. @@ -3998,9 +4456,9 @@
  12796. [\\/]* | ?:[\\/]*)
  12797. re_direlt='/[^/][^/]*/\.\./'
  12798. # Canonicalize the pathname of ld
  12799. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  12800. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  12801. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  12802. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12803. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12804. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12805. done
  12806. test -z "$LD" && LD="$ac_prog"
  12807. ;;
  12808. @@ -4014,14 +4472,14 @@
  12809. ;;
  12810. esac
  12811. elif test "$with_gnu_ld" = yes; then
  12812. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  12813. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  12814. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12815. +$as_echo_n "checking for GNU ld... " >&6; }
  12816. else
  12817. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  12818. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  12819. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12820. +$as_echo_n "checking for non-GNU ld... " >&6; }
  12821. fi
  12822. -if test "${lt_cv_path_LD+set}" = set; then
  12823. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12824. +if test "${lt_cv_path_LD+set}" = set; then :
  12825. + $as_echo_n "(cached) " >&6
  12826. else
  12827. if test -z "$LD"; then
  12828. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12829. @@ -4051,19 +4509,17 @@
  12830. LD="$lt_cv_path_LD"
  12831. if test -n "$LD"; then
  12832. - { echo "$as_me:$LINENO: result: $LD" >&5
  12833. -echo "${ECHO_T}$LD" >&6; }
  12834. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12835. +$as_echo "$LD" >&6; }
  12836. else
  12837. - { echo "$as_me:$LINENO: result: no" >&5
  12838. -echo "${ECHO_T}no" >&6; }
  12839. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12840. +$as_echo "no" >&6; }
  12841. fi
  12842. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  12843. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  12844. - { (exit 1); exit 1; }; }
  12845. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  12846. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  12847. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  12848. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12849. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  12850. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12851. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12852. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  12853. + $as_echo_n "(cached) " >&6
  12854. else
  12855. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12856. case `$LD -v 2>&1 </dev/null` in
  12857. @@ -4075,40 +4531,22 @@
  12858. ;;
  12859. esac
  12860. fi
  12861. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  12862. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  12863. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12864. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12865. with_gnu_ld=$lt_cv_prog_gnu_ld
  12866. -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  12867. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  12868. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  12869. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12870. -else
  12871. - lt_cv_ld_reload_flag='-r'
  12872. -fi
  12873. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  12874. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  12875. -reload_flag=$lt_cv_ld_reload_flag
  12876. -case $reload_flag in
  12877. -"" | " "*) ;;
  12878. -*) reload_flag=" $reload_flag" ;;
  12879. -esac
  12880. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  12881. -case $host_os in
  12882. - darwin*)
  12883. - if test "$GCC" = yes; then
  12884. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  12885. - else
  12886. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  12887. - fi
  12888. - ;;
  12889. -esac
  12890. -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  12891. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  12892. -if test "${lt_cv_path_NM+set}" = set; then
  12893. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12894. +
  12895. +
  12896. +
  12897. +
  12898. +
  12899. +
  12900. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  12901. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  12902. +if test "${lt_cv_path_NM+set}" = set; then :
  12903. + $as_echo_n "(cached) " >&6
  12904. else
  12905. if test -n "$NM"; then
  12906. # Let the user override the test.
  12907. @@ -4151,2278 +4589,1196 @@
  12908. done
  12909. IFS="$lt_save_ifs"
  12910. done
  12911. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  12912. + : ${lt_cv_path_NM=no}
  12913. fi
  12914. fi
  12915. -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  12916. -echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  12917. -NM="$lt_cv_path_NM"
  12918. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  12919. +$as_echo "$lt_cv_path_NM" >&6; }
  12920. +if test "$lt_cv_path_NM" != "no"; then
  12921. + NM="$lt_cv_path_NM"
  12922. +else
  12923. + # Didn't find any BSD compatible name lister, look for dumpbin.
  12924. + if test -n "$ac_tool_prefix"; then
  12925. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  12926. + do
  12927. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12928. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12929. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12930. +$as_echo_n "checking for $ac_word... " >&6; }
  12931. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  12932. + $as_echo_n "(cached) " >&6
  12933. +else
  12934. + if test -n "$DUMPBIN"; then
  12935. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  12936. +else
  12937. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12938. +for as_dir in $PATH
  12939. +do
  12940. + IFS=$as_save_IFS
  12941. + test -z "$as_dir" && as_dir=.
  12942. + for ac_exec_ext in '' $ac_executable_extensions; do
  12943. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12944. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  12945. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12946. + break 2
  12947. + fi
  12948. +done
  12949. + done
  12950. +IFS=$as_save_IFS
  12951. -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  12952. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  12953. -LN_S=$as_ln_s
  12954. -if test "$LN_S" = "ln -s"; then
  12955. - { echo "$as_me:$LINENO: result: yes" >&5
  12956. -echo "${ECHO_T}yes" >&6; }
  12957. +fi
  12958. +fi
  12959. +DUMPBIN=$ac_cv_prog_DUMPBIN
  12960. +if test -n "$DUMPBIN"; then
  12961. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  12962. +$as_echo "$DUMPBIN" >&6; }
  12963. else
  12964. - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  12965. -echo "${ECHO_T}no, using $LN_S" >&6; }
  12966. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12967. +$as_echo "no" >&6; }
  12968. fi
  12969. -{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  12970. -echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  12971. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  12972. - echo $ECHO_N "(cached) $ECHO_C" >&6
  12973. -else
  12974. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  12975. -lt_cv_file_magic_test_file=
  12976. -lt_cv_deplibs_check_method='unknown'
  12977. -# Need to set the preceding variable on all platforms that support
  12978. -# interlibrary dependencies.
  12979. -# 'none' -- dependencies not supported.
  12980. -# `unknown' -- same as none, but documents that we really don't know.
  12981. -# 'pass_all' -- all dependencies passed with no checks.
  12982. -# 'test_compile' -- check by making test program.
  12983. -# 'file_magic [[regex]]' -- check by looking for files in library path
  12984. -# which responds to the $file_magic_cmd with a given extended regex.
  12985. -# If you have `file' or equivalent on your system and you're not sure
  12986. -# whether `pass_all' will *always* work, you probably want this one.
  12987. -case $host_os in
  12988. -aix4* | aix5*)
  12989. - lt_cv_deplibs_check_method=pass_all
  12990. - ;;
  12991. + test -n "$DUMPBIN" && break
  12992. + done
  12993. +fi
  12994. +if test -z "$DUMPBIN"; then
  12995. + ac_ct_DUMPBIN=$DUMPBIN
  12996. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  12997. +do
  12998. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  12999. +set dummy $ac_prog; ac_word=$2
  13000. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13001. +$as_echo_n "checking for $ac_word... " >&6; }
  13002. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  13003. + $as_echo_n "(cached) " >&6
  13004. +else
  13005. + if test -n "$ac_ct_DUMPBIN"; then
  13006. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  13007. +else
  13008. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13009. +for as_dir in $PATH
  13010. +do
  13011. + IFS=$as_save_IFS
  13012. + test -z "$as_dir" && as_dir=.
  13013. + for ac_exec_ext in '' $ac_executable_extensions; do
  13014. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13015. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  13016. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13017. + break 2
  13018. + fi
  13019. +done
  13020. + done
  13021. +IFS=$as_save_IFS
  13022. -beos*)
  13023. - lt_cv_deplibs_check_method=pass_all
  13024. - ;;
  13025. +fi
  13026. +fi
  13027. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  13028. +if test -n "$ac_ct_DUMPBIN"; then
  13029. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  13030. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  13031. +else
  13032. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13033. +$as_echo "no" >&6; }
  13034. +fi
  13035. -bsdi[45]*)
  13036. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  13037. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  13038. - lt_cv_file_magic_test_file=/shlib/libc.so
  13039. - ;;
  13040. -cygwin*)
  13041. - # func_win32_libid is a shell function defined in ltmain.sh
  13042. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  13043. - lt_cv_file_magic_cmd='func_win32_libid'
  13044. - ;;
  13045. + test -n "$ac_ct_DUMPBIN" && break
  13046. +done
  13047. -mingw* | pw32*)
  13048. - # Base MSYS/MinGW do not provide the 'file' command needed by
  13049. - # func_win32_libid shell function, so use a weaker test based on 'objdump',
  13050. - # unless we find 'file', for example because we are cross-compiling.
  13051. - if ( file / ) >/dev/null 2>&1; then
  13052. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  13053. - lt_cv_file_magic_cmd='func_win32_libid'
  13054. + if test "x$ac_ct_DUMPBIN" = x; then
  13055. + DUMPBIN=":"
  13056. else
  13057. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  13058. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  13059. + case $cross_compiling:$ac_tool_warned in
  13060. +yes:)
  13061. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13062. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13063. +ac_tool_warned=yes ;;
  13064. +esac
  13065. + DUMPBIN=$ac_ct_DUMPBIN
  13066. fi
  13067. - ;;
  13068. +fi
  13069. -darwin* | rhapsody*)
  13070. - lt_cv_deplibs_check_method=pass_all
  13071. - ;;
  13072. -freebsd* | dragonfly*)
  13073. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  13074. - case $host_cpu in
  13075. - i*86 )
  13076. - # Not sure whether the presence of OpenBSD here was a mistake.
  13077. - # Let's accept both of them until this is cleared up.
  13078. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  13079. - lt_cv_file_magic_cmd=/usr/bin/file
  13080. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  13081. - ;;
  13082. - esac
  13083. - else
  13084. - lt_cv_deplibs_check_method=pass_all
  13085. + if test "$DUMPBIN" != ":"; then
  13086. + NM="$DUMPBIN"
  13087. fi
  13088. - ;;
  13089. +fi
  13090. +test -z "$NM" && NM=nm
  13091. -gnu*)
  13092. - lt_cv_deplibs_check_method=pass_all
  13093. - ;;
  13094. -hpux10.20* | hpux11*)
  13095. - lt_cv_file_magic_cmd=/usr/bin/file
  13096. - case $host_cpu in
  13097. - ia64*)
  13098. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  13099. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  13100. - ;;
  13101. - hppa*64*)
  13102. - 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]'
  13103. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  13104. - ;;
  13105. - *)
  13106. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  13107. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  13108. - ;;
  13109. - esac
  13110. - ;;
  13111. -interix[3-9]*)
  13112. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  13113. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  13114. - ;;
  13115. -irix5* | irix6* | nonstopux*)
  13116. - case $LD in
  13117. - *-32|*"-32 ") libmagic=32-bit;;
  13118. - *-n32|*"-n32 ") libmagic=N32;;
  13119. - *-64|*"-64 ") libmagic=64-bit;;
  13120. - *) libmagic=never-match;;
  13121. - esac
  13122. - lt_cv_deplibs_check_method=pass_all
  13123. - ;;
  13124. -# This must be Linux ELF.
  13125. -linux* | k*bsd*-gnu)
  13126. - lt_cv_deplibs_check_method=pass_all
  13127. - ;;
  13128. -netbsd*)
  13129. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  13130. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  13131. - else
  13132. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  13133. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  13134. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  13135. +if test "${lt_cv_nm_interface+set}" = set; then :
  13136. + $as_echo_n "(cached) " >&6
  13137. +else
  13138. + lt_cv_nm_interface="BSD nm"
  13139. + echo "int some_variable = 0;" > conftest.$ac_ext
  13140. + (eval echo "\"\$as_me:4720: $ac_compile\"" >&5)
  13141. + (eval "$ac_compile" 2>conftest.err)
  13142. + cat conftest.err >&5
  13143. + (eval echo "\"\$as_me:4723: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  13144. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  13145. + cat conftest.err >&5
  13146. + (eval echo "\"\$as_me:4726: output\"" >&5)
  13147. + cat conftest.out >&5
  13148. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  13149. + lt_cv_nm_interface="MS dumpbin"
  13150. fi
  13151. - ;;
  13152. + rm -f conftest*
  13153. +fi
  13154. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  13155. +$as_echo "$lt_cv_nm_interface" >&6; }
  13156. -newos6*)
  13157. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  13158. - lt_cv_file_magic_cmd=/usr/bin/file
  13159. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  13160. - ;;
  13161. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  13162. +$as_echo_n "checking whether ln -s works... " >&6; }
  13163. +LN_S=$as_ln_s
  13164. +if test "$LN_S" = "ln -s"; then
  13165. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13166. +$as_echo "yes" >&6; }
  13167. +else
  13168. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  13169. +$as_echo "no, using $LN_S" >&6; }
  13170. +fi
  13171. -nto-qnx*)
  13172. - lt_cv_deplibs_check_method=unknown
  13173. - ;;
  13174. +# find the maximum length of command line arguments
  13175. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  13176. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  13177. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  13178. + $as_echo_n "(cached) " >&6
  13179. +else
  13180. + i=0
  13181. + teststring="ABCD"
  13182. -openbsd*)
  13183. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13184. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  13185. - else
  13186. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  13187. - fi
  13188. - ;;
  13189. + case $build_os in
  13190. + msdosdjgpp*)
  13191. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  13192. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  13193. + # during glob expansion). Even if it were fixed, the result of this
  13194. + # check would be larger than it should be.
  13195. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  13196. + ;;
  13197. -osf3* | osf4* | osf5*)
  13198. - lt_cv_deplibs_check_method=pass_all
  13199. - ;;
  13200. + gnu*)
  13201. + # Under GNU Hurd, this test is not required because there is
  13202. + # no limit to the length of command line arguments.
  13203. + # Libtool will interpret -1 as no limit whatsoever
  13204. + lt_cv_sys_max_cmd_len=-1;
  13205. + ;;
  13206. -rdos*)
  13207. - lt_cv_deplibs_check_method=pass_all
  13208. - ;;
  13209. + cygwin* | mingw* | cegcc*)
  13210. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  13211. + # about 5 minutes as the teststring grows exponentially.
  13212. + # Worse, since 9x/ME are not pre-emptively multitasking,
  13213. + # you end up with a "frozen" computer, even though with patience
  13214. + # the test eventually succeeds (with a max line length of 256k).
  13215. + # Instead, let's just punt: use the minimum linelength reported by
  13216. + # all of the supported platforms: 8192 (on NT/2K/XP).
  13217. + lt_cv_sys_max_cmd_len=8192;
  13218. + ;;
  13219. -solaris*)
  13220. - lt_cv_deplibs_check_method=pass_all
  13221. - ;;
  13222. + amigaos*)
  13223. + # On AmigaOS with pdksh, this test takes hours, literally.
  13224. + # So we just punt and use a minimum line length of 8192.
  13225. + lt_cv_sys_max_cmd_len=8192;
  13226. + ;;
  13227. -sysv4 | sysv4.3*)
  13228. - case $host_vendor in
  13229. - motorola)
  13230. - 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]'
  13231. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  13232. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  13233. + # This has been around since 386BSD, at least. Likely further.
  13234. + if test -x /sbin/sysctl; then
  13235. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  13236. + elif test -x /usr/sbin/sysctl; then
  13237. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  13238. + else
  13239. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  13240. + fi
  13241. + # And add a safety zone
  13242. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  13243. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  13244. ;;
  13245. - ncr)
  13246. - lt_cv_deplibs_check_method=pass_all
  13247. +
  13248. + interix*)
  13249. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  13250. + lt_cv_sys_max_cmd_len=196608
  13251. ;;
  13252. - sequent)
  13253. - lt_cv_file_magic_cmd='/bin/file'
  13254. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  13255. +
  13256. + osf*)
  13257. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  13258. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  13259. + # nice to cause kernel panics so lets avoid the loop below.
  13260. + # First set a reasonable default.
  13261. + lt_cv_sys_max_cmd_len=16384
  13262. + #
  13263. + if test -x /sbin/sysconfig; then
  13264. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  13265. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  13266. + esac
  13267. + fi
  13268. ;;
  13269. - sni)
  13270. - lt_cv_file_magic_cmd='/bin/file'
  13271. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  13272. - lt_cv_file_magic_test_file=/lib/libc.so
  13273. + sco3.2v5*)
  13274. + lt_cv_sys_max_cmd_len=102400
  13275. ;;
  13276. - siemens)
  13277. - lt_cv_deplibs_check_method=pass_all
  13278. + sysv5* | sco5v6* | sysv4.2uw2*)
  13279. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  13280. + if test -n "$kargmax"; then
  13281. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  13282. + else
  13283. + lt_cv_sys_max_cmd_len=32768
  13284. + fi
  13285. ;;
  13286. - pc)
  13287. - lt_cv_deplibs_check_method=pass_all
  13288. + *)
  13289. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  13290. + if test -n "$lt_cv_sys_max_cmd_len"; then
  13291. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  13292. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  13293. + else
  13294. + # Make teststring a little bigger before we do anything with it.
  13295. + # a 1K string should be a reasonable start.
  13296. + for i in 1 2 3 4 5 6 7 8 ; do
  13297. + teststring=$teststring$teststring
  13298. + done
  13299. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  13300. + # If test is not a shell built-in, we'll probably end up computing a
  13301. + # maximum length that is only half of the actual maximum length, but
  13302. + # we can't tell.
  13303. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  13304. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  13305. + test $i != 17 # 1/2 MB should be enough
  13306. + do
  13307. + i=`expr $i + 1`
  13308. + teststring=$teststring$teststring
  13309. + done
  13310. + # Only check the string length outside the loop.
  13311. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  13312. + teststring=
  13313. + # Add a significant safety factor because C++ compilers can tack on
  13314. + # massive amounts of additional arguments before passing them to the
  13315. + # linker. It appears as though 1/2 is a usable value.
  13316. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  13317. + fi
  13318. ;;
  13319. esac
  13320. - ;;
  13321. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13322. - lt_cv_deplibs_check_method=pass_all
  13323. - ;;
  13324. -esac
  13325. +fi
  13326. +if test -n $lt_cv_sys_max_cmd_len ; then
  13327. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  13328. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  13329. +else
  13330. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  13331. +$as_echo "none" >&6; }
  13332. fi
  13333. -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  13334. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  13335. -file_magic_cmd=$lt_cv_file_magic_cmd
  13336. -deplibs_check_method=$lt_cv_deplibs_check_method
  13337. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  13338. +max_cmd_len=$lt_cv_sys_max_cmd_len
  13339. -# If no C compiler was specified, use CC.
  13340. -LTCC=${LTCC-"$CC"}
  13341. -# If no C compiler flags were specified, use CFLAGS.
  13342. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13343. -# Allow CC to be a program name with arguments.
  13344. -compiler=$CC
  13345. +: ${CP="cp -f"}
  13346. +: ${MV="mv -f"}
  13347. +: ${RM="rm -f"}
  13348. +
  13349. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  13350. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  13351. +# Try some XSI features
  13352. +xsi_shell=no
  13353. +( _lt_dummy="a/b/c"
  13354. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  13355. + = c,a/b,, \
  13356. + && eval 'test $(( 1 + 1 )) -eq 2 \
  13357. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  13358. + && xsi_shell=yes
  13359. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  13360. +$as_echo "$xsi_shell" >&6; }
  13361. +
  13362. +
  13363. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  13364. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  13365. +lt_shell_append=no
  13366. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  13367. + >/dev/null 2>&1 \
  13368. + && lt_shell_append=yes
  13369. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  13370. +$as_echo "$lt_shell_append" >&6; }
  13371. -# Check whether --enable-libtool-lock was given.
  13372. -if test "${enable_libtool_lock+set}" = set; then
  13373. - enableval=$enable_libtool_lock;
  13374. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  13375. + lt_unset=unset
  13376. +else
  13377. + lt_unset=false
  13378. fi
  13379. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  13380. -# Some flags need to be propagated to the compiler or linker for good
  13381. -# libtool support.
  13382. -case $host in
  13383. -ia64-*-hpux*)
  13384. - # Find out which ABI we are using.
  13385. - echo 'int i;' > conftest.$ac_ext
  13386. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13387. - (eval $ac_compile) 2>&5
  13388. - ac_status=$?
  13389. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13390. - (exit $ac_status); }; then
  13391. - case `/usr/bin/file conftest.$ac_objext` in
  13392. - *ELF-32*)
  13393. - HPUX_IA64_MODE="32"
  13394. - ;;
  13395. - *ELF-64*)
  13396. - HPUX_IA64_MODE="64"
  13397. - ;;
  13398. - esac
  13399. - fi
  13400. - rm -rf conftest*
  13401. +
  13402. +
  13403. +
  13404. +# test EBCDIC or ASCII
  13405. +case `echo X|tr X '\101'` in
  13406. + A) # ASCII based system
  13407. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  13408. + lt_SP2NL='tr \040 \012'
  13409. + lt_NL2SP='tr \015\012 \040\040'
  13410. ;;
  13411. -*-*-irix6*)
  13412. - # Find out which ABI we are using.
  13413. - echo '#line 4408 "configure"' > conftest.$ac_ext
  13414. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13415. - (eval $ac_compile) 2>&5
  13416. - ac_status=$?
  13417. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13418. - (exit $ac_status); }; then
  13419. - if test "$lt_cv_prog_gnu_ld" = yes; then
  13420. - case `/usr/bin/file conftest.$ac_objext` in
  13421. - *32-bit*)
  13422. - LD="${LD-ld} -melf32bsmip"
  13423. - ;;
  13424. - *N32*)
  13425. - LD="${LD-ld} -melf32bmipn32"
  13426. - ;;
  13427. - *64-bit*)
  13428. - LD="${LD-ld} -melf64bmip"
  13429. - ;;
  13430. - esac
  13431. - else
  13432. - case `/usr/bin/file conftest.$ac_objext` in
  13433. - *32-bit*)
  13434. - LD="${LD-ld} -32"
  13435. - ;;
  13436. - *N32*)
  13437. - LD="${LD-ld} -n32"
  13438. - ;;
  13439. - *64-bit*)
  13440. - LD="${LD-ld} -64"
  13441. - ;;
  13442. - esac
  13443. - fi
  13444. - fi
  13445. - rm -rf conftest*
  13446. + *) # EBCDIC based system
  13447. + lt_SP2NL='tr \100 \n'
  13448. + lt_NL2SP='tr \r\n \100\100'
  13449. ;;
  13450. +esac
  13451. +
  13452. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  13453. -s390*-*linux*|sparc*-*linux*)
  13454. - # Find out which ABI we are using.
  13455. - echo 'int i;' > conftest.$ac_ext
  13456. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13457. - (eval $ac_compile) 2>&5
  13458. - ac_status=$?
  13459. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13460. - (exit $ac_status); }; then
  13461. - case `/usr/bin/file conftest.o` in
  13462. - *32-bit*)
  13463. - case $host in
  13464. - x86_64-*kfreebsd*-gnu)
  13465. - LD="${LD-ld} -m elf_i386_fbsd"
  13466. - ;;
  13467. - x86_64-*linux*)
  13468. - LD="${LD-ld} -m elf_i386"
  13469. - ;;
  13470. - ppc64-*linux*|powerpc64-*linux*)
  13471. - LD="${LD-ld} -m elf32ppclinux"
  13472. - ;;
  13473. - s390x-*linux*)
  13474. - LD="${LD-ld} -m elf_s390"
  13475. - ;;
  13476. - sparc64-*linux*)
  13477. - LD="${LD-ld} -m elf32_sparc"
  13478. - ;;
  13479. - esac
  13480. - ;;
  13481. - *64-bit*)
  13482. - libsuff=64
  13483. - case $host in
  13484. - x86_64-*kfreebsd*-gnu)
  13485. - LD="${LD-ld} -m elf_x86_64_fbsd"
  13486. - ;;
  13487. - x86_64-*linux*)
  13488. - LD="${LD-ld} -m elf_x86_64"
  13489. - ;;
  13490. - ppc*-*linux*|powerpc*-*linux*)
  13491. - LD="${LD-ld} -m elf64ppc"
  13492. - ;;
  13493. - s390*-*linux*)
  13494. - LD="${LD-ld} -m elf64_s390"
  13495. - ;;
  13496. - sparc*-*linux*)
  13497. - LD="${LD-ld} -m elf64_sparc"
  13498. - ;;
  13499. - esac
  13500. - ;;
  13501. - esac
  13502. - fi
  13503. - rm -rf conftest*
  13504. - ;;
  13505. -*-*-sco3.2v5*)
  13506. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  13507. - SAVE_CFLAGS="$CFLAGS"
  13508. - CFLAGS="$CFLAGS -belf"
  13509. - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  13510. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  13511. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  13512. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13513. -else
  13514. - ac_ext=c
  13515. -ac_cpp='$CPP $CPPFLAGS'
  13516. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13517. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13518. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13519. - cat >conftest.$ac_ext <<_ACEOF
  13520. -/* confdefs.h. */
  13521. -_ACEOF
  13522. -cat confdefs.h >>conftest.$ac_ext
  13523. -cat >>conftest.$ac_ext <<_ACEOF
  13524. -/* end confdefs.h. */
  13525. -int
  13526. -main ()
  13527. -{
  13528. - ;
  13529. - return 0;
  13530. -}
  13531. -_ACEOF
  13532. -rm -f conftest.$ac_objext conftest$ac_exeext
  13533. -if { (ac_try="$ac_link"
  13534. -case "(($ac_try" in
  13535. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13536. - *) ac_try_echo=$ac_try;;
  13537. -esac
  13538. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13539. - (eval "$ac_link") 2>conftest.er1
  13540. - ac_status=$?
  13541. - grep -v '^ *+' conftest.er1 >conftest.err
  13542. - rm -f conftest.er1
  13543. - cat conftest.err >&5
  13544. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13545. - (exit $ac_status); } && {
  13546. - test -z "$ac_c_werror_flag" ||
  13547. - test ! -s conftest.err
  13548. - } && test -s conftest$ac_exeext &&
  13549. - $as_test_x conftest$ac_exeext; then
  13550. - lt_cv_cc_needs_belf=yes
  13551. -else
  13552. - echo "$as_me: failed program was:" >&5
  13553. -sed 's/^/| /' conftest.$ac_ext >&5
  13554. - lt_cv_cc_needs_belf=no
  13555. -fi
  13556. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13557. - conftest$ac_exeext conftest.$ac_ext
  13558. - ac_ext=c
  13559. -ac_cpp='$CPP $CPPFLAGS'
  13560. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13561. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13562. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13563. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  13564. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  13565. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  13566. + $as_echo_n "(cached) " >&6
  13567. +else
  13568. + lt_cv_ld_reload_flag='-r'
  13569. fi
  13570. -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  13571. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  13572. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  13573. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  13574. - CFLAGS="$SAVE_CFLAGS"
  13575. - fi
  13576. - ;;
  13577. -sparc*-*solaris*)
  13578. - # Find out which ABI we are using.
  13579. - echo 'int i;' > conftest.$ac_ext
  13580. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13581. - (eval $ac_compile) 2>&5
  13582. - ac_status=$?
  13583. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13584. - (exit $ac_status); }; then
  13585. - case `/usr/bin/file conftest.o` in
  13586. - *64-bit*)
  13587. - case $lt_cv_prog_gnu_ld in
  13588. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  13589. - *) LD="${LD-ld} -64" ;;
  13590. - esac
  13591. - ;;
  13592. - esac
  13593. - fi
  13594. - rm -rf conftest*
  13595. - ;;
  13596. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  13597. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  13598. +reload_flag=$lt_cv_ld_reload_flag
  13599. +case $reload_flag in
  13600. +"" | " "*) ;;
  13601. +*) reload_flag=" $reload_flag" ;;
  13602. +esac
  13603. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  13604. +case $host_os in
  13605. + darwin*)
  13606. + if test "$GCC" = yes; then
  13607. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  13608. + else
  13609. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  13610. + fi
  13611. + ;;
  13612. +esac
  13613. -esac
  13614. -need_locks="$enable_libtool_lock"
  13615. -ac_ext=c
  13616. -ac_cpp='$CPP $CPPFLAGS'
  13617. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13618. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13619. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13620. -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  13621. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  13622. -# On Suns, sometimes $CPP names a directory.
  13623. -if test -n "$CPP" && test -d "$CPP"; then
  13624. - CPP=
  13625. -fi
  13626. -if test -z "$CPP"; then
  13627. - if test "${ac_cv_prog_CPP+set}" = set; then
  13628. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13629. -else
  13630. - # Double quotes because CPP needs to be expanded
  13631. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  13632. - do
  13633. - ac_preproc_ok=false
  13634. -for ac_c_preproc_warn_flag in '' yes
  13635. -do
  13636. - # Use a header file that comes with gcc, so configuring glibc
  13637. - # with a fresh cross-compiler works.
  13638. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13639. - # <limits.h> exists even on freestanding compilers.
  13640. - # On the NeXT, cc -E runs the code through the compiler's parser,
  13641. - # not just through cpp. "Syntax error" is here to catch this case.
  13642. - cat >conftest.$ac_ext <<_ACEOF
  13643. -/* confdefs.h. */
  13644. -_ACEOF
  13645. -cat confdefs.h >>conftest.$ac_ext
  13646. -cat >>conftest.$ac_ext <<_ACEOF
  13647. -/* end confdefs.h. */
  13648. -#ifdef __STDC__
  13649. -# include <limits.h>
  13650. -#else
  13651. -# include <assert.h>
  13652. -#endif
  13653. - Syntax error
  13654. -_ACEOF
  13655. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  13656. -case "(($ac_try" in
  13657. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13658. - *) ac_try_echo=$ac_try;;
  13659. -esac
  13660. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13661. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13662. - ac_status=$?
  13663. - grep -v '^ *+' conftest.er1 >conftest.err
  13664. - rm -f conftest.er1
  13665. - cat conftest.err >&5
  13666. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13667. - (exit $ac_status); } >/dev/null && {
  13668. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13669. - test ! -s conftest.err
  13670. - }; then
  13671. - :
  13672. -else
  13673. - echo "$as_me: failed program was:" >&5
  13674. -sed 's/^/| /' conftest.$ac_ext >&5
  13675. - # Broken: fails on valid input.
  13676. -continue
  13677. -fi
  13678. -rm -f conftest.err conftest.$ac_ext
  13679. - # OK, works on sane cases. Now check whether nonexistent headers
  13680. - # can be detected and how.
  13681. - cat >conftest.$ac_ext <<_ACEOF
  13682. -/* confdefs.h. */
  13683. -_ACEOF
  13684. -cat confdefs.h >>conftest.$ac_ext
  13685. -cat >>conftest.$ac_ext <<_ACEOF
  13686. -/* end confdefs.h. */
  13687. -#include <ac_nonexistent.h>
  13688. -_ACEOF
  13689. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  13690. -case "(($ac_try" in
  13691. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13692. - *) ac_try_echo=$ac_try;;
  13693. -esac
  13694. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13695. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13696. - ac_status=$?
  13697. - grep -v '^ *+' conftest.er1 >conftest.err
  13698. - rm -f conftest.er1
  13699. - cat conftest.err >&5
  13700. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13701. - (exit $ac_status); } >/dev/null && {
  13702. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13703. - test ! -s conftest.err
  13704. - }; then
  13705. - # Broken: success on invalid input.
  13706. -continue
  13707. +
  13708. +if test -n "$ac_tool_prefix"; then
  13709. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  13710. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  13711. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13712. +$as_echo_n "checking for $ac_word... " >&6; }
  13713. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  13714. + $as_echo_n "(cached) " >&6
  13715. else
  13716. - echo "$as_me: failed program was:" >&5
  13717. -sed 's/^/| /' conftest.$ac_ext >&5
  13718. + if test -n "$OBJDUMP"; then
  13719. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  13720. +else
  13721. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13722. +for as_dir in $PATH
  13723. +do
  13724. + IFS=$as_save_IFS
  13725. + test -z "$as_dir" && as_dir=.
  13726. + for ac_exec_ext in '' $ac_executable_extensions; do
  13727. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13728. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  13729. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13730. + break 2
  13731. + fi
  13732. +done
  13733. + done
  13734. +IFS=$as_save_IFS
  13735. - # Passes both tests.
  13736. -ac_preproc_ok=:
  13737. -break
  13738. +fi
  13739. +fi
  13740. +OBJDUMP=$ac_cv_prog_OBJDUMP
  13741. +if test -n "$OBJDUMP"; then
  13742. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  13743. +$as_echo "$OBJDUMP" >&6; }
  13744. +else
  13745. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13746. +$as_echo "no" >&6; }
  13747. fi
  13748. -rm -f conftest.err conftest.$ac_ext
  13749. -done
  13750. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13751. -rm -f conftest.err conftest.$ac_ext
  13752. -if $ac_preproc_ok; then
  13753. - break
  13754. fi
  13755. -
  13756. - done
  13757. - ac_cv_prog_CPP=$CPP
  13758. +if test -z "$ac_cv_prog_OBJDUMP"; then
  13759. + ac_ct_OBJDUMP=$OBJDUMP
  13760. + # Extract the first word of "objdump", so it can be a program name with args.
  13761. +set dummy objdump; ac_word=$2
  13762. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13763. +$as_echo_n "checking for $ac_word... " >&6; }
  13764. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  13765. + $as_echo_n "(cached) " >&6
  13766. +else
  13767. + if test -n "$ac_ct_OBJDUMP"; then
  13768. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  13769. +else
  13770. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13771. +for as_dir in $PATH
  13772. +do
  13773. + IFS=$as_save_IFS
  13774. + test -z "$as_dir" && as_dir=.
  13775. + for ac_exec_ext in '' $ac_executable_extensions; do
  13776. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13777. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  13778. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13779. + break 2
  13780. + fi
  13781. +done
  13782. + done
  13783. +IFS=$as_save_IFS
  13784. fi
  13785. - CPP=$ac_cv_prog_CPP
  13786. +fi
  13787. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  13788. +if test -n "$ac_ct_OBJDUMP"; then
  13789. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  13790. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  13791. else
  13792. - ac_cv_prog_CPP=$CPP
  13793. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13794. +$as_echo "no" >&6; }
  13795. fi
  13796. -{ echo "$as_me:$LINENO: result: $CPP" >&5
  13797. -echo "${ECHO_T}$CPP" >&6; }
  13798. -ac_preproc_ok=false
  13799. -for ac_c_preproc_warn_flag in '' yes
  13800. -do
  13801. - # Use a header file that comes with gcc, so configuring glibc
  13802. - # with a fresh cross-compiler works.
  13803. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13804. - # <limits.h> exists even on freestanding compilers.
  13805. - # On the NeXT, cc -E runs the code through the compiler's parser,
  13806. - # not just through cpp. "Syntax error" is here to catch this case.
  13807. - cat >conftest.$ac_ext <<_ACEOF
  13808. -/* confdefs.h. */
  13809. -_ACEOF
  13810. -cat confdefs.h >>conftest.$ac_ext
  13811. -cat >>conftest.$ac_ext <<_ACEOF
  13812. -/* end confdefs.h. */
  13813. -#ifdef __STDC__
  13814. -# include <limits.h>
  13815. -#else
  13816. -# include <assert.h>
  13817. -#endif
  13818. - Syntax error
  13819. -_ACEOF
  13820. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  13821. -case "(($ac_try" in
  13822. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13823. - *) ac_try_echo=$ac_try;;
  13824. +
  13825. + if test "x$ac_ct_OBJDUMP" = x; then
  13826. + OBJDUMP="false"
  13827. + else
  13828. + case $cross_compiling:$ac_tool_warned in
  13829. +yes:)
  13830. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13831. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13832. +ac_tool_warned=yes ;;
  13833. esac
  13834. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13835. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13836. - ac_status=$?
  13837. - grep -v '^ *+' conftest.er1 >conftest.err
  13838. - rm -f conftest.er1
  13839. - cat conftest.err >&5
  13840. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13841. - (exit $ac_status); } >/dev/null && {
  13842. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13843. - test ! -s conftest.err
  13844. - }; then
  13845. - :
  13846. + OBJDUMP=$ac_ct_OBJDUMP
  13847. + fi
  13848. else
  13849. - echo "$as_me: failed program was:" >&5
  13850. -sed 's/^/| /' conftest.$ac_ext >&5
  13851. -
  13852. - # Broken: fails on valid input.
  13853. -continue
  13854. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  13855. fi
  13856. -rm -f conftest.err conftest.$ac_ext
  13857. +test -z "$OBJDUMP" && OBJDUMP=objdump
  13858. - # OK, works on sane cases. Now check whether nonexistent headers
  13859. - # can be detected and how.
  13860. - cat >conftest.$ac_ext <<_ACEOF
  13861. -/* confdefs.h. */
  13862. -_ACEOF
  13863. -cat confdefs.h >>conftest.$ac_ext
  13864. -cat >>conftest.$ac_ext <<_ACEOF
  13865. -/* end confdefs.h. */
  13866. -#include <ac_nonexistent.h>
  13867. -_ACEOF
  13868. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  13869. -case "(($ac_try" in
  13870. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13871. - *) ac_try_echo=$ac_try;;
  13872. -esac
  13873. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13874. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13875. - ac_status=$?
  13876. - grep -v '^ *+' conftest.er1 >conftest.err
  13877. - rm -f conftest.er1
  13878. - cat conftest.err >&5
  13879. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13880. - (exit $ac_status); } >/dev/null && {
  13881. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13882. - test ! -s conftest.err
  13883. - }; then
  13884. - # Broken: success on invalid input.
  13885. -continue
  13886. -else
  13887. - echo "$as_me: failed program was:" >&5
  13888. -sed 's/^/| /' conftest.$ac_ext >&5
  13889. - # Passes both tests.
  13890. -ac_preproc_ok=:
  13891. -break
  13892. -fi
  13893. -rm -f conftest.err conftest.$ac_ext
  13894. -done
  13895. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13896. -rm -f conftest.err conftest.$ac_ext
  13897. -if $ac_preproc_ok; then
  13898. - :
  13899. -else
  13900. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  13901. -See \`config.log' for more details." >&5
  13902. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  13903. -See \`config.log' for more details." >&2;}
  13904. - { (exit 1); exit 1; }; }
  13905. -fi
  13906. -
  13907. -ac_ext=c
  13908. -ac_cpp='$CPP $CPPFLAGS'
  13909. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13910. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13911. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13912. -
  13913. -
  13914. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  13915. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  13916. -if test "${ac_cv_header_stdc+set}" = set; then
  13917. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13918. -else
  13919. - cat >conftest.$ac_ext <<_ACEOF
  13920. -/* confdefs.h. */
  13921. -_ACEOF
  13922. -cat confdefs.h >>conftest.$ac_ext
  13923. -cat >>conftest.$ac_ext <<_ACEOF
  13924. -/* end confdefs.h. */
  13925. -#include <stdlib.h>
  13926. -#include <stdarg.h>
  13927. -#include <string.h>
  13928. -#include <float.h>
  13929. -
  13930. -int
  13931. -main ()
  13932. -{
  13933. - ;
  13934. - return 0;
  13935. -}
  13936. -_ACEOF
  13937. -rm -f conftest.$ac_objext
  13938. -if { (ac_try="$ac_compile"
  13939. -case "(($ac_try" in
  13940. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13941. - *) ac_try_echo=$ac_try;;
  13942. -esac
  13943. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13944. - (eval "$ac_compile") 2>conftest.er1
  13945. - ac_status=$?
  13946. - grep -v '^ *+' conftest.er1 >conftest.err
  13947. - rm -f conftest.er1
  13948. - cat conftest.err >&5
  13949. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13950. - (exit $ac_status); } && {
  13951. - test -z "$ac_c_werror_flag" ||
  13952. - test ! -s conftest.err
  13953. - } && test -s conftest.$ac_objext; then
  13954. - ac_cv_header_stdc=yes
  13955. -else
  13956. - echo "$as_me: failed program was:" >&5
  13957. -sed 's/^/| /' conftest.$ac_ext >&5
  13958. - ac_cv_header_stdc=no
  13959. -fi
  13960. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13961. -if test $ac_cv_header_stdc = yes; then
  13962. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13963. - cat >conftest.$ac_ext <<_ACEOF
  13964. -/* confdefs.h. */
  13965. -_ACEOF
  13966. -cat confdefs.h >>conftest.$ac_ext
  13967. -cat >>conftest.$ac_ext <<_ACEOF
  13968. -/* end confdefs.h. */
  13969. -#include <string.h>
  13970. -_ACEOF
  13971. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13972. - $EGREP "memchr" >/dev/null 2>&1; then
  13973. - :
  13974. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  13975. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  13976. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  13977. + $as_echo_n "(cached) " >&6
  13978. else
  13979. - ac_cv_header_stdc=no
  13980. -fi
  13981. -rm -f conftest*
  13982. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  13983. +lt_cv_file_magic_test_file=
  13984. +lt_cv_deplibs_check_method='unknown'
  13985. +# Need to set the preceding variable on all platforms that support
  13986. +# interlibrary dependencies.
  13987. +# 'none' -- dependencies not supported.
  13988. +# `unknown' -- same as none, but documents that we really don't know.
  13989. +# 'pass_all' -- all dependencies passed with no checks.
  13990. +# 'test_compile' -- check by making test program.
  13991. +# 'file_magic [[regex]]' -- check by looking for files in library path
  13992. +# which responds to the $file_magic_cmd with a given extended regex.
  13993. +# If you have `file' or equivalent on your system and you're not sure
  13994. +# whether `pass_all' will *always* work, you probably want this one.
  13995. -fi
  13996. +case $host_os in
  13997. +aix[4-9]*)
  13998. + lt_cv_deplibs_check_method=pass_all
  13999. + ;;
  14000. -if test $ac_cv_header_stdc = yes; then
  14001. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14002. - cat >conftest.$ac_ext <<_ACEOF
  14003. -/* confdefs.h. */
  14004. -_ACEOF
  14005. -cat confdefs.h >>conftest.$ac_ext
  14006. -cat >>conftest.$ac_ext <<_ACEOF
  14007. -/* end confdefs.h. */
  14008. -#include <stdlib.h>
  14009. +beos*)
  14010. + lt_cv_deplibs_check_method=pass_all
  14011. + ;;
  14012. -_ACEOF
  14013. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14014. - $EGREP "free" >/dev/null 2>&1; then
  14015. - :
  14016. -else
  14017. - ac_cv_header_stdc=no
  14018. -fi
  14019. -rm -f conftest*
  14020. +bsdi[45]*)
  14021. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  14022. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  14023. + lt_cv_file_magic_test_file=/shlib/libc.so
  14024. + ;;
  14025. -fi
  14026. +cygwin*)
  14027. + # func_win32_libid is a shell function defined in ltmain.sh
  14028. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  14029. + lt_cv_file_magic_cmd='func_win32_libid'
  14030. + ;;
  14031. -if test $ac_cv_header_stdc = yes; then
  14032. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14033. - if test "$cross_compiling" = yes; then
  14034. - :
  14035. -else
  14036. - cat >conftest.$ac_ext <<_ACEOF
  14037. -/* confdefs.h. */
  14038. -_ACEOF
  14039. -cat confdefs.h >>conftest.$ac_ext
  14040. -cat >>conftest.$ac_ext <<_ACEOF
  14041. -/* end confdefs.h. */
  14042. -#include <ctype.h>
  14043. -#include <stdlib.h>
  14044. -#if ((' ' & 0x0FF) == 0x020)
  14045. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14046. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14047. -#else
  14048. -# define ISLOWER(c) \
  14049. - (('a' <= (c) && (c) <= 'i') \
  14050. - || ('j' <= (c) && (c) <= 'r') \
  14051. - || ('s' <= (c) && (c) <= 'z'))
  14052. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14053. -#endif
  14054. +mingw* | pw32*)
  14055. + # Base MSYS/MinGW do not provide the 'file' command needed by
  14056. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  14057. + # unless we find 'file', for example because we are cross-compiling.
  14058. + if ( file / ) >/dev/null 2>&1; then
  14059. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  14060. + lt_cv_file_magic_cmd='func_win32_libid'
  14061. + else
  14062. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  14063. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  14064. + fi
  14065. + ;;
  14066. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14067. -int
  14068. -main ()
  14069. -{
  14070. - int i;
  14071. - for (i = 0; i < 256; i++)
  14072. - if (XOR (islower (i), ISLOWER (i))
  14073. - || toupper (i) != TOUPPER (i))
  14074. - return 2;
  14075. - return 0;
  14076. -}
  14077. -_ACEOF
  14078. -rm -f conftest$ac_exeext
  14079. -if { (ac_try="$ac_link"
  14080. -case "(($ac_try" in
  14081. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14082. - *) ac_try_echo=$ac_try;;
  14083. -esac
  14084. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14085. - (eval "$ac_link") 2>&5
  14086. - ac_status=$?
  14087. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14088. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14089. - { (case "(($ac_try" in
  14090. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14091. - *) ac_try_echo=$ac_try;;
  14092. -esac
  14093. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14094. - (eval "$ac_try") 2>&5
  14095. - ac_status=$?
  14096. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14097. - (exit $ac_status); }; }; then
  14098. - :
  14099. -else
  14100. - echo "$as_me: program exited with status $ac_status" >&5
  14101. -echo "$as_me: failed program was:" >&5
  14102. -sed 's/^/| /' conftest.$ac_ext >&5
  14103. +cegcc)
  14104. + # use the weaker test based on 'objdump'. See mingw*.
  14105. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  14106. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  14107. + ;;
  14108. -( exit $ac_status )
  14109. -ac_cv_header_stdc=no
  14110. -fi
  14111. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14112. -fi
  14113. +darwin* | rhapsody*)
  14114. + lt_cv_deplibs_check_method=pass_all
  14115. + ;;
  14116. +freebsd* | dragonfly*)
  14117. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  14118. + case $host_cpu in
  14119. + i*86 )
  14120. + # Not sure whether the presence of OpenBSD here was a mistake.
  14121. + # Let's accept both of them until this is cleared up.
  14122. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  14123. + lt_cv_file_magic_cmd=/usr/bin/file
  14124. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  14125. + ;;
  14126. + esac
  14127. + else
  14128. + lt_cv_deplibs_check_method=pass_all
  14129. + fi
  14130. + ;;
  14131. -fi
  14132. -fi
  14133. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  14134. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  14135. -if test $ac_cv_header_stdc = yes; then
  14136. +gnu*)
  14137. + lt_cv_deplibs_check_method=pass_all
  14138. + ;;
  14139. -cat >>confdefs.h <<\_ACEOF
  14140. -#define STDC_HEADERS 1
  14141. -_ACEOF
  14142. +hpux10.20* | hpux11*)
  14143. + lt_cv_file_magic_cmd=/usr/bin/file
  14144. + case $host_cpu in
  14145. + ia64*)
  14146. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  14147. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  14148. + ;;
  14149. + hppa*64*)
  14150. + 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]'
  14151. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  14152. + ;;
  14153. + *)
  14154. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  14155. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  14156. + ;;
  14157. + esac
  14158. + ;;
  14159. -fi
  14160. +interix[3-9]*)
  14161. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  14162. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  14163. + ;;
  14164. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  14165. +irix5* | irix6* | nonstopux*)
  14166. + case $LD in
  14167. + *-32|*"-32 ") libmagic=32-bit;;
  14168. + *-n32|*"-n32 ") libmagic=N32;;
  14169. + *-64|*"-64 ") libmagic=64-bit;;
  14170. + *) libmagic=never-match;;
  14171. + esac
  14172. + lt_cv_deplibs_check_method=pass_all
  14173. + ;;
  14174. +# This must be Linux ELF.
  14175. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  14176. + lt_cv_deplibs_check_method=pass_all
  14177. + ;;
  14178. +netbsd* | netbsdelf*-gnu)
  14179. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  14180. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  14181. + else
  14182. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  14183. + fi
  14184. + ;;
  14185. +newos6*)
  14186. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  14187. + lt_cv_file_magic_cmd=/usr/bin/file
  14188. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  14189. + ;;
  14190. +*nto* | *qnx*)
  14191. + lt_cv_deplibs_check_method=pass_all
  14192. + ;;
  14193. +openbsd*)
  14194. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14195. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  14196. + else
  14197. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  14198. + fi
  14199. + ;;
  14200. +osf3* | osf4* | osf5*)
  14201. + lt_cv_deplibs_check_method=pass_all
  14202. + ;;
  14203. +rdos*)
  14204. + lt_cv_deplibs_check_method=pass_all
  14205. + ;;
  14206. +solaris*)
  14207. + lt_cv_deplibs_check_method=pass_all
  14208. + ;;
  14209. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  14210. - inttypes.h stdint.h unistd.h
  14211. -do
  14212. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14213. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  14214. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14215. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14216. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14217. -else
  14218. - cat >conftest.$ac_ext <<_ACEOF
  14219. -/* confdefs.h. */
  14220. -_ACEOF
  14221. -cat confdefs.h >>conftest.$ac_ext
  14222. -cat >>conftest.$ac_ext <<_ACEOF
  14223. -/* end confdefs.h. */
  14224. -$ac_includes_default
  14225. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14226. + lt_cv_deplibs_check_method=pass_all
  14227. + ;;
  14228. -#include <$ac_header>
  14229. -_ACEOF
  14230. -rm -f conftest.$ac_objext
  14231. -if { (ac_try="$ac_compile"
  14232. -case "(($ac_try" in
  14233. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14234. - *) ac_try_echo=$ac_try;;
  14235. -esac
  14236. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14237. - (eval "$ac_compile") 2>conftest.er1
  14238. - ac_status=$?
  14239. - grep -v '^ *+' conftest.er1 >conftest.err
  14240. - rm -f conftest.er1
  14241. - cat conftest.err >&5
  14242. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14243. - (exit $ac_status); } && {
  14244. - test -z "$ac_c_werror_flag" ||
  14245. - test ! -s conftest.err
  14246. - } && test -s conftest.$ac_objext; then
  14247. - eval "$as_ac_Header=yes"
  14248. -else
  14249. - echo "$as_me: failed program was:" >&5
  14250. -sed 's/^/| /' conftest.$ac_ext >&5
  14251. +sysv4 | sysv4.3*)
  14252. + case $host_vendor in
  14253. + motorola)
  14254. + 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]'
  14255. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  14256. + ;;
  14257. + ncr)
  14258. + lt_cv_deplibs_check_method=pass_all
  14259. + ;;
  14260. + sequent)
  14261. + lt_cv_file_magic_cmd='/bin/file'
  14262. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  14263. + ;;
  14264. + sni)
  14265. + lt_cv_file_magic_cmd='/bin/file'
  14266. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  14267. + lt_cv_file_magic_test_file=/lib/libc.so
  14268. + ;;
  14269. + siemens)
  14270. + lt_cv_deplibs_check_method=pass_all
  14271. + ;;
  14272. + pc)
  14273. + lt_cv_deplibs_check_method=pass_all
  14274. + ;;
  14275. + esac
  14276. + ;;
  14277. - eval "$as_ac_Header=no"
  14278. -fi
  14279. +tpf*)
  14280. + lt_cv_deplibs_check_method=pass_all
  14281. + ;;
  14282. +esac
  14283. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14284. fi
  14285. -ac_res=`eval echo '${'$as_ac_Header'}'`
  14286. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  14287. -echo "${ECHO_T}$ac_res" >&6; }
  14288. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14289. - cat >>confdefs.h <<_ACEOF
  14290. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14291. -_ACEOF
  14292. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  14293. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  14294. +file_magic_cmd=$lt_cv_file_magic_cmd
  14295. +deplibs_check_method=$lt_cv_deplibs_check_method
  14296. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  14297. -fi
  14298. -done
  14299. -for ac_header in dlfcn.h
  14300. -do
  14301. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14302. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14303. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14304. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14305. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14306. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14307. -fi
  14308. -ac_res=`eval echo '${'$as_ac_Header'}'`
  14309. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  14310. -echo "${ECHO_T}$ac_res" >&6; }
  14311. +
  14312. +
  14313. +
  14314. +
  14315. +
  14316. +
  14317. +
  14318. +if test -n "$ac_tool_prefix"; then
  14319. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  14320. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  14321. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14322. +$as_echo_n "checking for $ac_word... " >&6; }
  14323. +if test "${ac_cv_prog_AR+set}" = set; then :
  14324. + $as_echo_n "(cached) " >&6
  14325. else
  14326. - # Is the header compilable?
  14327. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14328. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14329. -cat >conftest.$ac_ext <<_ACEOF
  14330. -/* confdefs.h. */
  14331. -_ACEOF
  14332. -cat confdefs.h >>conftest.$ac_ext
  14333. -cat >>conftest.$ac_ext <<_ACEOF
  14334. -/* end confdefs.h. */
  14335. -$ac_includes_default
  14336. -#include <$ac_header>
  14337. -_ACEOF
  14338. -rm -f conftest.$ac_objext
  14339. -if { (ac_try="$ac_compile"
  14340. -case "(($ac_try" in
  14341. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14342. - *) ac_try_echo=$ac_try;;
  14343. -esac
  14344. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14345. - (eval "$ac_compile") 2>conftest.er1
  14346. - ac_status=$?
  14347. - grep -v '^ *+' conftest.er1 >conftest.err
  14348. - rm -f conftest.er1
  14349. - cat conftest.err >&5
  14350. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14351. - (exit $ac_status); } && {
  14352. - test -z "$ac_c_werror_flag" ||
  14353. - test ! -s conftest.err
  14354. - } && test -s conftest.$ac_objext; then
  14355. - ac_header_compiler=yes
  14356. + if test -n "$AR"; then
  14357. + ac_cv_prog_AR="$AR" # Let the user override the test.
  14358. else
  14359. - echo "$as_me: failed program was:" >&5
  14360. -sed 's/^/| /' conftest.$ac_ext >&5
  14361. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14362. +for as_dir in $PATH
  14363. +do
  14364. + IFS=$as_save_IFS
  14365. + test -z "$as_dir" && as_dir=.
  14366. + for ac_exec_ext in '' $ac_executable_extensions; do
  14367. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14368. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  14369. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14370. + break 2
  14371. + fi
  14372. +done
  14373. + done
  14374. +IFS=$as_save_IFS
  14375. - ac_header_compiler=no
  14376. +fi
  14377. +fi
  14378. +AR=$ac_cv_prog_AR
  14379. +if test -n "$AR"; then
  14380. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  14381. +$as_echo "$AR" >&6; }
  14382. +else
  14383. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14384. +$as_echo "no" >&6; }
  14385. fi
  14386. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14387. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14388. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  14389. -# Is the header present?
  14390. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14391. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14392. -cat >conftest.$ac_ext <<_ACEOF
  14393. -/* confdefs.h. */
  14394. -_ACEOF
  14395. -cat confdefs.h >>conftest.$ac_ext
  14396. -cat >>conftest.$ac_ext <<_ACEOF
  14397. -/* end confdefs.h. */
  14398. -#include <$ac_header>
  14399. -_ACEOF
  14400. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  14401. -case "(($ac_try" in
  14402. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14403. - *) ac_try_echo=$ac_try;;
  14404. -esac
  14405. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14406. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14407. - ac_status=$?
  14408. - grep -v '^ *+' conftest.er1 >conftest.err
  14409. - rm -f conftest.er1
  14410. - cat conftest.err >&5
  14411. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14412. - (exit $ac_status); } >/dev/null && {
  14413. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14414. - test ! -s conftest.err
  14415. - }; then
  14416. - ac_header_preproc=yes
  14417. +fi
  14418. +if test -z "$ac_cv_prog_AR"; then
  14419. + ac_ct_AR=$AR
  14420. + # Extract the first word of "ar", so it can be a program name with args.
  14421. +set dummy ar; ac_word=$2
  14422. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14423. +$as_echo_n "checking for $ac_word... " >&6; }
  14424. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  14425. + $as_echo_n "(cached) " >&6
  14426. else
  14427. - echo "$as_me: failed program was:" >&5
  14428. -sed 's/^/| /' conftest.$ac_ext >&5
  14429. + if test -n "$ac_ct_AR"; then
  14430. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  14431. +else
  14432. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14433. +for as_dir in $PATH
  14434. +do
  14435. + IFS=$as_save_IFS
  14436. + test -z "$as_dir" && as_dir=.
  14437. + for ac_exec_ext in '' $ac_executable_extensions; do
  14438. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14439. + ac_cv_prog_ac_ct_AR="ar"
  14440. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14441. + break 2
  14442. + fi
  14443. +done
  14444. + done
  14445. +IFS=$as_save_IFS
  14446. - ac_header_preproc=no
  14447. +fi
  14448. +fi
  14449. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  14450. +if test -n "$ac_ct_AR"; then
  14451. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  14452. +$as_echo "$ac_ct_AR" >&6; }
  14453. +else
  14454. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14455. +$as_echo "no" >&6; }
  14456. fi
  14457. -rm -f conftest.err conftest.$ac_ext
  14458. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14459. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  14460. -
  14461. -# So? What about this header?
  14462. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14463. - yes:no: )
  14464. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14465. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14466. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14467. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14468. - ac_header_preproc=yes
  14469. - ;;
  14470. - no:yes:* )
  14471. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14472. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14473. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14474. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14475. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14476. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14477. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14478. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14479. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14480. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14481. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14482. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14483. - ( cat <<\_ASBOX
  14484. -## ------------------------------- ##
  14485. -## Report this to icecast@xiph.org ##
  14486. -## ------------------------------- ##
  14487. -_ASBOX
  14488. - ) | sed "s/^/$as_me: WARNING: /" >&2
  14489. - ;;
  14490. + if test "x$ac_ct_AR" = x; then
  14491. + AR="false"
  14492. + else
  14493. + case $cross_compiling:$ac_tool_warned in
  14494. +yes:)
  14495. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14496. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14497. +ac_tool_warned=yes ;;
  14498. esac
  14499. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  14500. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14501. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14502. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14503. + AR=$ac_ct_AR
  14504. + fi
  14505. else
  14506. - eval "$as_ac_Header=\$ac_header_preproc"
  14507. + AR="$ac_cv_prog_AR"
  14508. fi
  14509. -ac_res=`eval echo '${'$as_ac_Header'}'`
  14510. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  14511. -echo "${ECHO_T}$ac_res" >&6; }
  14512. -fi
  14513. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14514. - cat >>confdefs.h <<_ACEOF
  14515. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14516. -_ACEOF
  14517. +test -z "$AR" && AR=ar
  14518. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  14519. -fi
  14520. -done
  14521. -ac_ext=cpp
  14522. -ac_cpp='$CXXCPP $CPPFLAGS'
  14523. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14524. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14525. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14526. -if test -z "$CXX"; then
  14527. - if test -n "$CCC"; then
  14528. - CXX=$CCC
  14529. - else
  14530. - if test -n "$ac_tool_prefix"; then
  14531. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  14532. - do
  14533. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  14534. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  14535. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  14536. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14537. -if test "${ac_cv_prog_CXX+set}" = set; then
  14538. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14539. +
  14540. +
  14541. +
  14542. +
  14543. +
  14544. +
  14545. +
  14546. +
  14547. +if test -n "$ac_tool_prefix"; then
  14548. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  14549. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  14550. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14551. +$as_echo_n "checking for $ac_word... " >&6; }
  14552. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  14553. + $as_echo_n "(cached) " >&6
  14554. else
  14555. - if test -n "$CXX"; then
  14556. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  14557. + if test -n "$STRIP"; then
  14558. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  14559. else
  14560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14561. for as_dir in $PATH
  14562. do
  14563. IFS=$as_save_IFS
  14564. test -z "$as_dir" && as_dir=.
  14565. - for ac_exec_ext in '' $ac_executable_extensions; do
  14566. + for ac_exec_ext in '' $ac_executable_extensions; do
  14567. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14568. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  14569. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14570. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  14571. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14572. break 2
  14573. fi
  14574. done
  14575. -done
  14576. + done
  14577. IFS=$as_save_IFS
  14578. fi
  14579. fi
  14580. -CXX=$ac_cv_prog_CXX
  14581. -if test -n "$CXX"; then
  14582. - { echo "$as_me:$LINENO: result: $CXX" >&5
  14583. -echo "${ECHO_T}$CXX" >&6; }
  14584. +STRIP=$ac_cv_prog_STRIP
  14585. +if test -n "$STRIP"; then
  14586. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  14587. +$as_echo "$STRIP" >&6; }
  14588. else
  14589. - { echo "$as_me:$LINENO: result: no" >&5
  14590. -echo "${ECHO_T}no" >&6; }
  14591. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14592. +$as_echo "no" >&6; }
  14593. fi
  14594. - test -n "$CXX" && break
  14595. - done
  14596. fi
  14597. -if test -z "$CXX"; then
  14598. - ac_ct_CXX=$CXX
  14599. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  14600. -do
  14601. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  14602. -set dummy $ac_prog; ac_word=$2
  14603. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  14604. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14605. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  14606. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14607. +if test -z "$ac_cv_prog_STRIP"; then
  14608. + ac_ct_STRIP=$STRIP
  14609. + # Extract the first word of "strip", so it can be a program name with args.
  14610. +set dummy strip; ac_word=$2
  14611. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14612. +$as_echo_n "checking for $ac_word... " >&6; }
  14613. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  14614. + $as_echo_n "(cached) " >&6
  14615. else
  14616. - if test -n "$ac_ct_CXX"; then
  14617. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  14618. + if test -n "$ac_ct_STRIP"; then
  14619. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  14620. else
  14621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14622. for as_dir in $PATH
  14623. do
  14624. IFS=$as_save_IFS
  14625. test -z "$as_dir" && as_dir=.
  14626. - for ac_exec_ext in '' $ac_executable_extensions; do
  14627. + for ac_exec_ext in '' $ac_executable_extensions; do
  14628. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14629. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  14630. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14631. + ac_cv_prog_ac_ct_STRIP="strip"
  14632. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14633. break 2
  14634. fi
  14635. done
  14636. -done
  14637. + done
  14638. IFS=$as_save_IFS
  14639. fi
  14640. fi
  14641. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  14642. -if test -n "$ac_ct_CXX"; then
  14643. - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  14644. -echo "${ECHO_T}$ac_ct_CXX" >&6; }
  14645. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  14646. +if test -n "$ac_ct_STRIP"; then
  14647. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  14648. +$as_echo "$ac_ct_STRIP" >&6; }
  14649. else
  14650. - { echo "$as_me:$LINENO: result: no" >&5
  14651. -echo "${ECHO_T}no" >&6; }
  14652. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14653. +$as_echo "no" >&6; }
  14654. fi
  14655. -
  14656. - test -n "$ac_ct_CXX" && break
  14657. -done
  14658. -
  14659. - if test "x$ac_ct_CXX" = x; then
  14660. - CXX="g++"
  14661. + if test "x$ac_ct_STRIP" = x; then
  14662. + STRIP=":"
  14663. else
  14664. case $cross_compiling:$ac_tool_warned in
  14665. yes:)
  14666. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  14667. -whose name does not start with the host triplet. If you think this
  14668. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  14669. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  14670. -whose name does not start with the host triplet. If you think this
  14671. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  14672. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14673. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14674. ac_tool_warned=yes ;;
  14675. esac
  14676. - CXX=$ac_ct_CXX
  14677. - fi
  14678. -fi
  14679. -
  14680. + STRIP=$ac_ct_STRIP
  14681. fi
  14682. -fi
  14683. -# Provide some information about the compiler.
  14684. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  14685. -ac_compiler=`set X $ac_compile; echo $2`
  14686. -{ (ac_try="$ac_compiler --version >&5"
  14687. -case "(($ac_try" in
  14688. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14689. - *) ac_try_echo=$ac_try;;
  14690. -esac
  14691. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14692. - (eval "$ac_compiler --version >&5") 2>&5
  14693. - ac_status=$?
  14694. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14695. - (exit $ac_status); }
  14696. -{ (ac_try="$ac_compiler -v >&5"
  14697. -case "(($ac_try" in
  14698. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14699. - *) ac_try_echo=$ac_try;;
  14700. -esac
  14701. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14702. - (eval "$ac_compiler -v >&5") 2>&5
  14703. - ac_status=$?
  14704. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14705. - (exit $ac_status); }
  14706. -{ (ac_try="$ac_compiler -V >&5"
  14707. -case "(($ac_try" in
  14708. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14709. - *) ac_try_echo=$ac_try;;
  14710. -esac
  14711. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14712. - (eval "$ac_compiler -V >&5") 2>&5
  14713. - ac_status=$?
  14714. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14715. - (exit $ac_status); }
  14716. -
  14717. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  14718. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  14719. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  14720. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14721. else
  14722. - cat >conftest.$ac_ext <<_ACEOF
  14723. -/* confdefs.h. */
  14724. -_ACEOF
  14725. -cat confdefs.h >>conftest.$ac_ext
  14726. -cat >>conftest.$ac_ext <<_ACEOF
  14727. -/* end confdefs.h. */
  14728. + STRIP="$ac_cv_prog_STRIP"
  14729. +fi
  14730. -int
  14731. -main ()
  14732. -{
  14733. -#ifndef __GNUC__
  14734. - choke me
  14735. -#endif
  14736. +test -z "$STRIP" && STRIP=:
  14737. - ;
  14738. - return 0;
  14739. -}
  14740. -_ACEOF
  14741. -rm -f conftest.$ac_objext
  14742. -if { (ac_try="$ac_compile"
  14743. -case "(($ac_try" in
  14744. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14745. - *) ac_try_echo=$ac_try;;
  14746. -esac
  14747. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14748. - (eval "$ac_compile") 2>conftest.er1
  14749. - ac_status=$?
  14750. - grep -v '^ *+' conftest.er1 >conftest.err
  14751. - rm -f conftest.er1
  14752. - cat conftest.err >&5
  14753. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14754. - (exit $ac_status); } && {
  14755. - test -z "$ac_cxx_werror_flag" ||
  14756. - test ! -s conftest.err
  14757. - } && test -s conftest.$ac_objext; then
  14758. - ac_compiler_gnu=yes
  14759. -else
  14760. - echo "$as_me: failed program was:" >&5
  14761. -sed 's/^/| /' conftest.$ac_ext >&5
  14762. - ac_compiler_gnu=no
  14763. -fi
  14764. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14765. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  14766. -fi
  14767. -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  14768. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  14769. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  14770. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  14771. -ac_save_CXXFLAGS=$CXXFLAGS
  14772. -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  14773. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  14774. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  14775. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14776. -else
  14777. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  14778. - ac_cxx_werror_flag=yes
  14779. - ac_cv_prog_cxx_g=no
  14780. - CXXFLAGS="-g"
  14781. - cat >conftest.$ac_ext <<_ACEOF
  14782. -/* confdefs.h. */
  14783. -_ACEOF
  14784. -cat confdefs.h >>conftest.$ac_ext
  14785. -cat >>conftest.$ac_ext <<_ACEOF
  14786. -/* end confdefs.h. */
  14787. -int
  14788. -main ()
  14789. -{
  14790. - ;
  14791. - return 0;
  14792. -}
  14793. -_ACEOF
  14794. -rm -f conftest.$ac_objext
  14795. -if { (ac_try="$ac_compile"
  14796. -case "(($ac_try" in
  14797. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14798. - *) ac_try_echo=$ac_try;;
  14799. -esac
  14800. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14801. - (eval "$ac_compile") 2>conftest.er1
  14802. - ac_status=$?
  14803. - grep -v '^ *+' conftest.er1 >conftest.err
  14804. - rm -f conftest.er1
  14805. - cat conftest.err >&5
  14806. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14807. - (exit $ac_status); } && {
  14808. - test -z "$ac_cxx_werror_flag" ||
  14809. - test ! -s conftest.err
  14810. - } && test -s conftest.$ac_objext; then
  14811. - ac_cv_prog_cxx_g=yes
  14812. +if test -n "$ac_tool_prefix"; then
  14813. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  14814. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  14815. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14816. +$as_echo_n "checking for $ac_word... " >&6; }
  14817. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  14818. + $as_echo_n "(cached) " >&6
  14819. else
  14820. - echo "$as_me: failed program was:" >&5
  14821. -sed 's/^/| /' conftest.$ac_ext >&5
  14822. -
  14823. - CXXFLAGS=""
  14824. - cat >conftest.$ac_ext <<_ACEOF
  14825. -/* confdefs.h. */
  14826. -_ACEOF
  14827. -cat confdefs.h >>conftest.$ac_ext
  14828. -cat >>conftest.$ac_ext <<_ACEOF
  14829. -/* end confdefs.h. */
  14830. -
  14831. -int
  14832. -main ()
  14833. -{
  14834. -
  14835. - ;
  14836. - return 0;
  14837. -}
  14838. -_ACEOF
  14839. -rm -f conftest.$ac_objext
  14840. -if { (ac_try="$ac_compile"
  14841. -case "(($ac_try" in
  14842. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14843. - *) ac_try_echo=$ac_try;;
  14844. -esac
  14845. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14846. - (eval "$ac_compile") 2>conftest.er1
  14847. - ac_status=$?
  14848. - grep -v '^ *+' conftest.er1 >conftest.err
  14849. - rm -f conftest.er1
  14850. - cat conftest.err >&5
  14851. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14852. - (exit $ac_status); } && {
  14853. - test -z "$ac_cxx_werror_flag" ||
  14854. - test ! -s conftest.err
  14855. - } && test -s conftest.$ac_objext; then
  14856. - :
  14857. + if test -n "$RANLIB"; then
  14858. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  14859. else
  14860. - echo "$as_me: failed program was:" >&5
  14861. -sed 's/^/| /' conftest.$ac_ext >&5
  14862. -
  14863. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  14864. - CXXFLAGS="-g"
  14865. - cat >conftest.$ac_ext <<_ACEOF
  14866. -/* confdefs.h. */
  14867. -_ACEOF
  14868. -cat confdefs.h >>conftest.$ac_ext
  14869. -cat >>conftest.$ac_ext <<_ACEOF
  14870. -/* end confdefs.h. */
  14871. -
  14872. -int
  14873. -main ()
  14874. -{
  14875. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14876. +for as_dir in $PATH
  14877. +do
  14878. + IFS=$as_save_IFS
  14879. + test -z "$as_dir" && as_dir=.
  14880. + for ac_exec_ext in '' $ac_executable_extensions; do
  14881. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14882. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  14883. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14884. + break 2
  14885. + fi
  14886. +done
  14887. + done
  14888. +IFS=$as_save_IFS
  14889. - ;
  14890. - return 0;
  14891. -}
  14892. -_ACEOF
  14893. -rm -f conftest.$ac_objext
  14894. -if { (ac_try="$ac_compile"
  14895. -case "(($ac_try" in
  14896. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14897. - *) ac_try_echo=$ac_try;;
  14898. -esac
  14899. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14900. - (eval "$ac_compile") 2>conftest.er1
  14901. - ac_status=$?
  14902. - grep -v '^ *+' conftest.er1 >conftest.err
  14903. - rm -f conftest.er1
  14904. - cat conftest.err >&5
  14905. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14906. - (exit $ac_status); } && {
  14907. - test -z "$ac_cxx_werror_flag" ||
  14908. - test ! -s conftest.err
  14909. - } && test -s conftest.$ac_objext; then
  14910. - ac_cv_prog_cxx_g=yes
  14911. +fi
  14912. +fi
  14913. +RANLIB=$ac_cv_prog_RANLIB
  14914. +if test -n "$RANLIB"; then
  14915. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  14916. +$as_echo "$RANLIB" >&6; }
  14917. else
  14918. - echo "$as_me: failed program was:" >&5
  14919. -sed 's/^/| /' conftest.$ac_ext >&5
  14920. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14921. +$as_echo "no" >&6; }
  14922. +fi
  14923. fi
  14924. +if test -z "$ac_cv_prog_RANLIB"; then
  14925. + ac_ct_RANLIB=$RANLIB
  14926. + # Extract the first word of "ranlib", so it can be a program name with args.
  14927. +set dummy ranlib; ac_word=$2
  14928. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14929. +$as_echo_n "checking for $ac_word... " >&6; }
  14930. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  14931. + $as_echo_n "(cached) " >&6
  14932. +else
  14933. + if test -n "$ac_ct_RANLIB"; then
  14934. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  14935. +else
  14936. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14937. +for as_dir in $PATH
  14938. +do
  14939. + IFS=$as_save_IFS
  14940. + test -z "$as_dir" && as_dir=.
  14941. + for ac_exec_ext in '' $ac_executable_extensions; do
  14942. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14943. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  14944. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14945. + break 2
  14946. + fi
  14947. +done
  14948. + done
  14949. +IFS=$as_save_IFS
  14950. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14951. fi
  14952. -
  14953. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14954. fi
  14955. -
  14956. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14957. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  14958. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  14959. +if test -n "$ac_ct_RANLIB"; then
  14960. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  14961. +$as_echo "$ac_ct_RANLIB" >&6; }
  14962. +else
  14963. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14964. +$as_echo "no" >&6; }
  14965. fi
  14966. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  14967. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  14968. -if test "$ac_test_CXXFLAGS" = set; then
  14969. - CXXFLAGS=$ac_save_CXXFLAGS
  14970. -elif test $ac_cv_prog_cxx_g = yes; then
  14971. - if test "$GXX" = yes; then
  14972. - CXXFLAGS="-g -O2"
  14973. +
  14974. + if test "x$ac_ct_RANLIB" = x; then
  14975. + RANLIB=":"
  14976. else
  14977. - CXXFLAGS="-g"
  14978. + case $cross_compiling:$ac_tool_warned in
  14979. +yes:)
  14980. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14981. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14982. +ac_tool_warned=yes ;;
  14983. +esac
  14984. + RANLIB=$ac_ct_RANLIB
  14985. fi
  14986. else
  14987. - if test "$GXX" = yes; then
  14988. - CXXFLAGS="-O2"
  14989. - else
  14990. - CXXFLAGS=
  14991. - fi
  14992. + RANLIB="$ac_cv_prog_RANLIB"
  14993. fi
  14994. -ac_ext=cpp
  14995. -ac_cpp='$CXXCPP $CPPFLAGS'
  14996. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14997. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14998. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14999. -depcc="$CXX" am_compiler_list=
  15000. +test -z "$RANLIB" && RANLIB=:
  15001. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  15002. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  15003. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  15004. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15005. -else
  15006. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  15007. - # We make a subdir and do the tests there. Otherwise we can end up
  15008. - # making bogus files that we don't know about and never remove. For
  15009. - # instance it was reported that on HP-UX the gcc test will end up
  15010. - # making a dummy file named `D' -- because `-MD' means `put the output
  15011. - # in D'.
  15012. - mkdir conftest.dir
  15013. - # Copy depcomp to subdir because otherwise we won't find it if we're
  15014. - # using a relative directory.
  15015. - cp "$am_depcomp" conftest.dir
  15016. - cd conftest.dir
  15017. - # We will build objects and dependencies in a subdirectory because
  15018. - # it helps to detect inapplicable dependency modes. For instance
  15019. - # both Tru64's cc and ICC support -MD to output dependencies as a
  15020. - # side effect of compilation, but ICC will put the dependencies in
  15021. - # the current directory while Tru64 will put them in the object
  15022. - # directory.
  15023. - mkdir sub
  15024. - am_cv_CXX_dependencies_compiler_type=none
  15025. - if test "$am_compiler_list" = ""; then
  15026. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  15027. - fi
  15028. - for depmode in $am_compiler_list; do
  15029. - # Setup a source with many dependencies, because some compilers
  15030. - # like to wrap large dependency lists on column 80 (with \), and
  15031. - # we should not choose a depcomp mode which is confused by this.
  15032. - #
  15033. - # We need to recreate these files for each test, as the compiler may
  15034. - # overwrite some of them when testing with obscure command lines.
  15035. - # This happens at least with the AIX C compiler.
  15036. - : > sub/conftest.c
  15037. - for i in 1 2 3 4 5 6; do
  15038. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  15039. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  15040. - # Solaris 8's {/usr,}/bin/sh.
  15041. - touch sub/conftst$i.h
  15042. - done
  15043. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  15044. - case $depmode in
  15045. - nosideeffect)
  15046. - # after this tag, mechanisms are not by side-effect, so they'll
  15047. - # only be used when explicitly requested
  15048. - if test "x$enable_dependency_tracking" = xyes; then
  15049. - continue
  15050. - else
  15051. - break
  15052. - fi
  15053. - ;;
  15054. - none) break ;;
  15055. - esac
  15056. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  15057. - # mode. It turns out that the SunPro C++ compiler does not properly
  15058. - # handle `-M -o', and we need to detect this.
  15059. - if depmode=$depmode \
  15060. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  15061. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  15062. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  15063. - >/dev/null 2>conftest.err &&
  15064. - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  15065. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  15066. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  15067. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  15068. - # icc doesn't choke on unknown options, it will just issue warnings
  15069. - # or remarks (even with -Werror). So we grep stderr for any message
  15070. - # that says an option was ignored or not supported.
  15071. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  15072. - # icc: Command line warning: ignoring option '-M'; no argument required
  15073. - # The diagnosis changed in icc 8.0:
  15074. - # icc: Command line remark: option '-MP' not supported
  15075. - if (grep 'ignoring option' conftest.err ||
  15076. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  15077. - am_cv_CXX_dependencies_compiler_type=$depmode
  15078. - break
  15079. - fi
  15080. - fi
  15081. - done
  15082. - cd ..
  15083. - rm -rf conftest.dir
  15084. -else
  15085. - am_cv_CXX_dependencies_compiler_type=none
  15086. -fi
  15087. -fi
  15088. -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  15089. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  15090. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  15091. - if
  15092. - test "x$enable_dependency_tracking" != xno \
  15093. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  15094. - am__fastdepCXX_TRUE=
  15095. - am__fastdepCXX_FALSE='#'
  15096. -else
  15097. - am__fastdepCXX_TRUE='#'
  15098. - am__fastdepCXX_FALSE=
  15099. +# Determine commands to create old-style static archives.
  15100. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  15101. +old_postinstall_cmds='chmod 644 $oldlib'
  15102. +old_postuninstall_cmds=
  15103. +
  15104. +if test -n "$RANLIB"; then
  15105. + case $host_os in
  15106. + openbsd*)
  15107. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  15108. + ;;
  15109. + *)
  15110. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  15111. + ;;
  15112. + esac
  15113. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  15114. fi
  15115. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  15116. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  15117. - (test "X$CXX" != "Xg++"))) ; then
  15118. - ac_ext=cpp
  15119. -ac_cpp='$CXXCPP $CPPFLAGS'
  15120. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15121. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15122. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15123. -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  15124. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  15125. -if test -z "$CXXCPP"; then
  15126. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  15127. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15128. -else
  15129. - # Double quotes because CXXCPP needs to be expanded
  15130. - for CXXCPP in "$CXX -E" "/lib/cpp"
  15131. - do
  15132. - ac_preproc_ok=false
  15133. -for ac_cxx_preproc_warn_flag in '' yes
  15134. -do
  15135. - # Use a header file that comes with gcc, so configuring glibc
  15136. - # with a fresh cross-compiler works.
  15137. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15138. - # <limits.h> exists even on freestanding compilers.
  15139. - # On the NeXT, cc -E runs the code through the compiler's parser,
  15140. - # not just through cpp. "Syntax error" is here to catch this case.
  15141. - cat >conftest.$ac_ext <<_ACEOF
  15142. -/* confdefs.h. */
  15143. -_ACEOF
  15144. -cat confdefs.h >>conftest.$ac_ext
  15145. -cat >>conftest.$ac_ext <<_ACEOF
  15146. -/* end confdefs.h. */
  15147. -#ifdef __STDC__
  15148. -# include <limits.h>
  15149. -#else
  15150. -# include <assert.h>
  15151. -#endif
  15152. - Syntax error
  15153. -_ACEOF
  15154. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  15155. -case "(($ac_try" in
  15156. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15157. - *) ac_try_echo=$ac_try;;
  15158. -esac
  15159. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15160. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15161. - ac_status=$?
  15162. - grep -v '^ *+' conftest.er1 >conftest.err
  15163. - rm -f conftest.er1
  15164. - cat conftest.err >&5
  15165. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15166. - (exit $ac_status); } >/dev/null && {
  15167. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15168. - test ! -s conftest.err
  15169. - }; then
  15170. - :
  15171. -else
  15172. - echo "$as_me: failed program was:" >&5
  15173. -sed 's/^/| /' conftest.$ac_ext >&5
  15174. - # Broken: fails on valid input.
  15175. -continue
  15176. -fi
  15177. -rm -f conftest.err conftest.$ac_ext
  15178. - # OK, works on sane cases. Now check whether nonexistent headers
  15179. - # can be detected and how.
  15180. - cat >conftest.$ac_ext <<_ACEOF
  15181. -/* confdefs.h. */
  15182. -_ACEOF
  15183. -cat confdefs.h >>conftest.$ac_ext
  15184. -cat >>conftest.$ac_ext <<_ACEOF
  15185. -/* end confdefs.h. */
  15186. -#include <ac_nonexistent.h>
  15187. -_ACEOF
  15188. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  15189. -case "(($ac_try" in
  15190. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15191. - *) ac_try_echo=$ac_try;;
  15192. -esac
  15193. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15194. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15195. - ac_status=$?
  15196. - grep -v '^ *+' conftest.er1 >conftest.err
  15197. - rm -f conftest.er1
  15198. - cat conftest.err >&5
  15199. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15200. - (exit $ac_status); } >/dev/null && {
  15201. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15202. - test ! -s conftest.err
  15203. - }; then
  15204. - # Broken: success on invalid input.
  15205. -continue
  15206. -else
  15207. - echo "$as_me: failed program was:" >&5
  15208. -sed 's/^/| /' conftest.$ac_ext >&5
  15209. -
  15210. - # Passes both tests.
  15211. -ac_preproc_ok=:
  15212. -break
  15213. -fi
  15214. -rm -f conftest.err conftest.$ac_ext
  15215. -done
  15216. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15217. -rm -f conftest.err conftest.$ac_ext
  15218. -if $ac_preproc_ok; then
  15219. - break
  15220. -fi
  15221. - done
  15222. - ac_cv_prog_CXXCPP=$CXXCPP
  15223. -fi
  15224. - CXXCPP=$ac_cv_prog_CXXCPP
  15225. -else
  15226. - ac_cv_prog_CXXCPP=$CXXCPP
  15227. -fi
  15228. -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  15229. -echo "${ECHO_T}$CXXCPP" >&6; }
  15230. -ac_preproc_ok=false
  15231. -for ac_cxx_preproc_warn_flag in '' yes
  15232. -do
  15233. - # Use a header file that comes with gcc, so configuring glibc
  15234. - # with a fresh cross-compiler works.
  15235. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15236. - # <limits.h> exists even on freestanding compilers.
  15237. - # On the NeXT, cc -E runs the code through the compiler's parser,
  15238. - # not just through cpp. "Syntax error" is here to catch this case.
  15239. - cat >conftest.$ac_ext <<_ACEOF
  15240. -/* confdefs.h. */
  15241. -_ACEOF
  15242. -cat confdefs.h >>conftest.$ac_ext
  15243. -cat >>conftest.$ac_ext <<_ACEOF
  15244. -/* end confdefs.h. */
  15245. -#ifdef __STDC__
  15246. -# include <limits.h>
  15247. -#else
  15248. -# include <assert.h>
  15249. -#endif
  15250. - Syntax error
  15251. -_ACEOF
  15252. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  15253. -case "(($ac_try" in
  15254. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15255. - *) ac_try_echo=$ac_try;;
  15256. -esac
  15257. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15258. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15259. - ac_status=$?
  15260. - grep -v '^ *+' conftest.er1 >conftest.err
  15261. - rm -f conftest.er1
  15262. - cat conftest.err >&5
  15263. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15264. - (exit $ac_status); } >/dev/null && {
  15265. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15266. - test ! -s conftest.err
  15267. - }; then
  15268. - :
  15269. -else
  15270. - echo "$as_me: failed program was:" >&5
  15271. -sed 's/^/| /' conftest.$ac_ext >&5
  15272. - # Broken: fails on valid input.
  15273. -continue
  15274. -fi
  15275. -rm -f conftest.err conftest.$ac_ext
  15276. - # OK, works on sane cases. Now check whether nonexistent headers
  15277. - # can be detected and how.
  15278. - cat >conftest.$ac_ext <<_ACEOF
  15279. -/* confdefs.h. */
  15280. -_ACEOF
  15281. -cat confdefs.h >>conftest.$ac_ext
  15282. -cat >>conftest.$ac_ext <<_ACEOF
  15283. -/* end confdefs.h. */
  15284. -#include <ac_nonexistent.h>
  15285. -_ACEOF
  15286. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  15287. -case "(($ac_try" in
  15288. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15289. - *) ac_try_echo=$ac_try;;
  15290. -esac
  15291. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15292. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15293. - ac_status=$?
  15294. - grep -v '^ *+' conftest.er1 >conftest.err
  15295. - rm -f conftest.er1
  15296. - cat conftest.err >&5
  15297. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15298. - (exit $ac_status); } >/dev/null && {
  15299. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15300. - test ! -s conftest.err
  15301. - }; then
  15302. - # Broken: success on invalid input.
  15303. -continue
  15304. -else
  15305. - echo "$as_me: failed program was:" >&5
  15306. -sed 's/^/| /' conftest.$ac_ext >&5
  15307. - # Passes both tests.
  15308. -ac_preproc_ok=:
  15309. -break
  15310. -fi
  15311. -rm -f conftest.err conftest.$ac_ext
  15312. -done
  15313. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15314. -rm -f conftest.err conftest.$ac_ext
  15315. -if $ac_preproc_ok; then
  15316. - :
  15317. -else
  15318. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  15319. -See \`config.log' for more details." >&5
  15320. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  15321. -See \`config.log' for more details." >&2;}
  15322. - { (exit 1); exit 1; }; }
  15323. -fi
  15324. -ac_ext=cpp
  15325. -ac_cpp='$CXXCPP $CPPFLAGS'
  15326. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15327. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15328. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15329. -fi
  15330. -ac_ext=f
  15331. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  15332. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15333. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  15334. -if test -n "$ac_tool_prefix"; then
  15335. - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  15336. - do
  15337. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  15338. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  15339. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15340. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15341. -if test "${ac_cv_prog_F77+set}" = set; then
  15342. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15343. -else
  15344. - if test -n "$F77"; then
  15345. - ac_cv_prog_F77="$F77" # Let the user override the test.
  15346. -else
  15347. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15348. -for as_dir in $PATH
  15349. -do
  15350. - IFS=$as_save_IFS
  15351. - test -z "$as_dir" && as_dir=.
  15352. - for ac_exec_ext in '' $ac_executable_extensions; do
  15353. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15354. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  15355. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15356. - break 2
  15357. - fi
  15358. -done
  15359. -done
  15360. -IFS=$as_save_IFS
  15361. -fi
  15362. -fi
  15363. -F77=$ac_cv_prog_F77
  15364. -if test -n "$F77"; then
  15365. - { echo "$as_me:$LINENO: result: $F77" >&5
  15366. -echo "${ECHO_T}$F77" >&6; }
  15367. -else
  15368. - { echo "$as_me:$LINENO: result: no" >&5
  15369. -echo "${ECHO_T}no" >&6; }
  15370. -fi
  15371. - test -n "$F77" && break
  15372. - done
  15373. -fi
  15374. -if test -z "$F77"; then
  15375. - ac_ct_F77=$F77
  15376. - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  15377. -do
  15378. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  15379. -set dummy $ac_prog; ac_word=$2
  15380. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15381. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15382. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  15383. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15384. -else
  15385. - if test -n "$ac_ct_F77"; then
  15386. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  15387. -else
  15388. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15389. -for as_dir in $PATH
  15390. -do
  15391. - IFS=$as_save_IFS
  15392. - test -z "$as_dir" && as_dir=.
  15393. - for ac_exec_ext in '' $ac_executable_extensions; do
  15394. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15395. - ac_cv_prog_ac_ct_F77="$ac_prog"
  15396. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15397. - break 2
  15398. - fi
  15399. -done
  15400. -done
  15401. -IFS=$as_save_IFS
  15402. -fi
  15403. -fi
  15404. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  15405. -if test -n "$ac_ct_F77"; then
  15406. - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  15407. -echo "${ECHO_T}$ac_ct_F77" >&6; }
  15408. -else
  15409. - { echo "$as_me:$LINENO: result: no" >&5
  15410. -echo "${ECHO_T}no" >&6; }
  15411. -fi
  15412. - test -n "$ac_ct_F77" && break
  15413. -done
  15414. - if test "x$ac_ct_F77" = x; then
  15415. - F77=""
  15416. - else
  15417. - case $cross_compiling:$ac_tool_warned in
  15418. -yes:)
  15419. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15420. -whose name does not start with the host triplet. If you think this
  15421. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  15422. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15423. -whose name does not start with the host triplet. If you think this
  15424. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15425. -ac_tool_warned=yes ;;
  15426. -esac
  15427. - F77=$ac_ct_F77
  15428. - fi
  15429. -fi
  15430. -# Provide some information about the compiler.
  15431. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  15432. -ac_compiler=`set X $ac_compile; echo $2`
  15433. -{ (ac_try="$ac_compiler --version >&5"
  15434. -case "(($ac_try" in
  15435. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15436. - *) ac_try_echo=$ac_try;;
  15437. -esac
  15438. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15439. - (eval "$ac_compiler --version >&5") 2>&5
  15440. - ac_status=$?
  15441. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15442. - (exit $ac_status); }
  15443. -{ (ac_try="$ac_compiler -v >&5"
  15444. -case "(($ac_try" in
  15445. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15446. - *) ac_try_echo=$ac_try;;
  15447. -esac
  15448. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15449. - (eval "$ac_compiler -v >&5") 2>&5
  15450. - ac_status=$?
  15451. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15452. - (exit $ac_status); }
  15453. -{ (ac_try="$ac_compiler -V >&5"
  15454. -case "(($ac_try" in
  15455. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15456. - *) ac_try_echo=$ac_try;;
  15457. -esac
  15458. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15459. - (eval "$ac_compiler -V >&5") 2>&5
  15460. - ac_status=$?
  15461. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15462. - (exit $ac_status); }
  15463. -rm -f a.out
  15464. -
  15465. -# If we don't use `.F' as extension, the preprocessor is not run on the
  15466. -# input file. (Note that this only needs to work for GNU compilers.)
  15467. -ac_save_ext=$ac_ext
  15468. -ac_ext=F
  15469. -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  15470. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  15471. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  15472. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15473. -else
  15474. - cat >conftest.$ac_ext <<_ACEOF
  15475. - program main
  15476. -#ifndef __GNUC__
  15477. - choke me
  15478. -#endif
  15479. - end
  15480. -_ACEOF
  15481. -rm -f conftest.$ac_objext
  15482. -if { (ac_try="$ac_compile"
  15483. -case "(($ac_try" in
  15484. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15485. - *) ac_try_echo=$ac_try;;
  15486. -esac
  15487. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15488. - (eval "$ac_compile") 2>conftest.er1
  15489. - ac_status=$?
  15490. - grep -v '^ *+' conftest.er1 >conftest.err
  15491. - rm -f conftest.er1
  15492. - cat conftest.err >&5
  15493. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15494. - (exit $ac_status); } && {
  15495. - test -z "$ac_f77_werror_flag" ||
  15496. - test ! -s conftest.err
  15497. - } && test -s conftest.$ac_objext; then
  15498. - ac_compiler_gnu=yes
  15499. -else
  15500. - echo "$as_me: failed program was:" >&5
  15501. -sed 's/^/| /' conftest.$ac_ext >&5
  15502. - ac_compiler_gnu=no
  15503. -fi
  15504. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15505. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  15506. -fi
  15507. -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  15508. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  15509. -ac_ext=$ac_save_ext
  15510. -ac_test_FFLAGS=${FFLAGS+set}
  15511. -ac_save_FFLAGS=$FFLAGS
  15512. -FFLAGS=
  15513. -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  15514. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  15515. -if test "${ac_cv_prog_f77_g+set}" = set; then
  15516. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15517. -else
  15518. - FFLAGS=-g
  15519. -cat >conftest.$ac_ext <<_ACEOF
  15520. - program main
  15521. +# If no C compiler was specified, use CC.
  15522. +LTCC=${LTCC-"$CC"}
  15523. - end
  15524. -_ACEOF
  15525. -rm -f conftest.$ac_objext
  15526. -if { (ac_try="$ac_compile"
  15527. -case "(($ac_try" in
  15528. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15529. - *) ac_try_echo=$ac_try;;
  15530. -esac
  15531. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15532. - (eval "$ac_compile") 2>conftest.er1
  15533. - ac_status=$?
  15534. - grep -v '^ *+' conftest.er1 >conftest.err
  15535. - rm -f conftest.er1
  15536. - cat conftest.err >&5
  15537. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15538. - (exit $ac_status); } && {
  15539. - test -z "$ac_f77_werror_flag" ||
  15540. - test ! -s conftest.err
  15541. - } && test -s conftest.$ac_objext; then
  15542. - ac_cv_prog_f77_g=yes
  15543. -else
  15544. - echo "$as_me: failed program was:" >&5
  15545. -sed 's/^/| /' conftest.$ac_ext >&5
  15546. +# If no C compiler flags were specified, use CFLAGS.
  15547. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  15548. - ac_cv_prog_f77_g=no
  15549. -fi
  15550. +# Allow CC to be a program name with arguments.
  15551. +compiler=$CC
  15552. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15553. -fi
  15554. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  15555. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  15556. -if test "$ac_test_FFLAGS" = set; then
  15557. - FFLAGS=$ac_save_FFLAGS
  15558. -elif test $ac_cv_prog_f77_g = yes; then
  15559. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  15560. - FFLAGS="-g -O2"
  15561. - else
  15562. - FFLAGS="-g"
  15563. - fi
  15564. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  15565. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  15566. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  15567. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  15568. + $as_echo_n "(cached) " >&6
  15569. else
  15570. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  15571. - FFLAGS="-O2"
  15572. - else
  15573. - FFLAGS=
  15574. - fi
  15575. -fi
  15576. -G77=`test $ac_compiler_gnu = yes && echo yes`
  15577. -ac_ext=c
  15578. -ac_cpp='$CPP $CPPFLAGS'
  15579. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15580. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15581. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15582. +# These are sane defaults that work on at least a few old systems.
  15583. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  15584. +# Character class describing NM global symbol codes.
  15585. +symcode='[BCDEGRST]'
  15586. +# Regexp to match symbols that can be accessed directly from C.
  15587. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  15588. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  15589. +# Define system-specific variables.
  15590. +case $host_os in
  15591. +aix*)
  15592. + symcode='[BCDT]'
  15593. + ;;
  15594. +cygwin* | mingw* | pw32* | cegcc*)
  15595. + symcode='[ABCDGISTW]'
  15596. + ;;
  15597. +hpux*)
  15598. + if test "$host_cpu" = ia64; then
  15599. + symcode='[ABCDEGRST]'
  15600. + fi
  15601. + ;;
  15602. +irix* | nonstopux*)
  15603. + symcode='[BCDEGRST]'
  15604. + ;;
  15605. +osf*)
  15606. + symcode='[BCDEGQRST]'
  15607. + ;;
  15608. +solaris*)
  15609. + symcode='[BDRT]'
  15610. + ;;
  15611. +sco3.2v5*)
  15612. + symcode='[DT]'
  15613. + ;;
  15614. +sysv4.2uw2*)
  15615. + symcode='[DT]'
  15616. + ;;
  15617. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  15618. + symcode='[ABDT]'
  15619. + ;;
  15620. +sysv4)
  15621. + symcode='[DFNSTU]'
  15622. + ;;
  15623. +esac
  15624. -# find the maximum length of command line arguments
  15625. -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  15626. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  15627. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  15628. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15629. -else
  15630. - i=0
  15631. - teststring="ABCD"
  15632. +# If we're using GNU nm, then use its standard symbol codes.
  15633. +case `$NM -V 2>&1` in
  15634. +*GNU* | *'with BFD'*)
  15635. + symcode='[ABCDGIRSTW]' ;;
  15636. +esac
  15637. - case $build_os in
  15638. - msdosdjgpp*)
  15639. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  15640. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  15641. - # during glob expansion). Even if it were fixed, the result of this
  15642. - # check would be larger than it should be.
  15643. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  15644. - ;;
  15645. +# Transform an extracted symbol line into a proper C declaration.
  15646. +# Some systems (esp. on ia64) link data and code symbols differently,
  15647. +# so use this general approach.
  15648. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  15649. - gnu*)
  15650. - # Under GNU Hurd, this test is not required because there is
  15651. - # no limit to the length of command line arguments.
  15652. - # Libtool will interpret -1 as no limit whatsoever
  15653. - lt_cv_sys_max_cmd_len=-1;
  15654. - ;;
  15655. -
  15656. - cygwin* | mingw*)
  15657. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  15658. - # about 5 minutes as the teststring grows exponentially.
  15659. - # Worse, since 9x/ME are not pre-emptively multitasking,
  15660. - # you end up with a "frozen" computer, even though with patience
  15661. - # the test eventually succeeds (with a max line length of 256k).
  15662. - # Instead, let's just punt: use the minimum linelength reported by
  15663. - # all of the supported platforms: 8192 (on NT/2K/XP).
  15664. - lt_cv_sys_max_cmd_len=8192;
  15665. - ;;
  15666. -
  15667. - amigaos*)
  15668. - # On AmigaOS with pdksh, this test takes hours, literally.
  15669. - # So we just punt and use a minimum line length of 8192.
  15670. - lt_cv_sys_max_cmd_len=8192;
  15671. - ;;
  15672. -
  15673. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  15674. - # This has been around since 386BSD, at least. Likely further.
  15675. - if test -x /sbin/sysctl; then
  15676. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  15677. - elif test -x /usr/sbin/sysctl; then
  15678. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  15679. - else
  15680. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  15681. - fi
  15682. - # And add a safety zone
  15683. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  15684. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  15685. - ;;
  15686. -
  15687. - interix*)
  15688. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  15689. - lt_cv_sys_max_cmd_len=196608
  15690. - ;;
  15691. -
  15692. - osf*)
  15693. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  15694. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  15695. - # nice to cause kernel panics so lets avoid the loop below.
  15696. - # First set a reasonable default.
  15697. - lt_cv_sys_max_cmd_len=16384
  15698. - #
  15699. - if test -x /sbin/sysconfig; then
  15700. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  15701. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  15702. - esac
  15703. - fi
  15704. - ;;
  15705. - sco3.2v5*)
  15706. - lt_cv_sys_max_cmd_len=102400
  15707. - ;;
  15708. - sysv5* | sco5v6* | sysv4.2uw2*)
  15709. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  15710. - if test -n "$kargmax"; then
  15711. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  15712. - else
  15713. - lt_cv_sys_max_cmd_len=32768
  15714. - fi
  15715. - ;;
  15716. - *)
  15717. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  15718. - if test -n "$lt_cv_sys_max_cmd_len"; then
  15719. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  15720. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  15721. - else
  15722. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  15723. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  15724. - = "XX$teststring") >/dev/null 2>&1 &&
  15725. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  15726. - lt_cv_sys_max_cmd_len=$new_result &&
  15727. - test $i != 17 # 1/2 MB should be enough
  15728. - do
  15729. - i=`expr $i + 1`
  15730. - teststring=$teststring$teststring
  15731. - done
  15732. - teststring=
  15733. - # Add a significant safety factor because C++ compilers can tack on massive
  15734. - # amounts of additional arguments before passing them to the linker.
  15735. - # It appears as though 1/2 is a usable value.
  15736. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  15737. - fi
  15738. - ;;
  15739. - esac
  15740. -
  15741. -fi
  15742. -
  15743. -if test -n $lt_cv_sys_max_cmd_len ; then
  15744. - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  15745. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  15746. -else
  15747. - { echo "$as_me:$LINENO: result: none" >&5
  15748. -echo "${ECHO_T}none" >&6; }
  15749. -fi
  15750. -
  15751. -
  15752. -
  15753. -
  15754. -
  15755. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  15756. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  15757. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  15758. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  15759. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15760. -else
  15761. -
  15762. -# These are sane defaults that work on at least a few old systems.
  15763. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  15764. -
  15765. -# Character class describing NM global symbol codes.
  15766. -symcode='[BCDEGRST]'
  15767. -
  15768. -# Regexp to match symbols that can be accessed directly from C.
  15769. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  15770. -
  15771. -# Transform an extracted symbol line into a proper C declaration
  15772. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  15773. -
  15774. -# Transform an extracted symbol line into symbol name and symbol address
  15775. -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'"
  15776. -
  15777. -# Define system-specific variables.
  15778. -case $host_os in
  15779. -aix*)
  15780. - symcode='[BCDT]'
  15781. - ;;
  15782. -cygwin* | mingw* | pw32*)
  15783. - symcode='[ABCDGISTW]'
  15784. - ;;
  15785. -hpux*) # Its linker distinguishes data from code symbols
  15786. - if test "$host_cpu" = ia64; then
  15787. - symcode='[ABCDEGRST]'
  15788. - fi
  15789. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  15790. - 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'"
  15791. - ;;
  15792. -linux* | k*bsd*-gnu)
  15793. - if test "$host_cpu" = ia64; then
  15794. - symcode='[ABCDGIRSTW]'
  15795. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  15796. - 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'"
  15797. - fi
  15798. - ;;
  15799. -irix* | nonstopux*)
  15800. - symcode='[BCDEGRST]'
  15801. - ;;
  15802. -osf*)
  15803. - symcode='[BCDEGQRST]'
  15804. - ;;
  15805. -solaris*)
  15806. - symcode='[BDRT]'
  15807. - ;;
  15808. -sco3.2v5*)
  15809. - symcode='[DT]'
  15810. - ;;
  15811. -sysv4.2uw2*)
  15812. - symcode='[DT]'
  15813. - ;;
  15814. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  15815. - symcode='[ABDT]'
  15816. - ;;
  15817. -sysv4)
  15818. - symcode='[DFNSTU]'
  15819. - ;;
  15820. -esac
  15821. +# Transform an extracted symbol line into symbol name and symbol address
  15822. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  15823. +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'"
  15824. # Handle CRLF in mingw tool chain
  15825. opt_cr=
  15826. case $build_os in
  15827. mingw*)
  15828. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  15829. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  15830. ;;
  15831. esac
  15832. -# If we're using GNU nm, then use its standard symbol codes.
  15833. -case `$NM -V 2>&1` in
  15834. -*GNU* | *'with BFD'*)
  15835. - symcode='[ABCDGIRSTW]' ;;
  15836. -esac
  15837. -
  15838. -# Try without a prefix undercore, then with it.
  15839. +# Try without a prefix underscore, then with it.
  15840. for ac_symprfx in "" "_"; do
  15841. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  15842. symxfrm="\\1 $ac_symprfx\\2 \\2"
  15843. # Write the raw and C identifiers.
  15844. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  15845. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  15846. + # Fake it for dumpbin and say T for any non-static function
  15847. + # and D for any global variable.
  15848. + # Also find C++ and __fastcall symbols from MSVC++,
  15849. + # which start with @ or ?.
  15850. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  15851. +" {last_section=section; section=\$ 3};"\
  15852. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  15853. +" \$ 0!~/External *\|/{next};"\
  15854. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  15855. +" {if(hide[section]) next};"\
  15856. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  15857. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  15858. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  15859. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  15860. +" ' prfx=^$ac_symprfx"
  15861. + else
  15862. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  15863. + fi
  15864. # Check to see that the pipe works correctly.
  15865. pipe_works=no
  15866. rm -f conftest*
  15867. - cat > conftest.$ac_ext <<EOF
  15868. + cat > conftest.$ac_ext <<_LT_EOF
  15869. #ifdef __cplusplus
  15870. extern "C" {
  15871. #endif
  15872. char nm_test_var;
  15873. -void nm_test_func(){}
  15874. +void nm_test_func(void);
  15875. +void nm_test_func(void){}
  15876. #ifdef __cplusplus
  15877. }
  15878. #endif
  15879. int main(){nm_test_var='a';nm_test_func();return(0);}
  15880. -EOF
  15881. +_LT_EOF
  15882. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15883. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  15884. (eval $ac_compile) 2>&5
  15885. ac_status=$?
  15886. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15887. - (exit $ac_status); }; then
  15888. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15889. + test $ac_status = 0; }; then
  15890. # Now try to grab the symbols.
  15891. nlist=conftest.nm
  15892. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  15893. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  15894. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  15895. ac_status=$?
  15896. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15897. - (exit $ac_status); } && test -s "$nlist"; then
  15898. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15899. + test $ac_status = 0; } && test -s "$nlist"; then
  15900. # Try sorting and uniquifying the output.
  15901. if sort "$nlist" | uniq > "$nlist"T; then
  15902. mv -f "$nlist"T "$nlist"
  15903. @@ -6431,53 +5787,55 @@
  15904. fi
  15905. # Make sure that we snagged all the symbols we need.
  15906. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  15907. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  15908. - cat <<EOF > conftest.$ac_ext
  15909. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  15910. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  15911. + cat <<_LT_EOF > conftest.$ac_ext
  15912. #ifdef __cplusplus
  15913. extern "C" {
  15914. #endif
  15915. -EOF
  15916. +_LT_EOF
  15917. # Now generate the symbol file.
  15918. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  15919. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  15920. - cat <<EOF >> conftest.$ac_ext
  15921. -#if defined (__STDC__) && __STDC__
  15922. -# define lt_ptr_t void *
  15923. -#else
  15924. -# define lt_ptr_t char *
  15925. -# define const
  15926. -#endif
  15927. + cat <<_LT_EOF >> conftest.$ac_ext
  15928. -/* The mapping between symbol names and symbols. */
  15929. +/* The mapping between symbol names and symbols. */
  15930. const struct {
  15931. const char *name;
  15932. - lt_ptr_t address;
  15933. + void *address;
  15934. }
  15935. -lt_preloaded_symbols[] =
  15936. +lt__PROGRAM__LTX_preloaded_symbols[] =
  15937. {
  15938. -EOF
  15939. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  15940. - cat <<\EOF >> conftest.$ac_ext
  15941. - {0, (lt_ptr_t) 0}
  15942. + { "@PROGRAM@", (void *) 0 },
  15943. +_LT_EOF
  15944. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  15945. + cat <<\_LT_EOF >> conftest.$ac_ext
  15946. + {0, (void *) 0}
  15947. };
  15948. +/* This works around a problem in FreeBSD linker */
  15949. +#ifdef FREEBSD_WORKAROUND
  15950. +static const void *lt_preloaded_setup() {
  15951. + return lt__PROGRAM__LTX_preloaded_symbols;
  15952. +}
  15953. +#endif
  15954. +
  15955. #ifdef __cplusplus
  15956. }
  15957. #endif
  15958. -EOF
  15959. +_LT_EOF
  15960. # Now try linking the two files.
  15961. mv conftest.$ac_objext conftstm.$ac_objext
  15962. lt_save_LIBS="$LIBS"
  15963. lt_save_CFLAGS="$CFLAGS"
  15964. LIBS="conftstm.$ac_objext"
  15965. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  15966. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15967. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  15968. (eval $ac_link) 2>&5
  15969. ac_status=$?
  15970. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15971. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  15972. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15973. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  15974. pipe_works=yes
  15975. fi
  15976. LIBS="$lt_save_LIBS"
  15977. @@ -6495,7 +5853,7 @@
  15978. echo "$progname: failed program was:" >&5
  15979. cat conftest.$ac_ext >&5
  15980. fi
  15981. - rm -f conftest* conftst*
  15982. + rm -rf conftest* conftst*
  15983. # Do not use the global_symbol_pipe unless it works.
  15984. if test "$pipe_works" = yes; then
  15985. @@ -6511,6158 +5869,3438 @@
  15986. lt_cv_sys_global_symbol_to_cdecl=
  15987. fi
  15988. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  15989. - { echo "$as_me:$LINENO: result: failed" >&5
  15990. -echo "${ECHO_T}failed" >&6; }
  15991. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  15992. +$as_echo "failed" >&6; }
  15993. else
  15994. - { echo "$as_me:$LINENO: result: ok" >&5
  15995. -echo "${ECHO_T}ok" >&6; }
  15996. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  15997. +$as_echo "ok" >&6; }
  15998. fi
  15999. -{ echo "$as_me:$LINENO: checking for objdir" >&5
  16000. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  16001. -if test "${lt_cv_objdir+set}" = set; then
  16002. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16003. -else
  16004. - rm -f .libs 2>/dev/null
  16005. -mkdir .libs 2>/dev/null
  16006. -if test -d .libs; then
  16007. - lt_cv_objdir=.libs
  16008. -else
  16009. - # MS-DOS does not allow filenames that begin with a dot.
  16010. - lt_cv_objdir=_libs
  16011. -fi
  16012. -rmdir .libs 2>/dev/null
  16013. -fi
  16014. -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  16015. -echo "${ECHO_T}$lt_cv_objdir" >&6; }
  16016. -objdir=$lt_cv_objdir
  16017. -case $host_os in
  16018. -aix3*)
  16019. - # AIX sometimes has problems with the GCC collect2 program. For some
  16020. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  16021. - # vanish in a puff of smoke.
  16022. - if test "X${COLLECT_NAMES+set}" != Xset; then
  16023. - COLLECT_NAMES=
  16024. - export COLLECT_NAMES
  16025. - fi
  16026. - ;;
  16027. -esac
  16028. -# Sed substitution that helps us do robust quoting. It backslashifies
  16029. -# metacharacters that are still active within double-quoted strings.
  16030. -Xsed='sed -e 1s/^X//'
  16031. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  16032. -# Same as above, but do not quote variable references.
  16033. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  16034. -# Sed substitution to delay expansion of an escaped shell variable in a
  16035. -# double_quote_subst'ed string.
  16036. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  16037. -# Sed substitution to avoid accidental globbing in evaled expressions
  16038. -no_glob_subst='s/\*/\\\*/g'
  16039. -# Constants:
  16040. -rm="rm -f"
  16041. -# Global variables:
  16042. -default_ofile=libtool
  16043. -can_build_shared=yes
  16044. -# All known linkers require a `.a' archive for static linking (except MSVC,
  16045. -# which needs '.lib').
  16046. -libext=a
  16047. -ltmain="$ac_aux_dir/ltmain.sh"
  16048. -ofile="$default_ofile"
  16049. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  16050. -if test -n "$ac_tool_prefix"; then
  16051. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  16052. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  16053. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16054. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16055. -if test "${ac_cv_prog_AR+set}" = set; then
  16056. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16057. -else
  16058. - if test -n "$AR"; then
  16059. - ac_cv_prog_AR="$AR" # Let the user override the test.
  16060. -else
  16061. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16062. -for as_dir in $PATH
  16063. -do
  16064. - IFS=$as_save_IFS
  16065. - test -z "$as_dir" && as_dir=.
  16066. - for ac_exec_ext in '' $ac_executable_extensions; do
  16067. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16068. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  16069. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16070. - break 2
  16071. - fi
  16072. -done
  16073. -done
  16074. -IFS=$as_save_IFS
  16075. -fi
  16076. -fi
  16077. -AR=$ac_cv_prog_AR
  16078. -if test -n "$AR"; then
  16079. - { echo "$as_me:$LINENO: result: $AR" >&5
  16080. -echo "${ECHO_T}$AR" >&6; }
  16081. -else
  16082. - { echo "$as_me:$LINENO: result: no" >&5
  16083. -echo "${ECHO_T}no" >&6; }
  16084. -fi
  16085. -fi
  16086. -if test -z "$ac_cv_prog_AR"; then
  16087. - ac_ct_AR=$AR
  16088. - # Extract the first word of "ar", so it can be a program name with args.
  16089. -set dummy ar; ac_word=$2
  16090. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16091. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16092. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  16093. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16094. -else
  16095. - if test -n "$ac_ct_AR"; then
  16096. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  16097. -else
  16098. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16099. -for as_dir in $PATH
  16100. -do
  16101. - IFS=$as_save_IFS
  16102. - test -z "$as_dir" && as_dir=.
  16103. - for ac_exec_ext in '' $ac_executable_extensions; do
  16104. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16105. - ac_cv_prog_ac_ct_AR="ar"
  16106. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16107. - break 2
  16108. - fi
  16109. -done
  16110. -done
  16111. -IFS=$as_save_IFS
  16112. -fi
  16113. -fi
  16114. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  16115. -if test -n "$ac_ct_AR"; then
  16116. - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  16117. -echo "${ECHO_T}$ac_ct_AR" >&6; }
  16118. -else
  16119. - { echo "$as_me:$LINENO: result: no" >&5
  16120. -echo "${ECHO_T}no" >&6; }
  16121. +
  16122. +
  16123. +
  16124. +
  16125. +
  16126. +# Check whether --enable-libtool-lock was given.
  16127. +if test "${enable_libtool_lock+set}" = set; then :
  16128. + enableval=$enable_libtool_lock;
  16129. fi
  16130. - if test "x$ac_ct_AR" = x; then
  16131. - AR="false"
  16132. - else
  16133. - case $cross_compiling:$ac_tool_warned in
  16134. -yes:)
  16135. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  16136. -whose name does not start with the host triplet. If you think this
  16137. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  16138. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  16139. -whose name does not start with the host triplet. If you think this
  16140. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  16141. -ac_tool_warned=yes ;;
  16142. -esac
  16143. - AR=$ac_ct_AR
  16144. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  16145. +
  16146. +# Some flags need to be propagated to the compiler or linker for good
  16147. +# libtool support.
  16148. +case $host in
  16149. +ia64-*-hpux*)
  16150. + # Find out which ABI we are using.
  16151. + echo 'int i;' > conftest.$ac_ext
  16152. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  16153. + (eval $ac_compile) 2>&5
  16154. + ac_status=$?
  16155. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16156. + test $ac_status = 0; }; then
  16157. + case `/usr/bin/file conftest.$ac_objext` in
  16158. + *ELF-32*)
  16159. + HPUX_IA64_MODE="32"
  16160. + ;;
  16161. + *ELF-64*)
  16162. + HPUX_IA64_MODE="64"
  16163. + ;;
  16164. + esac
  16165. + fi
  16166. + rm -rf conftest*
  16167. + ;;
  16168. +*-*-irix6*)
  16169. + # Find out which ABI we are using.
  16170. + echo '#line 5932 "configure"' > conftest.$ac_ext
  16171. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  16172. + (eval $ac_compile) 2>&5
  16173. + ac_status=$?
  16174. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16175. + test $ac_status = 0; }; then
  16176. + if test "$lt_cv_prog_gnu_ld" = yes; then
  16177. + case `/usr/bin/file conftest.$ac_objext` in
  16178. + *32-bit*)
  16179. + LD="${LD-ld} -melf32bsmip"
  16180. + ;;
  16181. + *N32*)
  16182. + LD="${LD-ld} -melf32bmipn32"
  16183. + ;;
  16184. + *64-bit*)
  16185. + LD="${LD-ld} -melf64bmip"
  16186. + ;;
  16187. + esac
  16188. + else
  16189. + case `/usr/bin/file conftest.$ac_objext` in
  16190. + *32-bit*)
  16191. + LD="${LD-ld} -32"
  16192. + ;;
  16193. + *N32*)
  16194. + LD="${LD-ld} -n32"
  16195. + ;;
  16196. + *64-bit*)
  16197. + LD="${LD-ld} -64"
  16198. + ;;
  16199. + esac
  16200. + fi
  16201. + fi
  16202. + rm -rf conftest*
  16203. + ;;
  16204. +
  16205. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  16206. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  16207. + # Find out which ABI we are using.
  16208. + echo 'int i;' > conftest.$ac_ext
  16209. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  16210. + (eval $ac_compile) 2>&5
  16211. + ac_status=$?
  16212. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16213. + test $ac_status = 0; }; then
  16214. + case `/usr/bin/file conftest.o` in
  16215. + *32-bit*)
  16216. + case $host in
  16217. + x86_64-*kfreebsd*-gnu)
  16218. + LD="${LD-ld} -m elf_i386_fbsd"
  16219. + ;;
  16220. + x86_64-*linux*)
  16221. + LD="${LD-ld} -m elf_i386"
  16222. + ;;
  16223. + ppc64-*linux*|powerpc64-*linux*)
  16224. + LD="${LD-ld} -m elf32ppclinux"
  16225. + ;;
  16226. + s390x-*linux*)
  16227. + LD="${LD-ld} -m elf_s390"
  16228. + ;;
  16229. + sparc64-*linux*)
  16230. + LD="${LD-ld} -m elf32_sparc"
  16231. + ;;
  16232. + esac
  16233. + ;;
  16234. + *64-bit*)
  16235. + case $host in
  16236. + x86_64-*kfreebsd*-gnu)
  16237. + LD="${LD-ld} -m elf_x86_64_fbsd"
  16238. + ;;
  16239. + x86_64-*linux*)
  16240. + LD="${LD-ld} -m elf_x86_64"
  16241. + ;;
  16242. + ppc*-*linux*|powerpc*-*linux*)
  16243. + LD="${LD-ld} -m elf64ppc"
  16244. + ;;
  16245. + s390*-*linux*|s390*-*tpf*)
  16246. + LD="${LD-ld} -m elf64_s390"
  16247. + ;;
  16248. + sparc*-*linux*)
  16249. + LD="${LD-ld} -m elf64_sparc"
  16250. + ;;
  16251. + esac
  16252. + ;;
  16253. + esac
  16254. fi
  16255. + rm -rf conftest*
  16256. + ;;
  16257. +
  16258. +*-*-sco3.2v5*)
  16259. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  16260. + SAVE_CFLAGS="$CFLAGS"
  16261. + CFLAGS="$CFLAGS -belf"
  16262. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  16263. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  16264. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  16265. + $as_echo_n "(cached) " >&6
  16266. else
  16267. - AR="$ac_cv_prog_AR"
  16268. + ac_ext=c
  16269. +ac_cpp='$CPP $CPPFLAGS'
  16270. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16271. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16272. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16273. +
  16274. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16275. +/* end confdefs.h. */
  16276. +
  16277. +int
  16278. +main ()
  16279. +{
  16280. +
  16281. + ;
  16282. + return 0;
  16283. +}
  16284. +_ACEOF
  16285. +if ac_fn_c_try_link "$LINENO"; then :
  16286. + lt_cv_cc_needs_belf=yes
  16287. +else
  16288. + lt_cv_cc_needs_belf=no
  16289. fi
  16290. +rm -f core conftest.err conftest.$ac_objext \
  16291. + conftest$ac_exeext conftest.$ac_ext
  16292. + ac_ext=c
  16293. +ac_cpp='$CPP $CPPFLAGS'
  16294. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16295. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16296. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16297. -if test -n "$ac_tool_prefix"; then
  16298. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  16299. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  16300. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16301. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16302. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  16303. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16304. +fi
  16305. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  16306. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  16307. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  16308. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  16309. + CFLAGS="$SAVE_CFLAGS"
  16310. + fi
  16311. + ;;
  16312. +sparc*-*solaris*)
  16313. + # Find out which ABI we are using.
  16314. + echo 'int i;' > conftest.$ac_ext
  16315. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  16316. + (eval $ac_compile) 2>&5
  16317. + ac_status=$?
  16318. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16319. + test $ac_status = 0; }; then
  16320. + case `/usr/bin/file conftest.o` in
  16321. + *64-bit*)
  16322. + case $lt_cv_prog_gnu_ld in
  16323. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  16324. + *)
  16325. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  16326. + LD="${LD-ld} -64"
  16327. + fi
  16328. + ;;
  16329. + esac
  16330. + ;;
  16331. + esac
  16332. + fi
  16333. + rm -rf conftest*
  16334. + ;;
  16335. +esac
  16336. +
  16337. +need_locks="$enable_libtool_lock"
  16338. +
  16339. +
  16340. + case $host_os in
  16341. + rhapsody* | darwin*)
  16342. + if test -n "$ac_tool_prefix"; then
  16343. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  16344. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  16345. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16346. +$as_echo_n "checking for $ac_word... " >&6; }
  16347. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  16348. + $as_echo_n "(cached) " >&6
  16349. else
  16350. - if test -n "$RANLIB"; then
  16351. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  16352. + if test -n "$DSYMUTIL"; then
  16353. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  16354. else
  16355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16356. for as_dir in $PATH
  16357. do
  16358. IFS=$as_save_IFS
  16359. test -z "$as_dir" && as_dir=.
  16360. - for ac_exec_ext in '' $ac_executable_extensions; do
  16361. + for ac_exec_ext in '' $ac_executable_extensions; do
  16362. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16363. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  16364. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16365. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  16366. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16367. break 2
  16368. fi
  16369. done
  16370. -done
  16371. + done
  16372. IFS=$as_save_IFS
  16373. fi
  16374. fi
  16375. -RANLIB=$ac_cv_prog_RANLIB
  16376. -if test -n "$RANLIB"; then
  16377. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  16378. -echo "${ECHO_T}$RANLIB" >&6; }
  16379. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  16380. +if test -n "$DSYMUTIL"; then
  16381. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  16382. +$as_echo "$DSYMUTIL" >&6; }
  16383. else
  16384. - { echo "$as_me:$LINENO: result: no" >&5
  16385. -echo "${ECHO_T}no" >&6; }
  16386. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16387. +$as_echo "no" >&6; }
  16388. fi
  16389. fi
  16390. -if test -z "$ac_cv_prog_RANLIB"; then
  16391. - ac_ct_RANLIB=$RANLIB
  16392. - # Extract the first word of "ranlib", so it can be a program name with args.
  16393. -set dummy ranlib; ac_word=$2
  16394. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16395. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16396. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  16397. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16398. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  16399. + ac_ct_DSYMUTIL=$DSYMUTIL
  16400. + # Extract the first word of "dsymutil", so it can be a program name with args.
  16401. +set dummy dsymutil; ac_word=$2
  16402. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16403. +$as_echo_n "checking for $ac_word... " >&6; }
  16404. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  16405. + $as_echo_n "(cached) " >&6
  16406. else
  16407. - if test -n "$ac_ct_RANLIB"; then
  16408. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  16409. + if test -n "$ac_ct_DSYMUTIL"; then
  16410. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  16411. else
  16412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16413. for as_dir in $PATH
  16414. do
  16415. IFS=$as_save_IFS
  16416. test -z "$as_dir" && as_dir=.
  16417. - for ac_exec_ext in '' $ac_executable_extensions; do
  16418. + for ac_exec_ext in '' $ac_executable_extensions; do
  16419. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16420. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  16421. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16422. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  16423. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16424. break 2
  16425. fi
  16426. done
  16427. -done
  16428. + done
  16429. IFS=$as_save_IFS
  16430. fi
  16431. fi
  16432. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  16433. -if test -n "$ac_ct_RANLIB"; then
  16434. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  16435. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  16436. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  16437. +if test -n "$ac_ct_DSYMUTIL"; then
  16438. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  16439. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  16440. else
  16441. - { echo "$as_me:$LINENO: result: no" >&5
  16442. -echo "${ECHO_T}no" >&6; }
  16443. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16444. +$as_echo "no" >&6; }
  16445. fi
  16446. - if test "x$ac_ct_RANLIB" = x; then
  16447. - RANLIB=":"
  16448. + if test "x$ac_ct_DSYMUTIL" = x; then
  16449. + DSYMUTIL=":"
  16450. else
  16451. case $cross_compiling:$ac_tool_warned in
  16452. yes:)
  16453. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  16454. -whose name does not start with the host triplet. If you think this
  16455. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  16456. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  16457. -whose name does not start with the host triplet. If you think this
  16458. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  16459. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16460. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16461. ac_tool_warned=yes ;;
  16462. esac
  16463. - RANLIB=$ac_ct_RANLIB
  16464. + DSYMUTIL=$ac_ct_DSYMUTIL
  16465. fi
  16466. else
  16467. - RANLIB="$ac_cv_prog_RANLIB"
  16468. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  16469. fi
  16470. -if test -n "$ac_tool_prefix"; then
  16471. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  16472. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  16473. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16474. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16475. -if test "${ac_cv_prog_STRIP+set}" = set; then
  16476. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16477. + if test -n "$ac_tool_prefix"; then
  16478. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  16479. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  16480. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16481. +$as_echo_n "checking for $ac_word... " >&6; }
  16482. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  16483. + $as_echo_n "(cached) " >&6
  16484. else
  16485. - if test -n "$STRIP"; then
  16486. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  16487. + if test -n "$NMEDIT"; then
  16488. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  16489. else
  16490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16491. for as_dir in $PATH
  16492. do
  16493. IFS=$as_save_IFS
  16494. test -z "$as_dir" && as_dir=.
  16495. - for ac_exec_ext in '' $ac_executable_extensions; do
  16496. + for ac_exec_ext in '' $ac_executable_extensions; do
  16497. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16498. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  16499. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16500. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  16501. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16502. break 2
  16503. fi
  16504. done
  16505. -done
  16506. + done
  16507. IFS=$as_save_IFS
  16508. fi
  16509. fi
  16510. -STRIP=$ac_cv_prog_STRIP
  16511. -if test -n "$STRIP"; then
  16512. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  16513. -echo "${ECHO_T}$STRIP" >&6; }
  16514. +NMEDIT=$ac_cv_prog_NMEDIT
  16515. +if test -n "$NMEDIT"; then
  16516. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  16517. +$as_echo "$NMEDIT" >&6; }
  16518. else
  16519. - { echo "$as_me:$LINENO: result: no" >&5
  16520. -echo "${ECHO_T}no" >&6; }
  16521. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16522. +$as_echo "no" >&6; }
  16523. fi
  16524. fi
  16525. -if test -z "$ac_cv_prog_STRIP"; then
  16526. - ac_ct_STRIP=$STRIP
  16527. - # Extract the first word of "strip", so it can be a program name with args.
  16528. -set dummy strip; ac_word=$2
  16529. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16530. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16531. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  16532. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16533. +if test -z "$ac_cv_prog_NMEDIT"; then
  16534. + ac_ct_NMEDIT=$NMEDIT
  16535. + # Extract the first word of "nmedit", so it can be a program name with args.
  16536. +set dummy nmedit; ac_word=$2
  16537. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16538. +$as_echo_n "checking for $ac_word... " >&6; }
  16539. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  16540. + $as_echo_n "(cached) " >&6
  16541. else
  16542. - if test -n "$ac_ct_STRIP"; then
  16543. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  16544. + if test -n "$ac_ct_NMEDIT"; then
  16545. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  16546. else
  16547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16548. for as_dir in $PATH
  16549. do
  16550. IFS=$as_save_IFS
  16551. test -z "$as_dir" && as_dir=.
  16552. - for ac_exec_ext in '' $ac_executable_extensions; do
  16553. + for ac_exec_ext in '' $ac_executable_extensions; do
  16554. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16555. - ac_cv_prog_ac_ct_STRIP="strip"
  16556. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16557. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  16558. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16559. break 2
  16560. fi
  16561. done
  16562. -done
  16563. + done
  16564. IFS=$as_save_IFS
  16565. fi
  16566. fi
  16567. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  16568. -if test -n "$ac_ct_STRIP"; then
  16569. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  16570. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  16571. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  16572. +if test -n "$ac_ct_NMEDIT"; then
  16573. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  16574. +$as_echo "$ac_ct_NMEDIT" >&6; }
  16575. else
  16576. - { echo "$as_me:$LINENO: result: no" >&5
  16577. -echo "${ECHO_T}no" >&6; }
  16578. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16579. +$as_echo "no" >&6; }
  16580. fi
  16581. - if test "x$ac_ct_STRIP" = x; then
  16582. - STRIP=":"
  16583. + if test "x$ac_ct_NMEDIT" = x; then
  16584. + NMEDIT=":"
  16585. else
  16586. case $cross_compiling:$ac_tool_warned in
  16587. yes:)
  16588. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  16589. -whose name does not start with the host triplet. If you think this
  16590. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  16591. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  16592. -whose name does not start with the host triplet. If you think this
  16593. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  16594. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16595. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16596. ac_tool_warned=yes ;;
  16597. esac
  16598. - STRIP=$ac_ct_STRIP
  16599. + NMEDIT=$ac_ct_NMEDIT
  16600. fi
  16601. else
  16602. - STRIP="$ac_cv_prog_STRIP"
  16603. + NMEDIT="$ac_cv_prog_NMEDIT"
  16604. fi
  16605. + if test -n "$ac_tool_prefix"; then
  16606. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  16607. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  16608. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16609. +$as_echo_n "checking for $ac_word... " >&6; }
  16610. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  16611. + $as_echo_n "(cached) " >&6
  16612. +else
  16613. + if test -n "$LIPO"; then
  16614. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  16615. +else
  16616. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16617. +for as_dir in $PATH
  16618. +do
  16619. + IFS=$as_save_IFS
  16620. + test -z "$as_dir" && as_dir=.
  16621. + for ac_exec_ext in '' $ac_executable_extensions; do
  16622. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16623. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  16624. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16625. + break 2
  16626. + fi
  16627. +done
  16628. + done
  16629. +IFS=$as_save_IFS
  16630. -old_CC="$CC"
  16631. -old_CFLAGS="$CFLAGS"
  16632. -
  16633. -# Set sane defaults for various variables
  16634. -test -z "$AR" && AR=ar
  16635. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  16636. -test -z "$AS" && AS=as
  16637. -test -z "$CC" && CC=cc
  16638. -test -z "$LTCC" && LTCC=$CC
  16639. -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  16640. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  16641. -test -z "$LD" && LD=ld
  16642. -test -z "$LN_S" && LN_S="ln -s"
  16643. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  16644. -test -z "$NM" && NM=nm
  16645. -test -z "$SED" && SED=sed
  16646. -test -z "$OBJDUMP" && OBJDUMP=objdump
  16647. -test -z "$RANLIB" && RANLIB=:
  16648. -test -z "$STRIP" && STRIP=:
  16649. -test -z "$ac_objext" && ac_objext=o
  16650. +fi
  16651. +fi
  16652. +LIPO=$ac_cv_prog_LIPO
  16653. +if test -n "$LIPO"; then
  16654. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  16655. +$as_echo "$LIPO" >&6; }
  16656. +else
  16657. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16658. +$as_echo "no" >&6; }
  16659. +fi
  16660. -# Determine commands to create old-style static archives.
  16661. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  16662. -old_postinstall_cmds='chmod 644 $oldlib'
  16663. -old_postuninstall_cmds=
  16664. -if test -n "$RANLIB"; then
  16665. - case $host_os in
  16666. - openbsd*)
  16667. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  16668. - ;;
  16669. - *)
  16670. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  16671. - ;;
  16672. - esac
  16673. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  16674. fi
  16675. -
  16676. -for cc_temp in $compiler""; do
  16677. - case $cc_temp in
  16678. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16679. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16680. - \-*) ;;
  16681. - *) break;;
  16682. - esac
  16683. +if test -z "$ac_cv_prog_LIPO"; then
  16684. + ac_ct_LIPO=$LIPO
  16685. + # Extract the first word of "lipo", so it can be a program name with args.
  16686. +set dummy lipo; ac_word=$2
  16687. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16688. +$as_echo_n "checking for $ac_word... " >&6; }
  16689. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  16690. + $as_echo_n "(cached) " >&6
  16691. +else
  16692. + if test -n "$ac_ct_LIPO"; then
  16693. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  16694. +else
  16695. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16696. +for as_dir in $PATH
  16697. +do
  16698. + IFS=$as_save_IFS
  16699. + test -z "$as_dir" && as_dir=.
  16700. + for ac_exec_ext in '' $ac_executable_extensions; do
  16701. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16702. + ac_cv_prog_ac_ct_LIPO="lipo"
  16703. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16704. + break 2
  16705. + fi
  16706. done
  16707. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16708. + done
  16709. +IFS=$as_save_IFS
  16710. +fi
  16711. +fi
  16712. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  16713. +if test -n "$ac_ct_LIPO"; then
  16714. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  16715. +$as_echo "$ac_ct_LIPO" >&6; }
  16716. +else
  16717. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16718. +$as_echo "no" >&6; }
  16719. +fi
  16720. -# Only perform the check for file, if the check method requires it
  16721. -case $deplibs_check_method in
  16722. -file_magic*)
  16723. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  16724. - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  16725. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  16726. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  16727. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16728. -else
  16729. - case $MAGIC_CMD in
  16730. -[\\/*] | ?:[\\/]*)
  16731. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  16732. - ;;
  16733. -*)
  16734. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  16735. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16736. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  16737. - for ac_dir in $ac_dummy; do
  16738. - IFS="$lt_save_ifs"
  16739. - test -z "$ac_dir" && ac_dir=.
  16740. - if test -f $ac_dir/${ac_tool_prefix}file; then
  16741. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  16742. - if test -n "$file_magic_test_file"; then
  16743. - case $deplibs_check_method in
  16744. - "file_magic "*)
  16745. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  16746. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  16747. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  16748. - $EGREP "$file_magic_regex" > /dev/null; then
  16749. - :
  16750. - else
  16751. - cat <<EOF 1>&2
  16752. -
  16753. -*** Warning: the command libtool uses to detect shared libraries,
  16754. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  16755. -*** The result is that libtool may fail to recognize shared libraries
  16756. -*** as such. This will affect the creation of libtool libraries that
  16757. -*** depend on shared libraries, but programs linked with such libtool
  16758. -*** libraries will work regardless of this problem. Nevertheless, you
  16759. -*** may want to report the problem to your system manager and/or to
  16760. -*** bug-libtool@gnu.org
  16761. -
  16762. -EOF
  16763. - fi ;;
  16764. - esac
  16765. - fi
  16766. - break
  16767. - fi
  16768. - done
  16769. - IFS="$lt_save_ifs"
  16770. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  16771. - ;;
  16772. + if test "x$ac_ct_LIPO" = x; then
  16773. + LIPO=":"
  16774. + else
  16775. + case $cross_compiling:$ac_tool_warned in
  16776. +yes:)
  16777. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16778. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16779. +ac_tool_warned=yes ;;
  16780. esac
  16781. + LIPO=$ac_ct_LIPO
  16782. + fi
  16783. +else
  16784. + LIPO="$ac_cv_prog_LIPO"
  16785. fi
  16786. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  16787. -if test -n "$MAGIC_CMD"; then
  16788. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  16789. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  16790. + if test -n "$ac_tool_prefix"; then
  16791. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  16792. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  16793. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16794. +$as_echo_n "checking for $ac_word... " >&6; }
  16795. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  16796. + $as_echo_n "(cached) " >&6
  16797. else
  16798. - { echo "$as_me:$LINENO: result: no" >&5
  16799. -echo "${ECHO_T}no" >&6; }
  16800. -fi
  16801. + if test -n "$OTOOL"; then
  16802. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  16803. +else
  16804. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16805. +for as_dir in $PATH
  16806. +do
  16807. + IFS=$as_save_IFS
  16808. + test -z "$as_dir" && as_dir=.
  16809. + for ac_exec_ext in '' $ac_executable_extensions; do
  16810. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16811. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  16812. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16813. + break 2
  16814. + fi
  16815. +done
  16816. + done
  16817. +IFS=$as_save_IFS
  16818. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  16819. - if test -n "$ac_tool_prefix"; then
  16820. - { echo "$as_me:$LINENO: checking for file" >&5
  16821. -echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  16822. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  16823. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16824. +fi
  16825. +fi
  16826. +OTOOL=$ac_cv_prog_OTOOL
  16827. +if test -n "$OTOOL"; then
  16828. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  16829. +$as_echo "$OTOOL" >&6; }
  16830. else
  16831. - case $MAGIC_CMD in
  16832. -[\\/*] | ?:[\\/]*)
  16833. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  16834. - ;;
  16835. -*)
  16836. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  16837. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16838. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  16839. - for ac_dir in $ac_dummy; do
  16840. - IFS="$lt_save_ifs"
  16841. - test -z "$ac_dir" && ac_dir=.
  16842. - if test -f $ac_dir/file; then
  16843. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  16844. - if test -n "$file_magic_test_file"; then
  16845. - case $deplibs_check_method in
  16846. - "file_magic "*)
  16847. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  16848. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  16849. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  16850. - $EGREP "$file_magic_regex" > /dev/null; then
  16851. - :
  16852. - else
  16853. - cat <<EOF 1>&2
  16854. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16855. +$as_echo "no" >&6; }
  16856. +fi
  16857. -*** Warning: the command libtool uses to detect shared libraries,
  16858. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  16859. -*** The result is that libtool may fail to recognize shared libraries
  16860. -*** as such. This will affect the creation of libtool libraries that
  16861. -*** depend on shared libraries, but programs linked with such libtool
  16862. -*** libraries will work regardless of this problem. Nevertheless, you
  16863. -*** may want to report the problem to your system manager and/or to
  16864. -*** bug-libtool@gnu.org
  16865. -EOF
  16866. - fi ;;
  16867. - esac
  16868. - fi
  16869. - break
  16870. - fi
  16871. - done
  16872. - IFS="$lt_save_ifs"
  16873. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  16874. - ;;
  16875. -esac
  16876. fi
  16877. +if test -z "$ac_cv_prog_OTOOL"; then
  16878. + ac_ct_OTOOL=$OTOOL
  16879. + # Extract the first word of "otool", so it can be a program name with args.
  16880. +set dummy otool; ac_word=$2
  16881. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16882. +$as_echo_n "checking for $ac_word... " >&6; }
  16883. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  16884. + $as_echo_n "(cached) " >&6
  16885. +else
  16886. + if test -n "$ac_ct_OTOOL"; then
  16887. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  16888. +else
  16889. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16890. +for as_dir in $PATH
  16891. +do
  16892. + IFS=$as_save_IFS
  16893. + test -z "$as_dir" && as_dir=.
  16894. + for ac_exec_ext in '' $ac_executable_extensions; do
  16895. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16896. + ac_cv_prog_ac_ct_OTOOL="otool"
  16897. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16898. + break 2
  16899. + fi
  16900. +done
  16901. + done
  16902. +IFS=$as_save_IFS
  16903. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  16904. -if test -n "$MAGIC_CMD"; then
  16905. - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  16906. -echo "${ECHO_T}$MAGIC_CMD" >&6; }
  16907. +fi
  16908. +fi
  16909. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  16910. +if test -n "$ac_ct_OTOOL"; then
  16911. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  16912. +$as_echo "$ac_ct_OTOOL" >&6; }
  16913. else
  16914. - { echo "$as_me:$LINENO: result: no" >&5
  16915. -echo "${ECHO_T}no" >&6; }
  16916. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16917. +$as_echo "no" >&6; }
  16918. fi
  16919. + if test "x$ac_ct_OTOOL" = x; then
  16920. + OTOOL=":"
  16921. else
  16922. - MAGIC_CMD=:
  16923. + case $cross_compiling:$ac_tool_warned in
  16924. +yes:)
  16925. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  16926. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16927. +ac_tool_warned=yes ;;
  16928. +esac
  16929. + OTOOL=$ac_ct_OTOOL
  16930. fi
  16931. +else
  16932. + OTOOL="$ac_cv_prog_OTOOL"
  16933. fi
  16934. + if test -n "$ac_tool_prefix"; then
  16935. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  16936. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  16937. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16938. +$as_echo_n "checking for $ac_word... " >&6; }
  16939. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  16940. + $as_echo_n "(cached) " >&6
  16941. +else
  16942. + if test -n "$OTOOL64"; then
  16943. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  16944. +else
  16945. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16946. +for as_dir in $PATH
  16947. +do
  16948. + IFS=$as_save_IFS
  16949. + test -z "$as_dir" && as_dir=.
  16950. + for ac_exec_ext in '' $ac_executable_extensions; do
  16951. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16952. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  16953. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16954. + break 2
  16955. fi
  16956. - ;;
  16957. -esac
  16958. -
  16959. -enable_dlopen=no
  16960. -enable_win32_dll=no
  16961. +done
  16962. + done
  16963. +IFS=$as_save_IFS
  16964. -# Check whether --enable-libtool-lock was given.
  16965. -if test "${enable_libtool_lock+set}" = set; then
  16966. - enableval=$enable_libtool_lock;
  16967. +fi
  16968. +fi
  16969. +OTOOL64=$ac_cv_prog_OTOOL64
  16970. +if test -n "$OTOOL64"; then
  16971. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  16972. +$as_echo "$OTOOL64" >&6; }
  16973. +else
  16974. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16975. +$as_echo "no" >&6; }
  16976. fi
  16977. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  16978. +fi
  16979. +if test -z "$ac_cv_prog_OTOOL64"; then
  16980. + ac_ct_OTOOL64=$OTOOL64
  16981. + # Extract the first word of "otool64", so it can be a program name with args.
  16982. +set dummy otool64; ac_word=$2
  16983. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16984. +$as_echo_n "checking for $ac_word... " >&6; }
  16985. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  16986. + $as_echo_n "(cached) " >&6
  16987. +else
  16988. + if test -n "$ac_ct_OTOOL64"; then
  16989. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  16990. +else
  16991. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16992. +for as_dir in $PATH
  16993. +do
  16994. + IFS=$as_save_IFS
  16995. + test -z "$as_dir" && as_dir=.
  16996. + for ac_exec_ext in '' $ac_executable_extensions; do
  16997. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16998. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  16999. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17000. + break 2
  17001. + fi
  17002. +done
  17003. + done
  17004. +IFS=$as_save_IFS
  17005. -# Check whether --with-pic was given.
  17006. -if test "${with_pic+set}" = set; then
  17007. - withval=$with_pic; pic_mode="$withval"
  17008. +fi
  17009. +fi
  17010. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  17011. +if test -n "$ac_ct_OTOOL64"; then
  17012. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  17013. +$as_echo "$ac_ct_OTOOL64" >&6; }
  17014. else
  17015. - pic_mode=default
  17016. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17017. +$as_echo "no" >&6; }
  17018. fi
  17019. -test -z "$pic_mode" && pic_mode=default
  17020. + if test "x$ac_ct_OTOOL64" = x; then
  17021. + OTOOL64=":"
  17022. + else
  17023. + case $cross_compiling:$ac_tool_warned in
  17024. +yes:)
  17025. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17026. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17027. +ac_tool_warned=yes ;;
  17028. +esac
  17029. + OTOOL64=$ac_ct_OTOOL64
  17030. + fi
  17031. +else
  17032. + OTOOL64="$ac_cv_prog_OTOOL64"
  17033. +fi
  17034. -# Use C for the default configuration in the libtool script
  17035. -tagname=
  17036. -lt_save_CC="$CC"
  17037. -ac_ext=c
  17038. -ac_cpp='$CPP $CPPFLAGS'
  17039. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17040. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17041. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17042. -# Source file extension for C test sources.
  17043. -ac_ext=c
  17044. -# Object file extension for compiled C test sources.
  17045. -objext=o
  17046. -objext=$objext
  17047. -# Code to be used in simple compile tests
  17048. -lt_simple_compile_test_code="int some_variable = 0;"
  17049. -# Code to be used in simple link tests
  17050. -lt_simple_link_test_code='int main(){return(0);}'
  17051. -# If no C compiler was specified, use CC.
  17052. -LTCC=${LTCC-"$CC"}
  17053. -# If no C compiler flags were specified, use CFLAGS.
  17054. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17055. -# Allow CC to be a program name with arguments.
  17056. -compiler=$CC
  17057. -# save warnings/boilerplate of simple test code
  17058. -ac_outfile=conftest.$ac_objext
  17059. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  17060. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17061. -_lt_compiler_boilerplate=`cat conftest.err`
  17062. -$rm conftest*
  17063. -ac_outfile=conftest.$ac_objext
  17064. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  17065. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17066. -_lt_linker_boilerplate=`cat conftest.err`
  17067. -$rm conftest*
  17068. -lt_prog_compiler_no_builtin_flag=
  17069. -if test "$GCC" = yes; then
  17070. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  17071. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  17072. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  17073. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  17074. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17075. -else
  17076. - lt_cv_prog_compiler_rtti_exceptions=no
  17077. - ac_outfile=conftest.$ac_objext
  17078. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17079. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  17080. - # Insert the option either (1) after the last *FLAGS variable, or
  17081. - # (2) before a word containing "conftest.", or (3) at the end.
  17082. - # Note that $ac_compile itself does not contain backslashes and begins
  17083. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  17084. - # The option is referenced via a variable to avoid confusing sed.
  17085. - lt_compile=`echo "$ac_compile" | $SED \
  17086. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17087. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17088. - -e 's:$: $lt_compiler_flag:'`
  17089. - (eval echo "\"\$as_me:7151: $lt_compile\"" >&5)
  17090. - (eval "$lt_compile" 2>conftest.err)
  17091. - ac_status=$?
  17092. - cat conftest.err >&5
  17093. - echo "$as_me:7155: \$? = $ac_status" >&5
  17094. - if (exit $ac_status) && test -s "$ac_outfile"; then
  17095. - # The compiler can only warn and ignore the option if not recognized
  17096. - # So say no if there are warnings other than the usual output.
  17097. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  17098. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17099. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  17100. - lt_cv_prog_compiler_rtti_exceptions=yes
  17101. - fi
  17102. - fi
  17103. - $rm conftest*
  17104. -fi
  17105. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  17106. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  17107. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  17108. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  17109. -else
  17110. - :
  17111. -fi
  17112. -fi
  17113. -lt_prog_compiler_wl=
  17114. -lt_prog_compiler_pic=
  17115. -lt_prog_compiler_static=
  17116. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  17117. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  17118. - if test "$GCC" = yes; then
  17119. - lt_prog_compiler_wl='-Wl,'
  17120. - lt_prog_compiler_static='-static'
  17121. - case $host_os in
  17122. - aix*)
  17123. - # All AIX code is PIC.
  17124. - if test "$host_cpu" = ia64; then
  17125. - # AIX 5 now supports IA64 processor
  17126. - lt_prog_compiler_static='-Bstatic'
  17127. +
  17128. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  17129. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  17130. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  17131. + $as_echo_n "(cached) " >&6
  17132. +else
  17133. + lt_cv_apple_cc_single_mod=no
  17134. + if test -z "${LT_MULTI_MODULE}"; then
  17135. + # By default we will add the -single_module flag. You can override
  17136. + # by either setting the environment variable LT_MULTI_MODULE
  17137. + # non-empty at configure time, or by adding -multi_module to the
  17138. + # link flags.
  17139. + rm -rf libconftest.dylib*
  17140. + echo "int foo(void){return 1;}" > conftest.c
  17141. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  17142. +-dynamiclib -Wl,-single_module conftest.c" >&5
  17143. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  17144. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  17145. + _lt_result=$?
  17146. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  17147. + lt_cv_apple_cc_single_mod=yes
  17148. + else
  17149. + cat conftest.err >&5
  17150. + fi
  17151. + rm -rf libconftest.dylib*
  17152. + rm -f conftest.*
  17153. fi
  17154. - ;;
  17155. +fi
  17156. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  17157. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  17158. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  17159. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  17160. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  17161. + $as_echo_n "(cached) " >&6
  17162. +else
  17163. + lt_cv_ld_exported_symbols_list=no
  17164. + save_LDFLAGS=$LDFLAGS
  17165. + echo "_main" > conftest.sym
  17166. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  17167. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17168. +/* end confdefs.h. */
  17169. - amigaos*)
  17170. - # FIXME: we need at least 68020 code to build shared libraries, but
  17171. - # adding the `-m68020' flag to GCC prevents building anything better,
  17172. - # like `-m68040'.
  17173. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  17174. - ;;
  17175. +int
  17176. +main ()
  17177. +{
  17178. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  17179. - # PIC is the default for these OSes.
  17180. - ;;
  17181. + ;
  17182. + return 0;
  17183. +}
  17184. +_ACEOF
  17185. +if ac_fn_c_try_link "$LINENO"; then :
  17186. + lt_cv_ld_exported_symbols_list=yes
  17187. +else
  17188. + lt_cv_ld_exported_symbols_list=no
  17189. +fi
  17190. +rm -f core conftest.err conftest.$ac_objext \
  17191. + conftest$ac_exeext conftest.$ac_ext
  17192. + LDFLAGS="$save_LDFLAGS"
  17193. - mingw* | cygwin* | pw32* | os2*)
  17194. - # This hack is so that the source file can tell whether it is being
  17195. - # built for inclusion in a dll (and should export symbols for example).
  17196. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  17197. - # (--disable-auto-import) libraries
  17198. - lt_prog_compiler_pic='-DDLL_EXPORT'
  17199. - ;;
  17200. +fi
  17201. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  17202. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  17203. + case $host_os in
  17204. + rhapsody* | darwin1.[012])
  17205. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  17206. + darwin1.*)
  17207. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  17208. + darwin*) # darwin 5.x on
  17209. + # if running on 10.5 or later, the deployment target defaults
  17210. + # to the OS version, if on x86, and 10.4, the deployment
  17211. + # target defaults to 10.4. Don't you love it?
  17212. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  17213. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  17214. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  17215. + 10.[012]*)
  17216. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  17217. + 10.*)
  17218. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  17219. + esac
  17220. + ;;
  17221. + esac
  17222. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  17223. + _lt_dar_single_mod='$single_module'
  17224. + fi
  17225. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  17226. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  17227. + else
  17228. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17229. + fi
  17230. + if test "$DSYMUTIL" != ":"; then
  17231. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  17232. + else
  17233. + _lt_dsymutil=
  17234. + fi
  17235. + ;;
  17236. + esac
  17237. - darwin* | rhapsody*)
  17238. - # PIC is the default on this platform
  17239. - # Common symbols not allowed in MH_DYLIB files
  17240. - lt_prog_compiler_pic='-fno-common'
  17241. - ;;
  17242. +ac_ext=c
  17243. +ac_cpp='$CPP $CPPFLAGS'
  17244. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17245. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17246. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17247. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  17248. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  17249. +# On Suns, sometimes $CPP names a directory.
  17250. +if test -n "$CPP" && test -d "$CPP"; then
  17251. + CPP=
  17252. +fi
  17253. +if test -z "$CPP"; then
  17254. + if test "${ac_cv_prog_CPP+set}" = set; then :
  17255. + $as_echo_n "(cached) " >&6
  17256. +else
  17257. + # Double quotes because CPP needs to be expanded
  17258. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  17259. + do
  17260. + ac_preproc_ok=false
  17261. +for ac_c_preproc_warn_flag in '' yes
  17262. +do
  17263. + # Use a header file that comes with gcc, so configuring glibc
  17264. + # with a fresh cross-compiler works.
  17265. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17266. + # <limits.h> exists even on freestanding compilers.
  17267. + # On the NeXT, cc -E runs the code through the compiler's parser,
  17268. + # not just through cpp. "Syntax error" is here to catch this case.
  17269. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17270. +/* end confdefs.h. */
  17271. +#ifdef __STDC__
  17272. +# include <limits.h>
  17273. +#else
  17274. +# include <assert.h>
  17275. +#endif
  17276. + Syntax error
  17277. +_ACEOF
  17278. +if ac_fn_c_try_cpp "$LINENO"; then :
  17279. - interix[3-9]*)
  17280. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  17281. - # Instead, we relocate shared libraries at runtime.
  17282. - ;;
  17283. +else
  17284. + # Broken: fails on valid input.
  17285. +continue
  17286. +fi
  17287. +rm -f conftest.err conftest.$ac_ext
  17288. - msdosdjgpp*)
  17289. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  17290. - # on systems that don't support them.
  17291. - lt_prog_compiler_can_build_shared=no
  17292. - enable_shared=no
  17293. - ;;
  17294. + # OK, works on sane cases. Now check whether nonexistent headers
  17295. + # can be detected and how.
  17296. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17297. +/* end confdefs.h. */
  17298. +#include <ac_nonexistent.h>
  17299. +_ACEOF
  17300. +if ac_fn_c_try_cpp "$LINENO"; then :
  17301. + # Broken: success on invalid input.
  17302. +continue
  17303. +else
  17304. + # Passes both tests.
  17305. +ac_preproc_ok=:
  17306. +break
  17307. +fi
  17308. +rm -f conftest.err conftest.$ac_ext
  17309. - sysv4*MP*)
  17310. - if test -d /usr/nec; then
  17311. - lt_prog_compiler_pic=-Kconform_pic
  17312. - fi
  17313. - ;;
  17314. +done
  17315. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  17316. +rm -f conftest.err conftest.$ac_ext
  17317. +if $ac_preproc_ok; then :
  17318. + break
  17319. +fi
  17320. - hpux*)
  17321. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  17322. - # not for PA HP-UX.
  17323. - case $host_cpu in
  17324. - hppa*64*|ia64*)
  17325. - # +Z the default
  17326. - ;;
  17327. - *)
  17328. - lt_prog_compiler_pic='-fPIC'
  17329. - ;;
  17330. - esac
  17331. - ;;
  17332. + done
  17333. + ac_cv_prog_CPP=$CPP
  17334. - *)
  17335. - lt_prog_compiler_pic='-fPIC'
  17336. - ;;
  17337. - esac
  17338. - else
  17339. - # PORTME Check for flag to pass linker flags through the system compiler.
  17340. - case $host_os in
  17341. - aix*)
  17342. - lt_prog_compiler_wl='-Wl,'
  17343. - if test "$host_cpu" = ia64; then
  17344. - # AIX 5 now supports IA64 processor
  17345. - lt_prog_compiler_static='-Bstatic'
  17346. - else
  17347. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  17348. - fi
  17349. - ;;
  17350. - darwin*)
  17351. - # PIC is the default on this platform
  17352. - # Common symbols not allowed in MH_DYLIB files
  17353. - case $cc_basename in
  17354. - xlc*)
  17355. - lt_prog_compiler_pic='-qnocommon'
  17356. - lt_prog_compiler_wl='-Wl,'
  17357. - ;;
  17358. - esac
  17359. - ;;
  17360. +fi
  17361. + CPP=$ac_cv_prog_CPP
  17362. +else
  17363. + ac_cv_prog_CPP=$CPP
  17364. +fi
  17365. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  17366. +$as_echo "$CPP" >&6; }
  17367. +ac_preproc_ok=false
  17368. +for ac_c_preproc_warn_flag in '' yes
  17369. +do
  17370. + # Use a header file that comes with gcc, so configuring glibc
  17371. + # with a fresh cross-compiler works.
  17372. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17373. + # <limits.h> exists even on freestanding compilers.
  17374. + # On the NeXT, cc -E runs the code through the compiler's parser,
  17375. + # not just through cpp. "Syntax error" is here to catch this case.
  17376. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17377. +/* end confdefs.h. */
  17378. +#ifdef __STDC__
  17379. +# include <limits.h>
  17380. +#else
  17381. +# include <assert.h>
  17382. +#endif
  17383. + Syntax error
  17384. +_ACEOF
  17385. +if ac_fn_c_try_cpp "$LINENO"; then :
  17386. - mingw* | cygwin* | pw32* | os2*)
  17387. - # This hack is so that the source file can tell whether it is being
  17388. - # built for inclusion in a dll (and should export symbols for example).
  17389. - lt_prog_compiler_pic='-DDLL_EXPORT'
  17390. - ;;
  17391. +else
  17392. + # Broken: fails on valid input.
  17393. +continue
  17394. +fi
  17395. +rm -f conftest.err conftest.$ac_ext
  17396. - hpux9* | hpux10* | hpux11*)
  17397. - lt_prog_compiler_wl='-Wl,'
  17398. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  17399. - # not for PA HP-UX.
  17400. - case $host_cpu in
  17401. - hppa*64*|ia64*)
  17402. - # +Z the default
  17403. - ;;
  17404. - *)
  17405. - lt_prog_compiler_pic='+Z'
  17406. - ;;
  17407. - esac
  17408. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  17409. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  17410. - ;;
  17411. + # OK, works on sane cases. Now check whether nonexistent headers
  17412. + # can be detected and how.
  17413. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17414. +/* end confdefs.h. */
  17415. +#include <ac_nonexistent.h>
  17416. +_ACEOF
  17417. +if ac_fn_c_try_cpp "$LINENO"; then :
  17418. + # Broken: success on invalid input.
  17419. +continue
  17420. +else
  17421. + # Passes both tests.
  17422. +ac_preproc_ok=:
  17423. +break
  17424. +fi
  17425. +rm -f conftest.err conftest.$ac_ext
  17426. - irix5* | irix6* | nonstopux*)
  17427. - lt_prog_compiler_wl='-Wl,'
  17428. - # PIC (with -KPIC) is the default.
  17429. - lt_prog_compiler_static='-non_shared'
  17430. - ;;
  17431. +done
  17432. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  17433. +rm -f conftest.err conftest.$ac_ext
  17434. +if $ac_preproc_ok; then :
  17435. - newsos6)
  17436. - lt_prog_compiler_pic='-KPIC'
  17437. - lt_prog_compiler_static='-Bstatic'
  17438. - ;;
  17439. +else
  17440. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17441. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17442. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  17443. +See \`config.log' for more details." "$LINENO" 5; }
  17444. +fi
  17445. - linux* | k*bsd*-gnu)
  17446. - case $cc_basename in
  17447. - icc* | ecc*)
  17448. - lt_prog_compiler_wl='-Wl,'
  17449. - lt_prog_compiler_pic='-KPIC'
  17450. - lt_prog_compiler_static='-static'
  17451. - ;;
  17452. - pgcc* | pgf77* | pgf90* | pgf95*)
  17453. - # Portland Group compilers (*not* the Pentium gcc compiler,
  17454. - # which looks to be a dead project)
  17455. - lt_prog_compiler_wl='-Wl,'
  17456. - lt_prog_compiler_pic='-fpic'
  17457. - lt_prog_compiler_static='-Bstatic'
  17458. - ;;
  17459. - ccc*)
  17460. - lt_prog_compiler_wl='-Wl,'
  17461. - # All Alpha code is PIC.
  17462. - lt_prog_compiler_static='-non_shared'
  17463. - ;;
  17464. - *)
  17465. - case `$CC -V 2>&1 | sed 5q` in
  17466. - *Sun\ C*)
  17467. - # Sun C 5.9
  17468. - lt_prog_compiler_pic='-KPIC'
  17469. - lt_prog_compiler_static='-Bstatic'
  17470. - lt_prog_compiler_wl='-Wl,'
  17471. - ;;
  17472. - *Sun\ F*)
  17473. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  17474. - lt_prog_compiler_pic='-KPIC'
  17475. - lt_prog_compiler_static='-Bstatic'
  17476. - lt_prog_compiler_wl=''
  17477. - ;;
  17478. - esac
  17479. - ;;
  17480. - esac
  17481. - ;;
  17482. +ac_ext=c
  17483. +ac_cpp='$CPP $CPPFLAGS'
  17484. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17485. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17486. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17487. - osf3* | osf4* | osf5*)
  17488. - lt_prog_compiler_wl='-Wl,'
  17489. - # All OSF/1 code is PIC.
  17490. - lt_prog_compiler_static='-non_shared'
  17491. - ;;
  17492. - rdos*)
  17493. - lt_prog_compiler_static='-non_shared'
  17494. - ;;
  17495. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  17496. +$as_echo_n "checking for ANSI C header files... " >&6; }
  17497. +if test "${ac_cv_header_stdc+set}" = set; then :
  17498. + $as_echo_n "(cached) " >&6
  17499. +else
  17500. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17501. +/* end confdefs.h. */
  17502. +#include <stdlib.h>
  17503. +#include <stdarg.h>
  17504. +#include <string.h>
  17505. +#include <float.h>
  17506. - solaris*)
  17507. - lt_prog_compiler_pic='-KPIC'
  17508. - lt_prog_compiler_static='-Bstatic'
  17509. - case $cc_basename in
  17510. - f77* | f90* | f95*)
  17511. - lt_prog_compiler_wl='-Qoption ld ';;
  17512. - *)
  17513. - lt_prog_compiler_wl='-Wl,';;
  17514. - esac
  17515. - ;;
  17516. +int
  17517. +main ()
  17518. +{
  17519. - sunos4*)
  17520. - lt_prog_compiler_wl='-Qoption ld '
  17521. - lt_prog_compiler_pic='-PIC'
  17522. - lt_prog_compiler_static='-Bstatic'
  17523. - ;;
  17524. + ;
  17525. + return 0;
  17526. +}
  17527. +_ACEOF
  17528. +if ac_fn_c_try_compile "$LINENO"; then :
  17529. + ac_cv_header_stdc=yes
  17530. +else
  17531. + ac_cv_header_stdc=no
  17532. +fi
  17533. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17534. - sysv4 | sysv4.2uw2* | sysv4.3*)
  17535. - lt_prog_compiler_wl='-Wl,'
  17536. - lt_prog_compiler_pic='-KPIC'
  17537. - lt_prog_compiler_static='-Bstatic'
  17538. - ;;
  17539. +if test $ac_cv_header_stdc = yes; then
  17540. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17541. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17542. +/* end confdefs.h. */
  17543. +#include <string.h>
  17544. - sysv4*MP*)
  17545. - if test -d /usr/nec ;then
  17546. - lt_prog_compiler_pic='-Kconform_pic'
  17547. - lt_prog_compiler_static='-Bstatic'
  17548. - fi
  17549. - ;;
  17550. +_ACEOF
  17551. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17552. + $EGREP "memchr" >/dev/null 2>&1; then :
  17553. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  17554. - lt_prog_compiler_wl='-Wl,'
  17555. - lt_prog_compiler_pic='-KPIC'
  17556. - lt_prog_compiler_static='-Bstatic'
  17557. - ;;
  17558. +else
  17559. + ac_cv_header_stdc=no
  17560. +fi
  17561. +rm -f conftest*
  17562. - unicos*)
  17563. - lt_prog_compiler_wl='-Wl,'
  17564. - lt_prog_compiler_can_build_shared=no
  17565. - ;;
  17566. +fi
  17567. - uts4*)
  17568. - lt_prog_compiler_pic='-pic'
  17569. - lt_prog_compiler_static='-Bstatic'
  17570. - ;;
  17571. +if test $ac_cv_header_stdc = yes; then
  17572. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17573. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17574. +/* end confdefs.h. */
  17575. +#include <stdlib.h>
  17576. - *)
  17577. - lt_prog_compiler_can_build_shared=no
  17578. - ;;
  17579. - esac
  17580. - fi
  17581. +_ACEOF
  17582. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17583. + $EGREP "free" >/dev/null 2>&1; then :
  17584. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  17585. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  17586. +else
  17587. + ac_cv_header_stdc=no
  17588. +fi
  17589. +rm -f conftest*
  17590. -#
  17591. -# Check to make sure the PIC flag actually works.
  17592. -#
  17593. -if test -n "$lt_prog_compiler_pic"; then
  17594. +fi
  17595. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  17596. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  17597. -if test "${lt_prog_compiler_pic_works+set}" = set; then
  17598. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17599. +if test $ac_cv_header_stdc = yes; then
  17600. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17601. + if test "$cross_compiling" = yes; then :
  17602. + :
  17603. else
  17604. - lt_prog_compiler_pic_works=no
  17605. - ac_outfile=conftest.$ac_objext
  17606. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17607. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  17608. - # Insert the option either (1) after the last *FLAGS variable, or
  17609. - # (2) before a word containing "conftest.", or (3) at the end.
  17610. - # Note that $ac_compile itself does not contain backslashes and begins
  17611. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  17612. - # The option is referenced via a variable to avoid confusing sed.
  17613. - lt_compile=`echo "$ac_compile" | $SED \
  17614. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17615. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17616. - -e 's:$: $lt_compiler_flag:'`
  17617. - (eval echo "\"\$as_me:7441: $lt_compile\"" >&5)
  17618. - (eval "$lt_compile" 2>conftest.err)
  17619. - ac_status=$?
  17620. - cat conftest.err >&5
  17621. - echo "$as_me:7445: \$? = $ac_status" >&5
  17622. - if (exit $ac_status) && test -s "$ac_outfile"; then
  17623. - # The compiler can only warn and ignore the option if not recognized
  17624. - # So say no if there are warnings other than the usual output.
  17625. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  17626. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17627. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  17628. - lt_prog_compiler_pic_works=yes
  17629. - fi
  17630. - fi
  17631. - $rm conftest*
  17632. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17633. +/* end confdefs.h. */
  17634. +#include <ctype.h>
  17635. +#include <stdlib.h>
  17636. +#if ((' ' & 0x0FF) == 0x020)
  17637. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17638. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17639. +#else
  17640. +# define ISLOWER(c) \
  17641. + (('a' <= (c) && (c) <= 'i') \
  17642. + || ('j' <= (c) && (c) <= 'r') \
  17643. + || ('s' <= (c) && (c) <= 'z'))
  17644. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17645. +#endif
  17646. -fi
  17647. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  17648. -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  17649. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17650. +int
  17651. +main ()
  17652. +{
  17653. + int i;
  17654. + for (i = 0; i < 256; i++)
  17655. + if (XOR (islower (i), ISLOWER (i))
  17656. + || toupper (i) != TOUPPER (i))
  17657. + return 2;
  17658. + return 0;
  17659. +}
  17660. +_ACEOF
  17661. +if ac_fn_c_try_run "$LINENO"; then :
  17662. -if test x"$lt_prog_compiler_pic_works" = xyes; then
  17663. - case $lt_prog_compiler_pic in
  17664. - "" | " "*) ;;
  17665. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  17666. - esac
  17667. else
  17668. - lt_prog_compiler_pic=
  17669. - lt_prog_compiler_can_build_shared=no
  17670. + ac_cv_header_stdc=no
  17671. +fi
  17672. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17673. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  17674. fi
  17675. fi
  17676. -case $host_os in
  17677. - # For platforms which do not support PIC, -DPIC is meaningless:
  17678. - *djgpp*)
  17679. - lt_prog_compiler_pic=
  17680. - ;;
  17681. - *)
  17682. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  17683. - ;;
  17684. -esac
  17685. +fi
  17686. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  17687. +$as_echo "$ac_cv_header_stdc" >&6; }
  17688. +if test $ac_cv_header_stdc = yes; then
  17689. -#
  17690. -# Check to make sure the static flag actually works.
  17691. -#
  17692. -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  17693. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  17694. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  17695. -if test "${lt_prog_compiler_static_works+set}" = set; then
  17696. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17697. -else
  17698. - lt_prog_compiler_static_works=no
  17699. - save_LDFLAGS="$LDFLAGS"
  17700. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  17701. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  17702. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  17703. - # The linker can only warn and ignore the option if not recognized
  17704. - # So say no if there are warnings
  17705. - if test -s conftest.err; then
  17706. - # Append any errors to the config.log.
  17707. - cat conftest.err 1>&5
  17708. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  17709. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17710. - if diff conftest.exp conftest.er2 >/dev/null; then
  17711. - lt_prog_compiler_static_works=yes
  17712. - fi
  17713. - else
  17714. - lt_prog_compiler_static_works=yes
  17715. - fi
  17716. - fi
  17717. - $rm conftest*
  17718. - LDFLAGS="$save_LDFLAGS"
  17719. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  17720. fi
  17721. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  17722. -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  17723. -if test x"$lt_prog_compiler_static_works" = xyes; then
  17724. - :
  17725. -else
  17726. - lt_prog_compiler_static=
  17727. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  17728. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  17729. + inttypes.h stdint.h unistd.h
  17730. +do :
  17731. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17732. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  17733. +"
  17734. +eval as_val=\$$as_ac_Header
  17735. + if test "x$as_val" = x""yes; then :
  17736. + cat >>confdefs.h <<_ACEOF
  17737. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17738. +_ACEOF
  17739. +
  17740. fi
  17741. +done
  17742. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  17743. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  17744. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  17745. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17746. -else
  17747. - lt_cv_prog_compiler_c_o=no
  17748. - $rm -r conftest 2>/dev/null
  17749. - mkdir conftest
  17750. - cd conftest
  17751. - mkdir out
  17752. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17753. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  17754. - # Insert the option either (1) after the last *FLAGS variable, or
  17755. - # (2) before a word containing "conftest.", or (3) at the end.
  17756. - # Note that $ac_compile itself does not contain backslashes and begins
  17757. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  17758. - lt_compile=`echo "$ac_compile" | $SED \
  17759. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17760. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17761. - -e 's:$: $lt_compiler_flag:'`
  17762. - (eval echo "\"\$as_me:7545: $lt_compile\"" >&5)
  17763. - (eval "$lt_compile" 2>out/conftest.err)
  17764. - ac_status=$?
  17765. - cat out/conftest.err >&5
  17766. - echo "$as_me:7549: \$? = $ac_status" >&5
  17767. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  17768. - then
  17769. - # The compiler can only warn and ignore the option if not recognized
  17770. - # So say no if there are warnings
  17771. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  17772. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  17773. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  17774. - lt_cv_prog_compiler_c_o=yes
  17775. - fi
  17776. - fi
  17777. - chmod u+w . 2>&5
  17778. - $rm conftest*
  17779. - # SGI C++ compiler will create directory out/ii_files/ for
  17780. - # template instantiation
  17781. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  17782. - $rm out/* && rmdir out
  17783. - cd ..
  17784. - rmdir conftest
  17785. - $rm conftest*
  17786. +for ac_header in dlfcn.h
  17787. +do :
  17788. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  17789. +"
  17790. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  17791. + cat >>confdefs.h <<_ACEOF
  17792. +#define HAVE_DLFCN_H 1
  17793. +_ACEOF
  17794. fi
  17795. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  17796. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  17797. +done
  17798. -hard_links="nottested"
  17799. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  17800. - # do not overwrite the value of need_locks provided by the user
  17801. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  17802. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  17803. - hard_links=yes
  17804. - $rm conftest*
  17805. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  17806. - touch conftest.a
  17807. - ln conftest.a conftest.b 2>&5 || hard_links=no
  17808. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  17809. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  17810. -echo "${ECHO_T}$hard_links" >&6; }
  17811. - if test "$hard_links" = no; then
  17812. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  17813. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  17814. - need_locks=warn
  17815. - fi
  17816. -else
  17817. - need_locks=no
  17818. -fi
  17819. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  17820. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  17821. - runpath_var=
  17822. - allow_undefined_flag=
  17823. - enable_shared_with_static_runtimes=no
  17824. - archive_cmds=
  17825. - archive_expsym_cmds=
  17826. - old_archive_From_new_cmds=
  17827. - old_archive_from_expsyms_cmds=
  17828. - export_dynamic_flag_spec=
  17829. - whole_archive_flag_spec=
  17830. - thread_safe_flag_spec=
  17831. - hardcode_libdir_flag_spec=
  17832. - hardcode_libdir_flag_spec_ld=
  17833. - hardcode_libdir_separator=
  17834. - hardcode_direct=no
  17835. - hardcode_minus_L=no
  17836. - hardcode_shlibpath_var=unsupported
  17837. - link_all_deplibs=unknown
  17838. - hardcode_automatic=no
  17839. - module_cmds=
  17840. - module_expsym_cmds=
  17841. - always_export_symbols=no
  17842. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  17843. - # include_expsyms should be a list of space-separated symbols to be *always*
  17844. - # included in the symbol list
  17845. - include_expsyms=
  17846. - # exclude_expsyms can be an extended regexp of symbols to exclude
  17847. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  17848. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  17849. - # as well as any symbol that contains `d'.
  17850. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  17851. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  17852. - # platforms (ab)use it in PIC code, but their linkers get confused if
  17853. - # the symbol is explicitly referenced. Since portable code cannot
  17854. - # rely on this symbol name, it's probably fine to never include it in
  17855. - # preloaded symbol tables.
  17856. - extract_expsyms_cmds=
  17857. - # Just being paranoid about ensuring that cc_basename is set.
  17858. - for cc_temp in $compiler""; do
  17859. - case $cc_temp in
  17860. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17861. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17862. - \-*) ;;
  17863. - *) break;;
  17864. - esac
  17865. -done
  17866. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17867. +# Set options
  17868. - case $host_os in
  17869. - cygwin* | mingw* | pw32*)
  17870. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  17871. - # When not using gcc, we currently assume that we are using
  17872. - # Microsoft Visual C++.
  17873. - if test "$GCC" != yes; then
  17874. - with_gnu_ld=no
  17875. - fi
  17876. - ;;
  17877. - interix*)
  17878. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  17879. - with_gnu_ld=yes
  17880. - ;;
  17881. - openbsd*)
  17882. - with_gnu_ld=no
  17883. - ;;
  17884. - esac
  17885. - ld_shlibs=yes
  17886. - if test "$with_gnu_ld" = yes; then
  17887. - # If archive_cmds runs LD, not CC, wlarc should be empty
  17888. - wlarc='${wl}'
  17889. - # Set some defaults for GNU ld with shared library support. These
  17890. - # are reset later if shared libraries are not supported. Putting them
  17891. - # here allows them to be overridden if necessary.
  17892. - runpath_var=LD_RUN_PATH
  17893. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  17894. - export_dynamic_flag_spec='${wl}--export-dynamic'
  17895. - # ancient GNU ld didn't support --whole-archive et. al.
  17896. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  17897. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  17898. - else
  17899. - whole_archive_flag_spec=
  17900. - fi
  17901. - supports_anon_versioning=no
  17902. - case `$LD -v 2>/dev/null` in
  17903. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  17904. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  17905. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  17906. - *\ 2.11.*) ;; # other 2.11 versions
  17907. - *) supports_anon_versioning=yes ;;
  17908. - esac
  17909. + enable_dlopen=no
  17910. - # See if GNU ld supports shared libraries.
  17911. - case $host_os in
  17912. - aix3* | aix4* | aix5*)
  17913. - # On AIX/PPC, the GNU linker is very broken
  17914. - if test "$host_cpu" != ia64; then
  17915. - ld_shlibs=no
  17916. - cat <<EOF 1>&2
  17917. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  17918. -*** to be unable to reliably create shared libraries on AIX.
  17919. -*** Therefore, libtool is disabling shared libraries support. If you
  17920. -*** really care for shared libraries, you may want to modify your PATH
  17921. -*** so that a non-GNU linker is found, and then restart.
  17922. + enable_win32_dll=no
  17923. -EOF
  17924. - fi
  17925. +
  17926. + # Check whether --enable-shared was given.
  17927. +if test "${enable_shared+set}" = set; then :
  17928. + enableval=$enable_shared; p=${PACKAGE-default}
  17929. + case $enableval in
  17930. + yes) enable_shared=yes ;;
  17931. + no) enable_shared=no ;;
  17932. + *)
  17933. + enable_shared=no
  17934. + # Look at the argument we got. We use all the common list separators.
  17935. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  17936. + for pkg in $enableval; do
  17937. + IFS="$lt_save_ifs"
  17938. + if test "X$pkg" = "X$p"; then
  17939. + enable_shared=yes
  17940. + fi
  17941. + done
  17942. + IFS="$lt_save_ifs"
  17943. ;;
  17944. + esac
  17945. +else
  17946. + enable_shared=yes
  17947. +fi
  17948. +
  17949. - amigaos*)
  17950. - 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)'
  17951. - hardcode_libdir_flag_spec='-L$libdir'
  17952. - hardcode_minus_L=yes
  17953. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  17954. - # that the semantics of dynamic libraries on AmigaOS, at least up
  17955. - # to version 4, is to share data among multiple programs linked
  17956. - # with the same dynamic library. Since this doesn't match the
  17957. - # behavior of shared libraries on other platforms, we can't use
  17958. - # them.
  17959. - ld_shlibs=no
  17960. - ;;
  17961. - beos*)
  17962. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  17963. - allow_undefined_flag=unsupported
  17964. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  17965. - # support --undefined. This deserves some investigation. FIXME
  17966. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  17967. - else
  17968. - ld_shlibs=no
  17969. - fi
  17970. - ;;
  17971. - cygwin* | mingw* | pw32*)
  17972. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  17973. - # as there is no search path for DLLs.
  17974. - hardcode_libdir_flag_spec='-L$libdir'
  17975. - allow_undefined_flag=unsupported
  17976. - always_export_symbols=no
  17977. - enable_shared_with_static_runtimes=yes
  17978. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  17979. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  17980. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  17981. - # If the export-symbols file already is a .def file (1st line
  17982. - # is EXPORTS), use it as is; otherwise, prepend...
  17983. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  17984. - cp $export_symbols $output_objdir/$soname.def;
  17985. - else
  17986. - echo EXPORTS > $output_objdir/$soname.def;
  17987. - cat $export_symbols >> $output_objdir/$soname.def;
  17988. - fi~
  17989. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  17990. - else
  17991. - ld_shlibs=no
  17992. - fi
  17993. - ;;
  17994. - interix[3-9]*)
  17995. - hardcode_direct=no
  17996. - hardcode_shlibpath_var=no
  17997. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  17998. - export_dynamic_flag_spec='${wl}-E'
  17999. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  18000. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  18001. - # default) and relocated if they conflict, which is a slow very memory
  18002. - # consuming and fragmenting process. To avoid this, we pick a random,
  18003. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  18004. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  18005. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  18006. - 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'
  18007. - ;;
  18008. - gnu* | linux* | k*bsd*-gnu)
  18009. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  18010. - tmp_addflag=
  18011. - case $cc_basename,$host_cpu in
  18012. - pgcc*) # Portland Group C compiler
  18013. - 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'
  18014. - tmp_addflag=' $pic_flag'
  18015. - ;;
  18016. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  18017. - 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'
  18018. - tmp_addflag=' $pic_flag -Mnomain' ;;
  18019. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  18020. - tmp_addflag=' -i_dynamic' ;;
  18021. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  18022. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  18023. - ifc* | ifort*) # Intel Fortran compiler
  18024. - tmp_addflag=' -nofor_main' ;;
  18025. - esac
  18026. - case `$CC -V 2>&1 | sed 5q` in
  18027. - *Sun\ C*) # Sun C 5.9
  18028. - 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'
  18029. - tmp_sharedflag='-G' ;;
  18030. - *Sun\ F*) # Sun Fortran 8.3
  18031. - tmp_sharedflag='-G' ;;
  18032. - *)
  18033. - tmp_sharedflag='-shared' ;;
  18034. - esac
  18035. - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18036. - if test $supports_anon_versioning = yes; then
  18037. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  18038. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  18039. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  18040. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  18041. + # Check whether --enable-static was given.
  18042. +if test "${enable_static+set}" = set; then :
  18043. + enableval=$enable_static; p=${PACKAGE-default}
  18044. + case $enableval in
  18045. + yes) enable_static=yes ;;
  18046. + no) enable_static=no ;;
  18047. + *)
  18048. + enable_static=no
  18049. + # Look at the argument we got. We use all the common list separators.
  18050. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  18051. + for pkg in $enableval; do
  18052. + IFS="$lt_save_ifs"
  18053. + if test "X$pkg" = "X$p"; then
  18054. + enable_static=yes
  18055. fi
  18056. - else
  18057. - ld_shlibs=no
  18058. - fi
  18059. + done
  18060. + IFS="$lt_save_ifs"
  18061. ;;
  18062. + esac
  18063. +else
  18064. + enable_static=yes
  18065. +fi
  18066. - netbsd*)
  18067. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  18068. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  18069. - wlarc=
  18070. - else
  18071. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18072. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  18073. - fi
  18074. - ;;
  18075. - solaris*)
  18076. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  18077. - ld_shlibs=no
  18078. - cat <<EOF 1>&2
  18079. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  18080. -*** create shared libraries on Solaris systems. Therefore, libtool
  18081. -*** is disabling shared libraries support. We urge you to upgrade GNU
  18082. -*** binutils to release 2.9.1 or newer. Another option is to modify
  18083. -*** your PATH or compiler configuration so that the native linker is
  18084. -*** used, and then restart.
  18085. -EOF
  18086. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  18087. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18088. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  18089. - else
  18090. - ld_shlibs=no
  18091. - fi
  18092. - ;;
  18093. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  18094. - case `$LD -v 2>&1` in
  18095. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  18096. - ld_shlibs=no
  18097. - cat <<_LT_EOF 1>&2
  18098. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  18099. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  18100. -*** is disabling shared libraries support. We urge you to upgrade GNU
  18101. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  18102. -*** your PATH or compiler configuration so that the native linker is
  18103. -*** used, and then restart.
  18104. -_LT_EOF
  18105. - ;;
  18106. - *)
  18107. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  18108. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  18109. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  18110. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  18111. - else
  18112. - ld_shlibs=no
  18113. - fi
  18114. - ;;
  18115. - esac
  18116. - ;;
  18117. - sunos4*)
  18118. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  18119. - wlarc=
  18120. - hardcode_direct=yes
  18121. - hardcode_shlibpath_var=no
  18122. - ;;
  18123. - *)
  18124. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  18125. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18126. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  18127. - else
  18128. - ld_shlibs=no
  18129. - fi
  18130. - ;;
  18131. - esac
  18132. - if test "$ld_shlibs" = no; then
  18133. - runpath_var=
  18134. - hardcode_libdir_flag_spec=
  18135. - export_dynamic_flag_spec=
  18136. - whole_archive_flag_spec=
  18137. - fi
  18138. - else
  18139. - # PORTME fill in a description of your system's linker (not GNU ld)
  18140. - case $host_os in
  18141. - aix3*)
  18142. - allow_undefined_flag=unsupported
  18143. - always_export_symbols=yes
  18144. - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  18145. - # Note: this linker hardcodes the directories in LIBPATH if there
  18146. - # are no directories specified by -L.
  18147. - hardcode_minus_L=yes
  18148. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  18149. - # Neither direct hardcoding nor static linking is supported with a
  18150. - # broken collect2.
  18151. - hardcode_direct=unsupported
  18152. - fi
  18153. - ;;
  18154. +# Check whether --with-pic was given.
  18155. +if test "${with_pic+set}" = set; then :
  18156. + withval=$with_pic; pic_mode="$withval"
  18157. +else
  18158. + pic_mode=default
  18159. +fi
  18160. - aix4* | aix5*)
  18161. - if test "$host_cpu" = ia64; then
  18162. - # On IA64, the linker does run time linking by default, so we don't
  18163. - # have to do anything special.
  18164. - aix_use_runtimelinking=no
  18165. - exp_sym_flag='-Bexport'
  18166. - no_entry_flag=""
  18167. - else
  18168. - # If we're using GNU nm, then we don't want the "-C" option.
  18169. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  18170. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  18171. - 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'
  18172. - else
  18173. - 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'
  18174. - fi
  18175. - aix_use_runtimelinking=no
  18176. - # Test if we are trying to use run time linking or normal
  18177. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  18178. - # need to do runtime linking.
  18179. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  18180. - for ld_flag in $LDFLAGS; do
  18181. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  18182. - aix_use_runtimelinking=yes
  18183. - break
  18184. - fi
  18185. - done
  18186. - ;;
  18187. - esac
  18188. +test -z "$pic_mode" && pic_mode=default
  18189. - exp_sym_flag='-bexport'
  18190. - no_entry_flag='-bnoentry'
  18191. - fi
  18192. - # When large executables or shared objects are built, AIX ld can
  18193. - # have problems creating the table of contents. If linking a library
  18194. - # or program results in "error TOC overflow" add -mminimal-toc to
  18195. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  18196. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  18197. - archive_cmds=''
  18198. - hardcode_direct=yes
  18199. - hardcode_libdir_separator=':'
  18200. - link_all_deplibs=yes
  18201. - if test "$GCC" = yes; then
  18202. - case $host_os in aix4.[012]|aix4.[012].*)
  18203. - # We only want to do this on AIX 4.2 and lower, the check
  18204. - # below for broken collect2 doesn't work under 4.3+
  18205. - collect2name=`${CC} -print-prog-name=collect2`
  18206. - if test -f "$collect2name" && \
  18207. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  18208. - then
  18209. - # We have reworked collect2
  18210. - :
  18211. - else
  18212. - # We have old collect2
  18213. - hardcode_direct=unsupported
  18214. - # It fails to find uninstalled libraries when the uninstalled
  18215. - # path is not listed in the libpath. Setting hardcode_minus_L
  18216. - # to unsupported forces relinking
  18217. - hardcode_minus_L=yes
  18218. - hardcode_libdir_flag_spec='-L$libdir'
  18219. - hardcode_libdir_separator=
  18220. - fi
  18221. - ;;
  18222. - esac
  18223. - shared_flag='-shared'
  18224. - if test "$aix_use_runtimelinking" = yes; then
  18225. - shared_flag="$shared_flag "'${wl}-G'
  18226. - fi
  18227. - else
  18228. - # not using gcc
  18229. - if test "$host_cpu" = ia64; then
  18230. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  18231. - # chokes on -Wl,-G. The following line is correct:
  18232. - shared_flag='-G'
  18233. - else
  18234. - if test "$aix_use_runtimelinking" = yes; then
  18235. - shared_flag='${wl}-G'
  18236. - else
  18237. - shared_flag='${wl}-bM:SRE'
  18238. - fi
  18239. +
  18240. +
  18241. +
  18242. + # Check whether --enable-fast-install was given.
  18243. +if test "${enable_fast_install+set}" = set; then :
  18244. + enableval=$enable_fast_install; p=${PACKAGE-default}
  18245. + case $enableval in
  18246. + yes) enable_fast_install=yes ;;
  18247. + no) enable_fast_install=no ;;
  18248. + *)
  18249. + enable_fast_install=no
  18250. + # Look at the argument we got. We use all the common list separators.
  18251. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  18252. + for pkg in $enableval; do
  18253. + IFS="$lt_save_ifs"
  18254. + if test "X$pkg" = "X$p"; then
  18255. + enable_fast_install=yes
  18256. fi
  18257. - fi
  18258. + done
  18259. + IFS="$lt_save_ifs"
  18260. + ;;
  18261. + esac
  18262. +else
  18263. + enable_fast_install=yes
  18264. +fi
  18265. - # It seems that -bexpall does not export symbols beginning with
  18266. - # underscore (_), so it is better to generate a list of symbols to export.
  18267. - always_export_symbols=yes
  18268. - if test "$aix_use_runtimelinking" = yes; then
  18269. - # Warning - without using the other runtime loading flags (-brtl),
  18270. - # -berok will link without error, but may produce a broken library.
  18271. - allow_undefined_flag='-berok'
  18272. - # Determine the default libpath from the value encoded in an empty executable.
  18273. - cat >conftest.$ac_ext <<_ACEOF
  18274. -/* confdefs.h. */
  18275. -_ACEOF
  18276. -cat confdefs.h >>conftest.$ac_ext
  18277. -cat >>conftest.$ac_ext <<_ACEOF
  18278. -/* end confdefs.h. */
  18279. -int
  18280. -main ()
  18281. -{
  18282. - ;
  18283. - return 0;
  18284. -}
  18285. -_ACEOF
  18286. -rm -f conftest.$ac_objext conftest$ac_exeext
  18287. -if { (ac_try="$ac_link"
  18288. -case "(($ac_try" in
  18289. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18290. - *) ac_try_echo=$ac_try;;
  18291. -esac
  18292. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18293. - (eval "$ac_link") 2>conftest.er1
  18294. - ac_status=$?
  18295. - grep -v '^ *+' conftest.er1 >conftest.err
  18296. - rm -f conftest.er1
  18297. - cat conftest.err >&5
  18298. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18299. - (exit $ac_status); } && {
  18300. - test -z "$ac_c_werror_flag" ||
  18301. - test ! -s conftest.err
  18302. - } && test -s conftest$ac_exeext &&
  18303. - $as_test_x conftest$ac_exeext; then
  18304. -lt_aix_libpath_sed='
  18305. - /Import File Strings/,/^$/ {
  18306. - /^0/ {
  18307. - s/^0 *\(.*\)$/\1/
  18308. - p
  18309. - }
  18310. - }'
  18311. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  18312. -# Check for a 64-bit object if we didn't find anything.
  18313. -if test -z "$aix_libpath"; then
  18314. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  18315. -fi
  18316. -else
  18317. - echo "$as_me: failed program was:" >&5
  18318. -sed 's/^/| /' conftest.$ac_ext >&5
  18319. -fi
  18320. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18321. - conftest$ac_exeext conftest.$ac_ext
  18322. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  18323. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  18324. - 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  18325. - else
  18326. - if test "$host_cpu" = ia64; then
  18327. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  18328. - allow_undefined_flag="-z nodefs"
  18329. - 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"
  18330. - else
  18331. - # Determine the default libpath from the value encoded in an empty executable.
  18332. - cat >conftest.$ac_ext <<_ACEOF
  18333. -/* confdefs.h. */
  18334. -_ACEOF
  18335. -cat confdefs.h >>conftest.$ac_ext
  18336. -cat >>conftest.$ac_ext <<_ACEOF
  18337. -/* end confdefs.h. */
  18338. -int
  18339. -main ()
  18340. -{
  18341. - ;
  18342. - return 0;
  18343. -}
  18344. -_ACEOF
  18345. -rm -f conftest.$ac_objext conftest$ac_exeext
  18346. -if { (ac_try="$ac_link"
  18347. -case "(($ac_try" in
  18348. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18349. - *) ac_try_echo=$ac_try;;
  18350. -esac
  18351. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18352. - (eval "$ac_link") 2>conftest.er1
  18353. - ac_status=$?
  18354. - grep -v '^ *+' conftest.er1 >conftest.err
  18355. - rm -f conftest.er1
  18356. - cat conftest.err >&5
  18357. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18358. - (exit $ac_status); } && {
  18359. - test -z "$ac_c_werror_flag" ||
  18360. - test ! -s conftest.err
  18361. - } && test -s conftest$ac_exeext &&
  18362. - $as_test_x conftest$ac_exeext; then
  18363. -lt_aix_libpath_sed='
  18364. - /Import File Strings/,/^$/ {
  18365. - /^0/ {
  18366. - s/^0 *\(.*\)$/\1/
  18367. - p
  18368. - }
  18369. - }'
  18370. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  18371. -# Check for a 64-bit object if we didn't find anything.
  18372. -if test -z "$aix_libpath"; then
  18373. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  18374. -fi
  18375. -else
  18376. - echo "$as_me: failed program was:" >&5
  18377. -sed 's/^/| /' conftest.$ac_ext >&5
  18378. +# This can be used to rebuild libtool when needed
  18379. +LIBTOOL_DEPS="$ltmain"
  18380. +# Always use our own libtool.
  18381. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  18382. -fi
  18383. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18384. - conftest$ac_exeext conftest.$ac_ext
  18385. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  18386. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  18387. - # Warning - without using the other run time loading flags,
  18388. - # -berok will link without error, but may produce a broken library.
  18389. - no_undefined_flag=' ${wl}-bernotok'
  18390. - allow_undefined_flag=' ${wl}-berok'
  18391. - # Exported symbols can be pulled into shared objects from archives
  18392. - whole_archive_flag_spec='$convenience'
  18393. - archive_cmds_need_lc=yes
  18394. - # This is similar to how AIX traditionally builds its shared libraries.
  18395. - 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'
  18396. - fi
  18397. - fi
  18398. - ;;
  18399. - amigaos*)
  18400. - 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)'
  18401. - hardcode_libdir_flag_spec='-L$libdir'
  18402. - hardcode_minus_L=yes
  18403. - # see comment about different semantics on the GNU ld section
  18404. - ld_shlibs=no
  18405. - ;;
  18406. - bsdi[45]*)
  18407. - export_dynamic_flag_spec=-rdynamic
  18408. - ;;
  18409. - cygwin* | mingw* | pw32*)
  18410. - # When not using gcc, we currently assume that we are using
  18411. - # Microsoft Visual C++.
  18412. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  18413. - # no search path for DLLs.
  18414. - hardcode_libdir_flag_spec=' '
  18415. - allow_undefined_flag=unsupported
  18416. - # Tell ltmain to make .lib files, not .a files.
  18417. - libext=lib
  18418. - # Tell ltmain to make .dll files, not .so files.
  18419. - shrext_cmds=".dll"
  18420. - # FIXME: Setting linknames here is a bad hack.
  18421. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  18422. - # The linker will automatically build a .lib file if we build a DLL.
  18423. - old_archive_From_new_cmds='true'
  18424. - # FIXME: Should let the user specify the lib program.
  18425. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  18426. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  18427. - enable_shared_with_static_runtimes=yes
  18428. - ;;
  18429. - darwin* | rhapsody*)
  18430. - case $host_os in
  18431. - rhapsody* | darwin1.[012])
  18432. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  18433. - ;;
  18434. - *) # Darwin 1.3 on
  18435. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  18436. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  18437. - else
  18438. - case ${MACOSX_DEPLOYMENT_TARGET} in
  18439. - 10.[012])
  18440. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  18441. - ;;
  18442. - 10.*)
  18443. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  18444. - ;;
  18445. - esac
  18446. - fi
  18447. - ;;
  18448. - esac
  18449. - archive_cmds_need_lc=no
  18450. - hardcode_direct=no
  18451. - hardcode_automatic=yes
  18452. - hardcode_shlibpath_var=unsupported
  18453. - whole_archive_flag_spec=''
  18454. - link_all_deplibs=yes
  18455. - if test "$GCC" = yes ; then
  18456. - output_verbose_link_cmd='echo'
  18457. - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  18458. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  18459. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  18460. - 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}'
  18461. - 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}'
  18462. - else
  18463. - case $cc_basename in
  18464. - xlc*)
  18465. - output_verbose_link_cmd='echo'
  18466. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  18467. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  18468. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  18469. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  18470. - 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}'
  18471. - ;;
  18472. - *)
  18473. - ld_shlibs=no
  18474. - ;;
  18475. - esac
  18476. - fi
  18477. - ;;
  18478. - dgux*)
  18479. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18480. - hardcode_libdir_flag_spec='-L$libdir'
  18481. - hardcode_shlibpath_var=no
  18482. - ;;
  18483. - freebsd1*)
  18484. - ld_shlibs=no
  18485. - ;;
  18486. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  18487. - # support. Future versions do this automatically, but an explicit c++rt0.o
  18488. - # does not break anything, and helps significantly (at the cost of a little
  18489. - # extra space).
  18490. - freebsd2.2*)
  18491. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  18492. - hardcode_libdir_flag_spec='-R$libdir'
  18493. - hardcode_direct=yes
  18494. - hardcode_shlibpath_var=no
  18495. - ;;
  18496. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  18497. - freebsd2*)
  18498. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  18499. - hardcode_direct=yes
  18500. - hardcode_minus_L=yes
  18501. - hardcode_shlibpath_var=no
  18502. - ;;
  18503. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  18504. - freebsd* | dragonfly*)
  18505. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  18506. - hardcode_libdir_flag_spec='-R$libdir'
  18507. - hardcode_direct=yes
  18508. - hardcode_shlibpath_var=no
  18509. - ;;
  18510. - hpux9*)
  18511. - if test "$GCC" = yes; then
  18512. - 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'
  18513. - else
  18514. - 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'
  18515. - fi
  18516. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  18517. - hardcode_libdir_separator=:
  18518. - hardcode_direct=yes
  18519. - # hardcode_minus_L: Not really in the search PATH,
  18520. - # but as the default location of the library.
  18521. - hardcode_minus_L=yes
  18522. - export_dynamic_flag_spec='${wl}-E'
  18523. - ;;
  18524. - hpux10*)
  18525. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  18526. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  18527. - else
  18528. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  18529. - fi
  18530. - if test "$with_gnu_ld" = no; then
  18531. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  18532. - hardcode_libdir_separator=:
  18533. - hardcode_direct=yes
  18534. - export_dynamic_flag_spec='${wl}-E'
  18535. - # hardcode_minus_L: Not really in the search PATH,
  18536. - # but as the default location of the library.
  18537. - hardcode_minus_L=yes
  18538. - fi
  18539. - ;;
  18540. - hpux11*)
  18541. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  18542. - case $host_cpu in
  18543. - hppa*64*)
  18544. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18545. - ;;
  18546. - ia64*)
  18547. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  18548. - ;;
  18549. - *)
  18550. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  18551. - ;;
  18552. - esac
  18553. - else
  18554. - case $host_cpu in
  18555. - hppa*64*)
  18556. - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18557. - ;;
  18558. - ia64*)
  18559. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  18560. - ;;
  18561. - *)
  18562. - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  18563. - ;;
  18564. - esac
  18565. - fi
  18566. - if test "$with_gnu_ld" = no; then
  18567. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  18568. - hardcode_libdir_separator=:
  18569. - case $host_cpu in
  18570. - hppa*64*|ia64*)
  18571. - hardcode_libdir_flag_spec_ld='+b $libdir'
  18572. - hardcode_direct=no
  18573. - hardcode_shlibpath_var=no
  18574. - ;;
  18575. - *)
  18576. - hardcode_direct=yes
  18577. - export_dynamic_flag_spec='${wl}-E'
  18578. - # hardcode_minus_L: Not really in the search PATH,
  18579. - # but as the default location of the library.
  18580. - hardcode_minus_L=yes
  18581. - ;;
  18582. - esac
  18583. - fi
  18584. - ;;
  18585. - irix5* | irix6* | nonstopux*)
  18586. - if test "$GCC" = yes; then
  18587. - 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'
  18588. - else
  18589. - 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'
  18590. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  18591. - fi
  18592. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  18593. - hardcode_libdir_separator=:
  18594. - link_all_deplibs=yes
  18595. - ;;
  18596. - netbsd*)
  18597. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  18598. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  18599. - else
  18600. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  18601. - fi
  18602. - hardcode_libdir_flag_spec='-R$libdir'
  18603. - hardcode_direct=yes
  18604. - hardcode_shlibpath_var=no
  18605. - ;;
  18606. - newsos6)
  18607. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18608. - hardcode_direct=yes
  18609. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  18610. - hardcode_libdir_separator=:
  18611. - hardcode_shlibpath_var=no
  18612. - ;;
  18613. - openbsd*)
  18614. - if test -f /usr/libexec/ld.so; then
  18615. - hardcode_direct=yes
  18616. - hardcode_shlibpath_var=no
  18617. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18618. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  18619. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  18620. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  18621. - export_dynamic_flag_spec='${wl}-E'
  18622. - else
  18623. - case $host_os in
  18624. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  18625. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  18626. - hardcode_libdir_flag_spec='-R$libdir'
  18627. - ;;
  18628. - *)
  18629. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  18630. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  18631. - ;;
  18632. - esac
  18633. - fi
  18634. - else
  18635. - ld_shlibs=no
  18636. - fi
  18637. - ;;
  18638. - os2*)
  18639. - hardcode_libdir_flag_spec='-L$libdir'
  18640. - hardcode_minus_L=yes
  18641. - allow_undefined_flag=unsupported
  18642. - 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'
  18643. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  18644. - ;;
  18645. +test -z "$LN_S" && LN_S="ln -s"
  18646. - osf3*)
  18647. - if test "$GCC" = yes; then
  18648. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  18649. - 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'
  18650. - else
  18651. - allow_undefined_flag=' -expect_unresolved \*'
  18652. - 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'
  18653. - fi
  18654. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  18655. - hardcode_libdir_separator=:
  18656. - ;;
  18657. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  18658. - if test "$GCC" = yes; then
  18659. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  18660. - 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'
  18661. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  18662. - else
  18663. - allow_undefined_flag=' -expect_unresolved \*'
  18664. - 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'
  18665. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  18666. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  18667. - # Both c and cxx compiler support -rpath directly
  18668. - hardcode_libdir_flag_spec='-rpath $libdir'
  18669. - fi
  18670. - hardcode_libdir_separator=:
  18671. - ;;
  18672. - solaris*)
  18673. - no_undefined_flag=' -z text'
  18674. - if test "$GCC" = yes; then
  18675. - wlarc='${wl}'
  18676. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18677. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  18678. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  18679. - else
  18680. - wlarc=''
  18681. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18682. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  18683. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  18684. - fi
  18685. - hardcode_libdir_flag_spec='-R$libdir'
  18686. - hardcode_shlibpath_var=no
  18687. - case $host_os in
  18688. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  18689. - *)
  18690. - # The compiler driver will combine and reorder linker options,
  18691. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  18692. - # but is careful enough not to reorder.
  18693. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  18694. - if test "$GCC" = yes; then
  18695. - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  18696. - else
  18697. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  18698. - fi
  18699. - ;;
  18700. - esac
  18701. - link_all_deplibs=yes
  18702. - ;;
  18703. - sunos4*)
  18704. - if test "x$host_vendor" = xsequent; then
  18705. - # Use $CC to link under sequent, because it throws in some extra .o
  18706. - # files that make .init and .fini sections work.
  18707. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  18708. - else
  18709. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  18710. - fi
  18711. - hardcode_libdir_flag_spec='-L$libdir'
  18712. - hardcode_direct=yes
  18713. - hardcode_minus_L=yes
  18714. - hardcode_shlibpath_var=no
  18715. - ;;
  18716. - sysv4)
  18717. - case $host_vendor in
  18718. - sni)
  18719. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18720. - hardcode_direct=yes # is this really true???
  18721. - ;;
  18722. - siemens)
  18723. - ## LD is ld it makes a PLAMLIB
  18724. - ## CC just makes a GrossModule.
  18725. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  18726. - reload_cmds='$CC -r -o $output$reload_objs'
  18727. - hardcode_direct=no
  18728. - ;;
  18729. - motorola)
  18730. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18731. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  18732. - ;;
  18733. - esac
  18734. - runpath_var='LD_RUN_PATH'
  18735. - hardcode_shlibpath_var=no
  18736. - ;;
  18737. - sysv4.3*)
  18738. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18739. - hardcode_shlibpath_var=no
  18740. - export_dynamic_flag_spec='-Bexport'
  18741. - ;;
  18742. - sysv4*MP*)
  18743. - if test -d /usr/nec; then
  18744. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18745. - hardcode_shlibpath_var=no
  18746. - runpath_var=LD_RUN_PATH
  18747. - hardcode_runpath_var=yes
  18748. - ld_shlibs=yes
  18749. - fi
  18750. - ;;
  18751. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  18752. - no_undefined_flag='${wl}-z,text'
  18753. - archive_cmds_need_lc=no
  18754. - hardcode_shlibpath_var=no
  18755. - runpath_var='LD_RUN_PATH'
  18756. - if test "$GCC" = yes; then
  18757. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18758. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18759. - else
  18760. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18761. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18762. - fi
  18763. - ;;
  18764. - sysv5* | sco3.2v5* | sco5v6*)
  18765. - # Note: We can NOT use -z defs as we might desire, because we do not
  18766. - # link with -lc, and that would cause any symbols used from libc to
  18767. - # always be unresolved, which means just about no library would
  18768. - # ever link correctly. If we're not using GNU ld we use -z text
  18769. - # though, which does catch some bad symbols but isn't as heavy-handed
  18770. - # as -z defs.
  18771. - no_undefined_flag='${wl}-z,text'
  18772. - allow_undefined_flag='${wl}-z,nodefs'
  18773. - archive_cmds_need_lc=no
  18774. - hardcode_shlibpath_var=no
  18775. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  18776. - hardcode_libdir_separator=':'
  18777. - link_all_deplibs=yes
  18778. - export_dynamic_flag_spec='${wl}-Bexport'
  18779. - runpath_var='LD_RUN_PATH'
  18780. - if test "$GCC" = yes; then
  18781. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18782. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18783. - else
  18784. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18785. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18786. - fi
  18787. - ;;
  18788. - uts4*)
  18789. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  18790. - hardcode_libdir_flag_spec='-L$libdir'
  18791. - hardcode_shlibpath_var=no
  18792. - ;;
  18793. - *)
  18794. - ld_shlibs=no
  18795. - ;;
  18796. - esac
  18797. - fi
  18798. +if test -n "${ZSH_VERSION+set}" ; then
  18799. + setopt NO_GLOB_SUBST
  18800. +fi
  18801. -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  18802. -echo "${ECHO_T}$ld_shlibs" >&6; }
  18803. -test "$ld_shlibs" = no && can_build_shared=no
  18804. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  18805. +$as_echo_n "checking for objdir... " >&6; }
  18806. +if test "${lt_cv_objdir+set}" = set; then :
  18807. + $as_echo_n "(cached) " >&6
  18808. +else
  18809. + rm -f .libs 2>/dev/null
  18810. +mkdir .libs 2>/dev/null
  18811. +if test -d .libs; then
  18812. + lt_cv_objdir=.libs
  18813. +else
  18814. + # MS-DOS does not allow filenames that begin with a dot.
  18815. + lt_cv_objdir=_libs
  18816. +fi
  18817. +rmdir .libs 2>/dev/null
  18818. +fi
  18819. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  18820. +$as_echo "$lt_cv_objdir" >&6; }
  18821. +objdir=$lt_cv_objdir
  18822. -#
  18823. -# Do we need to explicitly link libc?
  18824. -#
  18825. -case "x$archive_cmds_need_lc" in
  18826. -x|xyes)
  18827. - # Assume -lc should be added
  18828. - archive_cmds_need_lc=yes
  18829. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  18830. - case $archive_cmds in
  18831. - *'~'*)
  18832. - # FIXME: we may have to deal with multi-command sequences.
  18833. - ;;
  18834. - '$CC '*)
  18835. - # Test whether the compiler implicitly links with -lc since on some
  18836. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  18837. - # to ld, don't add -lc before -lgcc.
  18838. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  18839. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  18840. - $rm conftest*
  18841. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  18842. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18843. - (eval $ac_compile) 2>&5
  18844. - ac_status=$?
  18845. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18846. - (exit $ac_status); } 2>conftest.err; then
  18847. - soname=conftest
  18848. - lib=conftest
  18849. - libobjs=conftest.$ac_objext
  18850. - deplibs=
  18851. - wl=$lt_prog_compiler_wl
  18852. - pic_flag=$lt_prog_compiler_pic
  18853. - compiler_flags=-v
  18854. - linker_flags=-v
  18855. - verstring=
  18856. - output_objdir=.
  18857. - libname=conftest
  18858. - lt_save_allow_undefined_flag=$allow_undefined_flag
  18859. - allow_undefined_flag=
  18860. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  18861. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  18862. - ac_status=$?
  18863. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18864. - (exit $ac_status); }
  18865. - then
  18866. - archive_cmds_need_lc=no
  18867. - else
  18868. - archive_cmds_need_lc=yes
  18869. - fi
  18870. - allow_undefined_flag=$lt_save_allow_undefined_flag
  18871. - else
  18872. - cat conftest.err 1>&5
  18873. - fi
  18874. - $rm conftest*
  18875. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  18876. -echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  18877. - ;;
  18878. - esac
  18879. - fi
  18880. - ;;
  18881. -esac
  18882. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  18883. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  18884. -library_names_spec=
  18885. -libname_spec='lib$name'
  18886. -soname_spec=
  18887. -shrext_cmds=".so"
  18888. -postinstall_cmds=
  18889. -postuninstall_cmds=
  18890. -finish_cmds=
  18891. -finish_eval=
  18892. -shlibpath_var=
  18893. -shlibpath_overrides_runpath=unknown
  18894. -version_type=none
  18895. -dynamic_linker="$host_os ld.so"
  18896. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  18897. -if test "$GCC" = yes; then
  18898. - case $host_os in
  18899. - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  18900. - *) lt_awk_arg="/^libraries:/" ;;
  18901. - esac
  18902. - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  18903. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  18904. - # if the path contains ";" then we assume it to be the separator
  18905. - # otherwise default to the standard path separator (i.e. ":") - it is
  18906. - # assumed that no part of a normal pathname contains ";" but that should
  18907. - # okay in the real world where ";" in dirpaths is itself problematic.
  18908. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  18909. - else
  18910. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  18911. - fi
  18912. - # Ok, now we have the path, separated by spaces, we can step through it
  18913. - # and add multilib dir if necessary.
  18914. - lt_tmp_lt_search_path_spec=
  18915. - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  18916. - for lt_sys_path in $lt_search_path_spec; do
  18917. - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  18918. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  18919. - else
  18920. - test -d "$lt_sys_path" && \
  18921. - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  18922. - fi
  18923. - done
  18924. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  18925. -BEGIN {RS=" "; FS="/|\n";} {
  18926. - lt_foo="";
  18927. - lt_count=0;
  18928. - for (lt_i = NF; lt_i > 0; lt_i--) {
  18929. - if ($lt_i != "" && $lt_i != ".") {
  18930. - if ($lt_i == "..") {
  18931. - lt_count++;
  18932. - } else {
  18933. - if (lt_count == 0) {
  18934. - lt_foo="/" $lt_i lt_foo;
  18935. - } else {
  18936. - lt_count--;
  18937. - }
  18938. - }
  18939. - }
  18940. - }
  18941. - if (lt_foo != "") { lt_freq[lt_foo]++; }
  18942. - if (lt_freq[lt_foo] == 1) { print lt_foo; }
  18943. -}'`
  18944. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  18945. -else
  18946. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  18947. -fi
  18948. -need_lib_prefix=unknown
  18949. -hardcode_into_libs=no
  18950. +cat >>confdefs.h <<_ACEOF
  18951. +#define LT_OBJDIR "$lt_cv_objdir/"
  18952. +_ACEOF
  18953. -# when you set need_version to no, make sure it does not cause -set_version
  18954. -# flags to be left without arguments
  18955. -need_version=unknown
  18956. -case $host_os in
  18957. -aix3*)
  18958. - version_type=linux
  18959. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  18960. - shlibpath_var=LIBPATH
  18961. - # AIX 3 has no versioning support, so we append a major version to the name.
  18962. - soname_spec='${libname}${release}${shared_ext}$major'
  18963. - ;;
  18964. -aix4* | aix5*)
  18965. - version_type=linux
  18966. - need_lib_prefix=no
  18967. - need_version=no
  18968. - hardcode_into_libs=yes
  18969. - if test "$host_cpu" = ia64; then
  18970. - # AIX 5 supports IA64
  18971. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  18972. - shlibpath_var=LD_LIBRARY_PATH
  18973. - else
  18974. - # With GCC up to 2.95.x, collect2 would create an import file
  18975. - # for dependence libraries. The import file would start with
  18976. - # the line `#! .'. This would cause the generated library to
  18977. - # depend on `.', always an invalid library. This was fixed in
  18978. - # development snapshots of GCC prior to 3.0.
  18979. - case $host_os in
  18980. - aix4 | aix4.[01] | aix4.[01].*)
  18981. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  18982. - echo ' yes '
  18983. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  18984. - :
  18985. - else
  18986. - can_build_shared=no
  18987. - fi
  18988. - ;;
  18989. - esac
  18990. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  18991. - # soname into executable. Probably we can add versioning support to
  18992. - # collect2, so additional links can be useful in future.
  18993. - if test "$aix_use_runtimelinking" = yes; then
  18994. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  18995. - # instead of lib<name>.a to let people know that these are not
  18996. - # typical AIX shared libraries.
  18997. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18998. - else
  18999. - # We preserve .a as extension for shared libraries through AIX4.2
  19000. - # and later when we are not doing run time linking.
  19001. - library_names_spec='${libname}${release}.a $libname.a'
  19002. - soname_spec='${libname}${release}${shared_ext}$major'
  19003. - fi
  19004. - shlibpath_var=LIBPATH
  19005. - fi
  19006. - ;;
  19007. -amigaos*)
  19008. - library_names_spec='$libname.ixlibrary $libname.a'
  19009. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  19010. - 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'
  19011. - ;;
  19012. -beos*)
  19013. - library_names_spec='${libname}${shared_ext}'
  19014. - dynamic_linker="$host_os ld.so"
  19015. - shlibpath_var=LIBRARY_PATH
  19016. - ;;
  19017. -bsdi[45]*)
  19018. - version_type=linux
  19019. - need_version=no
  19020. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19021. - soname_spec='${libname}${release}${shared_ext}$major'
  19022. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  19023. - shlibpath_var=LD_LIBRARY_PATH
  19024. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  19025. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  19026. - # the default ld.so.conf also contains /usr/contrib/lib and
  19027. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  19028. - # libtool to hard-code these into programs
  19029. - ;;
  19030. -cygwin* | mingw* | pw32*)
  19031. - version_type=windows
  19032. - shrext_cmds=".dll"
  19033. - need_version=no
  19034. - need_lib_prefix=no
  19035. - case $GCC,$host_os in
  19036. - yes,cygwin* | yes,mingw* | yes,pw32*)
  19037. - library_names_spec='$libname.dll.a'
  19038. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  19039. - postinstall_cmds='base_file=`basename \${file}`~
  19040. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  19041. - dldir=$destdir/`dirname \$dlpath`~
  19042. - test -d \$dldir || mkdir -p \$dldir~
  19043. - $install_prog $dir/$dlname \$dldir/$dlname~
  19044. - chmod a+x \$dldir/$dlname'
  19045. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  19046. - dlpath=$dir/\$dldll~
  19047. - $rm \$dlpath'
  19048. - shlibpath_overrides_runpath=yes
  19049. - case $host_os in
  19050. - cygwin*)
  19051. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  19052. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  19053. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  19054. - ;;
  19055. - mingw*)
  19056. - # MinGW DLLs use traditional 'lib' prefix
  19057. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  19058. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  19059. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  19060. - # It is most probably a Windows format PATH printed by
  19061. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  19062. - # path with ; separators, and with drive letters. We can handle the
  19063. - # drive letters (cygwin fileutils understands them), so leave them,
  19064. - # especially as we might pass files found there to a mingw objdump,
  19065. - # which wouldn't understand a cygwinified path. Ahh.
  19066. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  19067. - else
  19068. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  19069. - fi
  19070. - ;;
  19071. - pw32*)
  19072. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  19073. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  19074. - ;;
  19075. - esac
  19076. - ;;
  19077. - *)
  19078. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  19079. - ;;
  19080. - esac
  19081. - dynamic_linker='Win32 ld.exe'
  19082. - # FIXME: first we should search . and the directory the executable is in
  19083. - shlibpath_var=PATH
  19084. - ;;
  19085. -darwin* | rhapsody*)
  19086. - dynamic_linker="$host_os dyld"
  19087. - version_type=darwin
  19088. - need_lib_prefix=no
  19089. - need_version=no
  19090. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  19091. - soname_spec='${libname}${release}${major}$shared_ext'
  19092. - shlibpath_overrides_runpath=yes
  19093. - shlibpath_var=DYLD_LIBRARY_PATH
  19094. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  19095. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  19096. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  19097. - ;;
  19098. -dgux*)
  19099. - version_type=linux
  19100. - need_lib_prefix=no
  19101. - need_version=no
  19102. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  19103. - soname_spec='${libname}${release}${shared_ext}$major'
  19104. - shlibpath_var=LD_LIBRARY_PATH
  19105. - ;;
  19106. -freebsd1*)
  19107. - dynamic_linker=no
  19108. - ;;
  19109. -freebsd* | dragonfly*)
  19110. - # DragonFly does not have aout. When/if they implement a new
  19111. - # versioning mechanism, adjust this.
  19112. - if test -x /usr/bin/objformat; then
  19113. - objformat=`/usr/bin/objformat`
  19114. - else
  19115. - case $host_os in
  19116. - freebsd[123]*) objformat=aout ;;
  19117. - *) objformat=elf ;;
  19118. - esac
  19119. +
  19120. +case $host_os in
  19121. +aix3*)
  19122. + # AIX sometimes has problems with the GCC collect2 program. For some
  19123. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  19124. + # vanish in a puff of smoke.
  19125. + if test "X${COLLECT_NAMES+set}" != Xset; then
  19126. + COLLECT_NAMES=
  19127. + export COLLECT_NAMES
  19128. fi
  19129. - version_type=freebsd-$objformat
  19130. - case $version_type in
  19131. - freebsd-elf*)
  19132. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  19133. - need_version=no
  19134. - need_lib_prefix=no
  19135. - ;;
  19136. - freebsd-*)
  19137. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  19138. - need_version=yes
  19139. - ;;
  19140. - esac
  19141. - shlibpath_var=LD_LIBRARY_PATH
  19142. - case $host_os in
  19143. - freebsd2*)
  19144. - shlibpath_overrides_runpath=yes
  19145. - ;;
  19146. - freebsd3.[01]* | freebsdelf3.[01]*)
  19147. - shlibpath_overrides_runpath=yes
  19148. - hardcode_into_libs=yes
  19149. - ;;
  19150. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  19151. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  19152. - shlibpath_overrides_runpath=no
  19153. - hardcode_into_libs=yes
  19154. - ;;
  19155. - *) # from 4.6 on, and DragonFly
  19156. - shlibpath_overrides_runpath=yes
  19157. - hardcode_into_libs=yes
  19158. - ;;
  19159. - esac
  19160. ;;
  19161. +esac
  19162. -gnu*)
  19163. - version_type=linux
  19164. - need_lib_prefix=no
  19165. - need_version=no
  19166. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  19167. - soname_spec='${libname}${release}${shared_ext}$major'
  19168. - shlibpath_var=LD_LIBRARY_PATH
  19169. - hardcode_into_libs=yes
  19170. - ;;
  19171. +# Sed substitution that helps us do robust quoting. It backslashifies
  19172. +# metacharacters that are still active within double-quoted strings.
  19173. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  19174. -hpux9* | hpux10* | hpux11*)
  19175. - # Give a soname corresponding to the major version so that dld.sl refuses to
  19176. - # link against other versions.
  19177. - version_type=sunos
  19178. - need_lib_prefix=no
  19179. - need_version=no
  19180. - case $host_cpu in
  19181. - ia64*)
  19182. - shrext_cmds='.so'
  19183. - hardcode_into_libs=yes
  19184. - dynamic_linker="$host_os dld.so"
  19185. - shlibpath_var=LD_LIBRARY_PATH
  19186. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  19187. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19188. - soname_spec='${libname}${release}${shared_ext}$major'
  19189. - if test "X$HPUX_IA64_MODE" = X32; then
  19190. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  19191. - else
  19192. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  19193. - fi
  19194. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  19195. - ;;
  19196. - hppa*64*)
  19197. - shrext_cmds='.sl'
  19198. - hardcode_into_libs=yes
  19199. - dynamic_linker="$host_os dld.sl"
  19200. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  19201. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  19202. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19203. - soname_spec='${libname}${release}${shared_ext}$major'
  19204. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  19205. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  19206. - ;;
  19207. - *)
  19208. - shrext_cmds='.sl'
  19209. - dynamic_linker="$host_os dld.sl"
  19210. - shlibpath_var=SHLIB_PATH
  19211. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  19212. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19213. - soname_spec='${libname}${release}${shared_ext}$major'
  19214. - ;;
  19215. - esac
  19216. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  19217. - postinstall_cmds='chmod 555 $lib'
  19218. - ;;
  19219. +# Same as above, but do not quote variable references.
  19220. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  19221. -interix[3-9]*)
  19222. - version_type=linux
  19223. - need_lib_prefix=no
  19224. - need_version=no
  19225. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  19226. - soname_spec='${libname}${release}${shared_ext}$major'
  19227. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  19228. - shlibpath_var=LD_LIBRARY_PATH
  19229. - shlibpath_overrides_runpath=no
  19230. - hardcode_into_libs=yes
  19231. - ;;
  19232. +# Sed substitution to delay expansion of an escaped shell variable in a
  19233. +# double_quote_subst'ed string.
  19234. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  19235. -irix5* | irix6* | nonstopux*)
  19236. - case $host_os in
  19237. - nonstopux*) version_type=nonstopux ;;
  19238. - *)
  19239. - if test "$lt_cv_prog_gnu_ld" = yes; then
  19240. - version_type=linux
  19241. - else
  19242. - version_type=irix
  19243. - fi ;;
  19244. - esac
  19245. - need_lib_prefix=no
  19246. - need_version=no
  19247. - soname_spec='${libname}${release}${shared_ext}$major'
  19248. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  19249. - case $host_os in
  19250. - irix5* | nonstopux*)
  19251. - libsuff= shlibsuff=
  19252. - ;;
  19253. - *)
  19254. - case $LD in # libtool.m4 will add one of these switches to LD
  19255. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  19256. - libsuff= shlibsuff= libmagic=32-bit;;
  19257. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  19258. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  19259. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  19260. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  19261. - *) libsuff= shlibsuff= libmagic=never-match;;
  19262. - esac
  19263. - ;;
  19264. - esac
  19265. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  19266. - shlibpath_overrides_runpath=no
  19267. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  19268. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  19269. - hardcode_into_libs=yes
  19270. - ;;
  19271. +# Sed substitution to delay expansion of an escaped single quote.
  19272. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  19273. -# No shared lib support for Linux oldld, aout, or coff.
  19274. -linux*oldld* | linux*aout* | linux*coff*)
  19275. - dynamic_linker=no
  19276. - ;;
  19277. +# Sed substitution to avoid accidental globbing in evaled expressions
  19278. +no_glob_subst='s/\*/\\\*/g'
  19279. -# This must be Linux ELF.
  19280. -linux* | k*bsd*-gnu)
  19281. - version_type=linux
  19282. - need_lib_prefix=no
  19283. - need_version=no
  19284. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19285. - soname_spec='${libname}${release}${shared_ext}$major'
  19286. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  19287. - shlibpath_var=LD_LIBRARY_PATH
  19288. - shlibpath_overrides_runpath=no
  19289. - # This implies no fast_install, which is unacceptable.
  19290. - # Some rework will be needed to allow for fast_install
  19291. - # before this can be enabled.
  19292. - hardcode_into_libs=yes
  19293. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  19294. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  19295. +# Global variables:
  19296. +ofile=libtool
  19297. +can_build_shared=yes
  19298. - # Append ld.so.conf contents to the search path
  19299. - if test -f /etc/ld.so.conf; then
  19300. - 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' ' '`
  19301. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  19302. - fi
  19303. +# All known linkers require a `.a' archive for static linking (except MSVC,
  19304. +# which needs '.lib').
  19305. +libext=a
  19306. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  19307. - # powerpc, because MkLinux only supported shared libraries with the
  19308. - # GNU dynamic linker. Since this was broken with cross compilers,
  19309. - # most powerpc-linux boxes support dynamic linking these days and
  19310. - # people can always --disable-shared, the test was removed, and we
  19311. - # assume the GNU/Linux dynamic linker is in use.
  19312. - dynamic_linker='GNU/Linux ld.so'
  19313. - ;;
  19314. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  19315. -netbsd*)
  19316. - version_type=sunos
  19317. - need_lib_prefix=no
  19318. - need_version=no
  19319. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  19320. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  19321. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  19322. - dynamic_linker='NetBSD (a.out) ld.so'
  19323. - else
  19324. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  19325. - soname_spec='${libname}${release}${shared_ext}$major'
  19326. - dynamic_linker='NetBSD ld.elf_so'
  19327. - fi
  19328. - shlibpath_var=LD_LIBRARY_PATH
  19329. - shlibpath_overrides_runpath=yes
  19330. - hardcode_into_libs=yes
  19331. - ;;
  19332. +old_CC="$CC"
  19333. +old_CFLAGS="$CFLAGS"
  19334. -newsos6)
  19335. - version_type=linux
  19336. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19337. - shlibpath_var=LD_LIBRARY_PATH
  19338. - shlibpath_overrides_runpath=yes
  19339. - ;;
  19340. +# Set sane defaults for various variables
  19341. +test -z "$CC" && CC=cc
  19342. +test -z "$LTCC" && LTCC=$CC
  19343. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  19344. +test -z "$LD" && LD=ld
  19345. +test -z "$ac_objext" && ac_objext=o
  19346. -nto-qnx*)
  19347. - version_type=linux
  19348. - need_lib_prefix=no
  19349. - need_version=no
  19350. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19351. - soname_spec='${libname}${release}${shared_ext}$major'
  19352. - shlibpath_var=LD_LIBRARY_PATH
  19353. - shlibpath_overrides_runpath=yes
  19354. - ;;
  19355. +for cc_temp in $compiler""; do
  19356. + case $cc_temp in
  19357. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19358. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19359. + \-*) ;;
  19360. + *) break;;
  19361. + esac
  19362. +done
  19363. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  19364. -openbsd*)
  19365. - version_type=sunos
  19366. - sys_lib_dlsearch_path_spec="/usr/lib"
  19367. - need_lib_prefix=no
  19368. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  19369. - case $host_os in
  19370. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  19371. - *) need_version=no ;;
  19372. - esac
  19373. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  19374. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  19375. - shlibpath_var=LD_LIBRARY_PATH
  19376. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  19377. - case $host_os in
  19378. - openbsd2.[89] | openbsd2.[89].*)
  19379. - shlibpath_overrides_runpath=no
  19380. - ;;
  19381. - *)
  19382. - shlibpath_overrides_runpath=yes
  19383. - ;;
  19384. - esac
  19385. - else
  19386. - shlibpath_overrides_runpath=yes
  19387. - fi
  19388. - ;;
  19389. -os2*)
  19390. - libname_spec='$name'
  19391. - shrext_cmds=".dll"
  19392. - need_lib_prefix=no
  19393. - library_names_spec='$libname${shared_ext} $libname.a'
  19394. - dynamic_linker='OS/2 ld.exe'
  19395. - shlibpath_var=LIBPATH
  19396. +# Only perform the check for file, if the check method requires it
  19397. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  19398. +case $deplibs_check_method in
  19399. +file_magic*)
  19400. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  19401. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  19402. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  19403. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  19404. + $as_echo_n "(cached) " >&6
  19405. +else
  19406. + case $MAGIC_CMD in
  19407. +[\\/*] | ?:[\\/]*)
  19408. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  19409. ;;
  19410. +*)
  19411. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  19412. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  19413. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  19414. + for ac_dir in $ac_dummy; do
  19415. + IFS="$lt_save_ifs"
  19416. + test -z "$ac_dir" && ac_dir=.
  19417. + if test -f $ac_dir/${ac_tool_prefix}file; then
  19418. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  19419. + if test -n "$file_magic_test_file"; then
  19420. + case $deplibs_check_method in
  19421. + "file_magic "*)
  19422. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  19423. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  19424. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  19425. + $EGREP "$file_magic_regex" > /dev/null; then
  19426. + :
  19427. + else
  19428. + cat <<_LT_EOF 1>&2
  19429. -osf3* | osf4* | osf5*)
  19430. - version_type=osf
  19431. - need_lib_prefix=no
  19432. - need_version=no
  19433. - soname_spec='${libname}${release}${shared_ext}$major'
  19434. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19435. - shlibpath_var=LD_LIBRARY_PATH
  19436. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  19437. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  19438. - ;;
  19439. +*** Warning: the command libtool uses to detect shared libraries,
  19440. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  19441. +*** The result is that libtool may fail to recognize shared libraries
  19442. +*** as such. This will affect the creation of libtool libraries that
  19443. +*** depend on shared libraries, but programs linked with such libtool
  19444. +*** libraries will work regardless of this problem. Nevertheless, you
  19445. +*** may want to report the problem to your system manager and/or to
  19446. +*** bug-libtool@gnu.org
  19447. -rdos*)
  19448. - dynamic_linker=no
  19449. +_LT_EOF
  19450. + fi ;;
  19451. + esac
  19452. + fi
  19453. + break
  19454. + fi
  19455. + done
  19456. + IFS="$lt_save_ifs"
  19457. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  19458. ;;
  19459. +esac
  19460. +fi
  19461. -solaris*)
  19462. - version_type=linux
  19463. - need_lib_prefix=no
  19464. - need_version=no
  19465. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19466. - soname_spec='${libname}${release}${shared_ext}$major'
  19467. - shlibpath_var=LD_LIBRARY_PATH
  19468. - shlibpath_overrides_runpath=yes
  19469. - hardcode_into_libs=yes
  19470. - # ldd complains unless libraries are executable
  19471. - postinstall_cmds='chmod +x $lib'
  19472. - ;;
  19473. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  19474. +if test -n "$MAGIC_CMD"; then
  19475. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  19476. +$as_echo "$MAGIC_CMD" >&6; }
  19477. +else
  19478. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19479. +$as_echo "no" >&6; }
  19480. +fi
  19481. -sunos4*)
  19482. - version_type=sunos
  19483. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  19484. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  19485. - shlibpath_var=LD_LIBRARY_PATH
  19486. - shlibpath_overrides_runpath=yes
  19487. - if test "$with_gnu_ld" = yes; then
  19488. - need_lib_prefix=no
  19489. - fi
  19490. - need_version=yes
  19491. - ;;
  19492. -sysv4 | sysv4.3*)
  19493. - version_type=linux
  19494. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19495. - soname_spec='${libname}${release}${shared_ext}$major'
  19496. - shlibpath_var=LD_LIBRARY_PATH
  19497. - case $host_vendor in
  19498. - sni)
  19499. - shlibpath_overrides_runpath=no
  19500. - need_lib_prefix=no
  19501. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  19502. - runpath_var=LD_RUN_PATH
  19503. - ;;
  19504. - siemens)
  19505. - need_lib_prefix=no
  19506. - ;;
  19507. - motorola)
  19508. - need_lib_prefix=no
  19509. - need_version=no
  19510. - shlibpath_overrides_runpath=no
  19511. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  19512. - ;;
  19513. - esac
  19514. - ;;
  19515. -sysv4*MP*)
  19516. - if test -d /usr/nec ;then
  19517. - version_type=linux
  19518. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  19519. - soname_spec='$libname${shared_ext}.$major'
  19520. - shlibpath_var=LD_LIBRARY_PATH
  19521. - fi
  19522. - ;;
  19523. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  19524. - version_type=freebsd-elf
  19525. - need_lib_prefix=no
  19526. - need_version=no
  19527. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  19528. - soname_spec='${libname}${release}${shared_ext}$major'
  19529. - shlibpath_var=LD_LIBRARY_PATH
  19530. - hardcode_into_libs=yes
  19531. - if test "$with_gnu_ld" = yes; then
  19532. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  19533. - shlibpath_overrides_runpath=no
  19534. - else
  19535. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  19536. - shlibpath_overrides_runpath=yes
  19537. - case $host_os in
  19538. - sco3.2v5*)
  19539. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  19540. - ;;
  19541. - esac
  19542. - fi
  19543. - sys_lib_dlsearch_path_spec='/usr/lib'
  19544. - ;;
  19545. -uts4*)
  19546. - version_type=linux
  19547. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19548. - soname_spec='${libname}${release}${shared_ext}$major'
  19549. - shlibpath_var=LD_LIBRARY_PATH
  19550. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  19551. + if test -n "$ac_tool_prefix"; then
  19552. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  19553. +$as_echo_n "checking for file... " >&6; }
  19554. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  19555. + $as_echo_n "(cached) " >&6
  19556. +else
  19557. + case $MAGIC_CMD in
  19558. +[\\/*] | ?:[\\/]*)
  19559. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  19560. ;;
  19561. -
  19562. *)
  19563. - dynamic_linker=no
  19564. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  19565. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  19566. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  19567. + for ac_dir in $ac_dummy; do
  19568. + IFS="$lt_save_ifs"
  19569. + test -z "$ac_dir" && ac_dir=.
  19570. + if test -f $ac_dir/file; then
  19571. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  19572. + if test -n "$file_magic_test_file"; then
  19573. + case $deplibs_check_method in
  19574. + "file_magic "*)
  19575. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  19576. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  19577. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  19578. + $EGREP "$file_magic_regex" > /dev/null; then
  19579. + :
  19580. + else
  19581. + cat <<_LT_EOF 1>&2
  19582. +
  19583. +*** Warning: the command libtool uses to detect shared libraries,
  19584. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  19585. +*** The result is that libtool may fail to recognize shared libraries
  19586. +*** as such. This will affect the creation of libtool libraries that
  19587. +*** depend on shared libraries, but programs linked with such libtool
  19588. +*** libraries will work regardless of this problem. Nevertheless, you
  19589. +*** may want to report the problem to your system manager and/or to
  19590. +*** bug-libtool@gnu.org
  19591. +
  19592. +_LT_EOF
  19593. + fi ;;
  19594. + esac
  19595. + fi
  19596. + break
  19597. + fi
  19598. + done
  19599. + IFS="$lt_save_ifs"
  19600. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  19601. ;;
  19602. esac
  19603. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  19604. -echo "${ECHO_T}$dynamic_linker" >&6; }
  19605. -test "$dynamic_linker" = no && can_build_shared=no
  19606. +fi
  19607. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  19608. -if test "$GCC" = yes; then
  19609. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  19610. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  19611. +if test -n "$MAGIC_CMD"; then
  19612. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  19613. +$as_echo "$MAGIC_CMD" >&6; }
  19614. +else
  19615. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19616. +$as_echo "no" >&6; }
  19617. fi
  19618. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  19619. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  19620. -hardcode_action=
  19621. -if test -n "$hardcode_libdir_flag_spec" || \
  19622. - test -n "$runpath_var" || \
  19623. - test "X$hardcode_automatic" = "Xyes" ; then
  19624. - # We can hardcode non-existant directories.
  19625. - if test "$hardcode_direct" != no &&
  19626. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  19627. - # have to relink, otherwise we might link with an installed library
  19628. - # when we should be linking with a yet-to-be-installed one
  19629. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  19630. - test "$hardcode_minus_L" != no; then
  19631. - # Linking always hardcodes the temporary library directory.
  19632. - hardcode_action=relink
  19633. else
  19634. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  19635. - hardcode_action=immediate
  19636. + MAGIC_CMD=:
  19637. fi
  19638. -else
  19639. - # We cannot hardcode anything, or else we can only hardcode existing
  19640. - # directories.
  19641. - hardcode_action=unsupported
  19642. fi
  19643. -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
  19644. -echo "${ECHO_T}$hardcode_action" >&6; }
  19645. -if test "$hardcode_action" = relink; then
  19646. - # Fast installation is not supported
  19647. - enable_fast_install=no
  19648. -elif test "$shlibpath_overrides_runpath" = yes ||
  19649. - test "$enable_shared" = no; then
  19650. - # Fast installation is not necessary
  19651. - enable_fast_install=needless
  19652. -fi
  19653. + fi
  19654. + ;;
  19655. +esac
  19656. -striplib=
  19657. -old_striplib=
  19658. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  19659. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  19660. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  19661. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  19662. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  19663. - { echo "$as_me:$LINENO: result: yes" >&5
  19664. -echo "${ECHO_T}yes" >&6; }
  19665. -else
  19666. -# FIXME - insert some real tests, host_os isn't really good enough
  19667. - case $host_os in
  19668. - darwin*)
  19669. - if test -n "$STRIP" ; then
  19670. - striplib="$STRIP -x"
  19671. - old_striplib="$STRIP -S"
  19672. - { echo "$as_me:$LINENO: result: yes" >&5
  19673. -echo "${ECHO_T}yes" >&6; }
  19674. - else
  19675. - { echo "$as_me:$LINENO: result: no" >&5
  19676. -echo "${ECHO_T}no" >&6; }
  19677. -fi
  19678. - ;;
  19679. - *)
  19680. - { echo "$as_me:$LINENO: result: no" >&5
  19681. -echo "${ECHO_T}no" >&6; }
  19682. - ;;
  19683. - esac
  19684. -fi
  19685. +# Use C for the default configuration in the libtool script
  19686. -if test "x$enable_dlopen" != xyes; then
  19687. - enable_dlopen=unknown
  19688. - enable_dlopen_self=unknown
  19689. - enable_dlopen_self_static=unknown
  19690. -else
  19691. - lt_cv_dlopen=no
  19692. - lt_cv_dlopen_libs=
  19693. +lt_save_CC="$CC"
  19694. +ac_ext=c
  19695. +ac_cpp='$CPP $CPPFLAGS'
  19696. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19697. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19698. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19699. - case $host_os in
  19700. - beos*)
  19701. - lt_cv_dlopen="load_add_on"
  19702. - lt_cv_dlopen_libs=
  19703. - lt_cv_dlopen_self=yes
  19704. - ;;
  19705. - mingw* | pw32*)
  19706. - lt_cv_dlopen="LoadLibrary"
  19707. - lt_cv_dlopen_libs=
  19708. - ;;
  19709. +# Source file extension for C test sources.
  19710. +ac_ext=c
  19711. - cygwin*)
  19712. - lt_cv_dlopen="dlopen"
  19713. - lt_cv_dlopen_libs=
  19714. - ;;
  19715. +# Object file extension for compiled C test sources.
  19716. +objext=o
  19717. +objext=$objext
  19718. - darwin*)
  19719. - # if libdl is installed we need to link against it
  19720. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  19721. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  19722. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  19723. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19724. -else
  19725. - ac_check_lib_save_LIBS=$LIBS
  19726. -LIBS="-ldl $LIBS"
  19727. -cat >conftest.$ac_ext <<_ACEOF
  19728. -/* confdefs.h. */
  19729. -_ACEOF
  19730. -cat confdefs.h >>conftest.$ac_ext
  19731. -cat >>conftest.$ac_ext <<_ACEOF
  19732. -/* end confdefs.h. */
  19733. +# Code to be used in simple compile tests
  19734. +lt_simple_compile_test_code="int some_variable = 0;"
  19735. -/* Override any GCC internal prototype to avoid an error.
  19736. - Use char because int might match the return type of a GCC
  19737. - builtin and then its argument prototype would still apply. */
  19738. -#ifdef __cplusplus
  19739. -extern "C"
  19740. -#endif
  19741. -char dlopen ();
  19742. -int
  19743. -main ()
  19744. -{
  19745. -return dlopen ();
  19746. - ;
  19747. - return 0;
  19748. -}
  19749. -_ACEOF
  19750. -rm -f conftest.$ac_objext conftest$ac_exeext
  19751. -if { (ac_try="$ac_link"
  19752. -case "(($ac_try" in
  19753. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19754. - *) ac_try_echo=$ac_try;;
  19755. -esac
  19756. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19757. - (eval "$ac_link") 2>conftest.er1
  19758. - ac_status=$?
  19759. - grep -v '^ *+' conftest.er1 >conftest.err
  19760. - rm -f conftest.er1
  19761. - cat conftest.err >&5
  19762. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19763. - (exit $ac_status); } && {
  19764. - test -z "$ac_c_werror_flag" ||
  19765. - test ! -s conftest.err
  19766. - } && test -s conftest$ac_exeext &&
  19767. - $as_test_x conftest$ac_exeext; then
  19768. - ac_cv_lib_dl_dlopen=yes
  19769. -else
  19770. - echo "$as_me: failed program was:" >&5
  19771. -sed 's/^/| /' conftest.$ac_ext >&5
  19772. +# Code to be used in simple link tests
  19773. +lt_simple_link_test_code='int main(){return(0);}'
  19774. - ac_cv_lib_dl_dlopen=no
  19775. -fi
  19776. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19777. - conftest$ac_exeext conftest.$ac_ext
  19778. -LIBS=$ac_check_lib_save_LIBS
  19779. -fi
  19780. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  19781. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  19782. -if test $ac_cv_lib_dl_dlopen = yes; then
  19783. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  19784. -else
  19785. - lt_cv_dlopen="dyld"
  19786. - lt_cv_dlopen_libs=
  19787. - lt_cv_dlopen_self=yes
  19788. -fi
  19789. - ;;
  19790. - *)
  19791. - { echo "$as_me:$LINENO: checking for shl_load" >&5
  19792. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  19793. -if test "${ac_cv_func_shl_load+set}" = set; then
  19794. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19795. -else
  19796. - cat >conftest.$ac_ext <<_ACEOF
  19797. -/* confdefs.h. */
  19798. -_ACEOF
  19799. -cat confdefs.h >>conftest.$ac_ext
  19800. -cat >>conftest.$ac_ext <<_ACEOF
  19801. -/* end confdefs.h. */
  19802. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  19803. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19804. -#define shl_load innocuous_shl_load
  19805. -/* System header to define __stub macros and hopefully few prototypes,
  19806. - which can conflict with char shl_load (); below.
  19807. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19808. - <limits.h> exists even on freestanding compilers. */
  19809. +# If no C compiler was specified, use CC.
  19810. +LTCC=${LTCC-"$CC"}
  19811. -#ifdef __STDC__
  19812. -# include <limits.h>
  19813. -#else
  19814. -# include <assert.h>
  19815. -#endif
  19816. +# If no C compiler flags were specified, use CFLAGS.
  19817. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  19818. -#undef shl_load
  19819. +# Allow CC to be a program name with arguments.
  19820. +compiler=$CC
  19821. -/* Override any GCC internal prototype to avoid an error.
  19822. - Use char because int might match the return type of a GCC
  19823. - builtin and then its argument prototype would still apply. */
  19824. -#ifdef __cplusplus
  19825. -extern "C"
  19826. -#endif
  19827. -char shl_load ();
  19828. -/* The GNU C library defines this for functions which it implements
  19829. - to always fail with ENOSYS. Some functions are actually named
  19830. - something starting with __ and the normal name is an alias. */
  19831. -#if defined __stub_shl_load || defined __stub___shl_load
  19832. -choke me
  19833. -#endif
  19834. +# Save the default compiler, since it gets overwritten when the other
  19835. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  19836. +compiler_DEFAULT=$CC
  19837. -int
  19838. -main ()
  19839. -{
  19840. -return shl_load ();
  19841. - ;
  19842. - return 0;
  19843. -}
  19844. -_ACEOF
  19845. -rm -f conftest.$ac_objext conftest$ac_exeext
  19846. -if { (ac_try="$ac_link"
  19847. -case "(($ac_try" in
  19848. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19849. - *) ac_try_echo=$ac_try;;
  19850. -esac
  19851. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19852. - (eval "$ac_link") 2>conftest.er1
  19853. - ac_status=$?
  19854. - grep -v '^ *+' conftest.er1 >conftest.err
  19855. - rm -f conftest.er1
  19856. - cat conftest.err >&5
  19857. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19858. - (exit $ac_status); } && {
  19859. - test -z "$ac_c_werror_flag" ||
  19860. - test ! -s conftest.err
  19861. - } && test -s conftest$ac_exeext &&
  19862. - $as_test_x conftest$ac_exeext; then
  19863. - ac_cv_func_shl_load=yes
  19864. -else
  19865. - echo "$as_me: failed program was:" >&5
  19866. -sed 's/^/| /' conftest.$ac_ext >&5
  19867. +# save warnings/boilerplate of simple test code
  19868. +ac_outfile=conftest.$ac_objext
  19869. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  19870. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  19871. +_lt_compiler_boilerplate=`cat conftest.err`
  19872. +$RM conftest*
  19873. - ac_cv_func_shl_load=no
  19874. -fi
  19875. +ac_outfile=conftest.$ac_objext
  19876. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  19877. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  19878. +_lt_linker_boilerplate=`cat conftest.err`
  19879. +$RM -r conftest*
  19880. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19881. - conftest$ac_exeext conftest.$ac_ext
  19882. -fi
  19883. -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  19884. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  19885. -if test $ac_cv_func_shl_load = yes; then
  19886. - lt_cv_dlopen="shl_load"
  19887. -else
  19888. - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  19889. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  19890. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  19891. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19892. -else
  19893. - ac_check_lib_save_LIBS=$LIBS
  19894. -LIBS="-ldld $LIBS"
  19895. -cat >conftest.$ac_ext <<_ACEOF
  19896. -/* confdefs.h. */
  19897. -_ACEOF
  19898. -cat confdefs.h >>conftest.$ac_ext
  19899. -cat >>conftest.$ac_ext <<_ACEOF
  19900. -/* end confdefs.h. */
  19901. -/* Override any GCC internal prototype to avoid an error.
  19902. - Use char because int might match the return type of a GCC
  19903. - builtin and then its argument prototype would still apply. */
  19904. -#ifdef __cplusplus
  19905. -extern "C"
  19906. -#endif
  19907. -char shl_load ();
  19908. -int
  19909. -main ()
  19910. -{
  19911. -return shl_load ();
  19912. - ;
  19913. - return 0;
  19914. -}
  19915. -_ACEOF
  19916. -rm -f conftest.$ac_objext conftest$ac_exeext
  19917. -if { (ac_try="$ac_link"
  19918. -case "(($ac_try" in
  19919. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19920. - *) ac_try_echo=$ac_try;;
  19921. -esac
  19922. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19923. - (eval "$ac_link") 2>conftest.er1
  19924. - ac_status=$?
  19925. - grep -v '^ *+' conftest.er1 >conftest.err
  19926. - rm -f conftest.er1
  19927. - cat conftest.err >&5
  19928. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19929. - (exit $ac_status); } && {
  19930. - test -z "$ac_c_werror_flag" ||
  19931. - test ! -s conftest.err
  19932. - } && test -s conftest$ac_exeext &&
  19933. - $as_test_x conftest$ac_exeext; then
  19934. - ac_cv_lib_dld_shl_load=yes
  19935. +## CAVEAT EMPTOR:
  19936. +## There is no encapsulation within the following macros, do not change
  19937. +## the running order or otherwise move them around unless you know exactly
  19938. +## what you are doing...
  19939. +if test -n "$compiler"; then
  19940. +
  19941. +lt_prog_compiler_no_builtin_flag=
  19942. +
  19943. +if test "$GCC" = yes; then
  19944. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  19945. +
  19946. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  19947. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  19948. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  19949. + $as_echo_n "(cached) " >&6
  19950. else
  19951. - echo "$as_me: failed program was:" >&5
  19952. -sed 's/^/| /' conftest.$ac_ext >&5
  19953. + lt_cv_prog_compiler_rtti_exceptions=no
  19954. + ac_outfile=conftest.$ac_objext
  19955. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  19956. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  19957. + # Insert the option either (1) after the last *FLAGS variable, or
  19958. + # (2) before a word containing "conftest.", or (3) at the end.
  19959. + # Note that $ac_compile itself does not contain backslashes and begins
  19960. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  19961. + # The option is referenced via a variable to avoid confusing sed.
  19962. + lt_compile=`echo "$ac_compile" | $SED \
  19963. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  19964. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  19965. + -e 's:$: $lt_compiler_flag:'`
  19966. + (eval echo "\"\$as_me:7462: $lt_compile\"" >&5)
  19967. + (eval "$lt_compile" 2>conftest.err)
  19968. + ac_status=$?
  19969. + cat conftest.err >&5
  19970. + echo "$as_me:7466: \$? = $ac_status" >&5
  19971. + if (exit $ac_status) && test -s "$ac_outfile"; then
  19972. + # The compiler can only warn and ignore the option if not recognized
  19973. + # So say no if there are warnings other than the usual output.
  19974. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  19975. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  19976. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  19977. + lt_cv_prog_compiler_rtti_exceptions=yes
  19978. + fi
  19979. + fi
  19980. + $RM conftest*
  19981. - ac_cv_lib_dld_shl_load=no
  19982. fi
  19983. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  19984. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  19985. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19986. - conftest$ac_exeext conftest.$ac_ext
  19987. -LIBS=$ac_check_lib_save_LIBS
  19988. -fi
  19989. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  19990. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  19991. -if test $ac_cv_lib_dld_shl_load = yes; then
  19992. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  19993. -else
  19994. - { echo "$as_me:$LINENO: checking for dlopen" >&5
  19995. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  19996. -if test "${ac_cv_func_dlopen+set}" = set; then
  19997. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19998. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  19999. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  20000. else
  20001. - cat >conftest.$ac_ext <<_ACEOF
  20002. -/* confdefs.h. */
  20003. -_ACEOF
  20004. -cat confdefs.h >>conftest.$ac_ext
  20005. -cat >>conftest.$ac_ext <<_ACEOF
  20006. -/* end confdefs.h. */
  20007. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  20008. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20009. -#define dlopen innocuous_dlopen
  20010. + :
  20011. +fi
  20012. -/* System header to define __stub macros and hopefully few prototypes,
  20013. - which can conflict with char dlopen (); below.
  20014. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20015. - <limits.h> exists even on freestanding compilers. */
  20016. +fi
  20017. -#ifdef __STDC__
  20018. -# include <limits.h>
  20019. -#else
  20020. -# include <assert.h>
  20021. -#endif
  20022. -#undef dlopen
  20023. -/* Override any GCC internal prototype to avoid an error.
  20024. - Use char because int might match the return type of a GCC
  20025. - builtin and then its argument prototype would still apply. */
  20026. -#ifdef __cplusplus
  20027. -extern "C"
  20028. -#endif
  20029. -char dlopen ();
  20030. -/* The GNU C library defines this for functions which it implements
  20031. - to always fail with ENOSYS. Some functions are actually named
  20032. - something starting with __ and the normal name is an alias. */
  20033. -#if defined __stub_dlopen || defined __stub___dlopen
  20034. -choke me
  20035. -#endif
  20036. -int
  20037. -main ()
  20038. -{
  20039. -return dlopen ();
  20040. - ;
  20041. - return 0;
  20042. -}
  20043. -_ACEOF
  20044. -rm -f conftest.$ac_objext conftest$ac_exeext
  20045. -if { (ac_try="$ac_link"
  20046. -case "(($ac_try" in
  20047. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20048. - *) ac_try_echo=$ac_try;;
  20049. -esac
  20050. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20051. - (eval "$ac_link") 2>conftest.er1
  20052. - ac_status=$?
  20053. - grep -v '^ *+' conftest.er1 >conftest.err
  20054. - rm -f conftest.er1
  20055. - cat conftest.err >&5
  20056. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20057. - (exit $ac_status); } && {
  20058. - test -z "$ac_c_werror_flag" ||
  20059. - test ! -s conftest.err
  20060. - } && test -s conftest$ac_exeext &&
  20061. - $as_test_x conftest$ac_exeext; then
  20062. - ac_cv_func_dlopen=yes
  20063. -else
  20064. - echo "$as_me: failed program was:" >&5
  20065. -sed 's/^/| /' conftest.$ac_ext >&5
  20066. - ac_cv_func_dlopen=no
  20067. -fi
  20068. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20069. - conftest$ac_exeext conftest.$ac_ext
  20070. -fi
  20071. -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  20072. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  20073. -if test $ac_cv_func_dlopen = yes; then
  20074. - lt_cv_dlopen="dlopen"
  20075. -else
  20076. - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  20077. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  20078. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  20079. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20080. -else
  20081. - ac_check_lib_save_LIBS=$LIBS
  20082. -LIBS="-ldl $LIBS"
  20083. -cat >conftest.$ac_ext <<_ACEOF
  20084. -/* confdefs.h. */
  20085. -_ACEOF
  20086. -cat confdefs.h >>conftest.$ac_ext
  20087. -cat >>conftest.$ac_ext <<_ACEOF
  20088. -/* end confdefs.h. */
  20089. + lt_prog_compiler_wl=
  20090. +lt_prog_compiler_pic=
  20091. +lt_prog_compiler_static=
  20092. -/* Override any GCC internal prototype to avoid an error.
  20093. - Use char because int might match the return type of a GCC
  20094. - builtin and then its argument prototype would still apply. */
  20095. -#ifdef __cplusplus
  20096. -extern "C"
  20097. -#endif
  20098. -char dlopen ();
  20099. -int
  20100. -main ()
  20101. -{
  20102. -return dlopen ();
  20103. - ;
  20104. - return 0;
  20105. -}
  20106. -_ACEOF
  20107. -rm -f conftest.$ac_objext conftest$ac_exeext
  20108. -if { (ac_try="$ac_link"
  20109. -case "(($ac_try" in
  20110. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20111. - *) ac_try_echo=$ac_try;;
  20112. -esac
  20113. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20114. - (eval "$ac_link") 2>conftest.er1
  20115. - ac_status=$?
  20116. - grep -v '^ *+' conftest.er1 >conftest.err
  20117. - rm -f conftest.er1
  20118. - cat conftest.err >&5
  20119. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20120. - (exit $ac_status); } && {
  20121. - test -z "$ac_c_werror_flag" ||
  20122. - test ! -s conftest.err
  20123. - } && test -s conftest$ac_exeext &&
  20124. - $as_test_x conftest$ac_exeext; then
  20125. - ac_cv_lib_dl_dlopen=yes
  20126. -else
  20127. - echo "$as_me: failed program was:" >&5
  20128. -sed 's/^/| /' conftest.$ac_ext >&5
  20129. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  20130. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  20131. - ac_cv_lib_dl_dlopen=no
  20132. -fi
  20133. + if test "$GCC" = yes; then
  20134. + lt_prog_compiler_wl='-Wl,'
  20135. + lt_prog_compiler_static='-static'
  20136. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20137. - conftest$ac_exeext conftest.$ac_ext
  20138. -LIBS=$ac_check_lib_save_LIBS
  20139. -fi
  20140. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  20141. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  20142. -if test $ac_cv_lib_dl_dlopen = yes; then
  20143. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  20144. -else
  20145. - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  20146. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  20147. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  20148. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20149. -else
  20150. - ac_check_lib_save_LIBS=$LIBS
  20151. -LIBS="-lsvld $LIBS"
  20152. -cat >conftest.$ac_ext <<_ACEOF
  20153. -/* confdefs.h. */
  20154. -_ACEOF
  20155. -cat confdefs.h >>conftest.$ac_ext
  20156. -cat >>conftest.$ac_ext <<_ACEOF
  20157. -/* end confdefs.h. */
  20158. + case $host_os in
  20159. + aix*)
  20160. + # All AIX code is PIC.
  20161. + if test "$host_cpu" = ia64; then
  20162. + # AIX 5 now supports IA64 processor
  20163. + lt_prog_compiler_static='-Bstatic'
  20164. + fi
  20165. + ;;
  20166. -/* Override any GCC internal prototype to avoid an error.
  20167. - Use char because int might match the return type of a GCC
  20168. - builtin and then its argument prototype would still apply. */
  20169. -#ifdef __cplusplus
  20170. -extern "C"
  20171. -#endif
  20172. -char dlopen ();
  20173. -int
  20174. -main ()
  20175. -{
  20176. -return dlopen ();
  20177. - ;
  20178. - return 0;
  20179. -}
  20180. -_ACEOF
  20181. -rm -f conftest.$ac_objext conftest$ac_exeext
  20182. -if { (ac_try="$ac_link"
  20183. -case "(($ac_try" in
  20184. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20185. - *) ac_try_echo=$ac_try;;
  20186. -esac
  20187. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20188. - (eval "$ac_link") 2>conftest.er1
  20189. - ac_status=$?
  20190. - grep -v '^ *+' conftest.er1 >conftest.err
  20191. - rm -f conftest.er1
  20192. - cat conftest.err >&5
  20193. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20194. - (exit $ac_status); } && {
  20195. - test -z "$ac_c_werror_flag" ||
  20196. - test ! -s conftest.err
  20197. - } && test -s conftest$ac_exeext &&
  20198. - $as_test_x conftest$ac_exeext; then
  20199. - ac_cv_lib_svld_dlopen=yes
  20200. -else
  20201. - echo "$as_me: failed program was:" >&5
  20202. -sed 's/^/| /' conftest.$ac_ext >&5
  20203. + amigaos*)
  20204. + case $host_cpu in
  20205. + powerpc)
  20206. + # see comment about AmigaOS4 .so support
  20207. + lt_prog_compiler_pic='-fPIC'
  20208. + ;;
  20209. + m68k)
  20210. + # FIXME: we need at least 68020 code to build shared libraries, but
  20211. + # adding the `-m68020' flag to GCC prevents building anything better,
  20212. + # like `-m68040'.
  20213. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  20214. + ;;
  20215. + esac
  20216. + ;;
  20217. - ac_cv_lib_svld_dlopen=no
  20218. -fi
  20219. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  20220. + # PIC is the default for these OSes.
  20221. + ;;
  20222. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20223. - conftest$ac_exeext conftest.$ac_ext
  20224. -LIBS=$ac_check_lib_save_LIBS
  20225. -fi
  20226. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  20227. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  20228. -if test $ac_cv_lib_svld_dlopen = yes; then
  20229. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  20230. -else
  20231. - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  20232. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  20233. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  20234. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20235. -else
  20236. - ac_check_lib_save_LIBS=$LIBS
  20237. -LIBS="-ldld $LIBS"
  20238. -cat >conftest.$ac_ext <<_ACEOF
  20239. -/* confdefs.h. */
  20240. -_ACEOF
  20241. -cat confdefs.h >>conftest.$ac_ext
  20242. -cat >>conftest.$ac_ext <<_ACEOF
  20243. -/* end confdefs.h. */
  20244. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  20245. + # This hack is so that the source file can tell whether it is being
  20246. + # built for inclusion in a dll (and should export symbols for example).
  20247. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  20248. + # (--disable-auto-import) libraries
  20249. + lt_prog_compiler_pic='-DDLL_EXPORT'
  20250. + ;;
  20251. -/* Override any GCC internal prototype to avoid an error.
  20252. - Use char because int might match the return type of a GCC
  20253. - builtin and then its argument prototype would still apply. */
  20254. -#ifdef __cplusplus
  20255. -extern "C"
  20256. -#endif
  20257. -char dld_link ();
  20258. -int
  20259. -main ()
  20260. -{
  20261. -return dld_link ();
  20262. - ;
  20263. - return 0;
  20264. -}
  20265. -_ACEOF
  20266. -rm -f conftest.$ac_objext conftest$ac_exeext
  20267. -if { (ac_try="$ac_link"
  20268. -case "(($ac_try" in
  20269. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20270. - *) ac_try_echo=$ac_try;;
  20271. -esac
  20272. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20273. - (eval "$ac_link") 2>conftest.er1
  20274. - ac_status=$?
  20275. - grep -v '^ *+' conftest.er1 >conftest.err
  20276. - rm -f conftest.er1
  20277. - cat conftest.err >&5
  20278. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20279. - (exit $ac_status); } && {
  20280. - test -z "$ac_c_werror_flag" ||
  20281. - test ! -s conftest.err
  20282. - } && test -s conftest$ac_exeext &&
  20283. - $as_test_x conftest$ac_exeext; then
  20284. - ac_cv_lib_dld_dld_link=yes
  20285. -else
  20286. - echo "$as_me: failed program was:" >&5
  20287. -sed 's/^/| /' conftest.$ac_ext >&5
  20288. + darwin* | rhapsody*)
  20289. + # PIC is the default on this platform
  20290. + # Common symbols not allowed in MH_DYLIB files
  20291. + lt_prog_compiler_pic='-fno-common'
  20292. + ;;
  20293. - ac_cv_lib_dld_dld_link=no
  20294. -fi
  20295. + hpux*)
  20296. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  20297. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  20298. + # sets the default TLS model and affects inlining.
  20299. + case $host_cpu in
  20300. + hppa*64*)
  20301. + # +Z the default
  20302. + ;;
  20303. + *)
  20304. + lt_prog_compiler_pic='-fPIC'
  20305. + ;;
  20306. + esac
  20307. + ;;
  20308. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20309. - conftest$ac_exeext conftest.$ac_ext
  20310. -LIBS=$ac_check_lib_save_LIBS
  20311. -fi
  20312. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  20313. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  20314. -if test $ac_cv_lib_dld_dld_link = yes; then
  20315. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  20316. -fi
  20317. + interix[3-9]*)
  20318. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  20319. + # Instead, we relocate shared libraries at runtime.
  20320. + ;;
  20321. + msdosdjgpp*)
  20322. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  20323. + # on systems that don't support them.
  20324. + lt_prog_compiler_can_build_shared=no
  20325. + enable_shared=no
  20326. + ;;
  20327. -fi
  20328. + *nto* | *qnx*)
  20329. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  20330. + # it will coredump.
  20331. + lt_prog_compiler_pic='-fPIC -shared'
  20332. + ;;
  20333. + sysv4*MP*)
  20334. + if test -d /usr/nec; then
  20335. + lt_prog_compiler_pic=-Kconform_pic
  20336. + fi
  20337. + ;;
  20338. -fi
  20339. + *)
  20340. + lt_prog_compiler_pic='-fPIC'
  20341. + ;;
  20342. + esac
  20343. + else
  20344. + # PORTME Check for flag to pass linker flags through the system compiler.
  20345. + case $host_os in
  20346. + aix*)
  20347. + lt_prog_compiler_wl='-Wl,'
  20348. + if test "$host_cpu" = ia64; then
  20349. + # AIX 5 now supports IA64 processor
  20350. + lt_prog_compiler_static='-Bstatic'
  20351. + else
  20352. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  20353. + fi
  20354. + ;;
  20355. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  20356. + # This hack is so that the source file can tell whether it is being
  20357. + # built for inclusion in a dll (and should export symbols for example).
  20358. + lt_prog_compiler_pic='-DDLL_EXPORT'
  20359. + ;;
  20360. -fi
  20361. + hpux9* | hpux10* | hpux11*)
  20362. + lt_prog_compiler_wl='-Wl,'
  20363. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  20364. + # not for PA HP-UX.
  20365. + case $host_cpu in
  20366. + hppa*64*|ia64*)
  20367. + # +Z the default
  20368. + ;;
  20369. + *)
  20370. + lt_prog_compiler_pic='+Z'
  20371. + ;;
  20372. + esac
  20373. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  20374. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  20375. + ;;
  20376. + irix5* | irix6* | nonstopux*)
  20377. + lt_prog_compiler_wl='-Wl,'
  20378. + # PIC (with -KPIC) is the default.
  20379. + lt_prog_compiler_static='-non_shared'
  20380. + ;;
  20381. -fi
  20382. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  20383. + case $cc_basename in
  20384. + # old Intel for x86_64 which still supported -KPIC.
  20385. + ecc*)
  20386. + lt_prog_compiler_wl='-Wl,'
  20387. + lt_prog_compiler_pic='-KPIC'
  20388. + lt_prog_compiler_static='-static'
  20389. + ;;
  20390. + # icc used to be incompatible with GCC.
  20391. + # ICC 10 doesn't accept -KPIC any more.
  20392. + icc* | ifort*)
  20393. + lt_prog_compiler_wl='-Wl,'
  20394. + lt_prog_compiler_pic='-fPIC'
  20395. + lt_prog_compiler_static='-static'
  20396. + ;;
  20397. + # Lahey Fortran 8.1.
  20398. + lf95*)
  20399. + lt_prog_compiler_wl='-Wl,'
  20400. + lt_prog_compiler_pic='--shared'
  20401. + lt_prog_compiler_static='--static'
  20402. + ;;
  20403. + pgcc* | pgf77* | pgf90* | pgf95*)
  20404. + # Portland Group compilers (*not* the Pentium gcc compiler,
  20405. + # which looks to be a dead project)
  20406. + lt_prog_compiler_wl='-Wl,'
  20407. + lt_prog_compiler_pic='-fpic'
  20408. + lt_prog_compiler_static='-Bstatic'
  20409. + ;;
  20410. + ccc*)
  20411. + lt_prog_compiler_wl='-Wl,'
  20412. + # All Alpha code is PIC.
  20413. + lt_prog_compiler_static='-non_shared'
  20414. + ;;
  20415. + xl*)
  20416. + # IBM XL C 8.0/Fortran 10.1 on PPC
  20417. + lt_prog_compiler_wl='-Wl,'
  20418. + lt_prog_compiler_pic='-qpic'
  20419. + lt_prog_compiler_static='-qstaticlink'
  20420. + ;;
  20421. + *)
  20422. + case `$CC -V 2>&1 | sed 5q` in
  20423. + *Sun\ C*)
  20424. + # Sun C 5.9
  20425. + lt_prog_compiler_pic='-KPIC'
  20426. + lt_prog_compiler_static='-Bstatic'
  20427. + lt_prog_compiler_wl='-Wl,'
  20428. + ;;
  20429. + *Sun\ F*)
  20430. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  20431. + lt_prog_compiler_pic='-KPIC'
  20432. + lt_prog_compiler_static='-Bstatic'
  20433. + lt_prog_compiler_wl=''
  20434. + ;;
  20435. + esac
  20436. + ;;
  20437. + esac
  20438. + ;;
  20439. + newsos6)
  20440. + lt_prog_compiler_pic='-KPIC'
  20441. + lt_prog_compiler_static='-Bstatic'
  20442. + ;;
  20443. -fi
  20444. + *nto* | *qnx*)
  20445. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  20446. + # it will coredump.
  20447. + lt_prog_compiler_pic='-fPIC -shared'
  20448. + ;;
  20449. - ;;
  20450. - esac
  20451. + osf3* | osf4* | osf5*)
  20452. + lt_prog_compiler_wl='-Wl,'
  20453. + # All OSF/1 code is PIC.
  20454. + lt_prog_compiler_static='-non_shared'
  20455. + ;;
  20456. - if test "x$lt_cv_dlopen" != xno; then
  20457. - enable_dlopen=yes
  20458. - else
  20459. - enable_dlopen=no
  20460. - fi
  20461. + rdos*)
  20462. + lt_prog_compiler_static='-non_shared'
  20463. + ;;
  20464. - case $lt_cv_dlopen in
  20465. - dlopen)
  20466. - save_CPPFLAGS="$CPPFLAGS"
  20467. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  20468. + solaris*)
  20469. + lt_prog_compiler_pic='-KPIC'
  20470. + lt_prog_compiler_static='-Bstatic'
  20471. + case $cc_basename in
  20472. + f77* | f90* | f95*)
  20473. + lt_prog_compiler_wl='-Qoption ld ';;
  20474. + *)
  20475. + lt_prog_compiler_wl='-Wl,';;
  20476. + esac
  20477. + ;;
  20478. - save_LDFLAGS="$LDFLAGS"
  20479. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  20480. + sunos4*)
  20481. + lt_prog_compiler_wl='-Qoption ld '
  20482. + lt_prog_compiler_pic='-PIC'
  20483. + lt_prog_compiler_static='-Bstatic'
  20484. + ;;
  20485. - save_LIBS="$LIBS"
  20486. - LIBS="$lt_cv_dlopen_libs $LIBS"
  20487. + sysv4 | sysv4.2uw2* | sysv4.3*)
  20488. + lt_prog_compiler_wl='-Wl,'
  20489. + lt_prog_compiler_pic='-KPIC'
  20490. + lt_prog_compiler_static='-Bstatic'
  20491. + ;;
  20492. - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  20493. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  20494. -if test "${lt_cv_dlopen_self+set}" = set; then
  20495. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20496. -else
  20497. - if test "$cross_compiling" = yes; then :
  20498. - lt_cv_dlopen_self=cross
  20499. -else
  20500. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  20501. - lt_status=$lt_dlunknown
  20502. - cat > conftest.$ac_ext <<EOF
  20503. -#line 9896 "configure"
  20504. -#include "confdefs.h"
  20505. + sysv4*MP*)
  20506. + if test -d /usr/nec ;then
  20507. + lt_prog_compiler_pic='-Kconform_pic'
  20508. + lt_prog_compiler_static='-Bstatic'
  20509. + fi
  20510. + ;;
  20511. -#if HAVE_DLFCN_H
  20512. -#include <dlfcn.h>
  20513. -#endif
  20514. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  20515. + lt_prog_compiler_wl='-Wl,'
  20516. + lt_prog_compiler_pic='-KPIC'
  20517. + lt_prog_compiler_static='-Bstatic'
  20518. + ;;
  20519. -#include <stdio.h>
  20520. + unicos*)
  20521. + lt_prog_compiler_wl='-Wl,'
  20522. + lt_prog_compiler_can_build_shared=no
  20523. + ;;
  20524. -#ifdef RTLD_GLOBAL
  20525. -# define LT_DLGLOBAL RTLD_GLOBAL
  20526. -#else
  20527. -# ifdef DL_GLOBAL
  20528. -# define LT_DLGLOBAL DL_GLOBAL
  20529. -# else
  20530. -# define LT_DLGLOBAL 0
  20531. -# endif
  20532. -#endif
  20533. + uts4*)
  20534. + lt_prog_compiler_pic='-pic'
  20535. + lt_prog_compiler_static='-Bstatic'
  20536. + ;;
  20537. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  20538. - find out it does not work in some platform. */
  20539. -#ifndef LT_DLLAZY_OR_NOW
  20540. -# ifdef RTLD_LAZY
  20541. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  20542. -# else
  20543. -# ifdef DL_LAZY
  20544. -# define LT_DLLAZY_OR_NOW DL_LAZY
  20545. -# else
  20546. -# ifdef RTLD_NOW
  20547. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  20548. -# else
  20549. -# ifdef DL_NOW
  20550. -# define LT_DLLAZY_OR_NOW DL_NOW
  20551. -# else
  20552. -# define LT_DLLAZY_OR_NOW 0
  20553. -# endif
  20554. -# endif
  20555. -# endif
  20556. -# endif
  20557. -#endif
  20558. + *)
  20559. + lt_prog_compiler_can_build_shared=no
  20560. + ;;
  20561. + esac
  20562. + fi
  20563. -#ifdef __cplusplus
  20564. -extern "C" void exit (int);
  20565. -#endif
  20566. +case $host_os in
  20567. + # For platforms which do not support PIC, -DPIC is meaningless:
  20568. + *djgpp*)
  20569. + lt_prog_compiler_pic=
  20570. + ;;
  20571. + *)
  20572. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  20573. + ;;
  20574. +esac
  20575. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  20576. +$as_echo "$lt_prog_compiler_pic" >&6; }
  20577. -void fnord() { int i=42;}
  20578. -int main ()
  20579. -{
  20580. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  20581. - int status = $lt_dlunknown;
  20582. - if (self)
  20583. - {
  20584. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  20585. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  20586. - /* dlclose (self); */
  20587. - }
  20588. - else
  20589. - puts (dlerror ());
  20590. - exit (status);
  20591. -}
  20592. -EOF
  20593. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20594. - (eval $ac_link) 2>&5
  20595. - ac_status=$?
  20596. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20597. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  20598. - (./conftest; exit; ) >&5 2>/dev/null
  20599. - lt_status=$?
  20600. - case x$lt_status in
  20601. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  20602. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  20603. - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  20604. - esac
  20605. - else :
  20606. - # compilation failed
  20607. - lt_cv_dlopen_self=no
  20608. - fi
  20609. -fi
  20610. -rm -fr conftest*
  20611. -fi
  20612. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  20613. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  20614. - if test "x$lt_cv_dlopen_self" = xyes; then
  20615. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  20616. - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  20617. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  20618. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  20619. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20620. -else
  20621. - if test "$cross_compiling" = yes; then :
  20622. - lt_cv_dlopen_self_static=cross
  20623. +#
  20624. +# Check to make sure the PIC flag actually works.
  20625. +#
  20626. +if test -n "$lt_prog_compiler_pic"; then
  20627. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  20628. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  20629. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  20630. + $as_echo_n "(cached) " >&6
  20631. else
  20632. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  20633. - lt_status=$lt_dlunknown
  20634. - cat > conftest.$ac_ext <<EOF
  20635. -#line 9996 "configure"
  20636. -#include "confdefs.h"
  20637. -
  20638. -#if HAVE_DLFCN_H
  20639. -#include <dlfcn.h>
  20640. -#endif
  20641. -
  20642. -#include <stdio.h>
  20643. + lt_cv_prog_compiler_pic_works=no
  20644. + ac_outfile=conftest.$ac_objext
  20645. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  20646. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  20647. + # Insert the option either (1) after the last *FLAGS variable, or
  20648. + # (2) before a word containing "conftest.", or (3) at the end.
  20649. + # Note that $ac_compile itself does not contain backslashes and begins
  20650. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  20651. + # The option is referenced via a variable to avoid confusing sed.
  20652. + lt_compile=`echo "$ac_compile" | $SED \
  20653. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  20654. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  20655. + -e 's:$: $lt_compiler_flag:'`
  20656. + (eval echo "\"\$as_me:7801: $lt_compile\"" >&5)
  20657. + (eval "$lt_compile" 2>conftest.err)
  20658. + ac_status=$?
  20659. + cat conftest.err >&5
  20660. + echo "$as_me:7805: \$? = $ac_status" >&5
  20661. + if (exit $ac_status) && test -s "$ac_outfile"; then
  20662. + # The compiler can only warn and ignore the option if not recognized
  20663. + # So say no if there are warnings other than the usual output.
  20664. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  20665. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  20666. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  20667. + lt_cv_prog_compiler_pic_works=yes
  20668. + fi
  20669. + fi
  20670. + $RM conftest*
  20671. -#ifdef RTLD_GLOBAL
  20672. -# define LT_DLGLOBAL RTLD_GLOBAL
  20673. -#else
  20674. -# ifdef DL_GLOBAL
  20675. -# define LT_DLGLOBAL DL_GLOBAL
  20676. -# else
  20677. -# define LT_DLGLOBAL 0
  20678. -# endif
  20679. -#endif
  20680. +fi
  20681. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  20682. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  20683. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  20684. - find out it does not work in some platform. */
  20685. -#ifndef LT_DLLAZY_OR_NOW
  20686. -# ifdef RTLD_LAZY
  20687. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  20688. -# else
  20689. -# ifdef DL_LAZY
  20690. -# define LT_DLLAZY_OR_NOW DL_LAZY
  20691. -# else
  20692. -# ifdef RTLD_NOW
  20693. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  20694. -# else
  20695. -# ifdef DL_NOW
  20696. -# define LT_DLLAZY_OR_NOW DL_NOW
  20697. -# else
  20698. -# define LT_DLLAZY_OR_NOW 0
  20699. -# endif
  20700. -# endif
  20701. -# endif
  20702. -# endif
  20703. -#endif
  20704. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  20705. + case $lt_prog_compiler_pic in
  20706. + "" | " "*) ;;
  20707. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  20708. + esac
  20709. +else
  20710. + lt_prog_compiler_pic=
  20711. + lt_prog_compiler_can_build_shared=no
  20712. +fi
  20713. -#ifdef __cplusplus
  20714. -extern "C" void exit (int);
  20715. -#endif
  20716. +fi
  20717. -void fnord() { int i=42;}
  20718. -int main ()
  20719. -{
  20720. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  20721. - int status = $lt_dlunknown;
  20722. - if (self)
  20723. - {
  20724. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  20725. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  20726. - /* dlclose (self); */
  20727. - }
  20728. - else
  20729. - puts (dlerror ());
  20730. - exit (status);
  20731. -}
  20732. -EOF
  20733. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20734. - (eval $ac_link) 2>&5
  20735. - ac_status=$?
  20736. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20737. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  20738. - (./conftest; exit; ) >&5 2>/dev/null
  20739. - lt_status=$?
  20740. - case x$lt_status in
  20741. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  20742. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  20743. - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  20744. - esac
  20745. - else :
  20746. - # compilation failed
  20747. - lt_cv_dlopen_self_static=no
  20748. - fi
  20749. -fi
  20750. -rm -fr conftest*
  20751. -fi
  20752. -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  20753. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  20754. - fi
  20755. - CPPFLAGS="$save_CPPFLAGS"
  20756. - LDFLAGS="$save_LDFLAGS"
  20757. - LIBS="$save_LIBS"
  20758. - ;;
  20759. - esac
  20760. -
  20761. - case $lt_cv_dlopen_self in
  20762. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  20763. - *) enable_dlopen_self=unknown ;;
  20764. - esac
  20765. +#
  20766. +# Check to make sure the static flag actually works.
  20767. +#
  20768. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  20769. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  20770. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  20771. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  20772. + $as_echo_n "(cached) " >&6
  20773. +else
  20774. + lt_cv_prog_compiler_static_works=no
  20775. + save_LDFLAGS="$LDFLAGS"
  20776. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  20777. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  20778. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  20779. + # The linker can only warn and ignore the option if not recognized
  20780. + # So say no if there are warnings
  20781. + if test -s conftest.err; then
  20782. + # Append any errors to the config.log.
  20783. + cat conftest.err 1>&5
  20784. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  20785. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  20786. + if diff conftest.exp conftest.er2 >/dev/null; then
  20787. + lt_cv_prog_compiler_static_works=yes
  20788. + fi
  20789. + else
  20790. + lt_cv_prog_compiler_static_works=yes
  20791. + fi
  20792. + fi
  20793. + $RM -r conftest*
  20794. + LDFLAGS="$save_LDFLAGS"
  20795. - case $lt_cv_dlopen_self_static in
  20796. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  20797. - *) enable_dlopen_self_static=unknown ;;
  20798. - esac
  20799. fi
  20800. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  20801. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  20802. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  20803. + :
  20804. +else
  20805. + lt_prog_compiler_static=
  20806. +fi
  20807. -# Report which library types will actually be built
  20808. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  20809. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  20810. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  20811. -echo "${ECHO_T}$can_build_shared" >&6; }
  20812. -
  20813. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  20814. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  20815. -test "$can_build_shared" = "no" && enable_shared=no
  20816. -# On AIX, shared libraries and static libraries use the same namespace, and
  20817. -# are all built from PIC.
  20818. -case $host_os in
  20819. -aix3*)
  20820. - test "$enable_shared" = yes && enable_static=no
  20821. - if test -n "$RANLIB"; then
  20822. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  20823. - postinstall_cmds='$RANLIB $lib'
  20824. - fi
  20825. - ;;
  20826. -aix4* | aix5*)
  20827. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  20828. - test "$enable_shared" = yes && enable_static=no
  20829. - fi
  20830. - ;;
  20831. -esac
  20832. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  20833. -echo "${ECHO_T}$enable_shared" >&6; }
  20834. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  20835. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  20836. -# Make sure either enable_shared or enable_static is yes.
  20837. -test "$enable_shared" = yes || enable_static=yes
  20838. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  20839. -echo "${ECHO_T}$enable_static" >&6; }
  20840. -
  20841. -# The else clause should only fire when bootstrapping the
  20842. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  20843. -# with your package, and you will get complaints that there are
  20844. -# no rules to generate ltmain.sh.
  20845. -if test -f "$ltmain"; then
  20846. - # See if we are running on zsh, and set the options which allow our commands through
  20847. - # without removal of \ escapes.
  20848. - if test -n "${ZSH_VERSION+set}" ; then
  20849. - setopt NO_GLOB_SUBST
  20850. - fi
  20851. - # Now quote all the things that may contain metacharacters while being
  20852. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  20853. - # variables and quote the copies for generation of the libtool script.
  20854. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  20855. - SED SHELL STRIP \
  20856. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  20857. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  20858. - deplibs_check_method reload_flag reload_cmds need_locks \
  20859. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  20860. - lt_cv_sys_global_symbol_to_c_name_address \
  20861. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  20862. - old_postinstall_cmds old_postuninstall_cmds \
  20863. - compiler \
  20864. - CC \
  20865. - LD \
  20866. - lt_prog_compiler_wl \
  20867. - lt_prog_compiler_pic \
  20868. - lt_prog_compiler_static \
  20869. - lt_prog_compiler_no_builtin_flag \
  20870. - export_dynamic_flag_spec \
  20871. - thread_safe_flag_spec \
  20872. - whole_archive_flag_spec \
  20873. - enable_shared_with_static_runtimes \
  20874. - old_archive_cmds \
  20875. - old_archive_from_new_cmds \
  20876. - predep_objects \
  20877. - postdep_objects \
  20878. - predeps \
  20879. - postdeps \
  20880. - compiler_lib_search_path \
  20881. - archive_cmds \
  20882. - archive_expsym_cmds \
  20883. - postinstall_cmds \
  20884. - postuninstall_cmds \
  20885. - old_archive_from_expsyms_cmds \
  20886. - allow_undefined_flag \
  20887. - no_undefined_flag \
  20888. - export_symbols_cmds \
  20889. - hardcode_libdir_flag_spec \
  20890. - hardcode_libdir_flag_spec_ld \
  20891. - hardcode_libdir_separator \
  20892. - hardcode_automatic \
  20893. - module_cmds \
  20894. - module_expsym_cmds \
  20895. - lt_cv_prog_compiler_c_o \
  20896. - fix_srcfile_path \
  20897. - exclude_expsyms \
  20898. - include_expsyms; do
  20899. -
  20900. - case $var in
  20901. - old_archive_cmds | \
  20902. - old_archive_from_new_cmds | \
  20903. - archive_cmds | \
  20904. - archive_expsym_cmds | \
  20905. - module_cmds | \
  20906. - module_expsym_cmds | \
  20907. - old_archive_from_expsyms_cmds | \
  20908. - export_symbols_cmds | \
  20909. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  20910. - postinstall_cmds | postuninstall_cmds | \
  20911. - old_postinstall_cmds | old_postuninstall_cmds | \
  20912. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  20913. - # Double-quote double-evaled strings.
  20914. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  20915. - ;;
  20916. - *)
  20917. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  20918. - ;;
  20919. - esac
  20920. - done
  20921. - case $lt_echo in
  20922. - *'\$0 --fallback-echo"')
  20923. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  20924. - ;;
  20925. - esac
  20926. -cfgfile="${ofile}T"
  20927. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  20928. - $rm -f "$cfgfile"
  20929. - { echo "$as_me:$LINENO: creating $ofile" >&5
  20930. -echo "$as_me: creating $ofile" >&6;}
  20931. - cat <<__EOF__ >> "$cfgfile"
  20932. -#! $SHELL
  20933. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  20934. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  20935. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  20936. + $as_echo_n "(cached) " >&6
  20937. +else
  20938. + lt_cv_prog_compiler_c_o=no
  20939. + $RM -r conftest 2>/dev/null
  20940. + mkdir conftest
  20941. + cd conftest
  20942. + mkdir out
  20943. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  20944. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  20945. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  20946. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20947. -#
  20948. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  20949. -# Free Software Foundation, Inc.
  20950. -#
  20951. -# This file is part of GNU Libtool:
  20952. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  20953. -#
  20954. -# This program is free software; you can redistribute it and/or modify
  20955. -# it under the terms of the GNU General Public License as published by
  20956. -# the Free Software Foundation; either version 2 of the License, or
  20957. -# (at your option) any later version.
  20958. -#
  20959. -# This program is distributed in the hope that it will be useful, but
  20960. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  20961. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  20962. -# General Public License for more details.
  20963. -#
  20964. -# You should have received a copy of the GNU General Public License
  20965. -# along with this program; if not, write to the Free Software
  20966. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20967. -#
  20968. -# As a special exception to the GNU General Public License, if you
  20969. -# distribute this file as part of a program that contains a
  20970. -# configuration script generated by Autoconf, you may include it under
  20971. -# the same distribution terms that you use for the rest of that program.
  20972. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  20973. + # Insert the option either (1) after the last *FLAGS variable, or
  20974. + # (2) before a word containing "conftest.", or (3) at the end.
  20975. + # Note that $ac_compile itself does not contain backslashes and begins
  20976. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  20977. + lt_compile=`echo "$ac_compile" | $SED \
  20978. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  20979. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  20980. + -e 's:$: $lt_compiler_flag:'`
  20981. + (eval echo "\"\$as_me:7906: $lt_compile\"" >&5)
  20982. + (eval "$lt_compile" 2>out/conftest.err)
  20983. + ac_status=$?
  20984. + cat out/conftest.err >&5
  20985. + echo "$as_me:7910: \$? = $ac_status" >&5
  20986. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  20987. + then
  20988. + # The compiler can only warn and ignore the option if not recognized
  20989. + # So say no if there are warnings
  20990. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  20991. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  20992. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  20993. + lt_cv_prog_compiler_c_o=yes
  20994. + fi
  20995. + fi
  20996. + chmod u+w . 2>&5
  20997. + $RM conftest*
  20998. + # SGI C++ compiler will create directory out/ii_files/ for
  20999. + # template instantiation
  21000. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  21001. + $RM out/* && rmdir out
  21002. + cd ..
  21003. + $RM -r conftest
  21004. + $RM conftest*
  21005. -# A sed program that does not truncate output.
  21006. -SED=$lt_SED
  21007. +fi
  21008. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  21009. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  21010. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21011. -Xsed="$SED -e 1s/^X//"
  21012. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  21013. -# if CDPATH is set.
  21014. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21015. -# The names of the tagged configurations supported by this script.
  21016. -available_tags=
  21017. -# ### BEGIN LIBTOOL CONFIG
  21018. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21019. -# Shell to use when invoking shell scripts.
  21020. -SHELL=$lt_SHELL
  21021. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  21022. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  21023. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  21024. + $as_echo_n "(cached) " >&6
  21025. +else
  21026. + lt_cv_prog_compiler_c_o=no
  21027. + $RM -r conftest 2>/dev/null
  21028. + mkdir conftest
  21029. + cd conftest
  21030. + mkdir out
  21031. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  21032. -# Whether or not to build shared libraries.
  21033. -build_libtool_libs=$enable_shared
  21034. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  21035. + # Insert the option either (1) after the last *FLAGS variable, or
  21036. + # (2) before a word containing "conftest.", or (3) at the end.
  21037. + # Note that $ac_compile itself does not contain backslashes and begins
  21038. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  21039. + lt_compile=`echo "$ac_compile" | $SED \
  21040. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  21041. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  21042. + -e 's:$: $lt_compiler_flag:'`
  21043. + (eval echo "\"\$as_me:7961: $lt_compile\"" >&5)
  21044. + (eval "$lt_compile" 2>out/conftest.err)
  21045. + ac_status=$?
  21046. + cat out/conftest.err >&5
  21047. + echo "$as_me:7965: \$? = $ac_status" >&5
  21048. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  21049. + then
  21050. + # The compiler can only warn and ignore the option if not recognized
  21051. + # So say no if there are warnings
  21052. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  21053. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  21054. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  21055. + lt_cv_prog_compiler_c_o=yes
  21056. + fi
  21057. + fi
  21058. + chmod u+w . 2>&5
  21059. + $RM conftest*
  21060. + # SGI C++ compiler will create directory out/ii_files/ for
  21061. + # template instantiation
  21062. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  21063. + $RM out/* && rmdir out
  21064. + cd ..
  21065. + $RM -r conftest
  21066. + $RM conftest*
  21067. -# Whether or not to build static libraries.
  21068. -build_old_libs=$enable_static
  21069. +fi
  21070. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  21071. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  21072. -# Whether or not to add -lc for building shared libraries.
  21073. -build_libtool_need_lc=$archive_cmds_need_lc
  21074. -# Whether or not to disallow shared libs when runtime libs are static
  21075. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  21076. -# Whether or not to optimize for fast installation.
  21077. -fast_install=$enable_fast_install
  21078. -# The host system.
  21079. -host_alias=$host_alias
  21080. -host=$host
  21081. -host_os=$host_os
  21082. +hard_links="nottested"
  21083. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  21084. + # do not overwrite the value of need_locks provided by the user
  21085. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  21086. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  21087. + hard_links=yes
  21088. + $RM conftest*
  21089. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  21090. + touch conftest.a
  21091. + ln conftest.a conftest.b 2>&5 || hard_links=no
  21092. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  21093. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  21094. +$as_echo "$hard_links" >&6; }
  21095. + if test "$hard_links" = no; then
  21096. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  21097. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  21098. + need_locks=warn
  21099. + fi
  21100. +else
  21101. + need_locks=no
  21102. +fi
  21103. -# The build system.
  21104. -build_alias=$build_alias
  21105. -build=$build
  21106. -build_os=$build_os
  21107. -# An echo program that does not interpret backslashes.
  21108. -echo=$lt_echo
  21109. -# The archiver.
  21110. -AR=$lt_AR
  21111. -AR_FLAGS=$lt_AR_FLAGS
  21112. -# A C compiler.
  21113. -LTCC=$lt_LTCC
  21114. -# LTCC compiler flags.
  21115. -LTCFLAGS=$lt_LTCFLAGS
  21116. -# A language-specific compiler.
  21117. -CC=$lt_compiler
  21118. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  21119. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  21120. -# Is the compiler the GNU C compiler?
  21121. -with_gcc=$GCC
  21122. + runpath_var=
  21123. + allow_undefined_flag=
  21124. + always_export_symbols=no
  21125. + archive_cmds=
  21126. + archive_expsym_cmds=
  21127. + compiler_needs_object=no
  21128. + enable_shared_with_static_runtimes=no
  21129. + export_dynamic_flag_spec=
  21130. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  21131. + hardcode_automatic=no
  21132. + hardcode_direct=no
  21133. + hardcode_direct_absolute=no
  21134. + hardcode_libdir_flag_spec=
  21135. + hardcode_libdir_flag_spec_ld=
  21136. + hardcode_libdir_separator=
  21137. + hardcode_minus_L=no
  21138. + hardcode_shlibpath_var=unsupported
  21139. + inherit_rpath=no
  21140. + link_all_deplibs=unknown
  21141. + module_cmds=
  21142. + module_expsym_cmds=
  21143. + old_archive_from_new_cmds=
  21144. + old_archive_from_expsyms_cmds=
  21145. + thread_safe_flag_spec=
  21146. + whole_archive_flag_spec=
  21147. + # include_expsyms should be a list of space-separated symbols to be *always*
  21148. + # included in the symbol list
  21149. + include_expsyms=
  21150. + # exclude_expsyms can be an extended regexp of symbols to exclude
  21151. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  21152. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  21153. + # as well as any symbol that contains `d'.
  21154. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  21155. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  21156. + # platforms (ab)use it in PIC code, but their linkers get confused if
  21157. + # the symbol is explicitly referenced. Since portable code cannot
  21158. + # rely on this symbol name, it's probably fine to never include it in
  21159. + # preloaded symbol tables.
  21160. + # Exclude shared library initialization/finalization symbols.
  21161. + extract_expsyms_cmds=
  21162. -# An ERE matcher.
  21163. -EGREP=$lt_EGREP
  21164. + case $host_os in
  21165. + cygwin* | mingw* | pw32* | cegcc*)
  21166. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  21167. + # When not using gcc, we currently assume that we are using
  21168. + # Microsoft Visual C++.
  21169. + if test "$GCC" != yes; then
  21170. + with_gnu_ld=no
  21171. + fi
  21172. + ;;
  21173. + interix*)
  21174. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  21175. + with_gnu_ld=yes
  21176. + ;;
  21177. + openbsd*)
  21178. + with_gnu_ld=no
  21179. + ;;
  21180. + linux* | k*bsd*-gnu)
  21181. + link_all_deplibs=no
  21182. + ;;
  21183. + esac
  21184. -# The linker used to build libraries.
  21185. -LD=$lt_LD
  21186. + ld_shlibs=yes
  21187. + if test "$with_gnu_ld" = yes; then
  21188. + # If archive_cmds runs LD, not CC, wlarc should be empty
  21189. + wlarc='${wl}'
  21190. -# Whether we need hard or soft links.
  21191. -LN_S=$lt_LN_S
  21192. + # Set some defaults for GNU ld with shared library support. These
  21193. + # are reset later if shared libraries are not supported. Putting them
  21194. + # here allows them to be overridden if necessary.
  21195. + runpath_var=LD_RUN_PATH
  21196. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  21197. + export_dynamic_flag_spec='${wl}--export-dynamic'
  21198. + # ancient GNU ld didn't support --whole-archive et. al.
  21199. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  21200. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  21201. + else
  21202. + whole_archive_flag_spec=
  21203. + fi
  21204. + supports_anon_versioning=no
  21205. + case `$LD -v 2>&1` in
  21206. + *GNU\ gold*) supports_anon_versioning=yes ;;
  21207. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  21208. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  21209. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  21210. + *\ 2.11.*) ;; # other 2.11 versions
  21211. + *) supports_anon_versioning=yes ;;
  21212. + esac
  21213. -# A BSD-compatible nm program.
  21214. -NM=$lt_NM
  21215. -
  21216. -# A symbol stripping program
  21217. -STRIP=$lt_STRIP
  21218. -
  21219. -# Used to examine libraries when file_magic_cmd begins "file"
  21220. -MAGIC_CMD=$MAGIC_CMD
  21221. -
  21222. -# Used on cygwin: DLL creation program.
  21223. -DLLTOOL="$DLLTOOL"
  21224. -
  21225. -# Used on cygwin: object dumper.
  21226. -OBJDUMP="$OBJDUMP"
  21227. + # See if GNU ld supports shared libraries.
  21228. + case $host_os in
  21229. + aix[3-9]*)
  21230. + # On AIX/PPC, the GNU linker is very broken
  21231. + if test "$host_cpu" != ia64; then
  21232. + ld_shlibs=no
  21233. + cat <<_LT_EOF 1>&2
  21234. -# Used on cygwin: assembler.
  21235. -AS="$AS"
  21236. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  21237. +*** to be unable to reliably create shared libraries on AIX.
  21238. +*** Therefore, libtool is disabling shared libraries support. If you
  21239. +*** really care for shared libraries, you may want to modify your PATH
  21240. +*** so that a non-GNU linker is found, and then restart.
  21241. -# The name of the directory that contains temporary libtool files.
  21242. -objdir=$objdir
  21243. +_LT_EOF
  21244. + fi
  21245. + ;;
  21246. -# How to create reloadable object files.
  21247. -reload_flag=$lt_reload_flag
  21248. -reload_cmds=$lt_reload_cmds
  21249. + amigaos*)
  21250. + case $host_cpu in
  21251. + powerpc)
  21252. + # see comment about AmigaOS4 .so support
  21253. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21254. + archive_expsym_cmds=''
  21255. + ;;
  21256. + m68k)
  21257. + 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)'
  21258. + hardcode_libdir_flag_spec='-L$libdir'
  21259. + hardcode_minus_L=yes
  21260. + ;;
  21261. + esac
  21262. + ;;
  21263. -# How to pass a linker flag through the compiler.
  21264. -wl=$lt_lt_prog_compiler_wl
  21265. + beos*)
  21266. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  21267. + allow_undefined_flag=unsupported
  21268. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  21269. + # support --undefined. This deserves some investigation. FIXME
  21270. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21271. + else
  21272. + ld_shlibs=no
  21273. + fi
  21274. + ;;
  21275. -# Object file suffix (normally "o").
  21276. -objext="$ac_objext"
  21277. + cygwin* | mingw* | pw32* | cegcc*)
  21278. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  21279. + # as there is no search path for DLLs.
  21280. + hardcode_libdir_flag_spec='-L$libdir'
  21281. + allow_undefined_flag=unsupported
  21282. + always_export_symbols=no
  21283. + enable_shared_with_static_runtimes=yes
  21284. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  21285. -# Old archive suffix (normally "a").
  21286. -libext="$libext"
  21287. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  21288. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  21289. + # If the export-symbols file already is a .def file (1st line
  21290. + # is EXPORTS), use it as is; otherwise, prepend...
  21291. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  21292. + cp $export_symbols $output_objdir/$soname.def;
  21293. + else
  21294. + echo EXPORTS > $output_objdir/$soname.def;
  21295. + cat $export_symbols >> $output_objdir/$soname.def;
  21296. + fi~
  21297. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  21298. + else
  21299. + ld_shlibs=no
  21300. + fi
  21301. + ;;
  21302. -# Shared library suffix (normally ".so").
  21303. -shrext_cmds='$shrext_cmds'
  21304. + interix[3-9]*)
  21305. + hardcode_direct=no
  21306. + hardcode_shlibpath_var=no
  21307. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  21308. + export_dynamic_flag_spec='${wl}-E'
  21309. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  21310. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  21311. + # default) and relocated if they conflict, which is a slow very memory
  21312. + # consuming and fragmenting process. To avoid this, we pick a random,
  21313. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  21314. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  21315. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  21316. + 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'
  21317. + ;;
  21318. -# Executable file suffix (normally "").
  21319. -exeext="$exeext"
  21320. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  21321. + tmp_diet=no
  21322. + if test "$host_os" = linux-dietlibc; then
  21323. + case $cc_basename in
  21324. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  21325. + esac
  21326. + fi
  21327. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  21328. + && test "$tmp_diet" = no
  21329. + then
  21330. + tmp_addflag=
  21331. + tmp_sharedflag='-shared'
  21332. + case $cc_basename,$host_cpu in
  21333. + pgcc*) # Portland Group C compiler
  21334. + 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'
  21335. + tmp_addflag=' $pic_flag'
  21336. + ;;
  21337. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  21338. + 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'
  21339. + tmp_addflag=' $pic_flag -Mnomain' ;;
  21340. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  21341. + tmp_addflag=' -i_dynamic' ;;
  21342. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  21343. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  21344. + ifc* | ifort*) # Intel Fortran compiler
  21345. + tmp_addflag=' -nofor_main' ;;
  21346. + lf95*) # Lahey Fortran 8.1
  21347. + whole_archive_flag_spec=
  21348. + tmp_sharedflag='--shared' ;;
  21349. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  21350. + tmp_sharedflag='-qmkshrobj'
  21351. + tmp_addflag= ;;
  21352. + esac
  21353. + case `$CC -V 2>&1 | sed 5q` in
  21354. + *Sun\ C*) # Sun C 5.9
  21355. + 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'
  21356. + compiler_needs_object=yes
  21357. + tmp_sharedflag='-G' ;;
  21358. + *Sun\ F*) # Sun Fortran 8.3
  21359. + tmp_sharedflag='-G' ;;
  21360. + esac
  21361. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21362. -# Additional compiler flags for building library objects.
  21363. -pic_flag=$lt_lt_prog_compiler_pic
  21364. -pic_mode=$pic_mode
  21365. + if test "x$supports_anon_versioning" = xyes; then
  21366. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  21367. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  21368. + echo "local: *; };" >> $output_objdir/$libname.ver~
  21369. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  21370. + fi
  21371. -# What is the maximum length of a command?
  21372. -max_cmd_len=$lt_cv_sys_max_cmd_len
  21373. + case $cc_basename in
  21374. + xlf*)
  21375. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  21376. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  21377. + hardcode_libdir_flag_spec=
  21378. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  21379. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  21380. + if test "x$supports_anon_versioning" = xyes; then
  21381. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  21382. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  21383. + echo "local: *; };" >> $output_objdir/$libname.ver~
  21384. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  21385. + fi
  21386. + ;;
  21387. + esac
  21388. + else
  21389. + ld_shlibs=no
  21390. + fi
  21391. + ;;
  21392. -# Does compiler simultaneously support -c and -o options?
  21393. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  21394. + netbsd* | netbsdelf*-gnu)
  21395. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  21396. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  21397. + wlarc=
  21398. + else
  21399. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21400. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  21401. + fi
  21402. + ;;
  21403. -# Must we lock files when doing compilation?
  21404. -need_locks=$lt_need_locks
  21405. + solaris*)
  21406. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  21407. + ld_shlibs=no
  21408. + cat <<_LT_EOF 1>&2
  21409. -# Do we need the lib prefix for modules?
  21410. -need_lib_prefix=$need_lib_prefix
  21411. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  21412. +*** create shared libraries on Solaris systems. Therefore, libtool
  21413. +*** is disabling shared libraries support. We urge you to upgrade GNU
  21414. +*** binutils to release 2.9.1 or newer. Another option is to modify
  21415. +*** your PATH or compiler configuration so that the native linker is
  21416. +*** used, and then restart.
  21417. -# Do we need a version for libraries?
  21418. -need_version=$need_version
  21419. +_LT_EOF
  21420. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  21421. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21422. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  21423. + else
  21424. + ld_shlibs=no
  21425. + fi
  21426. + ;;
  21427. -# Whether dlopen is supported.
  21428. -dlopen_support=$enable_dlopen
  21429. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  21430. + case `$LD -v 2>&1` in
  21431. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  21432. + ld_shlibs=no
  21433. + cat <<_LT_EOF 1>&2
  21434. -# Whether dlopen of programs is supported.
  21435. -dlopen_self=$enable_dlopen_self
  21436. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  21437. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  21438. +*** is disabling shared libraries support. We urge you to upgrade GNU
  21439. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  21440. +*** your PATH or compiler configuration so that the native linker is
  21441. +*** used, and then restart.
  21442. -# Whether dlopen of statically linked programs is supported.
  21443. -dlopen_self_static=$enable_dlopen_self_static
  21444. +_LT_EOF
  21445. + ;;
  21446. + *)
  21447. + # For security reasons, it is highly recommended that you always
  21448. + # use absolute paths for naming shared libraries, and exclude the
  21449. + # DT_RUNPATH tag from executables and libraries. But doing so
  21450. + # requires that you compile everything twice, which is a pain.
  21451. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  21452. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  21453. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21454. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  21455. + else
  21456. + ld_shlibs=no
  21457. + fi
  21458. + ;;
  21459. + esac
  21460. + ;;
  21461. -# Compiler flag to prevent dynamic linking.
  21462. -link_static_flag=$lt_lt_prog_compiler_static
  21463. + sunos4*)
  21464. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  21465. + wlarc=
  21466. + hardcode_direct=yes
  21467. + hardcode_shlibpath_var=no
  21468. + ;;
  21469. -# Compiler flag to turn off builtin functions.
  21470. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  21471. + *)
  21472. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  21473. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21474. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  21475. + else
  21476. + ld_shlibs=no
  21477. + fi
  21478. + ;;
  21479. + esac
  21480. -# Compiler flag to allow reflexive dlopens.
  21481. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  21482. + if test "$ld_shlibs" = no; then
  21483. + runpath_var=
  21484. + hardcode_libdir_flag_spec=
  21485. + export_dynamic_flag_spec=
  21486. + whole_archive_flag_spec=
  21487. + fi
  21488. + else
  21489. + # PORTME fill in a description of your system's linker (not GNU ld)
  21490. + case $host_os in
  21491. + aix3*)
  21492. + allow_undefined_flag=unsupported
  21493. + always_export_symbols=yes
  21494. + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  21495. + # Note: this linker hardcodes the directories in LIBPATH if there
  21496. + # are no directories specified by -L.
  21497. + hardcode_minus_L=yes
  21498. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  21499. + # Neither direct hardcoding nor static linking is supported with a
  21500. + # broken collect2.
  21501. + hardcode_direct=unsupported
  21502. + fi
  21503. + ;;
  21504. -# Compiler flag to generate shared objects directly from archives.
  21505. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  21506. + aix[4-9]*)
  21507. + if test "$host_cpu" = ia64; then
  21508. + # On IA64, the linker does run time linking by default, so we don't
  21509. + # have to do anything special.
  21510. + aix_use_runtimelinking=no
  21511. + exp_sym_flag='-Bexport'
  21512. + no_entry_flag=""
  21513. + else
  21514. + # If we're using GNU nm, then we don't want the "-C" option.
  21515. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  21516. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  21517. + 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'
  21518. + else
  21519. + 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'
  21520. + fi
  21521. + aix_use_runtimelinking=no
  21522. -# Compiler flag to generate thread-safe objects.
  21523. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  21524. + # Test if we are trying to use run time linking or normal
  21525. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  21526. + # need to do runtime linking.
  21527. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  21528. + for ld_flag in $LDFLAGS; do
  21529. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  21530. + aix_use_runtimelinking=yes
  21531. + break
  21532. + fi
  21533. + done
  21534. + ;;
  21535. + esac
  21536. -# Library versioning type.
  21537. -version_type=$version_type
  21538. + exp_sym_flag='-bexport'
  21539. + no_entry_flag='-bnoentry'
  21540. + fi
  21541. -# Format of library name prefix.
  21542. -libname_spec=$lt_libname_spec
  21543. + # When large executables or shared objects are built, AIX ld can
  21544. + # have problems creating the table of contents. If linking a library
  21545. + # or program results in "error TOC overflow" add -mminimal-toc to
  21546. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  21547. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  21548. -# List of archive names. First name is the real one, the rest are links.
  21549. -# The last name is the one that the linker finds with -lNAME.
  21550. -library_names_spec=$lt_library_names_spec
  21551. + archive_cmds=''
  21552. + hardcode_direct=yes
  21553. + hardcode_direct_absolute=yes
  21554. + hardcode_libdir_separator=':'
  21555. + link_all_deplibs=yes
  21556. + file_list_spec='${wl}-f,'
  21557. -# The coded name of the library, if different from the real name.
  21558. -soname_spec=$lt_soname_spec
  21559. -
  21560. -# Commands used to build and install an old-style archive.
  21561. -RANLIB=$lt_RANLIB
  21562. -old_archive_cmds=$lt_old_archive_cmds
  21563. -old_postinstall_cmds=$lt_old_postinstall_cmds
  21564. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21565. -
  21566. -# Create an old-style archive from a shared archive.
  21567. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  21568. -
  21569. -# Create a temporary old-style archive to link instead of a shared archive.
  21570. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  21571. -
  21572. -# Commands used to build and install a shared archive.
  21573. -archive_cmds=$lt_archive_cmds
  21574. -archive_expsym_cmds=$lt_archive_expsym_cmds
  21575. -postinstall_cmds=$lt_postinstall_cmds
  21576. -postuninstall_cmds=$lt_postuninstall_cmds
  21577. -
  21578. -# Commands used to build a loadable module (assumed same as above if empty)
  21579. -module_cmds=$lt_module_cmds
  21580. -module_expsym_cmds=$lt_module_expsym_cmds
  21581. -
  21582. -# Commands to strip libraries.
  21583. -old_striplib=$lt_old_striplib
  21584. -striplib=$lt_striplib
  21585. + if test "$GCC" = yes; then
  21586. + case $host_os in aix4.[012]|aix4.[012].*)
  21587. + # We only want to do this on AIX 4.2 and lower, the check
  21588. + # below for broken collect2 doesn't work under 4.3+
  21589. + collect2name=`${CC} -print-prog-name=collect2`
  21590. + if test -f "$collect2name" &&
  21591. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  21592. + then
  21593. + # We have reworked collect2
  21594. + :
  21595. + else
  21596. + # We have old collect2
  21597. + hardcode_direct=unsupported
  21598. + # It fails to find uninstalled libraries when the uninstalled
  21599. + # path is not listed in the libpath. Setting hardcode_minus_L
  21600. + # to unsupported forces relinking
  21601. + hardcode_minus_L=yes
  21602. + hardcode_libdir_flag_spec='-L$libdir'
  21603. + hardcode_libdir_separator=
  21604. + fi
  21605. + ;;
  21606. + esac
  21607. + shared_flag='-shared'
  21608. + if test "$aix_use_runtimelinking" = yes; then
  21609. + shared_flag="$shared_flag "'${wl}-G'
  21610. + fi
  21611. + link_all_deplibs=no
  21612. + else
  21613. + # not using gcc
  21614. + if test "$host_cpu" = ia64; then
  21615. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  21616. + # chokes on -Wl,-G. The following line is correct:
  21617. + shared_flag='-G'
  21618. + else
  21619. + if test "$aix_use_runtimelinking" = yes; then
  21620. + shared_flag='${wl}-G'
  21621. + else
  21622. + shared_flag='${wl}-bM:SRE'
  21623. + fi
  21624. + fi
  21625. + fi
  21626. -# Dependencies to place before the objects being linked to create a
  21627. -# shared library.
  21628. -predep_objects=$lt_predep_objects
  21629. -
  21630. -# Dependencies to place after the objects being linked to create a
  21631. -# shared library.
  21632. -postdep_objects=$lt_postdep_objects
  21633. -
  21634. -# Dependencies to place before the objects being linked to create a
  21635. -# shared library.
  21636. -predeps=$lt_predeps
  21637. -
  21638. -# Dependencies to place after the objects being linked to create a
  21639. -# shared library.
  21640. -postdeps=$lt_postdeps
  21641. -
  21642. -# The library search path used internally by the compiler when linking
  21643. -# a shared library.
  21644. -compiler_lib_search_path=$lt_compiler_lib_search_path
  21645. + export_dynamic_flag_spec='${wl}-bexpall'
  21646. + # It seems that -bexpall does not export symbols beginning with
  21647. + # underscore (_), so it is better to generate a list of symbols to export.
  21648. + always_export_symbols=yes
  21649. + if test "$aix_use_runtimelinking" = yes; then
  21650. + # Warning - without using the other runtime loading flags (-brtl),
  21651. + # -berok will link without error, but may produce a broken library.
  21652. + allow_undefined_flag='-berok'
  21653. + # Determine the default libpath from the value encoded in an
  21654. + # empty executable.
  21655. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21656. +/* end confdefs.h. */
  21657. -# Method to check whether dependent libraries are shared objects.
  21658. -deplibs_check_method=$lt_deplibs_check_method
  21659. +int
  21660. +main ()
  21661. +{
  21662. -# Command to use when deplibs_check_method == file_magic.
  21663. -file_magic_cmd=$lt_file_magic_cmd
  21664. + ;
  21665. + return 0;
  21666. +}
  21667. +_ACEOF
  21668. +if ac_fn_c_try_link "$LINENO"; then :
  21669. -# Flag that allows shared libraries with undefined symbols to be built.
  21670. -allow_undefined_flag=$lt_allow_undefined_flag
  21671. +lt_aix_libpath_sed='
  21672. + /Import File Strings/,/^$/ {
  21673. + /^0/ {
  21674. + s/^0 *\(.*\)$/\1/
  21675. + p
  21676. + }
  21677. + }'
  21678. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  21679. +# Check for a 64-bit object if we didn't find anything.
  21680. +if test -z "$aix_libpath"; then
  21681. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  21682. +fi
  21683. +fi
  21684. +rm -f core conftest.err conftest.$ac_objext \
  21685. + conftest$ac_exeext conftest.$ac_ext
  21686. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  21687. -# Flag that forces no undefined symbols.
  21688. -no_undefined_flag=$lt_no_undefined_flag
  21689. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  21690. + 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"
  21691. + else
  21692. + if test "$host_cpu" = ia64; then
  21693. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  21694. + allow_undefined_flag="-z nodefs"
  21695. + 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"
  21696. + else
  21697. + # Determine the default libpath from the value encoded in an
  21698. + # empty executable.
  21699. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21700. +/* end confdefs.h. */
  21701. -# Commands used to finish a libtool library installation in a directory.
  21702. -finish_cmds=$lt_finish_cmds
  21703. +int
  21704. +main ()
  21705. +{
  21706. -# Same as above, but a single script fragment to be evaled but not shown.
  21707. -finish_eval=$lt_finish_eval
  21708. + ;
  21709. + return 0;
  21710. +}
  21711. +_ACEOF
  21712. +if ac_fn_c_try_link "$LINENO"; then :
  21713. -# Take the output of nm and produce a listing of raw symbols and C names.
  21714. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21715. +lt_aix_libpath_sed='
  21716. + /Import File Strings/,/^$/ {
  21717. + /^0/ {
  21718. + s/^0 *\(.*\)$/\1/
  21719. + p
  21720. + }
  21721. + }'
  21722. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  21723. +# Check for a 64-bit object if we didn't find anything.
  21724. +if test -z "$aix_libpath"; then
  21725. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  21726. +fi
  21727. +fi
  21728. +rm -f core conftest.err conftest.$ac_objext \
  21729. + conftest$ac_exeext conftest.$ac_ext
  21730. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  21731. -# Transform the output of nm in a proper C declaration
  21732. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21733. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  21734. + # Warning - without using the other run time loading flags,
  21735. + # -berok will link without error, but may produce a broken library.
  21736. + no_undefined_flag=' ${wl}-bernotok'
  21737. + allow_undefined_flag=' ${wl}-berok'
  21738. + # Exported symbols can be pulled into shared objects from archives
  21739. + whole_archive_flag_spec='$convenience'
  21740. + archive_cmds_need_lc=yes
  21741. + # This is similar to how AIX traditionally builds its shared libraries.
  21742. + 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'
  21743. + fi
  21744. + fi
  21745. + ;;
  21746. -# Transform the output of nm in a C name address pair
  21747. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21748. + amigaos*)
  21749. + case $host_cpu in
  21750. + powerpc)
  21751. + # see comment about AmigaOS4 .so support
  21752. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21753. + archive_expsym_cmds=''
  21754. + ;;
  21755. + m68k)
  21756. + 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)'
  21757. + hardcode_libdir_flag_spec='-L$libdir'
  21758. + hardcode_minus_L=yes
  21759. + ;;
  21760. + esac
  21761. + ;;
  21762. -# This is the shared library runtime path variable.
  21763. -runpath_var=$runpath_var
  21764. + bsdi[45]*)
  21765. + export_dynamic_flag_spec=-rdynamic
  21766. + ;;
  21767. -# This is the shared library path variable.
  21768. -shlibpath_var=$shlibpath_var
  21769. + cygwin* | mingw* | pw32* | cegcc*)
  21770. + # When not using gcc, we currently assume that we are using
  21771. + # Microsoft Visual C++.
  21772. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  21773. + # no search path for DLLs.
  21774. + hardcode_libdir_flag_spec=' '
  21775. + allow_undefined_flag=unsupported
  21776. + # Tell ltmain to make .lib files, not .a files.
  21777. + libext=lib
  21778. + # Tell ltmain to make .dll files, not .so files.
  21779. + shrext_cmds=".dll"
  21780. + # FIXME: Setting linknames here is a bad hack.
  21781. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  21782. + # The linker will automatically build a .lib file if we build a DLL.
  21783. + old_archive_from_new_cmds='true'
  21784. + # FIXME: Should let the user specify the lib program.
  21785. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  21786. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  21787. + enable_shared_with_static_runtimes=yes
  21788. + ;;
  21789. -# Is shlibpath searched before the hard-coded library search path?
  21790. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21791. + darwin* | rhapsody*)
  21792. -# How to hardcode a shared library path into an executable.
  21793. -hardcode_action=$hardcode_action
  21794. -# Whether we should hardcode library paths into libraries.
  21795. -hardcode_into_libs=$hardcode_into_libs
  21796. + archive_cmds_need_lc=no
  21797. + hardcode_direct=no
  21798. + hardcode_automatic=yes
  21799. + hardcode_shlibpath_var=unsupported
  21800. + whole_archive_flag_spec=''
  21801. + link_all_deplibs=yes
  21802. + allow_undefined_flag="$_lt_dar_allow_undefined"
  21803. + case $cc_basename in
  21804. + ifort*) _lt_dar_can_shared=yes ;;
  21805. + *) _lt_dar_can_shared=$GCC ;;
  21806. + esac
  21807. + if test "$_lt_dar_can_shared" = "yes"; then
  21808. + output_verbose_link_cmd=echo
  21809. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  21810. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  21811. + 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}"
  21812. + 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}"
  21813. -# Flag to hardcode \$libdir into a binary during linking.
  21814. -# This must work even if \$libdir does not exist.
  21815. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21816. + else
  21817. + ld_shlibs=no
  21818. + fi
  21819. -# If ld is used when linking, flag to hardcode \$libdir into
  21820. -# a binary during linking. This must work even if \$libdir does
  21821. -# not exist.
  21822. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  21823. + ;;
  21824. -# Whether we need a single -rpath flag with a separated argument.
  21825. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21826. + dgux*)
  21827. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  21828. + hardcode_libdir_flag_spec='-L$libdir'
  21829. + hardcode_shlibpath_var=no
  21830. + ;;
  21831. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  21832. -# resulting binary.
  21833. -hardcode_direct=$hardcode_direct
  21834. + freebsd1*)
  21835. + ld_shlibs=no
  21836. + ;;
  21837. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  21838. -# resulting binary.
  21839. -hardcode_minus_L=$hardcode_minus_L
  21840. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  21841. + # support. Future versions do this automatically, but an explicit c++rt0.o
  21842. + # does not break anything, and helps significantly (at the cost of a little
  21843. + # extra space).
  21844. + freebsd2.2*)
  21845. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  21846. + hardcode_libdir_flag_spec='-R$libdir'
  21847. + hardcode_direct=yes
  21848. + hardcode_shlibpath_var=no
  21849. + ;;
  21850. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  21851. -# the resulting binary.
  21852. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  21853. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  21854. + freebsd2*)
  21855. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  21856. + hardcode_direct=yes
  21857. + hardcode_minus_L=yes
  21858. + hardcode_shlibpath_var=no
  21859. + ;;
  21860. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  21861. -# and all subsequent libraries and executables linked against it.
  21862. -hardcode_automatic=$hardcode_automatic
  21863. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  21864. + freebsd* | dragonfly*)
  21865. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  21866. + hardcode_libdir_flag_spec='-R$libdir'
  21867. + hardcode_direct=yes
  21868. + hardcode_shlibpath_var=no
  21869. + ;;
  21870. -# Variables whose values should be saved in libtool wrapper scripts and
  21871. -# restored at relink time.
  21872. -variables_saved_for_relink="$variables_saved_for_relink"
  21873. + hpux9*)
  21874. + if test "$GCC" = yes; then
  21875. + 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'
  21876. + else
  21877. + 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'
  21878. + fi
  21879. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  21880. + hardcode_libdir_separator=:
  21881. + hardcode_direct=yes
  21882. -# Whether libtool must link a program against all its dependency libraries.
  21883. -link_all_deplibs=$link_all_deplibs
  21884. + # hardcode_minus_L: Not really in the search PATH,
  21885. + # but as the default location of the library.
  21886. + hardcode_minus_L=yes
  21887. + export_dynamic_flag_spec='${wl}-E'
  21888. + ;;
  21889. -# Compile-time system search path for libraries
  21890. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21891. + hpux10*)
  21892. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  21893. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  21894. + else
  21895. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  21896. + fi
  21897. + if test "$with_gnu_ld" = no; then
  21898. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  21899. + hardcode_libdir_flag_spec_ld='+b $libdir'
  21900. + hardcode_libdir_separator=:
  21901. + hardcode_direct=yes
  21902. + hardcode_direct_absolute=yes
  21903. + export_dynamic_flag_spec='${wl}-E'
  21904. + # hardcode_minus_L: Not really in the search PATH,
  21905. + # but as the default location of the library.
  21906. + hardcode_minus_L=yes
  21907. + fi
  21908. + ;;
  21909. -# Run-time system search path for libraries
  21910. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21911. -
  21912. -# Fix the shell variable \$srcfile for the compiler.
  21913. -fix_srcfile_path=$lt_fix_srcfile_path
  21914. -
  21915. -# Set to yes if exported symbols are required.
  21916. -always_export_symbols=$always_export_symbols
  21917. -
  21918. -# The commands to list exported symbols.
  21919. -export_symbols_cmds=$lt_export_symbols_cmds
  21920. -
  21921. -# The commands to extract the exported symbol list from a shared archive.
  21922. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21923. -
  21924. -# Symbols that should not be listed in the preloaded symbols.
  21925. -exclude_expsyms=$lt_exclude_expsyms
  21926. -
  21927. -# Symbols that must always be exported.
  21928. -include_expsyms=$lt_include_expsyms
  21929. -
  21930. -# ### END LIBTOOL CONFIG
  21931. -
  21932. -__EOF__
  21933. -
  21934. -
  21935. - case $host_os in
  21936. - aix3*)
  21937. - cat <<\EOF >> "$cfgfile"
  21938. + hpux11*)
  21939. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  21940. + case $host_cpu in
  21941. + hppa*64*)
  21942. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  21943. + ;;
  21944. + ia64*)
  21945. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  21946. + ;;
  21947. + *)
  21948. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  21949. + ;;
  21950. + esac
  21951. + else
  21952. + case $host_cpu in
  21953. + hppa*64*)
  21954. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  21955. + ;;
  21956. + ia64*)
  21957. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  21958. + ;;
  21959. + *)
  21960. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  21961. + ;;
  21962. + esac
  21963. + fi
  21964. + if test "$with_gnu_ld" = no; then
  21965. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  21966. + hardcode_libdir_separator=:
  21967. -# AIX sometimes has problems with the GCC collect2 program. For some
  21968. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  21969. -# vanish in a puff of smoke.
  21970. -if test "X${COLLECT_NAMES+set}" != Xset; then
  21971. - COLLECT_NAMES=
  21972. - export COLLECT_NAMES
  21973. -fi
  21974. -EOF
  21975. - ;;
  21976. - esac
  21977. + case $host_cpu in
  21978. + hppa*64*|ia64*)
  21979. + hardcode_direct=no
  21980. + hardcode_shlibpath_var=no
  21981. + ;;
  21982. + *)
  21983. + hardcode_direct=yes
  21984. + hardcode_direct_absolute=yes
  21985. + export_dynamic_flag_spec='${wl}-E'
  21986. - # We use sed instead of cat because bash on DJGPP gets confused if
  21987. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21988. - # text mode, it properly converts lines to CR/LF. This bash problem
  21989. - # is reportedly fixed, but why not run on old versions too?
  21990. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  21991. + # hardcode_minus_L: Not really in the search PATH,
  21992. + # but as the default location of the library.
  21993. + hardcode_minus_L=yes
  21994. + ;;
  21995. + esac
  21996. + fi
  21997. + ;;
  21998. - mv -f "$cfgfile" "$ofile" || \
  21999. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  22000. - chmod +x "$ofile"
  22001. + irix5* | irix6* | nonstopux*)
  22002. + if test "$GCC" = yes; then
  22003. + 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'
  22004. + # Try to use the -exported_symbol ld option, if it does not
  22005. + # work, assume that -exports_file does not work either and
  22006. + # implicitly export all symbols.
  22007. + save_LDFLAGS="$LDFLAGS"
  22008. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  22009. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22010. +/* end confdefs.h. */
  22011. +int foo(void) {}
  22012. +_ACEOF
  22013. +if ac_fn_c_try_link "$LINENO"; then :
  22014. + 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'
  22015. -else
  22016. - # If there is no Makefile yet, we rely on a make rule to execute
  22017. - # `config.status --recheck' to rerun these tests and create the
  22018. - # libtool script then.
  22019. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  22020. - if test -f "$ltmain_in"; then
  22021. - test -f Makefile && make "$ltmain"
  22022. - fi
  22023. fi
  22024. +rm -f core conftest.err conftest.$ac_objext \
  22025. + conftest$ac_exeext conftest.$ac_ext
  22026. + LDFLAGS="$save_LDFLAGS"
  22027. + else
  22028. + 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'
  22029. + 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'
  22030. + fi
  22031. + archive_cmds_need_lc='no'
  22032. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22033. + hardcode_libdir_separator=:
  22034. + inherit_rpath=yes
  22035. + link_all_deplibs=yes
  22036. + ;;
  22037. + netbsd* | netbsdelf*-gnu)
  22038. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  22039. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  22040. + else
  22041. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  22042. + fi
  22043. + hardcode_libdir_flag_spec='-R$libdir'
  22044. + hardcode_direct=yes
  22045. + hardcode_shlibpath_var=no
  22046. + ;;
  22047. -ac_ext=c
  22048. -ac_cpp='$CPP $CPPFLAGS'
  22049. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22050. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22051. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22052. -
  22053. -CC="$lt_save_CC"
  22054. + newsos6)
  22055. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22056. + hardcode_direct=yes
  22057. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22058. + hardcode_libdir_separator=:
  22059. + hardcode_shlibpath_var=no
  22060. + ;;
  22061. + *nto* | *qnx*)
  22062. + ;;
  22063. -# Check whether --with-tags was given.
  22064. -if test "${with_tags+set}" = set; then
  22065. - withval=$with_tags; tagnames="$withval"
  22066. -fi
  22067. + openbsd*)
  22068. + if test -f /usr/libexec/ld.so; then
  22069. + hardcode_direct=yes
  22070. + hardcode_shlibpath_var=no
  22071. + hardcode_direct_absolute=yes
  22072. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22073. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  22074. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  22075. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  22076. + export_dynamic_flag_spec='${wl}-E'
  22077. + else
  22078. + case $host_os in
  22079. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  22080. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  22081. + hardcode_libdir_flag_spec='-R$libdir'
  22082. + ;;
  22083. + *)
  22084. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  22085. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  22086. + ;;
  22087. + esac
  22088. + fi
  22089. + else
  22090. + ld_shlibs=no
  22091. + fi
  22092. + ;;
  22093. + os2*)
  22094. + hardcode_libdir_flag_spec='-L$libdir'
  22095. + hardcode_minus_L=yes
  22096. + allow_undefined_flag=unsupported
  22097. + 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'
  22098. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  22099. + ;;
  22100. -if test -f "$ltmain" && test -n "$tagnames"; then
  22101. - if test ! -f "${ofile}"; then
  22102. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  22103. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  22104. - fi
  22105. + osf3*)
  22106. + if test "$GCC" = yes; then
  22107. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  22108. + 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'
  22109. + else
  22110. + allow_undefined_flag=' -expect_unresolved \*'
  22111. + 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'
  22112. + fi
  22113. + archive_cmds_need_lc='no'
  22114. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22115. + hardcode_libdir_separator=:
  22116. + ;;
  22117. - if test -z "$LTCC"; then
  22118. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  22119. - if test -z "$LTCC"; then
  22120. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  22121. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  22122. - else
  22123. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  22124. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  22125. - fi
  22126. - fi
  22127. - if test -z "$LTCFLAGS"; then
  22128. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  22129. - fi
  22130. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  22131. + if test "$GCC" = yes; then
  22132. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  22133. + 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'
  22134. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  22135. + else
  22136. + allow_undefined_flag=' -expect_unresolved \*'
  22137. + 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'
  22138. + 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~
  22139. + $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'
  22140. - # Extract list of available tagged configurations in $ofile.
  22141. - # Note that this assumes the entire list is on one line.
  22142. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  22143. + # Both c and cxx compiler support -rpath directly
  22144. + hardcode_libdir_flag_spec='-rpath $libdir'
  22145. + fi
  22146. + archive_cmds_need_lc='no'
  22147. + hardcode_libdir_separator=:
  22148. + ;;
  22149. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  22150. - for tagname in $tagnames; do
  22151. - IFS="$lt_save_ifs"
  22152. - # Check whether tagname contains only valid characters
  22153. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  22154. - "") ;;
  22155. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  22156. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  22157. - { (exit 1); exit 1; }; }
  22158. + solaris*)
  22159. + no_undefined_flag=' -z defs'
  22160. + if test "$GCC" = yes; then
  22161. + wlarc='${wl}'
  22162. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  22163. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  22164. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  22165. + else
  22166. + case `$CC -V 2>&1` in
  22167. + *"Compilers 5.0"*)
  22168. + wlarc=''
  22169. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22170. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  22171. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  22172. + ;;
  22173. + *)
  22174. + wlarc='${wl}'
  22175. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  22176. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  22177. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  22178. + ;;
  22179. + esac
  22180. + fi
  22181. + hardcode_libdir_flag_spec='-R$libdir'
  22182. + hardcode_shlibpath_var=no
  22183. + case $host_os in
  22184. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  22185. + *)
  22186. + # The compiler driver will combine and reorder linker options,
  22187. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  22188. + # but is careful enough not to reorder.
  22189. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  22190. + if test "$GCC" = yes; then
  22191. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  22192. + else
  22193. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  22194. + fi
  22195. ;;
  22196. - esac
  22197. + esac
  22198. + link_all_deplibs=yes
  22199. + ;;
  22200. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  22201. - then
  22202. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  22203. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  22204. - { (exit 1); exit 1; }; }
  22205. - fi
  22206. + sunos4*)
  22207. + if test "x$host_vendor" = xsequent; then
  22208. + # Use $CC to link under sequent, because it throws in some extra .o
  22209. + # files that make .init and .fini sections work.
  22210. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  22211. + else
  22212. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  22213. + fi
  22214. + hardcode_libdir_flag_spec='-L$libdir'
  22215. + hardcode_direct=yes
  22216. + hardcode_minus_L=yes
  22217. + hardcode_shlibpath_var=no
  22218. + ;;
  22219. - # Update the list of available tags.
  22220. - if test -n "$tagname"; then
  22221. - echo appending configuration tag \"$tagname\" to $ofile
  22222. -
  22223. - case $tagname in
  22224. - CXX)
  22225. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  22226. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  22227. - (test "X$CXX" != "Xg++"))) ; then
  22228. - ac_ext=cpp
  22229. -ac_cpp='$CXXCPP $CPPFLAGS'
  22230. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22231. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22232. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22233. + sysv4)
  22234. + case $host_vendor in
  22235. + sni)
  22236. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22237. + hardcode_direct=yes # is this really true???
  22238. + ;;
  22239. + siemens)
  22240. + ## LD is ld it makes a PLAMLIB
  22241. + ## CC just makes a GrossModule.
  22242. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  22243. + reload_cmds='$CC -r -o $output$reload_objs'
  22244. + hardcode_direct=no
  22245. + ;;
  22246. + motorola)
  22247. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22248. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  22249. + ;;
  22250. + esac
  22251. + runpath_var='LD_RUN_PATH'
  22252. + hardcode_shlibpath_var=no
  22253. + ;;
  22254. + sysv4.3*)
  22255. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22256. + hardcode_shlibpath_var=no
  22257. + export_dynamic_flag_spec='-Bexport'
  22258. + ;;
  22259. + sysv4*MP*)
  22260. + if test -d /usr/nec; then
  22261. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22262. + hardcode_shlibpath_var=no
  22263. + runpath_var=LD_RUN_PATH
  22264. + hardcode_runpath_var=yes
  22265. + ld_shlibs=yes
  22266. + fi
  22267. + ;;
  22268. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  22269. + no_undefined_flag='${wl}-z,text'
  22270. + archive_cmds_need_lc=no
  22271. + hardcode_shlibpath_var=no
  22272. + runpath_var='LD_RUN_PATH'
  22273. -archive_cmds_need_lc_CXX=no
  22274. -allow_undefined_flag_CXX=
  22275. -always_export_symbols_CXX=no
  22276. -archive_expsym_cmds_CXX=
  22277. -export_dynamic_flag_spec_CXX=
  22278. -hardcode_direct_CXX=no
  22279. -hardcode_libdir_flag_spec_CXX=
  22280. -hardcode_libdir_flag_spec_ld_CXX=
  22281. -hardcode_libdir_separator_CXX=
  22282. -hardcode_minus_L_CXX=no
  22283. -hardcode_shlibpath_var_CXX=unsupported
  22284. -hardcode_automatic_CXX=no
  22285. -module_cmds_CXX=
  22286. -module_expsym_cmds_CXX=
  22287. -link_all_deplibs_CXX=unknown
  22288. -old_archive_cmds_CXX=$old_archive_cmds
  22289. -no_undefined_flag_CXX=
  22290. -whole_archive_flag_spec_CXX=
  22291. -enable_shared_with_static_runtimes_CXX=no
  22292. -
  22293. -# Dependencies to place before and after the object being linked:
  22294. -predep_objects_CXX=
  22295. -postdep_objects_CXX=
  22296. -predeps_CXX=
  22297. -postdeps_CXX=
  22298. -compiler_lib_search_path_CXX=
  22299. + if test "$GCC" = yes; then
  22300. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22301. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22302. + else
  22303. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22304. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22305. + fi
  22306. + ;;
  22307. -# Source file extension for C++ test sources.
  22308. -ac_ext=cpp
  22309. + sysv5* | sco3.2v5* | sco5v6*)
  22310. + # Note: We can NOT use -z defs as we might desire, because we do not
  22311. + # link with -lc, and that would cause any symbols used from libc to
  22312. + # always be unresolved, which means just about no library would
  22313. + # ever link correctly. If we're not using GNU ld we use -z text
  22314. + # though, which does catch some bad symbols but isn't as heavy-handed
  22315. + # as -z defs.
  22316. + no_undefined_flag='${wl}-z,text'
  22317. + allow_undefined_flag='${wl}-z,nodefs'
  22318. + archive_cmds_need_lc=no
  22319. + hardcode_shlibpath_var=no
  22320. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  22321. + hardcode_libdir_separator=':'
  22322. + link_all_deplibs=yes
  22323. + export_dynamic_flag_spec='${wl}-Bexport'
  22324. + runpath_var='LD_RUN_PATH'
  22325. -# Object file extension for compiled C++ test sources.
  22326. -objext=o
  22327. -objext_CXX=$objext
  22328. + if test "$GCC" = yes; then
  22329. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22330. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22331. + else
  22332. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22333. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  22334. + fi
  22335. + ;;
  22336. -# Code to be used in simple compile tests
  22337. -lt_simple_compile_test_code="int some_variable = 0;"
  22338. + uts4*)
  22339. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  22340. + hardcode_libdir_flag_spec='-L$libdir'
  22341. + hardcode_shlibpath_var=no
  22342. + ;;
  22343. -# Code to be used in simple link tests
  22344. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  22345. + *)
  22346. + ld_shlibs=no
  22347. + ;;
  22348. + esac
  22349. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  22350. + if test x$host_vendor = xsni; then
  22351. + case $host in
  22352. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  22353. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  22354. + ;;
  22355. + esac
  22356. + fi
  22357. + fi
  22358. -# If no C compiler was specified, use CC.
  22359. -LTCC=${LTCC-"$CC"}
  22360. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  22361. +$as_echo "$ld_shlibs" >&6; }
  22362. +test "$ld_shlibs" = no && can_build_shared=no
  22363. -# If no C compiler flags were specified, use CFLAGS.
  22364. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  22365. +with_gnu_ld=$with_gnu_ld
  22366. -# Allow CC to be a program name with arguments.
  22367. -compiler=$CC
  22368. -# save warnings/boilerplate of simple test code
  22369. -ac_outfile=conftest.$ac_objext
  22370. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  22371. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  22372. -_lt_compiler_boilerplate=`cat conftest.err`
  22373. -$rm conftest*
  22374. -ac_outfile=conftest.$ac_objext
  22375. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  22376. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  22377. -_lt_linker_boilerplate=`cat conftest.err`
  22378. -$rm conftest*
  22379. -# Allow CC to be a program name with arguments.
  22380. -lt_save_CC=$CC
  22381. -lt_save_LD=$LD
  22382. -lt_save_GCC=$GCC
  22383. -GCC=$GXX
  22384. -lt_save_with_gnu_ld=$with_gnu_ld
  22385. -lt_save_path_LD=$lt_cv_path_LD
  22386. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  22387. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  22388. -else
  22389. - $as_unset lt_cv_prog_gnu_ld
  22390. -fi
  22391. -if test -n "${lt_cv_path_LDCXX+set}"; then
  22392. - lt_cv_path_LD=$lt_cv_path_LDCXX
  22393. -else
  22394. - $as_unset lt_cv_path_LD
  22395. -fi
  22396. -test -z "${LDCXX+set}" || LD=$LDCXX
  22397. -CC=${CXX-"c++"}
  22398. -compiler=$CC
  22399. -compiler_CXX=$CC
  22400. -for cc_temp in $compiler""; do
  22401. - case $cc_temp in
  22402. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  22403. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  22404. - \-*) ;;
  22405. - *) break;;
  22406. - esac
  22407. -done
  22408. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  22409. -# We don't want -fno-exception wen compiling C++ code, so set the
  22410. -# no_builtin_flag separately
  22411. -if test "$GXX" = yes; then
  22412. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  22413. -else
  22414. - lt_prog_compiler_no_builtin_flag_CXX=
  22415. -fi
  22416. -if test "$GXX" = yes; then
  22417. - # Set up default GNU C++ configuration
  22418. -# Check whether --with-gnu-ld was given.
  22419. -if test "${with_gnu_ld+set}" = set; then
  22420. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  22421. -else
  22422. - with_gnu_ld=no
  22423. -fi
  22424. -ac_prog=ld
  22425. -if test "$GCC" = yes; then
  22426. - # Check if gcc -print-prog-name=ld gives a path.
  22427. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  22428. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  22429. - case $host in
  22430. - *-*-mingw*)
  22431. - # gcc leaves a trailing carriage return which upsets mingw
  22432. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  22433. - *)
  22434. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  22435. - esac
  22436. - case $ac_prog in
  22437. - # Accept absolute paths.
  22438. - [\\/]* | ?:[\\/]*)
  22439. - re_direlt='/[^/][^/]*/\.\./'
  22440. - # Canonicalize the pathname of ld
  22441. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  22442. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  22443. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  22444. - done
  22445. - test -z "$LD" && LD="$ac_prog"
  22446. +
  22447. +
  22448. +
  22449. +#
  22450. +# Do we need to explicitly link libc?
  22451. +#
  22452. +case "x$archive_cmds_need_lc" in
  22453. +x|xyes)
  22454. + # Assume -lc should be added
  22455. + archive_cmds_need_lc=yes
  22456. +
  22457. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  22458. + case $archive_cmds in
  22459. + *'~'*)
  22460. + # FIXME: we may have to deal with multi-command sequences.
  22461. ;;
  22462. - "")
  22463. - # If it fails, then pretend we aren't using GCC.
  22464. - ac_prog=ld
  22465. - ;;
  22466. - *)
  22467. - # If it is relative, then search for the first ld in PATH.
  22468. - with_gnu_ld=unknown
  22469. - ;;
  22470. - esac
  22471. -elif test "$with_gnu_ld" = yes; then
  22472. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  22473. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  22474. -else
  22475. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  22476. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  22477. -fi
  22478. -if test "${lt_cv_path_LD+set}" = set; then
  22479. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22480. -else
  22481. - if test -z "$LD"; then
  22482. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  22483. - for ac_dir in $PATH; do
  22484. - IFS="$lt_save_ifs"
  22485. - test -z "$ac_dir" && ac_dir=.
  22486. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  22487. - lt_cv_path_LD="$ac_dir/$ac_prog"
  22488. - # Check to see if the program is GNU ld. I'd rather use --version,
  22489. - # but apparently some variants of GNU ld only accept -v.
  22490. - # Break only if it was the GNU/non-GNU ld that we prefer.
  22491. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  22492. - *GNU* | *'with BFD'*)
  22493. - test "$with_gnu_ld" != no && break
  22494. - ;;
  22495. - *)
  22496. - test "$with_gnu_ld" != yes && break
  22497. - ;;
  22498. - esac
  22499. - fi
  22500. - done
  22501. - IFS="$lt_save_ifs"
  22502. -else
  22503. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  22504. -fi
  22505. -fi
  22506. + '$CC '*)
  22507. + # Test whether the compiler implicitly links with -lc since on some
  22508. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  22509. + # to ld, don't add -lc before -lgcc.
  22510. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  22511. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  22512. + $RM conftest*
  22513. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  22514. -LD="$lt_cv_path_LD"
  22515. -if test -n "$LD"; then
  22516. - { echo "$as_me:$LINENO: result: $LD" >&5
  22517. -echo "${ECHO_T}$LD" >&6; }
  22518. -else
  22519. - { echo "$as_me:$LINENO: result: no" >&5
  22520. -echo "${ECHO_T}no" >&6; }
  22521. -fi
  22522. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  22523. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  22524. - { (exit 1); exit 1; }; }
  22525. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  22526. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  22527. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  22528. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22529. -else
  22530. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  22531. -case `$LD -v 2>&1 </dev/null` in
  22532. -*GNU* | *'with BFD'*)
  22533. - lt_cv_prog_gnu_ld=yes
  22534. - ;;
  22535. -*)
  22536. - lt_cv_prog_gnu_ld=no
  22537. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  22538. + (eval $ac_compile) 2>&5
  22539. + ac_status=$?
  22540. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22541. + test $ac_status = 0; } 2>conftest.err; then
  22542. + soname=conftest
  22543. + lib=conftest
  22544. + libobjs=conftest.$ac_objext
  22545. + deplibs=
  22546. + wl=$lt_prog_compiler_wl
  22547. + pic_flag=$lt_prog_compiler_pic
  22548. + compiler_flags=-v
  22549. + linker_flags=-v
  22550. + verstring=
  22551. + output_objdir=.
  22552. + libname=conftest
  22553. + lt_save_allow_undefined_flag=$allow_undefined_flag
  22554. + allow_undefined_flag=
  22555. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  22556. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  22557. + ac_status=$?
  22558. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22559. + test $ac_status = 0; }
  22560. + then
  22561. + archive_cmds_need_lc=no
  22562. + else
  22563. + archive_cmds_need_lc=yes
  22564. + fi
  22565. + allow_undefined_flag=$lt_save_allow_undefined_flag
  22566. + else
  22567. + cat conftest.err 1>&5
  22568. + fi
  22569. + $RM conftest*
  22570. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  22571. +$as_echo "$archive_cmds_need_lc" >&6; }
  22572. + ;;
  22573. + esac
  22574. + fi
  22575. ;;
  22576. esac
  22577. -fi
  22578. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  22579. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  22580. -with_gnu_ld=$lt_cv_prog_gnu_ld
  22581. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  22582. - # archiving commands below assume that GNU ld is being used.
  22583. - if test "$with_gnu_ld" = yes; then
  22584. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22585. - 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'
  22586. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  22587. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  22588. - # If archive_cmds runs LD, not CC, wlarc should be empty
  22589. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  22590. - # investigate it a little bit more. (MM)
  22591. - wlarc='${wl}'
  22592. - # ancient GNU ld didn't support --whole-archive et. al.
  22593. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  22594. - grep 'no-whole-archive' > /dev/null; then
  22595. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  22596. - else
  22597. - whole_archive_flag_spec_CXX=
  22598. - fi
  22599. - else
  22600. - with_gnu_ld=no
  22601. - wlarc=
  22602. - # A generic and very simple default shared library creation
  22603. - # command for GNU C++ for the case where it uses the native
  22604. - # linker, instead of GNU ld. If possible, this setting should
  22605. - # overridden to take advantage of the native linker features on
  22606. - # the platform it is being used on.
  22607. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  22608. - fi
  22609. - # Commands to make compiler produce verbose output that lists
  22610. - # what "hidden" libraries, object files and flags are used when
  22611. - # linking a shared library.
  22612. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  22613. -else
  22614. - GXX=no
  22615. - with_gnu_ld=no
  22616. - wlarc=
  22617. -fi
  22618. -# PORTME: fill in a description of your system's C++ link characteristics
  22619. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  22620. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  22621. -ld_shlibs_CXX=yes
  22622. -case $host_os in
  22623. - aix3*)
  22624. - # FIXME: insert proper C++ library support
  22625. - ld_shlibs_CXX=no
  22626. - ;;
  22627. - aix4* | aix5*)
  22628. - if test "$host_cpu" = ia64; then
  22629. - # On IA64, the linker does run time linking by default, so we don't
  22630. - # have to do anything special.
  22631. - aix_use_runtimelinking=no
  22632. - exp_sym_flag='-Bexport'
  22633. - no_entry_flag=""
  22634. - else
  22635. - aix_use_runtimelinking=no
  22636. - # Test if we are trying to use run time linking or normal
  22637. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  22638. - # need to do runtime linking.
  22639. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  22640. - for ld_flag in $LDFLAGS; do
  22641. - case $ld_flag in
  22642. - *-brtl*)
  22643. - aix_use_runtimelinking=yes
  22644. - break
  22645. - ;;
  22646. - esac
  22647. - done
  22648. - ;;
  22649. - esac
  22650. - exp_sym_flag='-bexport'
  22651. - no_entry_flag='-bnoentry'
  22652. - fi
  22653. - # When large executables or shared objects are built, AIX ld can
  22654. - # have problems creating the table of contents. If linking a library
  22655. - # or program results in "error TOC overflow" add -mminimal-toc to
  22656. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  22657. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  22658. -
  22659. - archive_cmds_CXX=''
  22660. - hardcode_direct_CXX=yes
  22661. - hardcode_libdir_separator_CXX=':'
  22662. - link_all_deplibs_CXX=yes
  22663. -
  22664. - if test "$GXX" = yes; then
  22665. - case $host_os in aix4.[012]|aix4.[012].*)
  22666. - # We only want to do this on AIX 4.2 and lower, the check
  22667. - # below for broken collect2 doesn't work under 4.3+
  22668. - collect2name=`${CC} -print-prog-name=collect2`
  22669. - if test -f "$collect2name" && \
  22670. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  22671. - then
  22672. - # We have reworked collect2
  22673. - :
  22674. - else
  22675. - # We have old collect2
  22676. - hardcode_direct_CXX=unsupported
  22677. - # It fails to find uninstalled libraries when the uninstalled
  22678. - # path is not listed in the libpath. Setting hardcode_minus_L
  22679. - # to unsupported forces relinking
  22680. - hardcode_minus_L_CXX=yes
  22681. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  22682. - hardcode_libdir_separator_CXX=
  22683. - fi
  22684. - ;;
  22685. - esac
  22686. - shared_flag='-shared'
  22687. - if test "$aix_use_runtimelinking" = yes; then
  22688. - shared_flag="$shared_flag "'${wl}-G'
  22689. - fi
  22690. - else
  22691. - # not using gcc
  22692. - if test "$host_cpu" = ia64; then
  22693. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  22694. - # chokes on -Wl,-G. The following line is correct:
  22695. - shared_flag='-G'
  22696. - else
  22697. - if test "$aix_use_runtimelinking" = yes; then
  22698. - shared_flag='${wl}-G'
  22699. - else
  22700. - shared_flag='${wl}-bM:SRE'
  22701. - fi
  22702. - fi
  22703. - fi
  22704. - # It seems that -bexpall does not export symbols beginning with
  22705. - # underscore (_), so it is better to generate a list of symbols to export.
  22706. - always_export_symbols_CXX=yes
  22707. - if test "$aix_use_runtimelinking" = yes; then
  22708. - # Warning - without using the other runtime loading flags (-brtl),
  22709. - # -berok will link without error, but may produce a broken library.
  22710. - allow_undefined_flag_CXX='-berok'
  22711. - # Determine the default libpath from the value encoded in an empty executable.
  22712. - cat >conftest.$ac_ext <<_ACEOF
  22713. -/* confdefs.h. */
  22714. -_ACEOF
  22715. -cat confdefs.h >>conftest.$ac_ext
  22716. -cat >>conftest.$ac_ext <<_ACEOF
  22717. -/* end confdefs.h. */
  22718. -int
  22719. -main ()
  22720. -{
  22721. - ;
  22722. - return 0;
  22723. -}
  22724. -_ACEOF
  22725. -rm -f conftest.$ac_objext conftest$ac_exeext
  22726. -if { (ac_try="$ac_link"
  22727. -case "(($ac_try" in
  22728. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22729. - *) ac_try_echo=$ac_try;;
  22730. -esac
  22731. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22732. - (eval "$ac_link") 2>conftest.er1
  22733. - ac_status=$?
  22734. - grep -v '^ *+' conftest.er1 >conftest.err
  22735. - rm -f conftest.er1
  22736. - cat conftest.err >&5
  22737. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22738. - (exit $ac_status); } && {
  22739. - test -z "$ac_cxx_werror_flag" ||
  22740. - test ! -s conftest.err
  22741. - } && test -s conftest$ac_exeext &&
  22742. - $as_test_x conftest$ac_exeext; then
  22743. -lt_aix_libpath_sed='
  22744. - /Import File Strings/,/^$/ {
  22745. - /^0/ {
  22746. - s/^0 *\(.*\)$/\1/
  22747. - p
  22748. - }
  22749. - }'
  22750. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22751. -# Check for a 64-bit object if we didn't find anything.
  22752. -if test -z "$aix_libpath"; then
  22753. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22754. -fi
  22755. -else
  22756. - echo "$as_me: failed program was:" >&5
  22757. -sed 's/^/| /' conftest.$ac_ext >&5
  22758. -fi
  22759. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22760. - conftest$ac_exeext conftest.$ac_ext
  22761. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  22762. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  22763. - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  22764. - else
  22765. - if test "$host_cpu" = ia64; then
  22766. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  22767. - allow_undefined_flag_CXX="-z nodefs"
  22768. - archive_expsym_cmds_CXX="\$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"
  22769. - else
  22770. - # Determine the default libpath from the value encoded in an empty executable.
  22771. - cat >conftest.$ac_ext <<_ACEOF
  22772. -/* confdefs.h. */
  22773. -_ACEOF
  22774. -cat confdefs.h >>conftest.$ac_ext
  22775. -cat >>conftest.$ac_ext <<_ACEOF
  22776. -/* end confdefs.h. */
  22777. -int
  22778. -main ()
  22779. -{
  22780. - ;
  22781. - return 0;
  22782. -}
  22783. -_ACEOF
  22784. -rm -f conftest.$ac_objext conftest$ac_exeext
  22785. -if { (ac_try="$ac_link"
  22786. -case "(($ac_try" in
  22787. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22788. - *) ac_try_echo=$ac_try;;
  22789. -esac
  22790. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22791. - (eval "$ac_link") 2>conftest.er1
  22792. - ac_status=$?
  22793. - grep -v '^ *+' conftest.er1 >conftest.err
  22794. - rm -f conftest.er1
  22795. - cat conftest.err >&5
  22796. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22797. - (exit $ac_status); } && {
  22798. - test -z "$ac_cxx_werror_flag" ||
  22799. - test ! -s conftest.err
  22800. - } && test -s conftest$ac_exeext &&
  22801. - $as_test_x conftest$ac_exeext; then
  22802. -lt_aix_libpath_sed='
  22803. - /Import File Strings/,/^$/ {
  22804. - /^0/ {
  22805. - s/^0 *\(.*\)$/\1/
  22806. - p
  22807. - }
  22808. - }'
  22809. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22810. -# Check for a 64-bit object if we didn't find anything.
  22811. -if test -z "$aix_libpath"; then
  22812. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  22813. -fi
  22814. -else
  22815. - echo "$as_me: failed program was:" >&5
  22816. -sed 's/^/| /' conftest.$ac_ext >&5
  22817. -fi
  22818. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22819. - conftest$ac_exeext conftest.$ac_ext
  22820. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  22821. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  22822. - # Warning - without using the other run time loading flags,
  22823. - # -berok will link without error, but may produce a broken library.
  22824. - no_undefined_flag_CXX=' ${wl}-bernotok'
  22825. - allow_undefined_flag_CXX=' ${wl}-berok'
  22826. - # Exported symbols can be pulled into shared objects from archives
  22827. - whole_archive_flag_spec_CXX='$convenience'
  22828. - archive_cmds_need_lc_CXX=yes
  22829. - # This is similar to how AIX traditionally builds its shared libraries.
  22830. - archive_expsym_cmds_CXX="\$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'
  22831. - fi
  22832. - fi
  22833. - ;;
  22834. - beos*)
  22835. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22836. - allow_undefined_flag_CXX=unsupported
  22837. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  22838. - # support --undefined. This deserves some investigation. FIXME
  22839. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22840. - else
  22841. - ld_shlibs_CXX=no
  22842. - fi
  22843. - ;;
  22844. - chorus*)
  22845. - case $cc_basename in
  22846. - *)
  22847. - # FIXME: insert proper C++ library support
  22848. - ld_shlibs_CXX=no
  22849. - ;;
  22850. - esac
  22851. - ;;
  22852. - cygwin* | mingw* | pw32*)
  22853. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  22854. - # as there is no search path for DLLs.
  22855. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  22856. - allow_undefined_flag_CXX=unsupported
  22857. - always_export_symbols_CXX=no
  22858. - enable_shared_with_static_runtimes_CXX=yes
  22859. -
  22860. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  22861. - archive_cmds_CXX='$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'
  22862. - # If the export-symbols file already is a .def file (1st line
  22863. - # is EXPORTS), use it as is; otherwise, prepend...
  22864. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  22865. - cp $export_symbols $output_objdir/$soname.def;
  22866. - else
  22867. - echo EXPORTS > $output_objdir/$soname.def;
  22868. - cat $export_symbols >> $output_objdir/$soname.def;
  22869. - fi~
  22870. - $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'
  22871. - else
  22872. - ld_shlibs_CXX=no
  22873. - fi
  22874. - ;;
  22875. - darwin* | rhapsody*)
  22876. - case $host_os in
  22877. - rhapsody* | darwin1.[012])
  22878. - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  22879. - ;;
  22880. - *) # Darwin 1.3 on
  22881. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  22882. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  22883. - else
  22884. - case ${MACOSX_DEPLOYMENT_TARGET} in
  22885. - 10.[012])
  22886. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  22887. - ;;
  22888. - 10.*)
  22889. - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  22890. - ;;
  22891. - esac
  22892. - fi
  22893. - ;;
  22894. - esac
  22895. - archive_cmds_need_lc_CXX=no
  22896. - hardcode_direct_CXX=no
  22897. - hardcode_automatic_CXX=yes
  22898. - hardcode_shlibpath_var_CXX=unsupported
  22899. - whole_archive_flag_spec_CXX=''
  22900. - link_all_deplibs_CXX=yes
  22901. -
  22902. - if test "$GXX" = yes ; then
  22903. - lt_int_apple_cc_single_mod=no
  22904. - output_verbose_link_cmd='echo'
  22905. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  22906. - lt_int_apple_cc_single_mod=yes
  22907. - fi
  22908. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  22909. - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  22910. - else
  22911. - archive_cmds_CXX='$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'
  22912. - fi
  22913. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  22914. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  22915. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  22916. - 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}'
  22917. - else
  22918. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  22919. - fi
  22920. - 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}'
  22921. - else
  22922. - case $cc_basename in
  22923. - xlc*)
  22924. - output_verbose_link_cmd='echo'
  22925. - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  22926. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  22927. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  22928. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  22929. - 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}'
  22930. - ;;
  22931. - *)
  22932. - ld_shlibs_CXX=no
  22933. - ;;
  22934. - esac
  22935. - fi
  22936. - ;;
  22937. - dgux*)
  22938. - case $cc_basename in
  22939. - ec++*)
  22940. - # FIXME: insert proper C++ library support
  22941. - ld_shlibs_CXX=no
  22942. - ;;
  22943. - ghcx*)
  22944. - # Green Hills C++ Compiler
  22945. - # FIXME: insert proper C++ library support
  22946. - ld_shlibs_CXX=no
  22947. - ;;
  22948. - *)
  22949. - # FIXME: insert proper C++ library support
  22950. - ld_shlibs_CXX=no
  22951. - ;;
  22952. - esac
  22953. - ;;
  22954. - freebsd[12]*)
  22955. - # C++ shared libraries reported to be fairly broken before switch to ELF
  22956. - ld_shlibs_CXX=no
  22957. - ;;
  22958. - freebsd-elf*)
  22959. - archive_cmds_need_lc_CXX=no
  22960. - ;;
  22961. - freebsd* | dragonfly*)
  22962. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  22963. - # conventions
  22964. - ld_shlibs_CXX=yes
  22965. - ;;
  22966. - gnu*)
  22967. - ;;
  22968. - hpux9*)
  22969. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  22970. - hardcode_libdir_separator_CXX=:
  22971. - export_dynamic_flag_spec_CXX='${wl}-E'
  22972. - hardcode_direct_CXX=yes
  22973. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  22974. - # but as the default
  22975. - # location of the library.
  22976. -
  22977. - case $cc_basename in
  22978. - CC*)
  22979. - # FIXME: insert proper C++ library support
  22980. - ld_shlibs_CXX=no
  22981. - ;;
  22982. - aCC*)
  22983. - 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'
  22984. - # Commands to make compiler produce verbose output that lists
  22985. - # what "hidden" libraries, object files and flags are used when
  22986. - # linking a shared library.
  22987. - #
  22988. - # There doesn't appear to be a way to prevent this compiler from
  22989. - # explicitly linking system object files so we need to strip them
  22990. - # from the output so that they don't get included in the library
  22991. - # dependencies.
  22992. - 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'
  22993. - ;;
  22994. - *)
  22995. - if test "$GXX" = yes; then
  22996. - 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'
  22997. - else
  22998. - # FIXME: insert proper C++ library support
  22999. - ld_shlibs_CXX=no
  23000. - fi
  23001. - ;;
  23002. - esac
  23003. - ;;
  23004. - hpux10*|hpux11*)
  23005. - if test $with_gnu_ld = no; then
  23006. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  23007. - hardcode_libdir_separator_CXX=:
  23008. - case $host_cpu in
  23009. - hppa*64*|ia64*) ;;
  23010. - *)
  23011. - export_dynamic_flag_spec_CXX='${wl}-E'
  23012. - ;;
  23013. - esac
  23014. - fi
  23015. - case $host_cpu in
  23016. - hppa*64*|ia64*)
  23017. - hardcode_direct_CXX=no
  23018. - hardcode_shlibpath_var_CXX=no
  23019. - ;;
  23020. - *)
  23021. - hardcode_direct_CXX=yes
  23022. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  23023. - # but as the default
  23024. - # location of the library.
  23025. - ;;
  23026. - esac
  23027. - case $cc_basename in
  23028. - CC*)
  23029. - # FIXME: insert proper C++ library support
  23030. - ld_shlibs_CXX=no
  23031. - ;;
  23032. - aCC*)
  23033. - case $host_cpu in
  23034. - hppa*64*)
  23035. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  23036. - ;;
  23037. - ia64*)
  23038. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  23039. - ;;
  23040. - *)
  23041. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  23042. - ;;
  23043. - esac
  23044. - # Commands to make compiler produce verbose output that lists
  23045. - # what "hidden" libraries, object files and flags are used when
  23046. - # linking a shared library.
  23047. - #
  23048. - # There doesn't appear to be a way to prevent this compiler from
  23049. - # explicitly linking system object files so we need to strip them
  23050. - # from the output so that they don't get included in the library
  23051. - # dependencies.
  23052. - 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'
  23053. - ;;
  23054. - *)
  23055. - if test "$GXX" = yes; then
  23056. - if test $with_gnu_ld = no; then
  23057. - case $host_cpu in
  23058. - hppa*64*)
  23059. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  23060. - ;;
  23061. - ia64*)
  23062. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  23063. - ;;
  23064. - *)
  23065. - 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'
  23066. - ;;
  23067. - esac
  23068. - fi
  23069. - else
  23070. - # FIXME: insert proper C++ library support
  23071. - ld_shlibs_CXX=no
  23072. - fi
  23073. - ;;
  23074. - esac
  23075. - ;;
  23076. - interix[3-9]*)
  23077. - hardcode_direct_CXX=no
  23078. - hardcode_shlibpath_var_CXX=no
  23079. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  23080. - export_dynamic_flag_spec_CXX='${wl}-E'
  23081. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  23082. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  23083. - # default) and relocated if they conflict, which is a slow very memory
  23084. - # consuming and fragmenting process. To avoid this, we pick a random,
  23085. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  23086. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  23087. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  23088. - archive_expsym_cmds_CXX='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'
  23089. - ;;
  23090. - irix5* | irix6*)
  23091. - case $cc_basename in
  23092. - CC*)
  23093. - # SGI C++
  23094. - 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 ${output_objdir}/so_locations -o $lib'
  23095. -
  23096. - # Archives containing C++ object files must be created using
  23097. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  23098. - # necessary to make sure instantiated templates are included
  23099. - # in the archive.
  23100. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  23101. - ;;
  23102. - *)
  23103. - if test "$GXX" = yes; then
  23104. - if test "$with_gnu_ld" = no; then
  23105. - 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}${output_objdir}/so_locations -o $lib'
  23106. - else
  23107. - 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'
  23108. - fi
  23109. - fi
  23110. - link_all_deplibs_CXX=yes
  23111. - ;;
  23112. - esac
  23113. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  23114. - hardcode_libdir_separator_CXX=:
  23115. - ;;
  23116. - linux* | k*bsd*-gnu)
  23117. - case $cc_basename in
  23118. - KCC*)
  23119. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  23120. -
  23121. - # KCC will only create a shared library if the output file
  23122. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  23123. - # to its proper name (with version) after linking.
  23124. - 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'
  23125. - 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'
  23126. - # Commands to make compiler produce verbose output that lists
  23127. - # what "hidden" libraries, object files and flags are used when
  23128. - # linking a shared library.
  23129. - #
  23130. - # There doesn't appear to be a way to prevent this compiler from
  23131. - # explicitly linking system object files so we need to strip them
  23132. - # from the output so that they don't get included in the library
  23133. - # dependencies.
  23134. - 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'
  23135. -
  23136. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  23137. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  23138. -
  23139. - # Archives containing C++ object files must be created using
  23140. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  23141. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  23142. - ;;
  23143. - icpc*)
  23144. - # Intel C++
  23145. - with_gnu_ld=yes
  23146. - # version 8.0 and above of icpc choke on multiply defined symbols
  23147. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  23148. - # earlier do not add the objects themselves.
  23149. - case `$CC -V 2>&1` in
  23150. - *"Version 7."*)
  23151. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  23152. - 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'
  23153. - ;;
  23154. - *) # Version 8.0 or newer
  23155. - tmp_idyn=
  23156. - case $host_cpu in
  23157. - ia64*) tmp_idyn=' -i_dynamic';;
  23158. - esac
  23159. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  23160. - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  23161. - ;;
  23162. - esac
  23163. - archive_cmds_need_lc_CXX=no
  23164. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  23165. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  23166. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  23167. - ;;
  23168. - pgCC*)
  23169. - # Portland Group C++ compiler
  23170. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  23171. - archive_expsym_cmds_CXX='$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'
  23172. -
  23173. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  23174. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  23175. - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  23176. - ;;
  23177. - cxx*)
  23178. - # Compaq C++
  23179. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  23180. - 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'
  23181. - runpath_var=LD_RUN_PATH
  23182. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  23183. - hardcode_libdir_separator_CXX=:
  23184. - # Commands to make compiler produce verbose output that lists
  23185. - # what "hidden" libraries, object files and flags are used when
  23186. - # linking a shared library.
  23187. - #
  23188. - # There doesn't appear to be a way to prevent this compiler from
  23189. - # explicitly linking system object files so we need to strip them
  23190. - # from the output so that they don't get included in the library
  23191. - # dependencies.
  23192. - 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'
  23193. - ;;
  23194. - *)
  23195. - case `$CC -V 2>&1 | sed 5q` in
  23196. - *Sun\ C*)
  23197. - # Sun C++ 5.9
  23198. - no_undefined_flag_CXX=' -zdefs'
  23199. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  23200. - archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  23201. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  23202. - whole_archive_flag_spec_CXX='${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'
  23203. -
  23204. - # Not sure whether something based on
  23205. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  23206. - # would be better.
  23207. - output_verbose_link_cmd='echo'
  23208. -
  23209. - # Archives containing C++ object files must be created using
  23210. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  23211. - # necessary to make sure instantiated templates are included
  23212. - # in the archive.
  23213. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  23214. - ;;
  23215. - esac
  23216. - ;;
  23217. - esac
  23218. - ;;
  23219. - lynxos*)
  23220. - # FIXME: insert proper C++ library support
  23221. - ld_shlibs_CXX=no
  23222. - ;;
  23223. - m88k*)
  23224. - # FIXME: insert proper C++ library support
  23225. - ld_shlibs_CXX=no
  23226. - ;;
  23227. - mvs*)
  23228. - case $cc_basename in
  23229. - cxx*)
  23230. - # FIXME: insert proper C++ library support
  23231. - ld_shlibs_CXX=no
  23232. - ;;
  23233. - *)
  23234. - # FIXME: insert proper C++ library support
  23235. - ld_shlibs_CXX=no
  23236. - ;;
  23237. - esac
  23238. - ;;
  23239. - netbsd*)
  23240. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  23241. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  23242. - wlarc=
  23243. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  23244. - hardcode_direct_CXX=yes
  23245. - hardcode_shlibpath_var_CXX=no
  23246. - fi
  23247. - # Workaround some broken pre-1.5 toolchains
  23248. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  23249. - ;;
  23250. - openbsd2*)
  23251. - # C++ shared libraries are fairly broken
  23252. - ld_shlibs_CXX=no
  23253. - ;;
  23254. - openbsd*)
  23255. - if test -f /usr/libexec/ld.so; then
  23256. - hardcode_direct_CXX=yes
  23257. - hardcode_shlibpath_var_CXX=no
  23258. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  23259. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  23260. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  23261. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  23262. - export_dynamic_flag_spec_CXX='${wl}-E'
  23263. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  23264. - fi
  23265. - output_verbose_link_cmd='echo'
  23266. - else
  23267. - ld_shlibs_CXX=no
  23268. - fi
  23269. - ;;
  23270. - osf3*)
  23271. - case $cc_basename in
  23272. - KCC*)
  23273. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  23274. -
  23275. - # KCC will only create a shared library if the output file
  23276. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  23277. - # to its proper name (with version) after linking.
  23278. - 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'
  23279. -
  23280. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  23281. - hardcode_libdir_separator_CXX=:
  23282. -
  23283. - # Archives containing C++ object files must be created using
  23284. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  23285. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  23286. - ;;
  23287. - RCC*)
  23288. - # Rational C++ 2.4.1
  23289. - # FIXME: insert proper C++ library support
  23290. - ld_shlibs_CXX=no
  23291. - ;;
  23292. - cxx*)
  23293. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  23294. - 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 ${output_objdir}/so_locations -o $lib'
  23295. -
  23296. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  23297. - hardcode_libdir_separator_CXX=:
  23298. -
  23299. - # Commands to make compiler produce verbose output that lists
  23300. - # what "hidden" libraries, object files and flags are used when
  23301. - # linking a shared library.
  23302. - #
  23303. - # There doesn't appear to be a way to prevent this compiler from
  23304. - # explicitly linking system object files so we need to strip them
  23305. - # from the output so that they don't get included in the library
  23306. - # dependencies.
  23307. - 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'
  23308. - ;;
  23309. - *)
  23310. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  23311. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  23312. - 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}${output_objdir}/so_locations -o $lib'
  23313. -
  23314. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  23315. - hardcode_libdir_separator_CXX=:
  23316. -
  23317. - # Commands to make compiler produce verbose output that lists
  23318. - # what "hidden" libraries, object files and flags are used when
  23319. - # linking a shared library.
  23320. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  23321. - else
  23322. - # FIXME: insert proper C++ library support
  23323. - ld_shlibs_CXX=no
  23324. - fi
  23325. - ;;
  23326. - esac
  23327. - ;;
  23328. - osf4* | osf5*)
  23329. - case $cc_basename in
  23330. - KCC*)
  23331. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  23332. -
  23333. - # KCC will only create a shared library if the output file
  23334. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  23335. - # to its proper name (with version) after linking.
  23336. - 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'
  23337. -
  23338. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  23339. - hardcode_libdir_separator_CXX=:
  23340. -
  23341. - # Archives containing C++ object files must be created using
  23342. - # the KAI C++ compiler.
  23343. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  23344. - ;;
  23345. - RCC*)
  23346. - # Rational C++ 2.4.1
  23347. - # FIXME: insert proper C++ library support
  23348. - ld_shlibs_CXX=no
  23349. - ;;
  23350. - cxx*)
  23351. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  23352. - 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 ${output_objdir}/so_locations -o $lib'
  23353. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  23354. - echo "-hidden">> $lib.exp~
  23355. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  23356. - $rm $lib.exp'
  23357. -
  23358. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  23359. - hardcode_libdir_separator_CXX=:
  23360. -
  23361. - # Commands to make compiler produce verbose output that lists
  23362. - # what "hidden" libraries, object files and flags are used when
  23363. - # linking a shared library.
  23364. - #
  23365. - # There doesn't appear to be a way to prevent this compiler from
  23366. - # explicitly linking system object files so we need to strip them
  23367. - # from the output so that they don't get included in the library
  23368. - # dependencies.
  23369. - 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'
  23370. - ;;
  23371. - *)
  23372. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  23373. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  23374. - 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}${output_objdir}/so_locations -o $lib'
  23375. -
  23376. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  23377. - hardcode_libdir_separator_CXX=:
  23378. -
  23379. - # Commands to make compiler produce verbose output that lists
  23380. - # what "hidden" libraries, object files and flags are used when
  23381. - # linking a shared library.
  23382. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  23383. - else
  23384. - # FIXME: insert proper C++ library support
  23385. - ld_shlibs_CXX=no
  23386. - fi
  23387. - ;;
  23388. - esac
  23389. - ;;
  23390. - psos*)
  23391. - # FIXME: insert proper C++ library support
  23392. - ld_shlibs_CXX=no
  23393. - ;;
  23394. - sunos4*)
  23395. - case $cc_basename in
  23396. - CC*)
  23397. - # Sun C++ 4.x
  23398. - # FIXME: insert proper C++ library support
  23399. - ld_shlibs_CXX=no
  23400. - ;;
  23401. - lcc*)
  23402. - # Lucid
  23403. - # FIXME: insert proper C++ library support
  23404. - ld_shlibs_CXX=no
  23405. - ;;
  23406. - *)
  23407. - # FIXME: insert proper C++ library support
  23408. - ld_shlibs_CXX=no
  23409. - ;;
  23410. - esac
  23411. - ;;
  23412. - solaris*)
  23413. - case $cc_basename in
  23414. - CC*)
  23415. - # Sun C++ 4.2, 5.x and Centerline C++
  23416. - archive_cmds_need_lc_CXX=yes
  23417. - no_undefined_flag_CXX=' -zdefs'
  23418. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  23419. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  23420. - $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'
  23421. -
  23422. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  23423. - hardcode_shlibpath_var_CXX=no
  23424. - case $host_os in
  23425. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  23426. - *)
  23427. - # The compiler driver will combine and reorder linker options,
  23428. - # but understands `-z linker_flag'.
  23429. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  23430. - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  23431. - ;;
  23432. - esac
  23433. - link_all_deplibs_CXX=yes
  23434. - output_verbose_link_cmd='echo'
  23435. - # Archives containing C++ object files must be created using
  23436. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  23437. - # necessary to make sure instantiated templates are included
  23438. - # in the archive.
  23439. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  23440. - ;;
  23441. - gcx*)
  23442. - # Green Hills C++ Compiler
  23443. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  23444. - # The C++ compiler must be used to create the archive.
  23445. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  23446. - ;;
  23447. - *)
  23448. - # GNU C++ compiler with Solaris linker
  23449. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  23450. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  23451. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  23452. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  23453. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  23454. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  23455. -
  23456. - # Commands to make compiler produce verbose output that lists
  23457. - # what "hidden" libraries, object files and flags are used when
  23458. - # linking a shared library.
  23459. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  23460. - else
  23461. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  23462. - # platform.
  23463. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  23464. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  23465. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  23466. -
  23467. - # Commands to make compiler produce verbose output that lists
  23468. - # what "hidden" libraries, object files and flags are used when
  23469. - # linking a shared library.
  23470. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  23471. - fi
  23472. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  23473. - case $host_os in
  23474. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  23475. - *)
  23476. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  23477. - ;;
  23478. - esac
  23479. - fi
  23480. - ;;
  23481. - esac
  23482. - ;;
  23483. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  23484. - no_undefined_flag_CXX='${wl}-z,text'
  23485. - archive_cmds_need_lc_CXX=no
  23486. - hardcode_shlibpath_var_CXX=no
  23487. - runpath_var='LD_RUN_PATH'
  23488. -
  23489. - case $cc_basename in
  23490. - CC*)
  23491. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23492. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23493. - ;;
  23494. - *)
  23495. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23496. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23497. - ;;
  23498. - esac
  23499. - ;;
  23500. - sysv5* | sco3.2v5* | sco5v6*)
  23501. - # Note: We can NOT use -z defs as we might desire, because we do not
  23502. - # link with -lc, and that would cause any symbols used from libc to
  23503. - # always be unresolved, which means just about no library would
  23504. - # ever link correctly. If we're not using GNU ld we use -z text
  23505. - # though, which does catch some bad symbols but isn't as heavy-handed
  23506. - # as -z defs.
  23507. - # For security reasons, it is highly recommended that you always
  23508. - # use absolute paths for naming shared libraries, and exclude the
  23509. - # DT_RUNPATH tag from executables and libraries. But doing so
  23510. - # requires that you compile everything twice, which is a pain.
  23511. - # So that behaviour is only enabled if SCOABSPATH is set to a
  23512. - # non-empty value in the environment. Most likely only useful for
  23513. - # creating official distributions of packages.
  23514. - # This is a hack until libtool officially supports absolute path
  23515. - # names for shared libraries.
  23516. - no_undefined_flag_CXX='${wl}-z,text'
  23517. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  23518. - archive_cmds_need_lc_CXX=no
  23519. - hardcode_shlibpath_var_CXX=no
  23520. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  23521. - hardcode_libdir_separator_CXX=':'
  23522. - link_all_deplibs_CXX=yes
  23523. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  23524. - runpath_var='LD_RUN_PATH'
  23525. -
  23526. - case $cc_basename in
  23527. - CC*)
  23528. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23529. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23530. - ;;
  23531. - *)
  23532. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23533. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23534. - ;;
  23535. - esac
  23536. - ;;
  23537. - tandem*)
  23538. - case $cc_basename in
  23539. - NCC*)
  23540. - # NonStop-UX NCC 3.20
  23541. - # FIXME: insert proper C++ library support
  23542. - ld_shlibs_CXX=no
  23543. - ;;
  23544. - *)
  23545. - # FIXME: insert proper C++ library support
  23546. - ld_shlibs_CXX=no
  23547. - ;;
  23548. - esac
  23549. - ;;
  23550. - vxworks*)
  23551. - # FIXME: insert proper C++ library support
  23552. - ld_shlibs_CXX=no
  23553. - ;;
  23554. - *)
  23555. - # FIXME: insert proper C++ library support
  23556. - ld_shlibs_CXX=no
  23557. - ;;
  23558. -esac
  23559. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  23560. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  23561. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  23562. -GCC_CXX="$GXX"
  23563. -LD_CXX="$LD"
  23564. -cat > conftest.$ac_ext <<EOF
  23565. -class Foo
  23566. -{
  23567. -public:
  23568. - Foo (void) { a = 0; }
  23569. -private:
  23570. - int a;
  23571. -};
  23572. -EOF
  23573. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23574. - (eval $ac_compile) 2>&5
  23575. - ac_status=$?
  23576. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23577. - (exit $ac_status); }; then
  23578. - # Parse the compiler output and extract the necessary
  23579. - # objects, libraries and library flags.
  23580. -
  23581. - # Sentinel used to keep track of whether or not we are before
  23582. - # the conftest object file.
  23583. - pre_test_object_deps_done=no
  23584. -
  23585. - # The `*' in the case matches for architectures that use `case' in
  23586. - # $output_verbose_cmd can trigger glob expansion during the loop
  23587. - # eval without this substitution.
  23588. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  23589. -
  23590. - for p in `eval $output_verbose_link_cmd`; do
  23591. - case $p in
  23592. -
  23593. - -L* | -R* | -l*)
  23594. - # Some compilers place space between "-{L,R}" and the path.
  23595. - # Remove the space.
  23596. - if test $p = "-L" \
  23597. - || test $p = "-R"; then
  23598. - prev=$p
  23599. - continue
  23600. - else
  23601. - prev=
  23602. - fi
  23603. - if test "$pre_test_object_deps_done" = no; then
  23604. - case $p in
  23605. - -L* | -R*)
  23606. - # Internal compiler library paths should come after those
  23607. - # provided the user. The postdeps already come after the
  23608. - # user supplied libs so there is no need to process them.
  23609. - if test -z "$compiler_lib_search_path_CXX"; then
  23610. - compiler_lib_search_path_CXX="${prev}${p}"
  23611. - else
  23612. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  23613. - fi
  23614. - ;;
  23615. - # The "-l" case would never come before the object being
  23616. - # linked, so don't bother handling this case.
  23617. - esac
  23618. - else
  23619. - if test -z "$postdeps_CXX"; then
  23620. - postdeps_CXX="${prev}${p}"
  23621. - else
  23622. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  23623. - fi
  23624. - fi
  23625. - ;;
  23626. - *.$objext)
  23627. - # This assumes that the test object file only shows up
  23628. - # once in the compiler output.
  23629. - if test "$p" = "conftest.$objext"; then
  23630. - pre_test_object_deps_done=yes
  23631. - continue
  23632. - fi
  23633. - if test "$pre_test_object_deps_done" = no; then
  23634. - if test -z "$predep_objects_CXX"; then
  23635. - predep_objects_CXX="$p"
  23636. - else
  23637. - predep_objects_CXX="$predep_objects_CXX $p"
  23638. - fi
  23639. - else
  23640. - if test -z "$postdep_objects_CXX"; then
  23641. - postdep_objects_CXX="$p"
  23642. - else
  23643. - postdep_objects_CXX="$postdep_objects_CXX $p"
  23644. - fi
  23645. - fi
  23646. - ;;
  23647. - *) ;; # Ignore the rest.
  23648. - esac
  23649. - done
  23650. - # Clean up.
  23651. - rm -f a.out a.exe
  23652. -else
  23653. - echo "libtool.m4: error: problem compiling CXX test program"
  23654. -fi
  23655. -$rm -f confest.$objext
  23656. -# PORTME: override above test on systems where it is broken
  23657. -case $host_os in
  23658. -interix[3-9]*)
  23659. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  23660. - # hack all around it, let's just trust "g++" to DTRT.
  23661. - predep_objects_CXX=
  23662. - postdep_objects_CXX=
  23663. - postdeps_CXX=
  23664. - ;;
  23665. -linux*)
  23666. - case `$CC -V 2>&1 | sed 5q` in
  23667. - *Sun\ C*)
  23668. - # Sun C++ 5.9
  23669. - #
  23670. - # The more standards-conforming stlport4 library is
  23671. - # incompatible with the Cstd library. Avoid specifying
  23672. - # it if it's in CXXFLAGS. Ignore libCrun as
  23673. - # -library=stlport4 depends on it.
  23674. - case " $CXX $CXXFLAGS " in
  23675. - *" -library=stlport4 "*)
  23676. - solaris_use_stlport4=yes
  23677. - ;;
  23678. - esac
  23679. - if test "$solaris_use_stlport4" != yes; then
  23680. - postdeps_CXX='-library=Cstd -library=Crun'
  23681. - fi
  23682. - ;;
  23683. - esac
  23684. - ;;
  23685. -solaris*)
  23686. - case $cc_basename in
  23687. - CC*)
  23688. - # The more standards-conforming stlport4 library is
  23689. - # incompatible with the Cstd library. Avoid specifying
  23690. - # it if it's in CXXFLAGS. Ignore libCrun as
  23691. - # -library=stlport4 depends on it.
  23692. - case " $CXX $CXXFLAGS " in
  23693. - *" -library=stlport4 "*)
  23694. - solaris_use_stlport4=yes
  23695. - ;;
  23696. - esac
  23697. - # Adding this requires a known-good setup of shared libraries for
  23698. - # Sun compiler versions before 5.6, else PIC objects from an old
  23699. - # archive will be linked into the output, leading to subtle bugs.
  23700. - if test "$solaris_use_stlport4" != yes; then
  23701. - postdeps_CXX='-library=Cstd -library=Crun'
  23702. - fi
  23703. - ;;
  23704. - esac
  23705. - ;;
  23706. -esac
  23707. -case " $postdeps_CXX " in
  23708. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  23709. -esac
  23710. -lt_prog_compiler_wl_CXX=
  23711. -lt_prog_compiler_pic_CXX=
  23712. -lt_prog_compiler_static_CXX=
  23713. -
  23714. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  23715. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  23716. -
  23717. - # C++ specific cases for pic, static, wl, etc.
  23718. - if test "$GXX" = yes; then
  23719. - lt_prog_compiler_wl_CXX='-Wl,'
  23720. - lt_prog_compiler_static_CXX='-static'
  23721. - case $host_os in
  23722. - aix*)
  23723. - # All AIX code is PIC.
  23724. - if test "$host_cpu" = ia64; then
  23725. - # AIX 5 now supports IA64 processor
  23726. - lt_prog_compiler_static_CXX='-Bstatic'
  23727. - fi
  23728. - ;;
  23729. - amigaos*)
  23730. - # FIXME: we need at least 68020 code to build shared libraries, but
  23731. - # adding the `-m68020' flag to GCC prevents building anything better,
  23732. - # like `-m68040'.
  23733. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  23734. - ;;
  23735. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  23736. - # PIC is the default for these OSes.
  23737. - ;;
  23738. - mingw* | cygwin* | os2* | pw32*)
  23739. - # This hack is so that the source file can tell whether it is being
  23740. - # built for inclusion in a dll (and should export symbols for example).
  23741. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  23742. - # (--disable-auto-import) libraries
  23743. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  23744. - ;;
  23745. - darwin* | rhapsody*)
  23746. - # PIC is the default on this platform
  23747. - # Common symbols not allowed in MH_DYLIB files
  23748. - lt_prog_compiler_pic_CXX='-fno-common'
  23749. - ;;
  23750. - *djgpp*)
  23751. - # DJGPP does not support shared libraries at all
  23752. - lt_prog_compiler_pic_CXX=
  23753. - ;;
  23754. - interix[3-9]*)
  23755. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  23756. - # Instead, we relocate shared libraries at runtime.
  23757. - ;;
  23758. - sysv4*MP*)
  23759. - if test -d /usr/nec; then
  23760. - lt_prog_compiler_pic_CXX=-Kconform_pic
  23761. - fi
  23762. - ;;
  23763. - hpux*)
  23764. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  23765. - # not for PA HP-UX.
  23766. - case $host_cpu in
  23767. - hppa*64*|ia64*)
  23768. - ;;
  23769. - *)
  23770. - lt_prog_compiler_pic_CXX='-fPIC'
  23771. - ;;
  23772. - esac
  23773. - ;;
  23774. - *)
  23775. - lt_prog_compiler_pic_CXX='-fPIC'
  23776. - ;;
  23777. - esac
  23778. - else
  23779. - case $host_os in
  23780. - aix4* | aix5*)
  23781. - # All AIX code is PIC.
  23782. - if test "$host_cpu" = ia64; then
  23783. - # AIX 5 now supports IA64 processor
  23784. - lt_prog_compiler_static_CXX='-Bstatic'
  23785. - else
  23786. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  23787. - fi
  23788. - ;;
  23789. - chorus*)
  23790. - case $cc_basename in
  23791. - cxch68*)
  23792. - # Green Hills C++ Compiler
  23793. - # _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"
  23794. - ;;
  23795. - esac
  23796. - ;;
  23797. - darwin*)
  23798. - # PIC is the default on this platform
  23799. - # Common symbols not allowed in MH_DYLIB files
  23800. - case $cc_basename in
  23801. - xlc*)
  23802. - lt_prog_compiler_pic_CXX='-qnocommon'
  23803. - lt_prog_compiler_wl_CXX='-Wl,'
  23804. - ;;
  23805. - esac
  23806. - ;;
  23807. - dgux*)
  23808. - case $cc_basename in
  23809. - ec++*)
  23810. - lt_prog_compiler_pic_CXX='-KPIC'
  23811. - ;;
  23812. - ghcx*)
  23813. - # Green Hills C++ Compiler
  23814. - lt_prog_compiler_pic_CXX='-pic'
  23815. - ;;
  23816. - *)
  23817. - ;;
  23818. - esac
  23819. - ;;
  23820. - freebsd* | dragonfly*)
  23821. - # FreeBSD uses GNU C++
  23822. - ;;
  23823. - hpux9* | hpux10* | hpux11*)
  23824. - case $cc_basename in
  23825. - CC*)
  23826. - lt_prog_compiler_wl_CXX='-Wl,'
  23827. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  23828. - if test "$host_cpu" != ia64; then
  23829. - lt_prog_compiler_pic_CXX='+Z'
  23830. - fi
  23831. - ;;
  23832. - aCC*)
  23833. - lt_prog_compiler_wl_CXX='-Wl,'
  23834. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  23835. - case $host_cpu in
  23836. - hppa*64*|ia64*)
  23837. - # +Z the default
  23838. - ;;
  23839. - *)
  23840. - lt_prog_compiler_pic_CXX='+Z'
  23841. - ;;
  23842. - esac
  23843. - ;;
  23844. - *)
  23845. - ;;
  23846. - esac
  23847. - ;;
  23848. - interix*)
  23849. - # This is c89, which is MS Visual C++ (no shared libs)
  23850. - # Anyone wants to do a port?
  23851. - ;;
  23852. - irix5* | irix6* | nonstopux*)
  23853. - case $cc_basename in
  23854. - CC*)
  23855. - lt_prog_compiler_wl_CXX='-Wl,'
  23856. - lt_prog_compiler_static_CXX='-non_shared'
  23857. - # CC pic flag -KPIC is the default.
  23858. - ;;
  23859. - *)
  23860. - ;;
  23861. - esac
  23862. - ;;
  23863. - linux* | k*bsd*-gnu)
  23864. - case $cc_basename in
  23865. - KCC*)
  23866. - # KAI C++ Compiler
  23867. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  23868. - lt_prog_compiler_pic_CXX='-fPIC'
  23869. - ;;
  23870. - icpc* | ecpc*)
  23871. - # Intel C++
  23872. - lt_prog_compiler_wl_CXX='-Wl,'
  23873. - lt_prog_compiler_pic_CXX='-KPIC'
  23874. - lt_prog_compiler_static_CXX='-static'
  23875. - ;;
  23876. - pgCC*)
  23877. - # Portland Group C++ compiler.
  23878. - lt_prog_compiler_wl_CXX='-Wl,'
  23879. - lt_prog_compiler_pic_CXX='-fpic'
  23880. - lt_prog_compiler_static_CXX='-Bstatic'
  23881. - ;;
  23882. - cxx*)
  23883. - # Compaq C++
  23884. - # Make sure the PIC flag is empty. It appears that all Alpha
  23885. - # Linux and Compaq Tru64 Unix objects are PIC.
  23886. - lt_prog_compiler_pic_CXX=
  23887. - lt_prog_compiler_static_CXX='-non_shared'
  23888. - ;;
  23889. - *)
  23890. - case `$CC -V 2>&1 | sed 5q` in
  23891. - *Sun\ C*)
  23892. - # Sun C++ 5.9
  23893. - lt_prog_compiler_pic_CXX='-KPIC'
  23894. - lt_prog_compiler_static_CXX='-Bstatic'
  23895. - lt_prog_compiler_wl_CXX='-Qoption ld '
  23896. - ;;
  23897. - esac
  23898. - ;;
  23899. - esac
  23900. - ;;
  23901. - lynxos*)
  23902. - ;;
  23903. - m88k*)
  23904. - ;;
  23905. - mvs*)
  23906. - case $cc_basename in
  23907. - cxx*)
  23908. - lt_prog_compiler_pic_CXX='-W c,exportall'
  23909. - ;;
  23910. - *)
  23911. - ;;
  23912. - esac
  23913. - ;;
  23914. - netbsd*)
  23915. - ;;
  23916. - osf3* | osf4* | osf5*)
  23917. - case $cc_basename in
  23918. - KCC*)
  23919. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  23920. - ;;
  23921. - RCC*)
  23922. - # Rational C++ 2.4.1
  23923. - lt_prog_compiler_pic_CXX='-pic'
  23924. - ;;
  23925. - cxx*)
  23926. - # Digital/Compaq C++
  23927. - lt_prog_compiler_wl_CXX='-Wl,'
  23928. - # Make sure the PIC flag is empty. It appears that all Alpha
  23929. - # Linux and Compaq Tru64 Unix objects are PIC.
  23930. - lt_prog_compiler_pic_CXX=
  23931. - lt_prog_compiler_static_CXX='-non_shared'
  23932. - ;;
  23933. - *)
  23934. - ;;
  23935. - esac
  23936. - ;;
  23937. - psos*)
  23938. - ;;
  23939. - solaris*)
  23940. - case $cc_basename in
  23941. - CC*)
  23942. - # Sun C++ 4.2, 5.x and Centerline C++
  23943. - lt_prog_compiler_pic_CXX='-KPIC'
  23944. - lt_prog_compiler_static_CXX='-Bstatic'
  23945. - lt_prog_compiler_wl_CXX='-Qoption ld '
  23946. - ;;
  23947. - gcx*)
  23948. - # Green Hills C++ Compiler
  23949. - lt_prog_compiler_pic_CXX='-PIC'
  23950. - ;;
  23951. - *)
  23952. - ;;
  23953. - esac
  23954. - ;;
  23955. - sunos4*)
  23956. - case $cc_basename in
  23957. - CC*)
  23958. - # Sun C++ 4.x
  23959. - lt_prog_compiler_pic_CXX='-pic'
  23960. - lt_prog_compiler_static_CXX='-Bstatic'
  23961. - ;;
  23962. - lcc*)
  23963. - # Lucid
  23964. - lt_prog_compiler_pic_CXX='-pic'
  23965. - ;;
  23966. - *)
  23967. - ;;
  23968. - esac
  23969. - ;;
  23970. - tandem*)
  23971. - case $cc_basename in
  23972. - NCC*)
  23973. - # NonStop-UX NCC 3.20
  23974. - lt_prog_compiler_pic_CXX='-KPIC'
  23975. - ;;
  23976. - *)
  23977. - ;;
  23978. - esac
  23979. - ;;
  23980. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  23981. - case $cc_basename in
  23982. - CC*)
  23983. - lt_prog_compiler_wl_CXX='-Wl,'
  23984. - lt_prog_compiler_pic_CXX='-KPIC'
  23985. - lt_prog_compiler_static_CXX='-Bstatic'
  23986. - ;;
  23987. - esac
  23988. - ;;
  23989. - vxworks*)
  23990. - ;;
  23991. - *)
  23992. - lt_prog_compiler_can_build_shared_CXX=no
  23993. - ;;
  23994. - esac
  23995. - fi
  23996. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  23997. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  23998. -#
  23999. -# Check to make sure the PIC flag actually works.
  24000. -#
  24001. -if test -n "$lt_prog_compiler_pic_CXX"; then
  24002. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  24003. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  24004. -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  24005. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24006. -else
  24007. - lt_prog_compiler_pic_works_CXX=no
  24008. - ac_outfile=conftest.$ac_objext
  24009. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24010. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  24011. - # Insert the option either (1) after the last *FLAGS variable, or
  24012. - # (2) before a word containing "conftest.", or (3) at the end.
  24013. - # Note that $ac_compile itself does not contain backslashes and begins
  24014. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  24015. - # The option is referenced via a variable to avoid confusing sed.
  24016. - lt_compile=`echo "$ac_compile" | $SED \
  24017. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24018. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24019. - -e 's:$: $lt_compiler_flag:'`
  24020. - (eval echo "\"\$as_me:12416: $lt_compile\"" >&5)
  24021. - (eval "$lt_compile" 2>conftest.err)
  24022. - ac_status=$?
  24023. - cat conftest.err >&5
  24024. - echo "$as_me:12420: \$? = $ac_status" >&5
  24025. - if (exit $ac_status) && test -s "$ac_outfile"; then
  24026. - # The compiler can only warn and ignore the option if not recognized
  24027. - # So say no if there are warnings other than the usual output.
  24028. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  24029. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24030. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  24031. - lt_prog_compiler_pic_works_CXX=yes
  24032. - fi
  24033. - fi
  24034. - $rm conftest*
  24035. -fi
  24036. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  24037. -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  24038. -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  24039. - case $lt_prog_compiler_pic_CXX in
  24040. - "" | " "*) ;;
  24041. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  24042. - esac
  24043. -else
  24044. - lt_prog_compiler_pic_CXX=
  24045. - lt_prog_compiler_can_build_shared_CXX=no
  24046. -fi
  24047. -fi
  24048. -case $host_os in
  24049. - # For platforms which do not support PIC, -DPIC is meaningless:
  24050. - *djgpp*)
  24051. - lt_prog_compiler_pic_CXX=
  24052. - ;;
  24053. - *)
  24054. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  24055. - ;;
  24056. -esac
  24057. -#
  24058. -# Check to make sure the static flag actually works.
  24059. -#
  24060. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  24061. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  24062. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  24063. -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  24064. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24065. -else
  24066. - lt_prog_compiler_static_works_CXX=no
  24067. - save_LDFLAGS="$LDFLAGS"
  24068. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  24069. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  24070. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  24071. - # The linker can only warn and ignore the option if not recognized
  24072. - # So say no if there are warnings
  24073. - if test -s conftest.err; then
  24074. - # Append any errors to the config.log.
  24075. - cat conftest.err 1>&5
  24076. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  24077. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  24078. - if diff conftest.exp conftest.er2 >/dev/null; then
  24079. - lt_prog_compiler_static_works_CXX=yes
  24080. - fi
  24081. - else
  24082. - lt_prog_compiler_static_works_CXX=yes
  24083. - fi
  24084. - fi
  24085. - $rm conftest*
  24086. - LDFLAGS="$save_LDFLAGS"
  24087. -fi
  24088. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  24089. -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  24090. -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  24091. - :
  24092. -else
  24093. - lt_prog_compiler_static_CXX=
  24094. -fi
  24095. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  24096. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  24097. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  24098. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24099. -else
  24100. - lt_cv_prog_compiler_c_o_CXX=no
  24101. - $rm -r conftest 2>/dev/null
  24102. - mkdir conftest
  24103. - cd conftest
  24104. - mkdir out
  24105. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24106. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  24107. - # Insert the option either (1) after the last *FLAGS variable, or
  24108. - # (2) before a word containing "conftest.", or (3) at the end.
  24109. - # Note that $ac_compile itself does not contain backslashes and begins
  24110. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  24111. - lt_compile=`echo "$ac_compile" | $SED \
  24112. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24113. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24114. - -e 's:$: $lt_compiler_flag:'`
  24115. - (eval echo "\"\$as_me:12520: $lt_compile\"" >&5)
  24116. - (eval "$lt_compile" 2>out/conftest.err)
  24117. - ac_status=$?
  24118. - cat out/conftest.err >&5
  24119. - echo "$as_me:12524: \$? = $ac_status" >&5
  24120. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  24121. - then
  24122. - # The compiler can only warn and ignore the option if not recognized
  24123. - # So say no if there are warnings
  24124. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  24125. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  24126. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  24127. - lt_cv_prog_compiler_c_o_CXX=yes
  24128. - fi
  24129. - fi
  24130. - chmod u+w . 2>&5
  24131. - $rm conftest*
  24132. - # SGI C++ compiler will create directory out/ii_files/ for
  24133. - # template instantiation
  24134. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  24135. - $rm out/* && rmdir out
  24136. - cd ..
  24137. - rmdir conftest
  24138. - $rm conftest*
  24139. -fi
  24140. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  24141. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  24142. -hard_links="nottested"
  24143. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  24144. - # do not overwrite the value of need_locks provided by the user
  24145. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  24146. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  24147. - hard_links=yes
  24148. - $rm conftest*
  24149. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24150. - touch conftest.a
  24151. - ln conftest.a conftest.b 2>&5 || hard_links=no
  24152. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24153. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  24154. -echo "${ECHO_T}$hard_links" >&6; }
  24155. - if test "$hard_links" = no; then
  24156. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  24157. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  24158. - need_locks=warn
  24159. - fi
  24160. -else
  24161. - need_locks=no
  24162. -fi
  24163. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  24164. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  24165. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  24166. - case $host_os in
  24167. - aix4* | aix5*)
  24168. - # If we're using GNU nm, then we don't want the "-C" option.
  24169. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  24170. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  24171. - 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'
  24172. - else
  24173. - 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'
  24174. - fi
  24175. - ;;
  24176. - pw32*)
  24177. - export_symbols_cmds_CXX="$ltdll_cmds"
  24178. - ;;
  24179. - cygwin* | mingw*)
  24180. - export_symbols_cmds_CXX='$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'
  24181. - ;;
  24182. - *)
  24183. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  24184. - ;;
  24185. - esac
  24186. -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  24187. -echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  24188. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  24189. -#
  24190. -# Do we need to explicitly link libc?
  24191. -#
  24192. -case "x$archive_cmds_need_lc_CXX" in
  24193. -x|xyes)
  24194. - # Assume -lc should be added
  24195. - archive_cmds_need_lc_CXX=yes
  24196. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  24197. - case $archive_cmds_CXX in
  24198. - *'~'*)
  24199. - # FIXME: we may have to deal with multi-command sequences.
  24200. - ;;
  24201. - '$CC '*)
  24202. - # Test whether the compiler implicitly links with -lc since on some
  24203. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  24204. - # to ld, don't add -lc before -lgcc.
  24205. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  24206. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  24207. - $rm conftest*
  24208. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  24209. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24210. - (eval $ac_compile) 2>&5
  24211. - ac_status=$?
  24212. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24213. - (exit $ac_status); } 2>conftest.err; then
  24214. - soname=conftest
  24215. - lib=conftest
  24216. - libobjs=conftest.$ac_objext
  24217. - deplibs=
  24218. - wl=$lt_prog_compiler_wl_CXX
  24219. - pic_flag=$lt_prog_compiler_pic_CXX
  24220. - compiler_flags=-v
  24221. - linker_flags=-v
  24222. - verstring=
  24223. - output_objdir=.
  24224. - libname=conftest
  24225. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  24226. - allow_undefined_flag_CXX=
  24227. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  24228. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  24229. - ac_status=$?
  24230. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24231. - (exit $ac_status); }
  24232. - then
  24233. - archive_cmds_need_lc_CXX=no
  24234. - else
  24235. - archive_cmds_need_lc_CXX=yes
  24236. - fi
  24237. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  24238. - else
  24239. - cat conftest.err 1>&5
  24240. - fi
  24241. - $rm conftest*
  24242. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  24243. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  24244. - ;;
  24245. - esac
  24246. - fi
  24247. - ;;
  24248. -esac
  24249. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  24250. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  24251. +
  24252. +
  24253. +
  24254. +
  24255. +
  24256. +
  24257. +
  24258. +
  24259. +
  24260. +
  24261. +
  24262. +
  24263. +
  24264. +
  24265. +
  24266. +
  24267. +
  24268. +
  24269. +
  24270. +
  24271. +
  24272. +
  24273. +
  24274. +
  24275. +
  24276. +
  24277. +
  24278. +
  24279. +
  24280. +
  24281. +
  24282. +
  24283. +
  24284. +
  24285. +
  24286. +
  24287. +
  24288. +
  24289. +
  24290. +
  24291. +
  24292. +
  24293. +
  24294. +
  24295. +
  24296. +
  24297. +
  24298. +
  24299. +
  24300. +
  24301. +
  24302. +
  24303. +
  24304. +
  24305. +
  24306. +
  24307. +
  24308. +
  24309. +
  24310. +
  24311. +
  24312. +
  24313. +
  24314. +
  24315. +
  24316. +
  24317. +
  24318. +
  24319. +
  24320. +
  24321. +
  24322. +
  24323. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  24324. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  24325. +
  24326. +if test "$GCC" = yes; then
  24327. + case $host_os in
  24328. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  24329. + *) lt_awk_arg="/^libraries:/" ;;
  24330. + esac
  24331. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  24332. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  24333. + # if the path contains ";" then we assume it to be the separator
  24334. + # otherwise default to the standard path separator (i.e. ":") - it is
  24335. + # assumed that no part of a normal pathname contains ";" but that should
  24336. + # okay in the real world where ";" in dirpaths is itself problematic.
  24337. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  24338. + else
  24339. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  24340. + fi
  24341. + # Ok, now we have the path, separated by spaces, we can step through it
  24342. + # and add multilib dir if necessary.
  24343. + lt_tmp_lt_search_path_spec=
  24344. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  24345. + for lt_sys_path in $lt_search_path_spec; do
  24346. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  24347. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  24348. + else
  24349. + test -d "$lt_sys_path" && \
  24350. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  24351. + fi
  24352. + done
  24353. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  24354. +BEGIN {RS=" "; FS="/|\n";} {
  24355. + lt_foo="";
  24356. + lt_count=0;
  24357. + for (lt_i = NF; lt_i > 0; lt_i--) {
  24358. + if ($lt_i != "" && $lt_i != ".") {
  24359. + if ($lt_i == "..") {
  24360. + lt_count++;
  24361. + } else {
  24362. + if (lt_count == 0) {
  24363. + lt_foo="/" $lt_i lt_foo;
  24364. + } else {
  24365. + lt_count--;
  24366. + }
  24367. + }
  24368. + }
  24369. + }
  24370. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  24371. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  24372. +}'`
  24373. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  24374. +else
  24375. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  24376. +fi
  24377. library_names_spec=
  24378. libname_spec='lib$name'
  24379. soname_spec=
  24380. @@ -12676,7 +9314,6 @@
  24381. version_type=none
  24382. dynamic_linker="$host_os ld.so"
  24383. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  24384. -
  24385. need_lib_prefix=unknown
  24386. hardcode_into_libs=no
  24387. @@ -12694,7 +9331,7 @@
  24388. soname_spec='${libname}${release}${shared_ext}$major'
  24389. ;;
  24390. -aix4* | aix5*)
  24391. +aix[4-9]*)
  24392. version_type=linux
  24393. need_lib_prefix=no
  24394. need_version=no
  24395. @@ -12713,7 +9350,7 @@
  24396. aix4 | aix4.[01] | aix4.[01].*)
  24397. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  24398. echo ' yes '
  24399. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  24400. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  24401. :
  24402. else
  24403. can_build_shared=no
  24404. @@ -12739,9 +9376,18 @@
  24405. ;;
  24406. amigaos*)
  24407. - library_names_spec='$libname.ixlibrary $libname.a'
  24408. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  24409. - 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'
  24410. + case $host_cpu in
  24411. + powerpc)
  24412. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  24413. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  24414. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24415. + ;;
  24416. + m68k)
  24417. + library_names_spec='$libname.ixlibrary $libname.a'
  24418. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  24419. + 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'
  24420. + ;;
  24421. + esac
  24422. ;;
  24423. beos*)
  24424. @@ -12764,25 +9410,28 @@
  24425. # libtool to hard-code these into programs
  24426. ;;
  24427. -cygwin* | mingw* | pw32*)
  24428. +cygwin* | mingw* | pw32* | cegcc*)
  24429. version_type=windows
  24430. shrext_cmds=".dll"
  24431. need_version=no
  24432. need_lib_prefix=no
  24433. case $GCC,$host_os in
  24434. - yes,cygwin* | yes,mingw* | yes,pw32*)
  24435. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  24436. library_names_spec='$libname.dll.a'
  24437. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  24438. postinstall_cmds='base_file=`basename \${file}`~
  24439. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  24440. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  24441. dldir=$destdir/`dirname \$dlpath`~
  24442. test -d \$dldir || mkdir -p \$dldir~
  24443. $install_prog $dir/$dlname \$dldir/$dlname~
  24444. - chmod a+x \$dldir/$dlname'
  24445. + chmod a+x \$dldir/$dlname~
  24446. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  24447. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  24448. + fi'
  24449. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  24450. dlpath=$dir/\$dldll~
  24451. - $rm \$dlpath'
  24452. + $RM \$dlpath'
  24453. shlibpath_overrides_runpath=yes
  24454. case $host_os in
  24455. @@ -12791,20 +9440,20 @@
  24456. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  24457. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  24458. ;;
  24459. - mingw*)
  24460. + mingw* | cegcc*)
  24461. # MinGW DLLs use traditional 'lib' prefix
  24462. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  24463. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  24464. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  24465. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  24466. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  24467. # It is most probably a Windows format PATH printed by
  24468. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  24469. # path with ; separators, and with drive letters. We can handle the
  24470. # drive letters (cygwin fileutils understands them), so leave them,
  24471. # especially as we might pass files found there to a mingw objdump,
  24472. # which wouldn't understand a cygwinified path. Ahh.
  24473. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  24474. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  24475. else
  24476. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  24477. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  24478. fi
  24479. ;;
  24480. pw32*)
  24481. @@ -12828,12 +9477,13 @@
  24482. version_type=darwin
  24483. need_lib_prefix=no
  24484. need_version=no
  24485. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  24486. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  24487. soname_spec='${libname}${release}${major}$shared_ext'
  24488. shlibpath_overrides_runpath=yes
  24489. shlibpath_var=DYLD_LIBRARY_PATH
  24490. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  24491. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  24492. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  24493. ;;
  24494. @@ -12926,18 +9576,18 @@
  24495. fi
  24496. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  24497. ;;
  24498. - hppa*64*)
  24499. - shrext_cmds='.sl'
  24500. - hardcode_into_libs=yes
  24501. - dynamic_linker="$host_os dld.sl"
  24502. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  24503. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  24504. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24505. - soname_spec='${libname}${release}${shared_ext}$major'
  24506. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  24507. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  24508. - ;;
  24509. - *)
  24510. + hppa*64*)
  24511. + shrext_cmds='.sl'
  24512. + hardcode_into_libs=yes
  24513. + dynamic_linker="$host_os dld.sl"
  24514. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  24515. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  24516. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24517. + soname_spec='${libname}${release}${shared_ext}$major'
  24518. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  24519. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  24520. + ;;
  24521. + *)
  24522. shrext_cmds='.sl'
  24523. dynamic_linker="$host_os dld.sl"
  24524. shlibpath_var=SHLIB_PATH
  24525. @@ -13005,7 +9655,7 @@
  24526. ;;
  24527. # This must be Linux ELF.
  24528. -linux* | k*bsd*-gnu)
  24529. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  24530. version_type=linux
  24531. need_lib_prefix=no
  24532. need_version=no
  24533. @@ -13014,17 +9664,41 @@
  24534. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  24535. shlibpath_var=LD_LIBRARY_PATH
  24536. shlibpath_overrides_runpath=no
  24537. + # Some binutils ld are patched to set DT_RUNPATH
  24538. + save_LDFLAGS=$LDFLAGS
  24539. + save_libdir=$libdir
  24540. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  24541. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  24542. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24543. +/* end confdefs.h. */
  24544. +
  24545. +int
  24546. +main ()
  24547. +{
  24548. +
  24549. + ;
  24550. + return 0;
  24551. +}
  24552. +_ACEOF
  24553. +if ac_fn_c_try_link "$LINENO"; then :
  24554. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  24555. + shlibpath_overrides_runpath=yes
  24556. +fi
  24557. +fi
  24558. +rm -f core conftest.err conftest.$ac_objext \
  24559. + conftest$ac_exeext conftest.$ac_ext
  24560. + LDFLAGS=$save_LDFLAGS
  24561. + libdir=$save_libdir
  24562. +
  24563. # This implies no fast_install, which is unacceptable.
  24564. # Some rework will be needed to allow for fast_install
  24565. # before this can be enabled.
  24566. hardcode_into_libs=yes
  24567. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  24568. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  24569. # Append ld.so.conf contents to the search path
  24570. if test -f /etc/ld.so.conf; then
  24571. - 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' ' '`
  24572. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  24573. + 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' ' '`
  24574. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  24575. fi
  24576. # We used to test for /lib/ld.so.1 and disable shared libraries on
  24577. @@ -13036,11 +9710,23 @@
  24578. dynamic_linker='GNU/Linux ld.so'
  24579. ;;
  24580. +netbsdelf*-gnu)
  24581. + version_type=linux
  24582. + need_lib_prefix=no
  24583. + need_version=no
  24584. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  24585. + soname_spec='${libname}${release}${shared_ext}$major'
  24586. + shlibpath_var=LD_LIBRARY_PATH
  24587. + shlibpath_overrides_runpath=no
  24588. + hardcode_into_libs=yes
  24589. + dynamic_linker='NetBSD ld.elf_so'
  24590. + ;;
  24591. +
  24592. netbsd*)
  24593. version_type=sunos
  24594. need_lib_prefix=no
  24595. need_version=no
  24596. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  24597. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  24598. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  24599. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  24600. dynamic_linker='NetBSD (a.out) ld.so'
  24601. @@ -13061,14 +9747,16 @@
  24602. shlibpath_overrides_runpath=yes
  24603. ;;
  24604. -nto-qnx*)
  24605. - version_type=linux
  24606. +*nto* | *qnx*)
  24607. + version_type=qnx
  24608. need_lib_prefix=no
  24609. need_version=no
  24610. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24611. soname_spec='${libname}${release}${shared_ext}$major'
  24612. shlibpath_var=LD_LIBRARY_PATH
  24613. - shlibpath_overrides_runpath=yes
  24614. + shlibpath_overrides_runpath=no
  24615. + hardcode_into_libs=yes
  24616. + dynamic_linker='ldqnx.so'
  24617. ;;
  24618. openbsd*)
  24619. @@ -13077,13 +9765,13 @@
  24620. need_lib_prefix=no
  24621. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  24622. case $host_os in
  24623. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  24624. - *) need_version=no ;;
  24625. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  24626. + *) need_version=no ;;
  24627. esac
  24628. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  24629. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  24630. shlibpath_var=LD_LIBRARY_PATH
  24631. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  24632. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  24633. case $host_os in
  24634. openbsd2.[89] | openbsd2.[89].*)
  24635. shlibpath_overrides_runpath=no
  24636. @@ -13155,7 +9843,6 @@
  24637. sni)
  24638. shlibpath_overrides_runpath=no
  24639. need_lib_prefix=no
  24640. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  24641. runpath_var=LD_RUN_PATH
  24642. ;;
  24643. siemens)
  24644. @@ -13186,13 +9873,12 @@
  24645. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  24646. soname_spec='${libname}${release}${shared_ext}$major'
  24647. shlibpath_var=LD_LIBRARY_PATH
  24648. + shlibpath_overrides_runpath=yes
  24649. hardcode_into_libs=yes
  24650. if test "$with_gnu_ld" = yes; then
  24651. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  24652. - shlibpath_overrides_runpath=no
  24653. else
  24654. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  24655. - shlibpath_overrides_runpath=yes
  24656. case $host_os in
  24657. sco3.2v5*)
  24658. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  24659. @@ -13202,6 +9888,17 @@
  24660. sys_lib_dlsearch_path_spec='/usr/lib'
  24661. ;;
  24662. +tpf*)
  24663. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  24664. + version_type=linux
  24665. + need_lib_prefix=no
  24666. + need_version=no
  24667. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24668. + shlibpath_var=LD_LIBRARY_PATH
  24669. + shlibpath_overrides_runpath=no
  24670. + hardcode_into_libs=yes
  24671. + ;;
  24672. +
  24673. uts4*)
  24674. version_type=linux
  24675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24676. @@ -13213,8 +9910,8 @@
  24677. dynamic_linker=no
  24678. ;;
  24679. esac
  24680. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  24681. -echo "${ECHO_T}$dynamic_linker" >&6; }
  24682. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  24683. +$as_echo "$dynamic_linker" >&6; }
  24684. test "$dynamic_linker" = no && can_build_shared=no
  24685. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  24686. @@ -13222,8554 +9919,1446 @@
  24687. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  24688. fi
  24689. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  24690. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  24691. -hardcode_action_CXX=
  24692. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  24693. - test -n "$runpath_var_CXX" || \
  24694. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  24695. -
  24696. - # We can hardcode non-existant directories.
  24697. - if test "$hardcode_direct_CXX" != no &&
  24698. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  24699. - # have to relink, otherwise we might link with an installed library
  24700. - # when we should be linking with a yet-to-be-installed one
  24701. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  24702. - test "$hardcode_minus_L_CXX" != no; then
  24703. - # Linking always hardcodes the temporary library directory.
  24704. - hardcode_action_CXX=relink
  24705. - else
  24706. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  24707. - hardcode_action_CXX=immediate
  24708. - fi
  24709. -else
  24710. - # We cannot hardcode anything, or else we can only hardcode existing
  24711. - # directories.
  24712. - hardcode_action_CXX=unsupported
  24713. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  24714. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  24715. fi
  24716. -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  24717. -echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  24718. -
  24719. -if test "$hardcode_action_CXX" = relink; then
  24720. - # Fast installation is not supported
  24721. - enable_fast_install=no
  24722. -elif test "$shlibpath_overrides_runpath" = yes ||
  24723. - test "$enable_shared" = no; then
  24724. - # Fast installation is not necessary
  24725. - enable_fast_install=needless
  24726. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  24727. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  24728. fi
  24729. -# The else clause should only fire when bootstrapping the
  24730. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  24731. -# with your package, and you will get complaints that there are
  24732. -# no rules to generate ltmain.sh.
  24733. -if test -f "$ltmain"; then
  24734. - # See if we are running on zsh, and set the options which allow our commands through
  24735. - # without removal of \ escapes.
  24736. - if test -n "${ZSH_VERSION+set}" ; then
  24737. - setopt NO_GLOB_SUBST
  24738. - fi
  24739. - # Now quote all the things that may contain metacharacters while being
  24740. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  24741. - # variables and quote the copies for generation of the libtool script.
  24742. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  24743. - SED SHELL STRIP \
  24744. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  24745. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  24746. - deplibs_check_method reload_flag reload_cmds need_locks \
  24747. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  24748. - lt_cv_sys_global_symbol_to_c_name_address \
  24749. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  24750. - old_postinstall_cmds old_postuninstall_cmds \
  24751. - compiler_CXX \
  24752. - CC_CXX \
  24753. - LD_CXX \
  24754. - lt_prog_compiler_wl_CXX \
  24755. - lt_prog_compiler_pic_CXX \
  24756. - lt_prog_compiler_static_CXX \
  24757. - lt_prog_compiler_no_builtin_flag_CXX \
  24758. - export_dynamic_flag_spec_CXX \
  24759. - thread_safe_flag_spec_CXX \
  24760. - whole_archive_flag_spec_CXX \
  24761. - enable_shared_with_static_runtimes_CXX \
  24762. - old_archive_cmds_CXX \
  24763. - old_archive_from_new_cmds_CXX \
  24764. - predep_objects_CXX \
  24765. - postdep_objects_CXX \
  24766. - predeps_CXX \
  24767. - postdeps_CXX \
  24768. - compiler_lib_search_path_CXX \
  24769. - archive_cmds_CXX \
  24770. - archive_expsym_cmds_CXX \
  24771. - postinstall_cmds_CXX \
  24772. - postuninstall_cmds_CXX \
  24773. - old_archive_from_expsyms_cmds_CXX \
  24774. - allow_undefined_flag_CXX \
  24775. - no_undefined_flag_CXX \
  24776. - export_symbols_cmds_CXX \
  24777. - hardcode_libdir_flag_spec_CXX \
  24778. - hardcode_libdir_flag_spec_ld_CXX \
  24779. - hardcode_libdir_separator_CXX \
  24780. - hardcode_automatic_CXX \
  24781. - module_cmds_CXX \
  24782. - module_expsym_cmds_CXX \
  24783. - lt_cv_prog_compiler_c_o_CXX \
  24784. - fix_srcfile_path_CXX \
  24785. - exclude_expsyms_CXX \
  24786. - include_expsyms_CXX; do
  24787. -
  24788. - case $var in
  24789. - old_archive_cmds_CXX | \
  24790. - old_archive_from_new_cmds_CXX | \
  24791. - archive_cmds_CXX | \
  24792. - archive_expsym_cmds_CXX | \
  24793. - module_cmds_CXX | \
  24794. - module_expsym_cmds_CXX | \
  24795. - old_archive_from_expsyms_cmds_CXX | \
  24796. - export_symbols_cmds_CXX | \
  24797. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  24798. - postinstall_cmds | postuninstall_cmds | \
  24799. - old_postinstall_cmds | old_postuninstall_cmds | \
  24800. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  24801. - # Double-quote double-evaled strings.
  24802. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  24803. - ;;
  24804. - *)
  24805. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  24806. - ;;
  24807. - esac
  24808. - done
  24809. - case $lt_echo in
  24810. - *'\$0 --fallback-echo"')
  24811. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  24812. - ;;
  24813. - esac
  24814. -cfgfile="$ofile"
  24815. - cat <<__EOF__ >> "$cfgfile"
  24816. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  24817. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24818. -# Shell to use when invoking shell scripts.
  24819. -SHELL=$lt_SHELL
  24820. -# Whether or not to build shared libraries.
  24821. -build_libtool_libs=$enable_shared
  24822. -# Whether or not to build static libraries.
  24823. -build_old_libs=$enable_static
  24824. -# Whether or not to add -lc for building shared libraries.
  24825. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24826. -# Whether or not to disallow shared libs when runtime libs are static
  24827. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24828. -# Whether or not to optimize for fast installation.
  24829. -fast_install=$enable_fast_install
  24830. -# The host system.
  24831. -host_alias=$host_alias
  24832. -host=$host
  24833. -host_os=$host_os
  24834. -
  24835. -# The build system.
  24836. -build_alias=$build_alias
  24837. -build=$build
  24838. -build_os=$build_os
  24839. -
  24840. -# An echo program that does not interpret backslashes.
  24841. -echo=$lt_echo
  24842. -# The archiver.
  24843. -AR=$lt_AR
  24844. -AR_FLAGS=$lt_AR_FLAGS
  24845. -
  24846. -# A C compiler.
  24847. -LTCC=$lt_LTCC
  24848. -# LTCC compiler flags.
  24849. -LTCFLAGS=$lt_LTCFLAGS
  24850. -# A language-specific compiler.
  24851. -CC=$lt_compiler_CXX
  24852. -# Is the compiler the GNU C compiler?
  24853. -with_gcc=$GCC_CXX
  24854. -# An ERE matcher.
  24855. -EGREP=$lt_EGREP
  24856. -# The linker used to build libraries.
  24857. -LD=$lt_LD_CXX
  24858. -# Whether we need hard or soft links.
  24859. -LN_S=$lt_LN_S
  24860. -# A BSD-compatible nm program.
  24861. -NM=$lt_NM
  24862. -# A symbol stripping program
  24863. -STRIP=$lt_STRIP
  24864. -# Used to examine libraries when file_magic_cmd begins "file"
  24865. -MAGIC_CMD=$MAGIC_CMD
  24866. -# Used on cygwin: DLL creation program.
  24867. -DLLTOOL="$DLLTOOL"
  24868. -# Used on cygwin: object dumper.
  24869. -OBJDUMP="$OBJDUMP"
  24870. -# Used on cygwin: assembler.
  24871. -AS="$AS"
  24872. -# The name of the directory that contains temporary libtool files.
  24873. -objdir=$objdir
  24874. -# How to create reloadable object files.
  24875. -reload_flag=$lt_reload_flag
  24876. -reload_cmds=$lt_reload_cmds
  24877. -# How to pass a linker flag through the compiler.
  24878. -wl=$lt_lt_prog_compiler_wl_CXX
  24879. -# Object file suffix (normally "o").
  24880. -objext="$ac_objext"
  24881. -# Old archive suffix (normally "a").
  24882. -libext="$libext"
  24883. -# Shared library suffix (normally ".so").
  24884. -shrext_cmds='$shrext_cmds'
  24885. -# Executable file suffix (normally "").
  24886. -exeext="$exeext"
  24887. -# Additional compiler flags for building library objects.
  24888. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  24889. -pic_mode=$pic_mode
  24890. -# What is the maximum length of a command?
  24891. -max_cmd_len=$lt_cv_sys_max_cmd_len
  24892. -# Does compiler simultaneously support -c and -o options?
  24893. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24894. -# Must we lock files when doing compilation?
  24895. -need_locks=$lt_need_locks
  24896. -# Do we need the lib prefix for modules?
  24897. -need_lib_prefix=$need_lib_prefix
  24898. -# Do we need a version for libraries?
  24899. -need_version=$need_version
  24900. -# Whether dlopen is supported.
  24901. -dlopen_support=$enable_dlopen
  24902. -# Whether dlopen of programs is supported.
  24903. -dlopen_self=$enable_dlopen_self
  24904. -# Whether dlopen of statically linked programs is supported.
  24905. -dlopen_self_static=$enable_dlopen_self_static
  24906. -# Compiler flag to prevent dynamic linking.
  24907. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  24908. -# Compiler flag to turn off builtin functions.
  24909. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24910. -# Compiler flag to allow reflexive dlopens.
  24911. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24912. -# Compiler flag to generate shared objects directly from archives.
  24913. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24914. -# Compiler flag to generate thread-safe objects.
  24915. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  24916. -# Library versioning type.
  24917. -version_type=$version_type
  24918. -# Format of library name prefix.
  24919. -libname_spec=$lt_libname_spec
  24920. -# List of archive names. First name is the real one, the rest are links.
  24921. -# The last name is the one that the linker finds with -lNAME.
  24922. -library_names_spec=$lt_library_names_spec
  24923. -# The coded name of the library, if different from the real name.
  24924. -soname_spec=$lt_soname_spec
  24925. -# Commands used to build and install an old-style archive.
  24926. -RANLIB=$lt_RANLIB
  24927. -old_archive_cmds=$lt_old_archive_cmds_CXX
  24928. -old_postinstall_cmds=$lt_old_postinstall_cmds
  24929. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24930. -# Create an old-style archive from a shared archive.
  24931. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24932. -# Create a temporary old-style archive to link instead of a shared archive.
  24933. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24934. -# Commands used to build and install a shared archive.
  24935. -archive_cmds=$lt_archive_cmds_CXX
  24936. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24937. -postinstall_cmds=$lt_postinstall_cmds
  24938. -postuninstall_cmds=$lt_postuninstall_cmds
  24939. -# Commands used to build a loadable module (assumed same as above if empty)
  24940. -module_cmds=$lt_module_cmds_CXX
  24941. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24942. -# Commands to strip libraries.
  24943. -old_striplib=$lt_old_striplib
  24944. -striplib=$lt_striplib
  24945. -# Dependencies to place before the objects being linked to create a
  24946. -# shared library.
  24947. -predep_objects=$lt_predep_objects_CXX
  24948. -
  24949. -# Dependencies to place after the objects being linked to create a
  24950. -# shared library.
  24951. -postdep_objects=$lt_postdep_objects_CXX
  24952. -
  24953. -# Dependencies to place before the objects being linked to create a
  24954. -# shared library.
  24955. -predeps=$lt_predeps_CXX
  24956. -
  24957. -# Dependencies to place after the objects being linked to create a
  24958. -# shared library.
  24959. -postdeps=$lt_postdeps_CXX
  24960. -
  24961. -# The library search path used internally by the compiler when linking
  24962. -# a shared library.
  24963. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24964. -# Method to check whether dependent libraries are shared objects.
  24965. -deplibs_check_method=$lt_deplibs_check_method
  24966. -# Command to use when deplibs_check_method == file_magic.
  24967. -file_magic_cmd=$lt_file_magic_cmd
  24968. -# Flag that allows shared libraries with undefined symbols to be built.
  24969. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24970. -# Flag that forces no undefined symbols.
  24971. -no_undefined_flag=$lt_no_undefined_flag_CXX
  24972. -# Commands used to finish a libtool library installation in a directory.
  24973. -finish_cmds=$lt_finish_cmds
  24974. -# Same as above, but a single script fragment to be evaled but not shown.
  24975. -finish_eval=$lt_finish_eval
  24976. -# Take the output of nm and produce a listing of raw symbols and C names.
  24977. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24978. -# Transform the output of nm in a proper C declaration
  24979. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24980. -# Transform the output of nm in a C name address pair
  24981. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24982. -# This is the shared library runtime path variable.
  24983. -runpath_var=$runpath_var
  24984. -# This is the shared library path variable.
  24985. -shlibpath_var=$shlibpath_var
  24986. -# Is shlibpath searched before the hard-coded library search path?
  24987. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24988. -# How to hardcode a shared library path into an executable.
  24989. -hardcode_action=$hardcode_action_CXX
  24990. -# Whether we should hardcode library paths into libraries.
  24991. -hardcode_into_libs=$hardcode_into_libs
  24992. -# Flag to hardcode \$libdir into a binary during linking.
  24993. -# This must work even if \$libdir does not exist.
  24994. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24995. -# If ld is used when linking, flag to hardcode \$libdir into
  24996. -# a binary during linking. This must work even if \$libdir does
  24997. -# not exist.
  24998. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  24999. -
  25000. -# Whether we need a single -rpath flag with a separated argument.
  25001. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25002. -
  25003. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  25004. -# resulting binary.
  25005. -hardcode_direct=$hardcode_direct_CXX
  25006. -
  25007. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  25008. -# resulting binary.
  25009. -hardcode_minus_L=$hardcode_minus_L_CXX
  25010. -
  25011. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  25012. -# the resulting binary.
  25013. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25014. -
  25015. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  25016. -# and all subsequent libraries and executables linked against it.
  25017. -hardcode_automatic=$hardcode_automatic_CXX
  25018. -# Variables whose values should be saved in libtool wrapper scripts and
  25019. -# restored at relink time.
  25020. -variables_saved_for_relink="$variables_saved_for_relink"
  25021. -# Whether libtool must link a program against all its dependency libraries.
  25022. -link_all_deplibs=$link_all_deplibs_CXX
  25023. -# Compile-time system search path for libraries
  25024. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25025. -# Run-time system search path for libraries
  25026. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  25027. -# Fix the shell variable \$srcfile for the compiler.
  25028. -fix_srcfile_path=$lt_fix_srcfile_path
  25029. -# Set to yes if exported symbols are required.
  25030. -always_export_symbols=$always_export_symbols_CXX
  25031. -# The commands to list exported symbols.
  25032. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25033. -# The commands to extract the exported symbol list from a shared archive.
  25034. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25035. -# Symbols that should not be listed in the preloaded symbols.
  25036. -exclude_expsyms=$lt_exclude_expsyms_CXX
  25037. -# Symbols that must always be exported.
  25038. -include_expsyms=$lt_include_expsyms_CXX
  25039. -# ### END LIBTOOL TAG CONFIG: $tagname
  25040. -__EOF__
  25041. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  25042. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  25043. +hardcode_action=
  25044. +if test -n "$hardcode_libdir_flag_spec" ||
  25045. + test -n "$runpath_var" ||
  25046. + test "X$hardcode_automatic" = "Xyes" ; then
  25047. -else
  25048. - # If there is no Makefile yet, we rely on a make rule to execute
  25049. - # `config.status --recheck' to rerun these tests and create the
  25050. - # libtool script then.
  25051. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  25052. - if test -f "$ltmain_in"; then
  25053. - test -f Makefile && make "$ltmain"
  25054. + # We can hardcode non-existent directories.
  25055. + if test "$hardcode_direct" != no &&
  25056. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  25057. + # have to relink, otherwise we might link with an installed library
  25058. + # when we should be linking with a yet-to-be-installed one
  25059. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  25060. + test "$hardcode_minus_L" != no; then
  25061. + # Linking always hardcodes the temporary library directory.
  25062. + hardcode_action=relink
  25063. + else
  25064. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  25065. + hardcode_action=immediate
  25066. fi
  25067. +else
  25068. + # We cannot hardcode anything, or else we can only hardcode existing
  25069. + # directories.
  25070. + hardcode_action=unsupported
  25071. fi
  25072. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  25073. +$as_echo "$hardcode_action" >&6; }
  25074. +if test "$hardcode_action" = relink ||
  25075. + test "$inherit_rpath" = yes; then
  25076. + # Fast installation is not supported
  25077. + enable_fast_install=no
  25078. +elif test "$shlibpath_overrides_runpath" = yes ||
  25079. + test "$enable_shared" = no; then
  25080. + # Fast installation is not necessary
  25081. + enable_fast_install=needless
  25082. +fi
  25083. -ac_ext=c
  25084. -ac_cpp='$CPP $CPPFLAGS'
  25085. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25086. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25087. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25088. -
  25089. -CC=$lt_save_CC
  25090. -LDCXX=$LD
  25091. -LD=$lt_save_LD
  25092. -GCC=$lt_save_GCC
  25093. -with_gnu_ldcxx=$with_gnu_ld
  25094. -with_gnu_ld=$lt_save_with_gnu_ld
  25095. -lt_cv_path_LDCXX=$lt_cv_path_LD
  25096. -lt_cv_path_LD=$lt_save_path_LD
  25097. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  25098. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  25099. -
  25100. - else
  25101. - tagname=""
  25102. - fi
  25103. - ;;
  25104. -
  25105. - F77)
  25106. - if test -n "$F77" && test "X$F77" != "Xno"; then
  25107. -
  25108. -ac_ext=f
  25109. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  25110. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25111. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  25112. -
  25113. -
  25114. -archive_cmds_need_lc_F77=no
  25115. -allow_undefined_flag_F77=
  25116. -always_export_symbols_F77=no
  25117. -archive_expsym_cmds_F77=
  25118. -export_dynamic_flag_spec_F77=
  25119. -hardcode_direct_F77=no
  25120. -hardcode_libdir_flag_spec_F77=
  25121. -hardcode_libdir_flag_spec_ld_F77=
  25122. -hardcode_libdir_separator_F77=
  25123. -hardcode_minus_L_F77=no
  25124. -hardcode_automatic_F77=no
  25125. -module_cmds_F77=
  25126. -module_expsym_cmds_F77=
  25127. -link_all_deplibs_F77=unknown
  25128. -old_archive_cmds_F77=$old_archive_cmds
  25129. -no_undefined_flag_F77=
  25130. -whole_archive_flag_spec_F77=
  25131. -enable_shared_with_static_runtimes_F77=no
  25132. -
  25133. -# Source file extension for f77 test sources.
  25134. -ac_ext=f
  25135. -# Object file extension for compiled f77 test sources.
  25136. -objext=o
  25137. -objext_F77=$objext
  25138. -# Code to be used in simple compile tests
  25139. -lt_simple_compile_test_code="\
  25140. - subroutine t
  25141. - return
  25142. - end
  25143. -"
  25144. -# Code to be used in simple link tests
  25145. -lt_simple_link_test_code="\
  25146. - program t
  25147. - end
  25148. -"
  25149. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  25150. -# If no C compiler was specified, use CC.
  25151. -LTCC=${LTCC-"$CC"}
  25152. + if test "x$enable_dlopen" != xyes; then
  25153. + enable_dlopen=unknown
  25154. + enable_dlopen_self=unknown
  25155. + enable_dlopen_self_static=unknown
  25156. +else
  25157. + lt_cv_dlopen=no
  25158. + lt_cv_dlopen_libs=
  25159. -# If no C compiler flags were specified, use CFLAGS.
  25160. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  25161. + case $host_os in
  25162. + beos*)
  25163. + lt_cv_dlopen="load_add_on"
  25164. + lt_cv_dlopen_libs=
  25165. + lt_cv_dlopen_self=yes
  25166. + ;;
  25167. -# Allow CC to be a program name with arguments.
  25168. -compiler=$CC
  25169. + mingw* | pw32* | cegcc*)
  25170. + lt_cv_dlopen="LoadLibrary"
  25171. + lt_cv_dlopen_libs=
  25172. + ;;
  25173. + cygwin*)
  25174. + lt_cv_dlopen="dlopen"
  25175. + lt_cv_dlopen_libs=
  25176. + ;;
  25177. -# save warnings/boilerplate of simple test code
  25178. -ac_outfile=conftest.$ac_objext
  25179. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  25180. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  25181. -_lt_compiler_boilerplate=`cat conftest.err`
  25182. -$rm conftest*
  25183. + darwin*)
  25184. + # if libdl is installed we need to link against it
  25185. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  25186. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  25187. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  25188. + $as_echo_n "(cached) " >&6
  25189. +else
  25190. + ac_check_lib_save_LIBS=$LIBS
  25191. +LIBS="-ldl $LIBS"
  25192. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25193. +/* end confdefs.h. */
  25194. -ac_outfile=conftest.$ac_objext
  25195. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  25196. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  25197. -_lt_linker_boilerplate=`cat conftest.err`
  25198. -$rm conftest*
  25199. +/* Override any GCC internal prototype to avoid an error.
  25200. + Use char because int might match the return type of a GCC
  25201. + builtin and then its argument prototype would still apply. */
  25202. +#ifdef __cplusplus
  25203. +extern "C"
  25204. +#endif
  25205. +char dlopen ();
  25206. +int
  25207. +main ()
  25208. +{
  25209. +return dlopen ();
  25210. + ;
  25211. + return 0;
  25212. +}
  25213. +_ACEOF
  25214. +if ac_fn_c_try_link "$LINENO"; then :
  25215. + ac_cv_lib_dl_dlopen=yes
  25216. +else
  25217. + ac_cv_lib_dl_dlopen=no
  25218. +fi
  25219. +rm -f core conftest.err conftest.$ac_objext \
  25220. + conftest$ac_exeext conftest.$ac_ext
  25221. +LIBS=$ac_check_lib_save_LIBS
  25222. +fi
  25223. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  25224. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  25225. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  25226. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  25227. +else
  25228. + lt_cv_dlopen="dyld"
  25229. + lt_cv_dlopen_libs=
  25230. + lt_cv_dlopen_self=yes
  25231. -# Allow CC to be a program name with arguments.
  25232. -lt_save_CC="$CC"
  25233. -CC=${F77-"f77"}
  25234. -compiler=$CC
  25235. -compiler_F77=$CC
  25236. -for cc_temp in $compiler""; do
  25237. - case $cc_temp in
  25238. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25239. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25240. - \-*) ;;
  25241. - *) break;;
  25242. - esac
  25243. -done
  25244. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  25245. +fi
  25246. + ;;
  25247. -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  25248. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  25249. -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  25250. -echo "${ECHO_T}$can_build_shared" >&6; }
  25251. + *)
  25252. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  25253. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  25254. + lt_cv_dlopen="shl_load"
  25255. +else
  25256. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  25257. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  25258. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  25259. + $as_echo_n "(cached) " >&6
  25260. +else
  25261. + ac_check_lib_save_LIBS=$LIBS
  25262. +LIBS="-ldld $LIBS"
  25263. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25264. +/* end confdefs.h. */
  25265. -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  25266. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  25267. -test "$can_build_shared" = "no" && enable_shared=no
  25268. +/* Override any GCC internal prototype to avoid an error.
  25269. + Use char because int might match the return type of a GCC
  25270. + builtin and then its argument prototype would still apply. */
  25271. +#ifdef __cplusplus
  25272. +extern "C"
  25273. +#endif
  25274. +char shl_load ();
  25275. +int
  25276. +main ()
  25277. +{
  25278. +return shl_load ();
  25279. + ;
  25280. + return 0;
  25281. +}
  25282. +_ACEOF
  25283. +if ac_fn_c_try_link "$LINENO"; then :
  25284. + ac_cv_lib_dld_shl_load=yes
  25285. +else
  25286. + ac_cv_lib_dld_shl_load=no
  25287. +fi
  25288. +rm -f core conftest.err conftest.$ac_objext \
  25289. + conftest$ac_exeext conftest.$ac_ext
  25290. +LIBS=$ac_check_lib_save_LIBS
  25291. +fi
  25292. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  25293. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  25294. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  25295. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  25296. +else
  25297. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  25298. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  25299. + lt_cv_dlopen="dlopen"
  25300. +else
  25301. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  25302. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  25303. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  25304. + $as_echo_n "(cached) " >&6
  25305. +else
  25306. + ac_check_lib_save_LIBS=$LIBS
  25307. +LIBS="-ldl $LIBS"
  25308. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25309. +/* end confdefs.h. */
  25310. -# On AIX, shared libraries and static libraries use the same namespace, and
  25311. -# are all built from PIC.
  25312. -case $host_os in
  25313. -aix3*)
  25314. - test "$enable_shared" = yes && enable_static=no
  25315. - if test -n "$RANLIB"; then
  25316. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  25317. - postinstall_cmds='$RANLIB $lib'
  25318. - fi
  25319. - ;;
  25320. -aix4* | aix5*)
  25321. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  25322. - test "$enable_shared" = yes && enable_static=no
  25323. - fi
  25324. - ;;
  25325. -esac
  25326. -{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  25327. -echo "${ECHO_T}$enable_shared" >&6; }
  25328. +/* Override any GCC internal prototype to avoid an error.
  25329. + Use char because int might match the return type of a GCC
  25330. + builtin and then its argument prototype would still apply. */
  25331. +#ifdef __cplusplus
  25332. +extern "C"
  25333. +#endif
  25334. +char dlopen ();
  25335. +int
  25336. +main ()
  25337. +{
  25338. +return dlopen ();
  25339. + ;
  25340. + return 0;
  25341. +}
  25342. +_ACEOF
  25343. +if ac_fn_c_try_link "$LINENO"; then :
  25344. + ac_cv_lib_dl_dlopen=yes
  25345. +else
  25346. + ac_cv_lib_dl_dlopen=no
  25347. +fi
  25348. +rm -f core conftest.err conftest.$ac_objext \
  25349. + conftest$ac_exeext conftest.$ac_ext
  25350. +LIBS=$ac_check_lib_save_LIBS
  25351. +fi
  25352. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  25353. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  25354. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  25355. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  25356. +else
  25357. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  25358. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  25359. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  25360. + $as_echo_n "(cached) " >&6
  25361. +else
  25362. + ac_check_lib_save_LIBS=$LIBS
  25363. +LIBS="-lsvld $LIBS"
  25364. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25365. +/* end confdefs.h. */
  25366. -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  25367. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  25368. -# Make sure either enable_shared or enable_static is yes.
  25369. -test "$enable_shared" = yes || enable_static=yes
  25370. -{ echo "$as_me:$LINENO: result: $enable_static" >&5
  25371. -echo "${ECHO_T}$enable_static" >&6; }
  25372. -
  25373. -GCC_F77="$G77"
  25374. -LD_F77="$LD"
  25375. -
  25376. -lt_prog_compiler_wl_F77=
  25377. -lt_prog_compiler_pic_F77=
  25378. -lt_prog_compiler_static_F77=
  25379. +/* Override any GCC internal prototype to avoid an error.
  25380. + Use char because int might match the return type of a GCC
  25381. + builtin and then its argument prototype would still apply. */
  25382. +#ifdef __cplusplus
  25383. +extern "C"
  25384. +#endif
  25385. +char dlopen ();
  25386. +int
  25387. +main ()
  25388. +{
  25389. +return dlopen ();
  25390. + ;
  25391. + return 0;
  25392. +}
  25393. +_ACEOF
  25394. +if ac_fn_c_try_link "$LINENO"; then :
  25395. + ac_cv_lib_svld_dlopen=yes
  25396. +else
  25397. + ac_cv_lib_svld_dlopen=no
  25398. +fi
  25399. +rm -f core conftest.err conftest.$ac_objext \
  25400. + conftest$ac_exeext conftest.$ac_ext
  25401. +LIBS=$ac_check_lib_save_LIBS
  25402. +fi
  25403. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  25404. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  25405. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  25406. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  25407. +else
  25408. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  25409. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  25410. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  25411. + $as_echo_n "(cached) " >&6
  25412. +else
  25413. + ac_check_lib_save_LIBS=$LIBS
  25414. +LIBS="-ldld $LIBS"
  25415. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25416. +/* end confdefs.h. */
  25417. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  25418. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  25419. +/* Override any GCC internal prototype to avoid an error.
  25420. + Use char because int might match the return type of a GCC
  25421. + builtin and then its argument prototype would still apply. */
  25422. +#ifdef __cplusplus
  25423. +extern "C"
  25424. +#endif
  25425. +char dld_link ();
  25426. +int
  25427. +main ()
  25428. +{
  25429. +return dld_link ();
  25430. + ;
  25431. + return 0;
  25432. +}
  25433. +_ACEOF
  25434. +if ac_fn_c_try_link "$LINENO"; then :
  25435. + ac_cv_lib_dld_dld_link=yes
  25436. +else
  25437. + ac_cv_lib_dld_dld_link=no
  25438. +fi
  25439. +rm -f core conftest.err conftest.$ac_objext \
  25440. + conftest$ac_exeext conftest.$ac_ext
  25441. +LIBS=$ac_check_lib_save_LIBS
  25442. +fi
  25443. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  25444. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  25445. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  25446. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  25447. +fi
  25448. - if test "$GCC" = yes; then
  25449. - lt_prog_compiler_wl_F77='-Wl,'
  25450. - lt_prog_compiler_static_F77='-static'
  25451. - case $host_os in
  25452. - aix*)
  25453. - # All AIX code is PIC.
  25454. - if test "$host_cpu" = ia64; then
  25455. - # AIX 5 now supports IA64 processor
  25456. - lt_prog_compiler_static_F77='-Bstatic'
  25457. - fi
  25458. - ;;
  25459. +fi
  25460. - amigaos*)
  25461. - # FIXME: we need at least 68020 code to build shared libraries, but
  25462. - # adding the `-m68020' flag to GCC prevents building anything better,
  25463. - # like `-m68040'.
  25464. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  25465. - ;;
  25466. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  25467. - # PIC is the default for these OSes.
  25468. - ;;
  25469. +fi
  25470. - mingw* | cygwin* | pw32* | os2*)
  25471. - # This hack is so that the source file can tell whether it is being
  25472. - # built for inclusion in a dll (and should export symbols for example).
  25473. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  25474. - # (--disable-auto-import) libraries
  25475. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  25476. - ;;
  25477. - darwin* | rhapsody*)
  25478. - # PIC is the default on this platform
  25479. - # Common symbols not allowed in MH_DYLIB files
  25480. - lt_prog_compiler_pic_F77='-fno-common'
  25481. - ;;
  25482. +fi
  25483. - interix[3-9]*)
  25484. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  25485. - # Instead, we relocate shared libraries at runtime.
  25486. - ;;
  25487. - msdosdjgpp*)
  25488. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  25489. - # on systems that don't support them.
  25490. - lt_prog_compiler_can_build_shared_F77=no
  25491. - enable_shared=no
  25492. - ;;
  25493. +fi
  25494. - sysv4*MP*)
  25495. - if test -d /usr/nec; then
  25496. - lt_prog_compiler_pic_F77=-Kconform_pic
  25497. - fi
  25498. - ;;
  25499. - hpux*)
  25500. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  25501. - # not for PA HP-UX.
  25502. - case $host_cpu in
  25503. - hppa*64*|ia64*)
  25504. - # +Z the default
  25505. - ;;
  25506. - *)
  25507. - lt_prog_compiler_pic_F77='-fPIC'
  25508. - ;;
  25509. - esac
  25510. - ;;
  25511. +fi
  25512. - *)
  25513. - lt_prog_compiler_pic_F77='-fPIC'
  25514. - ;;
  25515. - esac
  25516. + ;;
  25517. + esac
  25518. +
  25519. + if test "x$lt_cv_dlopen" != xno; then
  25520. + enable_dlopen=yes
  25521. else
  25522. - # PORTME Check for flag to pass linker flags through the system compiler.
  25523. - case $host_os in
  25524. - aix*)
  25525. - lt_prog_compiler_wl_F77='-Wl,'
  25526. - if test "$host_cpu" = ia64; then
  25527. - # AIX 5 now supports IA64 processor
  25528. - lt_prog_compiler_static_F77='-Bstatic'
  25529. - else
  25530. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  25531. - fi
  25532. - ;;
  25533. - darwin*)
  25534. - # PIC is the default on this platform
  25535. - # Common symbols not allowed in MH_DYLIB files
  25536. - case $cc_basename in
  25537. - xlc*)
  25538. - lt_prog_compiler_pic_F77='-qnocommon'
  25539. - lt_prog_compiler_wl_F77='-Wl,'
  25540. - ;;
  25541. - esac
  25542. - ;;
  25543. + enable_dlopen=no
  25544. + fi
  25545. - mingw* | cygwin* | pw32* | os2*)
  25546. - # This hack is so that the source file can tell whether it is being
  25547. - # built for inclusion in a dll (and should export symbols for example).
  25548. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  25549. - ;;
  25550. + case $lt_cv_dlopen in
  25551. + dlopen)
  25552. + save_CPPFLAGS="$CPPFLAGS"
  25553. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  25554. - hpux9* | hpux10* | hpux11*)
  25555. - lt_prog_compiler_wl_F77='-Wl,'
  25556. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  25557. - # not for PA HP-UX.
  25558. - case $host_cpu in
  25559. - hppa*64*|ia64*)
  25560. - # +Z the default
  25561. - ;;
  25562. - *)
  25563. - lt_prog_compiler_pic_F77='+Z'
  25564. - ;;
  25565. - esac
  25566. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  25567. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  25568. - ;;
  25569. + save_LDFLAGS="$LDFLAGS"
  25570. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  25571. - irix5* | irix6* | nonstopux*)
  25572. - lt_prog_compiler_wl_F77='-Wl,'
  25573. - # PIC (with -KPIC) is the default.
  25574. - lt_prog_compiler_static_F77='-non_shared'
  25575. - ;;
  25576. + save_LIBS="$LIBS"
  25577. + LIBS="$lt_cv_dlopen_libs $LIBS"
  25578. - newsos6)
  25579. - lt_prog_compiler_pic_F77='-KPIC'
  25580. - lt_prog_compiler_static_F77='-Bstatic'
  25581. - ;;
  25582. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  25583. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  25584. +if test "${lt_cv_dlopen_self+set}" = set; then :
  25585. + $as_echo_n "(cached) " >&6
  25586. +else
  25587. + if test "$cross_compiling" = yes; then :
  25588. + lt_cv_dlopen_self=cross
  25589. +else
  25590. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  25591. + lt_status=$lt_dlunknown
  25592. + cat > conftest.$ac_ext <<_LT_EOF
  25593. +#line 10345 "configure"
  25594. +#include "confdefs.h"
  25595. - linux* | k*bsd*-gnu)
  25596. - case $cc_basename in
  25597. - icc* | ecc*)
  25598. - lt_prog_compiler_wl_F77='-Wl,'
  25599. - lt_prog_compiler_pic_F77='-KPIC'
  25600. - lt_prog_compiler_static_F77='-static'
  25601. - ;;
  25602. - pgcc* | pgf77* | pgf90* | pgf95*)
  25603. - # Portland Group compilers (*not* the Pentium gcc compiler,
  25604. - # which looks to be a dead project)
  25605. - lt_prog_compiler_wl_F77='-Wl,'
  25606. - lt_prog_compiler_pic_F77='-fpic'
  25607. - lt_prog_compiler_static_F77='-Bstatic'
  25608. - ;;
  25609. - ccc*)
  25610. - lt_prog_compiler_wl_F77='-Wl,'
  25611. - # All Alpha code is PIC.
  25612. - lt_prog_compiler_static_F77='-non_shared'
  25613. - ;;
  25614. - *)
  25615. - case `$CC -V 2>&1 | sed 5q` in
  25616. - *Sun\ C*)
  25617. - # Sun C 5.9
  25618. - lt_prog_compiler_pic_F77='-KPIC'
  25619. - lt_prog_compiler_static_F77='-Bstatic'
  25620. - lt_prog_compiler_wl_F77='-Wl,'
  25621. - ;;
  25622. - *Sun\ F*)
  25623. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  25624. - lt_prog_compiler_pic_F77='-KPIC'
  25625. - lt_prog_compiler_static_F77='-Bstatic'
  25626. - lt_prog_compiler_wl_F77=''
  25627. - ;;
  25628. - esac
  25629. - ;;
  25630. - esac
  25631. - ;;
  25632. +#if HAVE_DLFCN_H
  25633. +#include <dlfcn.h>
  25634. +#endif
  25635. - osf3* | osf4* | osf5*)
  25636. - lt_prog_compiler_wl_F77='-Wl,'
  25637. - # All OSF/1 code is PIC.
  25638. - lt_prog_compiler_static_F77='-non_shared'
  25639. - ;;
  25640. +#include <stdio.h>
  25641. - rdos*)
  25642. - lt_prog_compiler_static_F77='-non_shared'
  25643. - ;;
  25644. +#ifdef RTLD_GLOBAL
  25645. +# define LT_DLGLOBAL RTLD_GLOBAL
  25646. +#else
  25647. +# ifdef DL_GLOBAL
  25648. +# define LT_DLGLOBAL DL_GLOBAL
  25649. +# else
  25650. +# define LT_DLGLOBAL 0
  25651. +# endif
  25652. +#endif
  25653. - solaris*)
  25654. - lt_prog_compiler_pic_F77='-KPIC'
  25655. - lt_prog_compiler_static_F77='-Bstatic'
  25656. - case $cc_basename in
  25657. - f77* | f90* | f95*)
  25658. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  25659. - *)
  25660. - lt_prog_compiler_wl_F77='-Wl,';;
  25661. - esac
  25662. - ;;
  25663. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  25664. + find out it does not work in some platform. */
  25665. +#ifndef LT_DLLAZY_OR_NOW
  25666. +# ifdef RTLD_LAZY
  25667. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  25668. +# else
  25669. +# ifdef DL_LAZY
  25670. +# define LT_DLLAZY_OR_NOW DL_LAZY
  25671. +# else
  25672. +# ifdef RTLD_NOW
  25673. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  25674. +# else
  25675. +# ifdef DL_NOW
  25676. +# define LT_DLLAZY_OR_NOW DL_NOW
  25677. +# else
  25678. +# define LT_DLLAZY_OR_NOW 0
  25679. +# endif
  25680. +# endif
  25681. +# endif
  25682. +# endif
  25683. +#endif
  25684. - sunos4*)
  25685. - lt_prog_compiler_wl_F77='-Qoption ld '
  25686. - lt_prog_compiler_pic_F77='-PIC'
  25687. - lt_prog_compiler_static_F77='-Bstatic'
  25688. - ;;
  25689. +void fnord() { int i=42;}
  25690. +int main ()
  25691. +{
  25692. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  25693. + int status = $lt_dlunknown;
  25694. - sysv4 | sysv4.2uw2* | sysv4.3*)
  25695. - lt_prog_compiler_wl_F77='-Wl,'
  25696. - lt_prog_compiler_pic_F77='-KPIC'
  25697. - lt_prog_compiler_static_F77='-Bstatic'
  25698. - ;;
  25699. + if (self)
  25700. + {
  25701. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  25702. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  25703. + /* dlclose (self); */
  25704. + }
  25705. + else
  25706. + puts (dlerror ());
  25707. - sysv4*MP*)
  25708. - if test -d /usr/nec ;then
  25709. - lt_prog_compiler_pic_F77='-Kconform_pic'
  25710. - lt_prog_compiler_static_F77='-Bstatic'
  25711. - fi
  25712. - ;;
  25713. + return status;
  25714. +}
  25715. +_LT_EOF
  25716. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  25717. + (eval $ac_link) 2>&5
  25718. + ac_status=$?
  25719. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25720. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  25721. + (./conftest; exit; ) >&5 2>/dev/null
  25722. + lt_status=$?
  25723. + case x$lt_status in
  25724. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  25725. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  25726. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  25727. + esac
  25728. + else :
  25729. + # compilation failed
  25730. + lt_cv_dlopen_self=no
  25731. + fi
  25732. +fi
  25733. +rm -fr conftest*
  25734. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  25735. - lt_prog_compiler_wl_F77='-Wl,'
  25736. - lt_prog_compiler_pic_F77='-KPIC'
  25737. - lt_prog_compiler_static_F77='-Bstatic'
  25738. - ;;
  25739. - unicos*)
  25740. - lt_prog_compiler_wl_F77='-Wl,'
  25741. - lt_prog_compiler_can_build_shared_F77=no
  25742. - ;;
  25743. +fi
  25744. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  25745. +$as_echo "$lt_cv_dlopen_self" >&6; }
  25746. - uts4*)
  25747. - lt_prog_compiler_pic_F77='-pic'
  25748. - lt_prog_compiler_static_F77='-Bstatic'
  25749. - ;;
  25750. + if test "x$lt_cv_dlopen_self" = xyes; then
  25751. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  25752. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  25753. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  25754. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  25755. + $as_echo_n "(cached) " >&6
  25756. +else
  25757. + if test "$cross_compiling" = yes; then :
  25758. + lt_cv_dlopen_self_static=cross
  25759. +else
  25760. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  25761. + lt_status=$lt_dlunknown
  25762. + cat > conftest.$ac_ext <<_LT_EOF
  25763. +#line 10441 "configure"
  25764. +#include "confdefs.h"
  25765. - *)
  25766. - lt_prog_compiler_can_build_shared_F77=no
  25767. - ;;
  25768. - esac
  25769. - fi
  25770. +#if HAVE_DLFCN_H
  25771. +#include <dlfcn.h>
  25772. +#endif
  25773. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  25774. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  25775. +#include <stdio.h>
  25776. -#
  25777. -# Check to make sure the PIC flag actually works.
  25778. -#
  25779. -if test -n "$lt_prog_compiler_pic_F77"; then
  25780. +#ifdef RTLD_GLOBAL
  25781. +# define LT_DLGLOBAL RTLD_GLOBAL
  25782. +#else
  25783. +# ifdef DL_GLOBAL
  25784. +# define LT_DLGLOBAL DL_GLOBAL
  25785. +# else
  25786. +# define LT_DLGLOBAL 0
  25787. +# endif
  25788. +#endif
  25789. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  25790. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  25791. -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  25792. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25793. -else
  25794. - lt_prog_compiler_pic_works_F77=no
  25795. - ac_outfile=conftest.$ac_objext
  25796. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25797. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  25798. - # Insert the option either (1) after the last *FLAGS variable, or
  25799. - # (2) before a word containing "conftest.", or (3) at the end.
  25800. - # Note that $ac_compile itself does not contain backslashes and begins
  25801. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  25802. - # The option is referenced via a variable to avoid confusing sed.
  25803. - lt_compile=`echo "$ac_compile" | $SED \
  25804. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25805. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25806. - -e 's:$: $lt_compiler_flag:'`
  25807. - (eval echo "\"\$as_me:14084: $lt_compile\"" >&5)
  25808. - (eval "$lt_compile" 2>conftest.err)
  25809. - ac_status=$?
  25810. - cat conftest.err >&5
  25811. - echo "$as_me:14088: \$? = $ac_status" >&5
  25812. - if (exit $ac_status) && test -s "$ac_outfile"; then
  25813. - # The compiler can only warn and ignore the option if not recognized
  25814. - # So say no if there are warnings other than the usual output.
  25815. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  25816. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25817. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  25818. - lt_prog_compiler_pic_works_F77=yes
  25819. - fi
  25820. - fi
  25821. - $rm conftest*
  25822. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  25823. + find out it does not work in some platform. */
  25824. +#ifndef LT_DLLAZY_OR_NOW
  25825. +# ifdef RTLD_LAZY
  25826. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  25827. +# else
  25828. +# ifdef DL_LAZY
  25829. +# define LT_DLLAZY_OR_NOW DL_LAZY
  25830. +# else
  25831. +# ifdef RTLD_NOW
  25832. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  25833. +# else
  25834. +# ifdef DL_NOW
  25835. +# define LT_DLLAZY_OR_NOW DL_NOW
  25836. +# else
  25837. +# define LT_DLLAZY_OR_NOW 0
  25838. +# endif
  25839. +# endif
  25840. +# endif
  25841. +# endif
  25842. +#endif
  25843. -fi
  25844. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  25845. -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  25846. +void fnord() { int i=42;}
  25847. +int main ()
  25848. +{
  25849. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  25850. + int status = $lt_dlunknown;
  25851. -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  25852. - case $lt_prog_compiler_pic_F77 in
  25853. - "" | " "*) ;;
  25854. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  25855. - esac
  25856. -else
  25857. - lt_prog_compiler_pic_F77=
  25858. - lt_prog_compiler_can_build_shared_F77=no
  25859. + if (self)
  25860. + {
  25861. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  25862. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  25863. + /* dlclose (self); */
  25864. + }
  25865. + else
  25866. + puts (dlerror ());
  25867. +
  25868. + return status;
  25869. +}
  25870. +_LT_EOF
  25871. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  25872. + (eval $ac_link) 2>&5
  25873. + ac_status=$?
  25874. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25875. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  25876. + (./conftest; exit; ) >&5 2>/dev/null
  25877. + lt_status=$?
  25878. + case x$lt_status in
  25879. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  25880. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  25881. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  25882. + esac
  25883. + else :
  25884. + # compilation failed
  25885. + lt_cv_dlopen_self_static=no
  25886. + fi
  25887. fi
  25888. +rm -fr conftest*
  25889. +
  25890. fi
  25891. -case $host_os in
  25892. - # For platforms which do not support PIC, -DPIC is meaningless:
  25893. - *djgpp*)
  25894. - lt_prog_compiler_pic_F77=
  25895. - ;;
  25896. - *)
  25897. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  25898. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  25899. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  25900. + fi
  25901. +
  25902. + CPPFLAGS="$save_CPPFLAGS"
  25903. + LDFLAGS="$save_LDFLAGS"
  25904. + LIBS="$save_LIBS"
  25905. ;;
  25906. -esac
  25907. + esac
  25908. -#
  25909. -# Check to make sure the static flag actually works.
  25910. -#
  25911. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  25912. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  25913. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  25914. -if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  25915. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25916. -else
  25917. - lt_prog_compiler_static_works_F77=no
  25918. - save_LDFLAGS="$LDFLAGS"
  25919. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  25920. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  25921. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  25922. - # The linker can only warn and ignore the option if not recognized
  25923. - # So say no if there are warnings
  25924. - if test -s conftest.err; then
  25925. - # Append any errors to the config.log.
  25926. - cat conftest.err 1>&5
  25927. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  25928. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25929. - if diff conftest.exp conftest.er2 >/dev/null; then
  25930. - lt_prog_compiler_static_works_F77=yes
  25931. - fi
  25932. - else
  25933. - lt_prog_compiler_static_works_F77=yes
  25934. - fi
  25935. - fi
  25936. - $rm conftest*
  25937. - LDFLAGS="$save_LDFLAGS"
  25938. + case $lt_cv_dlopen_self in
  25939. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  25940. + *) enable_dlopen_self=unknown ;;
  25941. + esac
  25942. + case $lt_cv_dlopen_self_static in
  25943. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  25944. + *) enable_dlopen_self_static=unknown ;;
  25945. + esac
  25946. fi
  25947. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  25948. -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  25949. -if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  25950. - :
  25951. -else
  25952. - lt_prog_compiler_static_F77=
  25953. -fi
  25954. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  25955. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  25956. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  25957. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25958. -else
  25959. - lt_cv_prog_compiler_c_o_F77=no
  25960. - $rm -r conftest 2>/dev/null
  25961. - mkdir conftest
  25962. - cd conftest
  25963. - mkdir out
  25964. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25965. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  25966. - # Insert the option either (1) after the last *FLAGS variable, or
  25967. - # (2) before a word containing "conftest.", or (3) at the end.
  25968. - # Note that $ac_compile itself does not contain backslashes and begins
  25969. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  25970. - lt_compile=`echo "$ac_compile" | $SED \
  25971. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25972. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25973. - -e 's:$: $lt_compiler_flag:'`
  25974. - (eval echo "\"\$as_me:14188: $lt_compile\"" >&5)
  25975. - (eval "$lt_compile" 2>out/conftest.err)
  25976. - ac_status=$?
  25977. - cat out/conftest.err >&5
  25978. - echo "$as_me:14192: \$? = $ac_status" >&5
  25979. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  25980. - then
  25981. - # The compiler can only warn and ignore the option if not recognized
  25982. - # So say no if there are warnings
  25983. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  25984. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  25985. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  25986. - lt_cv_prog_compiler_c_o_F77=yes
  25987. - fi
  25988. - fi
  25989. - chmod u+w . 2>&5
  25990. - $rm conftest*
  25991. - # SGI C++ compiler will create directory out/ii_files/ for
  25992. - # template instantiation
  25993. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  25994. - $rm out/* && rmdir out
  25995. - cd ..
  25996. - rmdir conftest
  25997. - $rm conftest*
  25998. -fi
  25999. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  26000. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  26001. -hard_links="nottested"
  26002. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  26003. - # do not overwrite the value of need_locks provided by the user
  26004. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  26005. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  26006. - hard_links=yes
  26007. - $rm conftest*
  26008. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  26009. - touch conftest.a
  26010. - ln conftest.a conftest.b 2>&5 || hard_links=no
  26011. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  26012. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  26013. -echo "${ECHO_T}$hard_links" >&6; }
  26014. - if test "$hard_links" = no; then
  26015. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  26016. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  26017. - need_locks=warn
  26018. - fi
  26019. +
  26020. +
  26021. +
  26022. +
  26023. +
  26024. +
  26025. +
  26026. +
  26027. +
  26028. +
  26029. +striplib=
  26030. +old_striplib=
  26031. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  26032. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  26033. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  26034. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  26035. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  26036. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26037. +$as_echo "yes" >&6; }
  26038. else
  26039. - need_locks=no
  26040. +# FIXME - insert some real tests, host_os isn't really good enough
  26041. + case $host_os in
  26042. + darwin*)
  26043. + if test -n "$STRIP" ; then
  26044. + striplib="$STRIP -x"
  26045. + old_striplib="$STRIP -S"
  26046. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26047. +$as_echo "yes" >&6; }
  26048. + else
  26049. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26050. +$as_echo "no" >&6; }
  26051. + fi
  26052. + ;;
  26053. + *)
  26054. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26055. +$as_echo "no" >&6; }
  26056. + ;;
  26057. + esac
  26058. fi
  26059. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  26060. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  26061. - runpath_var=
  26062. - allow_undefined_flag_F77=
  26063. - enable_shared_with_static_runtimes_F77=no
  26064. - archive_cmds_F77=
  26065. - archive_expsym_cmds_F77=
  26066. - old_archive_From_new_cmds_F77=
  26067. - old_archive_from_expsyms_cmds_F77=
  26068. - export_dynamic_flag_spec_F77=
  26069. - whole_archive_flag_spec_F77=
  26070. - thread_safe_flag_spec_F77=
  26071. - hardcode_libdir_flag_spec_F77=
  26072. - hardcode_libdir_flag_spec_ld_F77=
  26073. - hardcode_libdir_separator_F77=
  26074. - hardcode_direct_F77=no
  26075. - hardcode_minus_L_F77=no
  26076. - hardcode_shlibpath_var_F77=unsupported
  26077. - link_all_deplibs_F77=unknown
  26078. - hardcode_automatic_F77=no
  26079. - module_cmds_F77=
  26080. - module_expsym_cmds_F77=
  26081. - always_export_symbols_F77=no
  26082. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  26083. - # include_expsyms should be a list of space-separated symbols to be *always*
  26084. - # included in the symbol list
  26085. - include_expsyms_F77=
  26086. - # exclude_expsyms can be an extended regexp of symbols to exclude
  26087. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  26088. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  26089. - # as well as any symbol that contains `d'.
  26090. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  26091. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  26092. - # platforms (ab)use it in PIC code, but their linkers get confused if
  26093. - # the symbol is explicitly referenced. Since portable code cannot
  26094. - # rely on this symbol name, it's probably fine to never include it in
  26095. - # preloaded symbol tables.
  26096. - extract_expsyms_cmds=
  26097. - # Just being paranoid about ensuring that cc_basename is set.
  26098. - for cc_temp in $compiler""; do
  26099. - case $cc_temp in
  26100. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26101. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26102. - \-*) ;;
  26103. - *) break;;
  26104. - esac
  26105. -done
  26106. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  26107. +
  26108. +
  26109. +
  26110. +
  26111. +
  26112. +
  26113. +
  26114. +
  26115. +
  26116. + # Report which library types will actually be built
  26117. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  26118. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  26119. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  26120. +$as_echo "$can_build_shared" >&6; }
  26121. +
  26122. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  26123. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  26124. + test "$can_build_shared" = "no" && enable_shared=no
  26125. +
  26126. + # On AIX, shared libraries and static libraries use the same namespace, and
  26127. + # are all built from PIC.
  26128. case $host_os in
  26129. - cygwin* | mingw* | pw32*)
  26130. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  26131. - # When not using gcc, we currently assume that we are using
  26132. - # Microsoft Visual C++.
  26133. - if test "$GCC" != yes; then
  26134. - with_gnu_ld=no
  26135. + aix3*)
  26136. + test "$enable_shared" = yes && enable_static=no
  26137. + if test -n "$RANLIB"; then
  26138. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  26139. + postinstall_cmds='$RANLIB $lib'
  26140. fi
  26141. ;;
  26142. - interix*)
  26143. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  26144. - with_gnu_ld=yes
  26145. - ;;
  26146. - openbsd*)
  26147. - with_gnu_ld=no
  26148. +
  26149. + aix[4-9]*)
  26150. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  26151. + test "$enable_shared" = yes && enable_static=no
  26152. + fi
  26153. ;;
  26154. esac
  26155. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  26156. +$as_echo "$enable_shared" >&6; }
  26157. - ld_shlibs_F77=yes
  26158. - if test "$with_gnu_ld" = yes; then
  26159. - # If archive_cmds runs LD, not CC, wlarc should be empty
  26160. - wlarc='${wl}'
  26161. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  26162. +$as_echo_n "checking whether to build static libraries... " >&6; }
  26163. + # Make sure either enable_shared or enable_static is yes.
  26164. + test "$enable_shared" = yes || enable_static=yes
  26165. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  26166. +$as_echo "$enable_static" >&6; }
  26167. - # Set some defaults for GNU ld with shared library support. These
  26168. - # are reset later if shared libraries are not supported. Putting them
  26169. - # here allows them to be overridden if necessary.
  26170. - runpath_var=LD_RUN_PATH
  26171. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  26172. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  26173. - # ancient GNU ld didn't support --whole-archive et. al.
  26174. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  26175. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  26176. - else
  26177. - whole_archive_flag_spec_F77=
  26178. - fi
  26179. - supports_anon_versioning=no
  26180. - case `$LD -v 2>/dev/null` in
  26181. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  26182. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  26183. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  26184. - *\ 2.11.*) ;; # other 2.11 versions
  26185. - *) supports_anon_versioning=yes ;;
  26186. - esac
  26187. - # See if GNU ld supports shared libraries.
  26188. - case $host_os in
  26189. - aix3* | aix4* | aix5*)
  26190. - # On AIX/PPC, the GNU linker is very broken
  26191. - if test "$host_cpu" != ia64; then
  26192. - ld_shlibs_F77=no
  26193. - cat <<EOF 1>&2
  26194. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  26195. -*** to be unable to reliably create shared libraries on AIX.
  26196. -*** Therefore, libtool is disabling shared libraries support. If you
  26197. -*** really care for shared libraries, you may want to modify your PATH
  26198. -*** so that a non-GNU linker is found, and then restart.
  26199. -EOF
  26200. - fi
  26201. - ;;
  26202. +fi
  26203. +ac_ext=c
  26204. +ac_cpp='$CPP $CPPFLAGS'
  26205. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26206. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26207. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26208. - amigaos*)
  26209. - 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)'
  26210. - hardcode_libdir_flag_spec_F77='-L$libdir'
  26211. - hardcode_minus_L_F77=yes
  26212. -
  26213. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  26214. - # that the semantics of dynamic libraries on AmigaOS, at least up
  26215. - # to version 4, is to share data among multiple programs linked
  26216. - # with the same dynamic library. Since this doesn't match the
  26217. - # behavior of shared libraries on other platforms, we can't use
  26218. - # them.
  26219. - ld_shlibs_F77=no
  26220. - ;;
  26221. +CC="$lt_save_CC"
  26222. - beos*)
  26223. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26224. - allow_undefined_flag_F77=unsupported
  26225. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  26226. - # support --undefined. This deserves some investigation. FIXME
  26227. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26228. - else
  26229. - ld_shlibs_F77=no
  26230. - fi
  26231. - ;;
  26232. - cygwin* | mingw* | pw32*)
  26233. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  26234. - # as there is no search path for DLLs.
  26235. - hardcode_libdir_flag_spec_F77='-L$libdir'
  26236. - allow_undefined_flag_F77=unsupported
  26237. - always_export_symbols_F77=no
  26238. - enable_shared_with_static_runtimes_F77=yes
  26239. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  26240. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  26241. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  26242. - # If the export-symbols file already is a .def file (1st line
  26243. - # is EXPORTS), use it as is; otherwise, prepend...
  26244. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  26245. - cp $export_symbols $output_objdir/$soname.def;
  26246. - else
  26247. - echo EXPORTS > $output_objdir/$soname.def;
  26248. - cat $export_symbols >> $output_objdir/$soname.def;
  26249. - fi~
  26250. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  26251. - else
  26252. - ld_shlibs_F77=no
  26253. - fi
  26254. - ;;
  26255. - interix[3-9]*)
  26256. - hardcode_direct_F77=no
  26257. - hardcode_shlibpath_var_F77=no
  26258. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  26259. - export_dynamic_flag_spec_F77='${wl}-E'
  26260. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  26261. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  26262. - # default) and relocated if they conflict, which is a slow very memory
  26263. - # consuming and fragmenting process. To avoid this, we pick a random,
  26264. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  26265. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  26266. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  26267. - archive_expsym_cmds_F77='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'
  26268. - ;;
  26269. - gnu* | linux* | k*bsd*-gnu)
  26270. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26271. - tmp_addflag=
  26272. - case $cc_basename,$host_cpu in
  26273. - pgcc*) # Portland Group C compiler
  26274. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  26275. - tmp_addflag=' $pic_flag'
  26276. - ;;
  26277. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  26278. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  26279. - tmp_addflag=' $pic_flag -Mnomain' ;;
  26280. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  26281. - tmp_addflag=' -i_dynamic' ;;
  26282. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  26283. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  26284. - ifc* | ifort*) # Intel Fortran compiler
  26285. - tmp_addflag=' -nofor_main' ;;
  26286. - esac
  26287. - case `$CC -V 2>&1 | sed 5q` in
  26288. - *Sun\ C*) # Sun C 5.9
  26289. - whole_archive_flag_spec_F77='${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'
  26290. - tmp_sharedflag='-G' ;;
  26291. - *Sun\ F*) # Sun Fortran 8.3
  26292. - tmp_sharedflag='-G' ;;
  26293. - *)
  26294. - tmp_sharedflag='-shared' ;;
  26295. - esac
  26296. - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26297. - if test $supports_anon_versioning = yes; then
  26298. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  26299. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  26300. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  26301. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  26302. - fi
  26303. - else
  26304. - ld_shlibs_F77=no
  26305. - fi
  26306. - ;;
  26307. - netbsd*)
  26308. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  26309. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  26310. - wlarc=
  26311. - else
  26312. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26313. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26314. - fi
  26315. - ;;
  26316. - solaris*)
  26317. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  26318. - ld_shlibs_F77=no
  26319. - cat <<EOF 1>&2
  26320. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  26321. -*** create shared libraries on Solaris systems. Therefore, libtool
  26322. -*** is disabling shared libraries support. We urge you to upgrade GNU
  26323. -*** binutils to release 2.9.1 or newer. Another option is to modify
  26324. -*** your PATH or compiler configuration so that the native linker is
  26325. -*** used, and then restart.
  26326. -EOF
  26327. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26328. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26329. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26330. - else
  26331. - ld_shlibs_F77=no
  26332. - fi
  26333. - ;;
  26334. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  26335. - case `$LD -v 2>&1` in
  26336. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  26337. - ld_shlibs_F77=no
  26338. - cat <<_LT_EOF 1>&2
  26339. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  26340. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  26341. -*** is disabling shared libraries support. We urge you to upgrade GNU
  26342. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  26343. -*** your PATH or compiler configuration so that the native linker is
  26344. -*** used, and then restart.
  26345. -_LT_EOF
  26346. - ;;
  26347. - *)
  26348. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26349. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  26350. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  26351. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  26352. - else
  26353. - ld_shlibs_F77=no
  26354. - fi
  26355. - ;;
  26356. - esac
  26357. - ;;
  26358. + ac_config_commands="$ac_config_commands libtool"
  26359. - sunos4*)
  26360. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26361. - wlarc=
  26362. - hardcode_direct_F77=yes
  26363. - hardcode_shlibpath_var_F77=no
  26364. - ;;
  26365. - *)
  26366. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26367. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26368. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26369. - else
  26370. - ld_shlibs_F77=no
  26371. - fi
  26372. - ;;
  26373. - esac
  26374. - if test "$ld_shlibs_F77" = no; then
  26375. - runpath_var=
  26376. - hardcode_libdir_flag_spec_F77=
  26377. - export_dynamic_flag_spec_F77=
  26378. - whole_archive_flag_spec_F77=
  26379. - fi
  26380. - else
  26381. - # PORTME fill in a description of your system's linker (not GNU ld)
  26382. - case $host_os in
  26383. - aix3*)
  26384. - allow_undefined_flag_F77=unsupported
  26385. - always_export_symbols_F77=yes
  26386. - 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'
  26387. - # Note: this linker hardcodes the directories in LIBPATH if there
  26388. - # are no directories specified by -L.
  26389. - hardcode_minus_L_F77=yes
  26390. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  26391. - # Neither direct hardcoding nor static linking is supported with a
  26392. - # broken collect2.
  26393. - hardcode_direct_F77=unsupported
  26394. - fi
  26395. - ;;
  26396. - aix4* | aix5*)
  26397. - if test "$host_cpu" = ia64; then
  26398. - # On IA64, the linker does run time linking by default, so we don't
  26399. - # have to do anything special.
  26400. - aix_use_runtimelinking=no
  26401. - exp_sym_flag='-Bexport'
  26402. - no_entry_flag=""
  26403. - else
  26404. - # If we're using GNU nm, then we don't want the "-C" option.
  26405. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  26406. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  26407. - 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'
  26408. - else
  26409. - 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'
  26410. - fi
  26411. - aix_use_runtimelinking=no
  26412. +# Only expand once:
  26413. - # Test if we are trying to use run time linking or normal
  26414. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  26415. - # need to do runtime linking.
  26416. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  26417. - for ld_flag in $LDFLAGS; do
  26418. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  26419. - aix_use_runtimelinking=yes
  26420. - break
  26421. - fi
  26422. - done
  26423. - ;;
  26424. - esac
  26425. - exp_sym_flag='-bexport'
  26426. - no_entry_flag='-bnoentry'
  26427. - fi
  26428. +# Check whether --enable-largefile was given.
  26429. +if test "${enable_largefile+set}" = set; then :
  26430. + enableval=$enable_largefile;
  26431. +fi
  26432. - # When large executables or shared objects are built, AIX ld can
  26433. - # have problems creating the table of contents. If linking a library
  26434. - # or program results in "error TOC overflow" add -mminimal-toc to
  26435. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  26436. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  26437. +if test "$enable_largefile" != no; then
  26438. - archive_cmds_F77=''
  26439. - hardcode_direct_F77=yes
  26440. - hardcode_libdir_separator_F77=':'
  26441. - link_all_deplibs_F77=yes
  26442. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  26443. +$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  26444. +if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  26445. + $as_echo_n "(cached) " >&6
  26446. +else
  26447. + ac_cv_sys_largefile_CC=no
  26448. + if test "$GCC" != yes; then
  26449. + ac_save_CC=$CC
  26450. + while :; do
  26451. + # IRIX 6.2 and later do not support large files by default,
  26452. + # so use the C compiler's -n32 option if that helps.
  26453. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26454. +/* end confdefs.h. */
  26455. +#include <sys/types.h>
  26456. + /* Check that off_t can represent 2**63 - 1 correctly.
  26457. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  26458. + since some C++ compilers masquerading as C compilers
  26459. + incorrectly reject 9223372036854775807. */
  26460. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  26461. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  26462. + && LARGE_OFF_T % 2147483647 == 1)
  26463. + ? 1 : -1];
  26464. +int
  26465. +main ()
  26466. +{
  26467. - if test "$GCC" = yes; then
  26468. - case $host_os in aix4.[012]|aix4.[012].*)
  26469. - # We only want to do this on AIX 4.2 and lower, the check
  26470. - # below for broken collect2 doesn't work under 4.3+
  26471. - collect2name=`${CC} -print-prog-name=collect2`
  26472. - if test -f "$collect2name" && \
  26473. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  26474. - then
  26475. - # We have reworked collect2
  26476. - :
  26477. - else
  26478. - # We have old collect2
  26479. - hardcode_direct_F77=unsupported
  26480. - # It fails to find uninstalled libraries when the uninstalled
  26481. - # path is not listed in the libpath. Setting hardcode_minus_L
  26482. - # to unsupported forces relinking
  26483. - hardcode_minus_L_F77=yes
  26484. - hardcode_libdir_flag_spec_F77='-L$libdir'
  26485. - hardcode_libdir_separator_F77=
  26486. - fi
  26487. - ;;
  26488. - esac
  26489. - shared_flag='-shared'
  26490. - if test "$aix_use_runtimelinking" = yes; then
  26491. - shared_flag="$shared_flag "'${wl}-G'
  26492. - fi
  26493. - else
  26494. - # not using gcc
  26495. - if test "$host_cpu" = ia64; then
  26496. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  26497. - # chokes on -Wl,-G. The following line is correct:
  26498. - shared_flag='-G'
  26499. - else
  26500. - if test "$aix_use_runtimelinking" = yes; then
  26501. - shared_flag='${wl}-G'
  26502. - else
  26503. - shared_flag='${wl}-bM:SRE'
  26504. - fi
  26505. - fi
  26506. - fi
  26507. + ;
  26508. + return 0;
  26509. +}
  26510. +_ACEOF
  26511. + if ac_fn_c_try_compile "$LINENO"; then :
  26512. + break
  26513. +fi
  26514. +rm -f core conftest.err conftest.$ac_objext
  26515. + CC="$CC -n32"
  26516. + if ac_fn_c_try_compile "$LINENO"; then :
  26517. + ac_cv_sys_largefile_CC=' -n32'; break
  26518. +fi
  26519. +rm -f core conftest.err conftest.$ac_objext
  26520. + break
  26521. + done
  26522. + CC=$ac_save_CC
  26523. + rm -f conftest.$ac_ext
  26524. + fi
  26525. +fi
  26526. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  26527. +$as_echo "$ac_cv_sys_largefile_CC" >&6; }
  26528. + if test "$ac_cv_sys_largefile_CC" != no; then
  26529. + CC=$CC$ac_cv_sys_largefile_CC
  26530. + fi
  26531. - # It seems that -bexpall does not export symbols beginning with
  26532. - # underscore (_), so it is better to generate a list of symbols to export.
  26533. - always_export_symbols_F77=yes
  26534. - if test "$aix_use_runtimelinking" = yes; then
  26535. - # Warning - without using the other runtime loading flags (-brtl),
  26536. - # -berok will link without error, but may produce a broken library.
  26537. - allow_undefined_flag_F77='-berok'
  26538. - # Determine the default libpath from the value encoded in an empty executable.
  26539. - cat >conftest.$ac_ext <<_ACEOF
  26540. - program main
  26541. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  26542. +$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  26543. +if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  26544. + $as_echo_n "(cached) " >&6
  26545. +else
  26546. + while :; do
  26547. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26548. +/* end confdefs.h. */
  26549. +#include <sys/types.h>
  26550. + /* Check that off_t can represent 2**63 - 1 correctly.
  26551. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  26552. + since some C++ compilers masquerading as C compilers
  26553. + incorrectly reject 9223372036854775807. */
  26554. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  26555. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  26556. + && LARGE_OFF_T % 2147483647 == 1)
  26557. + ? 1 : -1];
  26558. +int
  26559. +main ()
  26560. +{
  26561. - end
  26562. + ;
  26563. + return 0;
  26564. +}
  26565. _ACEOF
  26566. -rm -f conftest.$ac_objext conftest$ac_exeext
  26567. -if { (ac_try="$ac_link"
  26568. -case "(($ac_try" in
  26569. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26570. - *) ac_try_echo=$ac_try;;
  26571. -esac
  26572. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26573. - (eval "$ac_link") 2>conftest.er1
  26574. - ac_status=$?
  26575. - grep -v '^ *+' conftest.er1 >conftest.err
  26576. - rm -f conftest.er1
  26577. - cat conftest.err >&5
  26578. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26579. - (exit $ac_status); } && {
  26580. - test -z "$ac_f77_werror_flag" ||
  26581. - test ! -s conftest.err
  26582. - } && test -s conftest$ac_exeext &&
  26583. - $as_test_x conftest$ac_exeext; then
  26584. +if ac_fn_c_try_compile "$LINENO"; then :
  26585. + ac_cv_sys_file_offset_bits=no; break
  26586. +fi
  26587. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26588. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26589. +/* end confdefs.h. */
  26590. +#define _FILE_OFFSET_BITS 64
  26591. +#include <sys/types.h>
  26592. + /* Check that off_t can represent 2**63 - 1 correctly.
  26593. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  26594. + since some C++ compilers masquerading as C compilers
  26595. + incorrectly reject 9223372036854775807. */
  26596. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  26597. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  26598. + && LARGE_OFF_T % 2147483647 == 1)
  26599. + ? 1 : -1];
  26600. +int
  26601. +main ()
  26602. +{
  26603. -lt_aix_libpath_sed='
  26604. - /Import File Strings/,/^$/ {
  26605. - /^0/ {
  26606. - s/^0 *\(.*\)$/\1/
  26607. - p
  26608. - }
  26609. - }'
  26610. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26611. -# Check for a 64-bit object if we didn't find anything.
  26612. -if test -z "$aix_libpath"; then
  26613. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26614. + ;
  26615. + return 0;
  26616. +}
  26617. +_ACEOF
  26618. +if ac_fn_c_try_compile "$LINENO"; then :
  26619. + ac_cv_sys_file_offset_bits=64; break
  26620. +fi
  26621. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26622. + ac_cv_sys_file_offset_bits=unknown
  26623. + break
  26624. +done
  26625. fi
  26626. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  26627. +$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  26628. +case $ac_cv_sys_file_offset_bits in #(
  26629. + no | unknown) ;;
  26630. + *)
  26631. +cat >>confdefs.h <<_ACEOF
  26632. +#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  26633. +_ACEOF
  26634. +;;
  26635. +esac
  26636. +rm -rf conftest*
  26637. + if test $ac_cv_sys_file_offset_bits = unknown; then
  26638. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  26639. +$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  26640. +if test "${ac_cv_sys_large_files+set}" = set; then :
  26641. + $as_echo_n "(cached) " >&6
  26642. else
  26643. - echo "$as_me: failed program was:" >&5
  26644. -sed 's/^/| /' conftest.$ac_ext >&5
  26645. -
  26646. + while :; do
  26647. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26648. +/* end confdefs.h. */
  26649. +#include <sys/types.h>
  26650. + /* Check that off_t can represent 2**63 - 1 correctly.
  26651. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  26652. + since some C++ compilers masquerading as C compilers
  26653. + incorrectly reject 9223372036854775807. */
  26654. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  26655. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  26656. + && LARGE_OFF_T % 2147483647 == 1)
  26657. + ? 1 : -1];
  26658. +int
  26659. +main ()
  26660. +{
  26661. + ;
  26662. + return 0;
  26663. +}
  26664. +_ACEOF
  26665. +if ac_fn_c_try_compile "$LINENO"; then :
  26666. + ac_cv_sys_large_files=no; break
  26667. fi
  26668. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26669. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26670. +/* end confdefs.h. */
  26671. +#define _LARGE_FILES 1
  26672. +#include <sys/types.h>
  26673. + /* Check that off_t can represent 2**63 - 1 correctly.
  26674. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  26675. + since some C++ compilers masquerading as C compilers
  26676. + incorrectly reject 9223372036854775807. */
  26677. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  26678. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  26679. + && LARGE_OFF_T % 2147483647 == 1)
  26680. + ? 1 : -1];
  26681. +int
  26682. +main ()
  26683. +{
  26684. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26685. - conftest$ac_exeext conftest.$ac_ext
  26686. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  26687. -
  26688. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  26689. - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  26690. - else
  26691. - if test "$host_cpu" = ia64; then
  26692. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  26693. - allow_undefined_flag_F77="-z nodefs"
  26694. - archive_expsym_cmds_F77="\$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"
  26695. - else
  26696. - # Determine the default libpath from the value encoded in an empty executable.
  26697. - cat >conftest.$ac_ext <<_ACEOF
  26698. - program main
  26699. -
  26700. - end
  26701. + ;
  26702. + return 0;
  26703. +}
  26704. _ACEOF
  26705. -rm -f conftest.$ac_objext conftest$ac_exeext
  26706. -if { (ac_try="$ac_link"
  26707. -case "(($ac_try" in
  26708. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26709. - *) ac_try_echo=$ac_try;;
  26710. +if ac_fn_c_try_compile "$LINENO"; then :
  26711. + ac_cv_sys_large_files=1; break
  26712. +fi
  26713. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26714. + ac_cv_sys_large_files=unknown
  26715. + break
  26716. +done
  26717. +fi
  26718. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  26719. +$as_echo "$ac_cv_sys_large_files" >&6; }
  26720. +case $ac_cv_sys_large_files in #(
  26721. + no | unknown) ;;
  26722. + *)
  26723. +cat >>confdefs.h <<_ACEOF
  26724. +#define _LARGE_FILES $ac_cv_sys_large_files
  26725. +_ACEOF
  26726. +;;
  26727. esac
  26728. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26729. - (eval "$ac_link") 2>conftest.er1
  26730. - ac_status=$?
  26731. - grep -v '^ *+' conftest.er1 >conftest.err
  26732. - rm -f conftest.er1
  26733. - cat conftest.err >&5
  26734. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26735. - (exit $ac_status); } && {
  26736. - test -z "$ac_f77_werror_flag" ||
  26737. - test ! -s conftest.err
  26738. - } && test -s conftest$ac_exeext &&
  26739. - $as_test_x conftest$ac_exeext; then
  26740. -
  26741. -lt_aix_libpath_sed='
  26742. - /Import File Strings/,/^$/ {
  26743. - /^0/ {
  26744. - s/^0 *\(.*\)$/\1/
  26745. - p
  26746. - }
  26747. - }'
  26748. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26749. -# Check for a 64-bit object if we didn't find anything.
  26750. -if test -z "$aix_libpath"; then
  26751. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26752. +rm -rf conftest*
  26753. + fi
  26754. fi
  26755. +
  26756. +
  26757. +
  26758. +DEBUG="-g"
  26759. +if test -z "$GCC"; then
  26760. + XIPH_CPPFLAGS="-D_REENTRANT"
  26761. + PROFILE="-g -p"
  26762. else
  26763. - echo "$as_me: failed program was:" >&5
  26764. -sed 's/^/| /' conftest.$ac_ext >&5
  26765. + XIPH_CPPFLAGS="-Wall -ffast-math -fsigned-char"
  26766. + PROFILE="-pg -g"
  26767. +$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  26768. fi
  26769. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  26770. - conftest$ac_exeext conftest.$ac_ext
  26771. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  26772. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  26773. - # Warning - without using the other run time loading flags,
  26774. - # -berok will link without error, but may produce a broken library.
  26775. - no_undefined_flag_F77=' ${wl}-bernotok'
  26776. - allow_undefined_flag_F77=' ${wl}-berok'
  26777. - # Exported symbols can be pulled into shared objects from archives
  26778. - whole_archive_flag_spec_F77='$convenience'
  26779. - archive_cmds_need_lc_F77=yes
  26780. - # This is similar to how AIX traditionally builds its shared libraries.
  26781. - archive_expsym_cmds_F77="\$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'
  26782. - fi
  26783. - fi
  26784. - ;;
  26785. - amigaos*)
  26786. - 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)'
  26787. - hardcode_libdir_flag_spec_F77='-L$libdir'
  26788. - hardcode_minus_L_F77=yes
  26789. - # see comment about different semantics on the GNU ld section
  26790. - ld_shlibs_F77=no
  26791. - ;;
  26792. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  26793. +$as_echo_n "checking for ANSI C header files... " >&6; }
  26794. +if test "${ac_cv_header_stdc+set}" = set; then :
  26795. + $as_echo_n "(cached) " >&6
  26796. +else
  26797. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26798. +/* end confdefs.h. */
  26799. +#include <stdlib.h>
  26800. +#include <stdarg.h>
  26801. +#include <string.h>
  26802. +#include <float.h>
  26803. - bsdi[45]*)
  26804. - export_dynamic_flag_spec_F77=-rdynamic
  26805. - ;;
  26806. +int
  26807. +main ()
  26808. +{
  26809. - cygwin* | mingw* | pw32*)
  26810. - # When not using gcc, we currently assume that we are using
  26811. - # Microsoft Visual C++.
  26812. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  26813. - # no search path for DLLs.
  26814. - hardcode_libdir_flag_spec_F77=' '
  26815. - allow_undefined_flag_F77=unsupported
  26816. - # Tell ltmain to make .lib files, not .a files.
  26817. - libext=lib
  26818. - # Tell ltmain to make .dll files, not .so files.
  26819. - shrext_cmds=".dll"
  26820. - # FIXME: Setting linknames here is a bad hack.
  26821. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  26822. - # The linker will automatically build a .lib file if we build a DLL.
  26823. - old_archive_From_new_cmds_F77='true'
  26824. - # FIXME: Should let the user specify the lib program.
  26825. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  26826. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  26827. - enable_shared_with_static_runtimes_F77=yes
  26828. - ;;
  26829. + ;
  26830. + return 0;
  26831. +}
  26832. +_ACEOF
  26833. +if ac_fn_c_try_compile "$LINENO"; then :
  26834. + ac_cv_header_stdc=yes
  26835. +else
  26836. + ac_cv_header_stdc=no
  26837. +fi
  26838. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26839. - darwin* | rhapsody*)
  26840. - case $host_os in
  26841. - rhapsody* | darwin1.[012])
  26842. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  26843. - ;;
  26844. - *) # Darwin 1.3 on
  26845. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  26846. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  26847. - else
  26848. - case ${MACOSX_DEPLOYMENT_TARGET} in
  26849. - 10.[012])
  26850. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  26851. - ;;
  26852. - 10.*)
  26853. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  26854. - ;;
  26855. - esac
  26856. - fi
  26857. - ;;
  26858. - esac
  26859. - archive_cmds_need_lc_F77=no
  26860. - hardcode_direct_F77=no
  26861. - hardcode_automatic_F77=yes
  26862. - hardcode_shlibpath_var_F77=unsupported
  26863. - whole_archive_flag_spec_F77=''
  26864. - link_all_deplibs_F77=yes
  26865. - if test "$GCC" = yes ; then
  26866. - output_verbose_link_cmd='echo'
  26867. - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  26868. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  26869. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  26870. - archive_expsym_cmds_F77='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}'
  26871. - 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}'
  26872. - else
  26873. - case $cc_basename in
  26874. - xlc*)
  26875. - output_verbose_link_cmd='echo'
  26876. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  26877. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  26878. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  26879. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  26880. - 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}'
  26881. - ;;
  26882. - *)
  26883. - ld_shlibs_F77=no
  26884. - ;;
  26885. - esac
  26886. - fi
  26887. - ;;
  26888. +if test $ac_cv_header_stdc = yes; then
  26889. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  26890. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26891. +/* end confdefs.h. */
  26892. +#include <string.h>
  26893. - dgux*)
  26894. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26895. - hardcode_libdir_flag_spec_F77='-L$libdir'
  26896. - hardcode_shlibpath_var_F77=no
  26897. - ;;
  26898. +_ACEOF
  26899. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26900. + $EGREP "memchr" >/dev/null 2>&1; then :
  26901. - freebsd1*)
  26902. - ld_shlibs_F77=no
  26903. - ;;
  26904. +else
  26905. + ac_cv_header_stdc=no
  26906. +fi
  26907. +rm -f conftest*
  26908. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  26909. - # support. Future versions do this automatically, but an explicit c++rt0.o
  26910. - # does not break anything, and helps significantly (at the cost of a little
  26911. - # extra space).
  26912. - freebsd2.2*)
  26913. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  26914. - hardcode_libdir_flag_spec_F77='-R$libdir'
  26915. - hardcode_direct_F77=yes
  26916. - hardcode_shlibpath_var_F77=no
  26917. - ;;
  26918. +fi
  26919. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  26920. - freebsd2*)
  26921. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26922. - hardcode_direct_F77=yes
  26923. - hardcode_minus_L_F77=yes
  26924. - hardcode_shlibpath_var_F77=no
  26925. - ;;
  26926. +if test $ac_cv_header_stdc = yes; then
  26927. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  26928. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26929. +/* end confdefs.h. */
  26930. +#include <stdlib.h>
  26931. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  26932. - freebsd* | dragonfly*)
  26933. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  26934. - hardcode_libdir_flag_spec_F77='-R$libdir'
  26935. - hardcode_direct_F77=yes
  26936. - hardcode_shlibpath_var_F77=no
  26937. - ;;
  26938. +_ACEOF
  26939. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26940. + $EGREP "free" >/dev/null 2>&1; then :
  26941. - hpux9*)
  26942. - if test "$GCC" = yes; then
  26943. - 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'
  26944. - else
  26945. - 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'
  26946. - fi
  26947. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  26948. - hardcode_libdir_separator_F77=:
  26949. - hardcode_direct_F77=yes
  26950. +else
  26951. + ac_cv_header_stdc=no
  26952. +fi
  26953. +rm -f conftest*
  26954. - # hardcode_minus_L: Not really in the search PATH,
  26955. - # but as the default location of the library.
  26956. - hardcode_minus_L_F77=yes
  26957. - export_dynamic_flag_spec_F77='${wl}-E'
  26958. - ;;
  26959. +fi
  26960. - hpux10*)
  26961. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  26962. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26963. - else
  26964. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  26965. - fi
  26966. - if test "$with_gnu_ld" = no; then
  26967. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  26968. - hardcode_libdir_separator_F77=:
  26969. +if test $ac_cv_header_stdc = yes; then
  26970. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  26971. + if test "$cross_compiling" = yes; then :
  26972. + :
  26973. +else
  26974. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26975. +/* end confdefs.h. */
  26976. +#include <ctype.h>
  26977. +#include <stdlib.h>
  26978. +#if ((' ' & 0x0FF) == 0x020)
  26979. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  26980. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  26981. +#else
  26982. +# define ISLOWER(c) \
  26983. + (('a' <= (c) && (c) <= 'i') \
  26984. + || ('j' <= (c) && (c) <= 'r') \
  26985. + || ('s' <= (c) && (c) <= 'z'))
  26986. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  26987. +#endif
  26988. - hardcode_direct_F77=yes
  26989. - export_dynamic_flag_spec_F77='${wl}-E'
  26990. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  26991. +int
  26992. +main ()
  26993. +{
  26994. + int i;
  26995. + for (i = 0; i < 256; i++)
  26996. + if (XOR (islower (i), ISLOWER (i))
  26997. + || toupper (i) != TOUPPER (i))
  26998. + return 2;
  26999. + return 0;
  27000. +}
  27001. +_ACEOF
  27002. +if ac_fn_c_try_run "$LINENO"; then :
  27003. - # hardcode_minus_L: Not really in the search PATH,
  27004. - # but as the default location of the library.
  27005. - hardcode_minus_L_F77=yes
  27006. - fi
  27007. - ;;
  27008. +else
  27009. + ac_cv_header_stdc=no
  27010. +fi
  27011. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  27012. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  27013. +fi
  27014. - hpux11*)
  27015. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  27016. - case $host_cpu in
  27017. - hppa*64*)
  27018. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27019. - ;;
  27020. - ia64*)
  27021. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  27022. - ;;
  27023. - *)
  27024. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  27025. - ;;
  27026. - esac
  27027. - else
  27028. - case $host_cpu in
  27029. - hppa*64*)
  27030. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27031. - ;;
  27032. - ia64*)
  27033. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  27034. - ;;
  27035. - *)
  27036. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  27037. - ;;
  27038. - esac
  27039. - fi
  27040. - if test "$with_gnu_ld" = no; then
  27041. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  27042. - hardcode_libdir_separator_F77=:
  27043. +fi
  27044. +fi
  27045. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  27046. +$as_echo "$ac_cv_header_stdc" >&6; }
  27047. +if test $ac_cv_header_stdc = yes; then
  27048. - case $host_cpu in
  27049. - hppa*64*|ia64*)
  27050. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  27051. - hardcode_direct_F77=no
  27052. - hardcode_shlibpath_var_F77=no
  27053. - ;;
  27054. - *)
  27055. - hardcode_direct_F77=yes
  27056. - export_dynamic_flag_spec_F77='${wl}-E'
  27057. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  27058. - # hardcode_minus_L: Not really in the search PATH,
  27059. - # but as the default location of the library.
  27060. - hardcode_minus_L_F77=yes
  27061. - ;;
  27062. - esac
  27063. - fi
  27064. - ;;
  27065. +fi
  27066. - irix5* | irix6* | nonstopux*)
  27067. - if test "$GCC" = yes; then
  27068. - 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'
  27069. - else
  27070. - 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'
  27071. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  27072. - fi
  27073. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  27074. - hardcode_libdir_separator_F77=:
  27075. - link_all_deplibs_F77=yes
  27076. - ;;
  27077. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  27078. +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  27079. +if test "${ac_cv_header_time+set}" = set; then :
  27080. + $as_echo_n "(cached) " >&6
  27081. +else
  27082. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27083. +/* end confdefs.h. */
  27084. +#include <sys/types.h>
  27085. +#include <sys/time.h>
  27086. +#include <time.h>
  27087. - netbsd*)
  27088. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  27089. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  27090. - else
  27091. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  27092. - fi
  27093. - hardcode_libdir_flag_spec_F77='-R$libdir'
  27094. - hardcode_direct_F77=yes
  27095. - hardcode_shlibpath_var_F77=no
  27096. - ;;
  27097. +int
  27098. +main ()
  27099. +{
  27100. +if ((struct tm *) 0)
  27101. +return 0;
  27102. + ;
  27103. + return 0;
  27104. +}
  27105. +_ACEOF
  27106. +if ac_fn_c_try_compile "$LINENO"; then :
  27107. + ac_cv_header_time=yes
  27108. +else
  27109. + ac_cv_header_time=no
  27110. +fi
  27111. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27112. +fi
  27113. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  27114. +$as_echo "$ac_cv_header_time" >&6; }
  27115. +if test $ac_cv_header_time = yes; then
  27116. - newsos6)
  27117. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27118. - hardcode_direct_F77=yes
  27119. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  27120. - hardcode_libdir_separator_F77=:
  27121. - hardcode_shlibpath_var_F77=no
  27122. - ;;
  27123. +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  27124. - openbsd*)
  27125. - if test -f /usr/libexec/ld.so; then
  27126. - hardcode_direct_F77=yes
  27127. - hardcode_shlibpath_var_F77=no
  27128. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27129. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  27130. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  27131. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  27132. - export_dynamic_flag_spec_F77='${wl}-E'
  27133. - else
  27134. - case $host_os in
  27135. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  27136. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  27137. - hardcode_libdir_flag_spec_F77='-R$libdir'
  27138. - ;;
  27139. - *)
  27140. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  27141. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  27142. - ;;
  27143. - esac
  27144. - fi
  27145. - else
  27146. - ld_shlibs_F77=no
  27147. - fi
  27148. - ;;
  27149. +fi
  27150. - os2*)
  27151. - hardcode_libdir_flag_spec_F77='-L$libdir'
  27152. - hardcode_minus_L_F77=yes
  27153. - allow_undefined_flag_F77=unsupported
  27154. - 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'
  27155. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  27156. - ;;
  27157. - osf3*)
  27158. - if test "$GCC" = yes; then
  27159. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  27160. - 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'
  27161. - else
  27162. - allow_undefined_flag_F77=' -expect_unresolved \*'
  27163. - 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'
  27164. - fi
  27165. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  27166. - hardcode_libdir_separator_F77=:
  27167. - ;;
  27168. +for ac_header in alloca.h
  27169. +do :
  27170. + ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
  27171. +if test "x$ac_cv_header_alloca_h" = x""yes; then :
  27172. + cat >>confdefs.h <<_ACEOF
  27173. +#define HAVE_ALLOCA_H 1
  27174. +_ACEOF
  27175. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  27176. - if test "$GCC" = yes; then
  27177. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  27178. - 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'
  27179. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  27180. - else
  27181. - allow_undefined_flag_F77=' -expect_unresolved \*'
  27182. - 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'
  27183. - 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~
  27184. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  27185. +fi
  27186. - # Both c and cxx compiler support -rpath directly
  27187. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  27188. - fi
  27189. - hardcode_libdir_separator_F77=:
  27190. - ;;
  27191. +done
  27192. - solaris*)
  27193. - no_undefined_flag_F77=' -z text'
  27194. - if test "$GCC" = yes; then
  27195. - wlarc='${wl}'
  27196. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27197. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27198. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  27199. - else
  27200. - wlarc=''
  27201. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27202. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27203. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  27204. - fi
  27205. - hardcode_libdir_flag_spec_F77='-R$libdir'
  27206. - hardcode_shlibpath_var_F77=no
  27207. - case $host_os in
  27208. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  27209. - *)
  27210. - # The compiler driver will combine and reorder linker options,
  27211. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  27212. - # but is careful enough not to reorder.
  27213. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  27214. - if test "$GCC" = yes; then
  27215. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  27216. - else
  27217. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  27218. - fi
  27219. - ;;
  27220. - esac
  27221. - link_all_deplibs_F77=yes
  27222. - ;;
  27223. +for ac_header in pwd.h
  27224. +do :
  27225. + ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  27226. +if test "x$ac_cv_header_pwd_h" = x""yes; then :
  27227. + cat >>confdefs.h <<_ACEOF
  27228. +#define HAVE_PWD_H 1
  27229. +_ACEOF
  27230. - sunos4*)
  27231. - if test "x$host_vendor" = xsequent; then
  27232. - # Use $CC to link under sequent, because it throws in some extra .o
  27233. - # files that make .init and .fini sections work.
  27234. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  27235. - else
  27236. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  27237. - fi
  27238. - hardcode_libdir_flag_spec_F77='-L$libdir'
  27239. - hardcode_direct_F77=yes
  27240. - hardcode_minus_L_F77=yes
  27241. - hardcode_shlibpath_var_F77=no
  27242. - ;;
  27243. +$as_echo "#define CHUID 1" >>confdefs.h
  27244. - sysv4)
  27245. - case $host_vendor in
  27246. - sni)
  27247. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27248. - hardcode_direct_F77=yes # is this really true???
  27249. - ;;
  27250. - siemens)
  27251. - ## LD is ld it makes a PLAMLIB
  27252. - ## CC just makes a GrossModule.
  27253. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  27254. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  27255. - hardcode_direct_F77=no
  27256. - ;;
  27257. - motorola)
  27258. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27259. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  27260. - ;;
  27261. - esac
  27262. - runpath_var='LD_RUN_PATH'
  27263. - hardcode_shlibpath_var_F77=no
  27264. - ;;
  27265. +fi
  27266. - sysv4.3*)
  27267. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27268. - hardcode_shlibpath_var_F77=no
  27269. - export_dynamic_flag_spec_F77='-Bexport'
  27270. - ;;
  27271. +done
  27272. - sysv4*MP*)
  27273. - if test -d /usr/nec; then
  27274. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27275. - hardcode_shlibpath_var_F77=no
  27276. - runpath_var=LD_RUN_PATH
  27277. - hardcode_runpath_var=yes
  27278. - ld_shlibs_F77=yes
  27279. - fi
  27280. - ;;
  27281. +for ac_header in unistd.h
  27282. +do :
  27283. + ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  27284. +if test "x$ac_cv_header_unistd_h" = x""yes; then :
  27285. + cat >>confdefs.h <<_ACEOF
  27286. +#define HAVE_UNISTD_H 1
  27287. +_ACEOF
  27288. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  27289. - no_undefined_flag_F77='${wl}-z,text'
  27290. - archive_cmds_need_lc_F77=no
  27291. - hardcode_shlibpath_var_F77=no
  27292. - runpath_var='LD_RUN_PATH'
  27293. +$as_echo "#define CHROOT 1" >>confdefs.h
  27294. - if test "$GCC" = yes; then
  27295. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27296. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27297. - else
  27298. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27299. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  27300. - fi
  27301. - ;;
  27302. +fi
  27303. - sysv5* | sco3.2v5* | sco5v6*)
  27304. - # Note: We can NOT use -z defs as we might desire, because we do not
  27305. - # link with -lc, and that would cause any symbols used from libc to
  27306. - # always be unresolved, which means just about no library would
  27307. - # ever link correctly. If we're not using GNU ld we use -z text
  27308. - # though, which does catch some bad symbols but isn't as heavy-handed
  27309. - # as -z defs.
  27310. - no_undefined_flag_F77='${wl}-z,text'
  27311. - allow_undefined_flag_F77='${wl}-z,nodefs'
  27312. - archive_cmds_need_lc_F77=no
  27313. - hardcode_shlibpath_var_F77=no
  27314. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  27315. - hardcode_libdir_separator_F77=':'
  27316. - link_all_deplibs_F77=yes
  27317. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  27318. - runpath_var='LD_RUN_PATH'
  27319. +done
  27320. - if test "$GCC" = yes; then
  27321. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27322. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27323. - else
  27324. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27325. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27326. - fi
  27327. - ;;
  27328. - uts4*)
  27329. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27330. - hardcode_libdir_flag_spec_F77='-L$libdir'
  27331. - hardcode_shlibpath_var_F77=no
  27332. - ;;
  27333. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
  27334. +$as_echo_n "checking for __func__... " >&6; }
  27335. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27336. +/* end confdefs.h. */
  27337. - *)
  27338. - ld_shlibs_F77=no
  27339. - ;;
  27340. - esac
  27341. - fi
  27342. +int
  27343. +main ()
  27344. +{
  27345. +const char *x = __func__;
  27346. + ;
  27347. + return 0;
  27348. +}
  27349. +_ACEOF
  27350. +if ac_fn_c_try_compile "$LINENO"; then :
  27351. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27352. +$as_echo "yes" >&6; }
  27353. +else
  27354. -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  27355. -echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  27356. -test "$ld_shlibs_F77" = no && can_build_shared=no
  27357. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27358. +/* end confdefs.h. */
  27359. -#
  27360. -# Do we need to explicitly link libc?
  27361. -#
  27362. -case "x$archive_cmds_need_lc_F77" in
  27363. -x|xyes)
  27364. - # Assume -lc should be added
  27365. - archive_cmds_need_lc_F77=yes
  27366. +int
  27367. +main ()
  27368. +{
  27369. +const char *x = __FUNCTION__;
  27370. + ;
  27371. + return 0;
  27372. +}
  27373. +_ACEOF
  27374. +if ac_fn_c_try_compile "$LINENO"; then :
  27375. + $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
  27376. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  27377. - case $archive_cmds_F77 in
  27378. - *'~'*)
  27379. - # FIXME: we may have to deal with multi-command sequences.
  27380. - ;;
  27381. - '$CC '*)
  27382. - # Test whether the compiler implicitly links with -lc since on some
  27383. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  27384. - # to ld, don't add -lc before -lgcc.
  27385. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  27386. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  27387. - $rm conftest*
  27388. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  27389. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using __FUNCTION__" >&5
  27390. +$as_echo "Using __FUNCTION__" >&6; }
  27391. +else
  27392. + $as_echo "#define __func__ \"__FILE__\"" >>confdefs.h
  27393. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27394. - (eval $ac_compile) 2>&5
  27395. - ac_status=$?
  27396. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27397. - (exit $ac_status); } 2>conftest.err; then
  27398. - soname=conftest
  27399. - lib=conftest
  27400. - libobjs=conftest.$ac_objext
  27401. - deplibs=
  27402. - wl=$lt_prog_compiler_wl_F77
  27403. - pic_flag=$lt_prog_compiler_pic_F77
  27404. - compiler_flags=-v
  27405. - linker_flags=-v
  27406. - verstring=
  27407. - output_objdir=.
  27408. - libname=conftest
  27409. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  27410. - allow_undefined_flag_F77=
  27411. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  27412. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  27413. - ac_status=$?
  27414. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27415. - (exit $ac_status); }
  27416. - then
  27417. - archive_cmds_need_lc_F77=no
  27418. - else
  27419. - archive_cmds_need_lc_F77=yes
  27420. - fi
  27421. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  27422. - else
  27423. - cat conftest.err 1>&5
  27424. - fi
  27425. - $rm conftest*
  27426. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  27427. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  27428. - ;;
  27429. - esac
  27430. - fi
  27431. - ;;
  27432. -esac
  27433. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: using __FILE__" >&5
  27434. +$as_echo "using __FILE__" >&6; }
  27435. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  27436. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  27437. -library_names_spec=
  27438. -libname_spec='lib$name'
  27439. -soname_spec=
  27440. -shrext_cmds=".so"
  27441. -postinstall_cmds=
  27442. -postuninstall_cmds=
  27443. -finish_cmds=
  27444. -finish_eval=
  27445. -shlibpath_var=
  27446. -shlibpath_overrides_runpath=unknown
  27447. -version_type=none
  27448. -dynamic_linker="$host_os ld.so"
  27449. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  27450. +fi
  27451. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27452. -need_lib_prefix=unknown
  27453. -hardcode_into_libs=no
  27454. +fi
  27455. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27456. -# when you set need_version to no, make sure it does not cause -set_version
  27457. -# flags to be left without arguments
  27458. -need_version=unknown
  27459. -case $host_os in
  27460. -aix3*)
  27461. - version_type=linux
  27462. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  27463. - shlibpath_var=LIBPATH
  27464. - # AIX 3 has no versioning support, so we append a major version to the name.
  27465. - soname_spec='${libname}${release}${shared_ext}$major'
  27466. - ;;
  27467. +for ac_func in localtime_r poll
  27468. +do :
  27469. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27470. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  27471. +eval as_val=\$$as_ac_var
  27472. + if test "x$as_val" = x""yes; then :
  27473. + cat >>confdefs.h <<_ACEOF
  27474. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27475. +_ACEOF
  27476. -aix4* | aix5*)
  27477. - version_type=linux
  27478. - need_lib_prefix=no
  27479. - need_version=no
  27480. - hardcode_into_libs=yes
  27481. - if test "$host_cpu" = ia64; then
  27482. - # AIX 5 supports IA64
  27483. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  27484. - shlibpath_var=LD_LIBRARY_PATH
  27485. +fi
  27486. +done
  27487. +
  27488. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
  27489. +$as_echo_n "checking for library containing nanosleep... " >&6; }
  27490. +if test "${ac_cv_search_nanosleep+set}" = set; then :
  27491. + $as_echo_n "(cached) " >&6
  27492. +else
  27493. + ac_func_search_save_LIBS=$LIBS
  27494. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27495. +/* end confdefs.h. */
  27496. +
  27497. +/* Override any GCC internal prototype to avoid an error.
  27498. + Use char because int might match the return type of a GCC
  27499. + builtin and then its argument prototype would still apply. */
  27500. +#ifdef __cplusplus
  27501. +extern "C"
  27502. +#endif
  27503. +char nanosleep ();
  27504. +int
  27505. +main ()
  27506. +{
  27507. +return nanosleep ();
  27508. + ;
  27509. + return 0;
  27510. +}
  27511. +_ACEOF
  27512. +for ac_lib in '' rt posix4; do
  27513. + if test -z "$ac_lib"; then
  27514. + ac_res="none required"
  27515. else
  27516. - # With GCC up to 2.95.x, collect2 would create an import file
  27517. - # for dependence libraries. The import file would start with
  27518. - # the line `#! .'. This would cause the generated library to
  27519. - # depend on `.', always an invalid library. This was fixed in
  27520. - # development snapshots of GCC prior to 3.0.
  27521. - case $host_os in
  27522. - aix4 | aix4.[01] | aix4.[01].*)
  27523. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  27524. - echo ' yes '
  27525. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  27526. - :
  27527. - else
  27528. - can_build_shared=no
  27529. - fi
  27530. - ;;
  27531. - esac
  27532. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  27533. - # soname into executable. Probably we can add versioning support to
  27534. - # collect2, so additional links can be useful in future.
  27535. - if test "$aix_use_runtimelinking" = yes; then
  27536. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  27537. - # instead of lib<name>.a to let people know that these are not
  27538. - # typical AIX shared libraries.
  27539. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27540. - else
  27541. - # We preserve .a as extension for shared libraries through AIX4.2
  27542. - # and later when we are not doing run time linking.
  27543. - library_names_spec='${libname}${release}.a $libname.a'
  27544. - soname_spec='${libname}${release}${shared_ext}$major'
  27545. - fi
  27546. - shlibpath_var=LIBPATH
  27547. + ac_res=-l$ac_lib
  27548. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  27549. fi
  27550. - ;;
  27551. + if ac_fn_c_try_link "$LINENO"; then :
  27552. + ac_cv_search_nanosleep=$ac_res
  27553. +fi
  27554. +rm -f core conftest.err conftest.$ac_objext \
  27555. + conftest$ac_exeext
  27556. + if test "${ac_cv_search_nanosleep+set}" = set; then :
  27557. + break
  27558. +fi
  27559. +done
  27560. +if test "${ac_cv_search_nanosleep+set}" = set; then :
  27561. -amigaos*)
  27562. - library_names_spec='$libname.ixlibrary $libname.a'
  27563. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  27564. - 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'
  27565. - ;;
  27566. +else
  27567. + ac_cv_search_nanosleep=no
  27568. +fi
  27569. +rm conftest.$ac_ext
  27570. +LIBS=$ac_func_search_save_LIBS
  27571. +fi
  27572. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
  27573. +$as_echo "$ac_cv_search_nanosleep" >&6; }
  27574. +ac_res=$ac_cv_search_nanosleep
  27575. +if test "$ac_res" != no; then :
  27576. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  27577. -beos*)
  27578. - library_names_spec='${libname}${shared_ext}'
  27579. - dynamic_linker="$host_os ld.so"
  27580. - shlibpath_var=LIBRARY_PATH
  27581. - ;;
  27582. +$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
  27583. -bsdi[45]*)
  27584. - version_type=linux
  27585. - need_version=no
  27586. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27587. - soname_spec='${libname}${release}${shared_ext}$major'
  27588. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  27589. - shlibpath_var=LD_LIBRARY_PATH
  27590. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  27591. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  27592. - # the default ld.so.conf also contains /usr/contrib/lib and
  27593. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  27594. - # libtool to hard-code these into programs
  27595. - ;;
  27596. +fi
  27597. -cygwin* | mingw* | pw32*)
  27598. - version_type=windows
  27599. - shrext_cmds=".dll"
  27600. - need_version=no
  27601. - need_lib_prefix=no
  27602. +for ac_header in sys/socket.h
  27603. +do :
  27604. + ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  27605. +if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
  27606. + cat >>confdefs.h <<_ACEOF
  27607. +#define HAVE_SYS_SOCKET_H 1
  27608. +_ACEOF
  27609. - case $GCC,$host_os in
  27610. - yes,cygwin* | yes,mingw* | yes,pw32*)
  27611. - library_names_spec='$libname.dll.a'
  27612. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  27613. - postinstall_cmds='base_file=`basename \${file}`~
  27614. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  27615. - dldir=$destdir/`dirname \$dlpath`~
  27616. - test -d \$dldir || mkdir -p \$dldir~
  27617. - $install_prog $dir/$dlname \$dldir/$dlname~
  27618. - chmod a+x \$dldir/$dlname'
  27619. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  27620. - dlpath=$dir/\$dldll~
  27621. - $rm \$dlpath'
  27622. - shlibpath_overrides_runpath=yes
  27623. +fi
  27624. - case $host_os in
  27625. - cygwin*)
  27626. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  27627. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27628. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  27629. - ;;
  27630. - mingw*)
  27631. - # MinGW DLLs use traditional 'lib' prefix
  27632. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27633. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  27634. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  27635. - # It is most probably a Windows format PATH printed by
  27636. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  27637. - # path with ; separators, and with drive letters. We can handle the
  27638. - # drive letters (cygwin fileutils understands them), so leave them,
  27639. - # especially as we might pass files found there to a mingw objdump,
  27640. - # which wouldn't understand a cygwinified path. Ahh.
  27641. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  27642. - else
  27643. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  27644. - fi
  27645. - ;;
  27646. - pw32*)
  27647. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  27648. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27649. - ;;
  27650. - esac
  27651. - ;;
  27652. +done
  27653. - *)
  27654. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  27655. - ;;
  27656. - esac
  27657. - dynamic_linker='Win32 ld.exe'
  27658. - # FIXME: first we should search . and the directory the executable is in
  27659. - shlibpath_var=PATH
  27660. - ;;
  27661. +ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#if HAVE_SYS_TYPES_H
  27662. +# include <sys/types.h>
  27663. +#endif
  27664. +#if HAVE_SYS_SOCKET_H
  27665. +# include <sys/socket.h>
  27666. +#endif
  27667. -darwin* | rhapsody*)
  27668. - dynamic_linker="$host_os dyld"
  27669. - version_type=darwin
  27670. - need_lib_prefix=no
  27671. - need_version=no
  27672. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  27673. - soname_spec='${libname}${release}${major}$shared_ext'
  27674. - shlibpath_overrides_runpath=yes
  27675. - shlibpath_var=DYLD_LIBRARY_PATH
  27676. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  27677. +"
  27678. +if test "x$ac_cv_type_socklen_t" = x""yes; then :
  27679. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  27680. - ;;
  27681. +cat >>confdefs.h <<_ACEOF
  27682. +#define HAVE_SOCKLEN_T 1
  27683. +_ACEOF
  27684. -dgux*)
  27685. - version_type=linux
  27686. - need_lib_prefix=no
  27687. - need_version=no
  27688. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  27689. - soname_spec='${libname}${release}${shared_ext}$major'
  27690. - shlibpath_var=LD_LIBRARY_PATH
  27691. - ;;
  27692. -freebsd1*)
  27693. - dynamic_linker=no
  27694. - ;;
  27695. -
  27696. -freebsd* | dragonfly*)
  27697. - # DragonFly does not have aout. When/if they implement a new
  27698. - # versioning mechanism, adjust this.
  27699. - if test -x /usr/bin/objformat; then
  27700. - objformat=`/usr/bin/objformat`
  27701. - else
  27702. - case $host_os in
  27703. - freebsd[123]*) objformat=aout ;;
  27704. - *) objformat=elf ;;
  27705. - esac
  27706. - fi
  27707. - version_type=freebsd-$objformat
  27708. - case $version_type in
  27709. - freebsd-elf*)
  27710. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  27711. - need_version=no
  27712. - need_lib_prefix=no
  27713. - ;;
  27714. - freebsd-*)
  27715. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  27716. - need_version=yes
  27717. - ;;
  27718. - esac
  27719. - shlibpath_var=LD_LIBRARY_PATH
  27720. - case $host_os in
  27721. - freebsd2*)
  27722. - shlibpath_overrides_runpath=yes
  27723. - ;;
  27724. - freebsd3.[01]* | freebsdelf3.[01]*)
  27725. - shlibpath_overrides_runpath=yes
  27726. - hardcode_into_libs=yes
  27727. - ;;
  27728. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  27729. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  27730. - shlibpath_overrides_runpath=no
  27731. - hardcode_into_libs=yes
  27732. - ;;
  27733. - *) # from 4.6 on, and DragonFly
  27734. - shlibpath_overrides_runpath=yes
  27735. - hardcode_into_libs=yes
  27736. - ;;
  27737. - esac
  27738. - ;;
  27739. -
  27740. -gnu*)
  27741. - version_type=linux
  27742. - need_lib_prefix=no
  27743. - need_version=no
  27744. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  27745. - soname_spec='${libname}${release}${shared_ext}$major'
  27746. - shlibpath_var=LD_LIBRARY_PATH
  27747. - hardcode_into_libs=yes
  27748. - ;;
  27749. -
  27750. -hpux9* | hpux10* | hpux11*)
  27751. - # Give a soname corresponding to the major version so that dld.sl refuses to
  27752. - # link against other versions.
  27753. - version_type=sunos
  27754. - need_lib_prefix=no
  27755. - need_version=no
  27756. - case $host_cpu in
  27757. - ia64*)
  27758. - shrext_cmds='.so'
  27759. - hardcode_into_libs=yes
  27760. - dynamic_linker="$host_os dld.so"
  27761. - shlibpath_var=LD_LIBRARY_PATH
  27762. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  27763. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27764. - soname_spec='${libname}${release}${shared_ext}$major'
  27765. - if test "X$HPUX_IA64_MODE" = X32; then
  27766. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  27767. - else
  27768. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  27769. - fi
  27770. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  27771. - ;;
  27772. - hppa*64*)
  27773. - shrext_cmds='.sl'
  27774. - hardcode_into_libs=yes
  27775. - dynamic_linker="$host_os dld.sl"
  27776. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  27777. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  27778. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27779. - soname_spec='${libname}${release}${shared_ext}$major'
  27780. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  27781. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  27782. - ;;
  27783. - *)
  27784. - shrext_cmds='.sl'
  27785. - dynamic_linker="$host_os dld.sl"
  27786. - shlibpath_var=SHLIB_PATH
  27787. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  27788. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27789. - soname_spec='${libname}${release}${shared_ext}$major'
  27790. - ;;
  27791. - esac
  27792. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  27793. - postinstall_cmds='chmod 555 $lib'
  27794. - ;;
  27795. -
  27796. -interix[3-9]*)
  27797. - version_type=linux
  27798. - need_lib_prefix=no
  27799. - need_version=no
  27800. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27801. - soname_spec='${libname}${release}${shared_ext}$major'
  27802. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  27803. - shlibpath_var=LD_LIBRARY_PATH
  27804. - shlibpath_overrides_runpath=no
  27805. - hardcode_into_libs=yes
  27806. - ;;
  27807. -
  27808. -irix5* | irix6* | nonstopux*)
  27809. - case $host_os in
  27810. - nonstopux*) version_type=nonstopux ;;
  27811. - *)
  27812. - if test "$lt_cv_prog_gnu_ld" = yes; then
  27813. - version_type=linux
  27814. - else
  27815. - version_type=irix
  27816. - fi ;;
  27817. - esac
  27818. - need_lib_prefix=no
  27819. - need_version=no
  27820. - soname_spec='${libname}${release}${shared_ext}$major'
  27821. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  27822. - case $host_os in
  27823. - irix5* | nonstopux*)
  27824. - libsuff= shlibsuff=
  27825. - ;;
  27826. - *)
  27827. - case $LD in # libtool.m4 will add one of these switches to LD
  27828. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  27829. - libsuff= shlibsuff= libmagic=32-bit;;
  27830. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  27831. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  27832. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  27833. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  27834. - *) libsuff= shlibsuff= libmagic=never-match;;
  27835. - esac
  27836. - ;;
  27837. - esac
  27838. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  27839. - shlibpath_overrides_runpath=no
  27840. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  27841. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  27842. - hardcode_into_libs=yes
  27843. - ;;
  27844. -
  27845. -# No shared lib support for Linux oldld, aout, or coff.
  27846. -linux*oldld* | linux*aout* | linux*coff*)
  27847. - dynamic_linker=no
  27848. - ;;
  27849. -
  27850. -# This must be Linux ELF.
  27851. -linux* | k*bsd*-gnu)
  27852. - version_type=linux
  27853. - need_lib_prefix=no
  27854. - need_version=no
  27855. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27856. - soname_spec='${libname}${release}${shared_ext}$major'
  27857. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  27858. - shlibpath_var=LD_LIBRARY_PATH
  27859. - shlibpath_overrides_runpath=no
  27860. - # This implies no fast_install, which is unacceptable.
  27861. - # Some rework will be needed to allow for fast_install
  27862. - # before this can be enabled.
  27863. - hardcode_into_libs=yes
  27864. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  27865. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  27866. -
  27867. - # Append ld.so.conf contents to the search path
  27868. - if test -f /etc/ld.so.conf; then
  27869. - 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' ' '`
  27870. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  27871. - fi
  27872. -
  27873. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  27874. - # powerpc, because MkLinux only supported shared libraries with the
  27875. - # GNU dynamic linker. Since this was broken with cross compilers,
  27876. - # most powerpc-linux boxes support dynamic linking these days and
  27877. - # people can always --disable-shared, the test was removed, and we
  27878. - # assume the GNU/Linux dynamic linker is in use.
  27879. - dynamic_linker='GNU/Linux ld.so'
  27880. - ;;
  27881. -
  27882. -netbsd*)
  27883. - version_type=sunos
  27884. - need_lib_prefix=no
  27885. - need_version=no
  27886. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  27887. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27888. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  27889. - dynamic_linker='NetBSD (a.out) ld.so'
  27890. - else
  27891. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27892. - soname_spec='${libname}${release}${shared_ext}$major'
  27893. - dynamic_linker='NetBSD ld.elf_so'
  27894. - fi
  27895. - shlibpath_var=LD_LIBRARY_PATH
  27896. - shlibpath_overrides_runpath=yes
  27897. - hardcode_into_libs=yes
  27898. - ;;
  27899. -
  27900. -newsos6)
  27901. - version_type=linux
  27902. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27903. - shlibpath_var=LD_LIBRARY_PATH
  27904. - shlibpath_overrides_runpath=yes
  27905. - ;;
  27906. -
  27907. -nto-qnx*)
  27908. - version_type=linux
  27909. - need_lib_prefix=no
  27910. - need_version=no
  27911. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27912. - soname_spec='${libname}${release}${shared_ext}$major'
  27913. - shlibpath_var=LD_LIBRARY_PATH
  27914. - shlibpath_overrides_runpath=yes
  27915. - ;;
  27916. -
  27917. -openbsd*)
  27918. - version_type=sunos
  27919. - sys_lib_dlsearch_path_spec="/usr/lib"
  27920. - need_lib_prefix=no
  27921. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  27922. - case $host_os in
  27923. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  27924. - *) need_version=no ;;
  27925. - esac
  27926. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27927. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  27928. - shlibpath_var=LD_LIBRARY_PATH
  27929. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27930. - case $host_os in
  27931. - openbsd2.[89] | openbsd2.[89].*)
  27932. - shlibpath_overrides_runpath=no
  27933. - ;;
  27934. - *)
  27935. - shlibpath_overrides_runpath=yes
  27936. - ;;
  27937. - esac
  27938. - else
  27939. - shlibpath_overrides_runpath=yes
  27940. - fi
  27941. - ;;
  27942. -
  27943. -os2*)
  27944. - libname_spec='$name'
  27945. - shrext_cmds=".dll"
  27946. - need_lib_prefix=no
  27947. - library_names_spec='$libname${shared_ext} $libname.a'
  27948. - dynamic_linker='OS/2 ld.exe'
  27949. - shlibpath_var=LIBPATH
  27950. - ;;
  27951. -
  27952. -osf3* | osf4* | osf5*)
  27953. - version_type=osf
  27954. - need_lib_prefix=no
  27955. - need_version=no
  27956. - soname_spec='${libname}${release}${shared_ext}$major'
  27957. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27958. - shlibpath_var=LD_LIBRARY_PATH
  27959. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  27960. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  27961. - ;;
  27962. -
  27963. -rdos*)
  27964. - dynamic_linker=no
  27965. - ;;
  27966. -
  27967. -solaris*)
  27968. - version_type=linux
  27969. - need_lib_prefix=no
  27970. - need_version=no
  27971. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27972. - soname_spec='${libname}${release}${shared_ext}$major'
  27973. - shlibpath_var=LD_LIBRARY_PATH
  27974. - shlibpath_overrides_runpath=yes
  27975. - hardcode_into_libs=yes
  27976. - # ldd complains unless libraries are executable
  27977. - postinstall_cmds='chmod +x $lib'
  27978. - ;;
  27979. -
  27980. -sunos4*)
  27981. - version_type=sunos
  27982. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27983. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  27984. - shlibpath_var=LD_LIBRARY_PATH
  27985. - shlibpath_overrides_runpath=yes
  27986. - if test "$with_gnu_ld" = yes; then
  27987. - need_lib_prefix=no
  27988. - fi
  27989. - need_version=yes
  27990. - ;;
  27991. -
  27992. -sysv4 | sysv4.3*)
  27993. - version_type=linux
  27994. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27995. - soname_spec='${libname}${release}${shared_ext}$major'
  27996. - shlibpath_var=LD_LIBRARY_PATH
  27997. - case $host_vendor in
  27998. - sni)
  27999. - shlibpath_overrides_runpath=no
  28000. - need_lib_prefix=no
  28001. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  28002. - runpath_var=LD_RUN_PATH
  28003. - ;;
  28004. - siemens)
  28005. - need_lib_prefix=no
  28006. - ;;
  28007. - motorola)
  28008. - need_lib_prefix=no
  28009. - need_version=no
  28010. - shlibpath_overrides_runpath=no
  28011. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  28012. - ;;
  28013. - esac
  28014. - ;;
  28015. -
  28016. -sysv4*MP*)
  28017. - if test -d /usr/nec ;then
  28018. - version_type=linux
  28019. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  28020. - soname_spec='$libname${shared_ext}.$major'
  28021. - shlibpath_var=LD_LIBRARY_PATH
  28022. - fi
  28023. - ;;
  28024. -
  28025. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  28026. - version_type=freebsd-elf
  28027. - need_lib_prefix=no
  28028. - need_version=no
  28029. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  28030. - soname_spec='${libname}${release}${shared_ext}$major'
  28031. - shlibpath_var=LD_LIBRARY_PATH
  28032. - hardcode_into_libs=yes
  28033. - if test "$with_gnu_ld" = yes; then
  28034. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  28035. - shlibpath_overrides_runpath=no
  28036. - else
  28037. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  28038. - shlibpath_overrides_runpath=yes
  28039. - case $host_os in
  28040. - sco3.2v5*)
  28041. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  28042. - ;;
  28043. - esac
  28044. - fi
  28045. - sys_lib_dlsearch_path_spec='/usr/lib'
  28046. - ;;
  28047. -
  28048. -uts4*)
  28049. - version_type=linux
  28050. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28051. - soname_spec='${libname}${release}${shared_ext}$major'
  28052. - shlibpath_var=LD_LIBRARY_PATH
  28053. - ;;
  28054. -
  28055. -*)
  28056. - dynamic_linker=no
  28057. - ;;
  28058. -esac
  28059. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  28060. -echo "${ECHO_T}$dynamic_linker" >&6; }
  28061. -test "$dynamic_linker" = no && can_build_shared=no
  28062. -
  28063. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  28064. -if test "$GCC" = yes; then
  28065. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  28066. -fi
  28067. -
  28068. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  28069. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  28070. -hardcode_action_F77=
  28071. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  28072. - test -n "$runpath_var_F77" || \
  28073. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  28074. -
  28075. - # We can hardcode non-existant directories.
  28076. - if test "$hardcode_direct_F77" != no &&
  28077. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  28078. - # have to relink, otherwise we might link with an installed library
  28079. - # when we should be linking with a yet-to-be-installed one
  28080. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  28081. - test "$hardcode_minus_L_F77" != no; then
  28082. - # Linking always hardcodes the temporary library directory.
  28083. - hardcode_action_F77=relink
  28084. - else
  28085. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  28086. - hardcode_action_F77=immediate
  28087. - fi
  28088. -else
  28089. - # We cannot hardcode anything, or else we can only hardcode existing
  28090. - # directories.
  28091. - hardcode_action_F77=unsupported
  28092. -fi
  28093. -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  28094. -echo "${ECHO_T}$hardcode_action_F77" >&6; }
  28095. -
  28096. -if test "$hardcode_action_F77" = relink; then
  28097. - # Fast installation is not supported
  28098. - enable_fast_install=no
  28099. -elif test "$shlibpath_overrides_runpath" = yes ||
  28100. - test "$enable_shared" = no; then
  28101. - # Fast installation is not necessary
  28102. - enable_fast_install=needless
  28103. -fi
  28104. -
  28105. -
  28106. -# The else clause should only fire when bootstrapping the
  28107. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  28108. -# with your package, and you will get complaints that there are
  28109. -# no rules to generate ltmain.sh.
  28110. -if test -f "$ltmain"; then
  28111. - # See if we are running on zsh, and set the options which allow our commands through
  28112. - # without removal of \ escapes.
  28113. - if test -n "${ZSH_VERSION+set}" ; then
  28114. - setopt NO_GLOB_SUBST
  28115. - fi
  28116. - # Now quote all the things that may contain metacharacters while being
  28117. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  28118. - # variables and quote the copies for generation of the libtool script.
  28119. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  28120. - SED SHELL STRIP \
  28121. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  28122. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  28123. - deplibs_check_method reload_flag reload_cmds need_locks \
  28124. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  28125. - lt_cv_sys_global_symbol_to_c_name_address \
  28126. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  28127. - old_postinstall_cmds old_postuninstall_cmds \
  28128. - compiler_F77 \
  28129. - CC_F77 \
  28130. - LD_F77 \
  28131. - lt_prog_compiler_wl_F77 \
  28132. - lt_prog_compiler_pic_F77 \
  28133. - lt_prog_compiler_static_F77 \
  28134. - lt_prog_compiler_no_builtin_flag_F77 \
  28135. - export_dynamic_flag_spec_F77 \
  28136. - thread_safe_flag_spec_F77 \
  28137. - whole_archive_flag_spec_F77 \
  28138. - enable_shared_with_static_runtimes_F77 \
  28139. - old_archive_cmds_F77 \
  28140. - old_archive_from_new_cmds_F77 \
  28141. - predep_objects_F77 \
  28142. - postdep_objects_F77 \
  28143. - predeps_F77 \
  28144. - postdeps_F77 \
  28145. - compiler_lib_search_path_F77 \
  28146. - archive_cmds_F77 \
  28147. - archive_expsym_cmds_F77 \
  28148. - postinstall_cmds_F77 \
  28149. - postuninstall_cmds_F77 \
  28150. - old_archive_from_expsyms_cmds_F77 \
  28151. - allow_undefined_flag_F77 \
  28152. - no_undefined_flag_F77 \
  28153. - export_symbols_cmds_F77 \
  28154. - hardcode_libdir_flag_spec_F77 \
  28155. - hardcode_libdir_flag_spec_ld_F77 \
  28156. - hardcode_libdir_separator_F77 \
  28157. - hardcode_automatic_F77 \
  28158. - module_cmds_F77 \
  28159. - module_expsym_cmds_F77 \
  28160. - lt_cv_prog_compiler_c_o_F77 \
  28161. - fix_srcfile_path_F77 \
  28162. - exclude_expsyms_F77 \
  28163. - include_expsyms_F77; do
  28164. -
  28165. - case $var in
  28166. - old_archive_cmds_F77 | \
  28167. - old_archive_from_new_cmds_F77 | \
  28168. - archive_cmds_F77 | \
  28169. - archive_expsym_cmds_F77 | \
  28170. - module_cmds_F77 | \
  28171. - module_expsym_cmds_F77 | \
  28172. - old_archive_from_expsyms_cmds_F77 | \
  28173. - export_symbols_cmds_F77 | \
  28174. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  28175. - postinstall_cmds | postuninstall_cmds | \
  28176. - old_postinstall_cmds | old_postuninstall_cmds | \
  28177. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  28178. - # Double-quote double-evaled strings.
  28179. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  28180. - ;;
  28181. - *)
  28182. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  28183. - ;;
  28184. - esac
  28185. - done
  28186. -
  28187. - case $lt_echo in
  28188. - *'\$0 --fallback-echo"')
  28189. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  28190. - ;;
  28191. - esac
  28192. -
  28193. -cfgfile="$ofile"
  28194. -
  28195. - cat <<__EOF__ >> "$cfgfile"
  28196. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  28197. -
  28198. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  28199. -
  28200. -# Shell to use when invoking shell scripts.
  28201. -SHELL=$lt_SHELL
  28202. -
  28203. -# Whether or not to build shared libraries.
  28204. -build_libtool_libs=$enable_shared
  28205. -
  28206. -# Whether or not to build static libraries.
  28207. -build_old_libs=$enable_static
  28208. -
  28209. -# Whether or not to add -lc for building shared libraries.
  28210. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  28211. -
  28212. -# Whether or not to disallow shared libs when runtime libs are static
  28213. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  28214. -
  28215. -# Whether or not to optimize for fast installation.
  28216. -fast_install=$enable_fast_install
  28217. -
  28218. -# The host system.
  28219. -host_alias=$host_alias
  28220. -host=$host
  28221. -host_os=$host_os
  28222. -
  28223. -# The build system.
  28224. -build_alias=$build_alias
  28225. -build=$build
  28226. -build_os=$build_os
  28227. -
  28228. -# An echo program that does not interpret backslashes.
  28229. -echo=$lt_echo
  28230. -
  28231. -# The archiver.
  28232. -AR=$lt_AR
  28233. -AR_FLAGS=$lt_AR_FLAGS
  28234. -
  28235. -# A C compiler.
  28236. -LTCC=$lt_LTCC
  28237. -
  28238. -# LTCC compiler flags.
  28239. -LTCFLAGS=$lt_LTCFLAGS
  28240. -
  28241. -# A language-specific compiler.
  28242. -CC=$lt_compiler_F77
  28243. -
  28244. -# Is the compiler the GNU C compiler?
  28245. -with_gcc=$GCC_F77
  28246. -
  28247. -# An ERE matcher.
  28248. -EGREP=$lt_EGREP
  28249. -
  28250. -# The linker used to build libraries.
  28251. -LD=$lt_LD_F77
  28252. -
  28253. -# Whether we need hard or soft links.
  28254. -LN_S=$lt_LN_S
  28255. -
  28256. -# A BSD-compatible nm program.
  28257. -NM=$lt_NM
  28258. -
  28259. -# A symbol stripping program
  28260. -STRIP=$lt_STRIP
  28261. -
  28262. -# Used to examine libraries when file_magic_cmd begins "file"
  28263. -MAGIC_CMD=$MAGIC_CMD
  28264. -
  28265. -# Used on cygwin: DLL creation program.
  28266. -DLLTOOL="$DLLTOOL"
  28267. -
  28268. -# Used on cygwin: object dumper.
  28269. -OBJDUMP="$OBJDUMP"
  28270. -
  28271. -# Used on cygwin: assembler.
  28272. -AS="$AS"
  28273. -
  28274. -# The name of the directory that contains temporary libtool files.
  28275. -objdir=$objdir
  28276. -
  28277. -# How to create reloadable object files.
  28278. -reload_flag=$lt_reload_flag
  28279. -reload_cmds=$lt_reload_cmds
  28280. -
  28281. -# How to pass a linker flag through the compiler.
  28282. -wl=$lt_lt_prog_compiler_wl_F77
  28283. -
  28284. -# Object file suffix (normally "o").
  28285. -objext="$ac_objext"
  28286. -
  28287. -# Old archive suffix (normally "a").
  28288. -libext="$libext"
  28289. -
  28290. -# Shared library suffix (normally ".so").
  28291. -shrext_cmds='$shrext_cmds'
  28292. -
  28293. -# Executable file suffix (normally "").
  28294. -exeext="$exeext"
  28295. -
  28296. -# Additional compiler flags for building library objects.
  28297. -pic_flag=$lt_lt_prog_compiler_pic_F77
  28298. -pic_mode=$pic_mode
  28299. -
  28300. -# What is the maximum length of a command?
  28301. -max_cmd_len=$lt_cv_sys_max_cmd_len
  28302. -
  28303. -# Does compiler simultaneously support -c and -o options?
  28304. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  28305. -
  28306. -# Must we lock files when doing compilation?
  28307. -need_locks=$lt_need_locks
  28308. -
  28309. -# Do we need the lib prefix for modules?
  28310. -need_lib_prefix=$need_lib_prefix
  28311. -
  28312. -# Do we need a version for libraries?
  28313. -need_version=$need_version
  28314. -
  28315. -# Whether dlopen is supported.
  28316. -dlopen_support=$enable_dlopen
  28317. -
  28318. -# Whether dlopen of programs is supported.
  28319. -dlopen_self=$enable_dlopen_self
  28320. -
  28321. -# Whether dlopen of statically linked programs is supported.
  28322. -dlopen_self_static=$enable_dlopen_self_static
  28323. -
  28324. -# Compiler flag to prevent dynamic linking.
  28325. -link_static_flag=$lt_lt_prog_compiler_static_F77
  28326. -
  28327. -# Compiler flag to turn off builtin functions.
  28328. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  28329. -
  28330. -# Compiler flag to allow reflexive dlopens.
  28331. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  28332. -
  28333. -# Compiler flag to generate shared objects directly from archives.
  28334. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  28335. -
  28336. -# Compiler flag to generate thread-safe objects.
  28337. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  28338. -
  28339. -# Library versioning type.
  28340. -version_type=$version_type
  28341. -
  28342. -# Format of library name prefix.
  28343. -libname_spec=$lt_libname_spec
  28344. -
  28345. -# List of archive names. First name is the real one, the rest are links.
  28346. -# The last name is the one that the linker finds with -lNAME.
  28347. -library_names_spec=$lt_library_names_spec
  28348. -
  28349. -# The coded name of the library, if different from the real name.
  28350. -soname_spec=$lt_soname_spec
  28351. -
  28352. -# Commands used to build and install an old-style archive.
  28353. -RANLIB=$lt_RANLIB
  28354. -old_archive_cmds=$lt_old_archive_cmds_F77
  28355. -old_postinstall_cmds=$lt_old_postinstall_cmds
  28356. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  28357. -
  28358. -# Create an old-style archive from a shared archive.
  28359. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  28360. -
  28361. -# Create a temporary old-style archive to link instead of a shared archive.
  28362. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  28363. -
  28364. -# Commands used to build and install a shared archive.
  28365. -archive_cmds=$lt_archive_cmds_F77
  28366. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  28367. -postinstall_cmds=$lt_postinstall_cmds
  28368. -postuninstall_cmds=$lt_postuninstall_cmds
  28369. -
  28370. -# Commands used to build a loadable module (assumed same as above if empty)
  28371. -module_cmds=$lt_module_cmds_F77
  28372. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  28373. -
  28374. -# Commands to strip libraries.
  28375. -old_striplib=$lt_old_striplib
  28376. -striplib=$lt_striplib
  28377. -
  28378. -# Dependencies to place before the objects being linked to create a
  28379. -# shared library.
  28380. -predep_objects=$lt_predep_objects_F77
  28381. -
  28382. -# Dependencies to place after the objects being linked to create a
  28383. -# shared library.
  28384. -postdep_objects=$lt_postdep_objects_F77
  28385. -
  28386. -# Dependencies to place before the objects being linked to create a
  28387. -# shared library.
  28388. -predeps=$lt_predeps_F77
  28389. -
  28390. -# Dependencies to place after the objects being linked to create a
  28391. -# shared library.
  28392. -postdeps=$lt_postdeps_F77
  28393. -
  28394. -# The library search path used internally by the compiler when linking
  28395. -# a shared library.
  28396. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  28397. -
  28398. -# Method to check whether dependent libraries are shared objects.
  28399. -deplibs_check_method=$lt_deplibs_check_method
  28400. -
  28401. -# Command to use when deplibs_check_method == file_magic.
  28402. -file_magic_cmd=$lt_file_magic_cmd
  28403. -
  28404. -# Flag that allows shared libraries with undefined symbols to be built.
  28405. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  28406. -
  28407. -# Flag that forces no undefined symbols.
  28408. -no_undefined_flag=$lt_no_undefined_flag_F77
  28409. -
  28410. -# Commands used to finish a libtool library installation in a directory.
  28411. -finish_cmds=$lt_finish_cmds
  28412. -
  28413. -# Same as above, but a single script fragment to be evaled but not shown.
  28414. -finish_eval=$lt_finish_eval
  28415. -
  28416. -# Take the output of nm and produce a listing of raw symbols and C names.
  28417. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  28418. -
  28419. -# Transform the output of nm in a proper C declaration
  28420. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  28421. -
  28422. -# Transform the output of nm in a C name address pair
  28423. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  28424. -
  28425. -# This is the shared library runtime path variable.
  28426. -runpath_var=$runpath_var
  28427. -
  28428. -# This is the shared library path variable.
  28429. -shlibpath_var=$shlibpath_var
  28430. -
  28431. -# Is shlibpath searched before the hard-coded library search path?
  28432. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  28433. -
  28434. -# How to hardcode a shared library path into an executable.
  28435. -hardcode_action=$hardcode_action_F77
  28436. -
  28437. -# Whether we should hardcode library paths into libraries.
  28438. -hardcode_into_libs=$hardcode_into_libs
  28439. -
  28440. -# Flag to hardcode \$libdir into a binary during linking.
  28441. -# This must work even if \$libdir does not exist.
  28442. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  28443. -
  28444. -# If ld is used when linking, flag to hardcode \$libdir into
  28445. -# a binary during linking. This must work even if \$libdir does
  28446. -# not exist.
  28447. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  28448. -
  28449. -# Whether we need a single -rpath flag with a separated argument.
  28450. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  28451. -
  28452. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  28453. -# resulting binary.
  28454. -hardcode_direct=$hardcode_direct_F77
  28455. -
  28456. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  28457. -# resulting binary.
  28458. -hardcode_minus_L=$hardcode_minus_L_F77
  28459. -
  28460. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  28461. -# the resulting binary.
  28462. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  28463. -
  28464. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  28465. -# and all subsequent libraries and executables linked against it.
  28466. -hardcode_automatic=$hardcode_automatic_F77
  28467. -
  28468. -# Variables whose values should be saved in libtool wrapper scripts and
  28469. -# restored at relink time.
  28470. -variables_saved_for_relink="$variables_saved_for_relink"
  28471. -
  28472. -# Whether libtool must link a program against all its dependency libraries.
  28473. -link_all_deplibs=$link_all_deplibs_F77
  28474. -
  28475. -# Compile-time system search path for libraries
  28476. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  28477. -
  28478. -# Run-time system search path for libraries
  28479. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  28480. -
  28481. -# Fix the shell variable \$srcfile for the compiler.
  28482. -fix_srcfile_path=$lt_fix_srcfile_path
  28483. -
  28484. -# Set to yes if exported symbols are required.
  28485. -always_export_symbols=$always_export_symbols_F77
  28486. -
  28487. -# The commands to list exported symbols.
  28488. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  28489. -
  28490. -# The commands to extract the exported symbol list from a shared archive.
  28491. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  28492. -
  28493. -# Symbols that should not be listed in the preloaded symbols.
  28494. -exclude_expsyms=$lt_exclude_expsyms_F77
  28495. -
  28496. -# Symbols that must always be exported.
  28497. -include_expsyms=$lt_include_expsyms_F77
  28498. -
  28499. -# ### END LIBTOOL TAG CONFIG: $tagname
  28500. -
  28501. -__EOF__
  28502. -
  28503. -
  28504. -else
  28505. - # If there is no Makefile yet, we rely on a make rule to execute
  28506. - # `config.status --recheck' to rerun these tests and create the
  28507. - # libtool script then.
  28508. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  28509. - if test -f "$ltmain_in"; then
  28510. - test -f Makefile && make "$ltmain"
  28511. - fi
  28512. -fi
  28513. -
  28514. -
  28515. -ac_ext=c
  28516. -ac_cpp='$CPP $CPPFLAGS'
  28517. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28518. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28519. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28520. -
  28521. -CC="$lt_save_CC"
  28522. -
  28523. - else
  28524. - tagname=""
  28525. - fi
  28526. - ;;
  28527. -
  28528. - GCJ)
  28529. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  28530. -
  28531. -
  28532. -# Source file extension for Java test sources.
  28533. -ac_ext=java
  28534. -
  28535. -# Object file extension for compiled Java test sources.
  28536. -objext=o
  28537. -objext_GCJ=$objext
  28538. -
  28539. -# Code to be used in simple compile tests
  28540. -lt_simple_compile_test_code="class foo {}"
  28541. -
  28542. -# Code to be used in simple link tests
  28543. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  28544. -
  28545. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  28546. -
  28547. -# If no C compiler was specified, use CC.
  28548. -LTCC=${LTCC-"$CC"}
  28549. -
  28550. -# If no C compiler flags were specified, use CFLAGS.
  28551. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  28552. -
  28553. -# Allow CC to be a program name with arguments.
  28554. -compiler=$CC
  28555. -
  28556. -
  28557. -# save warnings/boilerplate of simple test code
  28558. -ac_outfile=conftest.$ac_objext
  28559. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  28560. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28561. -_lt_compiler_boilerplate=`cat conftest.err`
  28562. -$rm conftest*
  28563. -
  28564. -ac_outfile=conftest.$ac_objext
  28565. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  28566. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28567. -_lt_linker_boilerplate=`cat conftest.err`
  28568. -$rm conftest*
  28569. -
  28570. -
  28571. -# Allow CC to be a program name with arguments.
  28572. -lt_save_CC="$CC"
  28573. -CC=${GCJ-"gcj"}
  28574. -compiler=$CC
  28575. -compiler_GCJ=$CC
  28576. -for cc_temp in $compiler""; do
  28577. - case $cc_temp in
  28578. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  28579. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  28580. - \-*) ;;
  28581. - *) break;;
  28582. - esac
  28583. -done
  28584. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  28585. -
  28586. -
  28587. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  28588. -archive_cmds_need_lc_GCJ=no
  28589. -
  28590. -old_archive_cmds_GCJ=$old_archive_cmds
  28591. -
  28592. -
  28593. -lt_prog_compiler_no_builtin_flag_GCJ=
  28594. -
  28595. -if test "$GCC" = yes; then
  28596. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  28597. -
  28598. -
  28599. -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  28600. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  28601. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  28602. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28603. -else
  28604. - lt_cv_prog_compiler_rtti_exceptions=no
  28605. - ac_outfile=conftest.$ac_objext
  28606. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28607. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  28608. - # Insert the option either (1) after the last *FLAGS variable, or
  28609. - # (2) before a word containing "conftest.", or (3) at the end.
  28610. - # Note that $ac_compile itself does not contain backslashes and begins
  28611. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  28612. - # The option is referenced via a variable to avoid confusing sed.
  28613. - lt_compile=`echo "$ac_compile" | $SED \
  28614. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28615. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28616. - -e 's:$: $lt_compiler_flag:'`
  28617. - (eval echo "\"\$as_me:16377: $lt_compile\"" >&5)
  28618. - (eval "$lt_compile" 2>conftest.err)
  28619. - ac_status=$?
  28620. - cat conftest.err >&5
  28621. - echo "$as_me:16381: \$? = $ac_status" >&5
  28622. - if (exit $ac_status) && test -s "$ac_outfile"; then
  28623. - # The compiler can only warn and ignore the option if not recognized
  28624. - # So say no if there are warnings other than the usual output.
  28625. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  28626. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28627. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  28628. - lt_cv_prog_compiler_rtti_exceptions=yes
  28629. - fi
  28630. - fi
  28631. - $rm conftest*
  28632. -
  28633. -fi
  28634. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  28635. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  28636. -
  28637. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  28638. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  28639. -else
  28640. - :
  28641. -fi
  28642. -
  28643. -fi
  28644. -
  28645. -lt_prog_compiler_wl_GCJ=
  28646. -lt_prog_compiler_pic_GCJ=
  28647. -lt_prog_compiler_static_GCJ=
  28648. -
  28649. -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  28650. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  28651. -
  28652. - if test "$GCC" = yes; then
  28653. - lt_prog_compiler_wl_GCJ='-Wl,'
  28654. - lt_prog_compiler_static_GCJ='-static'
  28655. -
  28656. - case $host_os in
  28657. - aix*)
  28658. - # All AIX code is PIC.
  28659. - if test "$host_cpu" = ia64; then
  28660. - # AIX 5 now supports IA64 processor
  28661. - lt_prog_compiler_static_GCJ='-Bstatic'
  28662. - fi
  28663. - ;;
  28664. -
  28665. - amigaos*)
  28666. - # FIXME: we need at least 68020 code to build shared libraries, but
  28667. - # adding the `-m68020' flag to GCC prevents building anything better,
  28668. - # like `-m68040'.
  28669. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  28670. - ;;
  28671. -
  28672. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  28673. - # PIC is the default for these OSes.
  28674. - ;;
  28675. -
  28676. - mingw* | cygwin* | pw32* | os2*)
  28677. - # This hack is so that the source file can tell whether it is being
  28678. - # built for inclusion in a dll (and should export symbols for example).
  28679. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  28680. - # (--disable-auto-import) libraries
  28681. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  28682. - ;;
  28683. -
  28684. - darwin* | rhapsody*)
  28685. - # PIC is the default on this platform
  28686. - # Common symbols not allowed in MH_DYLIB files
  28687. - lt_prog_compiler_pic_GCJ='-fno-common'
  28688. - ;;
  28689. -
  28690. - interix[3-9]*)
  28691. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  28692. - # Instead, we relocate shared libraries at runtime.
  28693. - ;;
  28694. -
  28695. - msdosdjgpp*)
  28696. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  28697. - # on systems that don't support them.
  28698. - lt_prog_compiler_can_build_shared_GCJ=no
  28699. - enable_shared=no
  28700. - ;;
  28701. -
  28702. - sysv4*MP*)
  28703. - if test -d /usr/nec; then
  28704. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  28705. - fi
  28706. - ;;
  28707. -
  28708. - hpux*)
  28709. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  28710. - # not for PA HP-UX.
  28711. - case $host_cpu in
  28712. - hppa*64*|ia64*)
  28713. - # +Z the default
  28714. - ;;
  28715. - *)
  28716. - lt_prog_compiler_pic_GCJ='-fPIC'
  28717. - ;;
  28718. - esac
  28719. - ;;
  28720. -
  28721. - *)
  28722. - lt_prog_compiler_pic_GCJ='-fPIC'
  28723. - ;;
  28724. - esac
  28725. - else
  28726. - # PORTME Check for flag to pass linker flags through the system compiler.
  28727. - case $host_os in
  28728. - aix*)
  28729. - lt_prog_compiler_wl_GCJ='-Wl,'
  28730. - if test "$host_cpu" = ia64; then
  28731. - # AIX 5 now supports IA64 processor
  28732. - lt_prog_compiler_static_GCJ='-Bstatic'
  28733. - else
  28734. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  28735. - fi
  28736. - ;;
  28737. - darwin*)
  28738. - # PIC is the default on this platform
  28739. - # Common symbols not allowed in MH_DYLIB files
  28740. - case $cc_basename in
  28741. - xlc*)
  28742. - lt_prog_compiler_pic_GCJ='-qnocommon'
  28743. - lt_prog_compiler_wl_GCJ='-Wl,'
  28744. - ;;
  28745. - esac
  28746. - ;;
  28747. -
  28748. - mingw* | cygwin* | pw32* | os2*)
  28749. - # This hack is so that the source file can tell whether it is being
  28750. - # built for inclusion in a dll (and should export symbols for example).
  28751. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  28752. - ;;
  28753. -
  28754. - hpux9* | hpux10* | hpux11*)
  28755. - lt_prog_compiler_wl_GCJ='-Wl,'
  28756. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  28757. - # not for PA HP-UX.
  28758. - case $host_cpu in
  28759. - hppa*64*|ia64*)
  28760. - # +Z the default
  28761. - ;;
  28762. - *)
  28763. - lt_prog_compiler_pic_GCJ='+Z'
  28764. - ;;
  28765. - esac
  28766. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  28767. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  28768. - ;;
  28769. -
  28770. - irix5* | irix6* | nonstopux*)
  28771. - lt_prog_compiler_wl_GCJ='-Wl,'
  28772. - # PIC (with -KPIC) is the default.
  28773. - lt_prog_compiler_static_GCJ='-non_shared'
  28774. - ;;
  28775. -
  28776. - newsos6)
  28777. - lt_prog_compiler_pic_GCJ='-KPIC'
  28778. - lt_prog_compiler_static_GCJ='-Bstatic'
  28779. - ;;
  28780. -
  28781. - linux* | k*bsd*-gnu)
  28782. - case $cc_basename in
  28783. - icc* | ecc*)
  28784. - lt_prog_compiler_wl_GCJ='-Wl,'
  28785. - lt_prog_compiler_pic_GCJ='-KPIC'
  28786. - lt_prog_compiler_static_GCJ='-static'
  28787. - ;;
  28788. - pgcc* | pgf77* | pgf90* | pgf95*)
  28789. - # Portland Group compilers (*not* the Pentium gcc compiler,
  28790. - # which looks to be a dead project)
  28791. - lt_prog_compiler_wl_GCJ='-Wl,'
  28792. - lt_prog_compiler_pic_GCJ='-fpic'
  28793. - lt_prog_compiler_static_GCJ='-Bstatic'
  28794. - ;;
  28795. - ccc*)
  28796. - lt_prog_compiler_wl_GCJ='-Wl,'
  28797. - # All Alpha code is PIC.
  28798. - lt_prog_compiler_static_GCJ='-non_shared'
  28799. - ;;
  28800. - *)
  28801. - case `$CC -V 2>&1 | sed 5q` in
  28802. - *Sun\ C*)
  28803. - # Sun C 5.9
  28804. - lt_prog_compiler_pic_GCJ='-KPIC'
  28805. - lt_prog_compiler_static_GCJ='-Bstatic'
  28806. - lt_prog_compiler_wl_GCJ='-Wl,'
  28807. - ;;
  28808. - *Sun\ F*)
  28809. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  28810. - lt_prog_compiler_pic_GCJ='-KPIC'
  28811. - lt_prog_compiler_static_GCJ='-Bstatic'
  28812. - lt_prog_compiler_wl_GCJ=''
  28813. - ;;
  28814. - esac
  28815. - ;;
  28816. - esac
  28817. - ;;
  28818. -
  28819. - osf3* | osf4* | osf5*)
  28820. - lt_prog_compiler_wl_GCJ='-Wl,'
  28821. - # All OSF/1 code is PIC.
  28822. - lt_prog_compiler_static_GCJ='-non_shared'
  28823. - ;;
  28824. -
  28825. - rdos*)
  28826. - lt_prog_compiler_static_GCJ='-non_shared'
  28827. - ;;
  28828. -
  28829. - solaris*)
  28830. - lt_prog_compiler_pic_GCJ='-KPIC'
  28831. - lt_prog_compiler_static_GCJ='-Bstatic'
  28832. - case $cc_basename in
  28833. - f77* | f90* | f95*)
  28834. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  28835. - *)
  28836. - lt_prog_compiler_wl_GCJ='-Wl,';;
  28837. - esac
  28838. - ;;
  28839. -
  28840. - sunos4*)
  28841. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  28842. - lt_prog_compiler_pic_GCJ='-PIC'
  28843. - lt_prog_compiler_static_GCJ='-Bstatic'
  28844. - ;;
  28845. -
  28846. - sysv4 | sysv4.2uw2* | sysv4.3*)
  28847. - lt_prog_compiler_wl_GCJ='-Wl,'
  28848. - lt_prog_compiler_pic_GCJ='-KPIC'
  28849. - lt_prog_compiler_static_GCJ='-Bstatic'
  28850. - ;;
  28851. -
  28852. - sysv4*MP*)
  28853. - if test -d /usr/nec ;then
  28854. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  28855. - lt_prog_compiler_static_GCJ='-Bstatic'
  28856. - fi
  28857. - ;;
  28858. -
  28859. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  28860. - lt_prog_compiler_wl_GCJ='-Wl,'
  28861. - lt_prog_compiler_pic_GCJ='-KPIC'
  28862. - lt_prog_compiler_static_GCJ='-Bstatic'
  28863. - ;;
  28864. -
  28865. - unicos*)
  28866. - lt_prog_compiler_wl_GCJ='-Wl,'
  28867. - lt_prog_compiler_can_build_shared_GCJ=no
  28868. - ;;
  28869. -
  28870. - uts4*)
  28871. - lt_prog_compiler_pic_GCJ='-pic'
  28872. - lt_prog_compiler_static_GCJ='-Bstatic'
  28873. - ;;
  28874. -
  28875. - *)
  28876. - lt_prog_compiler_can_build_shared_GCJ=no
  28877. - ;;
  28878. - esac
  28879. - fi
  28880. -
  28881. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  28882. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  28883. -
  28884. -#
  28885. -# Check to make sure the PIC flag actually works.
  28886. -#
  28887. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  28888. -
  28889. -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  28890. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  28891. -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  28892. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28893. -else
  28894. - lt_prog_compiler_pic_works_GCJ=no
  28895. - ac_outfile=conftest.$ac_objext
  28896. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28897. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  28898. - # Insert the option either (1) after the last *FLAGS variable, or
  28899. - # (2) before a word containing "conftest.", or (3) at the end.
  28900. - # Note that $ac_compile itself does not contain backslashes and begins
  28901. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  28902. - # The option is referenced via a variable to avoid confusing sed.
  28903. - lt_compile=`echo "$ac_compile" | $SED \
  28904. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  28905. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28906. - -e 's:$: $lt_compiler_flag:'`
  28907. - (eval echo "\"\$as_me:16667: $lt_compile\"" >&5)
  28908. - (eval "$lt_compile" 2>conftest.err)
  28909. - ac_status=$?
  28910. - cat conftest.err >&5
  28911. - echo "$as_me:16671: \$? = $ac_status" >&5
  28912. - if (exit $ac_status) && test -s "$ac_outfile"; then
  28913. - # The compiler can only warn and ignore the option if not recognized
  28914. - # So say no if there are warnings other than the usual output.
  28915. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  28916. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28917. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  28918. - lt_prog_compiler_pic_works_GCJ=yes
  28919. - fi
  28920. - fi
  28921. - $rm conftest*
  28922. -
  28923. -fi
  28924. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  28925. -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  28926. -
  28927. -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  28928. - case $lt_prog_compiler_pic_GCJ in
  28929. - "" | " "*) ;;
  28930. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  28931. - esac
  28932. -else
  28933. - lt_prog_compiler_pic_GCJ=
  28934. - lt_prog_compiler_can_build_shared_GCJ=no
  28935. -fi
  28936. -
  28937. -fi
  28938. -case $host_os in
  28939. - # For platforms which do not support PIC, -DPIC is meaningless:
  28940. - *djgpp*)
  28941. - lt_prog_compiler_pic_GCJ=
  28942. - ;;
  28943. - *)
  28944. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  28945. - ;;
  28946. -esac
  28947. -
  28948. -#
  28949. -# Check to make sure the static flag actually works.
  28950. -#
  28951. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  28952. -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  28953. -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  28954. -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  28955. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28956. -else
  28957. - lt_prog_compiler_static_works_GCJ=no
  28958. - save_LDFLAGS="$LDFLAGS"
  28959. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  28960. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  28961. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  28962. - # The linker can only warn and ignore the option if not recognized
  28963. - # So say no if there are warnings
  28964. - if test -s conftest.err; then
  28965. - # Append any errors to the config.log.
  28966. - cat conftest.err 1>&5
  28967. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  28968. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  28969. - if diff conftest.exp conftest.er2 >/dev/null; then
  28970. - lt_prog_compiler_static_works_GCJ=yes
  28971. - fi
  28972. - else
  28973. - lt_prog_compiler_static_works_GCJ=yes
  28974. - fi
  28975. - fi
  28976. - $rm conftest*
  28977. - LDFLAGS="$save_LDFLAGS"
  28978. -
  28979. -fi
  28980. -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  28981. -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  28982. -
  28983. -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  28984. - :
  28985. -else
  28986. - lt_prog_compiler_static_GCJ=
  28987. -fi
  28988. -
  28989. -
  28990. -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  28991. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  28992. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  28993. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28994. -else
  28995. - lt_cv_prog_compiler_c_o_GCJ=no
  28996. - $rm -r conftest 2>/dev/null
  28997. - mkdir conftest
  28998. - cd conftest
  28999. - mkdir out
  29000. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  29001. -
  29002. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  29003. - # Insert the option either (1) after the last *FLAGS variable, or
  29004. - # (2) before a word containing "conftest.", or (3) at the end.
  29005. - # Note that $ac_compile itself does not contain backslashes and begins
  29006. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  29007. - lt_compile=`echo "$ac_compile" | $SED \
  29008. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29009. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29010. - -e 's:$: $lt_compiler_flag:'`
  29011. - (eval echo "\"\$as_me:16771: $lt_compile\"" >&5)
  29012. - (eval "$lt_compile" 2>out/conftest.err)
  29013. - ac_status=$?
  29014. - cat out/conftest.err >&5
  29015. - echo "$as_me:16775: \$? = $ac_status" >&5
  29016. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  29017. - then
  29018. - # The compiler can only warn and ignore the option if not recognized
  29019. - # So say no if there are warnings
  29020. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  29021. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  29022. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  29023. - lt_cv_prog_compiler_c_o_GCJ=yes
  29024. - fi
  29025. - fi
  29026. - chmod u+w . 2>&5
  29027. - $rm conftest*
  29028. - # SGI C++ compiler will create directory out/ii_files/ for
  29029. - # template instantiation
  29030. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  29031. - $rm out/* && rmdir out
  29032. - cd ..
  29033. - rmdir conftest
  29034. - $rm conftest*
  29035. -
  29036. -fi
  29037. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  29038. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  29039. -
  29040. -
  29041. -hard_links="nottested"
  29042. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  29043. - # do not overwrite the value of need_locks provided by the user
  29044. - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  29045. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  29046. - hard_links=yes
  29047. - $rm conftest*
  29048. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  29049. - touch conftest.a
  29050. - ln conftest.a conftest.b 2>&5 || hard_links=no
  29051. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  29052. - { echo "$as_me:$LINENO: result: $hard_links" >&5
  29053. -echo "${ECHO_T}$hard_links" >&6; }
  29054. - if test "$hard_links" = no; then
  29055. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  29056. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  29057. - need_locks=warn
  29058. - fi
  29059. -else
  29060. - need_locks=no
  29061. -fi
  29062. -
  29063. -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  29064. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  29065. -
  29066. - runpath_var=
  29067. - allow_undefined_flag_GCJ=
  29068. - enable_shared_with_static_runtimes_GCJ=no
  29069. - archive_cmds_GCJ=
  29070. - archive_expsym_cmds_GCJ=
  29071. - old_archive_From_new_cmds_GCJ=
  29072. - old_archive_from_expsyms_cmds_GCJ=
  29073. - export_dynamic_flag_spec_GCJ=
  29074. - whole_archive_flag_spec_GCJ=
  29075. - thread_safe_flag_spec_GCJ=
  29076. - hardcode_libdir_flag_spec_GCJ=
  29077. - hardcode_libdir_flag_spec_ld_GCJ=
  29078. - hardcode_libdir_separator_GCJ=
  29079. - hardcode_direct_GCJ=no
  29080. - hardcode_minus_L_GCJ=no
  29081. - hardcode_shlibpath_var_GCJ=unsupported
  29082. - link_all_deplibs_GCJ=unknown
  29083. - hardcode_automatic_GCJ=no
  29084. - module_cmds_GCJ=
  29085. - module_expsym_cmds_GCJ=
  29086. - always_export_symbols_GCJ=no
  29087. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  29088. - # include_expsyms should be a list of space-separated symbols to be *always*
  29089. - # included in the symbol list
  29090. - include_expsyms_GCJ=
  29091. - # exclude_expsyms can be an extended regexp of symbols to exclude
  29092. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  29093. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  29094. - # as well as any symbol that contains `d'.
  29095. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  29096. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  29097. - # platforms (ab)use it in PIC code, but their linkers get confused if
  29098. - # the symbol is explicitly referenced. Since portable code cannot
  29099. - # rely on this symbol name, it's probably fine to never include it in
  29100. - # preloaded symbol tables.
  29101. - extract_expsyms_cmds=
  29102. - # Just being paranoid about ensuring that cc_basename is set.
  29103. - for cc_temp in $compiler""; do
  29104. - case $cc_temp in
  29105. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  29106. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  29107. - \-*) ;;
  29108. - *) break;;
  29109. - esac
  29110. -done
  29111. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  29112. -
  29113. - case $host_os in
  29114. - cygwin* | mingw* | pw32*)
  29115. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  29116. - # When not using gcc, we currently assume that we are using
  29117. - # Microsoft Visual C++.
  29118. - if test "$GCC" != yes; then
  29119. - with_gnu_ld=no
  29120. - fi
  29121. - ;;
  29122. - interix*)
  29123. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  29124. - with_gnu_ld=yes
  29125. - ;;
  29126. - openbsd*)
  29127. - with_gnu_ld=no
  29128. - ;;
  29129. - esac
  29130. -
  29131. - ld_shlibs_GCJ=yes
  29132. - if test "$with_gnu_ld" = yes; then
  29133. - # If archive_cmds runs LD, not CC, wlarc should be empty
  29134. - wlarc='${wl}'
  29135. -
  29136. - # Set some defaults for GNU ld with shared library support. These
  29137. - # are reset later if shared libraries are not supported. Putting them
  29138. - # here allows them to be overridden if necessary.
  29139. - runpath_var=LD_RUN_PATH
  29140. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  29141. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  29142. - # ancient GNU ld didn't support --whole-archive et. al.
  29143. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  29144. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  29145. - else
  29146. - whole_archive_flag_spec_GCJ=
  29147. - fi
  29148. - supports_anon_versioning=no
  29149. - case `$LD -v 2>/dev/null` in
  29150. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  29151. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  29152. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  29153. - *\ 2.11.*) ;; # other 2.11 versions
  29154. - *) supports_anon_versioning=yes ;;
  29155. - esac
  29156. -
  29157. - # See if GNU ld supports shared libraries.
  29158. - case $host_os in
  29159. - aix3* | aix4* | aix5*)
  29160. - # On AIX/PPC, the GNU linker is very broken
  29161. - if test "$host_cpu" != ia64; then
  29162. - ld_shlibs_GCJ=no
  29163. - cat <<EOF 1>&2
  29164. -
  29165. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  29166. -*** to be unable to reliably create shared libraries on AIX.
  29167. -*** Therefore, libtool is disabling shared libraries support. If you
  29168. -*** really care for shared libraries, you may want to modify your PATH
  29169. -*** so that a non-GNU linker is found, and then restart.
  29170. -
  29171. -EOF
  29172. - fi
  29173. - ;;
  29174. -
  29175. - amigaos*)
  29176. - 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)'
  29177. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  29178. - hardcode_minus_L_GCJ=yes
  29179. -
  29180. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  29181. - # that the semantics of dynamic libraries on AmigaOS, at least up
  29182. - # to version 4, is to share data among multiple programs linked
  29183. - # with the same dynamic library. Since this doesn't match the
  29184. - # behavior of shared libraries on other platforms, we can't use
  29185. - # them.
  29186. - ld_shlibs_GCJ=no
  29187. - ;;
  29188. -
  29189. - beos*)
  29190. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  29191. - allow_undefined_flag_GCJ=unsupported
  29192. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  29193. - # support --undefined. This deserves some investigation. FIXME
  29194. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29195. - else
  29196. - ld_shlibs_GCJ=no
  29197. - fi
  29198. - ;;
  29199. -
  29200. - cygwin* | mingw* | pw32*)
  29201. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  29202. - # as there is no search path for DLLs.
  29203. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  29204. - allow_undefined_flag_GCJ=unsupported
  29205. - always_export_symbols_GCJ=no
  29206. - enable_shared_with_static_runtimes_GCJ=yes
  29207. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  29208. -
  29209. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  29210. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  29211. - # If the export-symbols file already is a .def file (1st line
  29212. - # is EXPORTS), use it as is; otherwise, prepend...
  29213. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  29214. - cp $export_symbols $output_objdir/$soname.def;
  29215. - else
  29216. - echo EXPORTS > $output_objdir/$soname.def;
  29217. - cat $export_symbols >> $output_objdir/$soname.def;
  29218. - fi~
  29219. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  29220. - else
  29221. - ld_shlibs_GCJ=no
  29222. - fi
  29223. - ;;
  29224. -
  29225. - interix[3-9]*)
  29226. - hardcode_direct_GCJ=no
  29227. - hardcode_shlibpath_var_GCJ=no
  29228. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  29229. - export_dynamic_flag_spec_GCJ='${wl}-E'
  29230. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  29231. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  29232. - # default) and relocated if they conflict, which is a slow very memory
  29233. - # consuming and fragmenting process. To avoid this, we pick a random,
  29234. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  29235. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  29236. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  29237. - archive_expsym_cmds_GCJ='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'
  29238. - ;;
  29239. -
  29240. - gnu* | linux* | k*bsd*-gnu)
  29241. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  29242. - tmp_addflag=
  29243. - case $cc_basename,$host_cpu in
  29244. - pgcc*) # Portland Group C compiler
  29245. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  29246. - tmp_addflag=' $pic_flag'
  29247. - ;;
  29248. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  29249. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  29250. - tmp_addflag=' $pic_flag -Mnomain' ;;
  29251. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  29252. - tmp_addflag=' -i_dynamic' ;;
  29253. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  29254. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  29255. - ifc* | ifort*) # Intel Fortran compiler
  29256. - tmp_addflag=' -nofor_main' ;;
  29257. - esac
  29258. - case `$CC -V 2>&1 | sed 5q` in
  29259. - *Sun\ C*) # Sun C 5.9
  29260. - whole_archive_flag_spec_GCJ='${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'
  29261. - tmp_sharedflag='-G' ;;
  29262. - *Sun\ F*) # Sun Fortran 8.3
  29263. - tmp_sharedflag='-G' ;;
  29264. - *)
  29265. - tmp_sharedflag='-shared' ;;
  29266. - esac
  29267. - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29268. -
  29269. - if test $supports_anon_versioning = yes; then
  29270. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  29271. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  29272. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  29273. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  29274. - fi
  29275. - else
  29276. - ld_shlibs_GCJ=no
  29277. - fi
  29278. - ;;
  29279. -
  29280. - netbsd*)
  29281. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  29282. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  29283. - wlarc=
  29284. - else
  29285. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29286. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29287. - fi
  29288. - ;;
  29289. -
  29290. - solaris*)
  29291. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  29292. - ld_shlibs_GCJ=no
  29293. - cat <<EOF 1>&2
  29294. -
  29295. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  29296. -*** create shared libraries on Solaris systems. Therefore, libtool
  29297. -*** is disabling shared libraries support. We urge you to upgrade GNU
  29298. -*** binutils to release 2.9.1 or newer. Another option is to modify
  29299. -*** your PATH or compiler configuration so that the native linker is
  29300. -*** used, and then restart.
  29301. -
  29302. -EOF
  29303. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  29304. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29305. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29306. - else
  29307. - ld_shlibs_GCJ=no
  29308. - fi
  29309. - ;;
  29310. -
  29311. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  29312. - case `$LD -v 2>&1` in
  29313. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  29314. - ld_shlibs_GCJ=no
  29315. - cat <<_LT_EOF 1>&2
  29316. -
  29317. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  29318. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  29319. -*** is disabling shared libraries support. We urge you to upgrade GNU
  29320. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  29321. -*** your PATH or compiler configuration so that the native linker is
  29322. -*** used, and then restart.
  29323. -
  29324. -_LT_EOF
  29325. - ;;
  29326. - *)
  29327. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  29328. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  29329. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  29330. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  29331. - else
  29332. - ld_shlibs_GCJ=no
  29333. - fi
  29334. - ;;
  29335. - esac
  29336. - ;;
  29337. -
  29338. - sunos4*)
  29339. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  29340. - wlarc=
  29341. - hardcode_direct_GCJ=yes
  29342. - hardcode_shlibpath_var_GCJ=no
  29343. - ;;
  29344. -
  29345. - *)
  29346. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  29347. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29348. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29349. - else
  29350. - ld_shlibs_GCJ=no
  29351. - fi
  29352. - ;;
  29353. - esac
  29354. -
  29355. - if test "$ld_shlibs_GCJ" = no; then
  29356. - runpath_var=
  29357. - hardcode_libdir_flag_spec_GCJ=
  29358. - export_dynamic_flag_spec_GCJ=
  29359. - whole_archive_flag_spec_GCJ=
  29360. - fi
  29361. - else
  29362. - # PORTME fill in a description of your system's linker (not GNU ld)
  29363. - case $host_os in
  29364. - aix3*)
  29365. - allow_undefined_flag_GCJ=unsupported
  29366. - always_export_symbols_GCJ=yes
  29367. - 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'
  29368. - # Note: this linker hardcodes the directories in LIBPATH if there
  29369. - # are no directories specified by -L.
  29370. - hardcode_minus_L_GCJ=yes
  29371. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  29372. - # Neither direct hardcoding nor static linking is supported with a
  29373. - # broken collect2.
  29374. - hardcode_direct_GCJ=unsupported
  29375. - fi
  29376. - ;;
  29377. -
  29378. - aix4* | aix5*)
  29379. - if test "$host_cpu" = ia64; then
  29380. - # On IA64, the linker does run time linking by default, so we don't
  29381. - # have to do anything special.
  29382. - aix_use_runtimelinking=no
  29383. - exp_sym_flag='-Bexport'
  29384. - no_entry_flag=""
  29385. - else
  29386. - # If we're using GNU nm, then we don't want the "-C" option.
  29387. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  29388. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  29389. - 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'
  29390. - else
  29391. - 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'
  29392. - fi
  29393. - aix_use_runtimelinking=no
  29394. -
  29395. - # Test if we are trying to use run time linking or normal
  29396. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  29397. - # need to do runtime linking.
  29398. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  29399. - for ld_flag in $LDFLAGS; do
  29400. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  29401. - aix_use_runtimelinking=yes
  29402. - break
  29403. - fi
  29404. - done
  29405. - ;;
  29406. - esac
  29407. -
  29408. - exp_sym_flag='-bexport'
  29409. - no_entry_flag='-bnoentry'
  29410. - fi
  29411. -
  29412. - # When large executables or shared objects are built, AIX ld can
  29413. - # have problems creating the table of contents. If linking a library
  29414. - # or program results in "error TOC overflow" add -mminimal-toc to
  29415. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  29416. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  29417. -
  29418. - archive_cmds_GCJ=''
  29419. - hardcode_direct_GCJ=yes
  29420. - hardcode_libdir_separator_GCJ=':'
  29421. - link_all_deplibs_GCJ=yes
  29422. -
  29423. - if test "$GCC" = yes; then
  29424. - case $host_os in aix4.[012]|aix4.[012].*)
  29425. - # We only want to do this on AIX 4.2 and lower, the check
  29426. - # below for broken collect2 doesn't work under 4.3+
  29427. - collect2name=`${CC} -print-prog-name=collect2`
  29428. - if test -f "$collect2name" && \
  29429. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  29430. - then
  29431. - # We have reworked collect2
  29432. - :
  29433. - else
  29434. - # We have old collect2
  29435. - hardcode_direct_GCJ=unsupported
  29436. - # It fails to find uninstalled libraries when the uninstalled
  29437. - # path is not listed in the libpath. Setting hardcode_minus_L
  29438. - # to unsupported forces relinking
  29439. - hardcode_minus_L_GCJ=yes
  29440. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  29441. - hardcode_libdir_separator_GCJ=
  29442. - fi
  29443. - ;;
  29444. - esac
  29445. - shared_flag='-shared'
  29446. - if test "$aix_use_runtimelinking" = yes; then
  29447. - shared_flag="$shared_flag "'${wl}-G'
  29448. - fi
  29449. - else
  29450. - # not using gcc
  29451. - if test "$host_cpu" = ia64; then
  29452. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  29453. - # chokes on -Wl,-G. The following line is correct:
  29454. - shared_flag='-G'
  29455. - else
  29456. - if test "$aix_use_runtimelinking" = yes; then
  29457. - shared_flag='${wl}-G'
  29458. - else
  29459. - shared_flag='${wl}-bM:SRE'
  29460. - fi
  29461. - fi
  29462. - fi
  29463. -
  29464. - # It seems that -bexpall does not export symbols beginning with
  29465. - # underscore (_), so it is better to generate a list of symbols to export.
  29466. - always_export_symbols_GCJ=yes
  29467. - if test "$aix_use_runtimelinking" = yes; then
  29468. - # Warning - without using the other runtime loading flags (-brtl),
  29469. - # -berok will link without error, but may produce a broken library.
  29470. - allow_undefined_flag_GCJ='-berok'
  29471. - # Determine the default libpath from the value encoded in an empty executable.
  29472. - cat >conftest.$ac_ext <<_ACEOF
  29473. -/* confdefs.h. */
  29474. -_ACEOF
  29475. -cat confdefs.h >>conftest.$ac_ext
  29476. -cat >>conftest.$ac_ext <<_ACEOF
  29477. -/* end confdefs.h. */
  29478. -
  29479. -int
  29480. -main ()
  29481. -{
  29482. -
  29483. - ;
  29484. - return 0;
  29485. -}
  29486. -_ACEOF
  29487. -rm -f conftest.$ac_objext conftest$ac_exeext
  29488. -if { (ac_try="$ac_link"
  29489. -case "(($ac_try" in
  29490. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29491. - *) ac_try_echo=$ac_try;;
  29492. -esac
  29493. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29494. - (eval "$ac_link") 2>conftest.er1
  29495. - ac_status=$?
  29496. - grep -v '^ *+' conftest.er1 >conftest.err
  29497. - rm -f conftest.er1
  29498. - cat conftest.err >&5
  29499. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29500. - (exit $ac_status); } && {
  29501. - test -z "$ac_c_werror_flag" ||
  29502. - test ! -s conftest.err
  29503. - } && test -s conftest$ac_exeext &&
  29504. - $as_test_x conftest$ac_exeext; then
  29505. -
  29506. -lt_aix_libpath_sed='
  29507. - /Import File Strings/,/^$/ {
  29508. - /^0/ {
  29509. - s/^0 *\(.*\)$/\1/
  29510. - p
  29511. - }
  29512. - }'
  29513. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29514. -# Check for a 64-bit object if we didn't find anything.
  29515. -if test -z "$aix_libpath"; then
  29516. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29517. -fi
  29518. -else
  29519. - echo "$as_me: failed program was:" >&5
  29520. -sed 's/^/| /' conftest.$ac_ext >&5
  29521. -
  29522. -
  29523. -fi
  29524. -
  29525. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29526. - conftest$ac_exeext conftest.$ac_ext
  29527. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  29528. -
  29529. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  29530. - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  29531. - else
  29532. - if test "$host_cpu" = ia64; then
  29533. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  29534. - allow_undefined_flag_GCJ="-z nodefs"
  29535. - archive_expsym_cmds_GCJ="\$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"
  29536. - else
  29537. - # Determine the default libpath from the value encoded in an empty executable.
  29538. - cat >conftest.$ac_ext <<_ACEOF
  29539. -/* confdefs.h. */
  29540. -_ACEOF
  29541. -cat confdefs.h >>conftest.$ac_ext
  29542. -cat >>conftest.$ac_ext <<_ACEOF
  29543. -/* end confdefs.h. */
  29544. -
  29545. -int
  29546. -main ()
  29547. -{
  29548. -
  29549. - ;
  29550. - return 0;
  29551. -}
  29552. -_ACEOF
  29553. -rm -f conftest.$ac_objext conftest$ac_exeext
  29554. -if { (ac_try="$ac_link"
  29555. -case "(($ac_try" in
  29556. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29557. - *) ac_try_echo=$ac_try;;
  29558. -esac
  29559. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29560. - (eval "$ac_link") 2>conftest.er1
  29561. - ac_status=$?
  29562. - grep -v '^ *+' conftest.er1 >conftest.err
  29563. - rm -f conftest.er1
  29564. - cat conftest.err >&5
  29565. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29566. - (exit $ac_status); } && {
  29567. - test -z "$ac_c_werror_flag" ||
  29568. - test ! -s conftest.err
  29569. - } && test -s conftest$ac_exeext &&
  29570. - $as_test_x conftest$ac_exeext; then
  29571. -
  29572. -lt_aix_libpath_sed='
  29573. - /Import File Strings/,/^$/ {
  29574. - /^0/ {
  29575. - s/^0 *\(.*\)$/\1/
  29576. - p
  29577. - }
  29578. - }'
  29579. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29580. -# Check for a 64-bit object if we didn't find anything.
  29581. -if test -z "$aix_libpath"; then
  29582. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29583. -fi
  29584. -else
  29585. - echo "$as_me: failed program was:" >&5
  29586. -sed 's/^/| /' conftest.$ac_ext >&5
  29587. -
  29588. -
  29589. -fi
  29590. -
  29591. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  29592. - conftest$ac_exeext conftest.$ac_ext
  29593. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  29594. -
  29595. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  29596. - # Warning - without using the other run time loading flags,
  29597. - # -berok will link without error, but may produce a broken library.
  29598. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  29599. - allow_undefined_flag_GCJ=' ${wl}-berok'
  29600. - # Exported symbols can be pulled into shared objects from archives
  29601. - whole_archive_flag_spec_GCJ='$convenience'
  29602. - archive_cmds_need_lc_GCJ=yes
  29603. - # This is similar to how AIX traditionally builds its shared libraries.
  29604. - archive_expsym_cmds_GCJ="\$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'
  29605. - fi
  29606. - fi
  29607. - ;;
  29608. -
  29609. - amigaos*)
  29610. - 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)'
  29611. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  29612. - hardcode_minus_L_GCJ=yes
  29613. - # see comment about different semantics on the GNU ld section
  29614. - ld_shlibs_GCJ=no
  29615. - ;;
  29616. -
  29617. - bsdi[45]*)
  29618. - export_dynamic_flag_spec_GCJ=-rdynamic
  29619. - ;;
  29620. -
  29621. - cygwin* | mingw* | pw32*)
  29622. - # When not using gcc, we currently assume that we are using
  29623. - # Microsoft Visual C++.
  29624. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  29625. - # no search path for DLLs.
  29626. - hardcode_libdir_flag_spec_GCJ=' '
  29627. - allow_undefined_flag_GCJ=unsupported
  29628. - # Tell ltmain to make .lib files, not .a files.
  29629. - libext=lib
  29630. - # Tell ltmain to make .dll files, not .so files.
  29631. - shrext_cmds=".dll"
  29632. - # FIXME: Setting linknames here is a bad hack.
  29633. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  29634. - # The linker will automatically build a .lib file if we build a DLL.
  29635. - old_archive_From_new_cmds_GCJ='true'
  29636. - # FIXME: Should let the user specify the lib program.
  29637. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  29638. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  29639. - enable_shared_with_static_runtimes_GCJ=yes
  29640. - ;;
  29641. -
  29642. - darwin* | rhapsody*)
  29643. - case $host_os in
  29644. - rhapsody* | darwin1.[012])
  29645. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  29646. - ;;
  29647. - *) # Darwin 1.3 on
  29648. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  29649. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  29650. - else
  29651. - case ${MACOSX_DEPLOYMENT_TARGET} in
  29652. - 10.[012])
  29653. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  29654. - ;;
  29655. - 10.*)
  29656. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  29657. - ;;
  29658. - esac
  29659. - fi
  29660. - ;;
  29661. - esac
  29662. - archive_cmds_need_lc_GCJ=no
  29663. - hardcode_direct_GCJ=no
  29664. - hardcode_automatic_GCJ=yes
  29665. - hardcode_shlibpath_var_GCJ=unsupported
  29666. - whole_archive_flag_spec_GCJ=''
  29667. - link_all_deplibs_GCJ=yes
  29668. - if test "$GCC" = yes ; then
  29669. - output_verbose_link_cmd='echo'
  29670. - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  29671. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  29672. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  29673. - archive_expsym_cmds_GCJ='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}'
  29674. - 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}'
  29675. - else
  29676. - case $cc_basename in
  29677. - xlc*)
  29678. - output_verbose_link_cmd='echo'
  29679. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  29680. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  29681. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  29682. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  29683. - 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}'
  29684. - ;;
  29685. - *)
  29686. - ld_shlibs_GCJ=no
  29687. - ;;
  29688. - esac
  29689. - fi
  29690. - ;;
  29691. -
  29692. - dgux*)
  29693. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29694. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  29695. - hardcode_shlibpath_var_GCJ=no
  29696. - ;;
  29697. -
  29698. - freebsd1*)
  29699. - ld_shlibs_GCJ=no
  29700. - ;;
  29701. -
  29702. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  29703. - # support. Future versions do this automatically, but an explicit c++rt0.o
  29704. - # does not break anything, and helps significantly (at the cost of a little
  29705. - # extra space).
  29706. - freebsd2.2*)
  29707. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  29708. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  29709. - hardcode_direct_GCJ=yes
  29710. - hardcode_shlibpath_var_GCJ=no
  29711. - ;;
  29712. -
  29713. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  29714. - freebsd2*)
  29715. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  29716. - hardcode_direct_GCJ=yes
  29717. - hardcode_minus_L_GCJ=yes
  29718. - hardcode_shlibpath_var_GCJ=no
  29719. - ;;
  29720. -
  29721. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  29722. - freebsd* | dragonfly*)
  29723. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  29724. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  29725. - hardcode_direct_GCJ=yes
  29726. - hardcode_shlibpath_var_GCJ=no
  29727. - ;;
  29728. -
  29729. - hpux9*)
  29730. - if test "$GCC" = yes; then
  29731. - 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'
  29732. - else
  29733. - 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'
  29734. - fi
  29735. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  29736. - hardcode_libdir_separator_GCJ=:
  29737. - hardcode_direct_GCJ=yes
  29738. -
  29739. - # hardcode_minus_L: Not really in the search PATH,
  29740. - # but as the default location of the library.
  29741. - hardcode_minus_L_GCJ=yes
  29742. - export_dynamic_flag_spec_GCJ='${wl}-E'
  29743. - ;;
  29744. -
  29745. - hpux10*)
  29746. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  29747. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  29748. - else
  29749. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  29750. - fi
  29751. - if test "$with_gnu_ld" = no; then
  29752. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  29753. - hardcode_libdir_separator_GCJ=:
  29754. -
  29755. - hardcode_direct_GCJ=yes
  29756. - export_dynamic_flag_spec_GCJ='${wl}-E'
  29757. -
  29758. - # hardcode_minus_L: Not really in the search PATH,
  29759. - # but as the default location of the library.
  29760. - hardcode_minus_L_GCJ=yes
  29761. - fi
  29762. - ;;
  29763. -
  29764. - hpux11*)
  29765. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  29766. - case $host_cpu in
  29767. - hppa*64*)
  29768. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29769. - ;;
  29770. - ia64*)
  29771. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  29772. - ;;
  29773. - *)
  29774. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  29775. - ;;
  29776. - esac
  29777. - else
  29778. - case $host_cpu in
  29779. - hppa*64*)
  29780. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29781. - ;;
  29782. - ia64*)
  29783. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  29784. - ;;
  29785. - *)
  29786. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  29787. - ;;
  29788. - esac
  29789. - fi
  29790. - if test "$with_gnu_ld" = no; then
  29791. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  29792. - hardcode_libdir_separator_GCJ=:
  29793. -
  29794. - case $host_cpu in
  29795. - hppa*64*|ia64*)
  29796. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  29797. - hardcode_direct_GCJ=no
  29798. - hardcode_shlibpath_var_GCJ=no
  29799. - ;;
  29800. - *)
  29801. - hardcode_direct_GCJ=yes
  29802. - export_dynamic_flag_spec_GCJ='${wl}-E'
  29803. -
  29804. - # hardcode_minus_L: Not really in the search PATH,
  29805. - # but as the default location of the library.
  29806. - hardcode_minus_L_GCJ=yes
  29807. - ;;
  29808. - esac
  29809. - fi
  29810. - ;;
  29811. -
  29812. - irix5* | irix6* | nonstopux*)
  29813. - if test "$GCC" = yes; then
  29814. - 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'
  29815. - else
  29816. - 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'
  29817. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  29818. - fi
  29819. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  29820. - hardcode_libdir_separator_GCJ=:
  29821. - link_all_deplibs_GCJ=yes
  29822. - ;;
  29823. -
  29824. - netbsd*)
  29825. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  29826. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  29827. - else
  29828. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  29829. - fi
  29830. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  29831. - hardcode_direct_GCJ=yes
  29832. - hardcode_shlibpath_var_GCJ=no
  29833. - ;;
  29834. -
  29835. - newsos6)
  29836. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29837. - hardcode_direct_GCJ=yes
  29838. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  29839. - hardcode_libdir_separator_GCJ=:
  29840. - hardcode_shlibpath_var_GCJ=no
  29841. - ;;
  29842. -
  29843. - openbsd*)
  29844. - if test -f /usr/libexec/ld.so; then
  29845. - hardcode_direct_GCJ=yes
  29846. - hardcode_shlibpath_var_GCJ=no
  29847. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29848. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  29849. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  29850. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  29851. - export_dynamic_flag_spec_GCJ='${wl}-E'
  29852. - else
  29853. - case $host_os in
  29854. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  29855. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  29856. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  29857. - ;;
  29858. - *)
  29859. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  29860. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  29861. - ;;
  29862. - esac
  29863. - fi
  29864. - else
  29865. - ld_shlibs_GCJ=no
  29866. - fi
  29867. - ;;
  29868. -
  29869. - os2*)
  29870. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  29871. - hardcode_minus_L_GCJ=yes
  29872. - allow_undefined_flag_GCJ=unsupported
  29873. - 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'
  29874. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  29875. - ;;
  29876. -
  29877. - osf3*)
  29878. - if test "$GCC" = yes; then
  29879. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  29880. - 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'
  29881. - else
  29882. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  29883. - 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'
  29884. - fi
  29885. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  29886. - hardcode_libdir_separator_GCJ=:
  29887. - ;;
  29888. -
  29889. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  29890. - if test "$GCC" = yes; then
  29891. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  29892. - 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'
  29893. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  29894. - else
  29895. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  29896. - 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'
  29897. - 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~
  29898. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  29899. -
  29900. - # Both c and cxx compiler support -rpath directly
  29901. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  29902. - fi
  29903. - hardcode_libdir_separator_GCJ=:
  29904. - ;;
  29905. -
  29906. - solaris*)
  29907. - no_undefined_flag_GCJ=' -z text'
  29908. - if test "$GCC" = yes; then
  29909. - wlarc='${wl}'
  29910. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  29911. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  29912. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  29913. - else
  29914. - wlarc=''
  29915. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29916. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  29917. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  29918. - fi
  29919. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  29920. - hardcode_shlibpath_var_GCJ=no
  29921. - case $host_os in
  29922. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  29923. - *)
  29924. - # The compiler driver will combine and reorder linker options,
  29925. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  29926. - # but is careful enough not to reorder.
  29927. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  29928. - if test "$GCC" = yes; then
  29929. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  29930. - else
  29931. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  29932. - fi
  29933. - ;;
  29934. - esac
  29935. - link_all_deplibs_GCJ=yes
  29936. - ;;
  29937. -
  29938. - sunos4*)
  29939. - if test "x$host_vendor" = xsequent; then
  29940. - # Use $CC to link under sequent, because it throws in some extra .o
  29941. - # files that make .init and .fini sections work.
  29942. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  29943. - else
  29944. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  29945. - fi
  29946. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  29947. - hardcode_direct_GCJ=yes
  29948. - hardcode_minus_L_GCJ=yes
  29949. - hardcode_shlibpath_var_GCJ=no
  29950. - ;;
  29951. -
  29952. - sysv4)
  29953. - case $host_vendor in
  29954. - sni)
  29955. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29956. - hardcode_direct_GCJ=yes # is this really true???
  29957. - ;;
  29958. - siemens)
  29959. - ## LD is ld it makes a PLAMLIB
  29960. - ## CC just makes a GrossModule.
  29961. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  29962. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  29963. - hardcode_direct_GCJ=no
  29964. - ;;
  29965. - motorola)
  29966. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29967. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  29968. - ;;
  29969. - esac
  29970. - runpath_var='LD_RUN_PATH'
  29971. - hardcode_shlibpath_var_GCJ=no
  29972. - ;;
  29973. -
  29974. - sysv4.3*)
  29975. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29976. - hardcode_shlibpath_var_GCJ=no
  29977. - export_dynamic_flag_spec_GCJ='-Bexport'
  29978. - ;;
  29979. -
  29980. - sysv4*MP*)
  29981. - if test -d /usr/nec; then
  29982. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  29983. - hardcode_shlibpath_var_GCJ=no
  29984. - runpath_var=LD_RUN_PATH
  29985. - hardcode_runpath_var=yes
  29986. - ld_shlibs_GCJ=yes
  29987. - fi
  29988. - ;;
  29989. -
  29990. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  29991. - no_undefined_flag_GCJ='${wl}-z,text'
  29992. - archive_cmds_need_lc_GCJ=no
  29993. - hardcode_shlibpath_var_GCJ=no
  29994. - runpath_var='LD_RUN_PATH'
  29995. -
  29996. - if test "$GCC" = yes; then
  29997. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29998. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29999. - else
  30000. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30001. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30002. - fi
  30003. - ;;
  30004. -
  30005. - sysv5* | sco3.2v5* | sco5v6*)
  30006. - # Note: We can NOT use -z defs as we might desire, because we do not
  30007. - # link with -lc, and that would cause any symbols used from libc to
  30008. - # always be unresolved, which means just about no library would
  30009. - # ever link correctly. If we're not using GNU ld we use -z text
  30010. - # though, which does catch some bad symbols but isn't as heavy-handed
  30011. - # as -z defs.
  30012. - no_undefined_flag_GCJ='${wl}-z,text'
  30013. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  30014. - archive_cmds_need_lc_GCJ=no
  30015. - hardcode_shlibpath_var_GCJ=no
  30016. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  30017. - hardcode_libdir_separator_GCJ=':'
  30018. - link_all_deplibs_GCJ=yes
  30019. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  30020. - runpath_var='LD_RUN_PATH'
  30021. -
  30022. - if test "$GCC" = yes; then
  30023. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30024. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30025. - else
  30026. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30027. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30028. - fi
  30029. - ;;
  30030. -
  30031. - uts4*)
  30032. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30033. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30034. - hardcode_shlibpath_var_GCJ=no
  30035. - ;;
  30036. -
  30037. - *)
  30038. - ld_shlibs_GCJ=no
  30039. - ;;
  30040. - esac
  30041. - fi
  30042. -
  30043. -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  30044. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  30045. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  30046. -
  30047. -#
  30048. -# Do we need to explicitly link libc?
  30049. -#
  30050. -case "x$archive_cmds_need_lc_GCJ" in
  30051. -x|xyes)
  30052. - # Assume -lc should be added
  30053. - archive_cmds_need_lc_GCJ=yes
  30054. -
  30055. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  30056. - case $archive_cmds_GCJ in
  30057. - *'~'*)
  30058. - # FIXME: we may have to deal with multi-command sequences.
  30059. - ;;
  30060. - '$CC '*)
  30061. - # Test whether the compiler implicitly links with -lc since on some
  30062. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  30063. - # to ld, don't add -lc before -lgcc.
  30064. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  30065. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  30066. - $rm conftest*
  30067. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30068. -
  30069. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30070. - (eval $ac_compile) 2>&5
  30071. - ac_status=$?
  30072. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30073. - (exit $ac_status); } 2>conftest.err; then
  30074. - soname=conftest
  30075. - lib=conftest
  30076. - libobjs=conftest.$ac_objext
  30077. - deplibs=
  30078. - wl=$lt_prog_compiler_wl_GCJ
  30079. - pic_flag=$lt_prog_compiler_pic_GCJ
  30080. - compiler_flags=-v
  30081. - linker_flags=-v
  30082. - verstring=
  30083. - output_objdir=.
  30084. - libname=conftest
  30085. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  30086. - allow_undefined_flag_GCJ=
  30087. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  30088. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  30089. - ac_status=$?
  30090. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30091. - (exit $ac_status); }
  30092. - then
  30093. - archive_cmds_need_lc_GCJ=no
  30094. - else
  30095. - archive_cmds_need_lc_GCJ=yes
  30096. - fi
  30097. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  30098. - else
  30099. - cat conftest.err 1>&5
  30100. - fi
  30101. - $rm conftest*
  30102. - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  30103. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  30104. - ;;
  30105. - esac
  30106. - fi
  30107. - ;;
  30108. -esac
  30109. -
  30110. -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  30111. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  30112. -library_names_spec=
  30113. -libname_spec='lib$name'
  30114. -soname_spec=
  30115. -shrext_cmds=".so"
  30116. -postinstall_cmds=
  30117. -postuninstall_cmds=
  30118. -finish_cmds=
  30119. -finish_eval=
  30120. -shlibpath_var=
  30121. -shlibpath_overrides_runpath=unknown
  30122. -version_type=none
  30123. -dynamic_linker="$host_os ld.so"
  30124. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  30125. -
  30126. -need_lib_prefix=unknown
  30127. -hardcode_into_libs=no
  30128. -
  30129. -# when you set need_version to no, make sure it does not cause -set_version
  30130. -# flags to be left without arguments
  30131. -need_version=unknown
  30132. -
  30133. -case $host_os in
  30134. -aix3*)
  30135. - version_type=linux
  30136. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  30137. - shlibpath_var=LIBPATH
  30138. -
  30139. - # AIX 3 has no versioning support, so we append a major version to the name.
  30140. - soname_spec='${libname}${release}${shared_ext}$major'
  30141. - ;;
  30142. -
  30143. -aix4* | aix5*)
  30144. - version_type=linux
  30145. - need_lib_prefix=no
  30146. - need_version=no
  30147. - hardcode_into_libs=yes
  30148. - if test "$host_cpu" = ia64; then
  30149. - # AIX 5 supports IA64
  30150. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  30151. - shlibpath_var=LD_LIBRARY_PATH
  30152. - else
  30153. - # With GCC up to 2.95.x, collect2 would create an import file
  30154. - # for dependence libraries. The import file would start with
  30155. - # the line `#! .'. This would cause the generated library to
  30156. - # depend on `.', always an invalid library. This was fixed in
  30157. - # development snapshots of GCC prior to 3.0.
  30158. - case $host_os in
  30159. - aix4 | aix4.[01] | aix4.[01].*)
  30160. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  30161. - echo ' yes '
  30162. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  30163. - :
  30164. - else
  30165. - can_build_shared=no
  30166. - fi
  30167. - ;;
  30168. - esac
  30169. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  30170. - # soname into executable. Probably we can add versioning support to
  30171. - # collect2, so additional links can be useful in future.
  30172. - if test "$aix_use_runtimelinking" = yes; then
  30173. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  30174. - # instead of lib<name>.a to let people know that these are not
  30175. - # typical AIX shared libraries.
  30176. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30177. - else
  30178. - # We preserve .a as extension for shared libraries through AIX4.2
  30179. - # and later when we are not doing run time linking.
  30180. - library_names_spec='${libname}${release}.a $libname.a'
  30181. - soname_spec='${libname}${release}${shared_ext}$major'
  30182. - fi
  30183. - shlibpath_var=LIBPATH
  30184. - fi
  30185. - ;;
  30186. -
  30187. -amigaos*)
  30188. - library_names_spec='$libname.ixlibrary $libname.a'
  30189. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  30190. - 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'
  30191. - ;;
  30192. -
  30193. -beos*)
  30194. - library_names_spec='${libname}${shared_ext}'
  30195. - dynamic_linker="$host_os ld.so"
  30196. - shlibpath_var=LIBRARY_PATH
  30197. - ;;
  30198. -
  30199. -bsdi[45]*)
  30200. - version_type=linux
  30201. - need_version=no
  30202. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30203. - soname_spec='${libname}${release}${shared_ext}$major'
  30204. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  30205. - shlibpath_var=LD_LIBRARY_PATH
  30206. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  30207. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  30208. - # the default ld.so.conf also contains /usr/contrib/lib and
  30209. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  30210. - # libtool to hard-code these into programs
  30211. - ;;
  30212. -
  30213. -cygwin* | mingw* | pw32*)
  30214. - version_type=windows
  30215. - shrext_cmds=".dll"
  30216. - need_version=no
  30217. - need_lib_prefix=no
  30218. -
  30219. - case $GCC,$host_os in
  30220. - yes,cygwin* | yes,mingw* | yes,pw32*)
  30221. - library_names_spec='$libname.dll.a'
  30222. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  30223. - postinstall_cmds='base_file=`basename \${file}`~
  30224. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  30225. - dldir=$destdir/`dirname \$dlpath`~
  30226. - test -d \$dldir || mkdir -p \$dldir~
  30227. - $install_prog $dir/$dlname \$dldir/$dlname~
  30228. - chmod a+x \$dldir/$dlname'
  30229. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  30230. - dlpath=$dir/\$dldll~
  30231. - $rm \$dlpath'
  30232. - shlibpath_overrides_runpath=yes
  30233. -
  30234. - case $host_os in
  30235. - cygwin*)
  30236. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  30237. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  30238. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  30239. - ;;
  30240. - mingw*)
  30241. - # MinGW DLLs use traditional 'lib' prefix
  30242. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  30243. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  30244. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  30245. - # It is most probably a Windows format PATH printed by
  30246. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  30247. - # path with ; separators, and with drive letters. We can handle the
  30248. - # drive letters (cygwin fileutils understands them), so leave them,
  30249. - # especially as we might pass files found there to a mingw objdump,
  30250. - # which wouldn't understand a cygwinified path. Ahh.
  30251. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  30252. - else
  30253. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  30254. - fi
  30255. - ;;
  30256. - pw32*)
  30257. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  30258. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  30259. - ;;
  30260. - esac
  30261. - ;;
  30262. -
  30263. - *)
  30264. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  30265. - ;;
  30266. - esac
  30267. - dynamic_linker='Win32 ld.exe'
  30268. - # FIXME: first we should search . and the directory the executable is in
  30269. - shlibpath_var=PATH
  30270. - ;;
  30271. -
  30272. -darwin* | rhapsody*)
  30273. - dynamic_linker="$host_os dyld"
  30274. - version_type=darwin
  30275. - need_lib_prefix=no
  30276. - need_version=no
  30277. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  30278. - soname_spec='${libname}${release}${major}$shared_ext'
  30279. - shlibpath_overrides_runpath=yes
  30280. - shlibpath_var=DYLD_LIBRARY_PATH
  30281. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  30282. -
  30283. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  30284. - ;;
  30285. -
  30286. -dgux*)
  30287. - version_type=linux
  30288. - need_lib_prefix=no
  30289. - need_version=no
  30290. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  30291. - soname_spec='${libname}${release}${shared_ext}$major'
  30292. - shlibpath_var=LD_LIBRARY_PATH
  30293. - ;;
  30294. -
  30295. -freebsd1*)
  30296. - dynamic_linker=no
  30297. - ;;
  30298. -
  30299. -freebsd* | dragonfly*)
  30300. - # DragonFly does not have aout. When/if they implement a new
  30301. - # versioning mechanism, adjust this.
  30302. - if test -x /usr/bin/objformat; then
  30303. - objformat=`/usr/bin/objformat`
  30304. - else
  30305. - case $host_os in
  30306. - freebsd[123]*) objformat=aout ;;
  30307. - *) objformat=elf ;;
  30308. - esac
  30309. - fi
  30310. - version_type=freebsd-$objformat
  30311. - case $version_type in
  30312. - freebsd-elf*)
  30313. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  30314. - need_version=no
  30315. - need_lib_prefix=no
  30316. - ;;
  30317. - freebsd-*)
  30318. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  30319. - need_version=yes
  30320. - ;;
  30321. - esac
  30322. - shlibpath_var=LD_LIBRARY_PATH
  30323. - case $host_os in
  30324. - freebsd2*)
  30325. - shlibpath_overrides_runpath=yes
  30326. - ;;
  30327. - freebsd3.[01]* | freebsdelf3.[01]*)
  30328. - shlibpath_overrides_runpath=yes
  30329. - hardcode_into_libs=yes
  30330. - ;;
  30331. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  30332. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  30333. - shlibpath_overrides_runpath=no
  30334. - hardcode_into_libs=yes
  30335. - ;;
  30336. - *) # from 4.6 on, and DragonFly
  30337. - shlibpath_overrides_runpath=yes
  30338. - hardcode_into_libs=yes
  30339. - ;;
  30340. - esac
  30341. - ;;
  30342. -
  30343. -gnu*)
  30344. - version_type=linux
  30345. - need_lib_prefix=no
  30346. - need_version=no
  30347. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  30348. - soname_spec='${libname}${release}${shared_ext}$major'
  30349. - shlibpath_var=LD_LIBRARY_PATH
  30350. - hardcode_into_libs=yes
  30351. - ;;
  30352. -
  30353. -hpux9* | hpux10* | hpux11*)
  30354. - # Give a soname corresponding to the major version so that dld.sl refuses to
  30355. - # link against other versions.
  30356. - version_type=sunos
  30357. - need_lib_prefix=no
  30358. - need_version=no
  30359. - case $host_cpu in
  30360. - ia64*)
  30361. - shrext_cmds='.so'
  30362. - hardcode_into_libs=yes
  30363. - dynamic_linker="$host_os dld.so"
  30364. - shlibpath_var=LD_LIBRARY_PATH
  30365. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  30366. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30367. - soname_spec='${libname}${release}${shared_ext}$major'
  30368. - if test "X$HPUX_IA64_MODE" = X32; then
  30369. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  30370. - else
  30371. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  30372. - fi
  30373. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  30374. - ;;
  30375. - hppa*64*)
  30376. - shrext_cmds='.sl'
  30377. - hardcode_into_libs=yes
  30378. - dynamic_linker="$host_os dld.sl"
  30379. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  30380. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  30381. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30382. - soname_spec='${libname}${release}${shared_ext}$major'
  30383. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  30384. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  30385. - ;;
  30386. - *)
  30387. - shrext_cmds='.sl'
  30388. - dynamic_linker="$host_os dld.sl"
  30389. - shlibpath_var=SHLIB_PATH
  30390. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  30391. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30392. - soname_spec='${libname}${release}${shared_ext}$major'
  30393. - ;;
  30394. - esac
  30395. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  30396. - postinstall_cmds='chmod 555 $lib'
  30397. - ;;
  30398. -
  30399. -interix[3-9]*)
  30400. - version_type=linux
  30401. - need_lib_prefix=no
  30402. - need_version=no
  30403. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30404. - soname_spec='${libname}${release}${shared_ext}$major'
  30405. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  30406. - shlibpath_var=LD_LIBRARY_PATH
  30407. - shlibpath_overrides_runpath=no
  30408. - hardcode_into_libs=yes
  30409. - ;;
  30410. -
  30411. -irix5* | irix6* | nonstopux*)
  30412. - case $host_os in
  30413. - nonstopux*) version_type=nonstopux ;;
  30414. - *)
  30415. - if test "$lt_cv_prog_gnu_ld" = yes; then
  30416. - version_type=linux
  30417. - else
  30418. - version_type=irix
  30419. - fi ;;
  30420. - esac
  30421. - need_lib_prefix=no
  30422. - need_version=no
  30423. - soname_spec='${libname}${release}${shared_ext}$major'
  30424. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  30425. - case $host_os in
  30426. - irix5* | nonstopux*)
  30427. - libsuff= shlibsuff=
  30428. - ;;
  30429. - *)
  30430. - case $LD in # libtool.m4 will add one of these switches to LD
  30431. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  30432. - libsuff= shlibsuff= libmagic=32-bit;;
  30433. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  30434. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  30435. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  30436. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  30437. - *) libsuff= shlibsuff= libmagic=never-match;;
  30438. - esac
  30439. - ;;
  30440. - esac
  30441. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  30442. - shlibpath_overrides_runpath=no
  30443. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  30444. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  30445. - hardcode_into_libs=yes
  30446. - ;;
  30447. -
  30448. -# No shared lib support for Linux oldld, aout, or coff.
  30449. -linux*oldld* | linux*aout* | linux*coff*)
  30450. - dynamic_linker=no
  30451. - ;;
  30452. -
  30453. -# This must be Linux ELF.
  30454. -linux* | k*bsd*-gnu)
  30455. - version_type=linux
  30456. - need_lib_prefix=no
  30457. - need_version=no
  30458. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30459. - soname_spec='${libname}${release}${shared_ext}$major'
  30460. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  30461. - shlibpath_var=LD_LIBRARY_PATH
  30462. - shlibpath_overrides_runpath=no
  30463. - # This implies no fast_install, which is unacceptable.
  30464. - # Some rework will be needed to allow for fast_install
  30465. - # before this can be enabled.
  30466. - hardcode_into_libs=yes
  30467. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  30468. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  30469. -
  30470. - # Append ld.so.conf contents to the search path
  30471. - if test -f /etc/ld.so.conf; then
  30472. - 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' ' '`
  30473. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  30474. - fi
  30475. -
  30476. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  30477. - # powerpc, because MkLinux only supported shared libraries with the
  30478. - # GNU dynamic linker. Since this was broken with cross compilers,
  30479. - # most powerpc-linux boxes support dynamic linking these days and
  30480. - # people can always --disable-shared, the test was removed, and we
  30481. - # assume the GNU/Linux dynamic linker is in use.
  30482. - dynamic_linker='GNU/Linux ld.so'
  30483. - ;;
  30484. -
  30485. -netbsd*)
  30486. - version_type=sunos
  30487. - need_lib_prefix=no
  30488. - need_version=no
  30489. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  30490. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30491. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  30492. - dynamic_linker='NetBSD (a.out) ld.so'
  30493. - else
  30494. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  30495. - soname_spec='${libname}${release}${shared_ext}$major'
  30496. - dynamic_linker='NetBSD ld.elf_so'
  30497. - fi
  30498. - shlibpath_var=LD_LIBRARY_PATH
  30499. - shlibpath_overrides_runpath=yes
  30500. - hardcode_into_libs=yes
  30501. - ;;
  30502. -
  30503. -newsos6)
  30504. - version_type=linux
  30505. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30506. - shlibpath_var=LD_LIBRARY_PATH
  30507. - shlibpath_overrides_runpath=yes
  30508. - ;;
  30509. -
  30510. -nto-qnx*)
  30511. - version_type=linux
  30512. - need_lib_prefix=no
  30513. - need_version=no
  30514. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30515. - soname_spec='${libname}${release}${shared_ext}$major'
  30516. - shlibpath_var=LD_LIBRARY_PATH
  30517. - shlibpath_overrides_runpath=yes
  30518. - ;;
  30519. -
  30520. -openbsd*)
  30521. - version_type=sunos
  30522. - sys_lib_dlsearch_path_spec="/usr/lib"
  30523. - need_lib_prefix=no
  30524. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  30525. - case $host_os in
  30526. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  30527. - *) need_version=no ;;
  30528. - esac
  30529. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30530. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  30531. - shlibpath_var=LD_LIBRARY_PATH
  30532. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  30533. - case $host_os in
  30534. - openbsd2.[89] | openbsd2.[89].*)
  30535. - shlibpath_overrides_runpath=no
  30536. - ;;
  30537. - *)
  30538. - shlibpath_overrides_runpath=yes
  30539. - ;;
  30540. - esac
  30541. - else
  30542. - shlibpath_overrides_runpath=yes
  30543. - fi
  30544. - ;;
  30545. -
  30546. -os2*)
  30547. - libname_spec='$name'
  30548. - shrext_cmds=".dll"
  30549. - need_lib_prefix=no
  30550. - library_names_spec='$libname${shared_ext} $libname.a'
  30551. - dynamic_linker='OS/2 ld.exe'
  30552. - shlibpath_var=LIBPATH
  30553. - ;;
  30554. -
  30555. -osf3* | osf4* | osf5*)
  30556. - version_type=osf
  30557. - need_lib_prefix=no
  30558. - need_version=no
  30559. - soname_spec='${libname}${release}${shared_ext}$major'
  30560. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30561. - shlibpath_var=LD_LIBRARY_PATH
  30562. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  30563. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  30564. - ;;
  30565. -
  30566. -rdos*)
  30567. - dynamic_linker=no
  30568. - ;;
  30569. -
  30570. -solaris*)
  30571. - version_type=linux
  30572. - need_lib_prefix=no
  30573. - need_version=no
  30574. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30575. - soname_spec='${libname}${release}${shared_ext}$major'
  30576. - shlibpath_var=LD_LIBRARY_PATH
  30577. - shlibpath_overrides_runpath=yes
  30578. - hardcode_into_libs=yes
  30579. - # ldd complains unless libraries are executable
  30580. - postinstall_cmds='chmod +x $lib'
  30581. - ;;
  30582. -
  30583. -sunos4*)
  30584. - version_type=sunos
  30585. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  30586. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  30587. - shlibpath_var=LD_LIBRARY_PATH
  30588. - shlibpath_overrides_runpath=yes
  30589. - if test "$with_gnu_ld" = yes; then
  30590. - need_lib_prefix=no
  30591. - fi
  30592. - need_version=yes
  30593. - ;;
  30594. -
  30595. -sysv4 | sysv4.3*)
  30596. - version_type=linux
  30597. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30598. - soname_spec='${libname}${release}${shared_ext}$major'
  30599. - shlibpath_var=LD_LIBRARY_PATH
  30600. - case $host_vendor in
  30601. - sni)
  30602. - shlibpath_overrides_runpath=no
  30603. - need_lib_prefix=no
  30604. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  30605. - runpath_var=LD_RUN_PATH
  30606. - ;;
  30607. - siemens)
  30608. - need_lib_prefix=no
  30609. - ;;
  30610. - motorola)
  30611. - need_lib_prefix=no
  30612. - need_version=no
  30613. - shlibpath_overrides_runpath=no
  30614. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  30615. - ;;
  30616. - esac
  30617. - ;;
  30618. -
  30619. -sysv4*MP*)
  30620. - if test -d /usr/nec ;then
  30621. - version_type=linux
  30622. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  30623. - soname_spec='$libname${shared_ext}.$major'
  30624. - shlibpath_var=LD_LIBRARY_PATH
  30625. - fi
  30626. - ;;
  30627. -
  30628. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  30629. - version_type=freebsd-elf
  30630. - need_lib_prefix=no
  30631. - need_version=no
  30632. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  30633. - soname_spec='${libname}${release}${shared_ext}$major'
  30634. - shlibpath_var=LD_LIBRARY_PATH
  30635. - hardcode_into_libs=yes
  30636. - if test "$with_gnu_ld" = yes; then
  30637. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  30638. - shlibpath_overrides_runpath=no
  30639. - else
  30640. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  30641. - shlibpath_overrides_runpath=yes
  30642. - case $host_os in
  30643. - sco3.2v5*)
  30644. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  30645. - ;;
  30646. - esac
  30647. - fi
  30648. - sys_lib_dlsearch_path_spec='/usr/lib'
  30649. - ;;
  30650. -
  30651. -uts4*)
  30652. - version_type=linux
  30653. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  30654. - soname_spec='${libname}${release}${shared_ext}$major'
  30655. - shlibpath_var=LD_LIBRARY_PATH
  30656. - ;;
  30657. -
  30658. -*)
  30659. - dynamic_linker=no
  30660. - ;;
  30661. -esac
  30662. -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  30663. -echo "${ECHO_T}$dynamic_linker" >&6; }
  30664. -test "$dynamic_linker" = no && can_build_shared=no
  30665. -
  30666. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  30667. -if test "$GCC" = yes; then
  30668. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  30669. -fi
  30670. -
  30671. -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  30672. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  30673. -hardcode_action_GCJ=
  30674. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  30675. - test -n "$runpath_var_GCJ" || \
  30676. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  30677. -
  30678. - # We can hardcode non-existant directories.
  30679. - if test "$hardcode_direct_GCJ" != no &&
  30680. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  30681. - # have to relink, otherwise we might link with an installed library
  30682. - # when we should be linking with a yet-to-be-installed one
  30683. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  30684. - test "$hardcode_minus_L_GCJ" != no; then
  30685. - # Linking always hardcodes the temporary library directory.
  30686. - hardcode_action_GCJ=relink
  30687. - else
  30688. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  30689. - hardcode_action_GCJ=immediate
  30690. - fi
  30691. -else
  30692. - # We cannot hardcode anything, or else we can only hardcode existing
  30693. - # directories.
  30694. - hardcode_action_GCJ=unsupported
  30695. -fi
  30696. -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  30697. -echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  30698. -
  30699. -if test "$hardcode_action_GCJ" = relink; then
  30700. - # Fast installation is not supported
  30701. - enable_fast_install=no
  30702. -elif test "$shlibpath_overrides_runpath" = yes ||
  30703. - test "$enable_shared" = no; then
  30704. - # Fast installation is not necessary
  30705. - enable_fast_install=needless
  30706. -fi
  30707. -
  30708. -
  30709. -# The else clause should only fire when bootstrapping the
  30710. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  30711. -# with your package, and you will get complaints that there are
  30712. -# no rules to generate ltmain.sh.
  30713. -if test -f "$ltmain"; then
  30714. - # See if we are running on zsh, and set the options which allow our commands through
  30715. - # without removal of \ escapes.
  30716. - if test -n "${ZSH_VERSION+set}" ; then
  30717. - setopt NO_GLOB_SUBST
  30718. - fi
  30719. - # Now quote all the things that may contain metacharacters while being
  30720. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  30721. - # variables and quote the copies for generation of the libtool script.
  30722. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  30723. - SED SHELL STRIP \
  30724. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  30725. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  30726. - deplibs_check_method reload_flag reload_cmds need_locks \
  30727. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  30728. - lt_cv_sys_global_symbol_to_c_name_address \
  30729. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  30730. - old_postinstall_cmds old_postuninstall_cmds \
  30731. - compiler_GCJ \
  30732. - CC_GCJ \
  30733. - LD_GCJ \
  30734. - lt_prog_compiler_wl_GCJ \
  30735. - lt_prog_compiler_pic_GCJ \
  30736. - lt_prog_compiler_static_GCJ \
  30737. - lt_prog_compiler_no_builtin_flag_GCJ \
  30738. - export_dynamic_flag_spec_GCJ \
  30739. - thread_safe_flag_spec_GCJ \
  30740. - whole_archive_flag_spec_GCJ \
  30741. - enable_shared_with_static_runtimes_GCJ \
  30742. - old_archive_cmds_GCJ \
  30743. - old_archive_from_new_cmds_GCJ \
  30744. - predep_objects_GCJ \
  30745. - postdep_objects_GCJ \
  30746. - predeps_GCJ \
  30747. - postdeps_GCJ \
  30748. - compiler_lib_search_path_GCJ \
  30749. - archive_cmds_GCJ \
  30750. - archive_expsym_cmds_GCJ \
  30751. - postinstall_cmds_GCJ \
  30752. - postuninstall_cmds_GCJ \
  30753. - old_archive_from_expsyms_cmds_GCJ \
  30754. - allow_undefined_flag_GCJ \
  30755. - no_undefined_flag_GCJ \
  30756. - export_symbols_cmds_GCJ \
  30757. - hardcode_libdir_flag_spec_GCJ \
  30758. - hardcode_libdir_flag_spec_ld_GCJ \
  30759. - hardcode_libdir_separator_GCJ \
  30760. - hardcode_automatic_GCJ \
  30761. - module_cmds_GCJ \
  30762. - module_expsym_cmds_GCJ \
  30763. - lt_cv_prog_compiler_c_o_GCJ \
  30764. - fix_srcfile_path_GCJ \
  30765. - exclude_expsyms_GCJ \
  30766. - include_expsyms_GCJ; do
  30767. -
  30768. - case $var in
  30769. - old_archive_cmds_GCJ | \
  30770. - old_archive_from_new_cmds_GCJ | \
  30771. - archive_cmds_GCJ | \
  30772. - archive_expsym_cmds_GCJ | \
  30773. - module_cmds_GCJ | \
  30774. - module_expsym_cmds_GCJ | \
  30775. - old_archive_from_expsyms_cmds_GCJ | \
  30776. - export_symbols_cmds_GCJ | \
  30777. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  30778. - postinstall_cmds | postuninstall_cmds | \
  30779. - old_postinstall_cmds | old_postuninstall_cmds | \
  30780. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  30781. - # Double-quote double-evaled strings.
  30782. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  30783. - ;;
  30784. - *)
  30785. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  30786. - ;;
  30787. - esac
  30788. - done
  30789. -
  30790. - case $lt_echo in
  30791. - *'\$0 --fallback-echo"')
  30792. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  30793. - ;;
  30794. - esac
  30795. -
  30796. -cfgfile="$ofile"
  30797. -
  30798. - cat <<__EOF__ >> "$cfgfile"
  30799. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  30800. -
  30801. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  30802. -
  30803. -# Shell to use when invoking shell scripts.
  30804. -SHELL=$lt_SHELL
  30805. -
  30806. -# Whether or not to build shared libraries.
  30807. -build_libtool_libs=$enable_shared
  30808. -
  30809. -# Whether or not to build static libraries.
  30810. -build_old_libs=$enable_static
  30811. -
  30812. -# Whether or not to add -lc for building shared libraries.
  30813. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  30814. -
  30815. -# Whether or not to disallow shared libs when runtime libs are static
  30816. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  30817. -
  30818. -# Whether or not to optimize for fast installation.
  30819. -fast_install=$enable_fast_install
  30820. -
  30821. -# The host system.
  30822. -host_alias=$host_alias
  30823. -host=$host
  30824. -host_os=$host_os
  30825. -
  30826. -# The build system.
  30827. -build_alias=$build_alias
  30828. -build=$build
  30829. -build_os=$build_os
  30830. -
  30831. -# An echo program that does not interpret backslashes.
  30832. -echo=$lt_echo
  30833. -
  30834. -# The archiver.
  30835. -AR=$lt_AR
  30836. -AR_FLAGS=$lt_AR_FLAGS
  30837. -
  30838. -# A C compiler.
  30839. -LTCC=$lt_LTCC
  30840. -
  30841. -# LTCC compiler flags.
  30842. -LTCFLAGS=$lt_LTCFLAGS
  30843. -
  30844. -# A language-specific compiler.
  30845. -CC=$lt_compiler_GCJ
  30846. -
  30847. -# Is the compiler the GNU C compiler?
  30848. -with_gcc=$GCC_GCJ
  30849. -
  30850. -# An ERE matcher.
  30851. -EGREP=$lt_EGREP
  30852. -
  30853. -# The linker used to build libraries.
  30854. -LD=$lt_LD_GCJ
  30855. -
  30856. -# Whether we need hard or soft links.
  30857. -LN_S=$lt_LN_S
  30858. -
  30859. -# A BSD-compatible nm program.
  30860. -NM=$lt_NM
  30861. -
  30862. -# A symbol stripping program
  30863. -STRIP=$lt_STRIP
  30864. -
  30865. -# Used to examine libraries when file_magic_cmd begins "file"
  30866. -MAGIC_CMD=$MAGIC_CMD
  30867. -
  30868. -# Used on cygwin: DLL creation program.
  30869. -DLLTOOL="$DLLTOOL"
  30870. -
  30871. -# Used on cygwin: object dumper.
  30872. -OBJDUMP="$OBJDUMP"
  30873. -
  30874. -# Used on cygwin: assembler.
  30875. -AS="$AS"
  30876. -
  30877. -# The name of the directory that contains temporary libtool files.
  30878. -objdir=$objdir
  30879. -
  30880. -# How to create reloadable object files.
  30881. -reload_flag=$lt_reload_flag
  30882. -reload_cmds=$lt_reload_cmds
  30883. -
  30884. -# How to pass a linker flag through the compiler.
  30885. -wl=$lt_lt_prog_compiler_wl_GCJ
  30886. -
  30887. -# Object file suffix (normally "o").
  30888. -objext="$ac_objext"
  30889. -
  30890. -# Old archive suffix (normally "a").
  30891. -libext="$libext"
  30892. -
  30893. -# Shared library suffix (normally ".so").
  30894. -shrext_cmds='$shrext_cmds'
  30895. -
  30896. -# Executable file suffix (normally "").
  30897. -exeext="$exeext"
  30898. -
  30899. -# Additional compiler flags for building library objects.
  30900. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  30901. -pic_mode=$pic_mode
  30902. -
  30903. -# What is the maximum length of a command?
  30904. -max_cmd_len=$lt_cv_sys_max_cmd_len
  30905. -
  30906. -# Does compiler simultaneously support -c and -o options?
  30907. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  30908. -
  30909. -# Must we lock files when doing compilation?
  30910. -need_locks=$lt_need_locks
  30911. -
  30912. -# Do we need the lib prefix for modules?
  30913. -need_lib_prefix=$need_lib_prefix
  30914. -
  30915. -# Do we need a version for libraries?
  30916. -need_version=$need_version
  30917. -
  30918. -# Whether dlopen is supported.
  30919. -dlopen_support=$enable_dlopen
  30920. -
  30921. -# Whether dlopen of programs is supported.
  30922. -dlopen_self=$enable_dlopen_self
  30923. -
  30924. -# Whether dlopen of statically linked programs is supported.
  30925. -dlopen_self_static=$enable_dlopen_self_static
  30926. -
  30927. -# Compiler flag to prevent dynamic linking.
  30928. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  30929. -
  30930. -# Compiler flag to turn off builtin functions.
  30931. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  30932. -
  30933. -# Compiler flag to allow reflexive dlopens.
  30934. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  30935. -
  30936. -# Compiler flag to generate shared objects directly from archives.
  30937. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  30938. -
  30939. -# Compiler flag to generate thread-safe objects.
  30940. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  30941. -
  30942. -# Library versioning type.
  30943. -version_type=$version_type
  30944. -
  30945. -# Format of library name prefix.
  30946. -libname_spec=$lt_libname_spec
  30947. -
  30948. -# List of archive names. First name is the real one, the rest are links.
  30949. -# The last name is the one that the linker finds with -lNAME.
  30950. -library_names_spec=$lt_library_names_spec
  30951. -
  30952. -# The coded name of the library, if different from the real name.
  30953. -soname_spec=$lt_soname_spec
  30954. -
  30955. -# Commands used to build and install an old-style archive.
  30956. -RANLIB=$lt_RANLIB
  30957. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  30958. -old_postinstall_cmds=$lt_old_postinstall_cmds
  30959. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  30960. -
  30961. -# Create an old-style archive from a shared archive.
  30962. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  30963. -
  30964. -# Create a temporary old-style archive to link instead of a shared archive.
  30965. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  30966. -
  30967. -# Commands used to build and install a shared archive.
  30968. -archive_cmds=$lt_archive_cmds_GCJ
  30969. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  30970. -postinstall_cmds=$lt_postinstall_cmds
  30971. -postuninstall_cmds=$lt_postuninstall_cmds
  30972. -
  30973. -# Commands used to build a loadable module (assumed same as above if empty)
  30974. -module_cmds=$lt_module_cmds_GCJ
  30975. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  30976. -
  30977. -# Commands to strip libraries.
  30978. -old_striplib=$lt_old_striplib
  30979. -striplib=$lt_striplib
  30980. -
  30981. -# Dependencies to place before the objects being linked to create a
  30982. -# shared library.
  30983. -predep_objects=$lt_predep_objects_GCJ
  30984. -
  30985. -# Dependencies to place after the objects being linked to create a
  30986. -# shared library.
  30987. -postdep_objects=$lt_postdep_objects_GCJ
  30988. -
  30989. -# Dependencies to place before the objects being linked to create a
  30990. -# shared library.
  30991. -predeps=$lt_predeps_GCJ
  30992. -
  30993. -# Dependencies to place after the objects being linked to create a
  30994. -# shared library.
  30995. -postdeps=$lt_postdeps_GCJ
  30996. -
  30997. -# The library search path used internally by the compiler when linking
  30998. -# a shared library.
  30999. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  31000. -
  31001. -# Method to check whether dependent libraries are shared objects.
  31002. -deplibs_check_method=$lt_deplibs_check_method
  31003. -
  31004. -# Command to use when deplibs_check_method == file_magic.
  31005. -file_magic_cmd=$lt_file_magic_cmd
  31006. -
  31007. -# Flag that allows shared libraries with undefined symbols to be built.
  31008. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  31009. -
  31010. -# Flag that forces no undefined symbols.
  31011. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  31012. -
  31013. -# Commands used to finish a libtool library installation in a directory.
  31014. -finish_cmds=$lt_finish_cmds
  31015. -
  31016. -# Same as above, but a single script fragment to be evaled but not shown.
  31017. -finish_eval=$lt_finish_eval
  31018. -
  31019. -# Take the output of nm and produce a listing of raw symbols and C names.
  31020. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  31021. -
  31022. -# Transform the output of nm in a proper C declaration
  31023. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  31024. -
  31025. -# Transform the output of nm in a C name address pair
  31026. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  31027. -
  31028. -# This is the shared library runtime path variable.
  31029. -runpath_var=$runpath_var
  31030. -
  31031. -# This is the shared library path variable.
  31032. -shlibpath_var=$shlibpath_var
  31033. -
  31034. -# Is shlibpath searched before the hard-coded library search path?
  31035. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  31036. -
  31037. -# How to hardcode a shared library path into an executable.
  31038. -hardcode_action=$hardcode_action_GCJ
  31039. -
  31040. -# Whether we should hardcode library paths into libraries.
  31041. -hardcode_into_libs=$hardcode_into_libs
  31042. -
  31043. -# Flag to hardcode \$libdir into a binary during linking.
  31044. -# This must work even if \$libdir does not exist.
  31045. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  31046. -
  31047. -# If ld is used when linking, flag to hardcode \$libdir into
  31048. -# a binary during linking. This must work even if \$libdir does
  31049. -# not exist.
  31050. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  31051. -
  31052. -# Whether we need a single -rpath flag with a separated argument.
  31053. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  31054. -
  31055. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  31056. -# resulting binary.
  31057. -hardcode_direct=$hardcode_direct_GCJ
  31058. -
  31059. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  31060. -# resulting binary.
  31061. -hardcode_minus_L=$hardcode_minus_L_GCJ
  31062. -
  31063. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  31064. -# the resulting binary.
  31065. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  31066. -
  31067. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  31068. -# and all subsequent libraries and executables linked against it.
  31069. -hardcode_automatic=$hardcode_automatic_GCJ
  31070. -
  31071. -# Variables whose values should be saved in libtool wrapper scripts and
  31072. -# restored at relink time.
  31073. -variables_saved_for_relink="$variables_saved_for_relink"
  31074. -
  31075. -# Whether libtool must link a program against all its dependency libraries.
  31076. -link_all_deplibs=$link_all_deplibs_GCJ
  31077. -
  31078. -# Compile-time system search path for libraries
  31079. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  31080. -
  31081. -# Run-time system search path for libraries
  31082. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  31083. -
  31084. -# Fix the shell variable \$srcfile for the compiler.
  31085. -fix_srcfile_path=$lt_fix_srcfile_path
  31086. -
  31087. -# Set to yes if exported symbols are required.
  31088. -always_export_symbols=$always_export_symbols_GCJ
  31089. -
  31090. -# The commands to list exported symbols.
  31091. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  31092. -
  31093. -# The commands to extract the exported symbol list from a shared archive.
  31094. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  31095. -
  31096. -# Symbols that should not be listed in the preloaded symbols.
  31097. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  31098. -
  31099. -# Symbols that must always be exported.
  31100. -include_expsyms=$lt_include_expsyms_GCJ
  31101. -
  31102. -# ### END LIBTOOL TAG CONFIG: $tagname
  31103. -
  31104. -__EOF__
  31105. -
  31106. -
  31107. -else
  31108. - # If there is no Makefile yet, we rely on a make rule to execute
  31109. - # `config.status --recheck' to rerun these tests and create the
  31110. - # libtool script then.
  31111. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  31112. - if test -f "$ltmain_in"; then
  31113. - test -f Makefile && make "$ltmain"
  31114. - fi
  31115. -fi
  31116. -
  31117. -
  31118. -ac_ext=c
  31119. -ac_cpp='$CPP $CPPFLAGS'
  31120. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31121. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31122. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31123. -
  31124. -CC="$lt_save_CC"
  31125. -
  31126. - else
  31127. - tagname=""
  31128. - fi
  31129. - ;;
  31130. -
  31131. - RC)
  31132. -
  31133. -
  31134. -# Source file extension for RC test sources.
  31135. -ac_ext=rc
  31136. -
  31137. -# Object file extension for compiled RC test sources.
  31138. -objext=o
  31139. -objext_RC=$objext
  31140. -
  31141. -# Code to be used in simple compile tests
  31142. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  31143. -
  31144. -# Code to be used in simple link tests
  31145. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  31146. -
  31147. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  31148. -
  31149. -# If no C compiler was specified, use CC.
  31150. -LTCC=${LTCC-"$CC"}
  31151. -
  31152. -# If no C compiler flags were specified, use CFLAGS.
  31153. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  31154. -
  31155. -# Allow CC to be a program name with arguments.
  31156. -compiler=$CC
  31157. -
  31158. -
  31159. -# save warnings/boilerplate of simple test code
  31160. -ac_outfile=conftest.$ac_objext
  31161. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  31162. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  31163. -_lt_compiler_boilerplate=`cat conftest.err`
  31164. -$rm conftest*
  31165. -
  31166. -ac_outfile=conftest.$ac_objext
  31167. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  31168. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  31169. -_lt_linker_boilerplate=`cat conftest.err`
  31170. -$rm conftest*
  31171. -
  31172. -
  31173. -# Allow CC to be a program name with arguments.
  31174. -lt_save_CC="$CC"
  31175. -CC=${RC-"windres"}
  31176. -compiler=$CC
  31177. -compiler_RC=$CC
  31178. -for cc_temp in $compiler""; do
  31179. - case $cc_temp in
  31180. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  31181. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  31182. - \-*) ;;
  31183. - *) break;;
  31184. - esac
  31185. -done
  31186. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  31187. -
  31188. -lt_cv_prog_compiler_c_o_RC=yes
  31189. -
  31190. -# The else clause should only fire when bootstrapping the
  31191. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  31192. -# with your package, and you will get complaints that there are
  31193. -# no rules to generate ltmain.sh.
  31194. -if test -f "$ltmain"; then
  31195. - # See if we are running on zsh, and set the options which allow our commands through
  31196. - # without removal of \ escapes.
  31197. - if test -n "${ZSH_VERSION+set}" ; then
  31198. - setopt NO_GLOB_SUBST
  31199. - fi
  31200. - # Now quote all the things that may contain metacharacters while being
  31201. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  31202. - # variables and quote the copies for generation of the libtool script.
  31203. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  31204. - SED SHELL STRIP \
  31205. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  31206. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  31207. - deplibs_check_method reload_flag reload_cmds need_locks \
  31208. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  31209. - lt_cv_sys_global_symbol_to_c_name_address \
  31210. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  31211. - old_postinstall_cmds old_postuninstall_cmds \
  31212. - compiler_RC \
  31213. - CC_RC \
  31214. - LD_RC \
  31215. - lt_prog_compiler_wl_RC \
  31216. - lt_prog_compiler_pic_RC \
  31217. - lt_prog_compiler_static_RC \
  31218. - lt_prog_compiler_no_builtin_flag_RC \
  31219. - export_dynamic_flag_spec_RC \
  31220. - thread_safe_flag_spec_RC \
  31221. - whole_archive_flag_spec_RC \
  31222. - enable_shared_with_static_runtimes_RC \
  31223. - old_archive_cmds_RC \
  31224. - old_archive_from_new_cmds_RC \
  31225. - predep_objects_RC \
  31226. - postdep_objects_RC \
  31227. - predeps_RC \
  31228. - postdeps_RC \
  31229. - compiler_lib_search_path_RC \
  31230. - archive_cmds_RC \
  31231. - archive_expsym_cmds_RC \
  31232. - postinstall_cmds_RC \
  31233. - postuninstall_cmds_RC \
  31234. - old_archive_from_expsyms_cmds_RC \
  31235. - allow_undefined_flag_RC \
  31236. - no_undefined_flag_RC \
  31237. - export_symbols_cmds_RC \
  31238. - hardcode_libdir_flag_spec_RC \
  31239. - hardcode_libdir_flag_spec_ld_RC \
  31240. - hardcode_libdir_separator_RC \
  31241. - hardcode_automatic_RC \
  31242. - module_cmds_RC \
  31243. - module_expsym_cmds_RC \
  31244. - lt_cv_prog_compiler_c_o_RC \
  31245. - fix_srcfile_path_RC \
  31246. - exclude_expsyms_RC \
  31247. - include_expsyms_RC; do
  31248. -
  31249. - case $var in
  31250. - old_archive_cmds_RC | \
  31251. - old_archive_from_new_cmds_RC | \
  31252. - archive_cmds_RC | \
  31253. - archive_expsym_cmds_RC | \
  31254. - module_cmds_RC | \
  31255. - module_expsym_cmds_RC | \
  31256. - old_archive_from_expsyms_cmds_RC | \
  31257. - export_symbols_cmds_RC | \
  31258. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  31259. - postinstall_cmds | postuninstall_cmds | \
  31260. - old_postinstall_cmds | old_postuninstall_cmds | \
  31261. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  31262. - # Double-quote double-evaled strings.
  31263. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  31264. - ;;
  31265. - *)
  31266. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  31267. - ;;
  31268. - esac
  31269. - done
  31270. -
  31271. - case $lt_echo in
  31272. - *'\$0 --fallback-echo"')
  31273. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  31274. - ;;
  31275. - esac
  31276. -
  31277. -cfgfile="$ofile"
  31278. -
  31279. - cat <<__EOF__ >> "$cfgfile"
  31280. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  31281. -
  31282. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  31283. -
  31284. -# Shell to use when invoking shell scripts.
  31285. -SHELL=$lt_SHELL
  31286. -
  31287. -# Whether or not to build shared libraries.
  31288. -build_libtool_libs=$enable_shared
  31289. -
  31290. -# Whether or not to build static libraries.
  31291. -build_old_libs=$enable_static
  31292. -
  31293. -# Whether or not to add -lc for building shared libraries.
  31294. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  31295. -
  31296. -# Whether or not to disallow shared libs when runtime libs are static
  31297. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  31298. -
  31299. -# Whether or not to optimize for fast installation.
  31300. -fast_install=$enable_fast_install
  31301. -
  31302. -# The host system.
  31303. -host_alias=$host_alias
  31304. -host=$host
  31305. -host_os=$host_os
  31306. -
  31307. -# The build system.
  31308. -build_alias=$build_alias
  31309. -build=$build
  31310. -build_os=$build_os
  31311. -
  31312. -# An echo program that does not interpret backslashes.
  31313. -echo=$lt_echo
  31314. -
  31315. -# The archiver.
  31316. -AR=$lt_AR
  31317. -AR_FLAGS=$lt_AR_FLAGS
  31318. -
  31319. -# A C compiler.
  31320. -LTCC=$lt_LTCC
  31321. -
  31322. -# LTCC compiler flags.
  31323. -LTCFLAGS=$lt_LTCFLAGS
  31324. -
  31325. -# A language-specific compiler.
  31326. -CC=$lt_compiler_RC
  31327. -
  31328. -# Is the compiler the GNU C compiler?
  31329. -with_gcc=$GCC_RC
  31330. -
  31331. -# An ERE matcher.
  31332. -EGREP=$lt_EGREP
  31333. -
  31334. -# The linker used to build libraries.
  31335. -LD=$lt_LD_RC
  31336. -
  31337. -# Whether we need hard or soft links.
  31338. -LN_S=$lt_LN_S
  31339. -
  31340. -# A BSD-compatible nm program.
  31341. -NM=$lt_NM
  31342. -
  31343. -# A symbol stripping program
  31344. -STRIP=$lt_STRIP
  31345. -
  31346. -# Used to examine libraries when file_magic_cmd begins "file"
  31347. -MAGIC_CMD=$MAGIC_CMD
  31348. -
  31349. -# Used on cygwin: DLL creation program.
  31350. -DLLTOOL="$DLLTOOL"
  31351. -
  31352. -# Used on cygwin: object dumper.
  31353. -OBJDUMP="$OBJDUMP"
  31354. -
  31355. -# Used on cygwin: assembler.
  31356. -AS="$AS"
  31357. -
  31358. -# The name of the directory that contains temporary libtool files.
  31359. -objdir=$objdir
  31360. -
  31361. -# How to create reloadable object files.
  31362. -reload_flag=$lt_reload_flag
  31363. -reload_cmds=$lt_reload_cmds
  31364. -
  31365. -# How to pass a linker flag through the compiler.
  31366. -wl=$lt_lt_prog_compiler_wl_RC
  31367. -
  31368. -# Object file suffix (normally "o").
  31369. -objext="$ac_objext"
  31370. -
  31371. -# Old archive suffix (normally "a").
  31372. -libext="$libext"
  31373. -
  31374. -# Shared library suffix (normally ".so").
  31375. -shrext_cmds='$shrext_cmds'
  31376. -
  31377. -# Executable file suffix (normally "").
  31378. -exeext="$exeext"
  31379. -
  31380. -# Additional compiler flags for building library objects.
  31381. -pic_flag=$lt_lt_prog_compiler_pic_RC
  31382. -pic_mode=$pic_mode
  31383. -
  31384. -# What is the maximum length of a command?
  31385. -max_cmd_len=$lt_cv_sys_max_cmd_len
  31386. -
  31387. -# Does compiler simultaneously support -c and -o options?
  31388. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  31389. -
  31390. -# Must we lock files when doing compilation?
  31391. -need_locks=$lt_need_locks
  31392. -
  31393. -# Do we need the lib prefix for modules?
  31394. -need_lib_prefix=$need_lib_prefix
  31395. -
  31396. -# Do we need a version for libraries?
  31397. -need_version=$need_version
  31398. -
  31399. -# Whether dlopen is supported.
  31400. -dlopen_support=$enable_dlopen
  31401. -
  31402. -# Whether dlopen of programs is supported.
  31403. -dlopen_self=$enable_dlopen_self
  31404. -
  31405. -# Whether dlopen of statically linked programs is supported.
  31406. -dlopen_self_static=$enable_dlopen_self_static
  31407. -
  31408. -# Compiler flag to prevent dynamic linking.
  31409. -link_static_flag=$lt_lt_prog_compiler_static_RC
  31410. -
  31411. -# Compiler flag to turn off builtin functions.
  31412. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  31413. -
  31414. -# Compiler flag to allow reflexive dlopens.
  31415. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  31416. -
  31417. -# Compiler flag to generate shared objects directly from archives.
  31418. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  31419. -
  31420. -# Compiler flag to generate thread-safe objects.
  31421. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  31422. -
  31423. -# Library versioning type.
  31424. -version_type=$version_type
  31425. -
  31426. -# Format of library name prefix.
  31427. -libname_spec=$lt_libname_spec
  31428. -
  31429. -# List of archive names. First name is the real one, the rest are links.
  31430. -# The last name is the one that the linker finds with -lNAME.
  31431. -library_names_spec=$lt_library_names_spec
  31432. -
  31433. -# The coded name of the library, if different from the real name.
  31434. -soname_spec=$lt_soname_spec
  31435. -
  31436. -# Commands used to build and install an old-style archive.
  31437. -RANLIB=$lt_RANLIB
  31438. -old_archive_cmds=$lt_old_archive_cmds_RC
  31439. -old_postinstall_cmds=$lt_old_postinstall_cmds
  31440. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  31441. -
  31442. -# Create an old-style archive from a shared archive.
  31443. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  31444. -
  31445. -# Create a temporary old-style archive to link instead of a shared archive.
  31446. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  31447. -
  31448. -# Commands used to build and install a shared archive.
  31449. -archive_cmds=$lt_archive_cmds_RC
  31450. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  31451. -postinstall_cmds=$lt_postinstall_cmds
  31452. -postuninstall_cmds=$lt_postuninstall_cmds
  31453. -
  31454. -# Commands used to build a loadable module (assumed same as above if empty)
  31455. -module_cmds=$lt_module_cmds_RC
  31456. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  31457. -
  31458. -# Commands to strip libraries.
  31459. -old_striplib=$lt_old_striplib
  31460. -striplib=$lt_striplib
  31461. -
  31462. -# Dependencies to place before the objects being linked to create a
  31463. -# shared library.
  31464. -predep_objects=$lt_predep_objects_RC
  31465. -
  31466. -# Dependencies to place after the objects being linked to create a
  31467. -# shared library.
  31468. -postdep_objects=$lt_postdep_objects_RC
  31469. -
  31470. -# Dependencies to place before the objects being linked to create a
  31471. -# shared library.
  31472. -predeps=$lt_predeps_RC
  31473. -
  31474. -# Dependencies to place after the objects being linked to create a
  31475. -# shared library.
  31476. -postdeps=$lt_postdeps_RC
  31477. -
  31478. -# The library search path used internally by the compiler when linking
  31479. -# a shared library.
  31480. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  31481. -
  31482. -# Method to check whether dependent libraries are shared objects.
  31483. -deplibs_check_method=$lt_deplibs_check_method
  31484. -
  31485. -# Command to use when deplibs_check_method == file_magic.
  31486. -file_magic_cmd=$lt_file_magic_cmd
  31487. -
  31488. -# Flag that allows shared libraries with undefined symbols to be built.
  31489. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  31490. -
  31491. -# Flag that forces no undefined symbols.
  31492. -no_undefined_flag=$lt_no_undefined_flag_RC
  31493. -
  31494. -# Commands used to finish a libtool library installation in a directory.
  31495. -finish_cmds=$lt_finish_cmds
  31496. -
  31497. -# Same as above, but a single script fragment to be evaled but not shown.
  31498. -finish_eval=$lt_finish_eval
  31499. -
  31500. -# Take the output of nm and produce a listing of raw symbols and C names.
  31501. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  31502. -
  31503. -# Transform the output of nm in a proper C declaration
  31504. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  31505. -
  31506. -# Transform the output of nm in a C name address pair
  31507. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  31508. -
  31509. -# This is the shared library runtime path variable.
  31510. -runpath_var=$runpath_var
  31511. -
  31512. -# This is the shared library path variable.
  31513. -shlibpath_var=$shlibpath_var
  31514. -
  31515. -# Is shlibpath searched before the hard-coded library search path?
  31516. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  31517. -
  31518. -# How to hardcode a shared library path into an executable.
  31519. -hardcode_action=$hardcode_action_RC
  31520. -
  31521. -# Whether we should hardcode library paths into libraries.
  31522. -hardcode_into_libs=$hardcode_into_libs
  31523. -
  31524. -# Flag to hardcode \$libdir into a binary during linking.
  31525. -# This must work even if \$libdir does not exist.
  31526. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  31527. -
  31528. -# If ld is used when linking, flag to hardcode \$libdir into
  31529. -# a binary during linking. This must work even if \$libdir does
  31530. -# not exist.
  31531. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  31532. -
  31533. -# Whether we need a single -rpath flag with a separated argument.
  31534. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  31535. -
  31536. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  31537. -# resulting binary.
  31538. -hardcode_direct=$hardcode_direct_RC
  31539. -
  31540. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  31541. -# resulting binary.
  31542. -hardcode_minus_L=$hardcode_minus_L_RC
  31543. -
  31544. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  31545. -# the resulting binary.
  31546. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  31547. -
  31548. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  31549. -# and all subsequent libraries and executables linked against it.
  31550. -hardcode_automatic=$hardcode_automatic_RC
  31551. -
  31552. -# Variables whose values should be saved in libtool wrapper scripts and
  31553. -# restored at relink time.
  31554. -variables_saved_for_relink="$variables_saved_for_relink"
  31555. -
  31556. -# Whether libtool must link a program against all its dependency libraries.
  31557. -link_all_deplibs=$link_all_deplibs_RC
  31558. -
  31559. -# Compile-time system search path for libraries
  31560. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  31561. -
  31562. -# Run-time system search path for libraries
  31563. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  31564. -
  31565. -# Fix the shell variable \$srcfile for the compiler.
  31566. -fix_srcfile_path=$lt_fix_srcfile_path
  31567. -
  31568. -# Set to yes if exported symbols are required.
  31569. -always_export_symbols=$always_export_symbols_RC
  31570. -
  31571. -# The commands to list exported symbols.
  31572. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  31573. -
  31574. -# The commands to extract the exported symbol list from a shared archive.
  31575. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  31576. -
  31577. -# Symbols that should not be listed in the preloaded symbols.
  31578. -exclude_expsyms=$lt_exclude_expsyms_RC
  31579. -
  31580. -# Symbols that must always be exported.
  31581. -include_expsyms=$lt_include_expsyms_RC
  31582. -
  31583. -# ### END LIBTOOL TAG CONFIG: $tagname
  31584. -
  31585. -__EOF__
  31586. -
  31587. -
  31588. -else
  31589. - # If there is no Makefile yet, we rely on a make rule to execute
  31590. - # `config.status --recheck' to rerun these tests and create the
  31591. - # libtool script then.
  31592. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  31593. - if test -f "$ltmain_in"; then
  31594. - test -f Makefile && make "$ltmain"
  31595. - fi
  31596. -fi
  31597. -
  31598. -
  31599. -ac_ext=c
  31600. -ac_cpp='$CPP $CPPFLAGS'
  31601. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31602. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31603. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31604. -
  31605. -CC="$lt_save_CC"
  31606. -
  31607. - ;;
  31608. -
  31609. - *)
  31610. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  31611. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  31612. - { (exit 1); exit 1; }; }
  31613. - ;;
  31614. - esac
  31615. -
  31616. - # Append the new tag name to the list of available tags.
  31617. - if test -n "$tagname" ; then
  31618. - available_tags="$available_tags $tagname"
  31619. - fi
  31620. - fi
  31621. - done
  31622. - IFS="$lt_save_ifs"
  31623. -
  31624. - # Now substitute the updated list of available tags.
  31625. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  31626. - mv "${ofile}T" "$ofile"
  31627. - chmod +x "$ofile"
  31628. - else
  31629. - rm -f "${ofile}T"
  31630. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  31631. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  31632. - { (exit 1); exit 1; }; }
  31633. - fi
  31634. -fi
  31635. -
  31636. -
  31637. -
  31638. -# This can be used to rebuild libtool when needed
  31639. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  31640. -
  31641. -# Always use our own libtool.
  31642. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  31643. -
  31644. -# Prevent multiple expansion
  31645. -
  31646. -
  31647. -
  31648. -
  31649. -
  31650. -
  31651. -
  31652. -
  31653. -
  31654. -
  31655. -
  31656. -
  31657. -
  31658. -
  31659. -
  31660. -
  31661. -
  31662. -
  31663. -
  31664. -
  31665. -# Check whether --enable-largefile was given.
  31666. -if test "${enable_largefile+set}" = set; then
  31667. - enableval=$enable_largefile;
  31668. -fi
  31669. -
  31670. -if test "$enable_largefile" != no; then
  31671. -
  31672. - { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  31673. -echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  31674. -if test "${ac_cv_sys_largefile_CC+set}" = set; then
  31675. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31676. -else
  31677. - ac_cv_sys_largefile_CC=no
  31678. - if test "$GCC" != yes; then
  31679. - ac_save_CC=$CC
  31680. - while :; do
  31681. - # IRIX 6.2 and later do not support large files by default,
  31682. - # so use the C compiler's -n32 option if that helps.
  31683. - cat >conftest.$ac_ext <<_ACEOF
  31684. -/* confdefs.h. */
  31685. -_ACEOF
  31686. -cat confdefs.h >>conftest.$ac_ext
  31687. -cat >>conftest.$ac_ext <<_ACEOF
  31688. -/* end confdefs.h. */
  31689. -#include <sys/types.h>
  31690. - /* Check that off_t can represent 2**63 - 1 correctly.
  31691. - We can't simply define LARGE_OFF_T to be 9223372036854775807,
  31692. - since some C++ compilers masquerading as C compilers
  31693. - incorrectly reject 9223372036854775807. */
  31694. -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  31695. - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  31696. - && LARGE_OFF_T % 2147483647 == 1)
  31697. - ? 1 : -1];
  31698. -int
  31699. -main ()
  31700. -{
  31701. -
  31702. - ;
  31703. - return 0;
  31704. -}
  31705. -_ACEOF
  31706. - rm -f conftest.$ac_objext
  31707. -if { (ac_try="$ac_compile"
  31708. -case "(($ac_try" in
  31709. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31710. - *) ac_try_echo=$ac_try;;
  31711. -esac
  31712. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31713. - (eval "$ac_compile") 2>conftest.er1
  31714. - ac_status=$?
  31715. - grep -v '^ *+' conftest.er1 >conftest.err
  31716. - rm -f conftest.er1
  31717. - cat conftest.err >&5
  31718. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31719. - (exit $ac_status); } && {
  31720. - test -z "$ac_c_werror_flag" ||
  31721. - test ! -s conftest.err
  31722. - } && test -s conftest.$ac_objext; then
  31723. - break
  31724. -else
  31725. - echo "$as_me: failed program was:" >&5
  31726. -sed 's/^/| /' conftest.$ac_ext >&5
  31727. -
  31728. -
  31729. -fi
  31730. -
  31731. -rm -f core conftest.err conftest.$ac_objext
  31732. - CC="$CC -n32"
  31733. - rm -f conftest.$ac_objext
  31734. -if { (ac_try="$ac_compile"
  31735. -case "(($ac_try" in
  31736. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31737. - *) ac_try_echo=$ac_try;;
  31738. -esac
  31739. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31740. - (eval "$ac_compile") 2>conftest.er1
  31741. - ac_status=$?
  31742. - grep -v '^ *+' conftest.er1 >conftest.err
  31743. - rm -f conftest.er1
  31744. - cat conftest.err >&5
  31745. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31746. - (exit $ac_status); } && {
  31747. - test -z "$ac_c_werror_flag" ||
  31748. - test ! -s conftest.err
  31749. - } && test -s conftest.$ac_objext; then
  31750. - ac_cv_sys_largefile_CC=' -n32'; break
  31751. -else
  31752. - echo "$as_me: failed program was:" >&5
  31753. -sed 's/^/| /' conftest.$ac_ext >&5
  31754. -
  31755. -
  31756. -fi
  31757. -
  31758. -rm -f core conftest.err conftest.$ac_objext
  31759. - break
  31760. - done
  31761. - CC=$ac_save_CC
  31762. - rm -f conftest.$ac_ext
  31763. - fi
  31764. -fi
  31765. -{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  31766. -echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  31767. - if test "$ac_cv_sys_largefile_CC" != no; then
  31768. - CC=$CC$ac_cv_sys_largefile_CC
  31769. - fi
  31770. -
  31771. - { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  31772. -echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  31773. -if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  31774. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31775. -else
  31776. - while :; do
  31777. - cat >conftest.$ac_ext <<_ACEOF
  31778. -/* confdefs.h. */
  31779. -_ACEOF
  31780. -cat confdefs.h >>conftest.$ac_ext
  31781. -cat >>conftest.$ac_ext <<_ACEOF
  31782. -/* end confdefs.h. */
  31783. -#include <sys/types.h>
  31784. - /* Check that off_t can represent 2**63 - 1 correctly.
  31785. - We can't simply define LARGE_OFF_T to be 9223372036854775807,
  31786. - since some C++ compilers masquerading as C compilers
  31787. - incorrectly reject 9223372036854775807. */
  31788. -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  31789. - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  31790. - && LARGE_OFF_T % 2147483647 == 1)
  31791. - ? 1 : -1];
  31792. -int
  31793. -main ()
  31794. -{
  31795. -
  31796. - ;
  31797. - return 0;
  31798. -}
  31799. -_ACEOF
  31800. -rm -f conftest.$ac_objext
  31801. -if { (ac_try="$ac_compile"
  31802. -case "(($ac_try" in
  31803. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31804. - *) ac_try_echo=$ac_try;;
  31805. -esac
  31806. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31807. - (eval "$ac_compile") 2>conftest.er1
  31808. - ac_status=$?
  31809. - grep -v '^ *+' conftest.er1 >conftest.err
  31810. - rm -f conftest.er1
  31811. - cat conftest.err >&5
  31812. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31813. - (exit $ac_status); } && {
  31814. - test -z "$ac_c_werror_flag" ||
  31815. - test ! -s conftest.err
  31816. - } && test -s conftest.$ac_objext; then
  31817. - ac_cv_sys_file_offset_bits=no; break
  31818. -else
  31819. - echo "$as_me: failed program was:" >&5
  31820. -sed 's/^/| /' conftest.$ac_ext >&5
  31821. -
  31822. -
  31823. -fi
  31824. -
  31825. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31826. - cat >conftest.$ac_ext <<_ACEOF
  31827. -/* confdefs.h. */
  31828. -_ACEOF
  31829. -cat confdefs.h >>conftest.$ac_ext
  31830. -cat >>conftest.$ac_ext <<_ACEOF
  31831. -/* end confdefs.h. */
  31832. -#define _FILE_OFFSET_BITS 64
  31833. -#include <sys/types.h>
  31834. - /* Check that off_t can represent 2**63 - 1 correctly.
  31835. - We can't simply define LARGE_OFF_T to be 9223372036854775807,
  31836. - since some C++ compilers masquerading as C compilers
  31837. - incorrectly reject 9223372036854775807. */
  31838. -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  31839. - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  31840. - && LARGE_OFF_T % 2147483647 == 1)
  31841. - ? 1 : -1];
  31842. -int
  31843. -main ()
  31844. -{
  31845. -
  31846. - ;
  31847. - return 0;
  31848. -}
  31849. -_ACEOF
  31850. -rm -f conftest.$ac_objext
  31851. -if { (ac_try="$ac_compile"
  31852. -case "(($ac_try" in
  31853. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31854. - *) ac_try_echo=$ac_try;;
  31855. -esac
  31856. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31857. - (eval "$ac_compile") 2>conftest.er1
  31858. - ac_status=$?
  31859. - grep -v '^ *+' conftest.er1 >conftest.err
  31860. - rm -f conftest.er1
  31861. - cat conftest.err >&5
  31862. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31863. - (exit $ac_status); } && {
  31864. - test -z "$ac_c_werror_flag" ||
  31865. - test ! -s conftest.err
  31866. - } && test -s conftest.$ac_objext; then
  31867. - ac_cv_sys_file_offset_bits=64; break
  31868. -else
  31869. - echo "$as_me: failed program was:" >&5
  31870. -sed 's/^/| /' conftest.$ac_ext >&5
  31871. -
  31872. -
  31873. -fi
  31874. -
  31875. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31876. - ac_cv_sys_file_offset_bits=unknown
  31877. - break
  31878. -done
  31879. -fi
  31880. -{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  31881. -echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  31882. -case $ac_cv_sys_file_offset_bits in #(
  31883. - no | unknown) ;;
  31884. - *)
  31885. -cat >>confdefs.h <<_ACEOF
  31886. -#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  31887. -_ACEOF
  31888. -;;
  31889. -esac
  31890. -rm -f conftest*
  31891. - if test $ac_cv_sys_file_offset_bits = unknown; then
  31892. - { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  31893. -echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  31894. -if test "${ac_cv_sys_large_files+set}" = set; then
  31895. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31896. -else
  31897. - while :; do
  31898. - cat >conftest.$ac_ext <<_ACEOF
  31899. -/* confdefs.h. */
  31900. -_ACEOF
  31901. -cat confdefs.h >>conftest.$ac_ext
  31902. -cat >>conftest.$ac_ext <<_ACEOF
  31903. -/* end confdefs.h. */
  31904. -#include <sys/types.h>
  31905. - /* Check that off_t can represent 2**63 - 1 correctly.
  31906. - We can't simply define LARGE_OFF_T to be 9223372036854775807,
  31907. - since some C++ compilers masquerading as C compilers
  31908. - incorrectly reject 9223372036854775807. */
  31909. -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  31910. - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  31911. - && LARGE_OFF_T % 2147483647 == 1)
  31912. - ? 1 : -1];
  31913. -int
  31914. -main ()
  31915. -{
  31916. -
  31917. - ;
  31918. - return 0;
  31919. -}
  31920. -_ACEOF
  31921. -rm -f conftest.$ac_objext
  31922. -if { (ac_try="$ac_compile"
  31923. -case "(($ac_try" in
  31924. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31925. - *) ac_try_echo=$ac_try;;
  31926. -esac
  31927. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31928. - (eval "$ac_compile") 2>conftest.er1
  31929. - ac_status=$?
  31930. - grep -v '^ *+' conftest.er1 >conftest.err
  31931. - rm -f conftest.er1
  31932. - cat conftest.err >&5
  31933. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31934. - (exit $ac_status); } && {
  31935. - test -z "$ac_c_werror_flag" ||
  31936. - test ! -s conftest.err
  31937. - } && test -s conftest.$ac_objext; then
  31938. - ac_cv_sys_large_files=no; break
  31939. -else
  31940. - echo "$as_me: failed program was:" >&5
  31941. -sed 's/^/| /' conftest.$ac_ext >&5
  31942. -
  31943. -
  31944. -fi
  31945. -
  31946. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31947. - cat >conftest.$ac_ext <<_ACEOF
  31948. -/* confdefs.h. */
  31949. -_ACEOF
  31950. -cat confdefs.h >>conftest.$ac_ext
  31951. -cat >>conftest.$ac_ext <<_ACEOF
  31952. -/* end confdefs.h. */
  31953. -#define _LARGE_FILES 1
  31954. -#include <sys/types.h>
  31955. - /* Check that off_t can represent 2**63 - 1 correctly.
  31956. - We can't simply define LARGE_OFF_T to be 9223372036854775807,
  31957. - since some C++ compilers masquerading as C compilers
  31958. - incorrectly reject 9223372036854775807. */
  31959. -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  31960. - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  31961. - && LARGE_OFF_T % 2147483647 == 1)
  31962. - ? 1 : -1];
  31963. -int
  31964. -main ()
  31965. -{
  31966. -
  31967. - ;
  31968. - return 0;
  31969. -}
  31970. -_ACEOF
  31971. -rm -f conftest.$ac_objext
  31972. -if { (ac_try="$ac_compile"
  31973. -case "(($ac_try" in
  31974. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31975. - *) ac_try_echo=$ac_try;;
  31976. -esac
  31977. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31978. - (eval "$ac_compile") 2>conftest.er1
  31979. - ac_status=$?
  31980. - grep -v '^ *+' conftest.er1 >conftest.err
  31981. - rm -f conftest.er1
  31982. - cat conftest.err >&5
  31983. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31984. - (exit $ac_status); } && {
  31985. - test -z "$ac_c_werror_flag" ||
  31986. - test ! -s conftest.err
  31987. - } && test -s conftest.$ac_objext; then
  31988. - ac_cv_sys_large_files=1; break
  31989. -else
  31990. - echo "$as_me: failed program was:" >&5
  31991. -sed 's/^/| /' conftest.$ac_ext >&5
  31992. -
  31993. -
  31994. -fi
  31995. -
  31996. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31997. - ac_cv_sys_large_files=unknown
  31998. - break
  31999. -done
  32000. -fi
  32001. -{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  32002. -echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  32003. -case $ac_cv_sys_large_files in #(
  32004. - no | unknown) ;;
  32005. - *)
  32006. -cat >>confdefs.h <<_ACEOF
  32007. -#define _LARGE_FILES $ac_cv_sys_large_files
  32008. -_ACEOF
  32009. -;;
  32010. -esac
  32011. -rm -f conftest*
  32012. - fi
  32013. -fi
  32014. -
  32015. -
  32016. -
  32017. -DEBUG="-g"
  32018. -if test -z "$GCC"; then
  32019. - XIPH_CPPFLAGS="-D_REENTRANT"
  32020. - PROFILE="-g -p"
  32021. -else
  32022. - XIPH_CPPFLAGS="-Wall -ffast-math -fsigned-char"
  32023. - PROFILE="-pg -g"
  32024. -
  32025. -cat >>confdefs.h <<\_ACEOF
  32026. -#define _GNU_SOURCE 1
  32027. -_ACEOF
  32028. -
  32029. -fi
  32030. -
  32031. -
  32032. -
  32033. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  32034. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  32035. -if test "${ac_cv_header_stdc+set}" = set; then
  32036. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32037. -else
  32038. - cat >conftest.$ac_ext <<_ACEOF
  32039. -/* confdefs.h. */
  32040. -_ACEOF
  32041. -cat confdefs.h >>conftest.$ac_ext
  32042. -cat >>conftest.$ac_ext <<_ACEOF
  32043. -/* end confdefs.h. */
  32044. -#include <stdlib.h>
  32045. -#include <stdarg.h>
  32046. -#include <string.h>
  32047. -#include <float.h>
  32048. -
  32049. -int
  32050. -main ()
  32051. -{
  32052. -
  32053. - ;
  32054. - return 0;
  32055. -}
  32056. -_ACEOF
  32057. -rm -f conftest.$ac_objext
  32058. -if { (ac_try="$ac_compile"
  32059. -case "(($ac_try" in
  32060. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32061. - *) ac_try_echo=$ac_try;;
  32062. -esac
  32063. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32064. - (eval "$ac_compile") 2>conftest.er1
  32065. - ac_status=$?
  32066. - grep -v '^ *+' conftest.er1 >conftest.err
  32067. - rm -f conftest.er1
  32068. - cat conftest.err >&5
  32069. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32070. - (exit $ac_status); } && {
  32071. - test -z "$ac_c_werror_flag" ||
  32072. - test ! -s conftest.err
  32073. - } && test -s conftest.$ac_objext; then
  32074. - ac_cv_header_stdc=yes
  32075. -else
  32076. - echo "$as_me: failed program was:" >&5
  32077. -sed 's/^/| /' conftest.$ac_ext >&5
  32078. -
  32079. - ac_cv_header_stdc=no
  32080. -fi
  32081. -
  32082. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32083. -
  32084. -if test $ac_cv_header_stdc = yes; then
  32085. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  32086. - cat >conftest.$ac_ext <<_ACEOF
  32087. -/* confdefs.h. */
  32088. -_ACEOF
  32089. -cat confdefs.h >>conftest.$ac_ext
  32090. -cat >>conftest.$ac_ext <<_ACEOF
  32091. -/* end confdefs.h. */
  32092. -#include <string.h>
  32093. -
  32094. -_ACEOF
  32095. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32096. - $EGREP "memchr" >/dev/null 2>&1; then
  32097. - :
  32098. -else
  32099. - ac_cv_header_stdc=no
  32100. -fi
  32101. -rm -f conftest*
  32102. -
  32103. -fi
  32104. -
  32105. -if test $ac_cv_header_stdc = yes; then
  32106. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  32107. - cat >conftest.$ac_ext <<_ACEOF
  32108. -/* confdefs.h. */
  32109. -_ACEOF
  32110. -cat confdefs.h >>conftest.$ac_ext
  32111. -cat >>conftest.$ac_ext <<_ACEOF
  32112. -/* end confdefs.h. */
  32113. -#include <stdlib.h>
  32114. -
  32115. -_ACEOF
  32116. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32117. - $EGREP "free" >/dev/null 2>&1; then
  32118. - :
  32119. -else
  32120. - ac_cv_header_stdc=no
  32121. -fi
  32122. -rm -f conftest*
  32123. -
  32124. -fi
  32125. -
  32126. -if test $ac_cv_header_stdc = yes; then
  32127. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  32128. - if test "$cross_compiling" = yes; then
  32129. - :
  32130. -else
  32131. - cat >conftest.$ac_ext <<_ACEOF
  32132. -/* confdefs.h. */
  32133. -_ACEOF
  32134. -cat confdefs.h >>conftest.$ac_ext
  32135. -cat >>conftest.$ac_ext <<_ACEOF
  32136. -/* end confdefs.h. */
  32137. -#include <ctype.h>
  32138. -#include <stdlib.h>
  32139. -#if ((' ' & 0x0FF) == 0x020)
  32140. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  32141. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  32142. -#else
  32143. -# define ISLOWER(c) \
  32144. - (('a' <= (c) && (c) <= 'i') \
  32145. - || ('j' <= (c) && (c) <= 'r') \
  32146. - || ('s' <= (c) && (c) <= 'z'))
  32147. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  32148. -#endif
  32149. -
  32150. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  32151. -int
  32152. -main ()
  32153. -{
  32154. - int i;
  32155. - for (i = 0; i < 256; i++)
  32156. - if (XOR (islower (i), ISLOWER (i))
  32157. - || toupper (i) != TOUPPER (i))
  32158. - return 2;
  32159. - return 0;
  32160. -}
  32161. -_ACEOF
  32162. -rm -f conftest$ac_exeext
  32163. -if { (ac_try="$ac_link"
  32164. -case "(($ac_try" in
  32165. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32166. - *) ac_try_echo=$ac_try;;
  32167. -esac
  32168. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32169. - (eval "$ac_link") 2>&5
  32170. - ac_status=$?
  32171. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32172. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  32173. - { (case "(($ac_try" in
  32174. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32175. - *) ac_try_echo=$ac_try;;
  32176. -esac
  32177. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32178. - (eval "$ac_try") 2>&5
  32179. - ac_status=$?
  32180. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32181. - (exit $ac_status); }; }; then
  32182. - :
  32183. -else
  32184. - echo "$as_me: program exited with status $ac_status" >&5
  32185. -echo "$as_me: failed program was:" >&5
  32186. -sed 's/^/| /' conftest.$ac_ext >&5
  32187. -
  32188. -( exit $ac_status )
  32189. -ac_cv_header_stdc=no
  32190. -fi
  32191. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  32192. -fi
  32193. -
  32194. -
  32195. -fi
  32196. -fi
  32197. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  32198. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  32199. -if test $ac_cv_header_stdc = yes; then
  32200. -
  32201. -cat >>confdefs.h <<\_ACEOF
  32202. -#define STDC_HEADERS 1
  32203. -_ACEOF
  32204. -
  32205. -fi
  32206. -
  32207. -{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  32208. -echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  32209. -if test "${ac_cv_header_time+set}" = set; then
  32210. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32211. -else
  32212. - cat >conftest.$ac_ext <<_ACEOF
  32213. -/* confdefs.h. */
  32214. -_ACEOF
  32215. -cat confdefs.h >>conftest.$ac_ext
  32216. -cat >>conftest.$ac_ext <<_ACEOF
  32217. -/* end confdefs.h. */
  32218. -#include <sys/types.h>
  32219. -#include <sys/time.h>
  32220. -#include <time.h>
  32221. -
  32222. -int
  32223. -main ()
  32224. -{
  32225. -if ((struct tm *) 0)
  32226. -return 0;
  32227. - ;
  32228. - return 0;
  32229. -}
  32230. -_ACEOF
  32231. -rm -f conftest.$ac_objext
  32232. -if { (ac_try="$ac_compile"
  32233. -case "(($ac_try" in
  32234. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32235. - *) ac_try_echo=$ac_try;;
  32236. -esac
  32237. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32238. - (eval "$ac_compile") 2>conftest.er1
  32239. - ac_status=$?
  32240. - grep -v '^ *+' conftest.er1 >conftest.err
  32241. - rm -f conftest.er1
  32242. - cat conftest.err >&5
  32243. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32244. - (exit $ac_status); } && {
  32245. - test -z "$ac_c_werror_flag" ||
  32246. - test ! -s conftest.err
  32247. - } && test -s conftest.$ac_objext; then
  32248. - ac_cv_header_time=yes
  32249. -else
  32250. - echo "$as_me: failed program was:" >&5
  32251. -sed 's/^/| /' conftest.$ac_ext >&5
  32252. -
  32253. - ac_cv_header_time=no
  32254. -fi
  32255. -
  32256. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32257. -fi
  32258. -{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  32259. -echo "${ECHO_T}$ac_cv_header_time" >&6; }
  32260. -if test $ac_cv_header_time = yes; then
  32261. -
  32262. -cat >>confdefs.h <<\_ACEOF
  32263. -#define TIME_WITH_SYS_TIME 1
  32264. -_ACEOF
  32265. -
  32266. -fi
  32267. -
  32268. -
  32269. -
  32270. -for ac_header in alloca.h
  32271. -do
  32272. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  32273. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  32274. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  32275. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  32276. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  32277. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32278. -fi
  32279. -ac_res=`eval echo '${'$as_ac_Header'}'`
  32280. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  32281. -echo "${ECHO_T}$ac_res" >&6; }
  32282. -else
  32283. - # Is the header compilable?
  32284. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  32285. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  32286. -cat >conftest.$ac_ext <<_ACEOF
  32287. -/* confdefs.h. */
  32288. -_ACEOF
  32289. -cat confdefs.h >>conftest.$ac_ext
  32290. -cat >>conftest.$ac_ext <<_ACEOF
  32291. -/* end confdefs.h. */
  32292. -$ac_includes_default
  32293. -#include <$ac_header>
  32294. -_ACEOF
  32295. -rm -f conftest.$ac_objext
  32296. -if { (ac_try="$ac_compile"
  32297. -case "(($ac_try" in
  32298. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32299. - *) ac_try_echo=$ac_try;;
  32300. -esac
  32301. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32302. - (eval "$ac_compile") 2>conftest.er1
  32303. - ac_status=$?
  32304. - grep -v '^ *+' conftest.er1 >conftest.err
  32305. - rm -f conftest.er1
  32306. - cat conftest.err >&5
  32307. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32308. - (exit $ac_status); } && {
  32309. - test -z "$ac_c_werror_flag" ||
  32310. - test ! -s conftest.err
  32311. - } && test -s conftest.$ac_objext; then
  32312. - ac_header_compiler=yes
  32313. -else
  32314. - echo "$as_me: failed program was:" >&5
  32315. -sed 's/^/| /' conftest.$ac_ext >&5
  32316. -
  32317. - ac_header_compiler=no
  32318. -fi
  32319. -
  32320. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32321. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  32322. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  32323. -
  32324. -# Is the header present?
  32325. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  32326. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  32327. -cat >conftest.$ac_ext <<_ACEOF
  32328. -/* confdefs.h. */
  32329. -_ACEOF
  32330. -cat confdefs.h >>conftest.$ac_ext
  32331. -cat >>conftest.$ac_ext <<_ACEOF
  32332. -/* end confdefs.h. */
  32333. -#include <$ac_header>
  32334. -_ACEOF
  32335. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  32336. -case "(($ac_try" in
  32337. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32338. - *) ac_try_echo=$ac_try;;
  32339. -esac
  32340. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32341. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  32342. - ac_status=$?
  32343. - grep -v '^ *+' conftest.er1 >conftest.err
  32344. - rm -f conftest.er1
  32345. - cat conftest.err >&5
  32346. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32347. - (exit $ac_status); } >/dev/null && {
  32348. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  32349. - test ! -s conftest.err
  32350. - }; then
  32351. - ac_header_preproc=yes
  32352. -else
  32353. - echo "$as_me: failed program was:" >&5
  32354. -sed 's/^/| /' conftest.$ac_ext >&5
  32355. -
  32356. - ac_header_preproc=no
  32357. -fi
  32358. -
  32359. -rm -f conftest.err conftest.$ac_ext
  32360. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32361. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  32362. -
  32363. -# So? What about this header?
  32364. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32365. - yes:no: )
  32366. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  32367. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  32368. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  32369. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  32370. - ac_header_preproc=yes
  32371. - ;;
  32372. - no:yes:* )
  32373. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  32374. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  32375. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  32376. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  32377. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  32378. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  32379. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  32380. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  32381. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  32382. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  32383. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  32384. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  32385. - ( cat <<\_ASBOX
  32386. -## ------------------------------- ##
  32387. -## Report this to icecast@xiph.org ##
  32388. -## ------------------------------- ##
  32389. -_ASBOX
  32390. - ) | sed "s/^/$as_me: WARNING: /" >&2
  32391. - ;;
  32392. -esac
  32393. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  32394. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  32395. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  32396. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32397. -else
  32398. - eval "$as_ac_Header=\$ac_header_preproc"
  32399. -fi
  32400. -ac_res=`eval echo '${'$as_ac_Header'}'`
  32401. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  32402. -echo "${ECHO_T}$ac_res" >&6; }
  32403. -
  32404. -fi
  32405. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  32406. - cat >>confdefs.h <<_ACEOF
  32407. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  32408. -_ACEOF
  32409. -
  32410. -fi
  32411. -
  32412. -done
  32413. -
  32414. -
  32415. -for ac_header in pwd.h
  32416. -do
  32417. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  32418. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  32419. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  32420. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  32421. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  32422. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32423. -fi
  32424. -ac_res=`eval echo '${'$as_ac_Header'}'`
  32425. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  32426. -echo "${ECHO_T}$ac_res" >&6; }
  32427. -else
  32428. - # Is the header compilable?
  32429. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  32430. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  32431. -cat >conftest.$ac_ext <<_ACEOF
  32432. -/* confdefs.h. */
  32433. -_ACEOF
  32434. -cat confdefs.h >>conftest.$ac_ext
  32435. -cat >>conftest.$ac_ext <<_ACEOF
  32436. -/* end confdefs.h. */
  32437. -$ac_includes_default
  32438. -#include <$ac_header>
  32439. -_ACEOF
  32440. -rm -f conftest.$ac_objext
  32441. -if { (ac_try="$ac_compile"
  32442. -case "(($ac_try" in
  32443. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32444. - *) ac_try_echo=$ac_try;;
  32445. -esac
  32446. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32447. - (eval "$ac_compile") 2>conftest.er1
  32448. - ac_status=$?
  32449. - grep -v '^ *+' conftest.er1 >conftest.err
  32450. - rm -f conftest.er1
  32451. - cat conftest.err >&5
  32452. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32453. - (exit $ac_status); } && {
  32454. - test -z "$ac_c_werror_flag" ||
  32455. - test ! -s conftest.err
  32456. - } && test -s conftest.$ac_objext; then
  32457. - ac_header_compiler=yes
  32458. -else
  32459. - echo "$as_me: failed program was:" >&5
  32460. -sed 's/^/| /' conftest.$ac_ext >&5
  32461. -
  32462. - ac_header_compiler=no
  32463. -fi
  32464. -
  32465. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32466. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  32467. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  32468. -
  32469. -# Is the header present?
  32470. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  32471. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  32472. -cat >conftest.$ac_ext <<_ACEOF
  32473. -/* confdefs.h. */
  32474. -_ACEOF
  32475. -cat confdefs.h >>conftest.$ac_ext
  32476. -cat >>conftest.$ac_ext <<_ACEOF
  32477. -/* end confdefs.h. */
  32478. -#include <$ac_header>
  32479. -_ACEOF
  32480. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  32481. -case "(($ac_try" in
  32482. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32483. - *) ac_try_echo=$ac_try;;
  32484. -esac
  32485. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32486. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  32487. - ac_status=$?
  32488. - grep -v '^ *+' conftest.er1 >conftest.err
  32489. - rm -f conftest.er1
  32490. - cat conftest.err >&5
  32491. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32492. - (exit $ac_status); } >/dev/null && {
  32493. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  32494. - test ! -s conftest.err
  32495. - }; then
  32496. - ac_header_preproc=yes
  32497. -else
  32498. - echo "$as_me: failed program was:" >&5
  32499. -sed 's/^/| /' conftest.$ac_ext >&5
  32500. -
  32501. - ac_header_preproc=no
  32502. -fi
  32503. -
  32504. -rm -f conftest.err conftest.$ac_ext
  32505. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32506. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  32507. -
  32508. -# So? What about this header?
  32509. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32510. - yes:no: )
  32511. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  32512. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  32513. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  32514. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  32515. - ac_header_preproc=yes
  32516. - ;;
  32517. - no:yes:* )
  32518. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  32519. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  32520. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  32521. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  32522. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  32523. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  32524. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  32525. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  32526. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  32527. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  32528. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  32529. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  32530. - ( cat <<\_ASBOX
  32531. -## ------------------------------- ##
  32532. -## Report this to icecast@xiph.org ##
  32533. -## ------------------------------- ##
  32534. -_ASBOX
  32535. - ) | sed "s/^/$as_me: WARNING: /" >&2
  32536. - ;;
  32537. -esac
  32538. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  32539. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  32540. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  32541. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32542. -else
  32543. - eval "$as_ac_Header=\$ac_header_preproc"
  32544. -fi
  32545. -ac_res=`eval echo '${'$as_ac_Header'}'`
  32546. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  32547. -echo "${ECHO_T}$ac_res" >&6; }
  32548. -
  32549. -fi
  32550. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  32551. - cat >>confdefs.h <<_ACEOF
  32552. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  32553. -_ACEOF
  32554. -
  32555. -cat >>confdefs.h <<\_ACEOF
  32556. -#define CHUID 1
  32557. -_ACEOF
  32558. -
  32559. -fi
  32560. -
  32561. -done
  32562. -
  32563. -
  32564. -for ac_header in unistd.h
  32565. -do
  32566. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  32567. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  32568. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  32569. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  32570. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  32571. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32572. -fi
  32573. -ac_res=`eval echo '${'$as_ac_Header'}'`
  32574. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  32575. -echo "${ECHO_T}$ac_res" >&6; }
  32576. -else
  32577. - # Is the header compilable?
  32578. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  32579. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  32580. -cat >conftest.$ac_ext <<_ACEOF
  32581. -/* confdefs.h. */
  32582. -_ACEOF
  32583. -cat confdefs.h >>conftest.$ac_ext
  32584. -cat >>conftest.$ac_ext <<_ACEOF
  32585. -/* end confdefs.h. */
  32586. -$ac_includes_default
  32587. -#include <$ac_header>
  32588. -_ACEOF
  32589. -rm -f conftest.$ac_objext
  32590. -if { (ac_try="$ac_compile"
  32591. -case "(($ac_try" in
  32592. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32593. - *) ac_try_echo=$ac_try;;
  32594. -esac
  32595. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32596. - (eval "$ac_compile") 2>conftest.er1
  32597. - ac_status=$?
  32598. - grep -v '^ *+' conftest.er1 >conftest.err
  32599. - rm -f conftest.er1
  32600. - cat conftest.err >&5
  32601. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32602. - (exit $ac_status); } && {
  32603. - test -z "$ac_c_werror_flag" ||
  32604. - test ! -s conftest.err
  32605. - } && test -s conftest.$ac_objext; then
  32606. - ac_header_compiler=yes
  32607. -else
  32608. - echo "$as_me: failed program was:" >&5
  32609. -sed 's/^/| /' conftest.$ac_ext >&5
  32610. -
  32611. - ac_header_compiler=no
  32612. -fi
  32613. -
  32614. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32615. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  32616. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  32617. -
  32618. -# Is the header present?
  32619. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  32620. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  32621. -cat >conftest.$ac_ext <<_ACEOF
  32622. -/* confdefs.h. */
  32623. -_ACEOF
  32624. -cat confdefs.h >>conftest.$ac_ext
  32625. -cat >>conftest.$ac_ext <<_ACEOF
  32626. -/* end confdefs.h. */
  32627. -#include <$ac_header>
  32628. -_ACEOF
  32629. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  32630. -case "(($ac_try" in
  32631. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32632. - *) ac_try_echo=$ac_try;;
  32633. -esac
  32634. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32635. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  32636. - ac_status=$?
  32637. - grep -v '^ *+' conftest.er1 >conftest.err
  32638. - rm -f conftest.er1
  32639. - cat conftest.err >&5
  32640. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32641. - (exit $ac_status); } >/dev/null && {
  32642. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  32643. - test ! -s conftest.err
  32644. - }; then
  32645. - ac_header_preproc=yes
  32646. -else
  32647. - echo "$as_me: failed program was:" >&5
  32648. -sed 's/^/| /' conftest.$ac_ext >&5
  32649. -
  32650. - ac_header_preproc=no
  32651. -fi
  32652. -
  32653. -rm -f conftest.err conftest.$ac_ext
  32654. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  32655. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  32656. -
  32657. -# So? What about this header?
  32658. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  32659. - yes:no: )
  32660. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  32661. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  32662. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  32663. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  32664. - ac_header_preproc=yes
  32665. - ;;
  32666. - no:yes:* )
  32667. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  32668. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  32669. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  32670. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  32671. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  32672. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  32673. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  32674. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  32675. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  32676. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  32677. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  32678. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  32679. - ( cat <<\_ASBOX
  32680. -## ------------------------------- ##
  32681. -## Report this to icecast@xiph.org ##
  32682. -## ------------------------------- ##
  32683. -_ASBOX
  32684. - ) | sed "s/^/$as_me: WARNING: /" >&2
  32685. - ;;
  32686. -esac
  32687. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  32688. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  32689. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  32690. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32691. -else
  32692. - eval "$as_ac_Header=\$ac_header_preproc"
  32693. -fi
  32694. -ac_res=`eval echo '${'$as_ac_Header'}'`
  32695. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  32696. -echo "${ECHO_T}$ac_res" >&6; }
  32697. -
  32698. -fi
  32699. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  32700. - cat >>confdefs.h <<_ACEOF
  32701. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  32702. -_ACEOF
  32703. -
  32704. -cat >>confdefs.h <<\_ACEOF
  32705. -#define CHROOT 1
  32706. -_ACEOF
  32707. -
  32708. -fi
  32709. -
  32710. -done
  32711. -
  32712. -
  32713. -{ echo "$as_me:$LINENO: checking for __func__" >&5
  32714. -echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
  32715. -cat >conftest.$ac_ext <<_ACEOF
  32716. -/* confdefs.h. */
  32717. -_ACEOF
  32718. -cat confdefs.h >>conftest.$ac_ext
  32719. -cat >>conftest.$ac_ext <<_ACEOF
  32720. -/* end confdefs.h. */
  32721. -
  32722. -int
  32723. -main ()
  32724. -{
  32725. -const char *x = __func__;
  32726. - ;
  32727. - return 0;
  32728. -}
  32729. -_ACEOF
  32730. -rm -f conftest.$ac_objext
  32731. -if { (ac_try="$ac_compile"
  32732. -case "(($ac_try" in
  32733. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32734. - *) ac_try_echo=$ac_try;;
  32735. -esac
  32736. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32737. - (eval "$ac_compile") 2>conftest.er1
  32738. - ac_status=$?
  32739. - grep -v '^ *+' conftest.er1 >conftest.err
  32740. - rm -f conftest.er1
  32741. - cat conftest.err >&5
  32742. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32743. - (exit $ac_status); } && {
  32744. - test -z "$ac_c_werror_flag" ||
  32745. - test ! -s conftest.err
  32746. - } && test -s conftest.$ac_objext; then
  32747. - { echo "$as_me:$LINENO: result: yes" >&5
  32748. -echo "${ECHO_T}yes" >&6; }
  32749. -else
  32750. - echo "$as_me: failed program was:" >&5
  32751. -sed 's/^/| /' conftest.$ac_ext >&5
  32752. -
  32753. -
  32754. -
  32755. - cat >conftest.$ac_ext <<_ACEOF
  32756. -/* confdefs.h. */
  32757. -_ACEOF
  32758. -cat confdefs.h >>conftest.$ac_ext
  32759. -cat >>conftest.$ac_ext <<_ACEOF
  32760. -/* end confdefs.h. */
  32761. -
  32762. -int
  32763. -main ()
  32764. -{
  32765. -const char *x = __FUNCTION__;
  32766. - ;
  32767. - return 0;
  32768. -}
  32769. -_ACEOF
  32770. -rm -f conftest.$ac_objext
  32771. -if { (ac_try="$ac_compile"
  32772. -case "(($ac_try" in
  32773. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32774. - *) ac_try_echo=$ac_try;;
  32775. -esac
  32776. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32777. - (eval "$ac_compile") 2>conftest.er1
  32778. - ac_status=$?
  32779. - grep -v '^ *+' conftest.er1 >conftest.err
  32780. - rm -f conftest.er1
  32781. - cat conftest.err >&5
  32782. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32783. - (exit $ac_status); } && {
  32784. - test -z "$ac_c_werror_flag" ||
  32785. - test ! -s conftest.err
  32786. - } && test -s conftest.$ac_objext; then
  32787. - cat >>confdefs.h <<\_ACEOF
  32788. -#define __func__ __FUNCTION__
  32789. -_ACEOF
  32790. -
  32791. - { echo "$as_me:$LINENO: result: Using __FUNCTION__" >&5
  32792. -echo "${ECHO_T}Using __FUNCTION__" >&6; }
  32793. -else
  32794. - echo "$as_me: failed program was:" >&5
  32795. -sed 's/^/| /' conftest.$ac_ext >&5
  32796. -
  32797. - cat >>confdefs.h <<\_ACEOF
  32798. -#define __func__ "__FILE__"
  32799. -_ACEOF
  32800. -
  32801. - { echo "$as_me:$LINENO: result: using __FILE__" >&5
  32802. -echo "${ECHO_T}using __FILE__" >&6; }
  32803. -
  32804. -fi
  32805. -
  32806. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32807. -
  32808. -fi
  32809. -
  32810. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32811. -
  32812. -
  32813. -
  32814. -
  32815. -
  32816. -for ac_func in localtime_r poll
  32817. -do
  32818. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  32819. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  32820. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  32821. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  32822. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32823. -else
  32824. - cat >conftest.$ac_ext <<_ACEOF
  32825. -/* confdefs.h. */
  32826. -_ACEOF
  32827. -cat confdefs.h >>conftest.$ac_ext
  32828. -cat >>conftest.$ac_ext <<_ACEOF
  32829. -/* end confdefs.h. */
  32830. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  32831. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  32832. -#define $ac_func innocuous_$ac_func
  32833. -
  32834. -/* System header to define __stub macros and hopefully few prototypes,
  32835. - which can conflict with char $ac_func (); below.
  32836. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  32837. - <limits.h> exists even on freestanding compilers. */
  32838. -
  32839. -#ifdef __STDC__
  32840. -# include <limits.h>
  32841. -#else
  32842. -# include <assert.h>
  32843. -#endif
  32844. -
  32845. -#undef $ac_func
  32846. -
  32847. -/* Override any GCC internal prototype to avoid an error.
  32848. - Use char because int might match the return type of a GCC
  32849. - builtin and then its argument prototype would still apply. */
  32850. -#ifdef __cplusplus
  32851. -extern "C"
  32852. -#endif
  32853. -char $ac_func ();
  32854. -/* The GNU C library defines this for functions which it implements
  32855. - to always fail with ENOSYS. Some functions are actually named
  32856. - something starting with __ and the normal name is an alias. */
  32857. -#if defined __stub_$ac_func || defined __stub___$ac_func
  32858. -choke me
  32859. -#endif
  32860. -
  32861. -int
  32862. -main ()
  32863. -{
  32864. -return $ac_func ();
  32865. - ;
  32866. - return 0;
  32867. -}
  32868. -_ACEOF
  32869. -rm -f conftest.$ac_objext conftest$ac_exeext
  32870. -if { (ac_try="$ac_link"
  32871. -case "(($ac_try" in
  32872. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32873. - *) ac_try_echo=$ac_try;;
  32874. -esac
  32875. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32876. - (eval "$ac_link") 2>conftest.er1
  32877. - ac_status=$?
  32878. - grep -v '^ *+' conftest.er1 >conftest.err
  32879. - rm -f conftest.er1
  32880. - cat conftest.err >&5
  32881. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32882. - (exit $ac_status); } && {
  32883. - test -z "$ac_c_werror_flag" ||
  32884. - test ! -s conftest.err
  32885. - } && test -s conftest$ac_exeext &&
  32886. - $as_test_x conftest$ac_exeext; then
  32887. - eval "$as_ac_var=yes"
  32888. -else
  32889. - echo "$as_me: failed program was:" >&5
  32890. -sed 's/^/| /' conftest.$ac_ext >&5
  32891. -
  32892. - eval "$as_ac_var=no"
  32893. -fi
  32894. -
  32895. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32896. - conftest$ac_exeext conftest.$ac_ext
  32897. -fi
  32898. -ac_res=`eval echo '${'$as_ac_var'}'`
  32899. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  32900. -echo "${ECHO_T}$ac_res" >&6; }
  32901. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  32902. - cat >>confdefs.h <<_ACEOF
  32903. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  32904. -_ACEOF
  32905. -
  32906. -fi
  32907. -done
  32908. -
  32909. -{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
  32910. -echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
  32911. -if test "${ac_cv_search_nanosleep+set}" = set; then
  32912. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32913. -else
  32914. - ac_func_search_save_LIBS=$LIBS
  32915. -cat >conftest.$ac_ext <<_ACEOF
  32916. -/* confdefs.h. */
  32917. -_ACEOF
  32918. -cat confdefs.h >>conftest.$ac_ext
  32919. -cat >>conftest.$ac_ext <<_ACEOF
  32920. -/* end confdefs.h. */
  32921. -
  32922. -/* Override any GCC internal prototype to avoid an error.
  32923. - Use char because int might match the return type of a GCC
  32924. - builtin and then its argument prototype would still apply. */
  32925. -#ifdef __cplusplus
  32926. -extern "C"
  32927. -#endif
  32928. -char nanosleep ();
  32929. -int
  32930. -main ()
  32931. -{
  32932. -return nanosleep ();
  32933. - ;
  32934. - return 0;
  32935. -}
  32936. -_ACEOF
  32937. -for ac_lib in '' rt posix4; do
  32938. - if test -z "$ac_lib"; then
  32939. - ac_res="none required"
  32940. - else
  32941. - ac_res=-l$ac_lib
  32942. - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  32943. - fi
  32944. - rm -f conftest.$ac_objext conftest$ac_exeext
  32945. -if { (ac_try="$ac_link"
  32946. -case "(($ac_try" in
  32947. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  32948. - *) ac_try_echo=$ac_try;;
  32949. -esac
  32950. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  32951. - (eval "$ac_link") 2>conftest.er1
  32952. - ac_status=$?
  32953. - grep -v '^ *+' conftest.er1 >conftest.err
  32954. - rm -f conftest.er1
  32955. - cat conftest.err >&5
  32956. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32957. - (exit $ac_status); } && {
  32958. - test -z "$ac_c_werror_flag" ||
  32959. - test ! -s conftest.err
  32960. - } && test -s conftest$ac_exeext &&
  32961. - $as_test_x conftest$ac_exeext; then
  32962. - ac_cv_search_nanosleep=$ac_res
  32963. -else
  32964. - echo "$as_me: failed program was:" >&5
  32965. -sed 's/^/| /' conftest.$ac_ext >&5
  32966. -
  32967. -
  32968. -fi
  32969. -
  32970. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  32971. - conftest$ac_exeext
  32972. - if test "${ac_cv_search_nanosleep+set}" = set; then
  32973. - break
  32974. -fi
  32975. -done
  32976. -if test "${ac_cv_search_nanosleep+set}" = set; then
  32977. - :
  32978. -else
  32979. - ac_cv_search_nanosleep=no
  32980. -fi
  32981. -rm conftest.$ac_ext
  32982. -LIBS=$ac_func_search_save_LIBS
  32983. -fi
  32984. -{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
  32985. -echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
  32986. -ac_res=$ac_cv_search_nanosleep
  32987. -if test "$ac_res" != no; then
  32988. - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  32989. -
  32990. -cat >>confdefs.h <<\_ACEOF
  32991. -#define HAVE_NANOSLEEP 1
  32992. -_ACEOF
  32993. -
  32994. -fi
  32995. -
  32996. -
  32997. -for ac_header in sys/socket.h
  32998. -do
  32999. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  33000. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  33001. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  33002. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  33003. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  33004. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33005. -fi
  33006. -ac_res=`eval echo '${'$as_ac_Header'}'`
  33007. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  33008. -echo "${ECHO_T}$ac_res" >&6; }
  33009. -else
  33010. - # Is the header compilable?
  33011. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  33012. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  33013. -cat >conftest.$ac_ext <<_ACEOF
  33014. -/* confdefs.h. */
  33015. -_ACEOF
  33016. -cat confdefs.h >>conftest.$ac_ext
  33017. -cat >>conftest.$ac_ext <<_ACEOF
  33018. -/* end confdefs.h. */
  33019. -$ac_includes_default
  33020. -#include <$ac_header>
  33021. -_ACEOF
  33022. -rm -f conftest.$ac_objext
  33023. -if { (ac_try="$ac_compile"
  33024. -case "(($ac_try" in
  33025. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33026. - *) ac_try_echo=$ac_try;;
  33027. -esac
  33028. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33029. - (eval "$ac_compile") 2>conftest.er1
  33030. - ac_status=$?
  33031. - grep -v '^ *+' conftest.er1 >conftest.err
  33032. - rm -f conftest.er1
  33033. - cat conftest.err >&5
  33034. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33035. - (exit $ac_status); } && {
  33036. - test -z "$ac_c_werror_flag" ||
  33037. - test ! -s conftest.err
  33038. - } && test -s conftest.$ac_objext; then
  33039. - ac_header_compiler=yes
  33040. -else
  33041. - echo "$as_me: failed program was:" >&5
  33042. -sed 's/^/| /' conftest.$ac_ext >&5
  33043. -
  33044. - ac_header_compiler=no
  33045. -fi
  33046. -
  33047. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33048. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  33049. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  33050. -
  33051. -# Is the header present?
  33052. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  33053. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  33054. -cat >conftest.$ac_ext <<_ACEOF
  33055. -/* confdefs.h. */
  33056. -_ACEOF
  33057. -cat confdefs.h >>conftest.$ac_ext
  33058. -cat >>conftest.$ac_ext <<_ACEOF
  33059. -/* end confdefs.h. */
  33060. -#include <$ac_header>
  33061. -_ACEOF
  33062. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  33063. -case "(($ac_try" in
  33064. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33065. - *) ac_try_echo=$ac_try;;
  33066. -esac
  33067. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33068. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  33069. - ac_status=$?
  33070. - grep -v '^ *+' conftest.er1 >conftest.err
  33071. - rm -f conftest.er1
  33072. - cat conftest.err >&5
  33073. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33074. - (exit $ac_status); } >/dev/null && {
  33075. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  33076. - test ! -s conftest.err
  33077. - }; then
  33078. - ac_header_preproc=yes
  33079. -else
  33080. - echo "$as_me: failed program was:" >&5
  33081. -sed 's/^/| /' conftest.$ac_ext >&5
  33082. -
  33083. - ac_header_preproc=no
  33084. -fi
  33085. -
  33086. -rm -f conftest.err conftest.$ac_ext
  33087. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  33088. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  33089. -
  33090. -# So? What about this header?
  33091. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  33092. - yes:no: )
  33093. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  33094. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  33095. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  33096. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  33097. - ac_header_preproc=yes
  33098. - ;;
  33099. - no:yes:* )
  33100. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  33101. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  33102. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  33103. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  33104. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  33105. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  33106. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  33107. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  33108. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  33109. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  33110. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  33111. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  33112. - ( cat <<\_ASBOX
  33113. -## ------------------------------- ##
  33114. -## Report this to icecast@xiph.org ##
  33115. -## ------------------------------- ##
  33116. -_ASBOX
  33117. - ) | sed "s/^/$as_me: WARNING: /" >&2
  33118. - ;;
  33119. -esac
  33120. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  33121. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  33122. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  33123. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33124. -else
  33125. - eval "$as_ac_Header=\$ac_header_preproc"
  33126. -fi
  33127. -ac_res=`eval echo '${'$as_ac_Header'}'`
  33128. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  33129. -echo "${ECHO_T}$ac_res" >&6; }
  33130. -
  33131. -fi
  33132. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  33133. - cat >>confdefs.h <<_ACEOF
  33134. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  33135. -_ACEOF
  33136. -
  33137. -fi
  33138. -
  33139. -done
  33140. -
  33141. -{ echo "$as_me:$LINENO: checking for socklen_t" >&5
  33142. -echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
  33143. -if test "${ac_cv_type_socklen_t+set}" = set; then
  33144. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33145. -else
  33146. - cat >conftest.$ac_ext <<_ACEOF
  33147. -/* confdefs.h. */
  33148. -_ACEOF
  33149. -cat confdefs.h >>conftest.$ac_ext
  33150. -cat >>conftest.$ac_ext <<_ACEOF
  33151. -/* end confdefs.h. */
  33152. -#if HAVE_SYS_TYPES_H
  33153. -# include <sys/types.h>
  33154. -#endif
  33155. -#if HAVE_SYS_SOCKET_H
  33156. -# include <sys/socket.h>
  33157. -#endif
  33158. -
  33159. -
  33160. -typedef socklen_t ac__type_new_;
  33161. -int
  33162. -main ()
  33163. -{
  33164. -if ((ac__type_new_ *) 0)
  33165. - return 0;
  33166. -if (sizeof (ac__type_new_))
  33167. - return 0;
  33168. - ;
  33169. - return 0;
  33170. -}
  33171. -_ACEOF
  33172. -rm -f conftest.$ac_objext
  33173. -if { (ac_try="$ac_compile"
  33174. -case "(($ac_try" in
  33175. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33176. - *) ac_try_echo=$ac_try;;
  33177. -esac
  33178. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33179. - (eval "$ac_compile") 2>conftest.er1
  33180. - ac_status=$?
  33181. - grep -v '^ *+' conftest.er1 >conftest.err
  33182. - rm -f conftest.er1
  33183. - cat conftest.err >&5
  33184. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33185. - (exit $ac_status); } && {
  33186. - test -z "$ac_c_werror_flag" ||
  33187. - test ! -s conftest.err
  33188. - } && test -s conftest.$ac_objext; then
  33189. - ac_cv_type_socklen_t=yes
  33190. -else
  33191. - echo "$as_me: failed program was:" >&5
  33192. -sed 's/^/| /' conftest.$ac_ext >&5
  33193. -
  33194. - ac_cv_type_socklen_t=no
  33195. -fi
  33196. -
  33197. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33198. -fi
  33199. -{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
  33200. -echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
  33201. -if test $ac_cv_type_socklen_t = yes; then
  33202. -
  33203. -cat >>confdefs.h <<_ACEOF
  33204. -#define HAVE_SOCKLEN_T 1
  33205. -_ACEOF
  33206. -
  33207. -
  33208. -fi
  33209. -
  33210. -
  33211. -
  33212. -
  33213. -{ echo "$as_me:$LINENO: checking for va_copy" >&5
  33214. -echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
  33215. -cat >conftest.$ac_ext <<_ACEOF
  33216. -/* confdefs.h. */
  33217. -_ACEOF
  33218. -cat confdefs.h >>conftest.$ac_ext
  33219. -cat >>conftest.$ac_ext <<_ACEOF
  33220. -/* end confdefs.h. */
  33221. -#include <stdarg.h>
  33222. -int
  33223. -main ()
  33224. -{
  33225. -va_list ap1, ap2; va_copy(ap1, ap2);
  33226. - ;
  33227. - return 0;
  33228. -}
  33229. -_ACEOF
  33230. -rm -f conftest.$ac_objext conftest$ac_exeext
  33231. -if { (ac_try="$ac_link"
  33232. -case "(($ac_try" in
  33233. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33234. - *) ac_try_echo=$ac_try;;
  33235. -esac
  33236. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33237. - (eval "$ac_link") 2>conftest.er1
  33238. - ac_status=$?
  33239. - grep -v '^ *+' conftest.er1 >conftest.err
  33240. - rm -f conftest.er1
  33241. - cat conftest.err >&5
  33242. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33243. - (exit $ac_status); } && {
  33244. - test -z "$ac_c_werror_flag" ||
  33245. - test ! -s conftest.err
  33246. - } && test -s conftest$ac_exeext &&
  33247. - $as_test_x conftest$ac_exeext; then
  33248. - { echo "$as_me:$LINENO: result: va_copy" >&5
  33249. -echo "${ECHO_T}va_copy" >&6; }
  33250. -else
  33251. - echo "$as_me: failed program was:" >&5
  33252. -sed 's/^/| /' conftest.$ac_ext >&5
  33253. -
  33254. -
  33255. -
  33256. - cat >conftest.$ac_ext <<_ACEOF
  33257. -/* confdefs.h. */
  33258. -_ACEOF
  33259. -cat confdefs.h >>conftest.$ac_ext
  33260. -cat >>conftest.$ac_ext <<_ACEOF
  33261. -/* end confdefs.h. */
  33262. -#include <stdarg.h>
  33263. -int
  33264. -main ()
  33265. -{
  33266. -va_list ap1, ap2; __va_copy(ap1, ap2);
  33267. - ;
  33268. - return 0;
  33269. -}
  33270. -_ACEOF
  33271. -rm -f conftest.$ac_objext conftest$ac_exeext
  33272. -if { (ac_try="$ac_link"
  33273. -case "(($ac_try" in
  33274. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33275. - *) ac_try_echo=$ac_try;;
  33276. -esac
  33277. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33278. - (eval "$ac_link") 2>conftest.er1
  33279. - ac_status=$?
  33280. - grep -v '^ *+' conftest.er1 >conftest.err
  33281. - rm -f conftest.er1
  33282. - cat conftest.err >&5
  33283. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33284. - (exit $ac_status); } && {
  33285. - test -z "$ac_c_werror_flag" ||
  33286. - test ! -s conftest.err
  33287. - } && test -s conftest$ac_exeext &&
  33288. - $as_test_x conftest$ac_exeext; then
  33289. - cat >>confdefs.h <<\_ACEOF
  33290. -#define va_copy __va_copy
  33291. -_ACEOF
  33292. -
  33293. - { echo "$as_me:$LINENO: result: __va_copy" >&5
  33294. -echo "${ECHO_T}__va_copy" >&6; }
  33295. -else
  33296. - echo "$as_me: failed program was:" >&5
  33297. -sed 's/^/| /' conftest.$ac_ext >&5
  33298. -
  33299. - cat >>confdefs.h <<\_ACEOF
  33300. -#define va_copy(dest,src) memcpy(&dest,&src,sizeof(va_list))
  33301. -_ACEOF
  33302. -
  33303. - { echo "$as_me:$LINENO: result: memcpy" >&5
  33304. -echo "${ECHO_T}memcpy" >&6; }
  33305. -
  33306. -fi
  33307. -
  33308. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33309. - conftest$ac_exeext conftest.$ac_ext
  33310. -
  33311. -fi
  33312. -
  33313. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33314. - conftest$ac_exeext conftest.$ac_ext
  33315. -
  33316. -
  33317. -
  33318. -
  33319. -
  33320. -for ac_header in sys/select.h sys/uio.h
  33321. -do
  33322. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  33323. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  33324. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  33325. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  33326. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  33327. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33328. -fi
  33329. -ac_res=`eval echo '${'$as_ac_Header'}'`
  33330. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  33331. -echo "${ECHO_T}$ac_res" >&6; }
  33332. -else
  33333. - # Is the header compilable?
  33334. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  33335. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  33336. -cat >conftest.$ac_ext <<_ACEOF
  33337. -/* confdefs.h. */
  33338. -_ACEOF
  33339. -cat confdefs.h >>conftest.$ac_ext
  33340. -cat >>conftest.$ac_ext <<_ACEOF
  33341. -/* end confdefs.h. */
  33342. -$ac_includes_default
  33343. -#include <$ac_header>
  33344. -_ACEOF
  33345. -rm -f conftest.$ac_objext
  33346. -if { (ac_try="$ac_compile"
  33347. -case "(($ac_try" in
  33348. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33349. - *) ac_try_echo=$ac_try;;
  33350. -esac
  33351. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33352. - (eval "$ac_compile") 2>conftest.er1
  33353. - ac_status=$?
  33354. - grep -v '^ *+' conftest.er1 >conftest.err
  33355. - rm -f conftest.er1
  33356. - cat conftest.err >&5
  33357. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33358. - (exit $ac_status); } && {
  33359. - test -z "$ac_c_werror_flag" ||
  33360. - test ! -s conftest.err
  33361. - } && test -s conftest.$ac_objext; then
  33362. - ac_header_compiler=yes
  33363. -else
  33364. - echo "$as_me: failed program was:" >&5
  33365. -sed 's/^/| /' conftest.$ac_ext >&5
  33366. -
  33367. - ac_header_compiler=no
  33368. -fi
  33369. -
  33370. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33371. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  33372. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  33373. -
  33374. -# Is the header present?
  33375. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  33376. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  33377. -cat >conftest.$ac_ext <<_ACEOF
  33378. -/* confdefs.h. */
  33379. -_ACEOF
  33380. -cat confdefs.h >>conftest.$ac_ext
  33381. -cat >>conftest.$ac_ext <<_ACEOF
  33382. -/* end confdefs.h. */
  33383. -#include <$ac_header>
  33384. -_ACEOF
  33385. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  33386. -case "(($ac_try" in
  33387. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33388. - *) ac_try_echo=$ac_try;;
  33389. -esac
  33390. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33391. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  33392. - ac_status=$?
  33393. - grep -v '^ *+' conftest.er1 >conftest.err
  33394. - rm -f conftest.er1
  33395. - cat conftest.err >&5
  33396. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33397. - (exit $ac_status); } >/dev/null && {
  33398. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  33399. - test ! -s conftest.err
  33400. - }; then
  33401. - ac_header_preproc=yes
  33402. -else
  33403. - echo "$as_me: failed program was:" >&5
  33404. -sed 's/^/| /' conftest.$ac_ext >&5
  33405. -
  33406. - ac_header_preproc=no
  33407. -fi
  33408. -
  33409. -rm -f conftest.err conftest.$ac_ext
  33410. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  33411. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  33412. -
  33413. -# So? What about this header?
  33414. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  33415. - yes:no: )
  33416. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  33417. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  33418. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  33419. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  33420. - ac_header_preproc=yes
  33421. - ;;
  33422. - no:yes:* )
  33423. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  33424. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  33425. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  33426. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  33427. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  33428. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  33429. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  33430. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  33431. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  33432. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  33433. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  33434. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  33435. - ( cat <<\_ASBOX
  33436. -## ------------------------------- ##
  33437. -## Report this to icecast@xiph.org ##
  33438. -## ------------------------------- ##
  33439. -_ASBOX
  33440. - ) | sed "s/^/$as_me: WARNING: /" >&2
  33441. - ;;
  33442. -esac
  33443. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  33444. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  33445. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  33446. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33447. -else
  33448. - eval "$as_ac_Header=\$ac_header_preproc"
  33449. -fi
  33450. -ac_res=`eval echo '${'$as_ac_Header'}'`
  33451. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  33452. -echo "${ECHO_T}$ac_res" >&6; }
  33453. -
  33454. -fi
  33455. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  33456. - cat >>confdefs.h <<_ACEOF
  33457. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  33458. -_ACEOF
  33459. -
  33460. -fi
  33461. -
  33462. -done
  33463. -
  33464. -if test "${ac_cv_header_winsock2_h+set}" = set; then
  33465. - { echo "$as_me:$LINENO: checking for winsock2.h" >&5
  33466. -echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
  33467. -if test "${ac_cv_header_winsock2_h+set}" = set; then
  33468. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33469. -fi
  33470. -{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
  33471. -echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
  33472. -else
  33473. - # Is the header compilable?
  33474. -{ echo "$as_me:$LINENO: checking winsock2.h usability" >&5
  33475. -echo $ECHO_N "checking winsock2.h usability... $ECHO_C" >&6; }
  33476. -cat >conftest.$ac_ext <<_ACEOF
  33477. -/* confdefs.h. */
  33478. -_ACEOF
  33479. -cat confdefs.h >>conftest.$ac_ext
  33480. -cat >>conftest.$ac_ext <<_ACEOF
  33481. -/* end confdefs.h. */
  33482. -$ac_includes_default
  33483. -#include <winsock2.h>
  33484. -_ACEOF
  33485. -rm -f conftest.$ac_objext
  33486. -if { (ac_try="$ac_compile"
  33487. -case "(($ac_try" in
  33488. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33489. - *) ac_try_echo=$ac_try;;
  33490. -esac
  33491. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33492. - (eval "$ac_compile") 2>conftest.er1
  33493. - ac_status=$?
  33494. - grep -v '^ *+' conftest.er1 >conftest.err
  33495. - rm -f conftest.er1
  33496. - cat conftest.err >&5
  33497. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33498. - (exit $ac_status); } && {
  33499. - test -z "$ac_c_werror_flag" ||
  33500. - test ! -s conftest.err
  33501. - } && test -s conftest.$ac_objext; then
  33502. - ac_header_compiler=yes
  33503. -else
  33504. - echo "$as_me: failed program was:" >&5
  33505. -sed 's/^/| /' conftest.$ac_ext >&5
  33506. -
  33507. - ac_header_compiler=no
  33508. -fi
  33509. -
  33510. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33511. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  33512. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  33513. -
  33514. -# Is the header present?
  33515. -{ echo "$as_me:$LINENO: checking winsock2.h presence" >&5
  33516. -echo $ECHO_N "checking winsock2.h presence... $ECHO_C" >&6; }
  33517. -cat >conftest.$ac_ext <<_ACEOF
  33518. -/* confdefs.h. */
  33519. -_ACEOF
  33520. -cat confdefs.h >>conftest.$ac_ext
  33521. -cat >>conftest.$ac_ext <<_ACEOF
  33522. -/* end confdefs.h. */
  33523. -#include <winsock2.h>
  33524. -_ACEOF
  33525. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  33526. -case "(($ac_try" in
  33527. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33528. - *) ac_try_echo=$ac_try;;
  33529. -esac
  33530. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33531. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  33532. - ac_status=$?
  33533. - grep -v '^ *+' conftest.er1 >conftest.err
  33534. - rm -f conftest.er1
  33535. - cat conftest.err >&5
  33536. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33537. - (exit $ac_status); } >/dev/null && {
  33538. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  33539. - test ! -s conftest.err
  33540. - }; then
  33541. - ac_header_preproc=yes
  33542. -else
  33543. - echo "$as_me: failed program was:" >&5
  33544. -sed 's/^/| /' conftest.$ac_ext >&5
  33545. -
  33546. - ac_header_preproc=no
  33547. -fi
  33548. -
  33549. -rm -f conftest.err conftest.$ac_ext
  33550. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  33551. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  33552. -
  33553. -# So? What about this header?
  33554. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  33555. - yes:no: )
  33556. - { echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
  33557. -echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  33558. - { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
  33559. -echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
  33560. - ac_header_preproc=yes
  33561. - ;;
  33562. - no:yes:* )
  33563. - { echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
  33564. -echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
  33565. - { echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
  33566. -echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
  33567. - { echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
  33568. -echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
  33569. - { echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
  33570. -echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
  33571. - { echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
  33572. -echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
  33573. - { echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
  33574. -echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
  33575. - ( cat <<\_ASBOX
  33576. -## ------------------------------- ##
  33577. -## Report this to icecast@xiph.org ##
  33578. -## ------------------------------- ##
  33579. -_ASBOX
  33580. - ) | sed "s/^/$as_me: WARNING: /" >&2
  33581. - ;;
  33582. -esac
  33583. -{ echo "$as_me:$LINENO: checking for winsock2.h" >&5
  33584. -echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
  33585. -if test "${ac_cv_header_winsock2_h+set}" = set; then
  33586. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33587. -else
  33588. - ac_cv_header_winsock2_h=$ac_header_preproc
  33589. -fi
  33590. -{ echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
  33591. -echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
  33592. -
  33593. -fi
  33594. -if test $ac_cv_header_winsock2_h = yes; then
  33595. -
  33596. -cat >>confdefs.h <<\_ACEOF
  33597. -#define HAVE_WINSOCK2_H 1
  33598. -_ACEOF
  33599. -
  33600. - LIBS="$LIBS -lwsock32"
  33601. fi
  33602. -# These tests are ordered based on solaris 8 tests
  33603. -{ echo "$as_me:$LINENO: checking for library containing sethostent" >&5
  33604. -echo $ECHO_N "checking for library containing sethostent... $ECHO_C" >&6; }
  33605. -if test "${ac_cv_search_sethostent+set}" = set; then
  33606. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33607. -else
  33608. - ac_func_search_save_LIBS=$LIBS
  33609. -cat >conftest.$ac_ext <<_ACEOF
  33610. -/* confdefs.h. */
  33611. -_ACEOF
  33612. -cat confdefs.h >>conftest.$ac_ext
  33613. -cat >>conftest.$ac_ext <<_ACEOF
  33614. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
  33615. +$as_echo_n "checking for va_copy... " >&6; }
  33616. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33617. /* end confdefs.h. */
  33618. -
  33619. -/* Override any GCC internal prototype to avoid an error.
  33620. - Use char because int might match the return type of a GCC
  33621. - builtin and then its argument prototype would still apply. */
  33622. -#ifdef __cplusplus
  33623. -extern "C"
  33624. -#endif
  33625. -char sethostent ();
  33626. +#include <stdarg.h>
  33627. int
  33628. main ()
  33629. {
  33630. -return sethostent ();
  33631. +va_list ap1, ap2; va_copy(ap1, ap2);
  33632. ;
  33633. return 0;
  33634. }
  33635. _ACEOF
  33636. -for ac_lib in '' nsl; do
  33637. - if test -z "$ac_lib"; then
  33638. - ac_res="none required"
  33639. - else
  33640. - ac_res=-l$ac_lib
  33641. - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  33642. - fi
  33643. - rm -f conftest.$ac_objext conftest$ac_exeext
  33644. -if { (ac_try="$ac_link"
  33645. -case "(($ac_try" in
  33646. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33647. - *) ac_try_echo=$ac_try;;
  33648. -esac
  33649. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33650. - (eval "$ac_link") 2>conftest.er1
  33651. - ac_status=$?
  33652. - grep -v '^ *+' conftest.er1 >conftest.err
  33653. - rm -f conftest.er1
  33654. - cat conftest.err >&5
  33655. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33656. - (exit $ac_status); } && {
  33657. - test -z "$ac_c_werror_flag" ||
  33658. - test ! -s conftest.err
  33659. - } && test -s conftest$ac_exeext &&
  33660. - $as_test_x conftest$ac_exeext; then
  33661. - ac_cv_search_sethostent=$ac_res
  33662. -else
  33663. - echo "$as_me: failed program was:" >&5
  33664. -sed 's/^/| /' conftest.$ac_ext >&5
  33665. -
  33666. -
  33667. -fi
  33668. -
  33669. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33670. - conftest$ac_exeext
  33671. - if test "${ac_cv_search_sethostent+set}" = set; then
  33672. - break
  33673. -fi
  33674. -done
  33675. -if test "${ac_cv_search_sethostent+set}" = set; then
  33676. - :
  33677. +if ac_fn_c_try_link "$LINENO"; then :
  33678. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
  33679. +$as_echo "va_copy" >&6; }
  33680. else
  33681. - ac_cv_search_sethostent=no
  33682. -fi
  33683. -rm conftest.$ac_ext
  33684. -LIBS=$ac_func_search_save_LIBS
  33685. -fi
  33686. -{ echo "$as_me:$LINENO: result: $ac_cv_search_sethostent" >&5
  33687. -echo "${ECHO_T}$ac_cv_search_sethostent" >&6; }
  33688. -ac_res=$ac_cv_search_sethostent
  33689. -if test "$ac_res" != no; then
  33690. - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  33691. -
  33692. -cat >>confdefs.h <<\_ACEOF
  33693. -#define HAVE_SETHOSTENT 1
  33694. -_ACEOF
  33695. -fi
  33696. -
  33697. -{ echo "$as_me:$LINENO: checking for library containing getnameinfo" >&5
  33698. -echo $ECHO_N "checking for library containing getnameinfo... $ECHO_C" >&6; }
  33699. -if test "${ac_cv_search_getnameinfo+set}" = set; then
  33700. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33701. -else
  33702. - ac_func_search_save_LIBS=$LIBS
  33703. -cat >conftest.$ac_ext <<_ACEOF
  33704. -/* confdefs.h. */
  33705. -_ACEOF
  33706. -cat confdefs.h >>conftest.$ac_ext
  33707. -cat >>conftest.$ac_ext <<_ACEOF
  33708. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33709. /* end confdefs.h. */
  33710. -
  33711. -/* Override any GCC internal prototype to avoid an error.
  33712. - Use char because int might match the return type of a GCC
  33713. - builtin and then its argument prototype would still apply. */
  33714. -#ifdef __cplusplus
  33715. -extern "C"
  33716. -#endif
  33717. -char getnameinfo ();
  33718. +#include <stdarg.h>
  33719. int
  33720. main ()
  33721. {
  33722. -return getnameinfo ();
  33723. +va_list ap1, ap2; __va_copy(ap1, ap2);
  33724. ;
  33725. return 0;
  33726. }
  33727. _ACEOF
  33728. -for ac_lib in '' socket; do
  33729. - if test -z "$ac_lib"; then
  33730. - ac_res="none required"
  33731. - else
  33732. - ac_res=-l$ac_lib
  33733. - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  33734. - fi
  33735. - rm -f conftest.$ac_objext conftest$ac_exeext
  33736. -if { (ac_try="$ac_link"
  33737. -case "(($ac_try" in
  33738. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33739. - *) ac_try_echo=$ac_try;;
  33740. -esac
  33741. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33742. - (eval "$ac_link") 2>conftest.er1
  33743. - ac_status=$?
  33744. - grep -v '^ *+' conftest.er1 >conftest.err
  33745. - rm -f conftest.er1
  33746. - cat conftest.err >&5
  33747. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33748. - (exit $ac_status); } && {
  33749. - test -z "$ac_c_werror_flag" ||
  33750. - test ! -s conftest.err
  33751. - } && test -s conftest$ac_exeext &&
  33752. - $as_test_x conftest$ac_exeext; then
  33753. - ac_cv_search_getnameinfo=$ac_res
  33754. -else
  33755. - echo "$as_me: failed program was:" >&5
  33756. -sed 's/^/| /' conftest.$ac_ext >&5
  33757. -
  33758. +if ac_fn_c_try_link "$LINENO"; then :
  33759. + $as_echo "#define va_copy __va_copy" >>confdefs.h
  33760. -fi
  33761. -
  33762. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33763. - conftest$ac_exeext
  33764. - if test "${ac_cv_search_getnameinfo+set}" = set; then
  33765. - break
  33766. -fi
  33767. -done
  33768. -if test "${ac_cv_search_getnameinfo+set}" = set; then
  33769. - :
  33770. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
  33771. +$as_echo "__va_copy" >&6; }
  33772. else
  33773. - ac_cv_search_getnameinfo=no
  33774. -fi
  33775. -rm conftest.$ac_ext
  33776. -LIBS=$ac_func_search_save_LIBS
  33777. -fi
  33778. -{ echo "$as_me:$LINENO: result: $ac_cv_search_getnameinfo" >&5
  33779. -echo "${ECHO_T}$ac_cv_search_getnameinfo" >&6; }
  33780. -ac_res=$ac_cv_search_getnameinfo
  33781. -if test "$ac_res" != no; then
  33782. - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  33783. + $as_echo "#define va_copy(dest,src) memcpy(&dest,&src,sizeof(va_list))" >>confdefs.h
  33784. -cat >>confdefs.h <<\_ACEOF
  33785. -#define HAVE_GETNAMEINFO 1
  33786. -_ACEOF
  33787. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
  33788. +$as_echo "memcpy" >&6; }
  33789. fi
  33790. +rm -f core conftest.err conftest.$ac_objext \
  33791. + conftest$ac_exeext conftest.$ac_ext
  33792. +fi
  33793. +rm -f core conftest.err conftest.$ac_objext \
  33794. + conftest$ac_exeext conftest.$ac_ext
  33795. -
  33796. -for ac_func in endhostent getaddrinfo inet_aton writev
  33797. -do
  33798. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  33799. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  33800. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  33801. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  33802. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33803. -else
  33804. - cat >conftest.$ac_ext <<_ACEOF
  33805. -/* confdefs.h. */
  33806. +for ac_header in sys/select.h sys/uio.h
  33807. +do :
  33808. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  33809. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  33810. +eval as_val=\$$as_ac_Header
  33811. + if test "x$as_val" = x""yes; then :
  33812. + cat >>confdefs.h <<_ACEOF
  33813. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  33814. _ACEOF
  33815. -cat confdefs.h >>conftest.$ac_ext
  33816. -cat >>conftest.$ac_ext <<_ACEOF
  33817. -/* end confdefs.h. */
  33818. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  33819. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  33820. -#define $ac_func innocuous_$ac_func
  33821. -
  33822. -/* System header to define __stub macros and hopefully few prototypes,
  33823. - which can conflict with char $ac_func (); below.
  33824. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  33825. - <limits.h> exists even on freestanding compilers. */
  33826. -
  33827. -#ifdef __STDC__
  33828. -# include <limits.h>
  33829. -#else
  33830. -# include <assert.h>
  33831. -#endif
  33832. -
  33833. -#undef $ac_func
  33834. -/* Override any GCC internal prototype to avoid an error.
  33835. - Use char because int might match the return type of a GCC
  33836. - builtin and then its argument prototype would still apply. */
  33837. -#ifdef __cplusplus
  33838. -extern "C"
  33839. -#endif
  33840. -char $ac_func ();
  33841. -/* The GNU C library defines this for functions which it implements
  33842. - to always fail with ENOSYS. Some functions are actually named
  33843. - something starting with __ and the normal name is an alias. */
  33844. -#if defined __stub_$ac_func || defined __stub___$ac_func
  33845. -choke me
  33846. -#endif
  33847. +fi
  33848. -int
  33849. -main ()
  33850. -{
  33851. -return $ac_func ();
  33852. - ;
  33853. - return 0;
  33854. -}
  33855. -_ACEOF
  33856. -rm -f conftest.$ac_objext conftest$ac_exeext
  33857. -if { (ac_try="$ac_link"
  33858. -case "(($ac_try" in
  33859. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33860. - *) ac_try_echo=$ac_try;;
  33861. -esac
  33862. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33863. - (eval "$ac_link") 2>conftest.er1
  33864. - ac_status=$?
  33865. - grep -v '^ *+' conftest.er1 >conftest.err
  33866. - rm -f conftest.er1
  33867. - cat conftest.err >&5
  33868. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33869. - (exit $ac_status); } && {
  33870. - test -z "$ac_c_werror_flag" ||
  33871. - test ! -s conftest.err
  33872. - } && test -s conftest$ac_exeext &&
  33873. - $as_test_x conftest$ac_exeext; then
  33874. - eval "$as_ac_var=yes"
  33875. -else
  33876. - echo "$as_me: failed program was:" >&5
  33877. -sed 's/^/| /' conftest.$ac_ext >&5
  33878. +done
  33879. - eval "$as_ac_var=no"
  33880. -fi
  33881. +ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  33882. +if test "x$ac_cv_header_winsock2_h" = x""yes; then :
  33883. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33884. - conftest$ac_exeext conftest.$ac_ext
  33885. -fi
  33886. -ac_res=`eval echo '${'$as_ac_var'}'`
  33887. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  33888. -echo "${ECHO_T}$ac_res" >&6; }
  33889. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  33890. - cat >>confdefs.h <<_ACEOF
  33891. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  33892. -_ACEOF
  33893. +$as_echo "#define HAVE_WINSOCK2_H 1" >>confdefs.h
  33894. + LIBS="$LIBS -lwsock32"
  33895. fi
  33896. -done
  33897. -# Irix defines INET_PTON but not sockaddr_storage!
  33898. -{ echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
  33899. -echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
  33900. -if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
  33901. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33902. -else
  33903. - cat >conftest.$ac_ext <<_ACEOF
  33904. -/* confdefs.h. */
  33905. -_ACEOF
  33906. -cat confdefs.h >>conftest.$ac_ext
  33907. -cat >>conftest.$ac_ext <<_ACEOF
  33908. -/* end confdefs.h. */
  33909. -#include <sys/types.h>
  33910. -#include <sys/socket.h>
  33911. -
  33912. -int
  33913. -main ()
  33914. -{
  33915. -static struct sockaddr_storage ac_aggr;
  33916. -if (ac_aggr.ss_family)
  33917. -return 0;
  33918. - ;
  33919. - return 0;
  33920. -}
  33921. -_ACEOF
  33922. -rm -f conftest.$ac_objext
  33923. -if { (ac_try="$ac_compile"
  33924. -case "(($ac_try" in
  33925. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33926. - *) ac_try_echo=$ac_try;;
  33927. -esac
  33928. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33929. - (eval "$ac_compile") 2>conftest.er1
  33930. - ac_status=$?
  33931. - grep -v '^ *+' conftest.er1 >conftest.err
  33932. - rm -f conftest.er1
  33933. - cat conftest.err >&5
  33934. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33935. - (exit $ac_status); } && {
  33936. - test -z "$ac_c_werror_flag" ||
  33937. - test ! -s conftest.err
  33938. - } && test -s conftest.$ac_objext; then
  33939. - ac_cv_member_struct_sockaddr_storage_ss_family=yes
  33940. -else
  33941. - echo "$as_me: failed program was:" >&5
  33942. -sed 's/^/| /' conftest.$ac_ext >&5
  33943. - cat >conftest.$ac_ext <<_ACEOF
  33944. -/* confdefs.h. */
  33945. -_ACEOF
  33946. -cat confdefs.h >>conftest.$ac_ext
  33947. -cat >>conftest.$ac_ext <<_ACEOF
  33948. +# These tests are ordered based on solaris 8 tests
  33949. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sethostent" >&5
  33950. +$as_echo_n "checking for library containing sethostent... " >&6; }
  33951. +if test "${ac_cv_search_sethostent+set}" = set; then :
  33952. + $as_echo_n "(cached) " >&6
  33953. +else
  33954. + ac_func_search_save_LIBS=$LIBS
  33955. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33956. /* end confdefs.h. */
  33957. -#include <sys/types.h>
  33958. -#include <sys/socket.h>
  33959. +/* Override any GCC internal prototype to avoid an error.
  33960. + Use char because int might match the return type of a GCC
  33961. + builtin and then its argument prototype would still apply. */
  33962. +#ifdef __cplusplus
  33963. +extern "C"
  33964. +#endif
  33965. +char sethostent ();
  33966. int
  33967. main ()
  33968. {
  33969. -static struct sockaddr_storage ac_aggr;
  33970. -if (sizeof ac_aggr.ss_family)
  33971. -return 0;
  33972. +return sethostent ();
  33973. ;
  33974. return 0;
  33975. }
  33976. _ACEOF
  33977. -rm -f conftest.$ac_objext
  33978. -if { (ac_try="$ac_compile"
  33979. -case "(($ac_try" in
  33980. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33981. - *) ac_try_echo=$ac_try;;
  33982. -esac
  33983. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33984. - (eval "$ac_compile") 2>conftest.er1
  33985. - ac_status=$?
  33986. - grep -v '^ *+' conftest.er1 >conftest.err
  33987. - rm -f conftest.er1
  33988. - cat conftest.err >&5
  33989. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33990. - (exit $ac_status); } && {
  33991. - test -z "$ac_c_werror_flag" ||
  33992. - test ! -s conftest.err
  33993. - } && test -s conftest.$ac_objext; then
  33994. - ac_cv_member_struct_sockaddr_storage_ss_family=yes
  33995. -else
  33996. - echo "$as_me: failed program was:" >&5
  33997. -sed 's/^/| /' conftest.$ac_ext >&5
  33998. -
  33999. - ac_cv_member_struct_sockaddr_storage_ss_family=no
  34000. +for ac_lib in '' nsl; do
  34001. + if test -z "$ac_lib"; then
  34002. + ac_res="none required"
  34003. + else
  34004. + ac_res=-l$ac_lib
  34005. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  34006. + fi
  34007. + if ac_fn_c_try_link "$LINENO"; then :
  34008. + ac_cv_search_sethostent=$ac_res
  34009. fi
  34010. -
  34011. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34012. +rm -f core conftest.err conftest.$ac_objext \
  34013. + conftest$ac_exeext
  34014. + if test "${ac_cv_search_sethostent+set}" = set; then :
  34015. + break
  34016. fi
  34017. +done
  34018. +if test "${ac_cv_search_sethostent+set}" = set; then :
  34019. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34020. +else
  34021. + ac_cv_search_sethostent=no
  34022. fi
  34023. -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
  34024. -echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
  34025. -if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
  34026. +rm conftest.$ac_ext
  34027. +LIBS=$ac_func_search_save_LIBS
  34028. +fi
  34029. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sethostent" >&5
  34030. +$as_echo "$ac_cv_search_sethostent" >&6; }
  34031. +ac_res=$ac_cv_search_sethostent
  34032. +if test "$ac_res" != no; then :
  34033. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  34034. -cat >>confdefs.h <<_ACEOF
  34035. -#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
  34036. -_ACEOF
  34037. +$as_echo "#define HAVE_SETHOSTENT 1" >>confdefs.h
  34038. +fi
  34039. -for ac_func in inet_pton
  34040. -do
  34041. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  34042. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  34043. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  34044. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  34045. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34046. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
  34047. +$as_echo_n "checking for library containing getnameinfo... " >&6; }
  34048. +if test "${ac_cv_search_getnameinfo+set}" = set; then :
  34049. + $as_echo_n "(cached) " >&6
  34050. else
  34051. - cat >conftest.$ac_ext <<_ACEOF
  34052. -/* confdefs.h. */
  34053. -_ACEOF
  34054. -cat confdefs.h >>conftest.$ac_ext
  34055. -cat >>conftest.$ac_ext <<_ACEOF
  34056. + ac_func_search_save_LIBS=$LIBS
  34057. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34058. /* end confdefs.h. */
  34059. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  34060. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  34061. -#define $ac_func innocuous_$ac_func
  34062. -
  34063. -/* System header to define __stub macros and hopefully few prototypes,
  34064. - which can conflict with char $ac_func (); below.
  34065. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  34066. - <limits.h> exists even on freestanding compilers. */
  34067. -
  34068. -#ifdef __STDC__
  34069. -# include <limits.h>
  34070. -#else
  34071. -# include <assert.h>
  34072. -#endif
  34073. -
  34074. -#undef $ac_func
  34075. /* Override any GCC internal prototype to avoid an error.
  34076. Use char because int might match the return type of a GCC
  34077. @@ -21777,57 +11366,79 @@
  34078. #ifdef __cplusplus
  34079. extern "C"
  34080. #endif
  34081. -char $ac_func ();
  34082. -/* The GNU C library defines this for functions which it implements
  34083. - to always fail with ENOSYS. Some functions are actually named
  34084. - something starting with __ and the normal name is an alias. */
  34085. -#if defined __stub_$ac_func || defined __stub___$ac_func
  34086. -choke me
  34087. -#endif
  34088. -
  34089. +char getnameinfo ();
  34090. int
  34091. main ()
  34092. {
  34093. -return $ac_func ();
  34094. +return getnameinfo ();
  34095. ;
  34096. return 0;
  34097. }
  34098. _ACEOF
  34099. -rm -f conftest.$ac_objext conftest$ac_exeext
  34100. -if { (ac_try="$ac_link"
  34101. -case "(($ac_try" in
  34102. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34103. - *) ac_try_echo=$ac_try;;
  34104. -esac
  34105. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34106. - (eval "$ac_link") 2>conftest.er1
  34107. - ac_status=$?
  34108. - grep -v '^ *+' conftest.er1 >conftest.err
  34109. - rm -f conftest.er1
  34110. - cat conftest.err >&5
  34111. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34112. - (exit $ac_status); } && {
  34113. - test -z "$ac_c_werror_flag" ||
  34114. - test ! -s conftest.err
  34115. - } && test -s conftest$ac_exeext &&
  34116. - $as_test_x conftest$ac_exeext; then
  34117. - eval "$as_ac_var=yes"
  34118. +for ac_lib in '' socket; do
  34119. + if test -z "$ac_lib"; then
  34120. + ac_res="none required"
  34121. + else
  34122. + ac_res=-l$ac_lib
  34123. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  34124. + fi
  34125. + if ac_fn_c_try_link "$LINENO"; then :
  34126. + ac_cv_search_getnameinfo=$ac_res
  34127. +fi
  34128. +rm -f core conftest.err conftest.$ac_objext \
  34129. + conftest$ac_exeext
  34130. + if test "${ac_cv_search_getnameinfo+set}" = set; then :
  34131. + break
  34132. +fi
  34133. +done
  34134. +if test "${ac_cv_search_getnameinfo+set}" = set; then :
  34135. +
  34136. else
  34137. - echo "$as_me: failed program was:" >&5
  34138. -sed 's/^/| /' conftest.$ac_ext >&5
  34139. + ac_cv_search_getnameinfo=no
  34140. +fi
  34141. +rm conftest.$ac_ext
  34142. +LIBS=$ac_func_search_save_LIBS
  34143. +fi
  34144. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
  34145. +$as_echo "$ac_cv_search_getnameinfo" >&6; }
  34146. +ac_res=$ac_cv_search_getnameinfo
  34147. +if test "$ac_res" != no; then :
  34148. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  34149. +
  34150. +$as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
  34151. - eval "$as_ac_var=no"
  34152. fi
  34153. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34154. - conftest$ac_exeext conftest.$ac_ext
  34155. +for ac_func in endhostent getaddrinfo inet_aton writev
  34156. +do :
  34157. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  34158. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  34159. +eval as_val=\$$as_ac_var
  34160. + if test "x$as_val" = x""yes; then :
  34161. + cat >>confdefs.h <<_ACEOF
  34162. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  34163. +_ACEOF
  34164. +
  34165. fi
  34166. -ac_res=`eval echo '${'$as_ac_var'}'`
  34167. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  34168. -echo "${ECHO_T}$ac_res" >&6; }
  34169. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  34170. +done
  34171. +
  34172. +
  34173. +# Irix defines INET_PTON but not sockaddr_storage!
  34174. +ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
  34175. +#include <sys/socket.h>
  34176. +"
  34177. +if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then :
  34178. +
  34179. +cat >>confdefs.h <<_ACEOF
  34180. +#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
  34181. +_ACEOF
  34182. +
  34183. +for ac_func in inet_pton
  34184. +do :
  34185. + ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  34186. +if test "x$ac_cv_func_inet_pton" = x""yes; then :
  34187. cat >>confdefs.h <<_ACEOF
  34188. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  34189. +#define HAVE_INET_PTON 1
  34190. _ACEOF
  34191. fi
  34192. @@ -21841,17 +11452,17 @@
  34193. # Check whether --with-xslt-config was given.
  34194. -if test "${with_xslt_config+set}" = set; then
  34195. +if test "${with_xslt_config+set}" = set; then :
  34196. withval=$with_xslt_config; XSLTCONFIG="$withval"
  34197. else
  34198. for ac_prog in xslt-config
  34199. do
  34200. # Extract the first word of "$ac_prog", so it can be a program name with args.
  34201. set dummy $ac_prog; ac_word=$2
  34202. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  34203. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  34204. -if test "${ac_cv_path_XSLTCONFIG+set}" = set; then
  34205. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34206. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  34207. +$as_echo_n "checking for $ac_word... " >&6; }
  34208. +if test "${ac_cv_path_XSLTCONFIG+set}" = set; then :
  34209. + $as_echo_n "(cached) " >&6
  34210. else
  34211. case $XSLTCONFIG in
  34212. [\\/]* | ?:[\\/]*)
  34213. @@ -21863,14 +11474,14 @@
  34214. do
  34215. IFS=$as_save_IFS
  34216. test -z "$as_dir" && as_dir=.
  34217. - for ac_exec_ext in '' $ac_executable_extensions; do
  34218. + for ac_exec_ext in '' $ac_executable_extensions; do
  34219. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  34220. ac_cv_path_XSLTCONFIG="$as_dir/$ac_word$ac_exec_ext"
  34221. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  34222. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  34223. break 2
  34224. fi
  34225. done
  34226. -done
  34227. + done
  34228. IFS=$as_save_IFS
  34229. ;;
  34230. @@ -21878,11 +11489,11 @@
  34231. fi
  34232. XSLTCONFIG=$ac_cv_path_XSLTCONFIG
  34233. if test -n "$XSLTCONFIG"; then
  34234. - { echo "$as_me:$LINENO: result: $XSLTCONFIG" >&5
  34235. -echo "${ECHO_T}$XSLTCONFIG" >&6; }
  34236. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTCONFIG" >&5
  34237. +$as_echo "$XSLTCONFIG" >&6; }
  34238. else
  34239. - { echo "$as_me:$LINENO: result: no" >&5
  34240. -echo "${ECHO_T}no" >&6; }
  34241. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  34242. +$as_echo "no" >&6; }
  34243. fi
  34244. @@ -21894,14 +11505,10 @@
  34245. fi
  34246. if test "x$XSLTCONFIG" = "x"; then
  34247. - { { echo "$as_me:$LINENO: error: XSLT configuration could not be found" >&5
  34248. -echo "$as_me: error: XSLT configuration could not be found" >&2;}
  34249. - { (exit 1); exit 1; }; }
  34250. + as_fn_error "XSLT configuration could not be found" "$LINENO" 5
  34251. fi
  34252. if ! test -x "$XSLTCONFIG"; then
  34253. - { { echo "$as_me:$LINENO: error: $XSLTCONFIG cannot be executed" >&5
  34254. -echo "$as_me: error: $XSLTCONFIG cannot be executed" >&2;}
  34255. - { (exit 1); exit 1; }; }
  34256. + as_fn_error "$XSLTCONFIG cannot be executed" "$LINENO" 5
  34257. fi
  34258. XSLT_LIBS="$($XSLTCONFIG --libs)"
  34259. XSLT_CFLAGS="$($XSLTCONFIG --cflags)"
  34260. @@ -21909,95 +11516,12 @@
  34261. ac_xslt_save_CFLAGS="$CFLAGS"
  34262. LIBS="$XSLT_LIBS $LIBS"
  34263. CFLAGS="$CFLAGS $XSLT_CFLAGS"
  34264. -
  34265. for ac_func in xsltSaveResultToString
  34266. -do
  34267. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  34268. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  34269. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  34270. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  34271. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34272. -else
  34273. - cat >conftest.$ac_ext <<_ACEOF
  34274. -/* confdefs.h. */
  34275. -_ACEOF
  34276. -cat confdefs.h >>conftest.$ac_ext
  34277. -cat >>conftest.$ac_ext <<_ACEOF
  34278. -/* end confdefs.h. */
  34279. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  34280. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  34281. -#define $ac_func innocuous_$ac_func
  34282. -
  34283. -/* System header to define __stub macros and hopefully few prototypes,
  34284. - which can conflict with char $ac_func (); below.
  34285. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  34286. - <limits.h> exists even on freestanding compilers. */
  34287. -
  34288. -#ifdef __STDC__
  34289. -# include <limits.h>
  34290. -#else
  34291. -# include <assert.h>
  34292. -#endif
  34293. -
  34294. -#undef $ac_func
  34295. -
  34296. -/* Override any GCC internal prototype to avoid an error.
  34297. - Use char because int might match the return type of a GCC
  34298. - builtin and then its argument prototype would still apply. */
  34299. -#ifdef __cplusplus
  34300. -extern "C"
  34301. -#endif
  34302. -char $ac_func ();
  34303. -/* The GNU C library defines this for functions which it implements
  34304. - to always fail with ENOSYS. Some functions are actually named
  34305. - something starting with __ and the normal name is an alias. */
  34306. -#if defined __stub_$ac_func || defined __stub___$ac_func
  34307. -choke me
  34308. -#endif
  34309. -
  34310. -int
  34311. -main ()
  34312. -{
  34313. -return $ac_func ();
  34314. - ;
  34315. - return 0;
  34316. -}
  34317. -_ACEOF
  34318. -rm -f conftest.$ac_objext conftest$ac_exeext
  34319. -if { (ac_try="$ac_link"
  34320. -case "(($ac_try" in
  34321. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34322. - *) ac_try_echo=$ac_try;;
  34323. -esac
  34324. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34325. - (eval "$ac_link") 2>conftest.er1
  34326. - ac_status=$?
  34327. - grep -v '^ *+' conftest.er1 >conftest.err
  34328. - rm -f conftest.er1
  34329. - cat conftest.err >&5
  34330. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34331. - (exit $ac_status); } && {
  34332. - test -z "$ac_c_werror_flag" ||
  34333. - test ! -s conftest.err
  34334. - } && test -s conftest$ac_exeext &&
  34335. - $as_test_x conftest$ac_exeext; then
  34336. - eval "$as_ac_var=yes"
  34337. -else
  34338. - echo "$as_me: failed program was:" >&5
  34339. -sed 's/^/| /' conftest.$ac_ext >&5
  34340. -
  34341. - eval "$as_ac_var=no"
  34342. -fi
  34343. -
  34344. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34345. - conftest$ac_exeext conftest.$ac_ext
  34346. -fi
  34347. -ac_res=`eval echo '${'$as_ac_var'}'`
  34348. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  34349. -echo "${ECHO_T}$ac_res" >&6; }
  34350. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  34351. +do :
  34352. + ac_fn_c_check_func "$LINENO" "xsltSaveResultToString" "ac_cv_func_xsltSaveResultToString"
  34353. +if test "x$ac_cv_func_xsltSaveResultToString" = x""yes; then :
  34354. cat >>confdefs.h <<_ACEOF
  34355. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  34356. +#define HAVE_XSLTSAVERESULTTOSTRING 1
  34357. _ACEOF
  34358. fi
  34359. @@ -22006,89 +11530,6 @@
  34360. CFLAGS="$ac_xslt_save_CFLAGS"
  34361. LIBS="$ac_xslt_save_LIBS"
  34362. -{ echo "$as_me:$LINENO: checking for fgrep" >&5
  34363. -echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
  34364. -if test "${ac_cv_path_FGREP+set}" = set; then
  34365. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34366. -else
  34367. - if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  34368. - then ac_cv_path_FGREP="$GREP -F"
  34369. - else
  34370. - # Extract the first word of "fgrep" to use in msg output
  34371. -if test -z "$FGREP"; then
  34372. -set dummy fgrep; ac_prog_name=$2
  34373. -if test "${ac_cv_path_FGREP+set}" = set; then
  34374. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34375. -else
  34376. - ac_path_FGREP_found=false
  34377. -# Loop through the user's path and test for each of PROGNAME-LIST
  34378. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34379. -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  34380. -do
  34381. - IFS=$as_save_IFS
  34382. - test -z "$as_dir" && as_dir=.
  34383. - for ac_prog in fgrep; do
  34384. - for ac_exec_ext in '' $ac_executable_extensions; do
  34385. - ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  34386. - { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  34387. - # Check for GNU ac_path_FGREP and select it if it is found.
  34388. - # Check for GNU $ac_path_FGREP
  34389. -case `"$ac_path_FGREP" --version 2>&1` in
  34390. -*GNU*)
  34391. - ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  34392. -*)
  34393. - ac_count=0
  34394. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  34395. - while :
  34396. - do
  34397. - cat "conftest.in" "conftest.in" >"conftest.tmp"
  34398. - mv "conftest.tmp" "conftest.in"
  34399. - cp "conftest.in" "conftest.nl"
  34400. - echo 'FGREP' >> "conftest.nl"
  34401. - "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  34402. - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  34403. - ac_count=`expr $ac_count + 1`
  34404. - if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  34405. - # Best one so far, save it but keep looking for a better one
  34406. - ac_cv_path_FGREP="$ac_path_FGREP"
  34407. - ac_path_FGREP_max=$ac_count
  34408. - fi
  34409. - # 10*(2^10) chars as input seems more than enough
  34410. - test $ac_count -gt 10 && break
  34411. - done
  34412. - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  34413. -esac
  34414. -
  34415. -
  34416. - $ac_path_FGREP_found && break 3
  34417. - done
  34418. -done
  34419. -
  34420. -done
  34421. -IFS=$as_save_IFS
  34422. -
  34423. -
  34424. -fi
  34425. -
  34426. -FGREP="$ac_cv_path_FGREP"
  34427. -if test -z "$FGREP"; then
  34428. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  34429. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  34430. - { (exit 1); exit 1; }; }
  34431. -fi
  34432. -
  34433. -else
  34434. - ac_cv_path_FGREP=$FGREP
  34435. -fi
  34436. -
  34437. -
  34438. - fi
  34439. -fi
  34440. -{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  34441. -echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
  34442. - FGREP="$ac_cv_path_FGREP"
  34443. -
  34444. -
  34445. for arg in $XSLT_CFLAGS
  34446. do
  34447. @@ -22121,7 +11562,7 @@
  34448. # Check whether --with-ogg was given.
  34449. -if test "${with_ogg+set}" = set; then
  34450. +if test "${with_ogg+set}" = set; then :
  34451. withval=$with_ogg; ogg_prefix="$withval"
  34452. else
  34453. ogg_prefix="$OGG_PREFIX"
  34454. @@ -22142,11 +11583,7 @@
  34455. then
  34456. save_cflags="$CFLAGS"
  34457. CFLAGS="-Werror -I$ogg_prefix/include"
  34458. - cat >conftest.$ac_ext <<_ACEOF
  34459. -/* confdefs.h. */
  34460. -_ACEOF
  34461. -cat confdefs.h >>conftest.$ac_ext
  34462. -cat >>conftest.$ac_ext <<_ACEOF
  34463. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34464. /* end confdefs.h. */
  34465. int
  34466. @@ -22157,31 +11594,11 @@
  34467. return 0;
  34468. }
  34469. _ACEOF
  34470. -rm -f conftest.$ac_objext
  34471. -if { (ac_try="$ac_compile"
  34472. -case "(($ac_try" in
  34473. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34474. - *) ac_try_echo=$ac_try;;
  34475. -esac
  34476. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34477. - (eval "$ac_compile") 2>conftest.er1
  34478. - ac_status=$?
  34479. - grep -v '^ *+' conftest.er1 >conftest.err
  34480. - rm -f conftest.er1
  34481. - cat conftest.err >&5
  34482. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34483. - (exit $ac_status); } && {
  34484. - test -z "$ac_c_werror_flag" ||
  34485. - test ! -s conftest.err
  34486. - } && test -s conftest.$ac_objext; then
  34487. - :
  34488. -else
  34489. - echo "$as_me: failed program was:" >&5
  34490. -sed 's/^/| /' conftest.$ac_ext >&5
  34491. +if ac_fn_c_try_compile "$LINENO"; then :
  34492. - xt_warning=yes
  34493. +else
  34494. + xt_warning=yes
  34495. fi
  34496. -
  34497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34498. CFLAGS="$save_cflags"
  34499. fi
  34500. @@ -22194,10 +11611,10 @@
  34501. fi
  34502. -{ echo "$as_me:$LINENO: checking for libogg" >&5
  34503. -echo $ECHO_N "checking for libogg... $ECHO_C" >&6; }
  34504. -if test "${xt_cv_lib_ogg+set}" = set; then
  34505. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34506. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libogg" >&5
  34507. +$as_echo_n "checking for libogg... " >&6; }
  34508. +if test "${xt_cv_lib_ogg+set}" = set; then :
  34509. + $as_echo_n "(cached) " >&6
  34510. else
  34511. OGG_LIBS="-logg"
  34512. @@ -22210,11 +11627,7 @@
  34513. CFLAGS="$CFLAGS $OGG_CFLAGS"
  34514. LIBS="$LIBS $OGG_LIBS"
  34515. LDFLAGS="$LDFLAGS $OGG_LDFLAGS"
  34516. -cat >conftest.$ac_ext <<_ACEOF
  34517. -/* confdefs.h. */
  34518. -_ACEOF
  34519. -cat confdefs.h >>conftest.$ac_ext
  34520. -cat >>conftest.$ac_ext <<_ACEOF
  34521. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34522. /* end confdefs.h. */
  34523. /* Override any GCC internal prototype to avoid an error.
  34524. @@ -22232,34 +11645,10 @@
  34525. return 0;
  34526. }
  34527. _ACEOF
  34528. -rm -f conftest.$ac_objext conftest$ac_exeext
  34529. -if { (ac_try="$ac_link"
  34530. -case "(($ac_try" in
  34531. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34532. - *) ac_try_echo=$ac_try;;
  34533. -esac
  34534. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34535. - (eval "$ac_link") 2>conftest.er1
  34536. - ac_status=$?
  34537. - grep -v '^ *+' conftest.er1 >conftest.err
  34538. - rm -f conftest.er1
  34539. - cat conftest.err >&5
  34540. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34541. - (exit $ac_status); } && {
  34542. - test -z "$ac_c_werror_flag" ||
  34543. - test ! -s conftest.err
  34544. - } && test -s conftest$ac_exeext &&
  34545. - $as_test_x conftest$ac_exeext; then
  34546. +if ac_fn_c_try_link "$LINENO"; then :
  34547. xt_cv_lib_ogg=ok
  34548. else
  34549. - echo "$as_me: failed program was:" >&5
  34550. -sed 's/^/| /' conftest.$ac_ext >&5
  34551. -
  34552. - cat >conftest.$ac_ext <<_ACEOF
  34553. -/* confdefs.h. */
  34554. -_ACEOF
  34555. -cat confdefs.h >>conftest.$ac_ext
  34556. -cat >>conftest.$ac_ext <<_ACEOF
  34557. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34558. /* end confdefs.h. */
  34559. #include <ogg/ogg.h>
  34560. int
  34561. @@ -22270,52 +11659,28 @@
  34562. return 0;
  34563. }
  34564. _ACEOF
  34565. -rm -f conftest.$ac_objext conftest$ac_exeext
  34566. -if { (ac_try="$ac_link"
  34567. -case "(($ac_try" in
  34568. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34569. - *) ac_try_echo=$ac_try;;
  34570. -esac
  34571. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34572. - (eval "$ac_link") 2>conftest.er1
  34573. - ac_status=$?
  34574. - grep -v '^ *+' conftest.er1 >conftest.err
  34575. - rm -f conftest.er1
  34576. - cat conftest.err >&5
  34577. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34578. - (exit $ac_status); } && {
  34579. - test -z "$ac_c_werror_flag" ||
  34580. - test ! -s conftest.err
  34581. - } && test -s conftest$ac_exeext &&
  34582. - $as_test_x conftest$ac_exeext; then
  34583. +if ac_fn_c_try_link "$LINENO"; then :
  34584. xt_cv_lib_ogg="pre v1.0, needs updating"
  34585. else
  34586. - echo "$as_me: failed program was:" >&5
  34587. -sed 's/^/| /' conftest.$ac_ext >&5
  34588. -
  34589. - xt_cv_lib_ogg="not found"
  34590. + xt_cv_lib_ogg="not found"
  34591. fi
  34592. -
  34593. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34594. - conftest$ac_exeext conftest.$ac_ext
  34595. +rm -f core conftest.err conftest.$ac_objext \
  34596. + conftest$ac_exeext conftest.$ac_ext
  34597. fi
  34598. -
  34599. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34600. - conftest$ac_exeext conftest.$ac_ext
  34601. +rm -f core conftest.err conftest.$ac_objext \
  34602. + conftest$ac_exeext conftest.$ac_ext
  34603. CFLAGS="$ac_save_CFLAGS"
  34604. LDFLAGS="$ac_save_LDFLAGS"
  34605. LIBS="$ac_save_LIBS"
  34606. fi
  34607. -{ echo "$as_me:$LINENO: result: $xt_cv_lib_ogg" >&5
  34608. -echo "${ECHO_T}$xt_cv_lib_ogg" >&6; }
  34609. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_cv_lib_ogg" >&5
  34610. +$as_echo "$xt_cv_lib_ogg" >&6; }
  34611. if test "x$xt_cv_lib_ogg" = "xok"; then
  34612. -cat >>confdefs.h <<\_ACEOF
  34613. -#define HAVE_OGG 1
  34614. -_ACEOF
  34615. +$as_echo "#define HAVE_OGG 1" >>confdefs.h
  34616. else
  34617. OGG_LIBS=""
  34618. @@ -22332,7 +11697,7 @@
  34619. # Check whether --with-vorbis was given.
  34620. -if test "${with_vorbis+set}" = set; then
  34621. +if test "${with_vorbis+set}" = set; then :
  34622. withval=$with_vorbis; vorbis_prefix="$withval"
  34623. else
  34624. vorbis_prefix="$VORBIS_PREFIX"
  34625. @@ -22356,11 +11721,7 @@
  34626. then
  34627. save_cflags="$CFLAGS"
  34628. CFLAGS="-Werror -I"$vorbis_prefix/include""
  34629. - cat >conftest.$ac_ext <<_ACEOF
  34630. -/* confdefs.h. */
  34631. -_ACEOF
  34632. -cat confdefs.h >>conftest.$ac_ext
  34633. -cat >>conftest.$ac_ext <<_ACEOF
  34634. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34635. /* end confdefs.h. */
  34636. int
  34637. @@ -22371,31 +11732,11 @@
  34638. return 0;
  34639. }
  34640. _ACEOF
  34641. -rm -f conftest.$ac_objext
  34642. -if { (ac_try="$ac_compile"
  34643. -case "(($ac_try" in
  34644. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34645. - *) ac_try_echo=$ac_try;;
  34646. -esac
  34647. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34648. - (eval "$ac_compile") 2>conftest.er1
  34649. - ac_status=$?
  34650. - grep -v '^ *+' conftest.er1 >conftest.err
  34651. - rm -f conftest.er1
  34652. - cat conftest.err >&5
  34653. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34654. - (exit $ac_status); } && {
  34655. - test -z "$ac_c_werror_flag" ||
  34656. - test ! -s conftest.err
  34657. - } && test -s conftest.$ac_objext; then
  34658. - :
  34659. -else
  34660. - echo "$as_me: failed program was:" >&5
  34661. -sed 's/^/| /' conftest.$ac_ext >&5
  34662. +if ac_fn_c_try_compile "$LINENO"; then :
  34663. - xt_warning=yes
  34664. +else
  34665. + xt_warning=yes
  34666. fi
  34667. -
  34668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34669. CFLAGS="$save_cflags"
  34670. fi
  34671. @@ -22421,13 +11762,9 @@
  34672. LDFLAGS="$LDFLAGS $VORBIS_LDFLAGS"
  34673. LIBS="$LIBS $VORBIS_LIBS"
  34674. xt_lib_vorbis="not found"
  34675. -{ echo "$as_me:$LINENO: checking for libvorbis" >&5
  34676. -echo $ECHO_N "checking for libvorbis... $ECHO_C" >&6; }
  34677. -cat >conftest.$ac_ext <<_ACEOF
  34678. -/* confdefs.h. */
  34679. -_ACEOF
  34680. -cat confdefs.h >>conftest.$ac_ext
  34681. -cat >>conftest.$ac_ext <<_ACEOF
  34682. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvorbis" >&5
  34683. +$as_echo_n "checking for libvorbis... " >&6; }
  34684. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34685. /* end confdefs.h. */
  34686. /* Override any GCC internal prototype to avoid an error.
  34687. @@ -22445,35 +11782,11 @@
  34688. return 0;
  34689. }
  34690. _ACEOF
  34691. -rm -f conftest.$ac_objext conftest$ac_exeext
  34692. -if { (ac_try="$ac_link"
  34693. -case "(($ac_try" in
  34694. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34695. - *) ac_try_echo=$ac_try;;
  34696. -esac
  34697. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34698. - (eval "$ac_link") 2>conftest.er1
  34699. - ac_status=$?
  34700. - grep -v '^ *+' conftest.er1 >conftest.err
  34701. - rm -f conftest.er1
  34702. - cat conftest.err >&5
  34703. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34704. - (exit $ac_status); } && {
  34705. - test -z "$ac_c_werror_flag" ||
  34706. - test ! -s conftest.err
  34707. - } && test -s conftest$ac_exeext &&
  34708. - $as_test_x conftest$ac_exeext; then
  34709. +if ac_fn_c_try_link "$LINENO"; then :
  34710. xt_lib_vorbis=ok
  34711. else
  34712. - echo "$as_me: failed program was:" >&5
  34713. -sed 's/^/| /' conftest.$ac_ext >&5
  34714. -
  34715. - LIBS="$LIBS $OGG_LIBS -lm"
  34716. - cat >conftest.$ac_ext <<_ACEOF
  34717. -/* confdefs.h. */
  34718. -_ACEOF
  34719. -cat confdefs.h >>conftest.$ac_ext
  34720. -cat >>conftest.$ac_ext <<_ACEOF
  34721. + LIBS="$LIBS $OGG_LIBS -lm"
  34722. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34723. /* end confdefs.h. */
  34724. /* Override any GCC internal prototype to avoid an error.
  34725. @@ -22491,50 +11804,22 @@
  34726. return 0;
  34727. }
  34728. _ACEOF
  34729. -rm -f conftest.$ac_objext conftest$ac_exeext
  34730. -if { (ac_try="$ac_link"
  34731. -case "(($ac_try" in
  34732. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34733. - *) ac_try_echo=$ac_try;;
  34734. -esac
  34735. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34736. - (eval "$ac_link") 2>conftest.er1
  34737. - ac_status=$?
  34738. - grep -v '^ *+' conftest.er1 >conftest.err
  34739. - rm -f conftest.er1
  34740. - cat conftest.err >&5
  34741. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34742. - (exit $ac_status); } && {
  34743. - test -z "$ac_c_werror_flag" ||
  34744. - test ! -s conftest.err
  34745. - } && test -s conftest$ac_exeext &&
  34746. - $as_test_x conftest$ac_exeext; then
  34747. +if ac_fn_c_try_link "$LINENO"; then :
  34748. xt_lib_vorbis=ok
  34749. VORBIS_LIBS="$VORBIS_LIBS $OGG_LIBS -lm"
  34750. -else
  34751. - echo "$as_me: failed program was:" >&5
  34752. -sed 's/^/| /' conftest.$ac_ext >&5
  34753. -
  34754. -
  34755. fi
  34756. -
  34757. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34758. - conftest$ac_exeext conftest.$ac_ext
  34759. +rm -f core conftest.err conftest.$ac_objext \
  34760. + conftest$ac_exeext conftest.$ac_ext
  34761. fi
  34762. -
  34763. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34764. - conftest$ac_exeext conftest.$ac_ext
  34765. +rm -f core conftest.err conftest.$ac_objext \
  34766. + conftest$ac_exeext conftest.$ac_ext
  34767. if test "x$xt_lib_vorbis" = "xok"; then
  34768. #
  34769. # Now check if the installed Vorbis is sufficiently new.
  34770. #
  34771. -cat >conftest.$ac_ext <<_ACEOF
  34772. -/* confdefs.h. */
  34773. -_ACEOF
  34774. -cat confdefs.h >>conftest.$ac_ext
  34775. -cat >>conftest.$ac_ext <<_ACEOF
  34776. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34777. /* end confdefs.h. */
  34778. #include <vorbis/codec.h>
  34779. @@ -22550,34 +11835,14 @@
  34780. return 0;
  34781. }
  34782. _ACEOF
  34783. -rm -f conftest.$ac_objext
  34784. -if { (ac_try="$ac_compile"
  34785. -case "(($ac_try" in
  34786. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34787. - *) ac_try_echo=$ac_try;;
  34788. -esac
  34789. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34790. - (eval "$ac_compile") 2>conftest.er1
  34791. - ac_status=$?
  34792. - grep -v '^ *+' conftest.er1 >conftest.err
  34793. - rm -f conftest.er1
  34794. - cat conftest.err >&5
  34795. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34796. - (exit $ac_status); } && {
  34797. - test -z "$ac_c_werror_flag" ||
  34798. - test ! -s conftest.err
  34799. - } && test -s conftest.$ac_objext; then
  34800. - :
  34801. -else
  34802. - echo "$as_me: failed program was:" >&5
  34803. -sed 's/^/| /' conftest.$ac_ext >&5
  34804. +if ac_fn_c_try_compile "$LINENO"; then :
  34805. - xt_lib_vorbis="old version found"
  34806. +else
  34807. + xt_lib_vorbis="old version found"
  34808. fi
  34809. -
  34810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34811. -{ echo "$as_me:$LINENO: result: $xt_lib_vorbis" >&5
  34812. -echo "${ECHO_T}$xt_lib_vorbis" >&6; }
  34813. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_lib_vorbis" >&5
  34814. +$as_echo "$xt_lib_vorbis" >&6; }
  34815. fi
  34816. CPPFLAGS="$xt_save_CPPFLAGS"
  34817. LIBS="$xt_save_LIBS"
  34818. @@ -22633,9 +11898,7 @@
  34819. VORBIS_LIBS=""
  34820. VORBISFILE_LIBS=""
  34821. VORBISENC_LIBS=""
  34822. - { { echo "$as_me:$LINENO: error: must have Ogg Vorbis v1.0 or above installed" >&5
  34823. -echo "$as_me: error: must have Ogg Vorbis v1.0 or above installed" >&2;}
  34824. - { (exit 1); exit 1; }; }
  34825. + as_fn_error "must have Ogg Vorbis v1.0 or above installed" "$LINENO" 5
  34826. fi
  34827. @@ -22651,7 +11914,7 @@
  34828. # Check whether --with-theora was given.
  34829. -if test "${with_theora+set}" = set; then
  34830. +if test "${with_theora+set}" = set; then :
  34831. withval=$with_theora; theora_prefix="$withval"
  34832. else
  34833. theora_prefix="$THEORA_PREFIX"
  34834. @@ -22661,8 +11924,8 @@
  34835. if test "x$with_theora" = "xno"
  34836. then
  34837. - { echo "$as_me:$LINENO: result: Theora support disabled by request" >&5
  34838. -echo "${ECHO_T}Theora support disabled by request" >&6; }
  34839. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Theora support disabled by request" >&5
  34840. +$as_echo "Theora support disabled by request" >&6; }
  34841. else
  34842. if test "x$theora_prefix" = "x" -o "x$theora_prefix" = "xyes"; then
  34843. if test "x$prefix" = "xNONE"; then
  34844. @@ -22681,11 +11944,7 @@
  34845. then
  34846. save_cflags="$CFLAGS"
  34847. CFLAGS="-Werror -I"$theora_prefix/include""
  34848. - cat >conftest.$ac_ext <<_ACEOF
  34849. -/* confdefs.h. */
  34850. -_ACEOF
  34851. -cat confdefs.h >>conftest.$ac_ext
  34852. -cat >>conftest.$ac_ext <<_ACEOF
  34853. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34854. /* end confdefs.h. */
  34855. int
  34856. @@ -22696,31 +11955,11 @@
  34857. return 0;
  34858. }
  34859. _ACEOF
  34860. -rm -f conftest.$ac_objext
  34861. -if { (ac_try="$ac_compile"
  34862. -case "(($ac_try" in
  34863. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34864. - *) ac_try_echo=$ac_try;;
  34865. -esac
  34866. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34867. - (eval "$ac_compile") 2>conftest.er1
  34868. - ac_status=$?
  34869. - grep -v '^ *+' conftest.er1 >conftest.err
  34870. - rm -f conftest.er1
  34871. - cat conftest.err >&5
  34872. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34873. - (exit $ac_status); } && {
  34874. - test -z "$ac_c_werror_flag" ||
  34875. - test ! -s conftest.err
  34876. - } && test -s conftest.$ac_objext; then
  34877. - :
  34878. -else
  34879. - echo "$as_me: failed program was:" >&5
  34880. -sed 's/^/| /' conftest.$ac_ext >&5
  34881. +if ac_fn_c_try_compile "$LINENO"; then :
  34882. - xt_warning=yes
  34883. +else
  34884. + xt_warning=yes
  34885. fi
  34886. -
  34887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34888. CFLAGS="$save_cflags"
  34889. fi
  34890. @@ -22741,13 +11980,9 @@
  34891. ac_save_LDFLAGS="$LDFLAGS"
  34892. LDFLAGS="$LDFLAGS $THEORA_LDFLAGS"
  34893. LIBS="$LIBS $THEORA_LIBS"
  34894. - { echo "$as_me:$LINENO: checking for libtheora" >&5
  34895. -echo $ECHO_N "checking for libtheora... $ECHO_C" >&6; }
  34896. - cat >conftest.$ac_ext <<_ACEOF
  34897. -/* confdefs.h. */
  34898. -_ACEOF
  34899. -cat confdefs.h >>conftest.$ac_ext
  34900. -cat >>conftest.$ac_ext <<_ACEOF
  34901. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtheora" >&5
  34902. +$as_echo_n "checking for libtheora... " >&6; }
  34903. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34904. /* end confdefs.h. */
  34905. /* Override any GCC internal prototype to avoid an error.
  34906. @@ -22765,41 +12000,209 @@
  34907. return 0;
  34908. }
  34909. _ACEOF
  34910. -rm -f conftest.$ac_objext conftest$ac_exeext
  34911. -if { (ac_try="$ac_link"
  34912. -case "(($ac_try" in
  34913. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34914. - *) ac_try_echo=$ac_try;;
  34915. -esac
  34916. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34917. - (eval "$ac_link") 2>conftest.er1
  34918. - ac_status=$?
  34919. - grep -v '^ *+' conftest.er1 >conftest.err
  34920. - rm -f conftest.er1
  34921. - cat conftest.err >&5
  34922. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34923. - (exit $ac_status); } && {
  34924. - test -z "$ac_c_werror_flag" ||
  34925. - test ! -s conftest.err
  34926. - } && test -s conftest$ac_exeext &&
  34927. - $as_test_x conftest$ac_exeext; then
  34928. +if ac_fn_c_try_link "$LINENO"; then :
  34929. xt_have_theora="yes"
  34930. else
  34931. - echo "$as_me: failed program was:" >&5
  34932. -sed 's/^/| /' conftest.$ac_ext >&5
  34933. + xt_have_theora="Not found"
  34934. +fi
  34935. +rm -f core conftest.err conftest.$ac_objext \
  34936. + conftest$ac_exeext conftest.$ac_ext
  34937. + if test "x$xt_have_theora" = "xyes"
  34938. + then
  34939. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34940. +/* end confdefs.h. */
  34941. - xt_have_theora="Not found"
  34942. +/* Override any GCC internal prototype to avoid an error.
  34943. + Use char because int might match the return type of a GCC
  34944. + builtin and then its argument prototype would still apply. */
  34945. +#ifdef __cplusplus
  34946. +extern "C"
  34947. +#endif
  34948. +char theora_packet_isheader ();
  34949. +int
  34950. +main ()
  34951. +{
  34952. +return theora_packet_isheader ();
  34953. + ;
  34954. + return 0;
  34955. +}
  34956. +_ACEOF
  34957. +if ac_fn_c_try_link "$LINENO"; then :
  34958. + xt_have_theora="yes"
  34959. +else
  34960. + xt_have_theora="newer version required"
  34961. fi
  34962. +rm -f core conftest.err conftest.$ac_objext \
  34963. + conftest$ac_exeext conftest.$ac_ext
  34964. + fi
  34965. +
  34966. + LIBS="$ac_save_LIBS"
  34967. + LDFLAGS="$ac_save_LDFLAGS"
  34968. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34969. - conftest$ac_exeext conftest.$ac_ext
  34970. if test "x$xt_have_theora" = "xyes"
  34971. then
  34972. - cat >conftest.$ac_ext <<_ACEOF
  34973. -/* confdefs.h. */
  34974. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  34975. +$as_echo "ok" >&6; }
  34976. +
  34977. +$as_echo "#define HAVE_THEORA 1" >>confdefs.h
  34978. +
  34979. +
  34980. +
  34981. +for arg in $THEORA_CFLAGS
  34982. +do
  34983. + if { cat <<EOF
  34984. + $XIPH_CPPFLAGS x
  34985. +EOF
  34986. +} | $FGREP -v -e " $arg " > /dev/null
  34987. + then
  34988. + XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
  34989. + fi
  34990. +done
  34991. +
  34992. +
  34993. +for arg in $THEORA_LDFLAGS
  34994. +do
  34995. + if { cat <<EOF
  34996. + $XIPH_LDFLAGS x
  34997. +EOF
  34998. +} | $FGREP -v -e " $arg " > /dev/null
  34999. + then
  35000. + XIPH_LDFLAGS="$XIPH_LDFLAGS $arg"
  35001. + fi
  35002. +done
  35003. +
  35004. +
  35005. +xt_compare="$XIPH_LIBS"
  35006. +xt_filtered=""
  35007. +for arg in $THEORA_LIBS
  35008. +do
  35009. + if { cat <<EOF
  35010. + $xt_compare x
  35011. +EOF
  35012. +} | $FGREP -v -e " $arg " > /dev/null
  35013. + then
  35014. + xt_compare="$arg $xt_compare"
  35015. + xt_filtered="$xt_filtered $arg"
  35016. + fi
  35017. +done
  35018. +XIPH_LIBS="$xt_filtered $XIPH_LIBS"
  35019. +
  35020. + ICECAST_OPTIONAL="$ICECAST_OPTIONAL format_theora.o"
  35021. +
  35022. + else
  35023. + THEORA_CFLAGS=""
  35024. + THEORA_LDFLAGS=""
  35025. + THEORA_LIBS=""
  35026. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_have_theora" >&5
  35027. +$as_echo "$xt_have_theora" >&6; }
  35028. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Theora disabled!" >&5
  35029. +$as_echo "$as_me: WARNING: Theora disabled!" >&2;}
  35030. +
  35031. + fi
  35032. +fi
  35033. +
  35034. +
  35035. +
  35036. +
  35037. +
  35038. +
  35039. +
  35040. +
  35041. +
  35042. +
  35043. +# Check whether --with-speex was given.
  35044. +if test "${with_speex+set}" = set; then :
  35045. + withval=$with_speex; speex_prefix="$withval"
  35046. +else
  35047. + speex_prefix="$SPEEX_PREFIX"
  35048. +
  35049. +fi
  35050. +
  35051. +if test "x$with_speex" = "xno"
  35052. +then
  35053. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Speex support disabled by request" >&5
  35054. +$as_echo "Speex support disabled by request" >&6; }
  35055. +else
  35056. + if test "x$speex_prefix" = "x" -o "x$speex_prefix" = "xyes"; then
  35057. + if test "x$prefix" = "xNONE"; then
  35058. + speex_prefix="/usr/local"
  35059. + else
  35060. + speex_prefix="$prefix"
  35061. + fi
  35062. + fi
  35063. +
  35064. + SPEEX_CFLAGS="$OGG_CFLAGS"
  35065. + SPEEX_LDFLAGS="$OGG_LDFLAGS"
  35066. + if test "x$speex_prefix" != "x$ogg_prefix"; then
  35067. +
  35068. +xt_warning=no
  35069. +if test x"$GCC" = "xyes"
  35070. +then
  35071. + save_cflags="$CFLAGS"
  35072. + CFLAGS="-Werror -I"$speex_prefix/include""
  35073. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35074. +/* end confdefs.h. */
  35075. +
  35076. +int
  35077. +main ()
  35078. +{
  35079. +
  35080. + ;
  35081. + return 0;
  35082. +}
  35083. +_ACEOF
  35084. +if ac_fn_c_try_compile "$LINENO"; then :
  35085. +
  35086. +else
  35087. + xt_warning=yes
  35088. +fi
  35089. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35090. + CFLAGS="$save_cflags"
  35091. +fi
  35092. +if test "$xt_warning" = "yes"
  35093. +then
  35094. + :
  35095. +else
  35096. + SPEEX_CFLAGS="$SPEEX_CFLAGS -I$speex_prefix/include"
  35097. + SPEEX_LDFLAGS="-L$speex_prefix/lib $SPEEX_LDFLAGS"
  35098. +
  35099. +fi
  35100. +
  35101. + fi
  35102. +
  35103. + SPEEX_LIBS="-lspeex"
  35104. +
  35105. + xt_save_LIBS="$LIBS"
  35106. + xt_save_LDFLAGS="$LDFLAGS"
  35107. + LDFLAGS="$LDFLAGS $SPEEX_LDFLAGS"
  35108. + LIBS="$LIBS $SPEEX_LIBS"
  35109. + xt_have_speex="yes"
  35110. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libspeex" >&5
  35111. +$as_echo_n "checking for libspeex... " >&6; }
  35112. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35113. +/* end confdefs.h. */
  35114. +
  35115. +/* Override any GCC internal prototype to avoid an error.
  35116. + Use char because int might match the return type of a GCC
  35117. + builtin and then its argument prototype would still apply. */
  35118. +#ifdef __cplusplus
  35119. +extern "C"
  35120. +#endif
  35121. +char ogg_stream_init ();
  35122. +int
  35123. +main ()
  35124. +{
  35125. +return ogg_stream_init ();
  35126. + ;
  35127. + return 0;
  35128. +}
  35129. _ACEOF
  35130. -cat confdefs.h >>conftest.$ac_ext
  35131. -cat >>conftest.$ac_ext <<_ACEOF
  35132. +if ac_fn_c_try_link "$LINENO"; then :
  35133. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  35134. +$as_echo "ok" >&6; }
  35135. +else
  35136. + LIBS="$LIBS $OGG_LIBS"
  35137. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35138. /* end confdefs.h. */
  35139. /* Override any GCC internal prototype to avoid an error.
  35140. @@ -22808,60 +12211,60 @@
  35141. #ifdef __cplusplus
  35142. extern "C"
  35143. #endif
  35144. -char theora_packet_isheader ();
  35145. +char ogg_stream_init ();
  35146. int
  35147. main ()
  35148. {
  35149. -return theora_packet_isheader ();
  35150. +return ogg_stream_init ();
  35151. ;
  35152. return 0;
  35153. }
  35154. _ACEOF
  35155. -rm -f conftest.$ac_objext conftest$ac_exeext
  35156. -if { (ac_try="$ac_link"
  35157. -case "(($ac_try" in
  35158. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35159. - *) ac_try_echo=$ac_try;;
  35160. -esac
  35161. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35162. - (eval "$ac_link") 2>conftest.er1
  35163. - ac_status=$?
  35164. - grep -v '^ *+' conftest.er1 >conftest.err
  35165. - rm -f conftest.er1
  35166. - cat conftest.err >&5
  35167. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35168. - (exit $ac_status); } && {
  35169. - test -z "$ac_c_werror_flag" ||
  35170. - test ! -s conftest.err
  35171. - } && test -s conftest$ac_exeext &&
  35172. - $as_test_x conftest$ac_exeext; then
  35173. - xt_have_theora="yes"
  35174. +if ac_fn_c_try_link "$LINENO"; then :
  35175. + SPEEX_LIBS="$SPEEX_LIBS $OGG_LIBS"
  35176. else
  35177. - echo "$as_me: failed program was:" >&5
  35178. -sed 's/^/| /' conftest.$ac_ext >&5
  35179. + xt_have_speex="no"
  35180. +fi
  35181. +rm -f core conftest.err conftest.$ac_objext \
  35182. + conftest$ac_exeext conftest.$ac_ext
  35183. - xt_have_theora="newer version required"
  35184. fi
  35185. +rm -f core conftest.err conftest.$ac_objext \
  35186. + conftest$ac_exeext conftest.$ac_ext
  35187. + if test "x$xt_have_speex" = "xyes"
  35188. + then
  35189. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35190. +/* end confdefs.h. */
  35191. +#include <speex/speex_header.h>
  35192. +int
  35193. +main ()
  35194. +{
  35195. +void *p = speex_packet_to_header;
  35196. + ;
  35197. + return 0;
  35198. +}
  35199. +_ACEOF
  35200. +if ac_fn_c_try_link "$LINENO"; then :
  35201. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35202. - conftest$ac_exeext conftest.$ac_ext
  35203. +else
  35204. + xt_have_speex="no"
  35205. +fi
  35206. +rm -f core conftest.err conftest.$ac_objext \
  35207. + conftest$ac_exeext conftest.$ac_ext
  35208. fi
  35209. - LIBS="$ac_save_LIBS"
  35210. - LDFLAGS="$ac_save_LDFLAGS"
  35211. + LIBS="$xt_save_LIBS"
  35212. + LDFLAGS="$xt_save_LDFLAGS"
  35213. - if test "x$xt_have_theora" = "xyes"
  35214. + if test "x$xt_have_speex" = "xyes"
  35215. then
  35216. - { echo "$as_me:$LINENO: result: ok" >&5
  35217. -echo "${ECHO_T}ok" >&6; }
  35218. -
  35219. -cat >>confdefs.h <<\_ACEOF
  35220. -#define HAVE_THEORA 1
  35221. -_ACEOF
  35222. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  35223. +$as_echo "ok" >&6; }
  35224. +$as_echo "#define HAVE_SPEEX 1" >>confdefs.h
  35225. -for arg in $THEORA_CFLAGS
  35226. +for arg in $SPEEX_CFLAGS
  35227. do
  35228. if { cat <<EOF
  35229. $XIPH_CPPFLAGS x
  35230. @@ -22873,312 +12276,517 @@
  35231. done
  35232. -for arg in $THEORA_LDFLAGS
  35233. +xt_compare="$XIPH_LIBS"
  35234. +xt_filtered=""
  35235. +for arg in $SPEEX_LIBS
  35236. do
  35237. if { cat <<EOF
  35238. - $XIPH_LDFLAGS x
  35239. + $xt_compare x
  35240. EOF
  35241. } | $FGREP -v -e " $arg " > /dev/null
  35242. then
  35243. - XIPH_LDFLAGS="$XIPH_LDFLAGS $arg"
  35244. + xt_compare="$arg $xt_compare"
  35245. + xt_filtered="$xt_filtered $arg"
  35246. fi
  35247. done
  35248. +XIPH_LIBS="$xt_filtered $XIPH_LIBS"
  35249. -xt_compare="$XIPH_LIBS"
  35250. -xt_filtered=""
  35251. -for arg in $THEORA_LIBS
  35252. +for arg in $SPEEX_LDFLAGS
  35253. do
  35254. if { cat <<EOF
  35255. - $xt_compare x
  35256. + $XIPH_LDFLAGS x
  35257. EOF
  35258. } | $FGREP -v -e " $arg " > /dev/null
  35259. then
  35260. - xt_compare="$arg $xt_compare"
  35261. - xt_filtered="$xt_filtered $arg"
  35262. + XIPH_LDFLAGS="$XIPH_LDFLAGS $arg"
  35263. fi
  35264. done
  35265. -XIPH_LIBS="$xt_filtered $XIPH_LIBS"
  35266. - ICECAST_OPTIONAL="$ICECAST_OPTIONAL format_theora.o"
  35267. + ICECAST_OPTIONAL="$ICECAST_OPTIONAL format_speex.o"
  35268. else
  35269. - THEORA_CFLAGS=""
  35270. - THEORA_LDFLAGS=""
  35271. - THEORA_LIBS=""
  35272. - { echo "$as_me:$LINENO: result: $xt_have_theora" >&5
  35273. -echo "${ECHO_T}$xt_have_theora" >&6; }
  35274. - { echo "$as_me:$LINENO: WARNING: Theora disabled!" >&5
  35275. -echo "$as_me: WARNING: Theora disabled!" >&2;}
  35276. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Speex support disabled!" >&5
  35277. +$as_echo "$as_me: WARNING: Speex support disabled!" >&2;}
  35278. +
  35279. + SPEEX_CFLAGS=""
  35280. + SPEEX_LDFLAGS=""
  35281. + SPEEX_LIBS=""
  35282. + fi
  35283. +
  35284. +
  35285. +
  35286. +fi
  35287. +
  35288. +
  35289. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kate_decode_init in -lkate" >&5
  35290. +$as_echo_n "checking for kate_decode_init in -lkate... " >&6; }
  35291. +if test "${ac_cv_lib_kate_kate_decode_init+set}" = set; then :
  35292. + $as_echo_n "(cached) " >&6
  35293. +else
  35294. + ac_check_lib_save_LIBS=$LIBS
  35295. +LIBS="-lkate -logg $LIBS"
  35296. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35297. +/* end confdefs.h. */
  35298. +
  35299. +/* Override any GCC internal prototype to avoid an error.
  35300. + Use char because int might match the return type of a GCC
  35301. + builtin and then its argument prototype would still apply. */
  35302. +#ifdef __cplusplus
  35303. +extern "C"
  35304. +#endif
  35305. +char kate_decode_init ();
  35306. +int
  35307. +main ()
  35308. +{
  35309. +return kate_decode_init ();
  35310. + ;
  35311. + return 0;
  35312. +}
  35313. +_ACEOF
  35314. +if ac_fn_c_try_link "$LINENO"; then :
  35315. + ac_cv_lib_kate_kate_decode_init=yes
  35316. +else
  35317. + ac_cv_lib_kate_kate_decode_init=no
  35318. +fi
  35319. +rm -f core conftest.err conftest.$ac_objext \
  35320. + conftest$ac_exeext conftest.$ac_ext
  35321. +LIBS=$ac_check_lib_save_LIBS
  35322. +fi
  35323. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kate_kate_decode_init" >&5
  35324. +$as_echo "$ac_cv_lib_kate_kate_decode_init" >&6; }
  35325. +if test "x$ac_cv_lib_kate_kate_decode_init" = x""yes; then :
  35326. + have_kate=yes
  35327. +else
  35328. + have_kate=no
  35329. +fi
  35330. +
  35331. +if test "x$have_kate" == "xyes"
  35332. +then
  35333. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kate_ogg_decode_headerin in -loggkate" >&5
  35334. +$as_echo_n "checking for kate_ogg_decode_headerin in -loggkate... " >&6; }
  35335. +if test "${ac_cv_lib_oggkate_kate_ogg_decode_headerin+set}" = set; then :
  35336. + $as_echo_n "(cached) " >&6
  35337. +else
  35338. + ac_check_lib_save_LIBS=$LIBS
  35339. +LIBS="-loggkate -lkate -logg $LIBS"
  35340. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35341. +/* end confdefs.h. */
  35342. +
  35343. +/* Override any GCC internal prototype to avoid an error.
  35344. + Use char because int might match the return type of a GCC
  35345. + builtin and then its argument prototype would still apply. */
  35346. +#ifdef __cplusplus
  35347. +extern "C"
  35348. +#endif
  35349. +char kate_ogg_decode_headerin ();
  35350. +int
  35351. +main ()
  35352. +{
  35353. +return kate_ogg_decode_headerin ();
  35354. + ;
  35355. + return 0;
  35356. +}
  35357. +_ACEOF
  35358. +if ac_fn_c_try_link "$LINENO"; then :
  35359. + ac_cv_lib_oggkate_kate_ogg_decode_headerin=yes
  35360. +else
  35361. + ac_cv_lib_oggkate_kate_ogg_decode_headerin=no
  35362. +fi
  35363. +rm -f core conftest.err conftest.$ac_objext \
  35364. + conftest$ac_exeext conftest.$ac_ext
  35365. +LIBS=$ac_check_lib_save_LIBS
  35366. +fi
  35367. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oggkate_kate_ogg_decode_headerin" >&5
  35368. +$as_echo "$ac_cv_lib_oggkate_kate_ogg_decode_headerin" >&6; }
  35369. +if test "x$ac_cv_lib_oggkate_kate_ogg_decode_headerin" = x""yes; then :
  35370. + have_kate=yes
  35371. +else
  35372. + have_kate=no
  35373. +fi
  35374. +
  35375. + if test "x$have_kate" == "xyes"
  35376. + then
  35377. + KATE_LIBS="-loggkate -lkate -logg"
  35378. +
  35379. +$as_echo "#define HAVE_KATE 1" >>confdefs.h
  35380. fi
  35381. fi
  35382. +#ICECAST_OPTIONAL="$ICECAST_OPTIONAL format_kate.o"
  35383. +
  35384. +
  35385. +
  35386. +
  35387. +ac_ext=c
  35388. +ac_cpp='$CPP $CPPFLAGS'
  35389. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35390. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35391. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35392. +
  35393. +acx_pthread_ok=no
  35394. +
  35395. +# We used to check for pthread.h first, but this fails if pthread.h
  35396. +# requires special compiler flags (e.g. on True64 or Sequent).
  35397. +# It gets checked for in the link test anyway.
  35398. +
  35399. +# First of all, check if the user has set any of the PTHREAD_LIBS,
  35400. +# etcetera environment variables, and if threads linking works using
  35401. +# them:
  35402. +if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  35403. + save_CFLAGS="$CFLAGS"
  35404. + CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  35405. + save_LIBS="$LIBS"
  35406. + LIBS="$PTHREAD_LIBS $LIBS"
  35407. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  35408. +$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  35409. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35410. +/* end confdefs.h. */
  35411. +
  35412. +/* Override any GCC internal prototype to avoid an error.
  35413. + Use char because int might match the return type of a GCC
  35414. + builtin and then its argument prototype would still apply. */
  35415. +#ifdef __cplusplus
  35416. +extern "C"
  35417. +#endif
  35418. +char pthread_join ();
  35419. +int
  35420. +main ()
  35421. +{
  35422. +return pthread_join ();
  35423. + ;
  35424. + return 0;
  35425. +}
  35426. +_ACEOF
  35427. +if ac_fn_c_try_link "$LINENO"; then :
  35428. + acx_pthread_ok=yes
  35429. +fi
  35430. +rm -f core conftest.err conftest.$ac_objext \
  35431. + conftest$ac_exeext conftest.$ac_ext
  35432. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  35433. +$as_echo "$acx_pthread_ok" >&6; }
  35434. + if test x"$acx_pthread_ok" = xno; then
  35435. + PTHREAD_LIBS=""
  35436. + PTHREAD_CFLAGS=""
  35437. + fi
  35438. + LIBS="$save_LIBS"
  35439. + CFLAGS="$save_CFLAGS"
  35440. +fi
  35441. +
  35442. +# We must check for the threads library under a number of different
  35443. +# names; the ordering is very important because some systems
  35444. +# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  35445. +# libraries is broken (non-POSIX).
  35446. +
  35447. +# Create a list of thread flags to try. Items starting with a "-" are
  35448. +# C compiler flags, and other items are library names, except for "none"
  35449. +# which indicates that we try without any flags at all, and "pthread-config"
  35450. +# which is a program returning the flags for the Pth emulation library.
  35451. +
  35452. +acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  35453. +# The ordering *is* (sometimes) important. Some notes on the
  35454. +# individual items follow:
  35455. +# pthreads: AIX (must check this before -lpthread)
  35456. +# none: in case threads are in libc; should be tried before -Kthread and
  35457. +# other compiler flags to prevent continual compiler warnings
  35458. +# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  35459. +# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  35460. +# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  35461. +# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  35462. +# -pthreads: Solaris/gcc
  35463. +# -mthreads: Mingw32/gcc, Lynx/gcc
  35464. +# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  35465. +# doesn't hurt to check since this sometimes defines pthreads too;
  35466. +# also defines -D_REENTRANT)
  35467. +# ... -mt is also the pthreads flag for HP/aCC
  35468. +# pthread: Linux, etcetera
  35469. +# --thread-safe: KAI C++
  35470. +# pthread-config: use pthread-config program (for GNU Pth library)
  35471. +case "${host_cpu}-${host_os}" in
  35472. + *solaris*)
  35473. + # On Solaris (at least, for some versions), libc contains stubbed
  35474. + # (non-functional) versions of the pthreads routines, so link-based
  35475. + # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  35476. + # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  35477. + # a function called by this macro, so we could check for that, but
  35478. + # who knows whether they'll stub that too in a future libc.) So,
  35479. + # we'll just look for -pthreads and -lpthread first:
  35480. + acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  35481. + ;;
  35482. +esac
  35483. +if test x"$acx_pthread_ok" = xno; then
  35484. +for flag in $acx_pthread_flags; do
  35485. + case $flag in
  35486. + none)
  35487. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  35488. +$as_echo_n "checking whether pthreads work without any flags... " >&6; }
  35489. + ;;
  35490. + -*)
  35491. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  35492. +$as_echo_n "checking whether pthreads work with $flag... " >&6; }
  35493. + PTHREAD_CFLAGS="$flag"
  35494. + ;;
  35495. + pthread-config)
  35496. + # Extract the first word of "pthread-config", so it can be a program name with args.
  35497. +set dummy pthread-config; ac_word=$2
  35498. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  35499. +$as_echo_n "checking for $ac_word... " >&6; }
  35500. +if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
  35501. + $as_echo_n "(cached) " >&6
  35502. +else
  35503. + if test -n "$acx_pthread_config"; then
  35504. + ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  35505. +else
  35506. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35507. +for as_dir in $PATH
  35508. +do
  35509. + IFS=$as_save_IFS
  35510. + test -z "$as_dir" && as_dir=.
  35511. + for ac_exec_ext in '' $ac_executable_extensions; do
  35512. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  35513. + ac_cv_prog_acx_pthread_config="yes"
  35514. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  35515. + break 2
  35516. + fi
  35517. +done
  35518. + done
  35519. +IFS=$as_save_IFS
  35520. -# Check whether --with-speex was given.
  35521. -if test "${with_speex+set}" = set; then
  35522. - withval=$with_speex; speex_prefix="$withval"
  35523. + test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  35524. +fi
  35525. +fi
  35526. +acx_pthread_config=$ac_cv_prog_acx_pthread_config
  35527. +if test -n "$acx_pthread_config"; then
  35528. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  35529. +$as_echo "$acx_pthread_config" >&6; }
  35530. else
  35531. - speex_prefix="$SPEEX_PREFIX"
  35532. -
  35533. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35534. +$as_echo "no" >&6; }
  35535. fi
  35536. -if test "x$with_speex" = "xno"
  35537. -then
  35538. - { echo "$as_me:$LINENO: result: Speex support disabled by request" >&5
  35539. -echo "${ECHO_T}Speex support disabled by request" >&6; }
  35540. -else
  35541. - if test "x$speex_prefix" = "x" -o "x$speex_prefix" = "xyes"; then
  35542. - if test "x$prefix" = "xNONE"; then
  35543. - speex_prefix="/usr/local"
  35544. - else
  35545. - speex_prefix="$prefix"
  35546. - fi
  35547. - fi
  35548. - SPEEX_CFLAGS="$OGG_CFLAGS"
  35549. - SPEEX_LDFLAGS="$OGG_LDFLAGS"
  35550. - if test "x$speex_prefix" != "x$ogg_prefix"; then
  35551. + if test x"$acx_pthread_config" = xno; then continue; fi
  35552. + PTHREAD_CFLAGS="`pthread-config --cflags`"
  35553. + PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  35554. + ;;
  35555. -xt_warning=no
  35556. -if test x"$GCC" = "xyes"
  35557. -then
  35558. - save_cflags="$CFLAGS"
  35559. - CFLAGS="-Werror -I"$speex_prefix/include""
  35560. - cat >conftest.$ac_ext <<_ACEOF
  35561. -/* confdefs.h. */
  35562. -_ACEOF
  35563. -cat confdefs.h >>conftest.$ac_ext
  35564. -cat >>conftest.$ac_ext <<_ACEOF
  35565. -/* end confdefs.h. */
  35566. + *)
  35567. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  35568. +$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  35569. + PTHREAD_LIBS="-l$flag"
  35570. + ;;
  35571. + esac
  35572. +
  35573. + save_LIBS="$LIBS"
  35574. + save_CFLAGS="$CFLAGS"
  35575. + LIBS="$PTHREAD_LIBS $LIBS"
  35576. + CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  35577. + # Check for various functions. We must include pthread.h,
  35578. + # since some functions may be macros. (On the Sequent, we
  35579. + # need a special flag -Kthread to make this header compile.)
  35580. + # We check for pthread_join because it is in -lpthread on IRIX
  35581. + # while pthread_create is in libc. We check for pthread_attr_init
  35582. + # due to DEC craziness with -lpthreads. We check for
  35583. + # pthread_cleanup_push because it is one of the few pthread
  35584. + # functions on Solaris that doesn't have a non-functional libc stub.
  35585. + # We try pthread_create on general principles.
  35586. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35587. +/* end confdefs.h. */
  35588. +#include <pthread.h>
  35589. int
  35590. main ()
  35591. {
  35592. -
  35593. +pthread_t th; pthread_join(th, 0);
  35594. + pthread_attr_init(0); pthread_cleanup_push(0, 0);
  35595. + pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  35596. ;
  35597. return 0;
  35598. }
  35599. _ACEOF
  35600. -rm -f conftest.$ac_objext
  35601. -if { (ac_try="$ac_compile"
  35602. -case "(($ac_try" in
  35603. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35604. - *) ac_try_echo=$ac_try;;
  35605. -esac
  35606. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35607. - (eval "$ac_compile") 2>conftest.er1
  35608. - ac_status=$?
  35609. - grep -v '^ *+' conftest.er1 >conftest.err
  35610. - rm -f conftest.er1
  35611. - cat conftest.err >&5
  35612. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35613. - (exit $ac_status); } && {
  35614. - test -z "$ac_c_werror_flag" ||
  35615. - test ! -s conftest.err
  35616. - } && test -s conftest.$ac_objext; then
  35617. - :
  35618. -else
  35619. - echo "$as_me: failed program was:" >&5
  35620. -sed 's/^/| /' conftest.$ac_ext >&5
  35621. -
  35622. - xt_warning=yes
  35623. +if ac_fn_c_try_link "$LINENO"; then :
  35624. + acx_pthread_ok=yes
  35625. fi
  35626. +rm -f core conftest.err conftest.$ac_objext \
  35627. + conftest$ac_exeext conftest.$ac_ext
  35628. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35629. - CFLAGS="$save_cflags"
  35630. -fi
  35631. -if test "$xt_warning" = "yes"
  35632. -then
  35633. - :
  35634. -else
  35635. - SPEEX_CFLAGS="$SPEEX_CFLAGS -I$speex_prefix/include"
  35636. - SPEEX_LDFLAGS="-L$speex_prefix/lib $SPEEX_LDFLAGS"
  35637. + LIBS="$save_LIBS"
  35638. + CFLAGS="$save_CFLAGS"
  35639. -fi
  35640. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  35641. +$as_echo "$acx_pthread_ok" >&6; }
  35642. + if test "x$acx_pthread_ok" = xyes; then
  35643. + break;
  35644. + fi
  35645. - fi
  35646. + PTHREAD_LIBS=""
  35647. + PTHREAD_CFLAGS=""
  35648. +done
  35649. +fi
  35650. - SPEEX_LIBS="-lspeex"
  35651. +# Various other checks:
  35652. +if test "x$acx_pthread_ok" = xyes; then
  35653. + save_LIBS="$LIBS"
  35654. + LIBS="$PTHREAD_LIBS $LIBS"
  35655. + save_CFLAGS="$CFLAGS"
  35656. + CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  35657. - xt_save_LIBS="$LIBS"
  35658. - xt_save_LDFLAGS="$LDFLAGS"
  35659. - LDFLAGS="$LDFLAGS $SPEEX_LDFLAGS"
  35660. - LIBS="$LIBS $SPEEX_LIBS"
  35661. - xt_have_speex="yes"
  35662. - { echo "$as_me:$LINENO: checking for libspeex" >&5
  35663. -echo $ECHO_N "checking for libspeex... $ECHO_C" >&6; }
  35664. - cat >conftest.$ac_ext <<_ACEOF
  35665. -/* confdefs.h. */
  35666. -_ACEOF
  35667. -cat confdefs.h >>conftest.$ac_ext
  35668. -cat >>conftest.$ac_ext <<_ACEOF
  35669. + # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  35670. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  35671. +$as_echo_n "checking for joinable pthread attribute... " >&6; }
  35672. + attr_name=unknown
  35673. + for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  35674. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35675. /* end confdefs.h. */
  35676. -
  35677. -/* Override any GCC internal prototype to avoid an error.
  35678. - Use char because int might match the return type of a GCC
  35679. - builtin and then its argument prototype would still apply. */
  35680. -#ifdef __cplusplus
  35681. -extern "C"
  35682. -#endif
  35683. -char ogg_stream_init ();
  35684. +#include <pthread.h>
  35685. int
  35686. main ()
  35687. {
  35688. -return ogg_stream_init ();
  35689. +int attr=$attr; return attr;
  35690. ;
  35691. return 0;
  35692. }
  35693. _ACEOF
  35694. -rm -f conftest.$ac_objext conftest$ac_exeext
  35695. -if { (ac_try="$ac_link"
  35696. -case "(($ac_try" in
  35697. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35698. - *) ac_try_echo=$ac_try;;
  35699. -esac
  35700. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35701. - (eval "$ac_link") 2>conftest.er1
  35702. - ac_status=$?
  35703. - grep -v '^ *+' conftest.er1 >conftest.err
  35704. - rm -f conftest.er1
  35705. - cat conftest.err >&5
  35706. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35707. - (exit $ac_status); } && {
  35708. - test -z "$ac_c_werror_flag" ||
  35709. - test ! -s conftest.err
  35710. - } && test -s conftest$ac_exeext &&
  35711. - $as_test_x conftest$ac_exeext; then
  35712. - { echo "$as_me:$LINENO: result: ok" >&5
  35713. -echo "${ECHO_T}ok" >&6; }
  35714. -else
  35715. - echo "$as_me: failed program was:" >&5
  35716. -sed 's/^/| /' conftest.$ac_ext >&5
  35717. +if ac_fn_c_try_link "$LINENO"; then :
  35718. + attr_name=$attr; break
  35719. +fi
  35720. +rm -f core conftest.err conftest.$ac_objext \
  35721. + conftest$ac_exeext conftest.$ac_ext
  35722. + done
  35723. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  35724. +$as_echo "$attr_name" >&6; }
  35725. + if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  35726. - LIBS="$LIBS $OGG_LIBS"
  35727. - cat >conftest.$ac_ext <<_ACEOF
  35728. -/* confdefs.h. */
  35729. +cat >>confdefs.h <<_ACEOF
  35730. +#define PTHREAD_CREATE_JOINABLE $attr_name
  35731. _ACEOF
  35732. -cat confdefs.h >>conftest.$ac_ext
  35733. -cat >>conftest.$ac_ext <<_ACEOF
  35734. -/* end confdefs.h. */
  35735. -/* Override any GCC internal prototype to avoid an error.
  35736. - Use char because int might match the return type of a GCC
  35737. - builtin and then its argument prototype would still apply. */
  35738. -#ifdef __cplusplus
  35739. -extern "C"
  35740. -#endif
  35741. -char ogg_stream_init ();
  35742. -int
  35743. -main ()
  35744. -{
  35745. -return ogg_stream_init ();
  35746. - ;
  35747. - return 0;
  35748. -}
  35749. + fi
  35750. +
  35751. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  35752. +$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  35753. + flag=no
  35754. + case "${host_cpu}-${host_os}" in
  35755. + *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  35756. + *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  35757. + esac
  35758. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  35759. +$as_echo "${flag}" >&6; }
  35760. + if test "x$flag" != xno; then
  35761. + PTHREAD_CPPFLAGS="$flag $PTHREAD_CPPFLAGS"
  35762. + fi
  35763. +
  35764. + for ac_func in pthread_spin_lock
  35765. +do :
  35766. + ac_fn_c_check_func "$LINENO" "pthread_spin_lock" "ac_cv_func_pthread_spin_lock"
  35767. +if test "x$ac_cv_func_pthread_spin_lock" = x""yes; then :
  35768. + cat >>confdefs.h <<_ACEOF
  35769. +#define HAVE_PTHREAD_SPIN_LOCK 1
  35770. _ACEOF
  35771. -rm -f conftest.$ac_objext conftest$ac_exeext
  35772. -if { (ac_try="$ac_link"
  35773. -case "(($ac_try" in
  35774. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35775. - *) ac_try_echo=$ac_try;;
  35776. -esac
  35777. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35778. - (eval "$ac_link") 2>conftest.er1
  35779. - ac_status=$?
  35780. - grep -v '^ *+' conftest.er1 >conftest.err
  35781. - rm -f conftest.er1
  35782. - cat conftest.err >&5
  35783. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35784. - (exit $ac_status); } && {
  35785. - test -z "$ac_c_werror_flag" ||
  35786. - test ! -s conftest.err
  35787. - } && test -s conftest$ac_exeext &&
  35788. - $as_test_x conftest$ac_exeext; then
  35789. - SPEEX_LIBS="$SPEEX_LIBS $OGG_LIBS"
  35790. -else
  35791. - echo "$as_me: failed program was:" >&5
  35792. -sed 's/^/| /' conftest.$ac_ext >&5
  35793. - xt_have_speex="no"
  35794. fi
  35795. +done
  35796. +
  35797. + LIBS="$save_LIBS"
  35798. + CFLAGS="$save_CFLAGS"
  35799. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35800. - conftest$ac_exeext conftest.$ac_ext
  35801. + # More AIX lossage: must compile with xlc_r or cc_r
  35802. + if test x"$GCC" != xyes; then
  35803. + for ac_prog in xlc_r cc_r
  35804. +do
  35805. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  35806. +set dummy $ac_prog; ac_word=$2
  35807. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  35808. +$as_echo_n "checking for $ac_word... " >&6; }
  35809. +if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
  35810. + $as_echo_n "(cached) " >&6
  35811. +else
  35812. + if test -n "$PTHREAD_CC"; then
  35813. + ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  35814. +else
  35815. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35816. +for as_dir in $PATH
  35817. +do
  35818. + IFS=$as_save_IFS
  35819. + test -z "$as_dir" && as_dir=.
  35820. + for ac_exec_ext in '' $ac_executable_extensions; do
  35821. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  35822. + ac_cv_prog_PTHREAD_CC="$ac_prog"
  35823. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  35824. + break 2
  35825. + fi
  35826. +done
  35827. + done
  35828. +IFS=$as_save_IFS
  35829. fi
  35830. +fi
  35831. +PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  35832. +if test -n "$PTHREAD_CC"; then
  35833. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  35834. +$as_echo "$PTHREAD_CC" >&6; }
  35835. +else
  35836. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  35837. +$as_echo "no" >&6; }
  35838. +fi
  35839. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35840. - conftest$ac_exeext conftest.$ac_ext
  35841. - if test "x$xt_have_speex" = "xyes"
  35842. - then
  35843. - cat >conftest.$ac_ext <<_ACEOF
  35844. -/* confdefs.h. */
  35845. -_ACEOF
  35846. -cat confdefs.h >>conftest.$ac_ext
  35847. -cat >>conftest.$ac_ext <<_ACEOF
  35848. -/* end confdefs.h. */
  35849. -#include <speex/speex_header.h>
  35850. -int
  35851. -main ()
  35852. -{
  35853. -void *p = speex_packet_to_header;
  35854. - ;
  35855. - return 0;
  35856. -}
  35857. -_ACEOF
  35858. -rm -f conftest.$ac_objext conftest$ac_exeext
  35859. -if { (ac_try="$ac_link"
  35860. -case "(($ac_try" in
  35861. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  35862. - *) ac_try_echo=$ac_try;;
  35863. -esac
  35864. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  35865. - (eval "$ac_link") 2>conftest.er1
  35866. - ac_status=$?
  35867. - grep -v '^ *+' conftest.er1 >conftest.err
  35868. - rm -f conftest.er1
  35869. - cat conftest.err >&5
  35870. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35871. - (exit $ac_status); } && {
  35872. - test -z "$ac_c_werror_flag" ||
  35873. - test ! -s conftest.err
  35874. - } && test -s conftest$ac_exeext &&
  35875. - $as_test_x conftest$ac_exeext; then
  35876. - :
  35877. +
  35878. + test -n "$PTHREAD_CC" && break
  35879. +done
  35880. +test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  35881. +
  35882. + else
  35883. + PTHREAD_CC=$CC
  35884. + fi
  35885. else
  35886. - echo "$as_me: failed program was:" >&5
  35887. -sed 's/^/| /' conftest.$ac_ext >&5
  35888. + PTHREAD_CC="$CC"
  35889. +fi
  35890. +
  35891. +
  35892. +
  35893. +
  35894. +
  35895. - xt_have_speex="no"
  35896. +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  35897. +if test x"$acx_pthread_ok" = xyes; then
  35898. +
  35899. +$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  35900. +
  35901. + :
  35902. +else
  35903. + acx_pthread_ok=no
  35904. + as_fn_error "POSIX threads missing" "$LINENO" 5
  35905. fi
  35906. +ac_ext=c
  35907. +ac_cpp='$CPP $CPPFLAGS'
  35908. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35909. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35910. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35911. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  35912. - conftest$ac_exeext conftest.$ac_ext
  35913. - fi
  35914. - LIBS="$xt_save_LIBS"
  35915. - LDFLAGS="$xt_save_LDFLAGS"
  35916. - if test "x$xt_have_speex" = "xyes"
  35917. +for arg in $PTHREAD_CFLAGS
  35918. +do
  35919. + if { cat <<EOF
  35920. + $XIPH_CFLAGS x
  35921. +EOF
  35922. +} | $FGREP -v -e " $arg " > /dev/null
  35923. then
  35924. - { echo "$as_me:$LINENO: result: ok" >&5
  35925. -echo "${ECHO_T}ok" >&6; }
  35926. -
  35927. -cat >>confdefs.h <<\_ACEOF
  35928. -#define HAVE_SPEEX 1
  35929. -_ACEOF
  35930. + XIPH_CFLAGS="$XIPH_CFLAGS $arg"
  35931. + fi
  35932. +done
  35933. -for arg in $SPEEX_CFLAGS
  35934. +for arg in $PTHREAD_CPPFLAGS
  35935. do
  35936. if { cat <<EOF
  35937. $XIPH_CPPFLAGS x
  35938. @@ -23192,7 +12800,7 @@
  35939. xt_compare="$XIPH_LIBS"
  35940. xt_filtered=""
  35941. -for arg in $SPEEX_LIBS
  35942. +for arg in $PTHREAD_LIBS
  35943. do
  35944. if { cat <<EOF
  35945. $xt_compare x
  35946. @@ -23206,2916 +12814,2711 @@
  35947. XIPH_LIBS="$xt_filtered $XIPH_LIBS"
  35948. -for arg in $SPEEX_LDFLAGS
  35949. +
  35950. +# Check whether --with-curl was given.
  35951. +if test "${with_curl+set}" = set; then :
  35952. + withval=$with_curl; curl_prefix="$withval"
  35953. +else
  35954. + curl_prefix="$CURL_PREFIX"
  35955. +fi
  35956. +
  35957. +
  35958. +if test "x$curl_prefix" = "xno"
  35959. +then
  35960. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: libcurl support disabled by request" >&5
  35961. +$as_echo "libcurl support disabled by request" >&6; }
  35962. +else
  35963. +
  35964. +
  35965. +# Check whether --with-curl-config was given.
  35966. +if test "${with_curl_config+set}" = set; then :
  35967. + withval=$with_curl_config; CURL_CONFIG="$withval"
  35968. +else
  35969. + for ac_prog in curl-config
  35970. do
  35971. - if { cat <<EOF
  35972. - $XIPH_LDFLAGS x
  35973. -EOF
  35974. -} | $FGREP -v -e " $arg " > /dev/null
  35975. - then
  35976. - XIPH_LDFLAGS="$XIPH_LDFLAGS $arg"
  35977. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  35978. +set dummy $ac_prog; ac_word=$2
  35979. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  35980. +$as_echo_n "checking for $ac_word... " >&6; }
  35981. +if test "${ac_cv_path_CURL_CONFIG+set}" = set; then :
  35982. + $as_echo_n "(cached) " >&6
  35983. +else
  35984. + case $CURL_CONFIG in
  35985. + [\\/]* | ?:[\\/]*)
  35986. + ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
  35987. + ;;
  35988. + *)
  35989. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  35990. +for as_dir in $PATH
  35991. +do
  35992. + IFS=$as_save_IFS
  35993. + test -z "$as_dir" && as_dir=.
  35994. + for ac_exec_ext in '' $ac_executable_extensions; do
  35995. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  35996. + ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  35997. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  35998. + break 2
  35999. fi
  36000. done
  36001. + done
  36002. +IFS=$as_save_IFS
  36003. - ICECAST_OPTIONAL="$ICECAST_OPTIONAL format_speex.o"
  36004. + ;;
  36005. +esac
  36006. +fi
  36007. +CURL_CONFIG=$ac_cv_path_CURL_CONFIG
  36008. +if test -n "$CURL_CONFIG"; then
  36009. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5
  36010. +$as_echo "$CURL_CONFIG" >&6; }
  36011. +else
  36012. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36013. +$as_echo "no" >&6; }
  36014. +fi
  36015. - else
  36016. - { echo "$as_me:$LINENO: WARNING: Speex support disabled!" >&5
  36017. -echo "$as_me: WARNING: Speex support disabled!" >&2;}
  36018. - SPEEX_CFLAGS=""
  36019. - SPEEX_LDFLAGS=""
  36020. - SPEEX_LIBS=""
  36021. - fi
  36022. + test -n "$CURL_CONFIG" && break
  36023. +done
  36024. +test -n "$CURL_CONFIG" || CURL_CONFIG=""""
  36025. +fi
  36026. +if test "x$curl_prefix" != "x" -a "x$curl_prefix" != "xyes"; then
  36027. + CURL_LIBS="-L$curl_prefix/lib -lcurl"
  36028. + CURL_CFLAGS="-I$curl_prefix/include"
  36029. +elif test "x$CURL_CONFIG" != "x"; then
  36030. + if ! test -x "$CURL_CONFIG"; then
  36031. + as_fn_error "$CURL_CONFIG cannot be executed" "$LINENO" 5
  36032. + fi
  36033. + CURL_LIBS="$($CURL_CONFIG --libs)"
  36034. + CURL_CFLAGS="$($CURL_CONFIG --cflags)"
  36035. +else
  36036. + if test "x$prefix" = "xNONE"; then
  36037. + curl_prefix="/usr/local"
  36038. + else
  36039. + curl_prefix="$prefix"
  36040. + fi
  36041. + CURL_LIBS="-L$curl_prefix/lib -lcurl"
  36042. + CURL_CFLAGS="-I$curl_prefix/include"
  36043. fi
  36044. +curl_ok="yes"
  36045. -{ echo "$as_me:$LINENO: checking for kate_decode_init in -lkate" >&5
  36046. -echo $ECHO_N "checking for kate_decode_init in -lkate... $ECHO_C" >&6; }
  36047. -if test "${ac_cv_lib_kate_kate_decode_init+set}" = set; then
  36048. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36049. -else
  36050. - ac_check_lib_save_LIBS=$LIBS
  36051. -LIBS="-lkate -logg $LIBS"
  36052. -cat >conftest.$ac_ext <<_ACEOF
  36053. -/* confdefs.h. */
  36054. +xt_curl_CPPFLAGS="$CPPFLAGS"
  36055. +xt_curl_LIBS="$LIBS"
  36056. +CPPFLAGS="$CPPFLAGS $CURL_CFLAGS"
  36057. +LIBS="$CURL_LIBS $LIBS"
  36058. +for ac_header in curl/curl.h
  36059. +do :
  36060. + ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
  36061. +if test "x$ac_cv_header_curl_curl_h" = x""yes; then :
  36062. + cat >>confdefs.h <<_ACEOF
  36063. +#define HAVE_CURL_CURL_H 1
  36064. _ACEOF
  36065. -cat confdefs.h >>conftest.$ac_ext
  36066. -cat >>conftest.$ac_ext <<_ACEOF
  36067. -/* end confdefs.h. */
  36068. -/* Override any GCC internal prototype to avoid an error.
  36069. - Use char because int might match the return type of a GCC
  36070. - builtin and then its argument prototype would still apply. */
  36071. -#ifdef __cplusplus
  36072. -extern "C"
  36073. -#endif
  36074. -char kate_decode_init ();
  36075. -int
  36076. -main ()
  36077. -{
  36078. -return kate_decode_init ();
  36079. - ;
  36080. - return 0;
  36081. -}
  36082. -_ACEOF
  36083. -rm -f conftest.$ac_objext conftest$ac_exeext
  36084. -if { (ac_try="$ac_link"
  36085. -case "(($ac_try" in
  36086. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36087. - *) ac_try_echo=$ac_try;;
  36088. -esac
  36089. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36090. - (eval "$ac_link") 2>conftest.er1
  36091. - ac_status=$?
  36092. - grep -v '^ *+' conftest.er1 >conftest.err
  36093. - rm -f conftest.er1
  36094. - cat conftest.err >&5
  36095. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36096. - (exit $ac_status); } && {
  36097. - test -z "$ac_c_werror_flag" ||
  36098. - test ! -s conftest.err
  36099. - } && test -s conftest$ac_exeext &&
  36100. - $as_test_x conftest$ac_exeext; then
  36101. - ac_cv_lib_kate_kate_decode_init=yes
  36102. else
  36103. - echo "$as_me: failed program was:" >&5
  36104. -sed 's/^/| /' conftest.$ac_ext >&5
  36105. -
  36106. - ac_cv_lib_kate_kate_decode_init=no
  36107. + curl_ok="no"
  36108. fi
  36109. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36110. - conftest$ac_exeext conftest.$ac_ext
  36111. -LIBS=$ac_check_lib_save_LIBS
  36112. -fi
  36113. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_kate_kate_decode_init" >&5
  36114. -echo "${ECHO_T}$ac_cv_lib_kate_kate_decode_init" >&6; }
  36115. -if test $ac_cv_lib_kate_kate_decode_init = yes; then
  36116. - have_kate=yes
  36117. -else
  36118. - have_kate=no
  36119. -fi
  36120. +done
  36121. -if test "x$have_kate" == "xyes"
  36122. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
  36123. +$as_echo_n "checking for libcurl... " >&6; }
  36124. +if test "$curl_ok" = "yes"
  36125. then
  36126. - { echo "$as_me:$LINENO: checking for kate_ogg_decode_headerin in -loggkate" >&5
  36127. -echo $ECHO_N "checking for kate_ogg_decode_headerin in -loggkate... $ECHO_C" >&6; }
  36128. -if test "${ac_cv_lib_oggkate_kate_ogg_decode_headerin+set}" = set; then
  36129. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36130. -else
  36131. - ac_check_lib_save_LIBS=$LIBS
  36132. -LIBS="-loggkate -lkate -logg $LIBS"
  36133. -cat >conftest.$ac_ext <<_ACEOF
  36134. -/* confdefs.h. */
  36135. -_ACEOF
  36136. -cat confdefs.h >>conftest.$ac_ext
  36137. -cat >>conftest.$ac_ext <<_ACEOF
  36138. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36139. /* end confdefs.h. */
  36140. -/* Override any GCC internal prototype to avoid an error.
  36141. - Use char because int might match the return type of a GCC
  36142. - builtin and then its argument prototype would still apply. */
  36143. -#ifdef __cplusplus
  36144. -extern "C"
  36145. -#endif
  36146. -char kate_ogg_decode_headerin ();
  36147. -int
  36148. -main ()
  36149. +#include <curl/curl.h>
  36150. +int main()
  36151. {
  36152. -return kate_ogg_decode_headerin ();
  36153. - ;
  36154. - return 0;
  36155. + return 0;
  36156. }
  36157. -_ACEOF
  36158. -rm -f conftest.$ac_objext conftest$ac_exeext
  36159. -if { (ac_try="$ac_link"
  36160. -case "(($ac_try" in
  36161. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36162. - *) ac_try_echo=$ac_try;;
  36163. -esac
  36164. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36165. - (eval "$ac_link") 2>conftest.er1
  36166. - ac_status=$?
  36167. - grep -v '^ *+' conftest.er1 >conftest.err
  36168. - rm -f conftest.er1
  36169. - cat conftest.err >&5
  36170. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36171. - (exit $ac_status); } && {
  36172. - test -z "$ac_c_werror_flag" ||
  36173. - test ! -s conftest.err
  36174. - } && test -s conftest$ac_exeext &&
  36175. - $as_test_x conftest$ac_exeext; then
  36176. - ac_cv_lib_oggkate_kate_ogg_decode_headerin=yes
  36177. -else
  36178. - echo "$as_me: failed program was:" >&5
  36179. -sed 's/^/| /' conftest.$ac_ext >&5
  36180. - ac_cv_lib_oggkate_kate_ogg_decode_headerin=no
  36181. -fi
  36182. +_ACEOF
  36183. +if ac_fn_c_try_link "$LINENO"; then :
  36184. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36185. - conftest$ac_exeext conftest.$ac_ext
  36186. -LIBS=$ac_check_lib_save_LIBS
  36187. -fi
  36188. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_oggkate_kate_ogg_decode_headerin" >&5
  36189. -echo "${ECHO_T}$ac_cv_lib_oggkate_kate_ogg_decode_headerin" >&6; }
  36190. -if test $ac_cv_lib_oggkate_kate_ogg_decode_headerin = yes; then
  36191. - have_kate=yes
  36192. else
  36193. - have_kate=no
  36194. + curl_ok="no"
  36195. fi
  36196. -
  36197. - if test "x$have_kate" == "xyes"
  36198. - then
  36199. - KATE_LIBS="-loggkate -lkate -logg"
  36200. -
  36201. -cat >>confdefs.h <<\_ACEOF
  36202. -#define HAVE_KATE 1
  36203. -_ACEOF
  36204. -
  36205. - fi
  36206. +rm -f core conftest.err conftest.$ac_objext \
  36207. + conftest$ac_exeext conftest.$ac_ext
  36208. fi
  36209. -#ICECAST_OPTIONAL="$ICECAST_OPTIONAL format_kate.o"
  36210. -
  36211. +if test "$curl_ok" = "yes"; then
  36212. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  36213. +$as_echo "yes" >&6; }
  36214. +$as_echo "#define HAVE_CURL 1" >>confdefs.h
  36215. -ac_ext=c
  36216. -ac_cpp='$CPP $CPPFLAGS'
  36217. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36218. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36219. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36220. + ac_fn_c_check_decl "$LINENO" "CURLOPT_NOSIGNAL" "ac_cv_have_decl_CURLOPT_NOSIGNAL" "#include <curl/curl.h>
  36221. -acx_pthread_ok=no
  36222. +"
  36223. +if test "x$ac_cv_have_decl_CURLOPT_NOSIGNAL" = x""yes; then :
  36224. -# We used to check for pthread.h first, but this fails if pthread.h
  36225. -# requires special compiler flags (e.g. on True64 or Sequent).
  36226. -# It gets checked for in the link test anyway.
  36227. +$as_echo "#define HAVE_AUTH_URL 1" >>confdefs.h
  36228. -# First of all, check if the user has set any of the PTHREAD_LIBS,
  36229. -# etcetera environment variables, and if threads linking works using
  36230. -# them:
  36231. -if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  36232. - save_CFLAGS="$CFLAGS"
  36233. - CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  36234. - save_LIBS="$LIBS"
  36235. - LIBS="$PTHREAD_LIBS $LIBS"
  36236. - { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  36237. -echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
  36238. - cat >conftest.$ac_ext <<_ACEOF
  36239. -/* confdefs.h. */
  36240. + for ac_func in curl_global_init
  36241. +do :
  36242. + ac_fn_c_check_func "$LINENO" "curl_global_init" "ac_cv_func_curl_global_init"
  36243. +if test "x$ac_cv_func_curl_global_init" = x""yes; then :
  36244. + cat >>confdefs.h <<_ACEOF
  36245. +#define HAVE_CURL_GLOBAL_INIT 1
  36246. _ACEOF
  36247. -cat confdefs.h >>conftest.$ac_ext
  36248. -cat >>conftest.$ac_ext <<_ACEOF
  36249. -/* end confdefs.h. */
  36250. -/* Override any GCC internal prototype to avoid an error.
  36251. - Use char because int might match the return type of a GCC
  36252. - builtin and then its argument prototype would still apply. */
  36253. -#ifdef __cplusplus
  36254. -extern "C"
  36255. -#endif
  36256. -char pthread_join ();
  36257. -int
  36258. -main ()
  36259. -{
  36260. -return pthread_join ();
  36261. - ;
  36262. - return 0;
  36263. -}
  36264. -_ACEOF
  36265. -rm -f conftest.$ac_objext conftest$ac_exeext
  36266. -if { (ac_try="$ac_link"
  36267. -case "(($ac_try" in
  36268. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36269. - *) ac_try_echo=$ac_try;;
  36270. -esac
  36271. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36272. - (eval "$ac_link") 2>conftest.er1
  36273. - ac_status=$?
  36274. - grep -v '^ *+' conftest.er1 >conftest.err
  36275. - rm -f conftest.er1
  36276. - cat conftest.err >&5
  36277. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36278. - (exit $ac_status); } && {
  36279. - test -z "$ac_c_werror_flag" ||
  36280. - test ! -s conftest.err
  36281. - } && test -s conftest$ac_exeext &&
  36282. - $as_test_x conftest$ac_exeext; then
  36283. - acx_pthread_ok=yes
  36284. -else
  36285. - echo "$as_me: failed program was:" >&5
  36286. -sed 's/^/| /' conftest.$ac_ext >&5
  36287. +fi
  36288. +done
  36289. +
  36290. + ICECAST_OPTIONAL="$ICECAST_OPTIONAL auth_url.o"
  36291. + enable_curl="yes"
  36292. +
  36293. +for arg in $CURL_CFLAGS
  36294. +do
  36295. + if { cat <<EOF
  36296. + $XIPH_CPPFLAGS x
  36297. +EOF
  36298. +} | $FGREP -v -e " $arg " > /dev/null
  36299. + then
  36300. + XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
  36301. + fi
  36302. +done
  36303. -fi
  36304. +xt_compare="$XIPH_LIBS"
  36305. +xt_filtered=""
  36306. +for arg in $CURL_LIBS
  36307. +do
  36308. + if { cat <<EOF
  36309. + $xt_compare x
  36310. +EOF
  36311. +} | $FGREP -v -e " $arg " > /dev/null
  36312. + then
  36313. + xt_compare="$arg $xt_compare"
  36314. + xt_filtered="$xt_filtered $arg"
  36315. + fi
  36316. +done
  36317. +XIPH_LIBS="$xt_filtered $XIPH_LIBS"
  36318. +
  36319. +
  36320. +else
  36321. + { $as_echo "$as_me:${as_lineno-$LINENO}: Your curl dev files are too old (7.10 or above required)" >&5
  36322. +$as_echo "$as_me: Your curl dev files are too old (7.10 or above required)" >&6;}
  36323. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36324. - conftest$ac_exeext conftest.$ac_ext
  36325. - { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  36326. -echo "${ECHO_T}$acx_pthread_ok" >&6; }
  36327. - if test x"$acx_pthread_ok" = xno; then
  36328. - PTHREAD_LIBS=""
  36329. - PTHREAD_CFLAGS=""
  36330. - fi
  36331. - LIBS="$save_LIBS"
  36332. - CFLAGS="$save_CFLAGS"
  36333. fi
  36334. -# We must check for the threads library under a number of different
  36335. -# names; the ordering is very important because some systems
  36336. -# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  36337. -# libraries is broken (non-POSIX).
  36338. -# Create a list of thread flags to try. Items starting with a "-" are
  36339. -# C compiler flags, and other items are library names, except for "none"
  36340. -# which indicates that we try without any flags at all, and "pthread-config"
  36341. -# which is a program returning the flags for the Pth emulation library.
  36342. +else
  36343. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36344. +$as_echo "no" >&6; }
  36345. + CURL_LIBS=""
  36346. + CURL_CFLAGS=""
  36347. + { $as_echo "$as_me:${as_lineno-$LINENO}: libcurl not found" >&5
  36348. +$as_echo "$as_me: libcurl not found" >&6;}
  36349. -acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  36350. +fi
  36351. +CPPFLAGS="$xt_curl_CPPFLAGS"
  36352. +LIBS="$xt_curl_LIBS"
  36353. +fi
  36354. -# The ordering *is* (sometimes) important. Some notes on the
  36355. -# individual items follow:
  36356. -# pthreads: AIX (must check this before -lpthread)
  36357. -# none: in case threads are in libc; should be tried before -Kthread and
  36358. -# other compiler flags to prevent continual compiler warnings
  36359. -# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  36360. -# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  36361. -# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  36362. -# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  36363. -# -pthreads: Solaris/gcc
  36364. -# -mthreads: Mingw32/gcc, Lynx/gcc
  36365. -# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  36366. -# doesn't hurt to check since this sometimes defines pthreads too;
  36367. -# also defines -D_REENTRANT)
  36368. -# ... -mt is also the pthreads flag for HP/aCC
  36369. -# pthread: Linux, etcetera
  36370. -# --thread-safe: KAI C++
  36371. -# pthread-config: use pthread-config program (for GNU Pth library)
  36372. -case "${host_cpu}-${host_os}" in
  36373. - *solaris*)
  36374. +# Check whether --enable-yp was given.
  36375. +if test "${enable_yp+set}" = set; then :
  36376. + enableval=$enable_yp; enable_yp="$enableval"
  36377. +else
  36378. + enable_yp="yes"
  36379. +fi
  36380. - # On Solaris (at least, for some versions), libc contains stubbed
  36381. - # (non-functional) versions of the pthreads routines, so link-based
  36382. - # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  36383. - # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  36384. - # a function called by this macro, so we could check for that, but
  36385. - # who knows whether they'll stub that too in a future libc.) So,
  36386. - # we'll just look for -pthreads and -lpthread first:
  36387. +if test "x$enable_yp" = "xyes" -a "x$enable_curl" = xyes
  36388. +then
  36389. - acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  36390. - ;;
  36391. -esac
  36392. +$as_echo "#define USE_YP 1" >>confdefs.h
  36393. -if test x"$acx_pthread_ok" = xno; then
  36394. -for flag in $acx_pthread_flags; do
  36395. + ICECAST_OPTIONAL="$ICECAST_OPTIONAL yp.o"
  36396. +else
  36397. + { $as_echo "$as_me:${as_lineno-$LINENO}: YP support disabled" >&5
  36398. +$as_echo "$as_me: YP support disabled" >&6;}
  36399. +fi
  36400. - case $flag in
  36401. - none)
  36402. - { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
  36403. -echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
  36404. - ;;
  36405. +# Check whether --with-openssl was given.
  36406. +if test "${with_openssl+set}" = set; then :
  36407. + withval=$with_openssl; openssl_prefix="$withval"
  36408. +else
  36409. + openssl_prefix=""
  36410. +fi
  36411. - -*)
  36412. - { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
  36413. -echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
  36414. - PTHREAD_CFLAGS="$flag"
  36415. - ;;
  36416. - pthread-config)
  36417. - # Extract the first word of "pthread-config", so it can be a program name with args.
  36418. -set dummy pthread-config; ac_word=$2
  36419. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  36420. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  36421. -if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
  36422. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36423. +if test "x$openssl_prefix" != "x" -a "x$openssl_prefix" != "xyes"; then
  36424. + OPENSSL_LIBS="-L$openssl_prefix/lib -lssl"
  36425. + OPENSSL_CFLAGS="-I$openssl_prefix/include"
  36426. else
  36427. - if test -n "$acx_pthread_config"; then
  36428. - ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  36429. + # Extract the first word of "pkg-config", so it can be a program name with args.
  36430. +set dummy pkg-config; ac_word=$2
  36431. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  36432. +$as_echo_n "checking for $ac_word... " >&6; }
  36433. +if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
  36434. + $as_echo_n "(cached) " >&6
  36435. else
  36436. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36437. + case $PKGCONFIG in
  36438. + [\\/]* | ?:[\\/]*)
  36439. + ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  36440. + ;;
  36441. + *)
  36442. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36443. for as_dir in $PATH
  36444. do
  36445. IFS=$as_save_IFS
  36446. test -z "$as_dir" && as_dir=.
  36447. - for ac_exec_ext in '' $ac_executable_extensions; do
  36448. + for ac_exec_ext in '' $ac_executable_extensions; do
  36449. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36450. - ac_cv_prog_acx_pthread_config="yes"
  36451. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  36452. + ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  36453. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  36454. break 2
  36455. fi
  36456. done
  36457. -done
  36458. + done
  36459. IFS=$as_save_IFS
  36460. - test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  36461. -fi
  36462. + test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
  36463. + ;;
  36464. +esac
  36465. fi
  36466. -acx_pthread_config=$ac_cv_prog_acx_pthread_config
  36467. -if test -n "$acx_pthread_config"; then
  36468. - { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
  36469. -echo "${ECHO_T}$acx_pthread_config" >&6; }
  36470. +PKGCONFIG=$ac_cv_path_PKGCONFIG
  36471. +if test -n "$PKGCONFIG"; then
  36472. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  36473. +$as_echo "$PKGCONFIG" >&6; }
  36474. else
  36475. - { echo "$as_me:$LINENO: result: no" >&5
  36476. -echo "${ECHO_T}no" >&6; }
  36477. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  36478. +$as_echo "no" >&6; }
  36479. fi
  36480. - if test x"$acx_pthread_config" = xno; then continue; fi
  36481. - PTHREAD_CFLAGS="`pthread-config --cflags`"
  36482. - PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  36483. - ;;
  36484. -
  36485. - *)
  36486. - { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
  36487. -echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
  36488. - PTHREAD_LIBS="-l$flag"
  36489. - ;;
  36490. - esac
  36491. -
  36492. - save_LIBS="$LIBS"
  36493. - save_CFLAGS="$CFLAGS"
  36494. - LIBS="$PTHREAD_LIBS $LIBS"
  36495. - CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  36496. + if test "$PKGCONFIG" != "no" && `$PKGCONFIG --exists openssl`; then
  36497. + OPENSSL_CFLAGS=`$PKGCONFIG --cflags openssl`
  36498. + OPENSSL_LIBS=`$PKGCONFIG --libs openssl`
  36499. + else
  36500. + if test "x$prefix" = "xNONE"; then
  36501. + openssl_prefix="/usr/local"
  36502. + else
  36503. + openssl_prefix="$prefix"
  36504. + fi
  36505. + OPENSSL_LIBS="-L$openssl_prefix/lib -lssl"
  36506. + OPENSSL_CFLAGS="-I$openssl_prefix/include"
  36507. + fi
  36508. +fi
  36509. - # Check for various functions. We must include pthread.h,
  36510. - # since some functions may be macros. (On the Sequent, we
  36511. - # need a special flag -Kthread to make this header compile.)
  36512. - # We check for pthread_join because it is in -lpthread on IRIX
  36513. - # while pthread_create is in libc. We check for pthread_attr_init
  36514. - # due to DEC craziness with -lpthreads. We check for
  36515. - # pthread_cleanup_push because it is one of the few pthread
  36516. - # functions on Solaris that doesn't have a non-functional libc stub.
  36517. - # We try pthread_create on general principles.
  36518. - cat >conftest.$ac_ext <<_ACEOF
  36519. -/* confdefs.h. */
  36520. -_ACEOF
  36521. -cat confdefs.h >>conftest.$ac_ext
  36522. -cat >>conftest.$ac_ext <<_ACEOF
  36523. +# Now try linking to openssl
  36524. +xt_save_CFLAGS="$CFLAGS"
  36525. +xt_save_LIBS="$LIBS"
  36526. +CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
  36527. +LIBS="$OPENSSL_LIBS $LIBS"
  36528. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36529. /* end confdefs.h. */
  36530. -#include <pthread.h>
  36531. +#include <openssl/ssl.h>
  36532. int
  36533. main ()
  36534. {
  36535. -pthread_t th; pthread_join(th, 0);
  36536. - pthread_attr_init(0); pthread_cleanup_push(0, 0);
  36537. - pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  36538. +void *a = SSL_new
  36539. ;
  36540. return 0;
  36541. }
  36542. _ACEOF
  36543. -rm -f conftest.$ac_objext conftest$ac_exeext
  36544. -if { (ac_try="$ac_link"
  36545. -case "(($ac_try" in
  36546. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36547. - *) ac_try_echo=$ac_try;;
  36548. -esac
  36549. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36550. - (eval "$ac_link") 2>conftest.er1
  36551. - ac_status=$?
  36552. - grep -v '^ *+' conftest.er1 >conftest.err
  36553. - rm -f conftest.er1
  36554. - cat conftest.err >&5
  36555. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36556. - (exit $ac_status); } && {
  36557. - test -z "$ac_c_werror_flag" ||
  36558. - test ! -s conftest.err
  36559. - } && test -s conftest$ac_exeext &&
  36560. - $as_test_x conftest$ac_exeext; then
  36561. - acx_pthread_ok=yes
  36562. -else
  36563. - echo "$as_me: failed program was:" >&5
  36564. -sed 's/^/| /' conftest.$ac_ext >&5
  36565. +if ac_fn_c_try_link "$LINENO"; then :
  36566. + openssl_ok='yes'
  36567. +fi
  36568. +rm -f core conftest.err conftest.$ac_objext \
  36569. + conftest$ac_exeext conftest.$ac_ext
  36570. +CFLAGS="$xt_save_CFLAGS"
  36571. +LIBS="$xt_save_LIBS"
  36572. +if test "$openssl_ok" = "yes"; then
  36573. -fi
  36574. +$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
  36575. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36576. - conftest$ac_exeext conftest.$ac_ext
  36577. - LIBS="$save_LIBS"
  36578. - CFLAGS="$save_CFLAGS"
  36579. - { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  36580. -echo "${ECHO_T}$acx_pthread_ok" >&6; }
  36581. - if test "x$acx_pthread_ok" = xyes; then
  36582. - break;
  36583. - fi
  36584. +for arg in $OPENSSL_CFLAGS
  36585. +do
  36586. + if { cat <<EOF
  36587. + $XIPH_CPPFLAGS x
  36588. +EOF
  36589. +} | $FGREP -v -e " $arg " > /dev/null
  36590. + then
  36591. + XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
  36592. + fi
  36593. +done
  36594. - PTHREAD_LIBS=""
  36595. - PTHREAD_CFLAGS=""
  36596. +
  36597. +for arg in $OPENSSL_LDFLAGS
  36598. +do
  36599. + if { cat <<EOF
  36600. + $XIPH_LDFLAGS x
  36601. +EOF
  36602. +} | $FGREP -v -e " $arg " > /dev/null
  36603. + then
  36604. + XIPH_LDFLAGS="$XIPH_LDFLAGS $arg"
  36605. + fi
  36606. done
  36607. -fi
  36608. -# Various other checks:
  36609. -if test "x$acx_pthread_ok" = xyes; then
  36610. - save_LIBS="$LIBS"
  36611. - LIBS="$PTHREAD_LIBS $LIBS"
  36612. - save_CFLAGS="$CFLAGS"
  36613. - CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  36614. - # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  36615. - { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
  36616. -echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
  36617. - attr_name=unknown
  36618. - for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  36619. - cat >conftest.$ac_ext <<_ACEOF
  36620. -/* confdefs.h. */
  36621. -_ACEOF
  36622. -cat confdefs.h >>conftest.$ac_ext
  36623. -cat >>conftest.$ac_ext <<_ACEOF
  36624. -/* end confdefs.h. */
  36625. -#include <pthread.h>
  36626. -int
  36627. -main ()
  36628. -{
  36629. -int attr=$attr; return attr;
  36630. - ;
  36631. - return 0;
  36632. -}
  36633. -_ACEOF
  36634. -rm -f conftest.$ac_objext conftest$ac_exeext
  36635. -if { (ac_try="$ac_link"
  36636. -case "(($ac_try" in
  36637. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36638. - *) ac_try_echo=$ac_try;;
  36639. -esac
  36640. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36641. - (eval "$ac_link") 2>conftest.er1
  36642. - ac_status=$?
  36643. - grep -v '^ *+' conftest.er1 >conftest.err
  36644. - rm -f conftest.er1
  36645. - cat conftest.err >&5
  36646. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36647. - (exit $ac_status); } && {
  36648. - test -z "$ac_c_werror_flag" ||
  36649. - test ! -s conftest.err
  36650. - } && test -s conftest$ac_exeext &&
  36651. - $as_test_x conftest$ac_exeext; then
  36652. - attr_name=$attr; break
  36653. -else
  36654. - echo "$as_me: failed program was:" >&5
  36655. -sed 's/^/| /' conftest.$ac_ext >&5
  36656. +xt_compare="$XIPH_LIBS"
  36657. +xt_filtered=""
  36658. +for arg in $OPENSSL_LIBS
  36659. +do
  36660. + if { cat <<EOF
  36661. + $xt_compare x
  36662. +EOF
  36663. +} | $FGREP -v -e " $arg " > /dev/null
  36664. + then
  36665. + xt_compare="$arg $xt_compare"
  36666. + xt_filtered="$xt_filtered $arg"
  36667. + fi
  36668. +done
  36669. +XIPH_LIBS="$xt_filtered $XIPH_LIBS"
  36670. +
  36671. +else
  36672. + OPENSSL_LIBS=""
  36673. + OPENSSL_CFLAGS=""
  36674. + { $as_echo "$as_me:${as_lineno-$LINENO}: SSL disabled!" >&5
  36675. +$as_echo "$as_me: SSL disabled!" >&6;}
  36676. fi
  36677. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36678. - conftest$ac_exeext conftest.$ac_ext
  36679. - done
  36680. - { echo "$as_me:$LINENO: result: $attr_name" >&5
  36681. -echo "${ECHO_T}$attr_name" >&6; }
  36682. - if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  36683. -cat >>confdefs.h <<_ACEOF
  36684. -#define PTHREAD_CREATE_JOINABLE $attr_name
  36685. -_ACEOF
  36686. - fi
  36687. - { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
  36688. -echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
  36689. - flag=no
  36690. - case "${host_cpu}-${host_os}" in
  36691. - *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  36692. - *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  36693. - esac
  36694. - { echo "$as_me:$LINENO: result: ${flag}" >&5
  36695. -echo "${ECHO_T}${flag}" >&6; }
  36696. - if test "x$flag" != xno; then
  36697. - PTHREAD_CPPFLAGS="$flag $PTHREAD_CPPFLAGS"
  36698. - fi
  36699. -for ac_func in pthread_spin_lock
  36700. -do
  36701. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  36702. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  36703. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  36704. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  36705. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36706. -else
  36707. - cat >conftest.$ac_ext <<_ACEOF
  36708. -/* confdefs.h. */
  36709. -_ACEOF
  36710. -cat confdefs.h >>conftest.$ac_ext
  36711. -cat >>conftest.$ac_ext <<_ACEOF
  36712. -/* end confdefs.h. */
  36713. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  36714. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  36715. -#define $ac_func innocuous_$ac_func
  36716. -/* System header to define __stub macros and hopefully few prototypes,
  36717. - which can conflict with char $ac_func (); below.
  36718. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  36719. - <limits.h> exists even on freestanding compilers. */
  36720. -#ifdef __STDC__
  36721. -# include <limits.h>
  36722. -#else
  36723. -# include <assert.h>
  36724. -#endif
  36725. -#undef $ac_func
  36726. -/* Override any GCC internal prototype to avoid an error.
  36727. - Use char because int might match the return type of a GCC
  36728. - builtin and then its argument prototype would still apply. */
  36729. -#ifdef __cplusplus
  36730. -extern "C"
  36731. -#endif
  36732. -char $ac_func ();
  36733. -/* The GNU C library defines this for functions which it implements
  36734. - to always fail with ENOSYS. Some functions are actually named
  36735. - something starting with __ and the normal name is an alias. */
  36736. -#if defined __stub_$ac_func || defined __stub___$ac_func
  36737. -choke me
  36738. -#endif
  36739. -int
  36740. -main ()
  36741. -{
  36742. -return $ac_func ();
  36743. - ;
  36744. - return 0;
  36745. -}
  36746. -_ACEOF
  36747. -rm -f conftest.$ac_objext conftest$ac_exeext
  36748. -if { (ac_try="$ac_link"
  36749. -case "(($ac_try" in
  36750. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  36751. - *) ac_try_echo=$ac_try;;
  36752. -esac
  36753. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  36754. - (eval "$ac_link") 2>conftest.er1
  36755. - ac_status=$?
  36756. - grep -v '^ *+' conftest.er1 >conftest.err
  36757. - rm -f conftest.er1
  36758. - cat conftest.err >&5
  36759. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36760. - (exit $ac_status); } && {
  36761. - test -z "$ac_c_werror_flag" ||
  36762. - test ! -s conftest.err
  36763. - } && test -s conftest$ac_exeext &&
  36764. - $as_test_x conftest$ac_exeext; then
  36765. - eval "$as_ac_var=yes"
  36766. -else
  36767. - echo "$as_me: failed program was:" >&5
  36768. -sed 's/^/| /' conftest.$ac_ext >&5
  36769. - eval "$as_ac_var=no"
  36770. -fi
  36771. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  36772. - conftest$ac_exeext conftest.$ac_ext
  36773. -fi
  36774. -ac_res=`eval echo '${'$as_ac_var'}'`
  36775. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  36776. -echo "${ECHO_T}$ac_res" >&6; }
  36777. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  36778. - cat >>confdefs.h <<_ACEOF
  36779. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  36780. +
  36781. +
  36782. +
  36783. +
  36784. +
  36785. +
  36786. +ac_config_files="$ac_config_files Makefile conf/Makefile debian/Makefile src/Makefile src/avl/Makefile src/httpp/Makefile src/thread/Makefile src/log/Makefile src/net/Makefile src/timing/Makefile doc/Makefile web/Makefile admin/Makefile win32/Makefile win32/res/Makefile examples/Makefile"
  36787. +
  36788. +cat >confcache <<\_ACEOF
  36789. +# This file is a shell script that caches the results of configure
  36790. +# tests run on this system so they can be shared between configure
  36791. +# scripts and configure runs, see configure's option --config-cache.
  36792. +# It is not useful on other systems. If it contains results you don't
  36793. +# want to keep, you may remove or edit it.
  36794. +#
  36795. +# config.status only pays attention to the cache file if you give it
  36796. +# the --recheck option to rerun configure.
  36797. +#
  36798. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  36799. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  36800. +# following values.
  36801. +
  36802. _ACEOF
  36803. +# The following way of writing the cache mishandles newlines in values,
  36804. +# but we know of no workaround that is simple, portable, and efficient.
  36805. +# So, we kill variables containing newlines.
  36806. +# Ultrix sh set writes to stderr and can't be redirected directly,
  36807. +# and sets the high bit in the cache file unless we assign to the vars.
  36808. +(
  36809. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  36810. + eval ac_val=\$$ac_var
  36811. + case $ac_val in #(
  36812. + *${as_nl}*)
  36813. + case $ac_var in #(
  36814. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  36815. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  36816. + esac
  36817. + case $ac_var in #(
  36818. + _ | IFS | as_nl) ;; #(
  36819. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  36820. + *) { eval $ac_var=; unset $ac_var;} ;;
  36821. + esac ;;
  36822. + esac
  36823. + done
  36824. +
  36825. + (set) 2>&1 |
  36826. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  36827. + *${as_nl}ac_space=\ *)
  36828. + # `set' does not quote correctly, so add quotes: double-quote
  36829. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  36830. + sed -n \
  36831. + "s/'/'\\\\''/g;
  36832. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  36833. + ;; #(
  36834. + *)
  36835. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  36836. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  36837. + ;;
  36838. + esac |
  36839. + sort
  36840. +) |
  36841. + sed '
  36842. + /^ac_cv_env_/b end
  36843. + t clear
  36844. + :clear
  36845. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  36846. + t end
  36847. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  36848. + :end' >>confcache
  36849. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  36850. + if test -w "$cache_file"; then
  36851. + test "x$cache_file" != "x/dev/null" &&
  36852. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  36853. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  36854. + cat confcache >$cache_file
  36855. + else
  36856. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  36857. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  36858. + fi
  36859. fi
  36860. +rm -f confcache
  36861. +
  36862. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  36863. +# Let make expand exec_prefix.
  36864. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  36865. +
  36866. +DEFS=-DHAVE_CONFIG_H
  36867. +
  36868. +ac_libobjs=
  36869. +ac_ltlibobjs=
  36870. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  36871. + # 1. Remove the extension, and $U if already installed.
  36872. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  36873. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  36874. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  36875. + # will be set to the directory where LIBOBJS objects are built.
  36876. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  36877. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  36878. done
  36879. +LIBOBJS=$ac_libobjs
  36880. - LIBS="$save_LIBS"
  36881. - CFLAGS="$save_CFLAGS"
  36882. +LTLIBOBJS=$ac_ltlibobjs
  36883. - # More AIX lossage: must compile with xlc_r or cc_r
  36884. - if test x"$GCC" != xyes; then
  36885. - for ac_prog in xlc_r cc_r
  36886. -do
  36887. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  36888. -set dummy $ac_prog; ac_word=$2
  36889. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  36890. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  36891. -if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
  36892. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36893. -else
  36894. - if test -n "$PTHREAD_CC"; then
  36895. - ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  36896. +
  36897. + if test -n "$EXEEXT"; then
  36898. + am__EXEEXT_TRUE=
  36899. + am__EXEEXT_FALSE='#'
  36900. else
  36901. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  36902. -for as_dir in $PATH
  36903. -do
  36904. - IFS=$as_save_IFS
  36905. - test -z "$as_dir" && as_dir=.
  36906. - for ac_exec_ext in '' $ac_executable_extensions; do
  36907. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  36908. - ac_cv_prog_PTHREAD_CC="$ac_prog"
  36909. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  36910. - break 2
  36911. - fi
  36912. -done
  36913. -done
  36914. -IFS=$as_save_IFS
  36915. + am__EXEEXT_TRUE='#'
  36916. + am__EXEEXT_FALSE=
  36917. +fi
  36918. +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  36919. + as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  36920. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  36921. fi
  36922. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  36923. + as_fn_error "conditional \"AMDEP\" was never defined.
  36924. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  36925. fi
  36926. -PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  36927. -if test -n "$PTHREAD_CC"; then
  36928. - { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
  36929. -echo "${ECHO_T}$PTHREAD_CC" >&6; }
  36930. -else
  36931. - { echo "$as_me:$LINENO: result: no" >&5
  36932. -echo "${ECHO_T}no" >&6; }
  36933. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  36934. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  36935. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  36936. fi
  36937. +: ${CONFIG_STATUS=./config.status}
  36938. +ac_write_fail=0
  36939. +ac_clean_files_save=$ac_clean_files
  36940. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  36941. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  36942. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  36943. +as_write_fail=0
  36944. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  36945. +#! $SHELL
  36946. +# Generated by $as_me.
  36947. +# Run this file to recreate the current configuration.
  36948. +# Compiler output produced by configure, useful for debugging
  36949. +# configure, is in config.log if it exists.
  36950. +
  36951. +debug=false
  36952. +ac_cs_recheck=false
  36953. +ac_cs_silent=false
  36954. - test -n "$PTHREAD_CC" && break
  36955. -done
  36956. -test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  36957. +SHELL=\${CONFIG_SHELL-$SHELL}
  36958. +export SHELL
  36959. +_ASEOF
  36960. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  36961. +## -------------------- ##
  36962. +## M4sh Initialization. ##
  36963. +## -------------------- ##
  36964. - else
  36965. - PTHREAD_CC=$CC
  36966. - fi
  36967. +# Be more Bourne compatible
  36968. +DUALCASE=1; export DUALCASE # for MKS sh
  36969. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  36970. + emulate sh
  36971. + NULLCMD=:
  36972. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  36973. + # is contrary to our usage. Disable this feature.
  36974. + alias -g '${1+"$@"}'='"$@"'
  36975. + setopt NO_GLOB_SUBST
  36976. else
  36977. - PTHREAD_CC="$CC"
  36978. + case `(set -o) 2>/dev/null` in #(
  36979. + *posix*) :
  36980. + set -o posix ;; #(
  36981. + *) :
  36982. + ;;
  36983. +esac
  36984. fi
  36985. +as_nl='
  36986. +'
  36987. +export as_nl
  36988. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  36989. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36990. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  36991. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  36992. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  36993. +# but without wasting forks for bash or zsh.
  36994. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  36995. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  36996. + as_echo='print -r --'
  36997. + as_echo_n='print -rn --'
  36998. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  36999. + as_echo='printf %s\n'
  37000. + as_echo_n='printf %s'
  37001. +else
  37002. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  37003. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  37004. + as_echo_n='/usr/ucb/echo -n'
  37005. + else
  37006. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  37007. + as_echo_n_body='eval
  37008. + arg=$1;
  37009. + case $arg in #(
  37010. + *"$as_nl"*)
  37011. + expr "X$arg" : "X\\(.*\\)$as_nl";
  37012. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  37013. + esac;
  37014. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  37015. + '
  37016. + export as_echo_n_body
  37017. + as_echo_n='sh -c $as_echo_n_body as_echo'
  37018. + fi
  37019. + export as_echo_body
  37020. + as_echo='sh -c $as_echo_body as_echo'
  37021. +fi
  37022. +# The user is always right.
  37023. +if test "${PATH_SEPARATOR+set}" != set; then
  37024. + PATH_SEPARATOR=:
  37025. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  37026. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  37027. + PATH_SEPARATOR=';'
  37028. + }
  37029. +fi
  37030. +# IFS
  37031. +# We need space, tab and new line, in precisely that order. Quoting is
  37032. +# there to prevent editors from complaining about space-tab.
  37033. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  37034. +# splitting by setting IFS to empty value.)
  37035. +IFS=" "" $as_nl"
  37036. -# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  37037. -if test x"$acx_pthread_ok" = xyes; then
  37038. -
  37039. -cat >>confdefs.h <<\_ACEOF
  37040. -#define HAVE_PTHREAD 1
  37041. -_ACEOF
  37042. -
  37043. - :
  37044. -else
  37045. - acx_pthread_ok=no
  37046. - { { echo "$as_me:$LINENO: error: POSIX threads missing" >&5
  37047. -echo "$as_me: error: POSIX threads missing" >&2;}
  37048. - { (exit 1); exit 1; }; }
  37049. -fi
  37050. -ac_ext=c
  37051. -ac_cpp='$CPP $CPPFLAGS'
  37052. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37053. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37054. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37055. -
  37056. +# Find who we are. Look in the path if we contain no directory separator.
  37057. +case $0 in #((
  37058. + *[\\/]* ) as_myself=$0 ;;
  37059. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37060. +for as_dir in $PATH
  37061. +do
  37062. + IFS=$as_save_IFS
  37063. + test -z "$as_dir" && as_dir=.
  37064. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  37065. + done
  37066. +IFS=$as_save_IFS
  37067. + ;;
  37068. +esac
  37069. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  37070. +# in which case we are not to be found in the path.
  37071. +if test "x$as_myself" = x; then
  37072. + as_myself=$0
  37073. +fi
  37074. +if test ! -f "$as_myself"; then
  37075. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  37076. + exit 1
  37077. +fi
  37078. -for arg in $PTHREAD_CFLAGS
  37079. -do
  37080. - if { cat <<EOF
  37081. - $XIPH_CFLAGS x
  37082. -EOF
  37083. -} | $FGREP -v -e " $arg " > /dev/null
  37084. - then
  37085. - XIPH_CFLAGS="$XIPH_CFLAGS $arg"
  37086. - fi
  37087. +# Unset variables that we do not need and which cause bugs (e.g. in
  37088. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  37089. +# suppresses any "Segmentation fault" message there. '((' could
  37090. +# trigger a bug in pdksh 5.2.14.
  37091. +for as_var in BASH_ENV ENV MAIL MAILPATH
  37092. +do eval test x\${$as_var+set} = xset \
  37093. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  37094. done
  37095. +PS1='$ '
  37096. +PS2='> '
  37097. +PS4='+ '
  37098. +# NLS nuisances.
  37099. +LC_ALL=C
  37100. +export LC_ALL
  37101. +LANGUAGE=C
  37102. +export LANGUAGE
  37103. -for arg in $PTHREAD_CPPFLAGS
  37104. -do
  37105. - if { cat <<EOF
  37106. - $XIPH_CPPFLAGS x
  37107. -EOF
  37108. -} | $FGREP -v -e " $arg " > /dev/null
  37109. - then
  37110. - XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
  37111. - fi
  37112. -done
  37113. +# CDPATH.
  37114. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  37115. -xt_compare="$XIPH_LIBS"
  37116. -xt_filtered=""
  37117. -for arg in $PTHREAD_LIBS
  37118. -do
  37119. - if { cat <<EOF
  37120. - $xt_compare x
  37121. -EOF
  37122. -} | $FGREP -v -e " $arg " > /dev/null
  37123. - then
  37124. - xt_compare="$arg $xt_compare"
  37125. - xt_filtered="$xt_filtered $arg"
  37126. - fi
  37127. -done
  37128. -XIPH_LIBS="$xt_filtered $XIPH_LIBS"
  37129. +# as_fn_error ERROR [LINENO LOG_FD]
  37130. +# ---------------------------------
  37131. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  37132. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  37133. +# script with status $?, using 1 if that was 0.
  37134. +as_fn_error ()
  37135. +{
  37136. + as_status=$?; test $as_status -eq 0 && as_status=1
  37137. + if test "$3"; then
  37138. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  37139. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  37140. + fi
  37141. + $as_echo "$as_me: error: $1" >&2
  37142. + as_fn_exit $as_status
  37143. +} # as_fn_error
  37144. +
  37145. +
  37146. +# as_fn_set_status STATUS
  37147. +# -----------------------
  37148. +# Set $? to STATUS, without forking.
  37149. +as_fn_set_status ()
  37150. +{
  37151. + return $1
  37152. +} # as_fn_set_status
  37153. +
  37154. +# as_fn_exit STATUS
  37155. +# -----------------
  37156. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  37157. +as_fn_exit ()
  37158. +{
  37159. + set +e
  37160. + as_fn_set_status $1
  37161. + exit $1
  37162. +} # as_fn_exit
  37163. +
  37164. +# as_fn_unset VAR
  37165. +# ---------------
  37166. +# Portably unset VAR.
  37167. +as_fn_unset ()
  37168. +{
  37169. + { eval $1=; unset $1;}
  37170. +}
  37171. +as_unset=as_fn_unset
  37172. +# as_fn_append VAR VALUE
  37173. +# ----------------------
  37174. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  37175. +# advantage of any shell optimizations that allow amortized linear growth over
  37176. +# repeated appends, instead of the typical quadratic growth present in naive
  37177. +# implementations.
  37178. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  37179. + eval 'as_fn_append ()
  37180. + {
  37181. + eval $1+=\$2
  37182. + }'
  37183. +else
  37184. + as_fn_append ()
  37185. + {
  37186. + eval $1=\$$1\$2
  37187. + }
  37188. +fi # as_fn_append
  37189. +# as_fn_arith ARG...
  37190. +# ------------------
  37191. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  37192. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  37193. +# must be portable across $(()) and expr.
  37194. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  37195. + eval 'as_fn_arith ()
  37196. + {
  37197. + as_val=$(( $* ))
  37198. + }'
  37199. +else
  37200. + as_fn_arith ()
  37201. + {
  37202. + as_val=`expr "$@" || test $? -eq 1`
  37203. + }
  37204. +fi # as_fn_arith
  37205. -# Check whether --with-curl was given.
  37206. -if test "${with_curl+set}" = set; then
  37207. - withval=$with_curl; curl_prefix="$withval"
  37208. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  37209. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  37210. + as_expr=expr
  37211. else
  37212. - curl_prefix="$CURL_PREFIX"
  37213. + as_expr=false
  37214. fi
  37215. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  37216. + as_basename=basename
  37217. +else
  37218. + as_basename=false
  37219. +fi
  37220. -if test "x$curl_prefix" = "xno"
  37221. -then
  37222. - { echo "$as_me:$LINENO: result: libcurl support disabled by request" >&5
  37223. -echo "${ECHO_T}libcurl support disabled by request" >&6; }
  37224. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  37225. + as_dirname=dirname
  37226. else
  37227. + as_dirname=false
  37228. +fi
  37229. +as_me=`$as_basename -- "$0" ||
  37230. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  37231. + X"$0" : 'X\(//\)$' \| \
  37232. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  37233. +$as_echo X/"$0" |
  37234. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  37235. + s//\1/
  37236. + q
  37237. + }
  37238. + /^X\/\(\/\/\)$/{
  37239. + s//\1/
  37240. + q
  37241. + }
  37242. + /^X\/\(\/\).*/{
  37243. + s//\1/
  37244. + q
  37245. + }
  37246. + s/.*/./; q'`
  37247. -# Check whether --with-curl-config was given.
  37248. -if test "${with_curl_config+set}" = set; then
  37249. - withval=$with_curl_config; CURL_CONFIG="$withval"
  37250. -else
  37251. - for ac_prog in curl-config
  37252. -do
  37253. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  37254. -set dummy $ac_prog; ac_word=$2
  37255. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  37256. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  37257. -if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
  37258. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37259. -else
  37260. - case $CURL_CONFIG in
  37261. - [\\/]* | ?:[\\/]*)
  37262. - ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
  37263. - ;;
  37264. - *)
  37265. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  37266. -for as_dir in $PATH
  37267. -do
  37268. - IFS=$as_save_IFS
  37269. - test -z "$as_dir" && as_dir=.
  37270. - for ac_exec_ext in '' $ac_executable_extensions; do
  37271. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  37272. - ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  37273. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  37274. - break 2
  37275. - fi
  37276. -done
  37277. -done
  37278. -IFS=$as_save_IFS
  37279. +# Avoid depending upon Character Ranges.
  37280. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  37281. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  37282. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  37283. +as_cr_digits='0123456789'
  37284. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  37285. - ;;
  37286. +ECHO_C= ECHO_N= ECHO_T=
  37287. +case `echo -n x` in #(((((
  37288. +-n*)
  37289. + case `echo 'xy\c'` in
  37290. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  37291. + xy) ECHO_C='\c';;
  37292. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  37293. + ECHO_T=' ';;
  37294. + esac;;
  37295. +*)
  37296. + ECHO_N='-n';;
  37297. esac
  37298. +
  37299. +rm -f conf$$ conf$$.exe conf$$.file
  37300. +if test -d conf$$.dir; then
  37301. + rm -f conf$$.dir/conf$$.file
  37302. +else
  37303. + rm -f conf$$.dir
  37304. + mkdir conf$$.dir 2>/dev/null
  37305. fi
  37306. -CURL_CONFIG=$ac_cv_path_CURL_CONFIG
  37307. -if test -n "$CURL_CONFIG"; then
  37308. - { echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
  37309. -echo "${ECHO_T}$CURL_CONFIG" >&6; }
  37310. +if (echo >conf$$.file) 2>/dev/null; then
  37311. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  37312. + as_ln_s='ln -s'
  37313. + # ... but there are two gotchas:
  37314. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  37315. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  37316. + # In both cases, we have to default to `cp -p'.
  37317. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  37318. + as_ln_s='cp -p'
  37319. + elif ln conf$$.file conf$$ 2>/dev/null; then
  37320. + as_ln_s=ln
  37321. + else
  37322. + as_ln_s='cp -p'
  37323. + fi
  37324. else
  37325. - { echo "$as_me:$LINENO: result: no" >&5
  37326. -echo "${ECHO_T}no" >&6; }
  37327. + as_ln_s='cp -p'
  37328. fi
  37329. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  37330. +rmdir conf$$.dir 2>/dev/null
  37331. - test -n "$CURL_CONFIG" && break
  37332. -done
  37333. -test -n "$CURL_CONFIG" || CURL_CONFIG=""""
  37334. +# as_fn_mkdir_p
  37335. +# -------------
  37336. +# Create "$as_dir" as a directory, including parents if necessary.
  37337. +as_fn_mkdir_p ()
  37338. +{
  37339. -fi
  37340. + case $as_dir in #(
  37341. + -*) as_dir=./$as_dir;;
  37342. + esac
  37343. + test -d "$as_dir" || eval $as_mkdir_p || {
  37344. + as_dirs=
  37345. + while :; do
  37346. + case $as_dir in #(
  37347. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  37348. + *) as_qdir=$as_dir;;
  37349. + esac
  37350. + as_dirs="'$as_qdir' $as_dirs"
  37351. + as_dir=`$as_dirname -- "$as_dir" ||
  37352. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  37353. + X"$as_dir" : 'X\(//\)[^/]' \| \
  37354. + X"$as_dir" : 'X\(//\)$' \| \
  37355. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  37356. +$as_echo X"$as_dir" |
  37357. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  37358. + s//\1/
  37359. + q
  37360. + }
  37361. + /^X\(\/\/\)[^/].*/{
  37362. + s//\1/
  37363. + q
  37364. + }
  37365. + /^X\(\/\/\)$/{
  37366. + s//\1/
  37367. + q
  37368. + }
  37369. + /^X\(\/\).*/{
  37370. + s//\1/
  37371. + q
  37372. + }
  37373. + s/.*/./; q'`
  37374. + test -d "$as_dir" && break
  37375. + done
  37376. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  37377. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  37378. -if test "x$curl_prefix" != "x" -a "x$curl_prefix" != "xyes"; then
  37379. - CURL_LIBS="-L$curl_prefix/lib -lcurl"
  37380. - CURL_CFLAGS="-I$curl_prefix/include"
  37381. -elif test "x$CURL_CONFIG" != "x"; then
  37382. - if ! test -x "$CURL_CONFIG"; then
  37383. - { { echo "$as_me:$LINENO: error: $CURL_CONFIG cannot be executed" >&5
  37384. -echo "$as_me: error: $CURL_CONFIG cannot be executed" >&2;}
  37385. - { (exit 1); exit 1; }; }
  37386. - fi
  37387. - CURL_LIBS="$($CURL_CONFIG --libs)"
  37388. - CURL_CFLAGS="$($CURL_CONFIG --cflags)"
  37389. +} # as_fn_mkdir_p
  37390. +if mkdir -p . 2>/dev/null; then
  37391. + as_mkdir_p='mkdir -p "$as_dir"'
  37392. else
  37393. - if test "x$prefix" = "xNONE"; then
  37394. - curl_prefix="/usr/local"
  37395. - else
  37396. - curl_prefix="$prefix"
  37397. - fi
  37398. - CURL_LIBS="-L$curl_prefix/lib -lcurl"
  37399. - CURL_CFLAGS="-I$curl_prefix/include"
  37400. + test -d ./-p && rmdir ./-p
  37401. + as_mkdir_p=false
  37402. fi
  37403. -curl_ok="yes"
  37404. +if test -x / >/dev/null 2>&1; then
  37405. + as_test_x='test -x'
  37406. +else
  37407. + if ls -dL / >/dev/null 2>&1; then
  37408. + as_ls_L_option=L
  37409. + else
  37410. + as_ls_L_option=
  37411. + fi
  37412. + as_test_x='
  37413. + eval sh -c '\''
  37414. + if test -d "$1"; then
  37415. + test -d "$1/.";
  37416. + else
  37417. + case $1 in #(
  37418. + -*)set "./$1";;
  37419. + esac;
  37420. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  37421. + ???[sx]*):;;*)false;;esac;fi
  37422. + '\'' sh
  37423. + '
  37424. +fi
  37425. +as_executable_p=$as_test_x
  37426. -xt_curl_CPPFLAGS="$CPPFLAGS"
  37427. -xt_curl_LIBS="$LIBS"
  37428. -CPPFLAGS="$CPPFLAGS $CURL_CFLAGS"
  37429. -LIBS="$CURL_LIBS $LIBS"
  37430. +# Sed expression to map a string onto a valid CPP name.
  37431. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  37432. -for ac_header in curl/curl.h
  37433. -do
  37434. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  37435. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  37436. - { echo "$as_me:$LINENO: checking for $ac_header" >&5
  37437. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  37438. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  37439. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37440. -fi
  37441. -ac_res=`eval echo '${'$as_ac_Header'}'`
  37442. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  37443. -echo "${ECHO_T}$ac_res" >&6; }
  37444. -else
  37445. - # Is the header compilable?
  37446. -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  37447. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  37448. -cat >conftest.$ac_ext <<_ACEOF
  37449. -/* confdefs.h. */
  37450. -_ACEOF
  37451. -cat confdefs.h >>conftest.$ac_ext
  37452. -cat >>conftest.$ac_ext <<_ACEOF
  37453. -/* end confdefs.h. */
  37454. -$ac_includes_default
  37455. -#include <$ac_header>
  37456. -_ACEOF
  37457. -rm -f conftest.$ac_objext
  37458. -if { (ac_try="$ac_compile"
  37459. -case "(($ac_try" in
  37460. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37461. - *) ac_try_echo=$ac_try;;
  37462. -esac
  37463. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37464. - (eval "$ac_compile") 2>conftest.er1
  37465. - ac_status=$?
  37466. - grep -v '^ *+' conftest.er1 >conftest.err
  37467. - rm -f conftest.er1
  37468. - cat conftest.err >&5
  37469. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37470. - (exit $ac_status); } && {
  37471. - test -z "$ac_c_werror_flag" ||
  37472. - test ! -s conftest.err
  37473. - } && test -s conftest.$ac_objext; then
  37474. - ac_header_compiler=yes
  37475. -else
  37476. - echo "$as_me: failed program was:" >&5
  37477. -sed 's/^/| /' conftest.$ac_ext >&5
  37478. +# Sed expression to map a string onto a valid variable name.
  37479. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  37480. - ac_header_compiler=no
  37481. -fi
  37482. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37483. -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  37484. -echo "${ECHO_T}$ac_header_compiler" >&6; }
  37485. +exec 6>&1
  37486. +## ----------------------------------- ##
  37487. +## Main body of $CONFIG_STATUS script. ##
  37488. +## ----------------------------------- ##
  37489. +_ASEOF
  37490. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  37491. +
  37492. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  37493. +# Save the log message, to keep $0 and so on meaningful, and to
  37494. +# report actual input values of CONFIG_FILES etc. instead of their
  37495. +# values after options handling.
  37496. +ac_log="
  37497. +This file was extended by Icecast $as_me 2.3.2, which was
  37498. +generated by GNU Autoconf 2.65. Invocation command line was
  37499. +
  37500. + CONFIG_FILES = $CONFIG_FILES
  37501. + CONFIG_HEADERS = $CONFIG_HEADERS
  37502. + CONFIG_LINKS = $CONFIG_LINKS
  37503. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  37504. + $ $0 $@
  37505. +
  37506. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  37507. +"
  37508. -# Is the header present?
  37509. -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  37510. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  37511. -cat >conftest.$ac_ext <<_ACEOF
  37512. -/* confdefs.h. */
  37513. -_ACEOF
  37514. -cat confdefs.h >>conftest.$ac_ext
  37515. -cat >>conftest.$ac_ext <<_ACEOF
  37516. -/* end confdefs.h. */
  37517. -#include <$ac_header>
  37518. _ACEOF
  37519. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  37520. -case "(($ac_try" in
  37521. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37522. - *) ac_try_echo=$ac_try;;
  37523. +
  37524. +case $ac_config_files in *"
  37525. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  37526. esac
  37527. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37528. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  37529. - ac_status=$?
  37530. - grep -v '^ *+' conftest.er1 >conftest.err
  37531. - rm -f conftest.er1
  37532. - cat conftest.err >&5
  37533. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37534. - (exit $ac_status); } >/dev/null && {
  37535. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  37536. - test ! -s conftest.err
  37537. - }; then
  37538. - ac_header_preproc=yes
  37539. -else
  37540. - echo "$as_me: failed program was:" >&5
  37541. -sed 's/^/| /' conftest.$ac_ext >&5
  37542. - ac_header_preproc=no
  37543. -fi
  37544. +case $ac_config_headers in *"
  37545. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  37546. +esac
  37547. -rm -f conftest.err conftest.$ac_ext
  37548. -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  37549. -echo "${ECHO_T}$ac_header_preproc" >&6; }
  37550. -# So? What about this header?
  37551. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  37552. - yes:no: )
  37553. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  37554. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  37555. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  37556. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  37557. - ac_header_preproc=yes
  37558. - ;;
  37559. - no:yes:* )
  37560. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  37561. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  37562. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  37563. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  37564. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  37565. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  37566. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  37567. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  37568. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  37569. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  37570. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  37571. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  37572. - ( cat <<\_ASBOX
  37573. -## ------------------------------- ##
  37574. -## Report this to icecast@xiph.org ##
  37575. -## ------------------------------- ##
  37576. -_ASBOX
  37577. - ) | sed "s/^/$as_me: WARNING: /" >&2
  37578. - ;;
  37579. -esac
  37580. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  37581. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  37582. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  37583. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37584. -else
  37585. - eval "$as_ac_Header=\$ac_header_preproc"
  37586. -fi
  37587. -ac_res=`eval echo '${'$as_ac_Header'}'`
  37588. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  37589. -echo "${ECHO_T}$ac_res" >&6; }
  37590. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  37591. +# Files that config.status was made for.
  37592. +config_files="$ac_config_files"
  37593. +config_headers="$ac_config_headers"
  37594. +config_commands="$ac_config_commands"
  37595. -fi
  37596. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  37597. - cat >>confdefs.h <<_ACEOF
  37598. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  37599. _ACEOF
  37600. -else
  37601. - curl_ok="no"
  37602. -fi
  37603. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  37604. +ac_cs_usage="\
  37605. +\`$as_me' instantiates files and other configuration actions
  37606. +from templates according to the current configuration. Unless the files
  37607. +and actions are specified as TAGs, all are instantiated by default.
  37608. -done
  37609. +Usage: $0 [OPTION]... [TAG]...
  37610. +
  37611. + -h, --help print this help, then exit
  37612. + -V, --version print version number and configuration settings, then exit
  37613. + --config print configuration, then exit
  37614. + -q, --quiet, --silent
  37615. + do not print progress messages
  37616. + -d, --debug don't remove temporary files
  37617. + --recheck update $as_me by reconfiguring in the same conditions
  37618. + --file=FILE[:TEMPLATE]
  37619. + instantiate the configuration file FILE
  37620. + --header=FILE[:TEMPLATE]
  37621. + instantiate the configuration header FILE
  37622. +
  37623. +Configuration files:
  37624. +$config_files
  37625. +
  37626. +Configuration headers:
  37627. +$config_headers
  37628. +
  37629. +Configuration commands:
  37630. +$config_commands
  37631. +
  37632. +Report bugs to <icecast@xiph.org>."
  37633. -{ echo "$as_me:$LINENO: checking for libcurl" >&5
  37634. -echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
  37635. -if test "$curl_ok" = "yes"
  37636. -then
  37637. - if test "$cross_compiling" = yes; then
  37638. - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  37639. -See \`config.log' for more details." >&5
  37640. -echo "$as_me: error: cannot run test program while cross compiling
  37641. -See \`config.log' for more details." >&2;}
  37642. - { (exit 1); exit 1; }; }
  37643. -else
  37644. - cat >conftest.$ac_ext <<_ACEOF
  37645. -/* confdefs.h. */
  37646. _ACEOF
  37647. -cat confdefs.h >>conftest.$ac_ext
  37648. -cat >>conftest.$ac_ext <<_ACEOF
  37649. -/* end confdefs.h. */
  37650. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  37651. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  37652. +ac_cs_version="\\
  37653. +Icecast config.status 2.3.2
  37654. +configured by $0, generated by GNU Autoconf 2.65,
  37655. + with options \\"\$ac_cs_config\\"
  37656. -#include <curl/curl.h>
  37657. -int main()
  37658. -{
  37659. - return 0;
  37660. -}
  37661. +Copyright (C) 2009 Free Software Foundation, Inc.
  37662. +This config.status script is free software; the Free Software Foundation
  37663. +gives unlimited permission to copy, distribute and modify it."
  37664. +ac_pwd='$ac_pwd'
  37665. +srcdir='$srcdir'
  37666. +INSTALL='$INSTALL'
  37667. +MKDIR_P='$MKDIR_P'
  37668. +AWK='$AWK'
  37669. +test -n "\$AWK" || AWK=awk
  37670. _ACEOF
  37671. -rm -f conftest$ac_exeext
  37672. -if { (ac_try="$ac_link"
  37673. -case "(($ac_try" in
  37674. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37675. - *) ac_try_echo=$ac_try;;
  37676. -esac
  37677. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37678. - (eval "$ac_link") 2>&5
  37679. - ac_status=$?
  37680. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37681. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  37682. - { (case "(($ac_try" in
  37683. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37684. - *) ac_try_echo=$ac_try;;
  37685. -esac
  37686. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  37687. - (eval "$ac_try") 2>&5
  37688. - ac_status=$?
  37689. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37690. - (exit $ac_status); }; }; then
  37691. - :
  37692. -else
  37693. - echo "$as_me: program exited with status $ac_status" >&5
  37694. -echo "$as_me: failed program was:" >&5
  37695. -sed 's/^/| /' conftest.$ac_ext >&5
  37696. -( exit $ac_status )
  37697. -curl_ok="no"
  37698. -fi
  37699. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  37700. -fi
  37701. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  37702. +# The default lists apply if the user does not specify any file.
  37703. +ac_need_defaults=:
  37704. +while test $# != 0
  37705. +do
  37706. + case $1 in
  37707. + --*=*)
  37708. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  37709. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  37710. + ac_shift=:
  37711. + ;;
  37712. + *)
  37713. + ac_option=$1
  37714. + ac_optarg=$2
  37715. + ac_shift=shift
  37716. + ;;
  37717. + esac
  37718. +
  37719. + case $ac_option in
  37720. + # Handling of the options.
  37721. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  37722. + ac_cs_recheck=: ;;
  37723. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  37724. + $as_echo "$ac_cs_version"; exit ;;
  37725. + --config | --confi | --conf | --con | --co | --c )
  37726. + $as_echo "$ac_cs_config"; exit ;;
  37727. + --debug | --debu | --deb | --de | --d | -d )
  37728. + debug=: ;;
  37729. + --file | --fil | --fi | --f )
  37730. + $ac_shift
  37731. + case $ac_optarg in
  37732. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  37733. + esac
  37734. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  37735. + ac_need_defaults=false;;
  37736. + --header | --heade | --head | --hea )
  37737. + $ac_shift
  37738. + case $ac_optarg in
  37739. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  37740. + esac
  37741. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  37742. + ac_need_defaults=false;;
  37743. + --he | --h)
  37744. + # Conflict between --help and --header
  37745. + as_fn_error "ambiguous option: \`$1'
  37746. +Try \`$0 --help' for more information.";;
  37747. + --help | --hel | -h )
  37748. + $as_echo "$ac_cs_usage"; exit ;;
  37749. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  37750. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  37751. + ac_cs_silent=: ;;
  37752. +
  37753. + # This is an error.
  37754. + -*) as_fn_error "unrecognized option: \`$1'
  37755. +Try \`$0 --help' for more information." ;;
  37756. +
  37757. + *) as_fn_append ac_config_targets " $1"
  37758. + ac_need_defaults=false ;;
  37759. +
  37760. + esac
  37761. + shift
  37762. +done
  37763. +ac_configure_extra_args=
  37764. +if $ac_cs_silent; then
  37765. + exec 6>/dev/null
  37766. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  37767. fi
  37768. -if test "$curl_ok" = "yes"; then
  37769. - { echo "$as_me:$LINENO: result: yes" >&5
  37770. -echo "${ECHO_T}yes" >&6; }
  37771. -cat >>confdefs.h <<\_ACEOF
  37772. -#define HAVE_CURL 1
  37773. _ACEOF
  37774. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  37775. +if \$ac_cs_recheck; then
  37776. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  37777. + shift
  37778. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  37779. + CONFIG_SHELL='$SHELL'
  37780. + export CONFIG_SHELL
  37781. + exec "\$@"
  37782. +fi
  37783. +_ACEOF
  37784. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  37785. +exec 5>>config.log
  37786. +{
  37787. + echo
  37788. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  37789. +## Running $as_me. ##
  37790. +_ASBOX
  37791. + $as_echo "$ac_log"
  37792. +} >&5
  37793. - { echo "$as_me:$LINENO: checking whether CURLOPT_NOSIGNAL is declared" >&5
  37794. -echo $ECHO_N "checking whether CURLOPT_NOSIGNAL is declared... $ECHO_C" >&6; }
  37795. -if test "${ac_cv_have_decl_CURLOPT_NOSIGNAL+set}" = set; then
  37796. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37797. -else
  37798. - cat >conftest.$ac_ext <<_ACEOF
  37799. -/* confdefs.h. */
  37800. _ACEOF
  37801. -cat confdefs.h >>conftest.$ac_ext
  37802. -cat >>conftest.$ac_ext <<_ACEOF
  37803. -/* end confdefs.h. */
  37804. -#include <curl/curl.h>
  37805. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  37806. +#
  37807. +# INIT-COMMANDS
  37808. +#
  37809. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  37810. -int
  37811. -main ()
  37812. -{
  37813. -#ifndef CURLOPT_NOSIGNAL
  37814. - (void) CURLOPT_NOSIGNAL;
  37815. -#endif
  37816. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  37817. +# if CDPATH is set.
  37818. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  37819. - ;
  37820. - return 0;
  37821. -}
  37822. -_ACEOF
  37823. -rm -f conftest.$ac_objext
  37824. -if { (ac_try="$ac_compile"
  37825. -case "(($ac_try" in
  37826. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  37827. - *) ac_try_echo=$ac_try;;
  37828. +sed_quote_subst='$sed_quote_subst'
  37829. +double_quote_subst='$double_quote_subst'
  37830. +delay_variable_subst='$delay_variable_subst'
  37831. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  37832. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  37833. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  37834. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  37835. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  37836. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  37837. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  37838. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  37839. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  37840. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  37841. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  37842. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  37843. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  37844. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  37845. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  37846. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  37847. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  37848. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  37849. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  37850. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  37851. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  37852. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  37853. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  37854. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  37855. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  37856. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  37857. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  37858. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37859. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  37860. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  37861. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  37862. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  37863. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  37864. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  37865. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  37866. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37867. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37868. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37869. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  37870. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  37871. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  37872. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  37873. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  37874. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  37875. +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"`'
  37876. +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"`'
  37877. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  37878. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  37879. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  37880. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  37881. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  37882. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  37883. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  37884. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  37885. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  37886. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  37887. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  37888. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  37889. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  37890. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  37891. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  37892. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  37893. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37894. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37895. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  37896. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  37897. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37898. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37899. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  37900. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37901. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37902. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37903. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37904. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37905. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37906. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  37907. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  37908. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  37909. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37910. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  37911. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  37912. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  37913. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  37914. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  37915. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  37916. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  37917. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  37918. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  37919. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  37920. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  37921. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37922. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  37923. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  37924. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37925. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37926. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  37927. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  37928. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  37929. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  37930. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  37931. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  37932. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  37933. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37934. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37935. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37936. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37937. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37938. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  37939. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  37940. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  37941. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37942. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  37943. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  37944. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  37945. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  37946. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  37947. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  37948. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  37949. +
  37950. +LTCC='$LTCC'
  37951. +LTCFLAGS='$LTCFLAGS'
  37952. +compiler='$compiler_DEFAULT'
  37953. +
  37954. +# Quote evaled strings.
  37955. +for var in SED \
  37956. +GREP \
  37957. +EGREP \
  37958. +FGREP \
  37959. +LD \
  37960. +NM \
  37961. +LN_S \
  37962. +lt_SP2NL \
  37963. +lt_NL2SP \
  37964. +reload_flag \
  37965. +OBJDUMP \
  37966. +deplibs_check_method \
  37967. +file_magic_cmd \
  37968. +AR \
  37969. +AR_FLAGS \
  37970. +STRIP \
  37971. +RANLIB \
  37972. +CC \
  37973. +CFLAGS \
  37974. +compiler \
  37975. +lt_cv_sys_global_symbol_pipe \
  37976. +lt_cv_sys_global_symbol_to_cdecl \
  37977. +lt_cv_sys_global_symbol_to_c_name_address \
  37978. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  37979. +SHELL \
  37980. +ECHO \
  37981. +lt_prog_compiler_no_builtin_flag \
  37982. +lt_prog_compiler_wl \
  37983. +lt_prog_compiler_pic \
  37984. +lt_prog_compiler_static \
  37985. +lt_cv_prog_compiler_c_o \
  37986. +need_locks \
  37987. +DSYMUTIL \
  37988. +NMEDIT \
  37989. +LIPO \
  37990. +OTOOL \
  37991. +OTOOL64 \
  37992. +shrext_cmds \
  37993. +export_dynamic_flag_spec \
  37994. +whole_archive_flag_spec \
  37995. +compiler_needs_object \
  37996. +with_gnu_ld \
  37997. +allow_undefined_flag \
  37998. +no_undefined_flag \
  37999. +hardcode_libdir_flag_spec \
  38000. +hardcode_libdir_flag_spec_ld \
  38001. +hardcode_libdir_separator \
  38002. +fix_srcfile_path \
  38003. +exclude_expsyms \
  38004. +include_expsyms \
  38005. +file_list_spec \
  38006. +variables_saved_for_relink \
  38007. +libname_spec \
  38008. +library_names_spec \
  38009. +soname_spec \
  38010. +finish_eval \
  38011. +old_striplib \
  38012. +striplib; do
  38013. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  38014. + *[\\\\\\\`\\"\\\$]*)
  38015. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  38016. + ;;
  38017. + *)
  38018. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  38019. + ;;
  38020. + esac
  38021. +done
  38022. +
  38023. +# Double-quote double-evaled strings.
  38024. +for var in reload_cmds \
  38025. +old_postinstall_cmds \
  38026. +old_postuninstall_cmds \
  38027. +old_archive_cmds \
  38028. +extract_expsyms_cmds \
  38029. +old_archive_from_new_cmds \
  38030. +old_archive_from_expsyms_cmds \
  38031. +archive_cmds \
  38032. +archive_expsym_cmds \
  38033. +module_cmds \
  38034. +module_expsym_cmds \
  38035. +export_symbols_cmds \
  38036. +prelink_cmds \
  38037. +postinstall_cmds \
  38038. +postuninstall_cmds \
  38039. +finish_cmds \
  38040. +sys_lib_search_path_spec \
  38041. +sys_lib_dlsearch_path_spec; do
  38042. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  38043. + *[\\\\\\\`\\"\\\$]*)
  38044. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  38045. + ;;
  38046. + *)
  38047. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  38048. + ;;
  38049. + esac
  38050. +done
  38051. +
  38052. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  38053. +case \$lt_ECHO in
  38054. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  38055. + ;;
  38056. esac
  38057. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38058. - (eval "$ac_compile") 2>conftest.er1
  38059. - ac_status=$?
  38060. - grep -v '^ *+' conftest.er1 >conftest.err
  38061. - rm -f conftest.er1
  38062. - cat conftest.err >&5
  38063. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38064. - (exit $ac_status); } && {
  38065. - test -z "$ac_c_werror_flag" ||
  38066. - test ! -s conftest.err
  38067. - } && test -s conftest.$ac_objext; then
  38068. - ac_cv_have_decl_CURLOPT_NOSIGNAL=yes
  38069. -else
  38070. - echo "$as_me: failed program was:" >&5
  38071. -sed 's/^/| /' conftest.$ac_ext >&5
  38072. - ac_cv_have_decl_CURLOPT_NOSIGNAL=no
  38073. -fi
  38074. +ac_aux_dir='$ac_aux_dir'
  38075. +xsi_shell='$xsi_shell'
  38076. +lt_shell_append='$lt_shell_append'
  38077. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38078. +# See if we are running on zsh, and set the options which allow our
  38079. +# commands through without removal of \ escapes INIT.
  38080. +if test -n "\${ZSH_VERSION+set}" ; then
  38081. + setopt NO_GLOB_SUBST
  38082. fi
  38083. -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_CURLOPT_NOSIGNAL" >&5
  38084. -echo "${ECHO_T}$ac_cv_have_decl_CURLOPT_NOSIGNAL" >&6; }
  38085. -if test $ac_cv_have_decl_CURLOPT_NOSIGNAL = yes; then
  38086. -cat >>confdefs.h <<\_ACEOF
  38087. -#define HAVE_AUTH_URL 1
  38088. +
  38089. + PACKAGE='$PACKAGE'
  38090. + VERSION='$VERSION'
  38091. + TIMESTAMP='$TIMESTAMP'
  38092. + RM='$RM'
  38093. + ofile='$ofile'
  38094. +
  38095. +
  38096. +
  38097. +
  38098. _ACEOF
  38099. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38100. -for ac_func in curl_global_init
  38101. +# Handling of arguments.
  38102. +for ac_config_target in $ac_config_targets
  38103. do
  38104. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  38105. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  38106. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  38107. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  38108. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38109. -else
  38110. - cat >conftest.$ac_ext <<_ACEOF
  38111. -/* confdefs.h. */
  38112. -_ACEOF
  38113. -cat confdefs.h >>conftest.$ac_ext
  38114. -cat >>conftest.$ac_ext <<_ACEOF
  38115. -/* end confdefs.h. */
  38116. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  38117. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  38118. -#define $ac_func innocuous_$ac_func
  38119. + case $ac_config_target in
  38120. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  38121. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  38122. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  38123. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  38124. + "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
  38125. + "debian/Makefile") CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
  38126. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  38127. + "src/avl/Makefile") CONFIG_FILES="$CONFIG_FILES src/avl/Makefile" ;;
  38128. + "src/httpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/httpp/Makefile" ;;
  38129. + "src/thread/Makefile") CONFIG_FILES="$CONFIG_FILES src/thread/Makefile" ;;
  38130. + "src/log/Makefile") CONFIG_FILES="$CONFIG_FILES src/log/Makefile" ;;
  38131. + "src/net/Makefile") CONFIG_FILES="$CONFIG_FILES src/net/Makefile" ;;
  38132. + "src/timing/Makefile") CONFIG_FILES="$CONFIG_FILES src/timing/Makefile" ;;
  38133. + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  38134. + "web/Makefile") CONFIG_FILES="$CONFIG_FILES web/Makefile" ;;
  38135. + "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
  38136. + "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
  38137. + "win32/res/Makefile") CONFIG_FILES="$CONFIG_FILES win32/res/Makefile" ;;
  38138. + "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  38139. -/* System header to define __stub macros and hopefully few prototypes,
  38140. - which can conflict with char $ac_func (); below.
  38141. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  38142. - <limits.h> exists even on freestanding compilers. */
  38143. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  38144. + esac
  38145. +done
  38146. +
  38147. +
  38148. +# If the user did not use the arguments to specify the items to instantiate,
  38149. +# then the envvar interface is used. Set only those that are not.
  38150. +# We use the long form for the default assignment because of an extremely
  38151. +# bizarre bug on SunOS 4.1.3.
  38152. +if $ac_need_defaults; then
  38153. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  38154. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  38155. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  38156. +fi
  38157. +
  38158. +# Have a temporary directory for convenience. Make it in the build tree
  38159. +# simply because there is no reason against having it here, and in addition,
  38160. +# creating and moving files from /tmp can sometimes cause problems.
  38161. +# Hook for its removal unless debugging.
  38162. +# Note that there is a small window in which the directory will not be cleaned:
  38163. +# after its creation but before its name has been assigned to `$tmp'.
  38164. +$debug ||
  38165. +{
  38166. + tmp=
  38167. + trap 'exit_status=$?
  38168. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  38169. +' 0
  38170. + trap 'as_fn_exit 1' 1 2 13 15
  38171. +}
  38172. +# Create a (secure) tmp directory for tmp files.
  38173. -#ifdef __STDC__
  38174. -# include <limits.h>
  38175. -#else
  38176. -# include <assert.h>
  38177. -#endif
  38178. +{
  38179. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  38180. + test -n "$tmp" && test -d "$tmp"
  38181. +} ||
  38182. +{
  38183. + tmp=./conf$$-$RANDOM
  38184. + (umask 077 && mkdir "$tmp")
  38185. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  38186. -#undef $ac_func
  38187. +# Set up the scripts for CONFIG_FILES section.
  38188. +# No need to generate them if there are no CONFIG_FILES.
  38189. +# This happens for instance with `./config.status config.h'.
  38190. +if test -n "$CONFIG_FILES"; then
  38191. -/* Override any GCC internal prototype to avoid an error.
  38192. - Use char because int might match the return type of a GCC
  38193. - builtin and then its argument prototype would still apply. */
  38194. -#ifdef __cplusplus
  38195. -extern "C"
  38196. -#endif
  38197. -char $ac_func ();
  38198. -/* The GNU C library defines this for functions which it implements
  38199. - to always fail with ENOSYS. Some functions are actually named
  38200. - something starting with __ and the normal name is an alias. */
  38201. -#if defined __stub_$ac_func || defined __stub___$ac_func
  38202. -choke me
  38203. -#endif
  38204. -int
  38205. -main ()
  38206. -{
  38207. -return $ac_func ();
  38208. - ;
  38209. - return 0;
  38210. -}
  38211. -_ACEOF
  38212. -rm -f conftest.$ac_objext conftest$ac_exeext
  38213. -if { (ac_try="$ac_link"
  38214. -case "(($ac_try" in
  38215. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38216. - *) ac_try_echo=$ac_try;;
  38217. -esac
  38218. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38219. - (eval "$ac_link") 2>conftest.er1
  38220. - ac_status=$?
  38221. - grep -v '^ *+' conftest.er1 >conftest.err
  38222. - rm -f conftest.er1
  38223. - cat conftest.err >&5
  38224. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38225. - (exit $ac_status); } && {
  38226. - test -z "$ac_c_werror_flag" ||
  38227. - test ! -s conftest.err
  38228. - } && test -s conftest$ac_exeext &&
  38229. - $as_test_x conftest$ac_exeext; then
  38230. - eval "$as_ac_var=yes"
  38231. +ac_cr=`echo X | tr X '\015'`
  38232. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  38233. +# But we know of no other shell where ac_cr would be empty at this
  38234. +# point, so we can use a bashism as a fallback.
  38235. +if test "x$ac_cr" = x; then
  38236. + eval ac_cr=\$\'\\r\'
  38237. +fi
  38238. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  38239. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  38240. + ac_cs_awk_cr='\r'
  38241. else
  38242. - echo "$as_me: failed program was:" >&5
  38243. -sed 's/^/| /' conftest.$ac_ext >&5
  38244. -
  38245. - eval "$as_ac_var=no"
  38246. + ac_cs_awk_cr=$ac_cr
  38247. fi
  38248. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38249. - conftest$ac_exeext conftest.$ac_ext
  38250. -fi
  38251. -ac_res=`eval echo '${'$as_ac_var'}'`
  38252. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  38253. -echo "${ECHO_T}$ac_res" >&6; }
  38254. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  38255. - cat >>confdefs.h <<_ACEOF
  38256. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  38257. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  38258. _ACEOF
  38259. -fi
  38260. -done
  38261. - ICECAST_OPTIONAL="$ICECAST_OPTIONAL auth_url.o"
  38262. - enable_curl="yes"
  38263. +{
  38264. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  38265. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  38266. + echo "_ACEOF"
  38267. +} >conf$$subs.sh ||
  38268. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  38269. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  38270. +ac_delim='%!_!# '
  38271. +for ac_last_try in false false false false false :; do
  38272. + . ./conf$$subs.sh ||
  38273. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  38274. -for arg in $CURL_CFLAGS
  38275. -do
  38276. - if { cat <<EOF
  38277. - $XIPH_CPPFLAGS x
  38278. -EOF
  38279. -} | $FGREP -v -e " $arg " > /dev/null
  38280. - then
  38281. - XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
  38282. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  38283. + if test $ac_delim_n = $ac_delim_num; then
  38284. + break
  38285. + elif $ac_last_try; then
  38286. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  38287. + else
  38288. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  38289. fi
  38290. done
  38291. +rm -f conf$$subs.sh
  38292. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38293. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  38294. +_ACEOF
  38295. +sed -n '
  38296. +h
  38297. +s/^/S["/; s/!.*/"]=/
  38298. +p
  38299. +g
  38300. +s/^[^!]*!//
  38301. +:repl
  38302. +t repl
  38303. +s/'"$ac_delim"'$//
  38304. +t delim
  38305. +:nl
  38306. +h
  38307. +s/\(.\{148\}\)..*/\1/
  38308. +t more1
  38309. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  38310. +p
  38311. +n
  38312. +b repl
  38313. +:more1
  38314. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  38315. +p
  38316. +g
  38317. +s/.\{148\}//
  38318. +t nl
  38319. +:delim
  38320. +h
  38321. +s/\(.\{148\}\)..*/\1/
  38322. +t more2
  38323. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  38324. +p
  38325. +b
  38326. +:more2
  38327. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  38328. +p
  38329. +g
  38330. +s/.\{148\}//
  38331. +t delim
  38332. +' <conf$$subs.awk | sed '
  38333. +/^[^""]/{
  38334. + N
  38335. + s/\n//
  38336. +}
  38337. +' >>$CONFIG_STATUS || ac_write_fail=1
  38338. +rm -f conf$$subs.awk
  38339. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38340. +_ACAWK
  38341. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  38342. + for (key in S) S_is_set[key] = 1
  38343. + FS = ""
  38344. -xt_compare="$XIPH_LIBS"
  38345. -xt_filtered=""
  38346. -for arg in $CURL_LIBS
  38347. -do
  38348. - if { cat <<EOF
  38349. - $xt_compare x
  38350. -EOF
  38351. -} | $FGREP -v -e " $arg " > /dev/null
  38352. - then
  38353. - xt_compare="$arg $xt_compare"
  38354. - xt_filtered="$xt_filtered $arg"
  38355. - fi
  38356. -done
  38357. -XIPH_LIBS="$xt_filtered $XIPH_LIBS"
  38358. +}
  38359. +{
  38360. + line = $ 0
  38361. + nfields = split(line, field, "@")
  38362. + substed = 0
  38363. + len = length(field[1])
  38364. + for (i = 2; i < nfields; i++) {
  38365. + key = field[i]
  38366. + keylen = length(key)
  38367. + if (S_is_set[key]) {
  38368. + value = S[key]
  38369. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  38370. + len += length(value) + length(field[++i])
  38371. + substed = 1
  38372. + } else
  38373. + len += 1 + keylen
  38374. + }
  38375. + print line
  38376. +}
  38377. +_ACAWK
  38378. +_ACEOF
  38379. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38380. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  38381. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  38382. else
  38383. - { echo "$as_me:$LINENO: Your curl dev files are too old (7.10 or above required)" >&5
  38384. -echo "$as_me: Your curl dev files are too old (7.10 or above required)" >&6;}
  38385. + cat
  38386. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  38387. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  38388. +_ACEOF
  38389. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  38390. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  38391. +# trailing colons and then remove the whole line if VPATH becomes empty
  38392. +# (actually we leave an empty line to preserve line numbers).
  38393. +if test "x$srcdir" = x.; then
  38394. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  38395. +s/:*\$(srcdir):*/:/
  38396. +s/:*\${srcdir}:*/:/
  38397. +s/:*@srcdir@:*/:/
  38398. +s/^\([^=]*=[ ]*\):*/\1/
  38399. +s/:*$//
  38400. +s/^[^=]*=[ ]*$//
  38401. +}'
  38402. fi
  38403. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38404. +fi # test -n "$CONFIG_FILES"
  38405. -else
  38406. - { echo "$as_me:$LINENO: result: no" >&5
  38407. -echo "${ECHO_T}no" >&6; }
  38408. - CURL_LIBS=""
  38409. - CURL_CFLAGS=""
  38410. - { echo "$as_me:$LINENO: libcurl not found" >&5
  38411. -echo "$as_me: libcurl not found" >&6;}
  38412. +# Set up the scripts for CONFIG_HEADERS section.
  38413. +# No need to generate them if there are no CONFIG_HEADERS.
  38414. +# This happens for instance with `./config.status Makefile'.
  38415. +if test -n "$CONFIG_HEADERS"; then
  38416. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  38417. +BEGIN {
  38418. +_ACEOF
  38419. -fi
  38420. -CPPFLAGS="$xt_curl_CPPFLAGS"
  38421. -LIBS="$xt_curl_LIBS"
  38422. -fi
  38423. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  38424. +# here-document in config.status, that substitutes the proper values into
  38425. +# config.h.in to produce config.h.
  38426. +# Create a delimiter string that does not exist in confdefs.h, to ease
  38427. +# handling of long lines.
  38428. +ac_delim='%!_!# '
  38429. +for ac_last_try in false false :; do
  38430. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  38431. + if test -z "$ac_t"; then
  38432. + break
  38433. + elif $ac_last_try; then
  38434. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  38435. + else
  38436. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  38437. + fi
  38438. +done
  38439. +# For the awk script, D is an array of macro values keyed by name,
  38440. +# likewise P contains macro parameters if any. Preserve backslash
  38441. +# newline sequences.
  38442. -# Check whether --enable-yp was given.
  38443. -if test "${enable_yp+set}" = set; then
  38444. - enableval=$enable_yp; enable_yp="$enableval"
  38445. -else
  38446. - enable_yp="yes"
  38447. -fi
  38448. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  38449. +sed -n '
  38450. +s/.\{148\}/&'"$ac_delim"'/g
  38451. +t rset
  38452. +:rset
  38453. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  38454. +t def
  38455. +d
  38456. +:def
  38457. +s/\\$//
  38458. +t bsnl
  38459. +s/["\\]/\\&/g
  38460. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  38461. +D["\1"]=" \3"/p
  38462. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  38463. +d
  38464. +:bsnl
  38465. +s/["\\]/\\&/g
  38466. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  38467. +D["\1"]=" \3\\\\\\n"\\/p
  38468. +t cont
  38469. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  38470. +t cont
  38471. +d
  38472. +:cont
  38473. +n
  38474. +s/.\{148\}/&'"$ac_delim"'/g
  38475. +t clear
  38476. +:clear
  38477. +s/\\$//
  38478. +t bsnlc
  38479. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  38480. +d
  38481. +:bsnlc
  38482. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  38483. +b cont
  38484. +' <confdefs.h | sed '
  38485. +s/'"$ac_delim"'/"\\\
  38486. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  38487. +
  38488. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38489. + for (key in D) D_is_set[key] = 1
  38490. + FS = ""
  38491. +}
  38492. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  38493. + line = \$ 0
  38494. + split(line, arg, " ")
  38495. + if (arg[1] == "#") {
  38496. + defundef = arg[2]
  38497. + mac1 = arg[3]
  38498. + } else {
  38499. + defundef = substr(arg[1], 2)
  38500. + mac1 = arg[2]
  38501. + }
  38502. + split(mac1, mac2, "(") #)
  38503. + macro = mac2[1]
  38504. + prefix = substr(line, 1, index(line, defundef) - 1)
  38505. + if (D_is_set[macro]) {
  38506. + # Preserve the white space surrounding the "#".
  38507. + print prefix "define", macro P[macro] D[macro]
  38508. + next
  38509. + } else {
  38510. + # Replace #undef with comments. This is necessary, for example,
  38511. + # in the case of _POSIX_SOURCE, which is predefined and required
  38512. + # on some systems where configure will not decide to define it.
  38513. + if (defundef == "undef") {
  38514. + print "/*", prefix defundef, macro, "*/"
  38515. + next
  38516. + }
  38517. + }
  38518. +}
  38519. +{ print }
  38520. +_ACAWK
  38521. +_ACEOF
  38522. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38523. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  38524. +fi # test -n "$CONFIG_HEADERS"
  38525. -if test "x$enable_yp" = "xyes" -a "x$enable_curl" = xyes
  38526. -then
  38527. -cat >>confdefs.h <<\_ACEOF
  38528. -#define USE_YP 1
  38529. -_ACEOF
  38530. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  38531. +shift
  38532. +for ac_tag
  38533. +do
  38534. + case $ac_tag in
  38535. + :[FHLC]) ac_mode=$ac_tag; continue;;
  38536. + esac
  38537. + case $ac_mode$ac_tag in
  38538. + :[FHL]*:*);;
  38539. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  38540. + :[FH]-) ac_tag=-:-;;
  38541. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  38542. + esac
  38543. + ac_save_IFS=$IFS
  38544. + IFS=:
  38545. + set x $ac_tag
  38546. + IFS=$ac_save_IFS
  38547. + shift
  38548. + ac_file=$1
  38549. + shift
  38550. - ICECAST_OPTIONAL="$ICECAST_OPTIONAL yp.o"
  38551. -else
  38552. - { echo "$as_me:$LINENO: YP support disabled" >&5
  38553. -echo "$as_me: YP support disabled" >&6;}
  38554. -fi
  38555. + case $ac_mode in
  38556. + :L) ac_source=$1;;
  38557. + :[FH])
  38558. + ac_file_inputs=
  38559. + for ac_f
  38560. + do
  38561. + case $ac_f in
  38562. + -) ac_f="$tmp/stdin";;
  38563. + *) # Look for the file first in the build tree, then in the source tree
  38564. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  38565. + # because $ac_f cannot contain `:'.
  38566. + test -f "$ac_f" ||
  38567. + case $ac_f in
  38568. + [\\/$]*) false;;
  38569. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  38570. + esac ||
  38571. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  38572. + esac
  38573. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  38574. + as_fn_append ac_file_inputs " '$ac_f'"
  38575. + done
  38576. -# Check whether --with-openssl was given.
  38577. -if test "${with_openssl+set}" = set; then
  38578. - withval=$with_openssl; openssl_prefix="$withval"
  38579. -else
  38580. - openssl_prefix=""
  38581. -fi
  38582. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  38583. + # use $as_me), people would be surprised to read:
  38584. + # /* config.h. Generated by config.status. */
  38585. + configure_input='Generated from '`
  38586. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  38587. + `' by configure.'
  38588. + if test x"$ac_file" != x-; then
  38589. + configure_input="$ac_file. $configure_input"
  38590. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  38591. +$as_echo "$as_me: creating $ac_file" >&6;}
  38592. + fi
  38593. + # Neutralize special characters interpreted by sed in replacement strings.
  38594. + case $configure_input in #(
  38595. + *\&* | *\|* | *\\* )
  38596. + ac_sed_conf_input=`$as_echo "$configure_input" |
  38597. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  38598. + *) ac_sed_conf_input=$configure_input;;
  38599. + esac
  38600. + case $ac_tag in
  38601. + *:-:* | *:-) cat >"$tmp/stdin" \
  38602. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  38603. + esac
  38604. + ;;
  38605. + esac
  38606. -if test "x$openssl_prefix" != "x" -a "x$openssl_prefix" != "xyes"; then
  38607. - OPENSSL_LIBS="-L$openssl_prefix/lib -lssl"
  38608. - OPENSSL_CFLAGS="-I$openssl_prefix/include"
  38609. -else
  38610. - # Extract the first word of "pkg-config", so it can be a program name with args.
  38611. -set dummy pkg-config; ac_word=$2
  38612. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  38613. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  38614. -if test "${ac_cv_path_PKGCONFIG+set}" = set; then
  38615. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38616. -else
  38617. - case $PKGCONFIG in
  38618. - [\\/]* | ?:[\\/]*)
  38619. - ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  38620. - ;;
  38621. - *)
  38622. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38623. -for as_dir in $PATH
  38624. -do
  38625. - IFS=$as_save_IFS
  38626. - test -z "$as_dir" && as_dir=.
  38627. - for ac_exec_ext in '' $ac_executable_extensions; do
  38628. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  38629. - ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  38630. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  38631. - break 2
  38632. - fi
  38633. -done
  38634. -done
  38635. -IFS=$as_save_IFS
  38636. + ac_dir=`$as_dirname -- "$ac_file" ||
  38637. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38638. + X"$ac_file" : 'X\(//\)[^/]' \| \
  38639. + X"$ac_file" : 'X\(//\)$' \| \
  38640. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  38641. +$as_echo X"$ac_file" |
  38642. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38643. + s//\1/
  38644. + q
  38645. + }
  38646. + /^X\(\/\/\)[^/].*/{
  38647. + s//\1/
  38648. + q
  38649. + }
  38650. + /^X\(\/\/\)$/{
  38651. + s//\1/
  38652. + q
  38653. + }
  38654. + /^X\(\/\).*/{
  38655. + s//\1/
  38656. + q
  38657. + }
  38658. + s/.*/./; q'`
  38659. + as_dir="$ac_dir"; as_fn_mkdir_p
  38660. + ac_builddir=.
  38661. - test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
  38662. - ;;
  38663. +case "$ac_dir" in
  38664. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  38665. +*)
  38666. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  38667. + # A ".." for each directory in $ac_dir_suffix.
  38668. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  38669. + case $ac_top_builddir_sub in
  38670. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  38671. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  38672. + esac ;;
  38673. +esac
  38674. +ac_abs_top_builddir=$ac_pwd
  38675. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  38676. +# for backward compatibility:
  38677. +ac_top_builddir=$ac_top_build_prefix
  38678. +
  38679. +case $srcdir in
  38680. + .) # We are building in place.
  38681. + ac_srcdir=.
  38682. + ac_top_srcdir=$ac_top_builddir_sub
  38683. + ac_abs_top_srcdir=$ac_pwd ;;
  38684. + [\\/]* | ?:[\\/]* ) # Absolute name.
  38685. + ac_srcdir=$srcdir$ac_dir_suffix;
  38686. + ac_top_srcdir=$srcdir
  38687. + ac_abs_top_srcdir=$srcdir ;;
  38688. + *) # Relative name.
  38689. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  38690. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  38691. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  38692. esac
  38693. -fi
  38694. -PKGCONFIG=$ac_cv_path_PKGCONFIG
  38695. -if test -n "$PKGCONFIG"; then
  38696. - { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
  38697. -echo "${ECHO_T}$PKGCONFIG" >&6; }
  38698. -else
  38699. - { echo "$as_me:$LINENO: result: no" >&5
  38700. -echo "${ECHO_T}no" >&6; }
  38701. -fi
  38702. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  38703. - if test "$PKGCONFIG" != "no" && `$PKGCONFIG --exists openssl`; then
  38704. - OPENSSL_CFLAGS=`$PKGCONFIG --cflags openssl`
  38705. - OPENSSL_LIBS=`$PKGCONFIG --libs openssl`
  38706. - else
  38707. - if test "x$prefix" = "xNONE"; then
  38708. - openssl_prefix="/usr/local"
  38709. - else
  38710. - openssl_prefix="$prefix"
  38711. - fi
  38712. - OPENSSL_LIBS="-L$openssl_prefix/lib -lssl"
  38713. - OPENSSL_CFLAGS="-I$openssl_prefix/include"
  38714. - fi
  38715. -fi
  38716. + case $ac_mode in
  38717. + :F)
  38718. + #
  38719. + # CONFIG_FILE
  38720. + #
  38721. -# Now try linking to openssl
  38722. -xt_save_CFLAGS="$CFLAGS"
  38723. -xt_save_LIBS="$LIBS"
  38724. -CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
  38725. -LIBS="$OPENSSL_LIBS $LIBS"
  38726. -cat >conftest.$ac_ext <<_ACEOF
  38727. -/* confdefs.h. */
  38728. + case $INSTALL in
  38729. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  38730. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  38731. + esac
  38732. + ac_MKDIR_P=$MKDIR_P
  38733. + case $MKDIR_P in
  38734. + [\\/$]* | ?:[\\/]* ) ;;
  38735. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  38736. + esac
  38737. _ACEOF
  38738. -cat confdefs.h >>conftest.$ac_ext
  38739. -cat >>conftest.$ac_ext <<_ACEOF
  38740. -/* end confdefs.h. */
  38741. -#include <openssl/ssl.h>
  38742. -int
  38743. -main ()
  38744. -{
  38745. -void *a = SSL_new
  38746. - ;
  38747. - return 0;
  38748. +
  38749. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38750. +# If the template does not know about datarootdir, expand it.
  38751. +# FIXME: This hack should be removed a few years after 2.60.
  38752. +ac_datarootdir_hack=; ac_datarootdir_seen=
  38753. +ac_sed_dataroot='
  38754. +/datarootdir/ {
  38755. + p
  38756. + q
  38757. }
  38758. +/@datadir@/p
  38759. +/@docdir@/p
  38760. +/@infodir@/p
  38761. +/@localedir@/p
  38762. +/@mandir@/p'
  38763. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  38764. +*datarootdir*) ac_datarootdir_seen=yes;;
  38765. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  38766. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  38767. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  38768. _ACEOF
  38769. -rm -f conftest.$ac_objext conftest$ac_exeext
  38770. -if { (ac_try="$ac_link"
  38771. -case "(($ac_try" in
  38772. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  38773. - *) ac_try_echo=$ac_try;;
  38774. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38775. + ac_datarootdir_hack='
  38776. + s&@datadir@&$datadir&g
  38777. + s&@docdir@&$docdir&g
  38778. + s&@infodir@&$infodir&g
  38779. + s&@localedir@&$localedir&g
  38780. + s&@mandir@&$mandir&g
  38781. + s&\\\${datarootdir}&$datarootdir&g' ;;
  38782. esac
  38783. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  38784. - (eval "$ac_link") 2>conftest.er1
  38785. - ac_status=$?
  38786. - grep -v '^ *+' conftest.er1 >conftest.err
  38787. - rm -f conftest.er1
  38788. - cat conftest.err >&5
  38789. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38790. - (exit $ac_status); } && {
  38791. - test -z "$ac_c_werror_flag" ||
  38792. - test ! -s conftest.err
  38793. - } && test -s conftest$ac_exeext &&
  38794. - $as_test_x conftest$ac_exeext; then
  38795. - openssl_ok='yes'
  38796. -else
  38797. - echo "$as_me: failed program was:" >&5
  38798. -sed 's/^/| /' conftest.$ac_ext >&5
  38799. -
  38800. -
  38801. -fi
  38802. -
  38803. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  38804. - conftest$ac_exeext conftest.$ac_ext
  38805. -CFLAGS="$xt_save_CFLAGS"
  38806. -LIBS="$xt_save_LIBS"
  38807. -
  38808. -if test "$openssl_ok" = "yes"; then
  38809. -
  38810. -cat >>confdefs.h <<\_ACEOF
  38811. -#define HAVE_OPENSSL 1
  38812. _ACEOF
  38813. +# Neutralize VPATH when `$srcdir' = `.'.
  38814. +# Shell code in configure.ac might set extrasub.
  38815. +# FIXME: do we really want to maintain this feature?
  38816. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  38817. +ac_sed_extra="$ac_vpsub
  38818. +$extrasub
  38819. +_ACEOF
  38820. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  38821. +:t
  38822. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  38823. +s|@configure_input@|$ac_sed_conf_input|;t t
  38824. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  38825. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  38826. +s&@srcdir@&$ac_srcdir&;t t
  38827. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  38828. +s&@top_srcdir@&$ac_top_srcdir&;t t
  38829. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  38830. +s&@builddir@&$ac_builddir&;t t
  38831. +s&@abs_builddir@&$ac_abs_builddir&;t t
  38832. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  38833. +s&@INSTALL@&$ac_INSTALL&;t t
  38834. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  38835. +$ac_datarootdir_hack
  38836. +"
  38837. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  38838. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  38839. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  38840. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  38841. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  38842. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  38843. +which seems to be undefined. Please make sure it is defined." >&5
  38844. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  38845. +which seems to be undefined. Please make sure it is defined." >&2;}
  38846. -for arg in $OPENSSL_CFLAGS
  38847. -do
  38848. - if { cat <<EOF
  38849. - $XIPH_CPPFLAGS x
  38850. -EOF
  38851. -} | $FGREP -v -e " $arg " > /dev/null
  38852. - then
  38853. - XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
  38854. - fi
  38855. -done
  38856. -
  38857. -
  38858. -for arg in $OPENSSL_LDFLAGS
  38859. -do
  38860. - if { cat <<EOF
  38861. - $XIPH_LDFLAGS x
  38862. -EOF
  38863. -} | $FGREP -v -e " $arg " > /dev/null
  38864. - then
  38865. - XIPH_LDFLAGS="$XIPH_LDFLAGS $arg"
  38866. - fi
  38867. -done
  38868. -
  38869. -
  38870. -xt_compare="$XIPH_LIBS"
  38871. -xt_filtered=""
  38872. -for arg in $OPENSSL_LIBS
  38873. -do
  38874. - if { cat <<EOF
  38875. - $xt_compare x
  38876. -EOF
  38877. -} | $FGREP -v -e " $arg " > /dev/null
  38878. - then
  38879. - xt_compare="$arg $xt_compare"
  38880. - xt_filtered="$xt_filtered $arg"
  38881. + rm -f "$tmp/stdin"
  38882. + case $ac_file in
  38883. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  38884. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  38885. + esac \
  38886. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  38887. + ;;
  38888. + :H)
  38889. + #
  38890. + # CONFIG_HEADER
  38891. + #
  38892. + if test x"$ac_file" != x-; then
  38893. + {
  38894. + $as_echo "/* $configure_input */" \
  38895. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  38896. + } >"$tmp/config.h" \
  38897. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  38898. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  38899. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  38900. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  38901. + else
  38902. + rm -f "$ac_file"
  38903. + mv "$tmp/config.h" "$ac_file" \
  38904. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  38905. + fi
  38906. + else
  38907. + $as_echo "/* $configure_input */" \
  38908. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  38909. + || as_fn_error "could not create -" "$LINENO" 5
  38910. fi
  38911. +# Compute "$ac_file"'s index in $config_headers.
  38912. +_am_arg="$ac_file"
  38913. +_am_stamp_count=1
  38914. +for _am_header in $config_headers :; do
  38915. + case $_am_header in
  38916. + $_am_arg | $_am_arg:* )
  38917. + break ;;
  38918. + * )
  38919. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  38920. + esac
  38921. done
  38922. -XIPH_LIBS="$xt_filtered $XIPH_LIBS"
  38923. -
  38924. -
  38925. -else
  38926. - OPENSSL_LIBS=""
  38927. - OPENSSL_CFLAGS=""
  38928. - { echo "$as_me:$LINENO: SSL disabled!" >&5
  38929. -echo "$as_me: SSL disabled!" >&6;}
  38930. -
  38931. -fi
  38932. -
  38933. -
  38934. -
  38935. -
  38936. -
  38937. -
  38938. -
  38939. -
  38940. -
  38941. -
  38942. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  38943. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38944. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  38945. + X"$_am_arg" : 'X\(//\)$' \| \
  38946. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  38947. +$as_echo X"$_am_arg" |
  38948. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38949. + s//\1/
  38950. + q
  38951. + }
  38952. + /^X\(\/\/\)[^/].*/{
  38953. + s//\1/
  38954. + q
  38955. + }
  38956. + /^X\(\/\/\)$/{
  38957. + s//\1/
  38958. + q
  38959. + }
  38960. + /^X\(\/\).*/{
  38961. + s//\1/
  38962. + q
  38963. + }
  38964. + s/.*/./; q'`/stamp-h$_am_stamp_count
  38965. + ;;
  38966. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  38967. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  38968. + ;;
  38969. + esac
  38970. + case $ac_file$ac_mode in
  38971. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  38972. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  38973. + # are listed without --file. Let's play safe and only enable the eval
  38974. + # if we detect the quoting.
  38975. + case $CONFIG_FILES in
  38976. + *\'*) eval set x "$CONFIG_FILES" ;;
  38977. + *) set x $CONFIG_FILES ;;
  38978. + esac
  38979. + shift
  38980. + for mf
  38981. + do
  38982. + # Strip MF so we end up with the name of the file.
  38983. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  38984. + # Check whether this is an Automake generated Makefile or not.
  38985. + # We used to match only the files named `Makefile.in', but
  38986. + # some people rename them; so instead we look at the file content.
  38987. + # Grep'ing the first line is not enough: some people post-process
  38988. + # each Makefile.in and add a new line on top of each file to say so.
  38989. + # Grep'ing the whole file is not good either: AIX grep has a line
  38990. + # limit of 2048, but all sed's we know have understand at least 4000.
  38991. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  38992. + dirpart=`$as_dirname -- "$mf" ||
  38993. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38994. + X"$mf" : 'X\(//\)[^/]' \| \
  38995. + X"$mf" : 'X\(//\)$' \| \
  38996. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  38997. +$as_echo X"$mf" |
  38998. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38999. + s//\1/
  39000. + q
  39001. + }
  39002. + /^X\(\/\/\)[^/].*/{
  39003. + s//\1/
  39004. + q
  39005. + }
  39006. + /^X\(\/\/\)$/{
  39007. + s//\1/
  39008. + q
  39009. + }
  39010. + /^X\(\/\).*/{
  39011. + s//\1/
  39012. + q
  39013. + }
  39014. + s/.*/./; q'`
  39015. + else
  39016. + continue
  39017. + fi
  39018. + # Extract the definition of DEPDIR, am__include, and am__quote
  39019. + # from the Makefile without running `make'.
  39020. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  39021. + test -z "$DEPDIR" && continue
  39022. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  39023. + test -z "am__include" && continue
  39024. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  39025. + # When using ansi2knr, U may be empty or an underscore; expand it
  39026. + U=`sed -n 's/^U = //p' < "$mf"`
  39027. + # Find all dependency output files, they are included files with
  39028. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  39029. + # simplest approach to changing $(DEPDIR) to its actual value in the
  39030. + # expansion.
  39031. + for file in `sed -n "
  39032. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  39033. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  39034. + # Make sure the directory exists.
  39035. + test -f "$dirpart/$file" && continue
  39036. + fdir=`$as_dirname -- "$file" ||
  39037. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39038. + X"$file" : 'X\(//\)[^/]' \| \
  39039. + X"$file" : 'X\(//\)$' \| \
  39040. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  39041. +$as_echo X"$file" |
  39042. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  39043. + s//\1/
  39044. + q
  39045. + }
  39046. + /^X\(\/\/\)[^/].*/{
  39047. + s//\1/
  39048. + q
  39049. + }
  39050. + /^X\(\/\/\)$/{
  39051. + s//\1/
  39052. + q
  39053. + }
  39054. + /^X\(\/\).*/{
  39055. + s//\1/
  39056. + q
  39057. + }
  39058. + s/.*/./; q'`
  39059. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  39060. + # echo "creating $dirpart/$file"
  39061. + echo '# dummy' > "$dirpart/$file"
  39062. + done
  39063. + done
  39064. +}
  39065. + ;;
  39066. + "libtool":C)
  39067. + # See if we are running on zsh, and set the options which allow our
  39068. + # commands through without removal of \ escapes.
  39069. + if test -n "${ZSH_VERSION+set}" ; then
  39070. + setopt NO_GLOB_SUBST
  39071. + fi
  39072. + cfgfile="${ofile}T"
  39073. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  39074. + $RM "$cfgfile"
  39075. + cat <<_LT_EOF >> "$cfgfile"
  39076. +#! $SHELL
  39077. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  39078. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  39079. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  39080. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  39081. +#
  39082. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  39083. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  39084. +# Written by Gordon Matzigkeit, 1996
  39085. +#
  39086. +# This file is part of GNU Libtool.
  39087. +#
  39088. +# GNU Libtool is free software; you can redistribute it and/or
  39089. +# modify it under the terms of the GNU General Public License as
  39090. +# published by the Free Software Foundation; either version 2 of
  39091. +# the License, or (at your option) any later version.
  39092. +#
  39093. +# As a special exception to the GNU General Public License,
  39094. +# if you distribute this file as part of a program or library that
  39095. +# is built using GNU Libtool, you may include this file under the
  39096. +# same distribution terms that you use for the rest of that program.
  39097. +#
  39098. +# GNU Libtool is distributed in the hope that it will be useful,
  39099. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  39100. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  39101. +# GNU General Public License for more details.
  39102. +#
  39103. +# You should have received a copy of the GNU General Public License
  39104. +# along with GNU Libtool; see the file COPYING. If not, a copy
  39105. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  39106. +# obtained by writing to the Free Software Foundation, Inc.,
  39107. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  39108. -ac_config_files="$ac_config_files Makefile conf/Makefile debian/Makefile src/Makefile src/avl/Makefile src/httpp/Makefile src/thread/Makefile src/log/Makefile src/net/Makefile src/timing/Makefile doc/Makefile web/Makefile admin/Makefile win32/Makefile win32/res/Makefile examples/Makefile"
  39109. +# The names of the tagged configurations supported by this script.
  39110. +available_tags=""
  39111. -cat >confcache <<\_ACEOF
  39112. -# This file is a shell script that caches the results of configure
  39113. -# tests run on this system so they can be shared between configure
  39114. -# scripts and configure runs, see configure's option --config-cache.
  39115. -# It is not useful on other systems. If it contains results you don't
  39116. -# want to keep, you may remove or edit it.
  39117. -#
  39118. -# config.status only pays attention to the cache file if you give it
  39119. -# the --recheck option to rerun configure.
  39120. -#
  39121. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  39122. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  39123. -# following values.
  39124. +# ### BEGIN LIBTOOL CONFIG
  39125. -_ACEOF
  39126. +# Which release of libtool.m4 was used?
  39127. +macro_version=$macro_version
  39128. +macro_revision=$macro_revision
  39129. -# The following way of writing the cache mishandles newlines in values,
  39130. -# but we know of no workaround that is simple, portable, and efficient.
  39131. -# So, we kill variables containing newlines.
  39132. -# Ultrix sh set writes to stderr and can't be redirected directly,
  39133. -# and sets the high bit in the cache file unless we assign to the vars.
  39134. -(
  39135. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  39136. - eval ac_val=\$$ac_var
  39137. - case $ac_val in #(
  39138. - *${as_nl}*)
  39139. - case $ac_var in #(
  39140. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  39141. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  39142. - esac
  39143. - case $ac_var in #(
  39144. - _ | IFS | as_nl) ;; #(
  39145. - *) $as_unset $ac_var ;;
  39146. - esac ;;
  39147. - esac
  39148. - done
  39149. +# Whether or not to build shared libraries.
  39150. +build_libtool_libs=$enable_shared
  39151. - (set) 2>&1 |
  39152. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  39153. - *${as_nl}ac_space=\ *)
  39154. - # `set' does not quote correctly, so add quotes (double-quote
  39155. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  39156. - sed -n \
  39157. - "s/'/'\\\\''/g;
  39158. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  39159. - ;; #(
  39160. - *)
  39161. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  39162. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  39163. - ;;
  39164. - esac |
  39165. - sort
  39166. -) |
  39167. - sed '
  39168. - /^ac_cv_env_/b end
  39169. - t clear
  39170. - :clear
  39171. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  39172. - t end
  39173. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  39174. - :end' >>confcache
  39175. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  39176. - if test -w "$cache_file"; then
  39177. - test "x$cache_file" != "x/dev/null" &&
  39178. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  39179. -echo "$as_me: updating cache $cache_file" >&6;}
  39180. - cat confcache >$cache_file
  39181. - else
  39182. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  39183. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  39184. - fi
  39185. -fi
  39186. -rm -f confcache
  39187. +# Whether or not to build static libraries.
  39188. +build_old_libs=$enable_static
  39189. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  39190. -# Let make expand exec_prefix.
  39191. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  39192. +# What type of objects to build.
  39193. +pic_mode=$pic_mode
  39194. -DEFS=-DHAVE_CONFIG_H
  39195. +# Whether or not to optimize for fast installation.
  39196. +fast_install=$enable_fast_install
  39197. -ac_libobjs=
  39198. -ac_ltlibobjs=
  39199. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  39200. - # 1. Remove the extension, and $U if already installed.
  39201. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  39202. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  39203. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  39204. - # will be set to the directory where LIBOBJS objects are built.
  39205. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  39206. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  39207. -done
  39208. -LIBOBJS=$ac_libobjs
  39209. +# The host system.
  39210. +host_alias=$host_alias
  39211. +host=$host
  39212. +host_os=$host_os
  39213. -LTLIBOBJS=$ac_ltlibobjs
  39214. +# The build system.
  39215. +build_alias=$build_alias
  39216. +build=$build
  39217. +build_os=$build_os
  39218. +# A sed program that does not truncate output.
  39219. +SED=$lt_SED
  39220. -if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  39221. - { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  39222. -Usually this means the macro was only invoked conditionally." >&5
  39223. -echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  39224. -Usually this means the macro was only invoked conditionally." >&2;}
  39225. - { (exit 1); exit 1; }; }
  39226. -fi
  39227. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  39228. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  39229. -Usually this means the macro was only invoked conditionally." >&5
  39230. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  39231. -Usually this means the macro was only invoked conditionally." >&2;}
  39232. - { (exit 1); exit 1; }; }
  39233. -fi
  39234. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  39235. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  39236. -Usually this means the macro was only invoked conditionally." >&5
  39237. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  39238. -Usually this means the macro was only invoked conditionally." >&2;}
  39239. - { (exit 1); exit 1; }; }
  39240. -fi
  39241. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  39242. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  39243. -Usually this means the macro was only invoked conditionally." >&5
  39244. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  39245. -Usually this means the macro was only invoked conditionally." >&2;}
  39246. - { (exit 1); exit 1; }; }
  39247. -fi
  39248. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  39249. +Xsed="\$SED -e 1s/^X//"
  39250. -: ${CONFIG_STATUS=./config.status}
  39251. -ac_clean_files_save=$ac_clean_files
  39252. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  39253. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  39254. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  39255. -cat >$CONFIG_STATUS <<_ACEOF
  39256. -#! $SHELL
  39257. -# Generated by $as_me.
  39258. -# Run this file to recreate the current configuration.
  39259. -# Compiler output produced by configure, useful for debugging
  39260. -# configure, is in config.log if it exists.
  39261. +# A grep program that handles long lines.
  39262. +GREP=$lt_GREP
  39263. -debug=false
  39264. -ac_cs_recheck=false
  39265. -ac_cs_silent=false
  39266. -SHELL=\${CONFIG_SHELL-$SHELL}
  39267. -_ACEOF
  39268. +# An ERE matcher.
  39269. +EGREP=$lt_EGREP
  39270. -cat >>$CONFIG_STATUS <<\_ACEOF
  39271. -## --------------------- ##
  39272. -## M4sh Initialization. ##
  39273. -## --------------------- ##
  39274. +# A literal string matcher.
  39275. +FGREP=$lt_FGREP
  39276. -# Be more Bourne compatible
  39277. -DUALCASE=1; export DUALCASE # for MKS sh
  39278. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  39279. - emulate sh
  39280. - NULLCMD=:
  39281. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  39282. - # is contrary to our usage. Disable this feature.
  39283. - alias -g '${1+"$@"}'='"$@"'
  39284. - setopt NO_GLOB_SUBST
  39285. -else
  39286. - case `(set -o) 2>/dev/null` in
  39287. - *posix*) set -o posix ;;
  39288. -esac
  39289. +# A BSD- or MS-compatible name lister.
  39290. +NM=$lt_NM
  39291. -fi
  39292. +# Whether we need soft or hard links.
  39293. +LN_S=$lt_LN_S
  39294. +# What is the maximum length of a command?
  39295. +max_cmd_len=$max_cmd_len
  39296. +# Object file suffix (normally "o").
  39297. +objext=$ac_objext
  39298. +# Executable file suffix (normally "").
  39299. +exeext=$exeext
  39300. -# PATH needs CR
  39301. -# Avoid depending upon Character Ranges.
  39302. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  39303. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  39304. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  39305. -as_cr_digits='0123456789'
  39306. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  39307. +# whether the shell understands "unset".
  39308. +lt_unset=$lt_unset
  39309. -# The user is always right.
  39310. -if test "${PATH_SEPARATOR+set}" != set; then
  39311. - echo "#! /bin/sh" >conf$$.sh
  39312. - echo "exit 0" >>conf$$.sh
  39313. - chmod +x conf$$.sh
  39314. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39315. - PATH_SEPARATOR=';'
  39316. - else
  39317. - PATH_SEPARATOR=:
  39318. - fi
  39319. - rm -f conf$$.sh
  39320. -fi
  39321. +# turn spaces into newlines.
  39322. +SP2NL=$lt_lt_SP2NL
  39323. -# Support unset when possible.
  39324. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  39325. - as_unset=unset
  39326. -else
  39327. - as_unset=false
  39328. -fi
  39329. +# turn newlines into spaces.
  39330. +NL2SP=$lt_lt_NL2SP
  39331. +# How to create reloadable object files.
  39332. +reload_flag=$lt_reload_flag
  39333. +reload_cmds=$lt_reload_cmds
  39334. -# IFS
  39335. -# We need space, tab and new line, in precisely that order. Quoting is
  39336. -# there to prevent editors from complaining about space-tab.
  39337. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  39338. -# splitting by setting IFS to empty value.)
  39339. -as_nl='
  39340. -'
  39341. -IFS=" "" $as_nl"
  39342. +# An object symbol dumper.
  39343. +OBJDUMP=$lt_OBJDUMP
  39344. -# Find who we are. Look in the path if we contain no directory separator.
  39345. -case $0 in
  39346. - *[\\/]* ) as_myself=$0 ;;
  39347. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  39348. -for as_dir in $PATH
  39349. -do
  39350. - IFS=$as_save_IFS
  39351. - test -z "$as_dir" && as_dir=.
  39352. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  39353. -done
  39354. -IFS=$as_save_IFS
  39355. +# Method to check whether dependent libraries are shared objects.
  39356. +deplibs_check_method=$lt_deplibs_check_method
  39357. - ;;
  39358. -esac
  39359. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  39360. -# in which case we are not to be found in the path.
  39361. -if test "x$as_myself" = x; then
  39362. - as_myself=$0
  39363. -fi
  39364. -if test ! -f "$as_myself"; then
  39365. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  39366. - { (exit 1); exit 1; }
  39367. -fi
  39368. +# Command to use when deplibs_check_method == "file_magic".
  39369. +file_magic_cmd=$lt_file_magic_cmd
  39370. -# Work around bugs in pre-3.0 UWIN ksh.
  39371. -for as_var in ENV MAIL MAILPATH
  39372. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  39373. -done
  39374. -PS1='$ '
  39375. -PS2='> '
  39376. -PS4='+ '
  39377. +# The archiver.
  39378. +AR=$lt_AR
  39379. +AR_FLAGS=$lt_AR_FLAGS
  39380. -# NLS nuisances.
  39381. -for as_var in \
  39382. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  39383. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39384. - LC_TELEPHONE LC_TIME
  39385. -do
  39386. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  39387. - eval $as_var=C; export $as_var
  39388. - else
  39389. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  39390. - fi
  39391. -done
  39392. +# A symbol stripping program.
  39393. +STRIP=$lt_STRIP
  39394. -# Required to use basename.
  39395. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  39396. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  39397. - as_expr=expr
  39398. -else
  39399. - as_expr=false
  39400. -fi
  39401. +# Commands used to install an old-style archive.
  39402. +RANLIB=$lt_RANLIB
  39403. +old_postinstall_cmds=$lt_old_postinstall_cmds
  39404. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  39405. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  39406. - as_basename=basename
  39407. -else
  39408. - as_basename=false
  39409. -fi
  39410. +# A C compiler.
  39411. +LTCC=$lt_CC
  39412. +# LTCC compiler flags.
  39413. +LTCFLAGS=$lt_CFLAGS
  39414. -# Name of the executable.
  39415. -as_me=`$as_basename -- "$0" ||
  39416. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  39417. - X"$0" : 'X\(//\)$' \| \
  39418. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  39419. -echo X/"$0" |
  39420. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  39421. - s//\1/
  39422. - q
  39423. - }
  39424. - /^X\/\(\/\/\)$/{
  39425. - s//\1/
  39426. - q
  39427. - }
  39428. - /^X\/\(\/\).*/{
  39429. - s//\1/
  39430. - q
  39431. - }
  39432. - s/.*/./; q'`
  39433. +# Take the output of nm and produce a listing of raw symbols and C names.
  39434. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  39435. -# CDPATH.
  39436. -$as_unset CDPATH
  39437. +# Transform the output of nm in a proper C declaration.
  39438. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  39439. +# Transform the output of nm in a C name address pair.
  39440. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  39441. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  39442. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  39443. - as_lineno_1=$LINENO
  39444. - as_lineno_2=$LINENO
  39445. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  39446. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  39447. -
  39448. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  39449. - # uniformly replaced by the line number. The first 'sed' inserts a
  39450. - # line-number line after each line using $LINENO; the second 'sed'
  39451. - # does the real work. The second script uses 'N' to pair each
  39452. - # line-number line with the line containing $LINENO, and appends
  39453. - # trailing '-' during substitution so that $LINENO is not a special
  39454. - # case at line end.
  39455. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  39456. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  39457. - # E. McMahon (1931-1989) for sed's syntax. :-)
  39458. - sed -n '
  39459. - p
  39460. - /[$]LINENO/=
  39461. - ' <$as_myself |
  39462. - sed '
  39463. - s/[$]LINENO.*/&-/
  39464. - t lineno
  39465. - b
  39466. - :lineno
  39467. - N
  39468. - :loop
  39469. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  39470. - t loop
  39471. - s/-\n.*//
  39472. - ' >$as_me.lineno &&
  39473. - chmod +x "$as_me.lineno" ||
  39474. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  39475. - { (exit 1); exit 1; }; }
  39476. +# The name of the directory that contains temporary libtool files.
  39477. +objdir=$objdir
  39478. - # Don't try to exec as it changes $[0], causing all sort of problems
  39479. - # (the dirname of $[0] is not the place where we might find the
  39480. - # original and so on. Autoconf is especially sensitive to this).
  39481. - . "./$as_me.lineno"
  39482. - # Exit status is that of the last command.
  39483. - exit
  39484. -}
  39485. +# Shell to use when invoking shell scripts.
  39486. +SHELL=$lt_SHELL
  39487. +# An echo program that does not interpret backslashes.
  39488. +ECHO=$lt_ECHO
  39489. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  39490. - as_dirname=dirname
  39491. -else
  39492. - as_dirname=false
  39493. -fi
  39494. +# Used to examine libraries when file_magic_cmd begins with "file".
  39495. +MAGIC_CMD=$MAGIC_CMD
  39496. -ECHO_C= ECHO_N= ECHO_T=
  39497. -case `echo -n x` in
  39498. --n*)
  39499. - case `echo 'x\c'` in
  39500. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  39501. - *) ECHO_C='\c';;
  39502. - esac;;
  39503. -*)
  39504. - ECHO_N='-n';;
  39505. -esac
  39506. +# Must we lock files when doing compilation?
  39507. +need_locks=$lt_need_locks
  39508. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  39509. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  39510. - as_expr=expr
  39511. -else
  39512. - as_expr=false
  39513. -fi
  39514. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  39515. +DSYMUTIL=$lt_DSYMUTIL
  39516. -rm -f conf$$ conf$$.exe conf$$.file
  39517. -if test -d conf$$.dir; then
  39518. - rm -f conf$$.dir/conf$$.file
  39519. -else
  39520. - rm -f conf$$.dir
  39521. - mkdir conf$$.dir
  39522. -fi
  39523. -echo >conf$$.file
  39524. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  39525. - as_ln_s='ln -s'
  39526. - # ... but there are two gotchas:
  39527. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  39528. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  39529. - # In both cases, we have to default to `cp -p'.
  39530. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  39531. - as_ln_s='cp -p'
  39532. -elif ln conf$$.file conf$$ 2>/dev/null; then
  39533. - as_ln_s=ln
  39534. -else
  39535. - as_ln_s='cp -p'
  39536. -fi
  39537. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  39538. -rmdir conf$$.dir 2>/dev/null
  39539. +# Tool to change global to local symbols on Mac OS X.
  39540. +NMEDIT=$lt_NMEDIT
  39541. -if mkdir -p . 2>/dev/null; then
  39542. - as_mkdir_p=:
  39543. -else
  39544. - test -d ./-p && rmdir ./-p
  39545. - as_mkdir_p=false
  39546. -fi
  39547. +# Tool to manipulate fat objects and archives on Mac OS X.
  39548. +LIPO=$lt_LIPO
  39549. -if test -x / >/dev/null 2>&1; then
  39550. - as_test_x='test -x'
  39551. -else
  39552. - if ls -dL / >/dev/null 2>&1; then
  39553. - as_ls_L_option=L
  39554. - else
  39555. - as_ls_L_option=
  39556. - fi
  39557. - as_test_x='
  39558. - eval sh -c '\''
  39559. - if test -d "$1"; then
  39560. - test -d "$1/.";
  39561. - else
  39562. - case $1 in
  39563. - -*)set "./$1";;
  39564. - esac;
  39565. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  39566. - ???[sx]*):;;*)false;;esac;fi
  39567. - '\'' sh
  39568. - '
  39569. -fi
  39570. -as_executable_p=$as_test_x
  39571. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  39572. +OTOOL=$lt_OTOOL
  39573. -# Sed expression to map a string onto a valid CPP name.
  39574. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  39575. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  39576. +OTOOL64=$lt_OTOOL64
  39577. -# Sed expression to map a string onto a valid variable name.
  39578. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  39579. +# Old archive suffix (normally "a").
  39580. +libext=$libext
  39581. +# Shared library suffix (normally ".so").
  39582. +shrext_cmds=$lt_shrext_cmds
  39583. -exec 6>&1
  39584. +# The commands to extract the exported symbol list from a shared archive.
  39585. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  39586. -# Save the log message, to keep $[0] and so on meaningful, and to
  39587. -# report actual input values of CONFIG_FILES etc. instead of their
  39588. -# values after options handling.
  39589. -ac_log="
  39590. -This file was extended by Icecast $as_me 2.3.2, which was
  39591. -generated by GNU Autoconf 2.61. Invocation command line was
  39592. +# Variables whose values should be saved in libtool wrapper scripts and
  39593. +# restored at link time.
  39594. +variables_saved_for_relink=$lt_variables_saved_for_relink
  39595. - CONFIG_FILES = $CONFIG_FILES
  39596. - CONFIG_HEADERS = $CONFIG_HEADERS
  39597. - CONFIG_LINKS = $CONFIG_LINKS
  39598. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  39599. - $ $0 $@
  39600. +# Do we need the "lib" prefix for modules?
  39601. +need_lib_prefix=$need_lib_prefix
  39602. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  39603. -"
  39604. +# Do we need a version for libraries?
  39605. +need_version=$need_version
  39606. -_ACEOF
  39607. +# Library versioning type.
  39608. +version_type=$version_type
  39609. -cat >>$CONFIG_STATUS <<_ACEOF
  39610. -# Files that config.status was made for.
  39611. -config_files="$ac_config_files"
  39612. -config_headers="$ac_config_headers"
  39613. -config_commands="$ac_config_commands"
  39614. +# Shared library runtime path variable.
  39615. +runpath_var=$runpath_var
  39616. -_ACEOF
  39617. +# Shared library path variable.
  39618. +shlibpath_var=$shlibpath_var
  39619. -cat >>$CONFIG_STATUS <<\_ACEOF
  39620. -ac_cs_usage="\
  39621. -\`$as_me' instantiates files from templates according to the
  39622. -current configuration.
  39623. +# Is shlibpath searched before the hard-coded library search path?
  39624. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  39625. -Usage: $0 [OPTIONS] [FILE]...
  39626. +# Format of library name prefix.
  39627. +libname_spec=$lt_libname_spec
  39628. - -h, --help print this help, then exit
  39629. - -V, --version print version number and configuration settings, then exit
  39630. - -q, --quiet do not print progress messages
  39631. - -d, --debug don't remove temporary files
  39632. - --recheck update $as_me by reconfiguring in the same conditions
  39633. - --file=FILE[:TEMPLATE]
  39634. - instantiate the configuration file FILE
  39635. - --header=FILE[:TEMPLATE]
  39636. - instantiate the configuration header FILE
  39637. +# List of archive names. First name is the real one, the rest are links.
  39638. +# The last name is the one that the linker finds with -lNAME
  39639. +library_names_spec=$lt_library_names_spec
  39640. -Configuration files:
  39641. -$config_files
  39642. +# The coded name of the library, if different from the real name.
  39643. +soname_spec=$lt_soname_spec
  39644. -Configuration headers:
  39645. -$config_headers
  39646. +# Command to use after installation of a shared archive.
  39647. +postinstall_cmds=$lt_postinstall_cmds
  39648. -Configuration commands:
  39649. -$config_commands
  39650. +# Command to use after uninstallation of a shared archive.
  39651. +postuninstall_cmds=$lt_postuninstall_cmds
  39652. -Report bugs to <bug-autoconf@gnu.org>."
  39653. +# Commands used to finish a libtool library installation in a directory.
  39654. +finish_cmds=$lt_finish_cmds
  39655. -_ACEOF
  39656. -cat >>$CONFIG_STATUS <<_ACEOF
  39657. -ac_cs_version="\\
  39658. -Icecast config.status 2.3.2
  39659. -configured by $0, generated by GNU Autoconf 2.61,
  39660. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  39661. +# As "finish_cmds", except a single script fragment to be evaled but
  39662. +# not shown.
  39663. +finish_eval=$lt_finish_eval
  39664. -Copyright (C) 2006 Free Software Foundation, Inc.
  39665. -This config.status script is free software; the Free Software Foundation
  39666. -gives unlimited permission to copy, distribute and modify it."
  39667. +# Whether we should hardcode library paths into libraries.
  39668. +hardcode_into_libs=$hardcode_into_libs
  39669. -ac_pwd='$ac_pwd'
  39670. -srcdir='$srcdir'
  39671. -INSTALL='$INSTALL'
  39672. -MKDIR_P='$MKDIR_P'
  39673. -_ACEOF
  39674. +# Compile-time system search path for libraries.
  39675. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  39676. -cat >>$CONFIG_STATUS <<\_ACEOF
  39677. -# If no file are specified by the user, then we need to provide default
  39678. -# value. By we need to know if files were specified by the user.
  39679. -ac_need_defaults=:
  39680. -while test $# != 0
  39681. -do
  39682. - case $1 in
  39683. - --*=*)
  39684. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  39685. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  39686. - ac_shift=:
  39687. - ;;
  39688. - *)
  39689. - ac_option=$1
  39690. - ac_optarg=$2
  39691. - ac_shift=shift
  39692. - ;;
  39693. - esac
  39694. +# Run-time system search path for libraries.
  39695. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  39696. - case $ac_option in
  39697. - # Handling of the options.
  39698. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  39699. - ac_cs_recheck=: ;;
  39700. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  39701. - echo "$ac_cs_version"; exit ;;
  39702. - --debug | --debu | --deb | --de | --d | -d )
  39703. - debug=: ;;
  39704. - --file | --fil | --fi | --f )
  39705. - $ac_shift
  39706. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  39707. - ac_need_defaults=false;;
  39708. - --header | --heade | --head | --hea )
  39709. - $ac_shift
  39710. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  39711. - ac_need_defaults=false;;
  39712. - --he | --h)
  39713. - # Conflict between --help and --header
  39714. - { echo "$as_me: error: ambiguous option: $1
  39715. -Try \`$0 --help' for more information." >&2
  39716. - { (exit 1); exit 1; }; };;
  39717. - --help | --hel | -h )
  39718. - echo "$ac_cs_usage"; exit ;;
  39719. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  39720. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  39721. - ac_cs_silent=: ;;
  39722. +# Whether dlopen is supported.
  39723. +dlopen_support=$enable_dlopen
  39724. - # This is an error.
  39725. - -*) { echo "$as_me: error: unrecognized option: $1
  39726. -Try \`$0 --help' for more information." >&2
  39727. - { (exit 1); exit 1; }; } ;;
  39728. +# Whether dlopen of programs is supported.
  39729. +dlopen_self=$enable_dlopen_self
  39730. - *) ac_config_targets="$ac_config_targets $1"
  39731. - ac_need_defaults=false ;;
  39732. +# Whether dlopen of statically linked programs is supported.
  39733. +dlopen_self_static=$enable_dlopen_self_static
  39734. - esac
  39735. - shift
  39736. -done
  39737. +# Commands to strip libraries.
  39738. +old_striplib=$lt_old_striplib
  39739. +striplib=$lt_striplib
  39740. -ac_configure_extra_args=
  39741. -if $ac_cs_silent; then
  39742. - exec 6>/dev/null
  39743. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  39744. -fi
  39745. +# The linker used to build libraries.
  39746. +LD=$lt_LD
  39747. -_ACEOF
  39748. -cat >>$CONFIG_STATUS <<_ACEOF
  39749. -if \$ac_cs_recheck; then
  39750. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  39751. - CONFIG_SHELL=$SHELL
  39752. - export CONFIG_SHELL
  39753. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  39754. -fi
  39755. +# Commands used to build an old-style archive.
  39756. +old_archive_cmds=$lt_old_archive_cmds
  39757. -_ACEOF
  39758. -cat >>$CONFIG_STATUS <<\_ACEOF
  39759. -exec 5>>config.log
  39760. -{
  39761. - echo
  39762. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  39763. -## Running $as_me. ##
  39764. -_ASBOX
  39765. - echo "$ac_log"
  39766. -} >&5
  39767. +# A language specific compiler.
  39768. +CC=$lt_compiler
  39769. -_ACEOF
  39770. -cat >>$CONFIG_STATUS <<_ACEOF
  39771. -#
  39772. -# INIT-COMMANDS
  39773. -#
  39774. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  39775. +# Is the compiler the GNU compiler?
  39776. +with_gcc=$GCC
  39777. -_ACEOF
  39778. +# Compiler flag to turn off builtin functions.
  39779. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  39780. -cat >>$CONFIG_STATUS <<\_ACEOF
  39781. +# How to pass a linker flag through the compiler.
  39782. +wl=$lt_lt_prog_compiler_wl
  39783. -# Handling of arguments.
  39784. -for ac_config_target in $ac_config_targets
  39785. -do
  39786. - case $ac_config_target in
  39787. - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  39788. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  39789. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  39790. - "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
  39791. - "debian/Makefile") CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
  39792. - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  39793. - "src/avl/Makefile") CONFIG_FILES="$CONFIG_FILES src/avl/Makefile" ;;
  39794. - "src/httpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/httpp/Makefile" ;;
  39795. - "src/thread/Makefile") CONFIG_FILES="$CONFIG_FILES src/thread/Makefile" ;;
  39796. - "src/log/Makefile") CONFIG_FILES="$CONFIG_FILES src/log/Makefile" ;;
  39797. - "src/net/Makefile") CONFIG_FILES="$CONFIG_FILES src/net/Makefile" ;;
  39798. - "src/timing/Makefile") CONFIG_FILES="$CONFIG_FILES src/timing/Makefile" ;;
  39799. - "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  39800. - "web/Makefile") CONFIG_FILES="$CONFIG_FILES web/Makefile" ;;
  39801. - "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
  39802. - "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
  39803. - "win32/res/Makefile") CONFIG_FILES="$CONFIG_FILES win32/res/Makefile" ;;
  39804. - "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  39805. +# Additional compiler flags for building library objects.
  39806. +pic_flag=$lt_lt_prog_compiler_pic
  39807. +
  39808. +# Compiler flag to prevent dynamic linking.
  39809. +link_static_flag=$lt_lt_prog_compiler_static
  39810. +
  39811. +# Does compiler simultaneously support -c and -o options?
  39812. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  39813. +
  39814. +# Whether or not to add -lc for building shared libraries.
  39815. +build_libtool_need_lc=$archive_cmds_need_lc
  39816. +
  39817. +# Whether or not to disallow shared libs when runtime libs are static.
  39818. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  39819. +
  39820. +# Compiler flag to allow reflexive dlopens.
  39821. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  39822. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  39823. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  39824. - { (exit 1); exit 1; }; };;
  39825. - esac
  39826. -done
  39827. +# Compiler flag to generate shared objects directly from archives.
  39828. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  39829. +# Whether the compiler copes with passing no objects directly.
  39830. +compiler_needs_object=$lt_compiler_needs_object
  39831. -# If the user did not use the arguments to specify the items to instantiate,
  39832. -# then the envvar interface is used. Set only those that are not.
  39833. -# We use the long form for the default assignment because of an extremely
  39834. -# bizarre bug on SunOS 4.1.3.
  39835. -if $ac_need_defaults; then
  39836. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  39837. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  39838. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  39839. -fi
  39840. +# Create an old-style archive from a shared archive.
  39841. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  39842. -# Have a temporary directory for convenience. Make it in the build tree
  39843. -# simply because there is no reason against having it here, and in addition,
  39844. -# creating and moving files from /tmp can sometimes cause problems.
  39845. -# Hook for its removal unless debugging.
  39846. -# Note that there is a small window in which the directory will not be cleaned:
  39847. -# after its creation but before its name has been assigned to `$tmp'.
  39848. -$debug ||
  39849. -{
  39850. - tmp=
  39851. - trap 'exit_status=$?
  39852. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  39853. -' 0
  39854. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  39855. -}
  39856. -# Create a (secure) tmp directory for tmp files.
  39857. +# Create a temporary old-style archive to link instead of a shared archive.
  39858. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  39859. -{
  39860. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  39861. - test -n "$tmp" && test -d "$tmp"
  39862. -} ||
  39863. -{
  39864. - tmp=./conf$$-$RANDOM
  39865. - (umask 077 && mkdir "$tmp")
  39866. -} ||
  39867. -{
  39868. - echo "$me: cannot create a temporary directory in ." >&2
  39869. - { (exit 1); exit 1; }
  39870. -}
  39871. +# Commands used to build a shared archive.
  39872. +archive_cmds=$lt_archive_cmds
  39873. +archive_expsym_cmds=$lt_archive_expsym_cmds
  39874. -#
  39875. -# Set up the sed scripts for CONFIG_FILES section.
  39876. -#
  39877. +# Commands used to build a loadable module if different from building
  39878. +# a shared archive.
  39879. +module_cmds=$lt_module_cmds
  39880. +module_expsym_cmds=$lt_module_expsym_cmds
  39881. -# No need to generate the scripts if there are no CONFIG_FILES.
  39882. -# This happens for instance when ./config.status config.h
  39883. -if test -n "$CONFIG_FILES"; then
  39884. +# Whether we are building with GNU ld or not.
  39885. +with_gnu_ld=$lt_with_gnu_ld
  39886. -_ACEOF
  39887. +# Flag that allows shared libraries with undefined symbols to be built.
  39888. +allow_undefined_flag=$lt_allow_undefined_flag
  39889. +# Flag that enforces no undefined symbols.
  39890. +no_undefined_flag=$lt_no_undefined_flag
  39891. +# Flag to hardcode \$libdir into a binary during linking.
  39892. +# This must work even if \$libdir does not exist
  39893. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  39894. -ac_delim='%!_!# '
  39895. -for ac_last_try in false false false false false :; do
  39896. - cat >conf$$subs.sed <<_ACEOF
  39897. -SHELL!$SHELL$ac_delim
  39898. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  39899. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  39900. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  39901. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  39902. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  39903. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  39904. -exec_prefix!$exec_prefix$ac_delim
  39905. -prefix!$prefix$ac_delim
  39906. -program_transform_name!$program_transform_name$ac_delim
  39907. -bindir!$bindir$ac_delim
  39908. -sbindir!$sbindir$ac_delim
  39909. -libexecdir!$libexecdir$ac_delim
  39910. -datarootdir!$datarootdir$ac_delim
  39911. -datadir!$datadir$ac_delim
  39912. -sysconfdir!$sysconfdir$ac_delim
  39913. -sharedstatedir!$sharedstatedir$ac_delim
  39914. -localstatedir!$localstatedir$ac_delim
  39915. -includedir!$includedir$ac_delim
  39916. -oldincludedir!$oldincludedir$ac_delim
  39917. -docdir!$docdir$ac_delim
  39918. -infodir!$infodir$ac_delim
  39919. -htmldir!$htmldir$ac_delim
  39920. -dvidir!$dvidir$ac_delim
  39921. -pdfdir!$pdfdir$ac_delim
  39922. -psdir!$psdir$ac_delim
  39923. -libdir!$libdir$ac_delim
  39924. -localedir!$localedir$ac_delim
  39925. -mandir!$mandir$ac_delim
  39926. -DEFS!$DEFS$ac_delim
  39927. -ECHO_C!$ECHO_C$ac_delim
  39928. -ECHO_N!$ECHO_N$ac_delim
  39929. -ECHO_T!$ECHO_T$ac_delim
  39930. -LIBS!$LIBS$ac_delim
  39931. -build_alias!$build_alias$ac_delim
  39932. -host_alias!$host_alias$ac_delim
  39933. -target_alias!$target_alias$ac_delim
  39934. -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  39935. -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  39936. -INSTALL_DATA!$INSTALL_DATA$ac_delim
  39937. -am__isrc!$am__isrc$ac_delim
  39938. -CYGPATH_W!$CYGPATH_W$ac_delim
  39939. -PACKAGE!$PACKAGE$ac_delim
  39940. -VERSION!$VERSION$ac_delim
  39941. -ACLOCAL!$ACLOCAL$ac_delim
  39942. -AUTOCONF!$AUTOCONF$ac_delim
  39943. -AUTOMAKE!$AUTOMAKE$ac_delim
  39944. -AUTOHEADER!$AUTOHEADER$ac_delim
  39945. -MAKEINFO!$MAKEINFO$ac_delim
  39946. -install_sh!$install_sh$ac_delim
  39947. -STRIP!$STRIP$ac_delim
  39948. -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  39949. -mkdir_p!$mkdir_p$ac_delim
  39950. -AWK!$AWK$ac_delim
  39951. -SET_MAKE!$SET_MAKE$ac_delim
  39952. -am__leading_dot!$am__leading_dot$ac_delim
  39953. -AMTAR!$AMTAR$ac_delim
  39954. -am__tar!$am__tar$ac_delim
  39955. -am__untar!$am__untar$ac_delim
  39956. -MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  39957. -MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  39958. -MAINT!$MAINT$ac_delim
  39959. -CC!$CC$ac_delim
  39960. -CFLAGS!$CFLAGS$ac_delim
  39961. -LDFLAGS!$LDFLAGS$ac_delim
  39962. -CPPFLAGS!$CPPFLAGS$ac_delim
  39963. -ac_ct_CC!$ac_ct_CC$ac_delim
  39964. -EXEEXT!$EXEEXT$ac_delim
  39965. -OBJEXT!$OBJEXT$ac_delim
  39966. -DEPDIR!$DEPDIR$ac_delim
  39967. -am__include!$am__include$ac_delim
  39968. -am__quote!$am__quote$ac_delim
  39969. -AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  39970. -AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  39971. -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  39972. -CCDEPMODE!$CCDEPMODE$ac_delim
  39973. -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  39974. -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  39975. -build!$build$ac_delim
  39976. -build_cpu!$build_cpu$ac_delim
  39977. -build_vendor!$build_vendor$ac_delim
  39978. -build_os!$build_os$ac_delim
  39979. -host!$host$ac_delim
  39980. -host_cpu!$host_cpu$ac_delim
  39981. -host_vendor!$host_vendor$ac_delim
  39982. -host_os!$host_os$ac_delim
  39983. -SED!$SED$ac_delim
  39984. -GREP!$GREP$ac_delim
  39985. -EGREP!$EGREP$ac_delim
  39986. -LN_S!$LN_S$ac_delim
  39987. -ECHO!$ECHO$ac_delim
  39988. -AR!$AR$ac_delim
  39989. -RANLIB!$RANLIB$ac_delim
  39990. -CPP!$CPP$ac_delim
  39991. -CXX!$CXX$ac_delim
  39992. -CXXFLAGS!$CXXFLAGS$ac_delim
  39993. -ac_ct_CXX!$ac_ct_CXX$ac_delim
  39994. -_ACEOF
  39995. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  39996. +# during linking. This must work even if \$libdir does not exist.
  39997. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  39998. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  39999. - break
  40000. - elif $ac_last_try; then
  40001. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  40002. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  40003. - { (exit 1); exit 1; }; }
  40004. - else
  40005. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  40006. - fi
  40007. -done
  40008. +# Whether we need a single "-rpath" flag with a separated argument.
  40009. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  40010. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  40011. -if test -n "$ac_eof"; then
  40012. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  40013. - ac_eof=`expr $ac_eof + 1`
  40014. -fi
  40015. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  40016. +# DIR into the resulting binary.
  40017. +hardcode_direct=$hardcode_direct
  40018. -cat >>$CONFIG_STATUS <<_ACEOF
  40019. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  40020. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  40021. -_ACEOF
  40022. -sed '
  40023. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  40024. -s/^/s,@/; s/!/@,|#_!!_#|/
  40025. -:n
  40026. -t n
  40027. -s/'"$ac_delim"'$/,g/; t
  40028. -s/$/\\/; p
  40029. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  40030. -' >>$CONFIG_STATUS <conf$$subs.sed
  40031. -rm -f conf$$subs.sed
  40032. -cat >>$CONFIG_STATUS <<_ACEOF
  40033. -CEOF$ac_eof
  40034. -_ACEOF
  40035. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  40036. +# DIR into the resulting binary and the resulting library dependency is
  40037. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  40038. +# library is relocated.
  40039. +hardcode_direct_absolute=$hardcode_direct_absolute
  40040. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  40041. +# into the resulting binary.
  40042. +hardcode_minus_L=$hardcode_minus_L
  40043. -ac_delim='%!_!# '
  40044. -for ac_last_try in false false false false false :; do
  40045. - cat >conf$$subs.sed <<_ACEOF
  40046. -CXXDEPMODE!$CXXDEPMODE$ac_delim
  40047. -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  40048. -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  40049. -CXXCPP!$CXXCPP$ac_delim
  40050. -F77!$F77$ac_delim
  40051. -FFLAGS!$FFLAGS$ac_delim
  40052. -ac_ct_F77!$ac_ct_F77$ac_delim
  40053. -LIBTOOL!$LIBTOOL$ac_delim
  40054. -XSLTCONFIG!$XSLTCONFIG$ac_delim
  40055. -FGREP!$FGREP$ac_delim
  40056. -OGG_PREFIX!$OGG_PREFIX$ac_delim
  40057. -OGG_LIBS!$OGG_LIBS$ac_delim
  40058. -OGG_CFLAGS!$OGG_CFLAGS$ac_delim
  40059. -OGG_LDFLAGS!$OGG_LDFLAGS$ac_delim
  40060. -VORBIS_PREFIX!$VORBIS_PREFIX$ac_delim
  40061. -VORBIS_CFLAGS!$VORBIS_CFLAGS$ac_delim
  40062. -VORBIS_LDFLAGS!$VORBIS_LDFLAGS$ac_delim
  40063. -VORBIS_LIBS!$VORBIS_LIBS$ac_delim
  40064. -VORBISFILE_LIBS!$VORBISFILE_LIBS$ac_delim
  40065. -VORBISENC_LIBS!$VORBISENC_LIBS$ac_delim
  40066. -THEORA!$THEORA$ac_delim
  40067. -THEORA_CFLAGS!$THEORA_CFLAGS$ac_delim
  40068. -THEORA_LDFLAGS!$THEORA_LDFLAGS$ac_delim
  40069. -THEORA_LIBS!$THEORA_LIBS$ac_delim
  40070. -SPEEX!$SPEEX$ac_delim
  40071. -SPEEX_CFLAGS!$SPEEX_CFLAGS$ac_delim
  40072. -SPEEX_LDFLAGS!$SPEEX_LDFLAGS$ac_delim
  40073. -SPEEX_LIBS!$SPEEX_LIBS$ac_delim
  40074. -acx_pthread_config!$acx_pthread_config$ac_delim
  40075. -PTHREAD_CC!$PTHREAD_CC$ac_delim
  40076. -PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
  40077. -PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
  40078. -PTHREAD_CPPFLAGS!$PTHREAD_CPPFLAGS$ac_delim
  40079. -CURL_CONFIG!$CURL_CONFIG$ac_delim
  40080. -CURL_CFLAGS!$CURL_CFLAGS$ac_delim
  40081. -CURL_LIBS!$CURL_LIBS$ac_delim
  40082. -PKGCONFIG!$PKGCONFIG$ac_delim
  40083. -XIPH_CPPFLAGS!$XIPH_CPPFLAGS$ac_delim
  40084. -XIPH_CFLAGS!$XIPH_CFLAGS$ac_delim
  40085. -XIPH_LIBS!$XIPH_LIBS$ac_delim
  40086. -XIPH_LDFLAGS!$XIPH_LDFLAGS$ac_delim
  40087. -LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
  40088. -DEBUG!$DEBUG$ac_delim
  40089. -PROFILE!$PROFILE$ac_delim
  40090. -ICECAST_OPTIONAL!$ICECAST_OPTIONAL$ac_delim
  40091. -HAVE_KATE!$HAVE_KATE$ac_delim
  40092. -KATE_LIBS!$KATE_LIBS$ac_delim
  40093. -LIBOBJS!$LIBOBJS$ac_delim
  40094. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  40095. -_ACEOF
  40096. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  40097. +# into the resulting binary.
  40098. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  40099. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
  40100. - break
  40101. - elif $ac_last_try; then
  40102. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  40103. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  40104. - { (exit 1); exit 1; }; }
  40105. - else
  40106. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  40107. - fi
  40108. -done
  40109. +# Set to "yes" if building a shared library automatically hardcodes DIR
  40110. +# into the library and all subsequent libraries and executables linked
  40111. +# against it.
  40112. +hardcode_automatic=$hardcode_automatic
  40113. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  40114. -if test -n "$ac_eof"; then
  40115. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  40116. - ac_eof=`expr $ac_eof + 1`
  40117. -fi
  40118. -
  40119. -cat >>$CONFIG_STATUS <<_ACEOF
  40120. -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  40121. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  40122. -_ACEOF
  40123. -sed '
  40124. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  40125. -s/^/s,@/; s/!/@,|#_!!_#|/
  40126. -:n
  40127. -t n
  40128. -s/'"$ac_delim"'$/,g/; t
  40129. -s/$/\\/; p
  40130. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  40131. -' >>$CONFIG_STATUS <conf$$subs.sed
  40132. -rm -f conf$$subs.sed
  40133. -cat >>$CONFIG_STATUS <<_ACEOF
  40134. -:end
  40135. -s/|#_!!_#|//g
  40136. -CEOF$ac_eof
  40137. -_ACEOF
  40138. +# Set to yes if linker adds runtime paths of dependent libraries
  40139. +# to runtime path list.
  40140. +inherit_rpath=$inherit_rpath
  40141. +# Whether libtool must link a program against all its dependency libraries.
  40142. +link_all_deplibs=$link_all_deplibs
  40143. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  40144. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  40145. -# trailing colons and then remove the whole line if VPATH becomes empty
  40146. -# (actually we leave an empty line to preserve line numbers).
  40147. -if test "x$srcdir" = x.; then
  40148. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  40149. -s/:*\$(srcdir):*/:/
  40150. -s/:*\${srcdir}:*/:/
  40151. -s/:*@srcdir@:*/:/
  40152. -s/^\([^=]*=[ ]*\):*/\1/
  40153. -s/:*$//
  40154. -s/^[^=]*=[ ]*$//
  40155. -}'
  40156. -fi
  40157. +# Fix the shell variable \$srcfile for the compiler.
  40158. +fix_srcfile_path=$lt_fix_srcfile_path
  40159. -cat >>$CONFIG_STATUS <<\_ACEOF
  40160. -fi # test -n "$CONFIG_FILES"
  40161. +# Set to "yes" if exported symbols are required.
  40162. +always_export_symbols=$always_export_symbols
  40163. +# The commands to list exported symbols.
  40164. +export_symbols_cmds=$lt_export_symbols_cmds
  40165. -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  40166. -do
  40167. - case $ac_tag in
  40168. - :[FHLC]) ac_mode=$ac_tag; continue;;
  40169. - esac
  40170. - case $ac_mode$ac_tag in
  40171. - :[FHL]*:*);;
  40172. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  40173. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  40174. - { (exit 1); exit 1; }; };;
  40175. - :[FH]-) ac_tag=-:-;;
  40176. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  40177. - esac
  40178. - ac_save_IFS=$IFS
  40179. - IFS=:
  40180. - set x $ac_tag
  40181. - IFS=$ac_save_IFS
  40182. - shift
  40183. - ac_file=$1
  40184. - shift
  40185. +# Symbols that should not be listed in the preloaded symbols.
  40186. +exclude_expsyms=$lt_exclude_expsyms
  40187. - case $ac_mode in
  40188. - :L) ac_source=$1;;
  40189. - :[FH])
  40190. - ac_file_inputs=
  40191. - for ac_f
  40192. - do
  40193. - case $ac_f in
  40194. - -) ac_f="$tmp/stdin";;
  40195. - *) # Look for the file first in the build tree, then in the source tree
  40196. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  40197. - # because $ac_f cannot contain `:'.
  40198. - test -f "$ac_f" ||
  40199. - case $ac_f in
  40200. - [\\/$]*) false;;
  40201. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  40202. - esac ||
  40203. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  40204. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  40205. - { (exit 1); exit 1; }; };;
  40206. - esac
  40207. - ac_file_inputs="$ac_file_inputs $ac_f"
  40208. - done
  40209. +# Symbols that must always be exported.
  40210. +include_expsyms=$lt_include_expsyms
  40211. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  40212. - # use $as_me), people would be surprised to read:
  40213. - # /* config.h. Generated by config.status. */
  40214. - configure_input="Generated from "`IFS=:
  40215. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  40216. - if test x"$ac_file" != x-; then
  40217. - configure_input="$ac_file. $configure_input"
  40218. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  40219. -echo "$as_me: creating $ac_file" >&6;}
  40220. - fi
  40221. +# Commands necessary for linking programs (against libraries) with templates.
  40222. +prelink_cmds=$lt_prelink_cmds
  40223. - case $ac_tag in
  40224. - *:-:* | *:-) cat >"$tmp/stdin";;
  40225. - esac
  40226. - ;;
  40227. - esac
  40228. +# Specify filename containing input files.
  40229. +file_list_spec=$lt_file_list_spec
  40230. - ac_dir=`$as_dirname -- "$ac_file" ||
  40231. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40232. - X"$ac_file" : 'X\(//\)[^/]' \| \
  40233. - X"$ac_file" : 'X\(//\)$' \| \
  40234. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  40235. -echo X"$ac_file" |
  40236. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40237. - s//\1/
  40238. - q
  40239. - }
  40240. - /^X\(\/\/\)[^/].*/{
  40241. - s//\1/
  40242. - q
  40243. - }
  40244. - /^X\(\/\/\)$/{
  40245. - s//\1/
  40246. - q
  40247. - }
  40248. - /^X\(\/\).*/{
  40249. - s//\1/
  40250. - q
  40251. - }
  40252. - s/.*/./; q'`
  40253. - { as_dir="$ac_dir"
  40254. - case $as_dir in #(
  40255. - -*) as_dir=./$as_dir;;
  40256. - esac
  40257. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  40258. - as_dirs=
  40259. - while :; do
  40260. - case $as_dir in #(
  40261. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  40262. - *) as_qdir=$as_dir;;
  40263. - esac
  40264. - as_dirs="'$as_qdir' $as_dirs"
  40265. - as_dir=`$as_dirname -- "$as_dir" ||
  40266. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40267. - X"$as_dir" : 'X\(//\)[^/]' \| \
  40268. - X"$as_dir" : 'X\(//\)$' \| \
  40269. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  40270. -echo X"$as_dir" |
  40271. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40272. - s//\1/
  40273. - q
  40274. - }
  40275. - /^X\(\/\/\)[^/].*/{
  40276. - s//\1/
  40277. - q
  40278. - }
  40279. - /^X\(\/\/\)$/{
  40280. - s//\1/
  40281. - q
  40282. - }
  40283. - /^X\(\/\).*/{
  40284. - s//\1/
  40285. - q
  40286. - }
  40287. - s/.*/./; q'`
  40288. - test -d "$as_dir" && break
  40289. - done
  40290. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  40291. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  40292. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  40293. - { (exit 1); exit 1; }; }; }
  40294. - ac_builddir=.
  40295. +# How to hardcode a shared library path into an executable.
  40296. +hardcode_action=$hardcode_action
  40297. -case "$ac_dir" in
  40298. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  40299. -*)
  40300. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  40301. - # A ".." for each directory in $ac_dir_suffix.
  40302. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  40303. - case $ac_top_builddir_sub in
  40304. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  40305. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  40306. - esac ;;
  40307. -esac
  40308. -ac_abs_top_builddir=$ac_pwd
  40309. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  40310. -# for backward compatibility:
  40311. -ac_top_builddir=$ac_top_build_prefix
  40312. +# ### END LIBTOOL CONFIG
  40313. +
  40314. +_LT_EOF
  40315. +
  40316. + case $host_os in
  40317. + aix3*)
  40318. + cat <<\_LT_EOF >> "$cfgfile"
  40319. +# AIX sometimes has problems with the GCC collect2 program. For some
  40320. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  40321. +# vanish in a puff of smoke.
  40322. +if test "X${COLLECT_NAMES+set}" != Xset; then
  40323. + COLLECT_NAMES=
  40324. + export COLLECT_NAMES
  40325. +fi
  40326. +_LT_EOF
  40327. + ;;
  40328. + esac
  40329. -case $srcdir in
  40330. - .) # We are building in place.
  40331. - ac_srcdir=.
  40332. - ac_top_srcdir=$ac_top_builddir_sub
  40333. - ac_abs_top_srcdir=$ac_pwd ;;
  40334. - [\\/]* | ?:[\\/]* ) # Absolute name.
  40335. - ac_srcdir=$srcdir$ac_dir_suffix;
  40336. - ac_top_srcdir=$srcdir
  40337. - ac_abs_top_srcdir=$srcdir ;;
  40338. - *) # Relative name.
  40339. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  40340. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  40341. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  40342. -esac
  40343. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  40344. +ltmain="$ac_aux_dir/ltmain.sh"
  40345. - case $ac_mode in
  40346. - :F)
  40347. - #
  40348. - # CONFIG_FILE
  40349. - #
  40350. - case $INSTALL in
  40351. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  40352. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  40353. - esac
  40354. - ac_MKDIR_P=$MKDIR_P
  40355. - case $MKDIR_P in
  40356. - [\\/$]* | ?:[\\/]* ) ;;
  40357. - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  40358. + # We use sed instead of cat because bash on DJGPP gets confused if
  40359. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  40360. + # text mode, it properly converts lines to CR/LF. This bash problem
  40361. + # is reportedly fixed, but why not run on old versions too?
  40362. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  40363. + || (rm -f "$cfgfile"; exit 1)
  40364. +
  40365. + case $xsi_shell in
  40366. + yes)
  40367. + cat << \_LT_EOF >> "$cfgfile"
  40368. +
  40369. +# func_dirname file append nondir_replacement
  40370. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  40371. +# otherwise set result to NONDIR_REPLACEMENT.
  40372. +func_dirname ()
  40373. +{
  40374. + case ${1} in
  40375. + */*) func_dirname_result="${1%/*}${2}" ;;
  40376. + * ) func_dirname_result="${3}" ;;
  40377. esac
  40378. -_ACEOF
  40379. +}
  40380. -cat >>$CONFIG_STATUS <<\_ACEOF
  40381. -# If the template does not know about datarootdir, expand it.
  40382. -# FIXME: This hack should be removed a few years after 2.60.
  40383. -ac_datarootdir_hack=; ac_datarootdir_seen=
  40384. +# func_basename file
  40385. +func_basename ()
  40386. +{
  40387. + func_basename_result="${1##*/}"
  40388. +}
  40389. -case `sed -n '/datarootdir/ {
  40390. - p
  40391. - q
  40392. +# func_dirname_and_basename file append nondir_replacement
  40393. +# perform func_basename and func_dirname in a single function
  40394. +# call:
  40395. +# dirname: Compute the dirname of FILE. If nonempty,
  40396. +# add APPEND to the result, otherwise set result
  40397. +# to NONDIR_REPLACEMENT.
  40398. +# value returned in "$func_dirname_result"
  40399. +# basename: Compute filename of FILE.
  40400. +# value retuned in "$func_basename_result"
  40401. +# Implementation must be kept synchronized with func_dirname
  40402. +# and func_basename. For efficiency, we do not delegate to
  40403. +# those functions but instead duplicate the functionality here.
  40404. +func_dirname_and_basename ()
  40405. +{
  40406. + case ${1} in
  40407. + */*) func_dirname_result="${1%/*}${2}" ;;
  40408. + * ) func_dirname_result="${3}" ;;
  40409. + esac
  40410. + func_basename_result="${1##*/}"
  40411. }
  40412. -/@datadir@/p
  40413. -/@docdir@/p
  40414. -/@infodir@/p
  40415. -/@localedir@/p
  40416. -/@mandir@/p
  40417. -' $ac_file_inputs` in
  40418. -*datarootdir*) ac_datarootdir_seen=yes;;
  40419. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  40420. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  40421. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  40422. -_ACEOF
  40423. -cat >>$CONFIG_STATUS <<_ACEOF
  40424. - ac_datarootdir_hack='
  40425. - s&@datadir@&$datadir&g
  40426. - s&@docdir@&$docdir&g
  40427. - s&@infodir@&$infodir&g
  40428. - s&@localedir@&$localedir&g
  40429. - s&@mandir@&$mandir&g
  40430. - s&\\\${datarootdir}&$datarootdir&g' ;;
  40431. -esac
  40432. -_ACEOF
  40433. -# Neutralize VPATH when `$srcdir' = `.'.
  40434. -# Shell code in configure.ac might set extrasub.
  40435. -# FIXME: do we really want to maintain this feature?
  40436. -cat >>$CONFIG_STATUS <<_ACEOF
  40437. - sed "$ac_vpsub
  40438. -$extrasub
  40439. -_ACEOF
  40440. -cat >>$CONFIG_STATUS <<\_ACEOF
  40441. -:t
  40442. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  40443. -s&@configure_input@&$configure_input&;t t
  40444. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  40445. -s&@srcdir@&$ac_srcdir&;t t
  40446. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  40447. -s&@top_srcdir@&$ac_top_srcdir&;t t
  40448. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  40449. -s&@builddir@&$ac_builddir&;t t
  40450. -s&@abs_builddir@&$ac_abs_builddir&;t t
  40451. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  40452. -s&@INSTALL@&$ac_INSTALL&;t t
  40453. -s&@MKDIR_P@&$ac_MKDIR_P&;t t
  40454. -$ac_datarootdir_hack
  40455. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  40456. +# func_stripname prefix suffix name
  40457. +# strip PREFIX and SUFFIX off of NAME.
  40458. +# PREFIX and SUFFIX must not contain globbing or regex special
  40459. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  40460. +# dot (in which case that matches only a dot).
  40461. +func_stripname ()
  40462. +{
  40463. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  40464. + # positional parameters, so assign one to ordinary parameter first.
  40465. + func_stripname_result=${3}
  40466. + func_stripname_result=${func_stripname_result#"${1}"}
  40467. + func_stripname_result=${func_stripname_result%"${2}"}
  40468. +}
  40469. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  40470. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  40471. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  40472. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  40473. -which seems to be undefined. Please make sure it is defined." >&5
  40474. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  40475. -which seems to be undefined. Please make sure it is defined." >&2;}
  40476. +# func_opt_split
  40477. +func_opt_split ()
  40478. +{
  40479. + func_opt_split_opt=${1%%=*}
  40480. + func_opt_split_arg=${1#*=}
  40481. +}
  40482. - rm -f "$tmp/stdin"
  40483. - case $ac_file in
  40484. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  40485. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  40486. +# func_lo2o object
  40487. +func_lo2o ()
  40488. +{
  40489. + case ${1} in
  40490. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  40491. + *) func_lo2o_result=${1} ;;
  40492. esac
  40493. - ;;
  40494. - :H)
  40495. - #
  40496. - # CONFIG_HEADER
  40497. - #
  40498. -_ACEOF
  40499. +}
  40500. -# Transform confdefs.h into a sed script `conftest.defines', that
  40501. -# substitutes the proper values into config.h.in to produce config.h.
  40502. -rm -f conftest.defines conftest.tail
  40503. -# First, append a space to every undef/define line, to ease matching.
  40504. -echo 's/$/ /' >conftest.defines
  40505. -# Then, protect against being on the right side of a sed subst, or in
  40506. -# an unquoted here document, in config.status. If some macros were
  40507. -# called several times there might be several #defines for the same
  40508. -# symbol, which is useless. But do not sort them, since the last
  40509. -# AC_DEFINE must be honored.
  40510. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  40511. -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  40512. -# NAME is the cpp macro being defined, VALUE is the value it is being given.
  40513. -# PARAMS is the parameter list in the macro definition--in most cases, it's
  40514. -# just an empty string.
  40515. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  40516. -ac_dB='\\)[ (].*,\\1define\\2'
  40517. -ac_dC=' '
  40518. -ac_dD=' ,'
  40519. +# func_xform libobj-or-source
  40520. +func_xform ()
  40521. +{
  40522. + func_xform_result=${1%.*}.lo
  40523. +}
  40524. -uniq confdefs.h |
  40525. - sed -n '
  40526. - t rset
  40527. - :rset
  40528. - s/^[ ]*#[ ]*define[ ][ ]*//
  40529. - t ok
  40530. - d
  40531. - :ok
  40532. - s/[\\&,]/\\&/g
  40533. - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  40534. - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  40535. - ' >>conftest.defines
  40536. -
  40537. -# Remove the space that was appended to ease matching.
  40538. -# Then replace #undef with comments. This is necessary, for
  40539. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  40540. -# on some systems where configure will not decide to define it.
  40541. -# (The regexp can be short, since the line contains either #define or #undef.)
  40542. -echo 's/ $//
  40543. -s,^[ #]*u.*,/* & */,' >>conftest.defines
  40544. -
  40545. -# Break up conftest.defines:
  40546. -ac_max_sed_lines=50
  40547. -
  40548. -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  40549. -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  40550. -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  40551. -# et cetera.
  40552. -ac_in='$ac_file_inputs'
  40553. -ac_out='"$tmp/out1"'
  40554. -ac_nxt='"$tmp/out2"'
  40555. -
  40556. -while :
  40557. -do
  40558. - # Write a here document:
  40559. - cat >>$CONFIG_STATUS <<_ACEOF
  40560. - # First, check the format of the line:
  40561. - cat >"\$tmp/defines.sed" <<\\CEOF
  40562. -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  40563. -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  40564. -b
  40565. -:def
  40566. -_ACEOF
  40567. - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  40568. - echo 'CEOF
  40569. - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  40570. - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  40571. - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  40572. - grep . conftest.tail >/dev/null || break
  40573. - rm -f conftest.defines
  40574. - mv conftest.tail conftest.defines
  40575. -done
  40576. -rm -f conftest.defines conftest.tail
  40577. +# func_arith arithmetic-term...
  40578. +func_arith ()
  40579. +{
  40580. + func_arith_result=$(( $* ))
  40581. +}
  40582. -echo "ac_result=$ac_in" >>$CONFIG_STATUS
  40583. -cat >>$CONFIG_STATUS <<\_ACEOF
  40584. - if test x"$ac_file" != x-; then
  40585. - echo "/* $configure_input */" >"$tmp/config.h"
  40586. - cat "$ac_result" >>"$tmp/config.h"
  40587. - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  40588. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  40589. -echo "$as_me: $ac_file is unchanged" >&6;}
  40590. - else
  40591. - rm -f $ac_file
  40592. - mv "$tmp/config.h" $ac_file
  40593. - fi
  40594. +# func_len string
  40595. +# STRING may not start with a hyphen.
  40596. +func_len ()
  40597. +{
  40598. + func_len_result=${#1}
  40599. +}
  40600. +
  40601. +_LT_EOF
  40602. + ;;
  40603. + *) # Bourne compatible functions.
  40604. + cat << \_LT_EOF >> "$cfgfile"
  40605. +
  40606. +# func_dirname file append nondir_replacement
  40607. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  40608. +# otherwise set result to NONDIR_REPLACEMENT.
  40609. +func_dirname ()
  40610. +{
  40611. + # Extract subdirectory from the argument.
  40612. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  40613. + if test "X$func_dirname_result" = "X${1}"; then
  40614. + func_dirname_result="${3}"
  40615. else
  40616. - echo "/* $configure_input */"
  40617. - cat "$ac_result"
  40618. + func_dirname_result="$func_dirname_result${2}"
  40619. fi
  40620. - rm -f "$tmp/out12"
  40621. -# Compute $ac_file's index in $config_headers.
  40622. -_am_stamp_count=1
  40623. -for _am_header in $config_headers :; do
  40624. - case $_am_header in
  40625. - $ac_file | $ac_file:* )
  40626. - break ;;
  40627. - * )
  40628. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  40629. - esac
  40630. -done
  40631. -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  40632. -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40633. - X$ac_file : 'X\(//\)[^/]' \| \
  40634. - X$ac_file : 'X\(//\)$' \| \
  40635. - X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  40636. -echo X$ac_file |
  40637. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40638. - s//\1/
  40639. - q
  40640. - }
  40641. - /^X\(\/\/\)[^/].*/{
  40642. - s//\1/
  40643. - q
  40644. - }
  40645. - /^X\(\/\/\)$/{
  40646. - s//\1/
  40647. - q
  40648. - }
  40649. - /^X\(\/\).*/{
  40650. - s//\1/
  40651. - q
  40652. - }
  40653. - s/.*/./; q'`/stamp-h$_am_stamp_count
  40654. - ;;
  40655. +}
  40656. - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  40657. -echo "$as_me: executing $ac_file commands" >&6;}
  40658. - ;;
  40659. +# func_basename file
  40660. +func_basename ()
  40661. +{
  40662. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  40663. +}
  40664. +
  40665. +
  40666. +# func_stripname prefix suffix name
  40667. +# strip PREFIX and SUFFIX off of NAME.
  40668. +# PREFIX and SUFFIX must not contain globbing or regex special
  40669. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  40670. +# dot (in which case that matches only a dot).
  40671. +# func_strip_suffix prefix name
  40672. +func_stripname ()
  40673. +{
  40674. + case ${2} in
  40675. + .*) func_stripname_result=`$ECHO "X${3}" \
  40676. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  40677. + *) func_stripname_result=`$ECHO "X${3}" \
  40678. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  40679. esac
  40680. +}
  40681. +# sed scripts:
  40682. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  40683. +my_sed_long_arg='1s/^-[^=]*=//'
  40684. - case $ac_file$ac_mode in
  40685. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  40686. - # Strip MF so we end up with the name of the file.
  40687. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  40688. - # Check whether this is an Automake generated Makefile or not.
  40689. - # We used to match only the files named `Makefile.in', but
  40690. - # some people rename them; so instead we look at the file content.
  40691. - # Grep'ing the first line is not enough: some people post-process
  40692. - # each Makefile.in and add a new line on top of each file to say so.
  40693. - # Grep'ing the whole file is not good either: AIX grep has a line
  40694. - # limit of 2048, but all sed's we know have understand at least 4000.
  40695. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  40696. - dirpart=`$as_dirname -- "$mf" ||
  40697. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40698. - X"$mf" : 'X\(//\)[^/]' \| \
  40699. - X"$mf" : 'X\(//\)$' \| \
  40700. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  40701. -echo X"$mf" |
  40702. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40703. - s//\1/
  40704. - q
  40705. - }
  40706. - /^X\(\/\/\)[^/].*/{
  40707. - s//\1/
  40708. - q
  40709. - }
  40710. - /^X\(\/\/\)$/{
  40711. - s//\1/
  40712. - q
  40713. - }
  40714. - /^X\(\/\).*/{
  40715. - s//\1/
  40716. - q
  40717. - }
  40718. - s/.*/./; q'`
  40719. - else
  40720. - continue
  40721. - fi
  40722. - # Extract the definition of DEPDIR, am__include, and am__quote
  40723. - # from the Makefile without running `make'.
  40724. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  40725. - test -z "$DEPDIR" && continue
  40726. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  40727. - test -z "am__include" && continue
  40728. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  40729. - # When using ansi2knr, U may be empty or an underscore; expand it
  40730. - U=`sed -n 's/^U = //p' < "$mf"`
  40731. - # Find all dependency output files, they are included files with
  40732. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  40733. - # simplest approach to changing $(DEPDIR) to its actual value in the
  40734. - # expansion.
  40735. - for file in `sed -n "
  40736. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  40737. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  40738. - # Make sure the directory exists.
  40739. - test -f "$dirpart/$file" && continue
  40740. - fdir=`$as_dirname -- "$file" ||
  40741. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40742. - X"$file" : 'X\(//\)[^/]' \| \
  40743. - X"$file" : 'X\(//\)$' \| \
  40744. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  40745. -echo X"$file" |
  40746. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40747. - s//\1/
  40748. - q
  40749. - }
  40750. - /^X\(\/\/\)[^/].*/{
  40751. - s//\1/
  40752. - q
  40753. - }
  40754. - /^X\(\/\/\)$/{
  40755. - s//\1/
  40756. - q
  40757. - }
  40758. - /^X\(\/\).*/{
  40759. - s//\1/
  40760. - q
  40761. - }
  40762. - s/.*/./; q'`
  40763. - { as_dir=$dirpart/$fdir
  40764. - case $as_dir in #(
  40765. - -*) as_dir=./$as_dir;;
  40766. +# func_opt_split
  40767. +func_opt_split ()
  40768. +{
  40769. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  40770. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  40771. +}
  40772. +
  40773. +# func_lo2o object
  40774. +func_lo2o ()
  40775. +{
  40776. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  40777. +}
  40778. +
  40779. +# func_xform libobj-or-source
  40780. +func_xform ()
  40781. +{
  40782. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  40783. +}
  40784. +
  40785. +# func_arith arithmetic-term...
  40786. +func_arith ()
  40787. +{
  40788. + func_arith_result=`expr "$@"`
  40789. +}
  40790. +
  40791. +# func_len string
  40792. +# STRING may not start with a hyphen.
  40793. +func_len ()
  40794. +{
  40795. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  40796. +}
  40797. +
  40798. +_LT_EOF
  40799. +esac
  40800. +
  40801. +case $lt_shell_append in
  40802. + yes)
  40803. + cat << \_LT_EOF >> "$cfgfile"
  40804. +
  40805. +# func_append var value
  40806. +# Append VALUE to the end of shell variable VAR.
  40807. +func_append ()
  40808. +{
  40809. + eval "$1+=\$2"
  40810. +}
  40811. +_LT_EOF
  40812. + ;;
  40813. + *)
  40814. + cat << \_LT_EOF >> "$cfgfile"
  40815. +
  40816. +# func_append var value
  40817. +# Append VALUE to the end of shell variable VAR.
  40818. +func_append ()
  40819. +{
  40820. + eval "$1=\$$1\$2"
  40821. +}
  40822. +
  40823. +_LT_EOF
  40824. + ;;
  40825. esac
  40826. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  40827. - as_dirs=
  40828. - while :; do
  40829. - case $as_dir in #(
  40830. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  40831. - *) as_qdir=$as_dir;;
  40832. - esac
  40833. - as_dirs="'$as_qdir' $as_dirs"
  40834. - as_dir=`$as_dirname -- "$as_dir" ||
  40835. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40836. - X"$as_dir" : 'X\(//\)[^/]' \| \
  40837. - X"$as_dir" : 'X\(//\)$' \| \
  40838. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  40839. -echo X"$as_dir" |
  40840. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40841. - s//\1/
  40842. - q
  40843. - }
  40844. - /^X\(\/\/\)[^/].*/{
  40845. - s//\1/
  40846. - q
  40847. - }
  40848. - /^X\(\/\/\)$/{
  40849. - s//\1/
  40850. - q
  40851. - }
  40852. - /^X\(\/\).*/{
  40853. - s//\1/
  40854. - q
  40855. - }
  40856. - s/.*/./; q'`
  40857. - test -d "$as_dir" && break
  40858. - done
  40859. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  40860. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  40861. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  40862. - { (exit 1); exit 1; }; }; }
  40863. - # echo "creating $dirpart/$file"
  40864. - echo '# dummy' > "$dirpart/$file"
  40865. - done
  40866. -done
  40867. +
  40868. +
  40869. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  40870. + || (rm -f "$cfgfile"; exit 1)
  40871. +
  40872. + mv -f "$cfgfile" "$ofile" ||
  40873. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  40874. + chmod +x "$ofile"
  40875. +
  40876. ;;
  40877. esac
  40878. done # for ac_tag
  40879. -{ (exit 0); exit 0; }
  40880. +as_fn_exit 0
  40881. _ACEOF
  40882. -chmod +x $CONFIG_STATUS
  40883. ac_clean_files=$ac_clean_files_save
  40884. +test $ac_write_fail = 0 ||
  40885. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  40886. +
  40887. # configure is writing to config.log, and then calls config.status.
  40888. # config.status does its own redirection, appending to config.log.
  40889. @@ -26135,6 +15538,10 @@
  40890. exec 5>>config.log
  40891. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  40892. # would make configure fail if this is the last instruction.
  40893. - $ac_cs_success || { (exit 1); exit 1; }
  40894. + $ac_cs_success || as_fn_exit $?
  40895. +fi
  40896. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  40897. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  40898. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  40899. fi
  40900. diff -Nur icecast-2.3.2.orig/debian/Makefile.in icecast-2.3.2/debian/Makefile.in
  40901. --- icecast-2.3.2.orig/debian/Makefile.in 2008-05-30 01:58:57.000000000 +0200
  40902. +++ icecast-2.3.2/debian/Makefile.in 2010-02-18 21:27:41.980853846 +0100
  40903. @@ -1,8 +1,9 @@
  40904. -# Makefile.in generated by automake 1.10 from Makefile.am.
  40905. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  40906. # @configure_input@
  40907. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  40908. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  40909. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  40910. +# Inc.
  40911. # This Makefile.in is free software; the Free Software Foundation
  40912. # gives unlimited permission to copy and/or distribute it,
  40913. # with or without modifications, as long as this notice is preserved.
  40914. @@ -15,8 +16,9 @@
  40915. @SET_MAKE@
  40916. VPATH = @srcdir@
  40917. pkgdatadir = $(datadir)/@PACKAGE@
  40918. -pkglibdir = $(libdir)/@PACKAGE@
  40919. pkgincludedir = $(includedir)/@PACKAGE@
  40920. +pkglibdir = $(libdir)/@PACKAGE@
  40921. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  40922. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  40923. install_sh_DATA = $(install_sh) -c -m 644
  40924. install_sh_PROGRAM = $(install_sh) -c
  40925. @@ -35,9 +37,11 @@
  40926. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  40927. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  40928. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  40929. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  40930. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  40931. - $(top_srcdir)/m4/xiph_compiler.m4 \
  40932. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  40933. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  40934. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  40935. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  40936. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  40937. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  40938. $(top_srcdir)/m4/xiph_openssl.m4 \
  40939. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  40940. @@ -47,6 +51,7 @@
  40941. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  40942. CONFIG_HEADER = $(top_builddir)/config.h
  40943. CONFIG_CLEAN_FILES =
  40944. +CONFIG_CLEAN_VPATH_FILES =
  40945. SOURCES =
  40946. DIST_SOURCES =
  40947. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  40948. @@ -65,22 +70,17 @@
  40949. CURL_CFLAGS = @CURL_CFLAGS@
  40950. CURL_CONFIG = @CURL_CONFIG@
  40951. CURL_LIBS = @CURL_LIBS@
  40952. -CXX = @CXX@
  40953. -CXXCPP = @CXXCPP@
  40954. -CXXDEPMODE = @CXXDEPMODE@
  40955. -CXXFLAGS = @CXXFLAGS@
  40956. CYGPATH_W = @CYGPATH_W@
  40957. DEBUG = @DEBUG@
  40958. DEFS = @DEFS@
  40959. DEPDIR = @DEPDIR@
  40960. -ECHO = @ECHO@
  40961. +DSYMUTIL = @DSYMUTIL@
  40962. +DUMPBIN = @DUMPBIN@
  40963. ECHO_C = @ECHO_C@
  40964. ECHO_N = @ECHO_N@
  40965. ECHO_T = @ECHO_T@
  40966. EGREP = @EGREP@
  40967. EXEEXT = @EXEEXT@
  40968. -F77 = @F77@
  40969. -FFLAGS = @FFLAGS@
  40970. FGREP = @FGREP@
  40971. GREP = @GREP@
  40972. HAVE_KATE = @HAVE_KATE@
  40973. @@ -91,26 +91,34 @@
  40974. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  40975. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  40976. KATE_LIBS = @KATE_LIBS@
  40977. +LD = @LD@
  40978. LDFLAGS = @LDFLAGS@
  40979. LIBOBJS = @LIBOBJS@
  40980. LIBS = @LIBS@
  40981. LIBTOOL = @LIBTOOL@
  40982. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  40983. +LIPO = @LIPO@
  40984. LN_S = @LN_S@
  40985. LTLIBOBJS = @LTLIBOBJS@
  40986. MAINT = @MAINT@
  40987. MAKEINFO = @MAKEINFO@
  40988. MKDIR_P = @MKDIR_P@
  40989. +NM = @NM@
  40990. +NMEDIT = @NMEDIT@
  40991. +OBJDUMP = @OBJDUMP@
  40992. OBJEXT = @OBJEXT@
  40993. OGG_CFLAGS = @OGG_CFLAGS@
  40994. OGG_LDFLAGS = @OGG_LDFLAGS@
  40995. OGG_LIBS = @OGG_LIBS@
  40996. OGG_PREFIX = @OGG_PREFIX@
  40997. +OTOOL = @OTOOL@
  40998. +OTOOL64 = @OTOOL64@
  40999. PACKAGE = @PACKAGE@
  41000. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  41001. PACKAGE_NAME = @PACKAGE_NAME@
  41002. PACKAGE_STRING = @PACKAGE_STRING@
  41003. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  41004. +PACKAGE_URL = @PACKAGE_URL@
  41005. PACKAGE_VERSION = @PACKAGE_VERSION@
  41006. PATH_SEPARATOR = @PATH_SEPARATOR@
  41007. PKGCONFIG = @PKGCONFIG@
  41008. @@ -149,8 +157,7 @@
  41009. abs_top_builddir = @abs_top_builddir@
  41010. abs_top_srcdir = @abs_top_srcdir@
  41011. ac_ct_CC = @ac_ct_CC@
  41012. -ac_ct_CXX = @ac_ct_CXX@
  41013. -ac_ct_F77 = @ac_ct_F77@
  41014. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  41015. acx_pthread_config = @acx_pthread_config@
  41016. am__include = @am__include@
  41017. am__leading_dot = @am__leading_dot@
  41018. @@ -182,6 +189,7 @@
  41019. libexecdir = @libexecdir@
  41020. localedir = @localedir@
  41021. localstatedir = @localstatedir@
  41022. +lt_ECHO = @lt_ECHO@
  41023. mandir = @mandir@
  41024. mkdir_p = @mkdir_p@
  41025. oldincludedir = @oldincludedir@
  41026. @@ -194,6 +202,7 @@
  41027. srcdir = @srcdir@
  41028. sysconfdir = @sysconfdir@
  41029. target_alias = @target_alias@
  41030. +top_build_prefix = @top_build_prefix@
  41031. top_builddir = @top_builddir@
  41032. top_srcdir = @top_srcdir@
  41033. AUTOMAKE_OPTIONS = 1.6 foreign
  41034. @@ -208,14 +217,14 @@
  41035. @for dep in $?; do \
  41036. case '$(am__configure_deps)' in \
  41037. *$$dep*) \
  41038. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  41039. - && exit 0; \
  41040. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  41041. + && { if test -f $@; then exit 0; else break; fi; }; \
  41042. exit 1;; \
  41043. esac; \
  41044. done; \
  41045. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign debian/Makefile'; \
  41046. - cd $(top_srcdir) && \
  41047. - $(AUTOMAKE) --foreign debian/Makefile
  41048. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign debian/Makefile'; \
  41049. + $(am__cd) $(top_srcdir) && \
  41050. + $(AUTOMAKE) --foreign debian/Makefile
  41051. .PRECIOUS: Makefile
  41052. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  41053. @case '$?' in \
  41054. @@ -233,6 +242,7 @@
  41055. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  41056. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  41057. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  41058. +$(am__aclocal_m4_deps):
  41059. mostlyclean-libtool:
  41060. -rm -f *.lo
  41061. @@ -262,13 +272,17 @@
  41062. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  41063. if test -d $$d/$$file; then \
  41064. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  41065. + if test -d "$(distdir)/$$file"; then \
  41066. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  41067. + fi; \
  41068. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  41069. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  41070. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  41071. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  41072. fi; \
  41073. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  41074. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  41075. else \
  41076. - test -f $(distdir)/$$file \
  41077. - || cp -p $$d/$$file $(distdir)/$$file \
  41078. + test -f "$(distdir)/$$file" \
  41079. + || cp -p $$d/$$file "$(distdir)/$$file" \
  41080. || exit 1; \
  41081. fi; \
  41082. done
  41083. @@ -296,6 +310,7 @@
  41084. distclean-generic:
  41085. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  41086. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  41087. maintainer-clean-generic:
  41088. @echo "This command is intended for maintainers to use"
  41089. @@ -314,6 +329,8 @@
  41090. html: html-am
  41091. +html-am:
  41092. +
  41093. info: info-am
  41094. info-am:
  41095. @@ -322,18 +339,28 @@
  41096. install-dvi: install-dvi-am
  41097. +install-dvi-am:
  41098. +
  41099. install-exec-am:
  41100. install-html: install-html-am
  41101. +install-html-am:
  41102. +
  41103. install-info: install-info-am
  41104. +install-info-am:
  41105. +
  41106. install-man:
  41107. install-pdf: install-pdf-am
  41108. +install-pdf-am:
  41109. +
  41110. install-ps: install-ps-am
  41111. +install-ps-am:
  41112. +
  41113. installcheck-am:
  41114. maintainer-clean: maintainer-clean-am
  41115. @@ -367,6 +394,7 @@
  41116. maintainer-clean-generic mostlyclean mostlyclean-generic \
  41117. mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  41118. +
  41119. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  41120. # Otherwise a system limit (for SysV at least) may be exceeded.
  41121. .NOEXPORT:
  41122. diff -Nur icecast-2.3.2.orig/doc/Makefile.in icecast-2.3.2/doc/Makefile.in
  41123. --- icecast-2.3.2.orig/doc/Makefile.in 2008-05-30 01:58:57.000000000 +0200
  41124. +++ icecast-2.3.2/doc/Makefile.in 2010-02-18 21:27:42.072851881 +0100
  41125. @@ -1,8 +1,9 @@
  41126. -# Makefile.in generated by automake 1.10 from Makefile.am.
  41127. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  41128. # @configure_input@
  41129. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  41130. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  41131. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  41132. +# Inc.
  41133. # This Makefile.in is free software; the Free Software Foundation
  41134. # gives unlimited permission to copy and/or distribute it,
  41135. # with or without modifications, as long as this notice is preserved.
  41136. @@ -16,8 +17,9 @@
  41137. VPATH = @srcdir@
  41138. pkgdatadir = $(datadir)/@PACKAGE@
  41139. -pkglibdir = $(libdir)/@PACKAGE@
  41140. pkgincludedir = $(includedir)/@PACKAGE@
  41141. +pkglibdir = $(libdir)/@PACKAGE@
  41142. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  41143. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  41144. install_sh_DATA = $(install_sh) -c -m 644
  41145. install_sh_PROGRAM = $(install_sh) -c
  41146. @@ -36,9 +38,11 @@
  41147. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  41148. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  41149. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  41150. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  41151. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  41152. - $(top_srcdir)/m4/xiph_compiler.m4 \
  41153. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  41154. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  41155. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  41156. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  41157. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  41158. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  41159. $(top_srcdir)/m4/xiph_openssl.m4 \
  41160. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  41161. @@ -48,6 +52,7 @@
  41162. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  41163. CONFIG_HEADER = $(top_builddir)/config.h
  41164. CONFIG_CLEAN_FILES =
  41165. +CONFIG_CLEAN_VPATH_FILES =
  41166. SOURCES =
  41167. DIST_SOURCES =
  41168. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  41169. @@ -55,9 +60,23 @@
  41170. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  41171. *) f=$$p;; \
  41172. esac;
  41173. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  41174. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  41175. +am__install_max = 40
  41176. +am__nobase_strip_setup = \
  41177. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  41178. +am__nobase_strip = \
  41179. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  41180. +am__nobase_list = $(am__nobase_strip_setup); \
  41181. + for p in $$list; do echo "$$p $$p"; done | \
  41182. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  41183. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  41184. + if (++n[$$2] == $(am__install_max)) \
  41185. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  41186. + END { for (dir in files) print dir, files[dir] }'
  41187. +am__base_list = \
  41188. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  41189. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  41190. am__installdirs = "$(DESTDIR)$(docdir)"
  41191. -docDATA_INSTALL = $(INSTALL_DATA)
  41192. DATA = $(doc_DATA)
  41193. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  41194. ACLOCAL = @ACLOCAL@
  41195. @@ -75,22 +94,17 @@
  41196. CURL_CFLAGS = @CURL_CFLAGS@
  41197. CURL_CONFIG = @CURL_CONFIG@
  41198. CURL_LIBS = @CURL_LIBS@
  41199. -CXX = @CXX@
  41200. -CXXCPP = @CXXCPP@
  41201. -CXXDEPMODE = @CXXDEPMODE@
  41202. -CXXFLAGS = @CXXFLAGS@
  41203. CYGPATH_W = @CYGPATH_W@
  41204. DEBUG = @DEBUG@
  41205. DEFS = @DEFS@
  41206. DEPDIR = @DEPDIR@
  41207. -ECHO = @ECHO@
  41208. +DSYMUTIL = @DSYMUTIL@
  41209. +DUMPBIN = @DUMPBIN@
  41210. ECHO_C = @ECHO_C@
  41211. ECHO_N = @ECHO_N@
  41212. ECHO_T = @ECHO_T@
  41213. EGREP = @EGREP@
  41214. EXEEXT = @EXEEXT@
  41215. -F77 = @F77@
  41216. -FFLAGS = @FFLAGS@
  41217. FGREP = @FGREP@
  41218. GREP = @GREP@
  41219. HAVE_KATE = @HAVE_KATE@
  41220. @@ -101,26 +115,34 @@
  41221. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  41222. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  41223. KATE_LIBS = @KATE_LIBS@
  41224. +LD = @LD@
  41225. LDFLAGS = @LDFLAGS@
  41226. LIBOBJS = @LIBOBJS@
  41227. LIBS = @LIBS@
  41228. LIBTOOL = @LIBTOOL@
  41229. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  41230. +LIPO = @LIPO@
  41231. LN_S = @LN_S@
  41232. LTLIBOBJS = @LTLIBOBJS@
  41233. MAINT = @MAINT@
  41234. MAKEINFO = @MAKEINFO@
  41235. MKDIR_P = @MKDIR_P@
  41236. +NM = @NM@
  41237. +NMEDIT = @NMEDIT@
  41238. +OBJDUMP = @OBJDUMP@
  41239. OBJEXT = @OBJEXT@
  41240. OGG_CFLAGS = @OGG_CFLAGS@
  41241. OGG_LDFLAGS = @OGG_LDFLAGS@
  41242. OGG_LIBS = @OGG_LIBS@
  41243. OGG_PREFIX = @OGG_PREFIX@
  41244. +OTOOL = @OTOOL@
  41245. +OTOOL64 = @OTOOL64@
  41246. PACKAGE = @PACKAGE@
  41247. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  41248. PACKAGE_NAME = @PACKAGE_NAME@
  41249. PACKAGE_STRING = @PACKAGE_STRING@
  41250. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  41251. +PACKAGE_URL = @PACKAGE_URL@
  41252. PACKAGE_VERSION = @PACKAGE_VERSION@
  41253. PATH_SEPARATOR = @PATH_SEPARATOR@
  41254. PKGCONFIG = @PKGCONFIG@
  41255. @@ -159,8 +181,7 @@
  41256. abs_top_builddir = @abs_top_builddir@
  41257. abs_top_srcdir = @abs_top_srcdir@
  41258. ac_ct_CC = @ac_ct_CC@
  41259. -ac_ct_CXX = @ac_ct_CXX@
  41260. -ac_ct_F77 = @ac_ct_F77@
  41261. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  41262. acx_pthread_config = @acx_pthread_config@
  41263. am__include = @am__include@
  41264. am__leading_dot = @am__leading_dot@
  41265. @@ -192,6 +213,7 @@
  41266. libexecdir = @libexecdir@
  41267. localedir = @localedir@
  41268. localstatedir = @localstatedir@
  41269. +lt_ECHO = @lt_ECHO@
  41270. mandir = @mandir@
  41271. mkdir_p = @mkdir_p@
  41272. oldincludedir = @oldincludedir@
  41273. @@ -204,6 +226,7 @@
  41274. srcdir = @srcdir@
  41275. sysconfdir = @sysconfdir@
  41276. target_alias = @target_alias@
  41277. +top_build_prefix = @top_build_prefix@
  41278. top_builddir = @top_builddir@
  41279. top_srcdir = @top_srcdir@
  41280. AUTOMAKE_OPTIONS = foreign
  41281. @@ -225,14 +248,14 @@
  41282. @for dep in $?; do \
  41283. case '$(am__configure_deps)' in \
  41284. *$$dep*) \
  41285. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  41286. - && exit 0; \
  41287. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  41288. + && { if test -f $@; then exit 0; else break; fi; }; \
  41289. exit 1;; \
  41290. esac; \
  41291. done; \
  41292. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \
  41293. - cd $(top_srcdir) && \
  41294. - $(AUTOMAKE) --foreign doc/Makefile
  41295. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \
  41296. + $(am__cd) $(top_srcdir) && \
  41297. + $(AUTOMAKE) --foreign doc/Makefile
  41298. .PRECIOUS: Makefile
  41299. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  41300. @case '$?' in \
  41301. @@ -250,6 +273,7 @@
  41302. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  41303. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  41304. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  41305. +$(am__aclocal_m4_deps):
  41306. mostlyclean-libtool:
  41307. -rm -f *.lo
  41308. @@ -259,20 +283,23 @@
  41309. install-docDATA: $(doc_DATA)
  41310. @$(NORMAL_INSTALL)
  41311. test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)"
  41312. - @list='$(doc_DATA)'; for p in $$list; do \
  41313. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  41314. + for p in $$list; do \
  41315. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  41316. - f=$(am__strip_dir) \
  41317. - echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \
  41318. - $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
  41319. + echo "$$d$$p"; \
  41320. + done | $(am__base_list) | \
  41321. + while read files; do \
  41322. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \
  41323. + $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \
  41324. done
  41325. uninstall-docDATA:
  41326. @$(NORMAL_UNINSTALL)
  41327. - @list='$(doc_DATA)'; for p in $$list; do \
  41328. - f=$(am__strip_dir) \
  41329. - echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \
  41330. - rm -f "$(DESTDIR)$(docdir)/$$f"; \
  41331. - done
  41332. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  41333. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  41334. + test -n "$$files" || exit 0; \
  41335. + echo " ( cd '$(DESTDIR)$(docdir)' && rm -f" $$files ")"; \
  41336. + cd "$(DESTDIR)$(docdir)" && rm -f $$files
  41337. tags: TAGS
  41338. TAGS:
  41339. @@ -296,13 +323,17 @@
  41340. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  41341. if test -d $$d/$$file; then \
  41342. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  41343. + if test -d "$(distdir)/$$file"; then \
  41344. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  41345. + fi; \
  41346. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  41347. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  41348. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  41349. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  41350. fi; \
  41351. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  41352. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  41353. else \
  41354. - test -f $(distdir)/$$file \
  41355. - || cp -p $$d/$$file $(distdir)/$$file \
  41356. + test -f "$(distdir)/$$file" \
  41357. + || cp -p $$d/$$file "$(distdir)/$$file" \
  41358. || exit 1; \
  41359. fi; \
  41360. done
  41361. @@ -333,6 +364,7 @@
  41362. distclean-generic:
  41363. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  41364. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  41365. maintainer-clean-generic:
  41366. @echo "This command is intended for maintainers to use"
  41367. @@ -351,6 +383,8 @@
  41368. html: html-am
  41369. +html-am:
  41370. +
  41371. info: info-am
  41372. info-am:
  41373. @@ -359,18 +393,28 @@
  41374. install-dvi: install-dvi-am
  41375. +install-dvi-am:
  41376. +
  41377. install-exec-am:
  41378. install-html: install-html-am
  41379. +install-html-am:
  41380. +
  41381. install-info: install-info-am
  41382. +install-info-am:
  41383. +
  41384. install-man:
  41385. install-pdf: install-pdf-am
  41386. +install-pdf-am:
  41387. +
  41388. install-ps: install-ps-am
  41389. +install-ps-am:
  41390. +
  41391. installcheck-am:
  41392. maintainer-clean: maintainer-clean-am
  41393. @@ -405,6 +449,7 @@
  41394. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  41395. uninstall uninstall-am uninstall-docDATA
  41396. +
  41397. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  41398. # Otherwise a system limit (for SysV at least) may be exceeded.
  41399. .NOEXPORT:
  41400. diff -Nur icecast-2.3.2.orig/examples/Makefile.in icecast-2.3.2/examples/Makefile.in
  41401. --- icecast-2.3.2.orig/examples/Makefile.in 2008-05-30 01:58:57.000000000 +0200
  41402. +++ icecast-2.3.2/examples/Makefile.in 2010-02-18 21:27:42.160852195 +0100
  41403. @@ -1,8 +1,9 @@
  41404. -# Makefile.in generated by automake 1.10 from Makefile.am.
  41405. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  41406. # @configure_input@
  41407. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  41408. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  41409. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  41410. +# Inc.
  41411. # This Makefile.in is free software; the Free Software Foundation
  41412. # gives unlimited permission to copy and/or distribute it,
  41413. # with or without modifications, as long as this notice is preserved.
  41414. @@ -15,8 +16,9 @@
  41415. @SET_MAKE@
  41416. VPATH = @srcdir@
  41417. pkgdatadir = $(datadir)/@PACKAGE@
  41418. -pkglibdir = $(libdir)/@PACKAGE@
  41419. pkgincludedir = $(includedir)/@PACKAGE@
  41420. +pkglibdir = $(libdir)/@PACKAGE@
  41421. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  41422. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  41423. install_sh_DATA = $(install_sh) -c -m 644
  41424. install_sh_PROGRAM = $(install_sh) -c
  41425. @@ -35,9 +37,11 @@
  41426. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  41427. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  41428. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  41429. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  41430. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  41431. - $(top_srcdir)/m4/xiph_compiler.m4 \
  41432. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  41433. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  41434. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  41435. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  41436. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  41437. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  41438. $(top_srcdir)/m4/xiph_openssl.m4 \
  41439. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  41440. @@ -47,6 +51,7 @@
  41441. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  41442. CONFIG_HEADER = $(top_builddir)/config.h
  41443. CONFIG_CLEAN_FILES =
  41444. +CONFIG_CLEAN_VPATH_FILES =
  41445. SOURCES =
  41446. DIST_SOURCES =
  41447. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  41448. @@ -65,22 +70,17 @@
  41449. CURL_CFLAGS = @CURL_CFLAGS@
  41450. CURL_CONFIG = @CURL_CONFIG@
  41451. CURL_LIBS = @CURL_LIBS@
  41452. -CXX = @CXX@
  41453. -CXXCPP = @CXXCPP@
  41454. -CXXDEPMODE = @CXXDEPMODE@
  41455. -CXXFLAGS = @CXXFLAGS@
  41456. CYGPATH_W = @CYGPATH_W@
  41457. DEBUG = @DEBUG@
  41458. DEFS = @DEFS@
  41459. DEPDIR = @DEPDIR@
  41460. -ECHO = @ECHO@
  41461. +DSYMUTIL = @DSYMUTIL@
  41462. +DUMPBIN = @DUMPBIN@
  41463. ECHO_C = @ECHO_C@
  41464. ECHO_N = @ECHO_N@
  41465. ECHO_T = @ECHO_T@
  41466. EGREP = @EGREP@
  41467. EXEEXT = @EXEEXT@
  41468. -F77 = @F77@
  41469. -FFLAGS = @FFLAGS@
  41470. FGREP = @FGREP@
  41471. GREP = @GREP@
  41472. HAVE_KATE = @HAVE_KATE@
  41473. @@ -91,26 +91,34 @@
  41474. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  41475. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  41476. KATE_LIBS = @KATE_LIBS@
  41477. +LD = @LD@
  41478. LDFLAGS = @LDFLAGS@
  41479. LIBOBJS = @LIBOBJS@
  41480. LIBS = @LIBS@
  41481. LIBTOOL = @LIBTOOL@
  41482. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  41483. +LIPO = @LIPO@
  41484. LN_S = @LN_S@
  41485. LTLIBOBJS = @LTLIBOBJS@
  41486. MAINT = @MAINT@
  41487. MAKEINFO = @MAKEINFO@
  41488. MKDIR_P = @MKDIR_P@
  41489. +NM = @NM@
  41490. +NMEDIT = @NMEDIT@
  41491. +OBJDUMP = @OBJDUMP@
  41492. OBJEXT = @OBJEXT@
  41493. OGG_CFLAGS = @OGG_CFLAGS@
  41494. OGG_LDFLAGS = @OGG_LDFLAGS@
  41495. OGG_LIBS = @OGG_LIBS@
  41496. OGG_PREFIX = @OGG_PREFIX@
  41497. +OTOOL = @OTOOL@
  41498. +OTOOL64 = @OTOOL64@
  41499. PACKAGE = @PACKAGE@
  41500. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  41501. PACKAGE_NAME = @PACKAGE_NAME@
  41502. PACKAGE_STRING = @PACKAGE_STRING@
  41503. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  41504. +PACKAGE_URL = @PACKAGE_URL@
  41505. PACKAGE_VERSION = @PACKAGE_VERSION@
  41506. PATH_SEPARATOR = @PATH_SEPARATOR@
  41507. PKGCONFIG = @PKGCONFIG@
  41508. @@ -149,8 +157,7 @@
  41509. abs_top_builddir = @abs_top_builddir@
  41510. abs_top_srcdir = @abs_top_srcdir@
  41511. ac_ct_CC = @ac_ct_CC@
  41512. -ac_ct_CXX = @ac_ct_CXX@
  41513. -ac_ct_F77 = @ac_ct_F77@
  41514. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  41515. acx_pthread_config = @acx_pthread_config@
  41516. am__include = @am__include@
  41517. am__leading_dot = @am__leading_dot@
  41518. @@ -182,6 +189,7 @@
  41519. libexecdir = @libexecdir@
  41520. localedir = @localedir@
  41521. localstatedir = @localstatedir@
  41522. +lt_ECHO = @lt_ECHO@
  41523. mandir = @mandir@
  41524. mkdir_p = @mkdir_p@
  41525. oldincludedir = @oldincludedir@
  41526. @@ -194,6 +202,7 @@
  41527. srcdir = @srcdir@
  41528. sysconfdir = @sysconfdir@
  41529. target_alias = @target_alias@
  41530. +top_build_prefix = @top_build_prefix@
  41531. top_builddir = @top_builddir@
  41532. top_srcdir = @top_srcdir@
  41533. AUTOMAKE_OPTIONS = foreign
  41534. @@ -205,14 +214,14 @@
  41535. @for dep in $?; do \
  41536. case '$(am__configure_deps)' in \
  41537. *$$dep*) \
  41538. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  41539. - && exit 0; \
  41540. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  41541. + && { if test -f $@; then exit 0; else break; fi; }; \
  41542. exit 1;; \
  41543. esac; \
  41544. done; \
  41545. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign examples/Makefile'; \
  41546. - cd $(top_srcdir) && \
  41547. - $(AUTOMAKE) --foreign examples/Makefile
  41548. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign examples/Makefile'; \
  41549. + $(am__cd) $(top_srcdir) && \
  41550. + $(AUTOMAKE) --foreign examples/Makefile
  41551. .PRECIOUS: Makefile
  41552. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  41553. @case '$?' in \
  41554. @@ -230,6 +239,7 @@
  41555. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  41556. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  41557. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  41558. +$(am__aclocal_m4_deps):
  41559. mostlyclean-libtool:
  41560. -rm -f *.lo
  41561. @@ -259,13 +269,17 @@
  41562. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  41563. if test -d $$d/$$file; then \
  41564. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  41565. + if test -d "$(distdir)/$$file"; then \
  41566. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  41567. + fi; \
  41568. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  41569. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  41570. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  41571. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  41572. fi; \
  41573. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  41574. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  41575. else \
  41576. - test -f $(distdir)/$$file \
  41577. - || cp -p $$d/$$file $(distdir)/$$file \
  41578. + test -f "$(distdir)/$$file" \
  41579. + || cp -p $$d/$$file "$(distdir)/$$file" \
  41580. || exit 1; \
  41581. fi; \
  41582. done
  41583. @@ -293,6 +307,7 @@
  41584. distclean-generic:
  41585. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  41586. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  41587. maintainer-clean-generic:
  41588. @echo "This command is intended for maintainers to use"
  41589. @@ -311,6 +326,8 @@
  41590. html: html-am
  41591. +html-am:
  41592. +
  41593. info: info-am
  41594. info-am:
  41595. @@ -319,18 +336,28 @@
  41596. install-dvi: install-dvi-am
  41597. +install-dvi-am:
  41598. +
  41599. install-exec-am:
  41600. install-html: install-html-am
  41601. +install-html-am:
  41602. +
  41603. install-info: install-info-am
  41604. +install-info-am:
  41605. +
  41606. install-man:
  41607. install-pdf: install-pdf-am
  41608. +install-pdf-am:
  41609. +
  41610. install-ps: install-ps-am
  41611. +install-ps-am:
  41612. +
  41613. installcheck-am:
  41614. maintainer-clean: maintainer-clean-am
  41615. @@ -364,6 +391,7 @@
  41616. maintainer-clean-generic mostlyclean mostlyclean-generic \
  41617. mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  41618. +
  41619. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  41620. # Otherwise a system limit (for SysV at least) may be exceeded.
  41621. .NOEXPORT:
  41622. diff -Nur icecast-2.3.2.orig/ltmain.sh icecast-2.3.2/ltmain.sh
  41623. --- icecast-2.3.2.orig/ltmain.sh 2007-08-29 14:28:46.000000000 +0200
  41624. +++ icecast-2.3.2/ltmain.sh 2010-02-18 21:27:29.560857065 +0100
  41625. @@ -1,52 +1,83 @@
  41626. -# ltmain.sh - Provide generalized library-building support services.
  41627. -# NOTE: Changing this file will not affect anything until you rerun configure.
  41628. -#
  41629. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
  41630. -# 2007 Free Software Foundation, Inc.
  41631. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  41632. -#
  41633. -# This program is free software; you can redistribute it and/or modify
  41634. +# Generated from ltmain.m4sh.
  41635. +
  41636. +# ltmain.sh (GNU libtool) 2.2.6b
  41637. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  41638. +
  41639. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  41640. +# This is free software; see the source for copying conditions. There is NO
  41641. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  41642. +
  41643. +# GNU Libtool is free software; you can redistribute it and/or modify
  41644. # it under the terms of the GNU General Public License as published by
  41645. # the Free Software Foundation; either version 2 of the License, or
  41646. # (at your option) any later version.
  41647. #
  41648. -# This program is distributed in the hope that it will be useful, but
  41649. +# As a special exception to the GNU General Public License,
  41650. +# if you distribute this file as part of a program or library that
  41651. +# is built using GNU Libtool, you may include this file under the
  41652. +# same distribution terms that you use for the rest of that program.
  41653. +#
  41654. +# GNU Libtool is distributed in the hope that it will be useful, but
  41655. # WITHOUT ANY WARRANTY; without even the implied warranty of
  41656. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  41657. # General Public License for more details.
  41658. #
  41659. # You should have received a copy of the GNU General Public License
  41660. -# along with this program; if not, write to the Free Software
  41661. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  41662. -#
  41663. -# As a special exception to the GNU General Public License, if you
  41664. -# distribute this file as part of a program that contains a
  41665. -# configuration script generated by Autoconf, you may include it under
  41666. -# the same distribution terms that you use for the rest of that program.
  41667. -
  41668. -basename="s,^.*/,,g"
  41669. -
  41670. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  41671. -# is ksh but when the shell is invoked as "sh" and the current value of
  41672. -# the _XPG environment variable is not equal to 1 (one), the special
  41673. -# positional parameter $0, within a function call, is the name of the
  41674. -# function.
  41675. -progpath="$0"
  41676. -
  41677. -# The name of this program:
  41678. -progname=`echo "$progpath" | $SED $basename`
  41679. -modename="$progname"
  41680. +# along with GNU Libtool; see the file COPYING. If not, a copy
  41681. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  41682. +# or obtained by writing to the Free Software Foundation, Inc.,
  41683. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  41684. -# Global variables:
  41685. -EXIT_SUCCESS=0
  41686. -EXIT_FAILURE=1
  41687. +# Usage: $progname [OPTION]... [MODE-ARG]...
  41688. +#
  41689. +# Provide generalized library-building support services.
  41690. +#
  41691. +# --config show all configuration variables
  41692. +# --debug enable verbose shell tracing
  41693. +# -n, --dry-run display commands without modifying any files
  41694. +# --features display basic configuration information and exit
  41695. +# --mode=MODE use operation mode MODE
  41696. +# --preserve-dup-deps don't remove duplicate dependency libraries
  41697. +# --quiet, --silent don't print informational messages
  41698. +# --tag=TAG use configuration variables from tag TAG
  41699. +# -v, --verbose print informational messages (default)
  41700. +# --version print version information
  41701. +# -h, --help print short or long help message
  41702. +#
  41703. +# MODE must be one of the following:
  41704. +#
  41705. +# clean remove files from the build directory
  41706. +# compile compile a source file into a libtool object
  41707. +# execute automatically set library path, then run a program
  41708. +# finish complete the installation of libtool libraries
  41709. +# install install libraries or executables
  41710. +# link create a library or an executable
  41711. +# uninstall remove libraries from an installed directory
  41712. +#
  41713. +# MODE-ARGS vary depending on the MODE.
  41714. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  41715. +#
  41716. +# When reporting a bug, please describe a test case to reproduce it and
  41717. +# include the following information:
  41718. +#
  41719. +# host-triplet: $host
  41720. +# shell: $SHELL
  41721. +# compiler: $LTCC
  41722. +# compiler flags: $LTCFLAGS
  41723. +# linker: $LD (gnu? $with_gnu_ld)
  41724. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  41725. +# automake: $automake_version
  41726. +# autoconf: $autoconf_version
  41727. +#
  41728. +# Report bugs to <bug-libtool@gnu.org>.
  41729. PROGRAM=ltmain.sh
  41730. PACKAGE=libtool
  41731. -VERSION=1.5.24
  41732. -TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
  41733. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  41734. +TIMESTAMP=""
  41735. +package_revision=1.3017
  41736. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  41737. +# Be Bourne compatible
  41738. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  41739. emulate sh
  41740. NULLCMD=:
  41741. @@ -60,98 +91,261 @@
  41742. BIN_SH=xpg4; export BIN_SH # for Tru64
  41743. DUALCASE=1; export DUALCASE # for MKS sh
  41744. -# Check that we have a working $echo.
  41745. -if test "X$1" = X--no-reexec; then
  41746. - # Discard the --no-reexec flag, and continue.
  41747. - shift
  41748. -elif test "X$1" = X--fallback-echo; then
  41749. - # Avoid inline document here, it may be left over
  41750. - :
  41751. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  41752. - # Yippee, $echo works!
  41753. - :
  41754. -else
  41755. - # Restart under the correct shell, and then maybe $echo will work.
  41756. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  41757. -fi
  41758. -
  41759. -if test "X$1" = X--fallback-echo; then
  41760. - # used as fallback echo
  41761. - shift
  41762. - cat <<EOF
  41763. -$*
  41764. -EOF
  41765. - exit $EXIT_SUCCESS
  41766. -fi
  41767. -
  41768. -default_mode=
  41769. -help="Try \`$progname --help' for more information."
  41770. -magic="%%%MAGIC variable%%%"
  41771. -mkdir="mkdir"
  41772. -mv="mv -f"
  41773. -rm="rm -f"
  41774. -
  41775. -# Sed substitution that helps us do robust quoting. It backslashifies
  41776. -# metacharacters that are still active within double-quoted strings.
  41777. -Xsed="${SED}"' -e 1s/^X//'
  41778. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  41779. -# test EBCDIC or ASCII
  41780. -case `echo X|tr X '\101'` in
  41781. - A) # ASCII based system
  41782. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  41783. - SP2NL='tr \040 \012'
  41784. - NL2SP='tr \015\012 \040\040'
  41785. - ;;
  41786. - *) # EBCDIC based system
  41787. - SP2NL='tr \100 \n'
  41788. - NL2SP='tr \r\n \100\100'
  41789. - ;;
  41790. -esac
  41791. -
  41792. -# NLS nuisances.
  41793. +# NLS nuisances: We save the old values to restore during execute mode.
  41794. # Only set LANG and LC_ALL to C if already set.
  41795. # These must not be set unconditionally because not all systems understand
  41796. # e.g. LANG=C (notably SCO).
  41797. -# We save the old values to restore during execute mode.
  41798. -for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  41799. +lt_user_locale=
  41800. +lt_safe_locale=
  41801. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  41802. do
  41803. eval "if test \"\${$lt_var+set}\" = set; then
  41804. - save_$lt_var=\$$lt_var
  41805. - $lt_var=C
  41806. + save_$lt_var=\$$lt_var
  41807. + $lt_var=C
  41808. export $lt_var
  41809. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  41810. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  41811. fi"
  41812. done
  41813. +$lt_unset CDPATH
  41814. +
  41815. +
  41816. +
  41817. +
  41818. +
  41819. +: ${CP="cp -f"}
  41820. +: ${ECHO="echo"}
  41821. +: ${EGREP="/bin/grep -E"}
  41822. +: ${FGREP="/bin/grep -F"}
  41823. +: ${GREP="/bin/grep"}
  41824. +: ${LN_S="ln -s"}
  41825. +: ${MAKE="make"}
  41826. +: ${MKDIR="mkdir"}
  41827. +: ${MV="mv -f"}
  41828. +: ${RM="rm -f"}
  41829. +: ${SED="/bin/sed"}
  41830. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  41831. +: ${Xsed="$SED -e 1s/^X//"}
  41832. +
  41833. +# Global variables:
  41834. +EXIT_SUCCESS=0
  41835. +EXIT_FAILURE=1
  41836. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  41837. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  41838. +
  41839. +exit_status=$EXIT_SUCCESS
  41840. +
  41841. # Make sure IFS has a sensible default
  41842. lt_nl='
  41843. '
  41844. IFS=" $lt_nl"
  41845. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  41846. - $echo "$modename: not configured to build any kind of library" 1>&2
  41847. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  41848. - exit $EXIT_FAILURE
  41849. -fi
  41850. +dirname="s,/[^/]*$,,"
  41851. +basename="s,^.*/,,"
  41852. -# Global variables.
  41853. -mode=$default_mode
  41854. -nonopt=
  41855. -prev=
  41856. -prevopt=
  41857. -run=
  41858. -show="$echo"
  41859. -show_help=
  41860. -execute_dlfiles=
  41861. -duplicate_deps=no
  41862. -preserve_args=
  41863. -lo2o="s/\\.lo\$/.${objext}/"
  41864. -o2lo="s/\\.${objext}\$/.lo/"
  41865. -extracted_archives=
  41866. -extracted_serial=0
  41867. +# func_dirname_and_basename file append nondir_replacement
  41868. +# perform func_basename and func_dirname in a single function
  41869. +# call:
  41870. +# dirname: Compute the dirname of FILE. If nonempty,
  41871. +# add APPEND to the result, otherwise set result
  41872. +# to NONDIR_REPLACEMENT.
  41873. +# value returned in "$func_dirname_result"
  41874. +# basename: Compute filename of FILE.
  41875. +# value retuned in "$func_basename_result"
  41876. +# Implementation must be kept synchronized with func_dirname
  41877. +# and func_basename. For efficiency, we do not delegate to
  41878. +# those functions but instead duplicate the functionality here.
  41879. +func_dirname_and_basename ()
  41880. +{
  41881. + # Extract subdirectory from the argument.
  41882. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  41883. + if test "X$func_dirname_result" = "X${1}"; then
  41884. + func_dirname_result="${3}"
  41885. + else
  41886. + func_dirname_result="$func_dirname_result${2}"
  41887. + fi
  41888. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  41889. +}
  41890. +
  41891. +# Generated shell functions inserted here.
  41892. +
  41893. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  41894. +# is ksh but when the shell is invoked as "sh" and the current value of
  41895. +# the _XPG environment variable is not equal to 1 (one), the special
  41896. +# positional parameter $0, within a function call, is the name of the
  41897. +# function.
  41898. +progpath="$0"
  41899. +
  41900. +# The name of this program:
  41901. +# In the unlikely event $progname began with a '-', it would play havoc with
  41902. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  41903. +func_dirname_and_basename "$progpath"
  41904. +progname=$func_basename_result
  41905. +case $progname in
  41906. + -*) progname=./$progname ;;
  41907. +esac
  41908. +
  41909. +# Make sure we have an absolute path for reexecution:
  41910. +case $progpath in
  41911. + [\\/]*|[A-Za-z]:\\*) ;;
  41912. + *[\\/]*)
  41913. + progdir=$func_dirname_result
  41914. + progdir=`cd "$progdir" && pwd`
  41915. + progpath="$progdir/$progname"
  41916. + ;;
  41917. + *)
  41918. + save_IFS="$IFS"
  41919. + IFS=:
  41920. + for progdir in $PATH; do
  41921. + IFS="$save_IFS"
  41922. + test -x "$progdir/$progname" && break
  41923. + done
  41924. + IFS="$save_IFS"
  41925. + test -n "$progdir" || progdir=`pwd`
  41926. + progpath="$progdir/$progname"
  41927. + ;;
  41928. +esac
  41929. +
  41930. +# Sed substitution that helps us do robust quoting. It backslashifies
  41931. +# metacharacters that are still active within double-quoted strings.
  41932. +Xsed="${SED}"' -e 1s/^X//'
  41933. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  41934. +
  41935. +# Same as above, but do not quote variable references.
  41936. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  41937. +
  41938. +# Re-`\' parameter expansions in output of double_quote_subst that were
  41939. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  41940. +# in input to double_quote_subst, that '$' was protected from expansion.
  41941. +# Since each input `\' is now two `\'s, look for any number of runs of
  41942. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  41943. +bs='\\'
  41944. +bs2='\\\\'
  41945. +bs4='\\\\\\\\'
  41946. +dollar='\$'
  41947. +sed_double_backslash="\
  41948. + s/$bs4/&\\
  41949. +/g
  41950. + s/^$bs2$dollar/$bs&/
  41951. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  41952. + s/\n//g"
  41953. +
  41954. +# Standard options:
  41955. +opt_dry_run=false
  41956. +opt_help=false
  41957. +opt_quiet=false
  41958. +opt_verbose=false
  41959. +opt_warning=:
  41960. +
  41961. +# func_echo arg...
  41962. +# Echo program name prefixed message, along with the current mode
  41963. +# name if it has been set yet.
  41964. +func_echo ()
  41965. +{
  41966. + $ECHO "$progname${mode+: }$mode: $*"
  41967. +}
  41968. +
  41969. +# func_verbose arg...
  41970. +# Echo program name prefixed message in verbose mode only.
  41971. +func_verbose ()
  41972. +{
  41973. + $opt_verbose && func_echo ${1+"$@"}
  41974. +
  41975. + # A bug in bash halts the script if the last line of a function
  41976. + # fails when set -e is in force, so we need another command to
  41977. + # work around that:
  41978. + :
  41979. +}
  41980. +
  41981. +# func_error arg...
  41982. +# Echo program name prefixed message to standard error.
  41983. +func_error ()
  41984. +{
  41985. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  41986. +}
  41987. +
  41988. +# func_warning arg...
  41989. +# Echo program name prefixed warning message to standard error.
  41990. +func_warning ()
  41991. +{
  41992. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  41993. +
  41994. + # bash bug again:
  41995. + :
  41996. +}
  41997. +
  41998. +# func_fatal_error arg...
  41999. +# Echo program name prefixed message to standard error, and exit.
  42000. +func_fatal_error ()
  42001. +{
  42002. + func_error ${1+"$@"}
  42003. + exit $EXIT_FAILURE
  42004. +}
  42005. +
  42006. +# func_fatal_help arg...
  42007. +# Echo program name prefixed message to standard error, followed by
  42008. +# a help hint, and exit.
  42009. +func_fatal_help ()
  42010. +{
  42011. + func_error ${1+"$@"}
  42012. + func_fatal_error "$help"
  42013. +}
  42014. +help="Try \`$progname --help' for more information." ## default
  42015. +
  42016. +
  42017. +# func_grep expression filename
  42018. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  42019. +func_grep ()
  42020. +{
  42021. + $GREP "$1" "$2" >/dev/null 2>&1
  42022. +}
  42023. +
  42024. +
  42025. +# func_mkdir_p directory-path
  42026. +# Make sure the entire path to DIRECTORY-PATH is available.
  42027. +func_mkdir_p ()
  42028. +{
  42029. + my_directory_path="$1"
  42030. + my_dir_list=
  42031. +
  42032. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  42033. +
  42034. + # Protect directory names starting with `-'
  42035. + case $my_directory_path in
  42036. + -*) my_directory_path="./$my_directory_path" ;;
  42037. + esac
  42038. +
  42039. + # While some portion of DIR does not yet exist...
  42040. + while test ! -d "$my_directory_path"; do
  42041. + # ...make a list in topmost first order. Use a colon delimited
  42042. + # list incase some portion of path contains whitespace.
  42043. + my_dir_list="$my_directory_path:$my_dir_list"
  42044. +
  42045. + # If the last portion added has no slash in it, the list is done
  42046. + case $my_directory_path in */*) ;; *) break ;; esac
  42047. +
  42048. + # ...otherwise throw away the child directory and loop
  42049. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  42050. + done
  42051. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  42052. +
  42053. + save_mkdir_p_IFS="$IFS"; IFS=':'
  42054. + for my_dir in $my_dir_list; do
  42055. + IFS="$save_mkdir_p_IFS"
  42056. + # mkdir can fail with a `File exist' error if two processes
  42057. + # try to create one of the directories concurrently. Don't
  42058. + # stop in that case!
  42059. + $MKDIR "$my_dir" 2>/dev/null || :
  42060. + done
  42061. + IFS="$save_mkdir_p_IFS"
  42062. +
  42063. + # Bail out if we (or some other process) failed to create a directory.
  42064. + test -d "$my_directory_path" || \
  42065. + func_fatal_error "Failed to create \`$1'"
  42066. + fi
  42067. +}
  42068. -#####################################
  42069. -# Shell function definitions:
  42070. -# This seems to be the best place for them
  42071. # func_mktempdir [string]
  42072. # Make a temporary directory that won't clash with other running
  42073. @@ -161,7 +355,7 @@
  42074. {
  42075. my_template="${TMPDIR-/tmp}/${1-$progname}"
  42076. - if test "$run" = ":"; then
  42077. + if test "$opt_dry_run" = ":"; then
  42078. # Return a directory name, but don't create it in dry-run mode
  42079. my_tmpdir="${my_template}-$$"
  42080. else
  42081. @@ -170,526 +364,787 @@
  42082. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  42083. if test ! -d "$my_tmpdir"; then
  42084. - # Failing that, at least try and use $RANDOM to avoid a race
  42085. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  42086. + # Failing that, at least try and use $RANDOM to avoid a race
  42087. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  42088. - save_mktempdir_umask=`umask`
  42089. - umask 0077
  42090. - $mkdir "$my_tmpdir"
  42091. - umask $save_mktempdir_umask
  42092. + save_mktempdir_umask=`umask`
  42093. + umask 0077
  42094. + $MKDIR "$my_tmpdir"
  42095. + umask $save_mktempdir_umask
  42096. fi
  42097. # If we're not in dry-run mode, bomb out on failure
  42098. - test -d "$my_tmpdir" || {
  42099. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  42100. - exit $EXIT_FAILURE
  42101. - }
  42102. + test -d "$my_tmpdir" || \
  42103. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  42104. fi
  42105. - $echo "X$my_tmpdir" | $Xsed
  42106. + $ECHO "X$my_tmpdir" | $Xsed
  42107. }
  42108. -# func_win32_libid arg
  42109. -# return the library type of file 'arg'
  42110. -#
  42111. -# Need a lot of goo to handle *both* DLLs and import libs
  42112. -# Has to be a shell function in order to 'eat' the argument
  42113. -# that is supplied when $file_magic_command is called.
  42114. -func_win32_libid ()
  42115. +# func_quote_for_eval arg
  42116. +# Aesthetically quote ARG to be evaled later.
  42117. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  42118. +# is double-quoted, suitable for a subsequent eval, whereas
  42119. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  42120. +# which are still active within double quotes backslashified.
  42121. +func_quote_for_eval ()
  42122. {
  42123. - win32_libid_type="unknown"
  42124. - win32_fileres=`file -L $1 2>/dev/null`
  42125. - case $win32_fileres in
  42126. - *ar\ archive\ import\ library*) # definitely import
  42127. - win32_libid_type="x86 archive import"
  42128. - ;;
  42129. - *ar\ archive*) # could be an import, or static
  42130. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  42131. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  42132. - win32_nmres=`eval $NM -f posix -A $1 | \
  42133. - $SED -n -e '1,100{
  42134. - / I /{
  42135. - s,.*,import,
  42136. - p
  42137. - q
  42138. - }
  42139. - }'`
  42140. - case $win32_nmres in
  42141. - import*) win32_libid_type="x86 archive import";;
  42142. - *) win32_libid_type="x86 archive static";;
  42143. - esac
  42144. - fi
  42145. - ;;
  42146. - *DLL*)
  42147. - win32_libid_type="x86 DLL"
  42148. - ;;
  42149. - *executable*) # but shell scripts are "executable" too...
  42150. - case $win32_fileres in
  42151. - *MS\ Windows\ PE\ Intel*)
  42152. - win32_libid_type="x86 DLL"
  42153. - ;;
  42154. + case $1 in
  42155. + *[\\\`\"\$]*)
  42156. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  42157. + *)
  42158. + func_quote_for_eval_unquoted_result="$1" ;;
  42159. + esac
  42160. +
  42161. + case $func_quote_for_eval_unquoted_result in
  42162. + # Double-quote args containing shell metacharacters to delay
  42163. + # word splitting, command substitution and and variable
  42164. + # expansion for a subsequent eval.
  42165. + # Many Bourne shells cannot handle close brackets correctly
  42166. + # in scan sets, so we specify it separately.
  42167. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  42168. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  42169. + ;;
  42170. + *)
  42171. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  42172. esac
  42173. - ;;
  42174. - esac
  42175. - $echo $win32_libid_type
  42176. }
  42177. -# func_infer_tag arg
  42178. -# Infer tagged configuration to use if any are available and
  42179. -# if one wasn't chosen via the "--tag" command line option.
  42180. -# Only attempt this if the compiler in the base compile
  42181. -# command doesn't match the default compiler.
  42182. -# arg is usually of the form 'gcc ...'
  42183. -func_infer_tag ()
  42184. +# func_quote_for_expand arg
  42185. +# Aesthetically quote ARG to be evaled later; same as above,
  42186. +# but do not quote variable references.
  42187. +func_quote_for_expand ()
  42188. {
  42189. - if test -n "$available_tags" && test -z "$tagname"; then
  42190. - CC_quoted=
  42191. - for arg in $CC; do
  42192. - case $arg in
  42193. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  42194. - arg="\"$arg\""
  42195. - ;;
  42196. - esac
  42197. - CC_quoted="$CC_quoted $arg"
  42198. - done
  42199. - case $@ in
  42200. - # Blanks in the command may have been stripped by the calling shell,
  42201. - # but not from the CC environment variable when configure was run.
  42202. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  42203. - # Blanks at the start of $base_compile will cause this to fail
  42204. - # if we don't check for them as well.
  42205. + case $1 in
  42206. + *[\\\`\"]*)
  42207. + my_arg=`$ECHO "X$1" | $Xsed \
  42208. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  42209. *)
  42210. - for z in $available_tags; do
  42211. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  42212. - # Evaluate the configuration.
  42213. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  42214. - CC_quoted=
  42215. - for arg in $CC; do
  42216. - # Double-quote args containing other shell metacharacters.
  42217. - case $arg in
  42218. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  42219. - arg="\"$arg\""
  42220. - ;;
  42221. - esac
  42222. - CC_quoted="$CC_quoted $arg"
  42223. - done
  42224. - case "$@ " in
  42225. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  42226. - # The compiler in the base compile command matches
  42227. - # the one in the tagged configuration.
  42228. - # Assume this is the tagged configuration we want.
  42229. - tagname=$z
  42230. - break
  42231. - ;;
  42232. - esac
  42233. - fi
  42234. - done
  42235. - # If $tagname still isn't set, then no tagged configuration
  42236. - # was found and let the user know that the "--tag" command
  42237. - # line option must be used.
  42238. - if test -z "$tagname"; then
  42239. - $echo "$modename: unable to infer tagged configuration"
  42240. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  42241. - exit $EXIT_FAILURE
  42242. -# else
  42243. -# $echo "$modename: using $tagname tagged configuration"
  42244. - fi
  42245. - ;;
  42246. - esac
  42247. - fi
  42248. + my_arg="$1" ;;
  42249. + esac
  42250. +
  42251. + case $my_arg in
  42252. + # Double-quote args containing shell metacharacters to delay
  42253. + # word splitting and command substitution for a subsequent eval.
  42254. + # Many Bourne shells cannot handle close brackets correctly
  42255. + # in scan sets, so we specify it separately.
  42256. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  42257. + my_arg="\"$my_arg\""
  42258. + ;;
  42259. + esac
  42260. +
  42261. + func_quote_for_expand_result="$my_arg"
  42262. }
  42263. -# func_extract_an_archive dir oldlib
  42264. -func_extract_an_archive ()
  42265. +# func_show_eval cmd [fail_exp]
  42266. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  42267. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  42268. +# is given, then evaluate it.
  42269. +func_show_eval ()
  42270. {
  42271. - f_ex_an_ar_dir="$1"; shift
  42272. - f_ex_an_ar_oldlib="$1"
  42273. + my_cmd="$1"
  42274. + my_fail_exp="${2-:}"
  42275. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  42276. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  42277. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  42278. - :
  42279. - else
  42280. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  42281. - exit $EXIT_FAILURE
  42282. + ${opt_silent-false} || {
  42283. + func_quote_for_expand "$my_cmd"
  42284. + eval "func_echo $func_quote_for_expand_result"
  42285. + }
  42286. +
  42287. + if ${opt_dry_run-false}; then :; else
  42288. + eval "$my_cmd"
  42289. + my_status=$?
  42290. + if test "$my_status" -eq 0; then :; else
  42291. + eval "(exit $my_status); $my_fail_exp"
  42292. + fi
  42293. fi
  42294. }
  42295. -# func_extract_archives gentop oldlib ...
  42296. -func_extract_archives ()
  42297. +
  42298. +# func_show_eval_locale cmd [fail_exp]
  42299. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  42300. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  42301. +# is given, then evaluate it. Use the saved locale for evaluation.
  42302. +func_show_eval_locale ()
  42303. {
  42304. - my_gentop="$1"; shift
  42305. - my_oldlibs=${1+"$@"}
  42306. - my_oldobjs=""
  42307. - my_xlib=""
  42308. - my_xabs=""
  42309. - my_xdir=""
  42310. - my_status=""
  42311. + my_cmd="$1"
  42312. + my_fail_exp="${2-:}"
  42313. +
  42314. + ${opt_silent-false} || {
  42315. + func_quote_for_expand "$my_cmd"
  42316. + eval "func_echo $func_quote_for_expand_result"
  42317. + }
  42318. - $show "${rm}r $my_gentop"
  42319. - $run ${rm}r "$my_gentop"
  42320. - $show "$mkdir $my_gentop"
  42321. - $run $mkdir "$my_gentop"
  42322. - my_status=$?
  42323. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  42324. - exit $my_status
  42325. + if ${opt_dry_run-false}; then :; else
  42326. + eval "$lt_user_locale
  42327. + $my_cmd"
  42328. + my_status=$?
  42329. + eval "$lt_safe_locale"
  42330. + if test "$my_status" -eq 0; then :; else
  42331. + eval "(exit $my_status); $my_fail_exp"
  42332. + fi
  42333. fi
  42334. +}
  42335. - for my_xlib in $my_oldlibs; do
  42336. - # Extract the objects.
  42337. - case $my_xlib in
  42338. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  42339. - *) my_xabs=`pwd`"/$my_xlib" ;;
  42340. - esac
  42341. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  42342. - my_xlib_u=$my_xlib
  42343. - while :; do
  42344. - case " $extracted_archives " in
  42345. - *" $my_xlib_u "*)
  42346. - extracted_serial=`expr $extracted_serial + 1`
  42347. - my_xlib_u=lt$extracted_serial-$my_xlib ;;
  42348. - *) break ;;
  42349. - esac
  42350. - done
  42351. - extracted_archives="$extracted_archives $my_xlib_u"
  42352. - my_xdir="$my_gentop/$my_xlib_u"
  42353. - $show "${rm}r $my_xdir"
  42354. - $run ${rm}r "$my_xdir"
  42355. - $show "$mkdir $my_xdir"
  42356. - $run $mkdir "$my_xdir"
  42357. - exit_status=$?
  42358. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  42359. - exit $exit_status
  42360. - fi
  42361. - case $host in
  42362. - *-darwin*)
  42363. - $show "Extracting $my_xabs"
  42364. - # Do not bother doing anything if just a dry run
  42365. - if test -z "$run"; then
  42366. - darwin_orig_dir=`pwd`
  42367. - cd $my_xdir || exit $?
  42368. - darwin_archive=$my_xabs
  42369. - darwin_curdir=`pwd`
  42370. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  42371. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  42372. - if test -n "$darwin_arches"; then
  42373. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  42374. - darwin_arch=
  42375. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  42376. - for darwin_arch in $darwin_arches ; do
  42377. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  42378. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  42379. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  42380. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  42381. - cd "$darwin_curdir"
  42382. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  42383. - done # $darwin_arches
  42384. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  42385. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  42386. - darwin_file=
  42387. - darwin_files=
  42388. - for darwin_file in $darwin_filelist; do
  42389. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  42390. - lipo -create -output "$darwin_file" $darwin_files
  42391. - done # $darwin_filelist
  42392. - ${rm}r unfat-$$
  42393. - cd "$darwin_orig_dir"
  42394. - else
  42395. - cd "$darwin_orig_dir"
  42396. - func_extract_an_archive "$my_xdir" "$my_xabs"
  42397. - fi # $darwin_arches
  42398. - fi # $run
  42399. - ;;
  42400. - *)
  42401. - func_extract_an_archive "$my_xdir" "$my_xabs"
  42402. - ;;
  42403. - esac
  42404. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  42405. - done
  42406. - func_extract_archives_result="$my_oldobjs"
  42407. +
  42408. +
  42409. +
  42410. +# func_version
  42411. +# Echo version message to standard output and exit.
  42412. +func_version ()
  42413. +{
  42414. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  42415. + s/^# //
  42416. + s/^# *$//
  42417. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  42418. + p
  42419. + }' < "$progpath"
  42420. + exit $?
  42421. +}
  42422. +
  42423. +# func_usage
  42424. +# Echo short help message to standard output and exit.
  42425. +func_usage ()
  42426. +{
  42427. + $SED -n '/^# Usage:/,/# -h/ {
  42428. + s/^# //
  42429. + s/^# *$//
  42430. + s/\$progname/'$progname'/
  42431. + p
  42432. + }' < "$progpath"
  42433. + $ECHO
  42434. + $ECHO "run \`$progname --help | more' for full usage"
  42435. + exit $?
  42436. +}
  42437. +
  42438. +# func_help
  42439. +# Echo long help message to standard output and exit.
  42440. +func_help ()
  42441. +{
  42442. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  42443. + s/^# //
  42444. + s/^# *$//
  42445. + s*\$progname*'$progname'*
  42446. + s*\$host*'"$host"'*
  42447. + s*\$SHELL*'"$SHELL"'*
  42448. + s*\$LTCC*'"$LTCC"'*
  42449. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  42450. + s*\$LD*'"$LD"'*
  42451. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  42452. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  42453. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  42454. + p
  42455. + }' < "$progpath"
  42456. + exit $?
  42457. +}
  42458. +
  42459. +# func_missing_arg argname
  42460. +# Echo program name prefixed message to standard error and set global
  42461. +# exit_cmd.
  42462. +func_missing_arg ()
  42463. +{
  42464. + func_error "missing argument for $1"
  42465. + exit_cmd=exit
  42466. }
  42467. -# End of Shell function definitions
  42468. -#####################################
  42469. -# Darwin sucks
  42470. -eval std_shrext=\"$shrext_cmds\"
  42471. +exit_cmd=:
  42472. -disable_libs=no
  42473. -# Parse our command line options once, thoroughly.
  42474. -while test "$#" -gt 0
  42475. -do
  42476. - arg="$1"
  42477. +
  42478. +
  42479. +
  42480. +# Check that we have a working $ECHO.
  42481. +if test "X$1" = X--no-reexec; then
  42482. + # Discard the --no-reexec flag, and continue.
  42483. shift
  42484. +elif test "X$1" = X--fallback-echo; then
  42485. + # Avoid inline document here, it may be left over
  42486. + :
  42487. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  42488. + # Yippee, $ECHO works!
  42489. + :
  42490. +else
  42491. + # Restart under the correct shell, and then maybe $ECHO will work.
  42492. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  42493. +fi
  42494. - case $arg in
  42495. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  42496. - *) optarg= ;;
  42497. - esac
  42498. +if test "X$1" = X--fallback-echo; then
  42499. + # used as fallback echo
  42500. + shift
  42501. + cat <<EOF
  42502. +$*
  42503. +EOF
  42504. + exit $EXIT_SUCCESS
  42505. +fi
  42506. - # If the previous option needs an argument, assign it.
  42507. - if test -n "$prev"; then
  42508. - case $prev in
  42509. - execute_dlfiles)
  42510. - execute_dlfiles="$execute_dlfiles $arg"
  42511. - ;;
  42512. - tag)
  42513. - tagname="$arg"
  42514. - preserve_args="${preserve_args}=$arg"
  42515. -
  42516. - # Check whether tagname contains only valid characters
  42517. - case $tagname in
  42518. - *[!-_A-Za-z0-9,/]*)
  42519. - $echo "$progname: invalid tag name: $tagname" 1>&2
  42520. - exit $EXIT_FAILURE
  42521. - ;;
  42522. - esac
  42523. +magic="%%%MAGIC variable%%%"
  42524. +magic_exe="%%%MAGIC EXE variable%%%"
  42525. - case $tagname in
  42526. - CC)
  42527. - # Don't test for the "default" C tag, as we know, it's there, but
  42528. - # not specially marked.
  42529. - ;;
  42530. - *)
  42531. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  42532. - taglist="$taglist $tagname"
  42533. - # Evaluate the configuration.
  42534. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  42535. - else
  42536. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  42537. - fi
  42538. - ;;
  42539. - esac
  42540. - ;;
  42541. - *)
  42542. - eval "$prev=\$arg"
  42543. - ;;
  42544. - esac
  42545. +# Global variables.
  42546. +# $mode is unset
  42547. +nonopt=
  42548. +execute_dlfiles=
  42549. +preserve_args=
  42550. +lo2o="s/\\.lo\$/.${objext}/"
  42551. +o2lo="s/\\.${objext}\$/.lo/"
  42552. +extracted_archives=
  42553. +extracted_serial=0
  42554. - prev=
  42555. - prevopt=
  42556. - continue
  42557. - fi
  42558. +opt_dry_run=false
  42559. +opt_duplicate_deps=false
  42560. +opt_silent=false
  42561. +opt_debug=:
  42562. - # Have we seen a non-optional argument yet?
  42563. - case $arg in
  42564. - --help)
  42565. - show_help=yes
  42566. - ;;
  42567. +# If this variable is set in any of the actions, the command in it
  42568. +# will be execed at the end. This prevents here-documents from being
  42569. +# left over by shells.
  42570. +exec_cmd=
  42571. - --version)
  42572. - echo "\
  42573. -$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
  42574. -
  42575. -Copyright (C) 2007 Free Software Foundation, Inc.
  42576. -This is free software; see the source for copying conditions. There is NO
  42577. -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  42578. - exit $?
  42579. - ;;
  42580. +# func_fatal_configuration arg...
  42581. +# Echo program name prefixed message to standard error, followed by
  42582. +# a configuration failure hint, and exit.
  42583. +func_fatal_configuration ()
  42584. +{
  42585. + func_error ${1+"$@"}
  42586. + func_error "See the $PACKAGE documentation for more information."
  42587. + func_fatal_error "Fatal configuration error."
  42588. +}
  42589. +
  42590. +
  42591. +# func_config
  42592. +# Display the configuration for all the tags in this script.
  42593. +func_config ()
  42594. +{
  42595. + re_begincf='^# ### BEGIN LIBTOOL'
  42596. + re_endcf='^# ### END LIBTOOL'
  42597. +
  42598. + # Default configuration.
  42599. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  42600. - --config)
  42601. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  42602. # Now print the configurations for the tags.
  42603. for tagname in $taglist; do
  42604. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  42605. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  42606. done
  42607. - exit $?
  42608. - ;;
  42609. -
  42610. - --debug)
  42611. - $echo "$progname: enabling shell trace mode"
  42612. - set -x
  42613. - preserve_args="$preserve_args $arg"
  42614. - ;;
  42615. - --dry-run | -n)
  42616. - run=:
  42617. - ;;
  42618. + exit $?
  42619. +}
  42620. - --features)
  42621. - $echo "host: $host"
  42622. +# func_features
  42623. +# Display the features supported by this script.
  42624. +func_features ()
  42625. +{
  42626. + $ECHO "host: $host"
  42627. if test "$build_libtool_libs" = yes; then
  42628. - $echo "enable shared libraries"
  42629. + $ECHO "enable shared libraries"
  42630. else
  42631. - $echo "disable shared libraries"
  42632. + $ECHO "disable shared libraries"
  42633. fi
  42634. if test "$build_old_libs" = yes; then
  42635. - $echo "enable static libraries"
  42636. + $ECHO "enable static libraries"
  42637. else
  42638. - $echo "disable static libraries"
  42639. + $ECHO "disable static libraries"
  42640. fi
  42641. +
  42642. exit $?
  42643. - ;;
  42644. +}
  42645. - --finish) mode="finish" ;;
  42646. +# func_enable_tag tagname
  42647. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  42648. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  42649. +# variable here.
  42650. +func_enable_tag ()
  42651. +{
  42652. + # Global variable:
  42653. + tagname="$1"
  42654. +
  42655. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  42656. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  42657. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  42658. +
  42659. + # Validate tagname.
  42660. + case $tagname in
  42661. + *[!-_A-Za-z0-9,/]*)
  42662. + func_fatal_error "invalid tag name: $tagname"
  42663. + ;;
  42664. + esac
  42665. - --mode) prevopt="--mode" prev=mode ;;
  42666. - --mode=*) mode="$optarg" ;;
  42667. + # Don't test for the "default" C tag, as we know it's
  42668. + # there but not specially marked.
  42669. + case $tagname in
  42670. + CC) ;;
  42671. + *)
  42672. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  42673. + taglist="$taglist $tagname"
  42674. - --preserve-dup-deps) duplicate_deps="yes" ;;
  42675. + # Evaluate the configuration. Be careful to quote the path
  42676. + # and the sed script, to avoid splitting on whitespace, but
  42677. + # also don't use non-portable quotes within backquotes within
  42678. + # quotes we have to do it in 2 steps:
  42679. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  42680. + eval "$extractedcf"
  42681. + else
  42682. + func_error "ignoring unknown tag $tagname"
  42683. + fi
  42684. + ;;
  42685. + esac
  42686. +}
  42687. - --quiet | --silent)
  42688. - show=:
  42689. - preserve_args="$preserve_args $arg"
  42690. - ;;
  42691. +# Parse options once, thoroughly. This comes as soon as possible in
  42692. +# the script to make things like `libtool --version' happen quickly.
  42693. +{
  42694. - --tag)
  42695. - prevopt="--tag"
  42696. - prev=tag
  42697. - preserve_args="$preserve_args --tag"
  42698. + # Shorthand for --mode=foo, only valid as the first argument
  42699. + case $1 in
  42700. + clean|clea|cle|cl)
  42701. + shift; set dummy --mode clean ${1+"$@"}; shift
  42702. ;;
  42703. - --tag=*)
  42704. - set tag "$optarg" ${1+"$@"}
  42705. - shift
  42706. - prev=tag
  42707. - preserve_args="$preserve_args --tag"
  42708. + compile|compil|compi|comp|com|co|c)
  42709. + shift; set dummy --mode compile ${1+"$@"}; shift
  42710. ;;
  42711. -
  42712. - -dlopen)
  42713. - prevopt="-dlopen"
  42714. - prev=execute_dlfiles
  42715. + execute|execut|execu|exec|exe|ex|e)
  42716. + shift; set dummy --mode execute ${1+"$@"}; shift
  42717. ;;
  42718. -
  42719. - -*)
  42720. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  42721. - $echo "$help" 1>&2
  42722. - exit $EXIT_FAILURE
  42723. + finish|finis|fini|fin|fi|f)
  42724. + shift; set dummy --mode finish ${1+"$@"}; shift
  42725. ;;
  42726. -
  42727. - *)
  42728. - nonopt="$arg"
  42729. - break
  42730. + install|instal|insta|inst|ins|in|i)
  42731. + shift; set dummy --mode install ${1+"$@"}; shift
  42732. + ;;
  42733. + link|lin|li|l)
  42734. + shift; set dummy --mode link ${1+"$@"}; shift
  42735. + ;;
  42736. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  42737. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  42738. ;;
  42739. esac
  42740. -done
  42741. -if test -n "$prevopt"; then
  42742. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  42743. - $echo "$help" 1>&2
  42744. - exit $EXIT_FAILURE
  42745. -fi
  42746. + # Parse non-mode specific arguments:
  42747. + while test "$#" -gt 0; do
  42748. + opt="$1"
  42749. + shift
  42750. -case $disable_libs in
  42751. -no)
  42752. - ;;
  42753. -shared)
  42754. - build_libtool_libs=no
  42755. - build_old_libs=yes
  42756. - ;;
  42757. -static)
  42758. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  42759. - ;;
  42760. -esac
  42761. + case $opt in
  42762. + --config) func_config ;;
  42763. -# If this variable is set in any of the actions, the command in it
  42764. -# will be execed at the end. This prevents here-documents from being
  42765. -# left over by shells.
  42766. -exec_cmd=
  42767. + --debug) preserve_args="$preserve_args $opt"
  42768. + func_echo "enabling shell trace mode"
  42769. + opt_debug='set -x'
  42770. + $opt_debug
  42771. + ;;
  42772. -if test -z "$show_help"; then
  42773. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  42774. + execute_dlfiles="$execute_dlfiles $1"
  42775. + shift
  42776. + ;;
  42777. - # Infer the operation mode.
  42778. - if test -z "$mode"; then
  42779. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  42780. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  42781. - case $nonopt in
  42782. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  42783. - mode=link
  42784. - for arg
  42785. - do
  42786. - case $arg in
  42787. - -c)
  42788. - mode=compile
  42789. - break
  42790. - ;;
  42791. - esac
  42792. - done
  42793. - ;;
  42794. - *db | *dbx | *strace | *truss)
  42795. - mode=execute
  42796. - ;;
  42797. - *install*|cp|mv)
  42798. - mode=install
  42799. - ;;
  42800. - *rm)
  42801. - mode=uninstall
  42802. + --dry-run | -n) opt_dry_run=: ;;
  42803. + --features) func_features ;;
  42804. + --finish) mode="finish" ;;
  42805. +
  42806. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  42807. + case $1 in
  42808. + # Valid mode arguments:
  42809. + clean) ;;
  42810. + compile) ;;
  42811. + execute) ;;
  42812. + finish) ;;
  42813. + install) ;;
  42814. + link) ;;
  42815. + relink) ;;
  42816. + uninstall) ;;
  42817. +
  42818. + # Catch anything else as an error
  42819. + *) func_error "invalid argument for $opt"
  42820. + exit_cmd=exit
  42821. + break
  42822. + ;;
  42823. + esac
  42824. +
  42825. + mode="$1"
  42826. + shift
  42827. + ;;
  42828. +
  42829. + --preserve-dup-deps)
  42830. + opt_duplicate_deps=: ;;
  42831. +
  42832. + --quiet|--silent) preserve_args="$preserve_args $opt"
  42833. + opt_silent=:
  42834. + ;;
  42835. +
  42836. + --verbose| -v) preserve_args="$preserve_args $opt"
  42837. + opt_silent=false
  42838. + ;;
  42839. +
  42840. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  42841. + preserve_args="$preserve_args $opt $1"
  42842. + func_enable_tag "$1" # tagname is set here
  42843. + shift
  42844. + ;;
  42845. +
  42846. + # Separate optargs to long options:
  42847. + -dlopen=*|--mode=*|--tag=*)
  42848. + func_opt_split "$opt"
  42849. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  42850. + shift
  42851. + ;;
  42852. +
  42853. + -\?|-h) func_usage ;;
  42854. + --help) opt_help=: ;;
  42855. + --version) func_version ;;
  42856. +
  42857. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  42858. +
  42859. + *) nonopt="$opt"
  42860. + break
  42861. + ;;
  42862. + esac
  42863. + done
  42864. +
  42865. +
  42866. + case $host in
  42867. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  42868. + # don't eliminate duplications in $postdeps and $predeps
  42869. + opt_duplicate_compiler_generated_deps=:
  42870. ;;
  42871. *)
  42872. - # If we have no mode, but dlfiles were specified, then do execute mode.
  42873. - test -n "$execute_dlfiles" && mode=execute
  42874. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  42875. + ;;
  42876. + esac
  42877. - # Just use the default operation mode.
  42878. - if test -z "$mode"; then
  42879. - if test -n "$nonopt"; then
  42880. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  42881. - else
  42882. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  42883. - fi
  42884. + # Having warned about all mis-specified options, bail out if
  42885. + # anything was wrong.
  42886. + $exit_cmd $EXIT_FAILURE
  42887. +}
  42888. +
  42889. +# func_check_version_match
  42890. +# Ensure that we are using m4 macros, and libtool script from the same
  42891. +# release of libtool.
  42892. +func_check_version_match ()
  42893. +{
  42894. + if test "$package_revision" != "$macro_revision"; then
  42895. + if test "$VERSION" != "$macro_version"; then
  42896. + if test -z "$macro_version"; then
  42897. + cat >&2 <<_LT_EOF
  42898. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  42899. +$progname: definition of this LT_INIT comes from an older release.
  42900. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  42901. +$progname: and run autoconf again.
  42902. +_LT_EOF
  42903. + else
  42904. + cat >&2 <<_LT_EOF
  42905. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  42906. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  42907. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  42908. +$progname: and run autoconf again.
  42909. +_LT_EOF
  42910. fi
  42911. - ;;
  42912. - esac
  42913. + else
  42914. + cat >&2 <<_LT_EOF
  42915. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  42916. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  42917. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  42918. +$progname: of $PACKAGE $VERSION and run autoconf again.
  42919. +_LT_EOF
  42920. + fi
  42921. +
  42922. + exit $EXIT_MISMATCH
  42923. + fi
  42924. +}
  42925. +
  42926. +
  42927. +## ----------- ##
  42928. +## Main. ##
  42929. +## ----------- ##
  42930. +
  42931. +$opt_help || {
  42932. + # Sanity checks first:
  42933. + func_check_version_match
  42934. +
  42935. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  42936. + func_fatal_configuration "not configured to build any kind of library"
  42937. fi
  42938. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  42939. +
  42940. +
  42941. + # Darwin sucks
  42942. + eval std_shrext=\"$shrext_cmds\"
  42943. +
  42944. +
  42945. # Only execute mode is allowed to have -dlopen flags.
  42946. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  42947. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  42948. - $echo "$help" 1>&2
  42949. + func_error "unrecognized option \`-dlopen'"
  42950. + $ECHO "$help" 1>&2
  42951. exit $EXIT_FAILURE
  42952. fi
  42953. # Change the help message to a mode-specific one.
  42954. generic_help="$help"
  42955. - help="Try \`$modename --help --mode=$mode' for more information."
  42956. + help="Try \`$progname --help --mode=$mode' for more information."
  42957. +}
  42958. - # These modes are in order of execution frequency so that they run quickly.
  42959. - case $mode in
  42960. - # libtool compile mode
  42961. - compile)
  42962. - modename="$modename: compile"
  42963. - # Get the compilation command and the source file.
  42964. - base_compile=
  42965. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  42966. - suppress_opt=yes
  42967. - suppress_output=
  42968. - arg_mode=normal
  42969. - libobj=
  42970. - later=
  42971. - for arg
  42972. - do
  42973. - case $arg_mode in
  42974. - arg )
  42975. - # do not "continue". Instead, add this to base_compile
  42976. - lastarg="$arg"
  42977. - arg_mode=normal
  42978. - ;;
  42979. +# func_lalib_p file
  42980. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  42981. +# This function is only a basic sanity check; it will hardly flush out
  42982. +# determined imposters.
  42983. +func_lalib_p ()
  42984. +{
  42985. + test -f "$1" &&
  42986. + $SED -e 4q "$1" 2>/dev/null \
  42987. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  42988. +}
  42989. - target )
  42990. - libobj="$arg"
  42991. - arg_mode=normal
  42992. - continue
  42993. - ;;
  42994. +# func_lalib_unsafe_p file
  42995. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  42996. +# This function implements the same check as func_lalib_p without
  42997. +# resorting to external programs. To this end, it redirects stdin and
  42998. +# closes it afterwards, without saving the original file descriptor.
  42999. +# As a safety measure, use it only where a negative result would be
  43000. +# fatal anyway. Works if `file' does not exist.
  43001. +func_lalib_unsafe_p ()
  43002. +{
  43003. + lalib_p=no
  43004. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  43005. + for lalib_p_l in 1 2 3 4
  43006. + do
  43007. + read lalib_p_line
  43008. + case "$lalib_p_line" in
  43009. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  43010. + esac
  43011. + done
  43012. + exec 0<&5 5<&-
  43013. + fi
  43014. + test "$lalib_p" = yes
  43015. +}
  43016. - normal )
  43017. - # Accept any command-line options.
  43018. - case $arg in
  43019. - -o)
  43020. - if test -n "$libobj" ; then
  43021. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  43022. - exit $EXIT_FAILURE
  43023. - fi
  43024. - arg_mode=target
  43025. - continue
  43026. - ;;
  43027. +# func_ltwrapper_script_p file
  43028. +# True iff FILE is a libtool wrapper script
  43029. +# This function is only a basic sanity check; it will hardly flush out
  43030. +# determined imposters.
  43031. +func_ltwrapper_script_p ()
  43032. +{
  43033. + func_lalib_p "$1"
  43034. +}
  43035. - -static | -prefer-pic | -prefer-non-pic)
  43036. - later="$later $arg"
  43037. - continue
  43038. - ;;
  43039. +# func_ltwrapper_executable_p file
  43040. +# True iff FILE is a libtool wrapper executable
  43041. +# This function is only a basic sanity check; it will hardly flush out
  43042. +# determined imposters.
  43043. +func_ltwrapper_executable_p ()
  43044. +{
  43045. + func_ltwrapper_exec_suffix=
  43046. + case $1 in
  43047. + *.exe) ;;
  43048. + *) func_ltwrapper_exec_suffix=.exe ;;
  43049. + esac
  43050. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  43051. +}
  43052. +
  43053. +# func_ltwrapper_scriptname file
  43054. +# Assumes file is an ltwrapper_executable
  43055. +# uses $file to determine the appropriate filename for a
  43056. +# temporary ltwrapper_script.
  43057. +func_ltwrapper_scriptname ()
  43058. +{
  43059. + func_ltwrapper_scriptname_result=""
  43060. + if func_ltwrapper_executable_p "$1"; then
  43061. + func_dirname_and_basename "$1" "" "."
  43062. + func_stripname '' '.exe' "$func_basename_result"
  43063. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  43064. + fi
  43065. +}
  43066. +
  43067. +# func_ltwrapper_p file
  43068. +# True iff FILE is a libtool wrapper script or wrapper executable
  43069. +# This function is only a basic sanity check; it will hardly flush out
  43070. +# determined imposters.
  43071. +func_ltwrapper_p ()
  43072. +{
  43073. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  43074. +}
  43075. +
  43076. +
  43077. +# func_execute_cmds commands fail_cmd
  43078. +# Execute tilde-delimited COMMANDS.
  43079. +# If FAIL_CMD is given, eval that upon failure.
  43080. +# FAIL_CMD may read-access the current command in variable CMD!
  43081. +func_execute_cmds ()
  43082. +{
  43083. + $opt_debug
  43084. + save_ifs=$IFS; IFS='~'
  43085. + for cmd in $1; do
  43086. + IFS=$save_ifs
  43087. + eval cmd=\"$cmd\"
  43088. + func_show_eval "$cmd" "${2-:}"
  43089. + done
  43090. + IFS=$save_ifs
  43091. +}
  43092. +
  43093. +
  43094. +# func_source file
  43095. +# Source FILE, adding directory component if necessary.
  43096. +# Note that it is not necessary on cygwin/mingw to append a dot to
  43097. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  43098. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  43099. +# `FILE.' does not work on cygwin managed mounts.
  43100. +func_source ()
  43101. +{
  43102. + $opt_debug
  43103. + case $1 in
  43104. + */* | *\\*) . "$1" ;;
  43105. + *) . "./$1" ;;
  43106. + esac
  43107. +}
  43108. +
  43109. +
  43110. +# func_infer_tag arg
  43111. +# Infer tagged configuration to use if any are available and
  43112. +# if one wasn't chosen via the "--tag" command line option.
  43113. +# Only attempt this if the compiler in the base compile
  43114. +# command doesn't match the default compiler.
  43115. +# arg is usually of the form 'gcc ...'
  43116. +func_infer_tag ()
  43117. +{
  43118. + $opt_debug
  43119. + if test -n "$available_tags" && test -z "$tagname"; then
  43120. + CC_quoted=
  43121. + for arg in $CC; do
  43122. + func_quote_for_eval "$arg"
  43123. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  43124. + done
  43125. + case $@ in
  43126. + # Blanks in the command may have been stripped by the calling shell,
  43127. + # but not from the CC environment variable when configure was run.
  43128. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  43129. + # Blanks at the start of $base_compile will cause this to fail
  43130. + # if we don't check for them as well.
  43131. + *)
  43132. + for z in $available_tags; do
  43133. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  43134. + # Evaluate the configuration.
  43135. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  43136. + CC_quoted=
  43137. + for arg in $CC; do
  43138. + # Double-quote args containing other shell metacharacters.
  43139. + func_quote_for_eval "$arg"
  43140. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  43141. + done
  43142. + case "$@ " in
  43143. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  43144. + # The compiler in the base compile command matches
  43145. + # the one in the tagged configuration.
  43146. + # Assume this is the tagged configuration we want.
  43147. + tagname=$z
  43148. + break
  43149. + ;;
  43150. + esac
  43151. + fi
  43152. + done
  43153. + # If $tagname still isn't set, then no tagged configuration
  43154. + # was found and let the user know that the "--tag" command
  43155. + # line option must be used.
  43156. + if test -z "$tagname"; then
  43157. + func_echo "unable to infer tagged configuration"
  43158. + func_fatal_error "specify a tag with \`--tag'"
  43159. +# else
  43160. +# func_verbose "using $tagname tagged configuration"
  43161. + fi
  43162. + ;;
  43163. + esac
  43164. + fi
  43165. +}
  43166. +
  43167. +
  43168. +
  43169. +# func_write_libtool_object output_name pic_name nonpic_name
  43170. +# Create a libtool object file (analogous to a ".la" file),
  43171. +# but don't create it if we're doing a dry run.
  43172. +func_write_libtool_object ()
  43173. +{
  43174. + write_libobj=${1}
  43175. + if test "$build_libtool_libs" = yes; then
  43176. + write_lobj=\'${2}\'
  43177. + else
  43178. + write_lobj=none
  43179. + fi
  43180. +
  43181. + if test "$build_old_libs" = yes; then
  43182. + write_oldobj=\'${3}\'
  43183. + else
  43184. + write_oldobj=none
  43185. + fi
  43186. +
  43187. + $opt_dry_run || {
  43188. + cat >${write_libobj}T <<EOF
  43189. +# $write_libobj - a libtool object file
  43190. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  43191. +#
  43192. +# Please DO NOT delete this file!
  43193. +# It is necessary for linking the library.
  43194. +
  43195. +# Name of the PIC object.
  43196. +pic_object=$write_lobj
  43197. +
  43198. +# Name of the non-PIC object
  43199. +non_pic_object=$write_oldobj
  43200. +
  43201. +EOF
  43202. + $MV "${write_libobj}T" "${write_libobj}"
  43203. + }
  43204. +}
  43205. +
  43206. +# func_mode_compile arg...
  43207. +func_mode_compile ()
  43208. +{
  43209. + $opt_debug
  43210. + # Get the compilation command and the source file.
  43211. + base_compile=
  43212. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  43213. + suppress_opt=yes
  43214. + suppress_output=
  43215. + arg_mode=normal
  43216. + libobj=
  43217. + later=
  43218. + pie_flag=
  43219. +
  43220. + for arg
  43221. + do
  43222. + case $arg_mode in
  43223. + arg )
  43224. + # do not "continue". Instead, add this to base_compile
  43225. + lastarg="$arg"
  43226. + arg_mode=normal
  43227. + ;;
  43228. +
  43229. + target )
  43230. + libobj="$arg"
  43231. + arg_mode=normal
  43232. + continue
  43233. + ;;
  43234. +
  43235. + normal )
  43236. + # Accept any command-line options.
  43237. + case $arg in
  43238. + -o)
  43239. + test -n "$libobj" && \
  43240. + func_fatal_error "you cannot specify \`-o' more than once"
  43241. + arg_mode=target
  43242. + continue
  43243. + ;;
  43244. +
  43245. + -pie | -fpie | -fPIE)
  43246. + pie_flag="$pie_flag $arg"
  43247. + continue
  43248. + ;;
  43249. +
  43250. + -shared | -static | -prefer-pic | -prefer-non-pic)
  43251. + later="$later $arg"
  43252. + continue
  43253. + ;;
  43254. -no-suppress)
  43255. suppress_opt=no
  43256. @@ -702,31 +1157,25 @@
  43257. ;; # replaced later. I would guess that would be a bug.
  43258. -Wc,*)
  43259. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  43260. + func_stripname '-Wc,' '' "$arg"
  43261. + args=$func_stripname_result
  43262. lastarg=
  43263. save_ifs="$IFS"; IFS=','
  43264. - for arg in $args; do
  43265. + for arg in $args; do
  43266. IFS="$save_ifs"
  43267. -
  43268. - # Double-quote args containing other shell metacharacters.
  43269. - # Many Bourne shells cannot handle close brackets correctly
  43270. - # in scan sets, so we specify it separately.
  43271. - case $arg in
  43272. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43273. - arg="\"$arg\""
  43274. - ;;
  43275. - esac
  43276. - lastarg="$lastarg $arg"
  43277. + func_quote_for_eval "$arg"
  43278. + lastarg="$lastarg $func_quote_for_eval_result"
  43279. done
  43280. IFS="$save_ifs"
  43281. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  43282. + func_stripname ' ' '' "$lastarg"
  43283. + lastarg=$func_stripname_result
  43284. # Add the arguments to base_compile.
  43285. base_compile="$base_compile $lastarg"
  43286. continue
  43287. ;;
  43288. - * )
  43289. + *)
  43290. # Accept the current argument as the source file.
  43291. # The previous "srcfile" becomes the current argument.
  43292. #
  43293. @@ -738,65 +1187,42 @@
  43294. esac # case $arg_mode
  43295. # Aesthetically quote the previous argument.
  43296. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  43297. -
  43298. - case $lastarg in
  43299. - # Double-quote args containing other shell metacharacters.
  43300. - # Many Bourne shells cannot handle close brackets correctly
  43301. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  43302. - # in scan sets (worked around with variable expansion),
  43303. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  43304. - # at all, so we specify them separately.
  43305. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43306. - lastarg="\"$lastarg\""
  43307. - ;;
  43308. - esac
  43309. -
  43310. - base_compile="$base_compile $lastarg"
  43311. + func_quote_for_eval "$lastarg"
  43312. + base_compile="$base_compile $func_quote_for_eval_result"
  43313. done # for arg
  43314. case $arg_mode in
  43315. arg)
  43316. - $echo "$modename: you must specify an argument for -Xcompile"
  43317. - exit $EXIT_FAILURE
  43318. + func_fatal_error "you must specify an argument for -Xcompile"
  43319. ;;
  43320. target)
  43321. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  43322. - exit $EXIT_FAILURE
  43323. + func_fatal_error "you must specify a target with \`-o'"
  43324. ;;
  43325. *)
  43326. # Get the name of the library object.
  43327. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  43328. + test -z "$libobj" && {
  43329. + func_basename "$srcfile"
  43330. + libobj="$func_basename_result"
  43331. + }
  43332. ;;
  43333. esac
  43334. # Recognize several different file suffixes.
  43335. # If the user specifies -o file.o, it is replaced with file.lo
  43336. - xform='[cCFSifmso]'
  43337. case $libobj in
  43338. - *.ada) xform=ada ;;
  43339. - *.adb) xform=adb ;;
  43340. - *.ads) xform=ads ;;
  43341. - *.asm) xform=asm ;;
  43342. - *.c++) xform=c++ ;;
  43343. - *.cc) xform=cc ;;
  43344. - *.ii) xform=ii ;;
  43345. - *.class) xform=class ;;
  43346. - *.cpp) xform=cpp ;;
  43347. - *.cxx) xform=cxx ;;
  43348. - *.[fF][09]?) xform=[fF][09]. ;;
  43349. - *.for) xform=for ;;
  43350. - *.java) xform=java ;;
  43351. - *.obj) xform=obj ;;
  43352. + *.[cCFSifmso] | \
  43353. + *.ada | *.adb | *.ads | *.asm | \
  43354. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  43355. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  43356. + func_xform "$libobj"
  43357. + libobj=$func_xform_result
  43358. + ;;
  43359. esac
  43360. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  43361. -
  43362. case $libobj in
  43363. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  43364. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  43365. *)
  43366. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  43367. - exit $EXIT_FAILURE
  43368. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  43369. ;;
  43370. esac
  43371. @@ -804,7 +1230,15 @@
  43372. for arg in $later; do
  43373. case $arg in
  43374. + -shared)
  43375. + test "$build_libtool_libs" != yes && \
  43376. + func_fatal_configuration "can not build a shared library"
  43377. + build_old_libs=no
  43378. + continue
  43379. + ;;
  43380. +
  43381. -static)
  43382. + build_libtool_libs=no
  43383. build_old_libs=yes
  43384. continue
  43385. ;;
  43386. @@ -821,28 +1255,17 @@
  43387. esac
  43388. done
  43389. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  43390. - case $qlibobj in
  43391. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43392. - qlibobj="\"$qlibobj\"" ;;
  43393. - esac
  43394. - test "X$libobj" != "X$qlibobj" \
  43395. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  43396. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  43397. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  43398. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  43399. - if test "X$xdir" = "X$obj"; then
  43400. - xdir=
  43401. - else
  43402. - xdir=$xdir/
  43403. - fi
  43404. + func_quote_for_eval "$libobj"
  43405. + test "X$libobj" != "X$func_quote_for_eval_result" \
  43406. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  43407. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  43408. + func_dirname_and_basename "$obj" "/" ""
  43409. + objname="$func_basename_result"
  43410. + xdir="$func_dirname_result"
  43411. lobj=${xdir}$objdir/$objname
  43412. - if test -z "$base_compile"; then
  43413. - $echo "$modename: you must specify a compilation command" 1>&2
  43414. - $echo "$help" 1>&2
  43415. - exit $EXIT_FAILURE
  43416. - fi
  43417. + test -z "$base_compile" && \
  43418. + func_fatal_help "you must specify a compilation command"
  43419. # Delete any leftover library objects.
  43420. if test "$build_old_libs" = yes; then
  43421. @@ -851,12 +1274,9 @@
  43422. removelist="$lobj $libobj ${libobj}T"
  43423. fi
  43424. - $run $rm $removelist
  43425. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  43426. -
  43427. # On Cygwin there's no "real" PIC flag so we must build both object types
  43428. case $host_os in
  43429. - cygwin* | mingw* | pw32* | os2*)
  43430. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  43431. pic_mode=default
  43432. ;;
  43433. esac
  43434. @@ -868,10 +1288,8 @@
  43435. # Calculate the filename of the output object if compiler does
  43436. # not support -o with -c
  43437. if test "$compiler_c_o" = no; then
  43438. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  43439. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  43440. lockfile="$output_obj.lock"
  43441. - removelist="$removelist $output_obj $lockfile"
  43442. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  43443. else
  43444. output_obj=
  43445. need_locks=no
  43446. @@ -881,13 +1299,13 @@
  43447. # Lock this critical section if it is needed
  43448. # We use this script file to make the link, it avoids creating a new file
  43449. if test "$need_locks" = yes; then
  43450. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  43451. - $show "Waiting for $lockfile to be removed"
  43452. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  43453. + func_echo "Waiting for $lockfile to be removed"
  43454. sleep 2
  43455. done
  43456. elif test "$need_locks" = warn; then
  43457. if test -f "$lockfile"; then
  43458. - $echo "\
  43459. + $ECHO "\
  43460. *** ERROR, $lockfile exists and contains:
  43461. `cat $lockfile 2>/dev/null`
  43462. @@ -898,34 +1316,22 @@
  43463. avoid parallel builds (make -j) in this platform, or get a better
  43464. compiler."
  43465. - $run $rm $removelist
  43466. + $opt_dry_run || $RM $removelist
  43467. exit $EXIT_FAILURE
  43468. fi
  43469. - $echo "$srcfile" > "$lockfile"
  43470. + removelist="$removelist $output_obj"
  43471. + $ECHO "$srcfile" > "$lockfile"
  43472. fi
  43473. + $opt_dry_run || $RM $removelist
  43474. + removelist="$removelist $lockfile"
  43475. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  43476. +
  43477. if test -n "$fix_srcfile_path"; then
  43478. eval srcfile=\"$fix_srcfile_path\"
  43479. fi
  43480. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  43481. - case $qsrcfile in
  43482. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43483. - qsrcfile="\"$qsrcfile\"" ;;
  43484. - esac
  43485. -
  43486. - $run $rm "$libobj" "${libobj}T"
  43487. -
  43488. - # Create a libtool object file (analogous to a ".la" file),
  43489. - # but don't create it if we're doing a dry run.
  43490. - test -z "$run" && cat > ${libobj}T <<EOF
  43491. -# $libobj - a libtool object file
  43492. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  43493. -#
  43494. -# Please DO NOT delete this file!
  43495. -# It is necessary for linking the library.
  43496. -
  43497. -# Name of the PIC object.
  43498. -EOF
  43499. + func_quote_for_eval "$srcfile"
  43500. + qsrcfile=$func_quote_for_eval_result
  43501. # Only build a PIC object if we are building libtool libraries.
  43502. if test "$build_libtool_libs" = yes; then
  43503. @@ -939,32 +1345,19 @@
  43504. command="$base_compile $qsrcfile"
  43505. fi
  43506. - if test ! -d "${xdir}$objdir"; then
  43507. - $show "$mkdir ${xdir}$objdir"
  43508. - $run $mkdir ${xdir}$objdir
  43509. - exit_status=$?
  43510. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  43511. - exit $exit_status
  43512. - fi
  43513. - fi
  43514. + func_mkdir_p "$xdir$objdir"
  43515. if test -z "$output_obj"; then
  43516. # Place PIC objects in $objdir
  43517. command="$command -o $lobj"
  43518. fi
  43519. - $run $rm "$lobj" "$output_obj"
  43520. -
  43521. - $show "$command"
  43522. - if $run eval "$command"; then :
  43523. - else
  43524. - test -n "$output_obj" && $run $rm $removelist
  43525. - exit $EXIT_FAILURE
  43526. - fi
  43527. + func_show_eval_locale "$command" \
  43528. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  43529. if test "$need_locks" = warn &&
  43530. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  43531. - $echo "\
  43532. + $ECHO "\
  43533. *** ERROR, $lockfile contains:
  43534. `cat $lockfile 2>/dev/null`
  43535. @@ -978,45 +1371,27 @@
  43536. avoid parallel builds (make -j) in this platform, or get a better
  43537. compiler."
  43538. - $run $rm $removelist
  43539. + $opt_dry_run || $RM $removelist
  43540. exit $EXIT_FAILURE
  43541. fi
  43542. # Just move the object if needed, then go on to compile the next one
  43543. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  43544. - $show "$mv $output_obj $lobj"
  43545. - if $run $mv $output_obj $lobj; then :
  43546. - else
  43547. - error=$?
  43548. - $run $rm $removelist
  43549. - exit $error
  43550. - fi
  43551. + func_show_eval '$MV "$output_obj" "$lobj"' \
  43552. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  43553. fi
  43554. - # Append the name of the PIC object to the libtool object file.
  43555. - test -z "$run" && cat >> ${libobj}T <<EOF
  43556. -pic_object='$objdir/$objname'
  43557. -
  43558. -EOF
  43559. -
  43560. # Allow error messages only from the first compilation.
  43561. if test "$suppress_opt" = yes; then
  43562. - suppress_output=' >/dev/null 2>&1'
  43563. + suppress_output=' >/dev/null 2>&1'
  43564. fi
  43565. - else
  43566. - # No PIC object so indicate it doesn't exist in the libtool
  43567. - # object file.
  43568. - test -z "$run" && cat >> ${libobj}T <<EOF
  43569. -pic_object=none
  43570. -
  43571. -EOF
  43572. fi
  43573. # Only build a position-dependent object if we build old libraries.
  43574. if test "$build_old_libs" = yes; then
  43575. if test "$pic_mode" != yes; then
  43576. # Don't build PIC code
  43577. - command="$base_compile $qsrcfile"
  43578. + command="$base_compile $qsrcfile$pie_flag"
  43579. else
  43580. command="$base_compile $qsrcfile $pic_flag"
  43581. fi
  43582. @@ -1026,17 +1401,12 @@
  43583. # Suppress compiler output if we already did a PIC compilation.
  43584. command="$command$suppress_output"
  43585. - $run $rm "$obj" "$output_obj"
  43586. - $show "$command"
  43587. - if $run eval "$command"; then :
  43588. - else
  43589. - $run $rm $removelist
  43590. - exit $EXIT_FAILURE
  43591. - fi
  43592. + func_show_eval_locale "$command" \
  43593. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  43594. if test "$need_locks" = warn &&
  43595. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  43596. - $echo "\
  43597. + $ECHO "\
  43598. *** ERROR, $lockfile contains:
  43599. `cat $lockfile 2>/dev/null`
  43600. @@ -1050,5458 +1420,6784 @@
  43601. avoid parallel builds (make -j) in this platform, or get a better
  43602. compiler."
  43603. - $run $rm $removelist
  43604. + $opt_dry_run || $RM $removelist
  43605. exit $EXIT_FAILURE
  43606. fi
  43607. # Just move the object if needed
  43608. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  43609. - $show "$mv $output_obj $obj"
  43610. - if $run $mv $output_obj $obj; then :
  43611. - else
  43612. - error=$?
  43613. - $run $rm $removelist
  43614. - exit $error
  43615. - fi
  43616. + func_show_eval '$MV "$output_obj" "$obj"' \
  43617. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  43618. fi
  43619. -
  43620. - # Append the name of the non-PIC object the libtool object file.
  43621. - # Only append if the libtool object file exists.
  43622. - test -z "$run" && cat >> ${libobj}T <<EOF
  43623. -# Name of the non-PIC object.
  43624. -non_pic_object='$objname'
  43625. -
  43626. -EOF
  43627. - else
  43628. - # Append the name of the non-PIC object the libtool object file.
  43629. - # Only append if the libtool object file exists.
  43630. - test -z "$run" && cat >> ${libobj}T <<EOF
  43631. -# Name of the non-PIC object.
  43632. -non_pic_object=none
  43633. -
  43634. -EOF
  43635. fi
  43636. - $run $mv "${libobj}T" "${libobj}"
  43637. + $opt_dry_run || {
  43638. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  43639. - # Unlock the critical section if it was locked
  43640. - if test "$need_locks" != no; then
  43641. - $run $rm "$lockfile"
  43642. - fi
  43643. + # Unlock the critical section if it was locked
  43644. + if test "$need_locks" != no; then
  43645. + removelist=$lockfile
  43646. + $RM "$lockfile"
  43647. + fi
  43648. + }
  43649. exit $EXIT_SUCCESS
  43650. - ;;
  43651. +}
  43652. - # libtool link mode
  43653. - link | relink)
  43654. - modename="$modename: link"
  43655. - case $host in
  43656. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  43657. - # It is impossible to link a dll without this setting, and
  43658. - # we shouldn't force the makefile maintainer to figure out
  43659. - # which system we are compiling for in order to pass an extra
  43660. - # flag for every libtool invocation.
  43661. - # allow_undefined=no
  43662. +$opt_help || {
  43663. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  43664. +}
  43665. - # FIXME: Unfortunately, there are problems with the above when trying
  43666. - # to make a dll which has undefined symbols, in which case not
  43667. - # even a static library is built. For now, we need to specify
  43668. - # -no-undefined on the libtool link line when we can be certain
  43669. - # that all symbols are satisfied, otherwise we get a static library.
  43670. - allow_undefined=yes
  43671. - ;;
  43672. - *)
  43673. - allow_undefined=yes
  43674. - ;;
  43675. - esac
  43676. - libtool_args="$nonopt"
  43677. - base_compile="$nonopt $@"
  43678. - compile_command="$nonopt"
  43679. - finalize_command="$nonopt"
  43680. +func_mode_help ()
  43681. +{
  43682. + # We need to display help for each of the modes.
  43683. + case $mode in
  43684. + "")
  43685. + # Generic help is extracted from the usage comments
  43686. + # at the start of this file.
  43687. + func_help
  43688. + ;;
  43689. - compile_rpath=
  43690. - finalize_rpath=
  43691. - compile_shlibpath=
  43692. - finalize_shlibpath=
  43693. - convenience=
  43694. - old_convenience=
  43695. - deplibs=
  43696. - old_deplibs=
  43697. - compiler_flags=
  43698. - linker_flags=
  43699. - dllsearchpath=
  43700. - lib_search_path=`pwd`
  43701. - inst_prefix_dir=
  43702. + clean)
  43703. + $ECHO \
  43704. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  43705. - avoid_version=no
  43706. - dlfiles=
  43707. - dlprefiles=
  43708. - dlself=no
  43709. - export_dynamic=no
  43710. - export_symbols=
  43711. - export_symbols_regex=
  43712. - generated=
  43713. - libobjs=
  43714. - ltlibs=
  43715. - module=no
  43716. - no_install=no
  43717. - objs=
  43718. - non_pic_objects=
  43719. - notinst_path= # paths that contain not-installed libtool libraries
  43720. - precious_files_regex=
  43721. - prefer_static_libs=no
  43722. - preload=no
  43723. - prev=
  43724. - prevarg=
  43725. - release=
  43726. - rpath=
  43727. - xrpath=
  43728. - perm_rpath=
  43729. - temp_rpath=
  43730. - thread_safe=no
  43731. - vinfo=
  43732. - vinfo_number=no
  43733. +Remove files from the build directory.
  43734. - func_infer_tag $base_compile
  43735. +RM is the name of the program to use to delete files associated with each FILE
  43736. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  43737. +to RM.
  43738. - # We need to know -static, to get the right output filenames.
  43739. - for arg
  43740. - do
  43741. - case $arg in
  43742. - -all-static | -static | -static-libtool-libs)
  43743. - case $arg in
  43744. - -all-static)
  43745. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  43746. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  43747. - fi
  43748. - if test -n "$link_static_flag"; then
  43749. - dlopen_self=$dlopen_self_static
  43750. - fi
  43751. - prefer_static_libs=yes
  43752. - ;;
  43753. - -static)
  43754. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  43755. - dlopen_self=$dlopen_self_static
  43756. - fi
  43757. - prefer_static_libs=built
  43758. - ;;
  43759. - -static-libtool-libs)
  43760. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  43761. - dlopen_self=$dlopen_self_static
  43762. - fi
  43763. - prefer_static_libs=yes
  43764. - ;;
  43765. - esac
  43766. - build_libtool_libs=no
  43767. - build_old_libs=yes
  43768. - break
  43769. - ;;
  43770. - esac
  43771. - done
  43772. +If FILE is a libtool library, object or program, all the files associated
  43773. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  43774. + ;;
  43775. - # See if our shared archives depend on static archives.
  43776. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  43777. + compile)
  43778. + $ECHO \
  43779. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  43780. - # Go through the arguments, transforming them on the way.
  43781. - while test "$#" -gt 0; do
  43782. - arg="$1"
  43783. - shift
  43784. - case $arg in
  43785. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43786. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  43787. - ;;
  43788. - *) qarg=$arg ;;
  43789. - esac
  43790. - libtool_args="$libtool_args $qarg"
  43791. +Compile a source file into a libtool library object.
  43792. - # If the previous option needs an argument, assign it.
  43793. - if test -n "$prev"; then
  43794. - case $prev in
  43795. - output)
  43796. - compile_command="$compile_command @OUTPUT@"
  43797. - finalize_command="$finalize_command @OUTPUT@"
  43798. - ;;
  43799. - esac
  43800. +This mode accepts the following additional options:
  43801. - case $prev in
  43802. - dlfiles|dlprefiles)
  43803. - if test "$preload" = no; then
  43804. - # Add the symbol object into the linking commands.
  43805. - compile_command="$compile_command @SYMFILE@"
  43806. - finalize_command="$finalize_command @SYMFILE@"
  43807. - preload=yes
  43808. - fi
  43809. - case $arg in
  43810. - *.la | *.lo) ;; # We handle these cases below.
  43811. - force)
  43812. - if test "$dlself" = no; then
  43813. - dlself=needless
  43814. - export_dynamic=yes
  43815. - fi
  43816. - prev=
  43817. - continue
  43818. - ;;
  43819. - self)
  43820. - if test "$prev" = dlprefiles; then
  43821. - dlself=yes
  43822. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  43823. - dlself=yes
  43824. - else
  43825. - dlself=needless
  43826. - export_dynamic=yes
  43827. - fi
  43828. - prev=
  43829. - continue
  43830. - ;;
  43831. - *)
  43832. - if test "$prev" = dlfiles; then
  43833. - dlfiles="$dlfiles $arg"
  43834. - else
  43835. - dlprefiles="$dlprefiles $arg"
  43836. - fi
  43837. - prev=
  43838. - continue
  43839. - ;;
  43840. - esac
  43841. - ;;
  43842. - expsyms)
  43843. - export_symbols="$arg"
  43844. - if test ! -f "$arg"; then
  43845. - $echo "$modename: symbol file \`$arg' does not exist"
  43846. - exit $EXIT_FAILURE
  43847. - fi
  43848. - prev=
  43849. - continue
  43850. - ;;
  43851. - expsyms_regex)
  43852. - export_symbols_regex="$arg"
  43853. - prev=
  43854. - continue
  43855. - ;;
  43856. - inst_prefix)
  43857. - inst_prefix_dir="$arg"
  43858. - prev=
  43859. - continue
  43860. - ;;
  43861. - precious_regex)
  43862. - precious_files_regex="$arg"
  43863. - prev=
  43864. - continue
  43865. - ;;
  43866. - release)
  43867. - release="-$arg"
  43868. - prev=
  43869. - continue
  43870. - ;;
  43871. - objectlist)
  43872. - if test -f "$arg"; then
  43873. - save_arg=$arg
  43874. - moreargs=
  43875. - for fil in `cat $save_arg`
  43876. - do
  43877. -# moreargs="$moreargs $fil"
  43878. - arg=$fil
  43879. - # A libtool-controlled object.
  43880. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  43881. + -no-suppress do not suppress compiler output for multiple passes
  43882. + -prefer-pic try to building PIC objects only
  43883. + -prefer-non-pic try to building non-PIC objects only
  43884. + -shared do not build a \`.o' file suitable for static linking
  43885. + -static only build a \`.o' file suitable for static linking
  43886. - # Check to see that this really is a libtool object.
  43887. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  43888. - pic_object=
  43889. - non_pic_object=
  43890. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  43891. +from the given SOURCEFILE.
  43892. - # Read the .lo file
  43893. - # If there is no directory component, then add one.
  43894. - case $arg in
  43895. - */* | *\\*) . $arg ;;
  43896. - *) . ./$arg ;;
  43897. - esac
  43898. +The output file name is determined by removing the directory component from
  43899. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  43900. +library object suffix, \`.lo'."
  43901. + ;;
  43902. - if test -z "$pic_object" || \
  43903. - test -z "$non_pic_object" ||
  43904. - test "$pic_object" = none && \
  43905. - test "$non_pic_object" = none; then
  43906. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  43907. - exit $EXIT_FAILURE
  43908. - fi
  43909. + execute)
  43910. + $ECHO \
  43911. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  43912. - # Extract subdirectory from the argument.
  43913. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  43914. - if test "X$xdir" = "X$arg"; then
  43915. - xdir=
  43916. - else
  43917. - xdir="$xdir/"
  43918. - fi
  43919. +Automatically set library path, then run a program.
  43920. - if test "$pic_object" != none; then
  43921. - # Prepend the subdirectory the object is found in.
  43922. - pic_object="$xdir$pic_object"
  43923. +This mode accepts the following additional options:
  43924. - if test "$prev" = dlfiles; then
  43925. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  43926. - dlfiles="$dlfiles $pic_object"
  43927. - prev=
  43928. - continue
  43929. - else
  43930. - # If libtool objects are unsupported, then we need to preload.
  43931. - prev=dlprefiles
  43932. - fi
  43933. - fi
  43934. + -dlopen FILE add the directory containing FILE to the library path
  43935. - # CHECK ME: I think I busted this. -Ossama
  43936. - if test "$prev" = dlprefiles; then
  43937. - # Preload the old-style object.
  43938. - dlprefiles="$dlprefiles $pic_object"
  43939. - prev=
  43940. - fi
  43941. +This mode sets the library path environment variable according to \`-dlopen'
  43942. +flags.
  43943. - # A PIC object.
  43944. - libobjs="$libobjs $pic_object"
  43945. - arg="$pic_object"
  43946. - fi
  43947. +If any of the ARGS are libtool executable wrappers, then they are translated
  43948. +into their corresponding uninstalled binary, and any of their required library
  43949. +directories are added to the library path.
  43950. - # Non-PIC object.
  43951. - if test "$non_pic_object" != none; then
  43952. - # Prepend the subdirectory the object is found in.
  43953. - non_pic_object="$xdir$non_pic_object"
  43954. +Then, COMMAND is executed, with ARGS as arguments."
  43955. + ;;
  43956. - # A standard non-PIC object
  43957. - non_pic_objects="$non_pic_objects $non_pic_object"
  43958. - if test -z "$pic_object" || test "$pic_object" = none ; then
  43959. - arg="$non_pic_object"
  43960. - fi
  43961. - else
  43962. - # If the PIC object exists, use it instead.
  43963. - # $xdir was prepended to $pic_object above.
  43964. - non_pic_object="$pic_object"
  43965. - non_pic_objects="$non_pic_objects $non_pic_object"
  43966. - fi
  43967. - else
  43968. - # Only an error if not doing a dry-run.
  43969. - if test -z "$run"; then
  43970. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  43971. - exit $EXIT_FAILURE
  43972. - else
  43973. - # Dry-run case.
  43974. + finish)
  43975. + $ECHO \
  43976. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  43977. - # Extract subdirectory from the argument.
  43978. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  43979. - if test "X$xdir" = "X$arg"; then
  43980. - xdir=
  43981. - else
  43982. - xdir="$xdir/"
  43983. - fi
  43984. +Complete the installation of libtool libraries.
  43985. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  43986. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  43987. - libobjs="$libobjs $pic_object"
  43988. - non_pic_objects="$non_pic_objects $non_pic_object"
  43989. - fi
  43990. - fi
  43991. - done
  43992. - else
  43993. - $echo "$modename: link input file \`$save_arg' does not exist"
  43994. - exit $EXIT_FAILURE
  43995. - fi
  43996. - arg=$save_arg
  43997. - prev=
  43998. - continue
  43999. - ;;
  44000. - rpath | xrpath)
  44001. - # We need an absolute path.
  44002. - case $arg in
  44003. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  44004. - *)
  44005. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  44006. - exit $EXIT_FAILURE
  44007. - ;;
  44008. - esac
  44009. - if test "$prev" = rpath; then
  44010. - case "$rpath " in
  44011. - *" $arg "*) ;;
  44012. - *) rpath="$rpath $arg" ;;
  44013. - esac
  44014. - else
  44015. - case "$xrpath " in
  44016. - *" $arg "*) ;;
  44017. - *) xrpath="$xrpath $arg" ;;
  44018. - esac
  44019. - fi
  44020. - prev=
  44021. - continue
  44022. - ;;
  44023. - xcompiler)
  44024. - compiler_flags="$compiler_flags $qarg"
  44025. - prev=
  44026. - compile_command="$compile_command $qarg"
  44027. - finalize_command="$finalize_command $qarg"
  44028. - continue
  44029. - ;;
  44030. - xlinker)
  44031. - linker_flags="$linker_flags $qarg"
  44032. - compiler_flags="$compiler_flags $wl$qarg"
  44033. - prev=
  44034. - compile_command="$compile_command $wl$qarg"
  44035. - finalize_command="$finalize_command $wl$qarg"
  44036. - continue
  44037. - ;;
  44038. - xcclinker)
  44039. - linker_flags="$linker_flags $qarg"
  44040. - compiler_flags="$compiler_flags $qarg"
  44041. - prev=
  44042. - compile_command="$compile_command $qarg"
  44043. - finalize_command="$finalize_command $qarg"
  44044. - continue
  44045. - ;;
  44046. - shrext)
  44047. - shrext_cmds="$arg"
  44048. - prev=
  44049. - continue
  44050. - ;;
  44051. - darwin_framework|darwin_framework_skip)
  44052. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  44053. - compile_command="$compile_command $arg"
  44054. - finalize_command="$finalize_command $arg"
  44055. - prev=
  44056. - continue
  44057. - ;;
  44058. - *)
  44059. - eval "$prev=\"\$arg\""
  44060. - prev=
  44061. - continue
  44062. - ;;
  44063. - esac
  44064. - fi # test -n "$prev"
  44065. -
  44066. - prevarg="$arg"
  44067. +Each LIBDIR is a directory that contains libtool libraries.
  44068. - case $arg in
  44069. - -all-static)
  44070. - if test -n "$link_static_flag"; then
  44071. - compile_command="$compile_command $link_static_flag"
  44072. - finalize_command="$finalize_command $link_static_flag"
  44073. - fi
  44074. - continue
  44075. - ;;
  44076. +The commands that this mode executes may require superuser privileges. Use
  44077. +the \`--dry-run' option if you just want to see what would be executed."
  44078. + ;;
  44079. - -allow-undefined)
  44080. - # FIXME: remove this flag sometime in the future.
  44081. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  44082. - continue
  44083. - ;;
  44084. + install)
  44085. + $ECHO \
  44086. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  44087. - -avoid-version)
  44088. - avoid_version=yes
  44089. - continue
  44090. - ;;
  44091. +Install executables or libraries.
  44092. - -dlopen)
  44093. - prev=dlfiles
  44094. - continue
  44095. - ;;
  44096. +INSTALL-COMMAND is the installation command. The first component should be
  44097. +either the \`install' or \`cp' program.
  44098. - -dlpreopen)
  44099. - prev=dlprefiles
  44100. - continue
  44101. - ;;
  44102. +The following components of INSTALL-COMMAND are treated specially:
  44103. - -export-dynamic)
  44104. - export_dynamic=yes
  44105. - continue
  44106. - ;;
  44107. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  44108. - -export-symbols | -export-symbols-regex)
  44109. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  44110. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  44111. - exit $EXIT_FAILURE
  44112. - fi
  44113. - if test "X$arg" = "X-export-symbols"; then
  44114. - prev=expsyms
  44115. - else
  44116. - prev=expsyms_regex
  44117. - fi
  44118. - continue
  44119. - ;;
  44120. +The rest of the components are interpreted as arguments to that command (only
  44121. +BSD-compatible install options are recognized)."
  44122. + ;;
  44123. - -framework|-arch|-isysroot)
  44124. - case " $CC " in
  44125. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  44126. - prev=darwin_framework_skip ;;
  44127. - *) compiler_flags="$compiler_flags $arg"
  44128. - prev=darwin_framework ;;
  44129. - esac
  44130. - compile_command="$compile_command $arg"
  44131. - finalize_command="$finalize_command $arg"
  44132. - continue
  44133. - ;;
  44134. + link)
  44135. + $ECHO \
  44136. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  44137. - -inst-prefix-dir)
  44138. - prev=inst_prefix
  44139. - continue
  44140. - ;;
  44141. +Link object files or libraries together to form another library, or to
  44142. +create an executable program.
  44143. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  44144. - # so, if we see these flags be careful not to treat them like -L
  44145. - -L[A-Z][A-Z]*:*)
  44146. - case $with_gcc/$host in
  44147. - no/*-*-irix* | /*-*-irix*)
  44148. - compile_command="$compile_command $arg"
  44149. - finalize_command="$finalize_command $arg"
  44150. - ;;
  44151. - esac
  44152. - continue
  44153. - ;;
  44154. +LINK-COMMAND is a command using the C compiler that you would use to create
  44155. +a program from several object files.
  44156. - -L*)
  44157. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  44158. - # We need an absolute path.
  44159. - case $dir in
  44160. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  44161. - *)
  44162. - absdir=`cd "$dir" && pwd`
  44163. - if test -z "$absdir"; then
  44164. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  44165. - absdir="$dir"
  44166. - notinst_path="$notinst_path $dir"
  44167. - fi
  44168. - dir="$absdir"
  44169. - ;;
  44170. - esac
  44171. - case "$deplibs " in
  44172. - *" -L$dir "*) ;;
  44173. - *)
  44174. - deplibs="$deplibs -L$dir"
  44175. - lib_search_path="$lib_search_path $dir"
  44176. - ;;
  44177. - esac
  44178. - case $host in
  44179. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  44180. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  44181. - case :$dllsearchpath: in
  44182. - *":$dir:"*) ;;
  44183. - *) dllsearchpath="$dllsearchpath:$dir";;
  44184. - esac
  44185. - case :$dllsearchpath: in
  44186. - *":$testbindir:"*) ;;
  44187. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  44188. - esac
  44189. - ;;
  44190. - esac
  44191. - continue
  44192. - ;;
  44193. +The following components of LINK-COMMAND are treated specially:
  44194. - -l*)
  44195. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  44196. - case $host in
  44197. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  44198. - # These systems don't actually have a C or math library (as such)
  44199. - continue
  44200. - ;;
  44201. - *-*-os2*)
  44202. - # These systems don't actually have a C library (as such)
  44203. - test "X$arg" = "X-lc" && continue
  44204. - ;;
  44205. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  44206. - # Do not include libc due to us having libc/libc_r.
  44207. - test "X$arg" = "X-lc" && continue
  44208. - ;;
  44209. - *-*-rhapsody* | *-*-darwin1.[012])
  44210. - # Rhapsody C and math libraries are in the System framework
  44211. - deplibs="$deplibs -framework System"
  44212. - continue
  44213. - ;;
  44214. - *-*-sco3.2v5* | *-*-sco5v6*)
  44215. - # Causes problems with __ctype
  44216. - test "X$arg" = "X-lc" && continue
  44217. - ;;
  44218. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  44219. - # Compiler inserts libc in the correct place for threads to work
  44220. - test "X$arg" = "X-lc" && continue
  44221. - ;;
  44222. - esac
  44223. - elif test "X$arg" = "X-lc_r"; then
  44224. - case $host in
  44225. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  44226. - # Do not include libc_r directly, use -pthread flag.
  44227. - continue
  44228. - ;;
  44229. - esac
  44230. - fi
  44231. - deplibs="$deplibs $arg"
  44232. - continue
  44233. - ;;
  44234. + -all-static do not do any dynamic linking at all
  44235. + -avoid-version do not add a version suffix if possible
  44236. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  44237. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  44238. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  44239. + -export-symbols SYMFILE
  44240. + try to export only the symbols listed in SYMFILE
  44241. + -export-symbols-regex REGEX
  44242. + try to export only the symbols matching REGEX
  44243. + -LLIBDIR search LIBDIR for required installed libraries
  44244. + -lNAME OUTPUT-FILE requires the installed library libNAME
  44245. + -module build a library that can dlopened
  44246. + -no-fast-install disable the fast-install mode
  44247. + -no-install link a not-installable executable
  44248. + -no-undefined declare that a library does not refer to external symbols
  44249. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  44250. + -objectlist FILE Use a list of object files found in FILE to specify objects
  44251. + -precious-files-regex REGEX
  44252. + don't remove output files matching REGEX
  44253. + -release RELEASE specify package release information
  44254. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  44255. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  44256. + -shared only do dynamic linking of libtool libraries
  44257. + -shrext SUFFIX override the standard shared library file extension
  44258. + -static do not do any dynamic linking of uninstalled libtool libraries
  44259. + -static-libtool-libs
  44260. + do not do any dynamic linking of libtool libraries
  44261. + -version-info CURRENT[:REVISION[:AGE]]
  44262. + specify library version info [each variable defaults to 0]
  44263. + -weak LIBNAME declare that the target provides the LIBNAME interface
  44264. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  44265. - # classes, name mangling, and exception handling.
  44266. - -model)
  44267. - compile_command="$compile_command $arg"
  44268. - compiler_flags="$compiler_flags $arg"
  44269. - finalize_command="$finalize_command $arg"
  44270. - prev=xcompiler
  44271. - continue
  44272. - ;;
  44273. +All other options (arguments beginning with \`-') are ignored.
  44274. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  44275. - compiler_flags="$compiler_flags $arg"
  44276. - compile_command="$compile_command $arg"
  44277. - finalize_command="$finalize_command $arg"
  44278. - continue
  44279. - ;;
  44280. +Every other argument is treated as a filename. Files ending in \`.la' are
  44281. +treated as uninstalled libtool libraries, other files are standard or library
  44282. +object files.
  44283. - -module)
  44284. - module=yes
  44285. - continue
  44286. - ;;
  44287. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  44288. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  44289. +required, except when creating a convenience library.
  44290. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  44291. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  44292. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  44293. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  44294. - # -q* pass through compiler args for the IBM compiler
  44295. - # -m* pass through architecture-specific compiler args for GCC
  44296. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  44297. - # compiler args for GCC
  44298. - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  44299. - # -F/path gives path to uninstalled frameworks, gcc on darwin
  44300. - # @file GCC response files
  44301. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  44302. - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
  44303. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  44304. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  44305. - # Unknown arguments in both finalize_command and compile_command need
  44306. - # to be aesthetically quoted because they are evaled later.
  44307. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  44308. - case $arg in
  44309. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44310. - arg="\"$arg\""
  44311. - ;;
  44312. - esac
  44313. - compile_command="$compile_command $arg"
  44314. - finalize_command="$finalize_command $arg"
  44315. - compiler_flags="$compiler_flags $arg"
  44316. - continue
  44317. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  44318. +is created, otherwise an executable program is created."
  44319. ;;
  44320. - -shrext)
  44321. - prev=shrext
  44322. - continue
  44323. - ;;
  44324. -
  44325. - -no-fast-install)
  44326. - fast_install=no
  44327. - continue
  44328. - ;;
  44329. + uninstall)
  44330. + $ECHO \
  44331. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  44332. - -no-install)
  44333. - case $host in
  44334. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
  44335. - # The PATH hackery in wrapper scripts is required on Windows
  44336. - # and Darwin in order for the loader to find any dlls it needs.
  44337. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  44338. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  44339. - fast_install=no
  44340. - ;;
  44341. - *) no_install=yes ;;
  44342. - esac
  44343. - continue
  44344. - ;;
  44345. +Remove libraries from an installation directory.
  44346. - -no-undefined)
  44347. - allow_undefined=no
  44348. - continue
  44349. - ;;
  44350. +RM is the name of the program to use to delete files associated with each FILE
  44351. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  44352. +to RM.
  44353. - -objectlist)
  44354. - prev=objectlist
  44355. - continue
  44356. - ;;
  44357. +If FILE is a libtool library, all the files associated with it are deleted.
  44358. +Otherwise, only FILE itself is deleted using RM."
  44359. + ;;
  44360. - -o) prev=output ;;
  44361. + *)
  44362. + func_fatal_help "invalid operation mode \`$mode'"
  44363. + ;;
  44364. + esac
  44365. - -precious-files-regex)
  44366. - prev=precious_regex
  44367. - continue
  44368. - ;;
  44369. + $ECHO
  44370. + $ECHO "Try \`$progname --help' for more information about other modes."
  44371. - -release)
  44372. - prev=release
  44373. - continue
  44374. - ;;
  44375. + exit $?
  44376. +}
  44377. - -rpath)
  44378. - prev=rpath
  44379. - continue
  44380. - ;;
  44381. + # Now that we've collected a possible --mode arg, show help if necessary
  44382. + $opt_help && func_mode_help
  44383. - -R)
  44384. - prev=xrpath
  44385. - continue
  44386. - ;;
  44387. - -R*)
  44388. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  44389. - # We need an absolute path.
  44390. - case $dir in
  44391. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  44392. - *)
  44393. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  44394. - exit $EXIT_FAILURE
  44395. - ;;
  44396. - esac
  44397. - case "$xrpath " in
  44398. - *" $dir "*) ;;
  44399. - *) xrpath="$xrpath $dir" ;;
  44400. - esac
  44401. - continue
  44402. - ;;
  44403. +# func_mode_execute arg...
  44404. +func_mode_execute ()
  44405. +{
  44406. + $opt_debug
  44407. + # The first argument is the command name.
  44408. + cmd="$nonopt"
  44409. + test -z "$cmd" && \
  44410. + func_fatal_help "you must specify a COMMAND"
  44411. - -static | -static-libtool-libs)
  44412. - # The effects of -static are defined in a previous loop.
  44413. - # We used to do the same as -all-static on platforms that
  44414. - # didn't have a PIC flag, but the assumption that the effects
  44415. - # would be equivalent was wrong. It would break on at least
  44416. - # Digital Unix and AIX.
  44417. - continue
  44418. - ;;
  44419. + # Handle -dlopen flags immediately.
  44420. + for file in $execute_dlfiles; do
  44421. + test -f "$file" \
  44422. + || func_fatal_help "\`$file' is not a file"
  44423. - -thread-safe)
  44424. - thread_safe=yes
  44425. - continue
  44426. - ;;
  44427. + dir=
  44428. + case $file in
  44429. + *.la)
  44430. + # Check to see that this really is a libtool archive.
  44431. + func_lalib_unsafe_p "$file" \
  44432. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  44433. - -version-info)
  44434. - prev=vinfo
  44435. - continue
  44436. - ;;
  44437. - -version-number)
  44438. - prev=vinfo
  44439. - vinfo_number=yes
  44440. - continue
  44441. - ;;
  44442. + # Read the libtool library.
  44443. + dlname=
  44444. + library_names=
  44445. + func_source "$file"
  44446. - -Wc,*)
  44447. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  44448. - arg=
  44449. - save_ifs="$IFS"; IFS=','
  44450. - for flag in $args; do
  44451. - IFS="$save_ifs"
  44452. - case $flag in
  44453. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44454. - flag="\"$flag\""
  44455. - ;;
  44456. - esac
  44457. - arg="$arg $wl$flag"
  44458. - compiler_flags="$compiler_flags $flag"
  44459. - done
  44460. - IFS="$save_ifs"
  44461. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  44462. - ;;
  44463. + # Skip this library if it cannot be dlopened.
  44464. + if test -z "$dlname"; then
  44465. + # Warn if it was a shared library.
  44466. + test -n "$library_names" && \
  44467. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  44468. + continue
  44469. + fi
  44470. - -Wl,*)
  44471. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  44472. - arg=
  44473. - save_ifs="$IFS"; IFS=','
  44474. - for flag in $args; do
  44475. - IFS="$save_ifs"
  44476. - case $flag in
  44477. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44478. - flag="\"$flag\""
  44479. - ;;
  44480. - esac
  44481. - arg="$arg $wl$flag"
  44482. - compiler_flags="$compiler_flags $wl$flag"
  44483. - linker_flags="$linker_flags $flag"
  44484. - done
  44485. - IFS="$save_ifs"
  44486. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  44487. - ;;
  44488. + func_dirname "$file" "" "."
  44489. + dir="$func_dirname_result"
  44490. - -Xcompiler)
  44491. - prev=xcompiler
  44492. - continue
  44493. + if test -f "$dir/$objdir/$dlname"; then
  44494. + dir="$dir/$objdir"
  44495. + else
  44496. + if test ! -f "$dir/$dlname"; then
  44497. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  44498. + fi
  44499. + fi
  44500. ;;
  44501. - -Xlinker)
  44502. - prev=xlinker
  44503. - continue
  44504. + *.lo)
  44505. + # Just add the directory containing the .lo file.
  44506. + func_dirname "$file" "" "."
  44507. + dir="$func_dirname_result"
  44508. ;;
  44509. - -XCClinker)
  44510. - prev=xcclinker
  44511. + *)
  44512. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  44513. continue
  44514. ;;
  44515. + esac
  44516. - # Some other compiler flag.
  44517. - -* | +*)
  44518. - # Unknown arguments in both finalize_command and compile_command need
  44519. - # to be aesthetically quoted because they are evaled later.
  44520. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  44521. - case $arg in
  44522. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44523. - arg="\"$arg\""
  44524. - ;;
  44525. - esac
  44526. - ;;
  44527. -
  44528. - *.$objext)
  44529. - # A standard object.
  44530. - objs="$objs $arg"
  44531. - ;;
  44532. -
  44533. - *.lo)
  44534. - # A libtool-controlled object.
  44535. -
  44536. - # Check to see that this really is a libtool object.
  44537. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  44538. - pic_object=
  44539. - non_pic_object=
  44540. + # Get the absolute pathname.
  44541. + absdir=`cd "$dir" && pwd`
  44542. + test -n "$absdir" && dir="$absdir"
  44543. - # Read the .lo file
  44544. - # If there is no directory component, then add one.
  44545. - case $arg in
  44546. - */* | *\\*) . $arg ;;
  44547. - *) . ./$arg ;;
  44548. - esac
  44549. + # Now add the directory to shlibpath_var.
  44550. + if eval "test -z \"\$$shlibpath_var\""; then
  44551. + eval "$shlibpath_var=\"\$dir\""
  44552. + else
  44553. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  44554. + fi
  44555. + done
  44556. - if test -z "$pic_object" || \
  44557. - test -z "$non_pic_object" ||
  44558. - test "$pic_object" = none && \
  44559. - test "$non_pic_object" = none; then
  44560. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  44561. - exit $EXIT_FAILURE
  44562. - fi
  44563. + # This variable tells wrapper scripts just to set shlibpath_var
  44564. + # rather than running their programs.
  44565. + libtool_execute_magic="$magic"
  44566. - # Extract subdirectory from the argument.
  44567. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  44568. - if test "X$xdir" = "X$arg"; then
  44569. - xdir=
  44570. - else
  44571. - xdir="$xdir/"
  44572. - fi
  44573. + # Check if any of the arguments is a wrapper script.
  44574. + args=
  44575. + for file
  44576. + do
  44577. + case $file in
  44578. + -*) ;;
  44579. + *)
  44580. + # Do a test to see if this is really a libtool program.
  44581. + if func_ltwrapper_script_p "$file"; then
  44582. + func_source "$file"
  44583. + # Transform arg to wrapped name.
  44584. + file="$progdir/$program"
  44585. + elif func_ltwrapper_executable_p "$file"; then
  44586. + func_ltwrapper_scriptname "$file"
  44587. + func_source "$func_ltwrapper_scriptname_result"
  44588. + # Transform arg to wrapped name.
  44589. + file="$progdir/$program"
  44590. + fi
  44591. + ;;
  44592. + esac
  44593. + # Quote arguments (to preserve shell metacharacters).
  44594. + func_quote_for_eval "$file"
  44595. + args="$args $func_quote_for_eval_result"
  44596. + done
  44597. - if test "$pic_object" != none; then
  44598. - # Prepend the subdirectory the object is found in.
  44599. - pic_object="$xdir$pic_object"
  44600. + if test "X$opt_dry_run" = Xfalse; then
  44601. + if test -n "$shlibpath_var"; then
  44602. + # Export the shlibpath_var.
  44603. + eval "export $shlibpath_var"
  44604. + fi
  44605. - if test "$prev" = dlfiles; then
  44606. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  44607. - dlfiles="$dlfiles $pic_object"
  44608. - prev=
  44609. - continue
  44610. + # Restore saved environment variables
  44611. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  44612. + do
  44613. + eval "if test \"\${save_$lt_var+set}\" = set; then
  44614. + $lt_var=\$save_$lt_var; export $lt_var
  44615. else
  44616. - # If libtool objects are unsupported, then we need to preload.
  44617. - prev=dlprefiles
  44618. - fi
  44619. - fi
  44620. + $lt_unset $lt_var
  44621. + fi"
  44622. + done
  44623. - # CHECK ME: I think I busted this. -Ossama
  44624. - if test "$prev" = dlprefiles; then
  44625. - # Preload the old-style object.
  44626. - dlprefiles="$dlprefiles $pic_object"
  44627. - prev=
  44628. - fi
  44629. + # Now prepare to actually exec the command.
  44630. + exec_cmd="\$cmd$args"
  44631. + else
  44632. + # Display what would be done.
  44633. + if test -n "$shlibpath_var"; then
  44634. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  44635. + $ECHO "export $shlibpath_var"
  44636. + fi
  44637. + $ECHO "$cmd$args"
  44638. + exit $EXIT_SUCCESS
  44639. + fi
  44640. +}
  44641. - # A PIC object.
  44642. - libobjs="$libobjs $pic_object"
  44643. - arg="$pic_object"
  44644. - fi
  44645. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  44646. - # Non-PIC object.
  44647. - if test "$non_pic_object" != none; then
  44648. - # Prepend the subdirectory the object is found in.
  44649. - non_pic_object="$xdir$non_pic_object"
  44650. - # A standard non-PIC object
  44651. - non_pic_objects="$non_pic_objects $non_pic_object"
  44652. - if test -z "$pic_object" || test "$pic_object" = none ; then
  44653. - arg="$non_pic_object"
  44654. - fi
  44655. - else
  44656. - # If the PIC object exists, use it instead.
  44657. - # $xdir was prepended to $pic_object above.
  44658. - non_pic_object="$pic_object"
  44659. - non_pic_objects="$non_pic_objects $non_pic_object"
  44660. - fi
  44661. - else
  44662. - # Only an error if not doing a dry-run.
  44663. - if test -z "$run"; then
  44664. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  44665. - exit $EXIT_FAILURE
  44666. - else
  44667. - # Dry-run case.
  44668. +# func_mode_finish arg...
  44669. +func_mode_finish ()
  44670. +{
  44671. + $opt_debug
  44672. + libdirs="$nonopt"
  44673. + admincmds=
  44674. - # Extract subdirectory from the argument.
  44675. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  44676. - if test "X$xdir" = "X$arg"; then
  44677. - xdir=
  44678. - else
  44679. - xdir="$xdir/"
  44680. - fi
  44681. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  44682. + for dir
  44683. + do
  44684. + libdirs="$libdirs $dir"
  44685. + done
  44686. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  44687. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  44688. - libobjs="$libobjs $pic_object"
  44689. - non_pic_objects="$non_pic_objects $non_pic_object"
  44690. - fi
  44691. + for libdir in $libdirs; do
  44692. + if test -n "$finish_cmds"; then
  44693. + # Do each command in the finish commands.
  44694. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  44695. +'"$cmd"'"'
  44696. fi
  44697. - ;;
  44698. -
  44699. - *.$libext)
  44700. - # An archive.
  44701. - deplibs="$deplibs $arg"
  44702. - old_deplibs="$old_deplibs $arg"
  44703. - continue
  44704. - ;;
  44705. + if test -n "$finish_eval"; then
  44706. + # Do the single finish_eval.
  44707. + eval cmds=\"$finish_eval\"
  44708. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  44709. + $cmds"
  44710. + fi
  44711. + done
  44712. + fi
  44713. - *.la)
  44714. - # A libtool-controlled library.
  44715. + # Exit here if they wanted silent mode.
  44716. + $opt_silent && exit $EXIT_SUCCESS
  44717. - if test "$prev" = dlfiles; then
  44718. - # This library was specified with -dlopen.
  44719. - dlfiles="$dlfiles $arg"
  44720. - prev=
  44721. - elif test "$prev" = dlprefiles; then
  44722. - # The library was specified with -dlpreopen.
  44723. - dlprefiles="$dlprefiles $arg"
  44724. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  44725. + $ECHO "Libraries have been installed in:"
  44726. + for libdir in $libdirs; do
  44727. + $ECHO " $libdir"
  44728. + done
  44729. + $ECHO
  44730. + $ECHO "If you ever happen to want to link against installed libraries"
  44731. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  44732. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  44733. + $ECHO "flag during linking and do at least one of the following:"
  44734. + if test -n "$shlibpath_var"; then
  44735. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  44736. + $ECHO " during execution"
  44737. + fi
  44738. + if test -n "$runpath_var"; then
  44739. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  44740. + $ECHO " during linking"
  44741. + fi
  44742. + if test -n "$hardcode_libdir_flag_spec"; then
  44743. + libdir=LIBDIR
  44744. + eval flag=\"$hardcode_libdir_flag_spec\"
  44745. +
  44746. + $ECHO " - use the \`$flag' linker flag"
  44747. + fi
  44748. + if test -n "$admincmds"; then
  44749. + $ECHO " - have your system administrator run these commands:$admincmds"
  44750. + fi
  44751. + if test -f /etc/ld.so.conf; then
  44752. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  44753. + fi
  44754. + $ECHO
  44755. +
  44756. + $ECHO "See any operating system documentation about shared libraries for"
  44757. + case $host in
  44758. + solaris2.[6789]|solaris2.1[0-9])
  44759. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  44760. + $ECHO "pages."
  44761. + ;;
  44762. + *)
  44763. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  44764. + ;;
  44765. + esac
  44766. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  44767. + exit $EXIT_SUCCESS
  44768. +}
  44769. +
  44770. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  44771. +
  44772. +
  44773. +# func_mode_install arg...
  44774. +func_mode_install ()
  44775. +{
  44776. + $opt_debug
  44777. + # There may be an optional sh(1) argument at the beginning of
  44778. + # install_prog (especially on Windows NT).
  44779. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  44780. + # Allow the use of GNU shtool's install command.
  44781. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  44782. + # Aesthetically quote it.
  44783. + func_quote_for_eval "$nonopt"
  44784. + install_prog="$func_quote_for_eval_result "
  44785. + arg=$1
  44786. + shift
  44787. + else
  44788. + install_prog=
  44789. + arg=$nonopt
  44790. + fi
  44791. +
  44792. + # The real first argument should be the name of the installation program.
  44793. + # Aesthetically quote it.
  44794. + func_quote_for_eval "$arg"
  44795. + install_prog="$install_prog$func_quote_for_eval_result"
  44796. +
  44797. + # We need to accept at least all the BSD install flags.
  44798. + dest=
  44799. + files=
  44800. + opts=
  44801. + prev=
  44802. + install_type=
  44803. + isdir=no
  44804. + stripme=
  44805. + for arg
  44806. + do
  44807. + if test -n "$dest"; then
  44808. + files="$files $dest"
  44809. + dest=$arg
  44810. + continue
  44811. + fi
  44812. +
  44813. + case $arg in
  44814. + -d) isdir=yes ;;
  44815. + -f)
  44816. + case " $install_prog " in
  44817. + *[\\\ /]cp\ *) ;;
  44818. + *) prev=$arg ;;
  44819. + esac
  44820. + ;;
  44821. + -g | -m | -o)
  44822. + prev=$arg
  44823. + ;;
  44824. + -s)
  44825. + stripme=" -s"
  44826. + continue
  44827. + ;;
  44828. + -*)
  44829. + ;;
  44830. + *)
  44831. + # If the previous option needed an argument, then skip it.
  44832. + if test -n "$prev"; then
  44833. prev=
  44834. else
  44835. - deplibs="$deplibs $arg"
  44836. + dest=$arg
  44837. + continue
  44838. fi
  44839. - continue
  44840. ;;
  44841. + esac
  44842. - # Some other compiler argument.
  44843. - *)
  44844. - # Unknown arguments in both finalize_command and compile_command need
  44845. - # to be aesthetically quoted because they are evaled later.
  44846. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  44847. - case $arg in
  44848. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44849. - arg="\"$arg\""
  44850. - ;;
  44851. - esac
  44852. - ;;
  44853. - esac # arg
  44854. + # Aesthetically quote the argument.
  44855. + func_quote_for_eval "$arg"
  44856. + install_prog="$install_prog $func_quote_for_eval_result"
  44857. + done
  44858. - # Now actually substitute the argument into the commands.
  44859. - if test -n "$arg"; then
  44860. - compile_command="$compile_command $arg"
  44861. - finalize_command="$finalize_command $arg"
  44862. - fi
  44863. - done # argument parsing loop
  44864. + test -z "$install_prog" && \
  44865. + func_fatal_help "you must specify an install program"
  44866. - if test -n "$prev"; then
  44867. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  44868. - $echo "$help" 1>&2
  44869. - exit $EXIT_FAILURE
  44870. - fi
  44871. + test -n "$prev" && \
  44872. + func_fatal_help "the \`$prev' option requires an argument"
  44873. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  44874. - eval arg=\"$export_dynamic_flag_spec\"
  44875. - compile_command="$compile_command $arg"
  44876. - finalize_command="$finalize_command $arg"
  44877. + if test -z "$files"; then
  44878. + if test -z "$dest"; then
  44879. + func_fatal_help "no file or destination specified"
  44880. + else
  44881. + func_fatal_help "you must specify a destination"
  44882. + fi
  44883. fi
  44884. - oldlibs=
  44885. - # calculate the name of the file, without its directory
  44886. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  44887. - libobjs_save="$libobjs"
  44888. + # Strip any trailing slash from the destination.
  44889. + func_stripname '' '/' "$dest"
  44890. + dest=$func_stripname_result
  44891. - if test -n "$shlibpath_var"; then
  44892. - # get the directories listed in $shlibpath_var
  44893. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  44894. + # Check to see that the destination is a directory.
  44895. + test -d "$dest" && isdir=yes
  44896. + if test "$isdir" = yes; then
  44897. + destdir="$dest"
  44898. + destname=
  44899. else
  44900. - shlib_search_path=
  44901. - fi
  44902. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  44903. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  44904. + func_dirname_and_basename "$dest" "" "."
  44905. + destdir="$func_dirname_result"
  44906. + destname="$func_basename_result"
  44907. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  44908. - if test "X$output_objdir" = "X$output"; then
  44909. - output_objdir="$objdir"
  44910. - else
  44911. - output_objdir="$output_objdir/$objdir"
  44912. - fi
  44913. - # Create the object directory.
  44914. - if test ! -d "$output_objdir"; then
  44915. - $show "$mkdir $output_objdir"
  44916. - $run $mkdir $output_objdir
  44917. - exit_status=$?
  44918. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  44919. - exit $exit_status
  44920. - fi
  44921. + # Not a directory, so check to see that there is only one file specified.
  44922. + set dummy $files; shift
  44923. + test "$#" -gt 1 && \
  44924. + func_fatal_help "\`$dest' is not a directory"
  44925. fi
  44926. -
  44927. - # Determine the type of output
  44928. - case $output in
  44929. - "")
  44930. - $echo "$modename: you must specify an output file" 1>&2
  44931. - $echo "$help" 1>&2
  44932. - exit $EXIT_FAILURE
  44933. - ;;
  44934. - *.$libext) linkmode=oldlib ;;
  44935. - *.lo | *.$objext) linkmode=obj ;;
  44936. - *.la) linkmode=lib ;;
  44937. - *) linkmode=prog ;; # Anything else should be a program.
  44938. - esac
  44939. -
  44940. - case $host in
  44941. - *cygwin* | *mingw* | *pw32*)
  44942. - # don't eliminate duplications in $postdeps and $predeps
  44943. - duplicate_compiler_generated_deps=yes
  44944. - ;;
  44945. + case $destdir in
  44946. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  44947. *)
  44948. - duplicate_compiler_generated_deps=$duplicate_deps
  44949. + for file in $files; do
  44950. + case $file in
  44951. + *.lo) ;;
  44952. + *)
  44953. + func_fatal_help "\`$destdir' must be an absolute directory name"
  44954. + ;;
  44955. + esac
  44956. + done
  44957. ;;
  44958. esac
  44959. - specialdeplibs=
  44960. - libs=
  44961. - # Find all interdependent deplibs by searching for libraries
  44962. - # that are linked more than once (e.g. -la -lb -la)
  44963. - for deplib in $deplibs; do
  44964. - if test "X$duplicate_deps" = "Xyes" ; then
  44965. - case "$libs " in
  44966. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  44967. - esac
  44968. - fi
  44969. - libs="$libs $deplib"
  44970. - done
  44971. + # This variable tells wrapper scripts just to set variables rather
  44972. + # than running their programs.
  44973. + libtool_install_magic="$magic"
  44974. - if test "$linkmode" = lib; then
  44975. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  44976. + staticlibs=
  44977. + future_libdirs=
  44978. + current_libdirs=
  44979. + for file in $files; do
  44980. - # Compute libraries that are listed more than once in $predeps
  44981. - # $postdeps and mark them as special (i.e., whose duplicates are
  44982. - # not to be eliminated).
  44983. - pre_post_deps=
  44984. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  44985. - for pre_post_dep in $predeps $postdeps; do
  44986. - case "$pre_post_deps " in
  44987. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  44988. + # Do each installation.
  44989. + case $file in
  44990. + *.$libext)
  44991. + # Do the static libraries later.
  44992. + staticlibs="$staticlibs $file"
  44993. + ;;
  44994. +
  44995. + *.la)
  44996. + # Check to see that this really is a libtool archive.
  44997. + func_lalib_unsafe_p "$file" \
  44998. + || func_fatal_help "\`$file' is not a valid libtool archive"
  44999. +
  45000. + library_names=
  45001. + old_library=
  45002. + relink_command=
  45003. + func_source "$file"
  45004. +
  45005. + # Add the libdir to current_libdirs if it is the destination.
  45006. + if test "X$destdir" = "X$libdir"; then
  45007. + case "$current_libdirs " in
  45008. + *" $libdir "*) ;;
  45009. + *) current_libdirs="$current_libdirs $libdir" ;;
  45010. esac
  45011. - pre_post_deps="$pre_post_deps $pre_post_dep"
  45012. - done
  45013. - fi
  45014. - pre_post_deps=
  45015. - fi
  45016. + else
  45017. + # Note the libdir as a future libdir.
  45018. + case "$future_libdirs " in
  45019. + *" $libdir "*) ;;
  45020. + *) future_libdirs="$future_libdirs $libdir" ;;
  45021. + esac
  45022. + fi
  45023. - deplibs=
  45024. - newdependency_libs=
  45025. - newlib_search_path=
  45026. - need_relink=no # whether we're linking any uninstalled libtool libraries
  45027. - notinst_deplibs= # not-installed libtool libraries
  45028. - case $linkmode in
  45029. - lib)
  45030. - passes="conv link"
  45031. - for file in $dlfiles $dlprefiles; do
  45032. - case $file in
  45033. - *.la) ;;
  45034. - *)
  45035. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  45036. - exit $EXIT_FAILURE
  45037. + func_dirname "$file" "/" ""
  45038. + dir="$func_dirname_result"
  45039. + dir="$dir$objdir"
  45040. +
  45041. + if test -n "$relink_command"; then
  45042. + # Determine the prefix the user has applied to our future dir.
  45043. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  45044. +
  45045. + # Don't allow the user to place us outside of our expected
  45046. + # location b/c this prevents finding dependent libraries that
  45047. + # are installed to the same prefix.
  45048. + # At present, this check doesn't affect windows .dll's that
  45049. + # are installed into $libdir/../bin (currently, that works fine)
  45050. + # but it's something to keep an eye on.
  45051. + test "$inst_prefix_dir" = "$destdir" && \
  45052. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  45053. +
  45054. + if test -n "$inst_prefix_dir"; then
  45055. + # Stick the inst_prefix_dir data into the link command.
  45056. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  45057. + else
  45058. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  45059. + fi
  45060. +
  45061. + func_warning "relinking \`$file'"
  45062. + func_show_eval "$relink_command" \
  45063. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  45064. + fi
  45065. +
  45066. + # See the names of the shared library.
  45067. + set dummy $library_names; shift
  45068. + if test -n "$1"; then
  45069. + realname="$1"
  45070. + shift
  45071. +
  45072. + srcname="$realname"
  45073. + test -n "$relink_command" && srcname="$realname"T
  45074. +
  45075. + # Install the shared library and build the symlinks.
  45076. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  45077. + 'exit $?'
  45078. + tstripme="$stripme"
  45079. + case $host_os in
  45080. + cygwin* | mingw* | pw32* | cegcc*)
  45081. + case $realname in
  45082. + *.dll.a)
  45083. + tstripme=""
  45084. + ;;
  45085. + esac
  45086. ;;
  45087. esac
  45088. - done
  45089. - ;;
  45090. - prog)
  45091. - compile_deplibs=
  45092. - finalize_deplibs=
  45093. - alldeplibs=no
  45094. - newdlfiles=
  45095. - newdlprefiles=
  45096. - passes="conv scan dlopen dlpreopen link"
  45097. - ;;
  45098. - *) passes="conv"
  45099. - ;;
  45100. - esac
  45101. - for pass in $passes; do
  45102. - if test "$linkmode,$pass" = "lib,link" ||
  45103. - test "$linkmode,$pass" = "prog,scan"; then
  45104. - libs="$deplibs"
  45105. - deplibs=
  45106. - fi
  45107. - if test "$linkmode" = prog; then
  45108. - case $pass in
  45109. - dlopen) libs="$dlfiles" ;;
  45110. - dlpreopen) libs="$dlprefiles" ;;
  45111. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  45112. - esac
  45113. - fi
  45114. - if test "$pass" = dlopen; then
  45115. - # Collect dlpreopened libraries
  45116. - save_deplibs="$deplibs"
  45117. - deplibs=
  45118. - fi
  45119. - for deplib in $libs; do
  45120. - lib=
  45121. - found=no
  45122. - case $deplib in
  45123. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  45124. - if test "$linkmode,$pass" = "prog,link"; then
  45125. - compile_deplibs="$deplib $compile_deplibs"
  45126. - finalize_deplibs="$deplib $finalize_deplibs"
  45127. - else
  45128. - compiler_flags="$compiler_flags $deplib"
  45129. - fi
  45130. - continue
  45131. - ;;
  45132. - -l*)
  45133. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  45134. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  45135. - continue
  45136. + if test -n "$tstripme" && test -n "$striplib"; then
  45137. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  45138. fi
  45139. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  45140. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  45141. - for search_ext in .la $std_shrext .so .a; do
  45142. - # Search the libtool library
  45143. - lib="$searchdir/lib${name}${search_ext}"
  45144. - if test -f "$lib"; then
  45145. - if test "$search_ext" = ".la"; then
  45146. - found=yes
  45147. - else
  45148. - found=no
  45149. - fi
  45150. - break 2
  45151. - fi
  45152. +
  45153. + if test "$#" -gt 0; then
  45154. + # Delete the old symlinks, and create new ones.
  45155. + # Try `ln -sf' first, because the `ln' binary might depend on
  45156. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  45157. + # so we also need to try rm && ln -s.
  45158. + for linkname
  45159. + do
  45160. + test "$linkname" != "$realname" \
  45161. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  45162. done
  45163. - done
  45164. - if test "$found" != yes; then
  45165. - # deplib doesn't seem to be a libtool library
  45166. - if test "$linkmode,$pass" = "prog,link"; then
  45167. - compile_deplibs="$deplib $compile_deplibs"
  45168. - finalize_deplibs="$deplib $finalize_deplibs"
  45169. - else
  45170. - deplibs="$deplib $deplibs"
  45171. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  45172. - fi
  45173. - continue
  45174. - else # deplib is a libtool library
  45175. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  45176. - # We need to do some special things here, and not later.
  45177. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  45178. - case " $predeps $postdeps " in
  45179. - *" $deplib "*)
  45180. - if (${SED} -e '2q' $lib |
  45181. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  45182. - library_names=
  45183. - old_library=
  45184. - case $lib in
  45185. - */* | *\\*) . $lib ;;
  45186. - *) . ./$lib ;;
  45187. - esac
  45188. - for l in $old_library $library_names; do
  45189. - ll="$l"
  45190. - done
  45191. - if test "X$ll" = "X$old_library" ; then # only static version available
  45192. - found=no
  45193. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  45194. - test "X$ladir" = "X$lib" && ladir="."
  45195. - lib=$ladir/$old_library
  45196. - if test "$linkmode,$pass" = "prog,link"; then
  45197. - compile_deplibs="$deplib $compile_deplibs"
  45198. - finalize_deplibs="$deplib $finalize_deplibs"
  45199. - else
  45200. - deplibs="$deplib $deplibs"
  45201. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  45202. - fi
  45203. - continue
  45204. - fi
  45205. - fi
  45206. - ;;
  45207. - *) ;;
  45208. - esac
  45209. - fi
  45210. - fi
  45211. - ;; # -l
  45212. - -L*)
  45213. - case $linkmode in
  45214. - lib)
  45215. - deplibs="$deplib $deplibs"
  45216. - test "$pass" = conv && continue
  45217. - newdependency_libs="$deplib $newdependency_libs"
  45218. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  45219. - ;;
  45220. - prog)
  45221. - if test "$pass" = conv; then
  45222. - deplibs="$deplib $deplibs"
  45223. - continue
  45224. - fi
  45225. - if test "$pass" = scan; then
  45226. - deplibs="$deplib $deplibs"
  45227. - else
  45228. - compile_deplibs="$deplib $compile_deplibs"
  45229. - finalize_deplibs="$deplib $finalize_deplibs"
  45230. - fi
  45231. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  45232. - ;;
  45233. - *)
  45234. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  45235. - ;;
  45236. - esac # linkmode
  45237. - continue
  45238. - ;; # -L
  45239. - -R*)
  45240. - if test "$pass" = link; then
  45241. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  45242. - # Make sure the xrpath contains only unique directories.
  45243. - case "$xrpath " in
  45244. - *" $dir "*) ;;
  45245. - *) xrpath="$xrpath $dir" ;;
  45246. - esac
  45247. fi
  45248. - deplibs="$deplib $deplibs"
  45249. - continue
  45250. +
  45251. + # Do each command in the postinstall commands.
  45252. + lib="$destdir/$realname"
  45253. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  45254. + fi
  45255. +
  45256. + # Install the pseudo-library for information purposes.
  45257. + func_basename "$file"
  45258. + name="$func_basename_result"
  45259. + instname="$dir/$name"i
  45260. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  45261. +
  45262. + # Maybe install the static library, too.
  45263. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  45264. + ;;
  45265. +
  45266. + *.lo)
  45267. + # Install (i.e. copy) a libtool object.
  45268. +
  45269. + # Figure out destination file name, if it wasn't already specified.
  45270. + if test -n "$destname"; then
  45271. + destfile="$destdir/$destname"
  45272. + else
  45273. + func_basename "$file"
  45274. + destfile="$func_basename_result"
  45275. + destfile="$destdir/$destfile"
  45276. + fi
  45277. +
  45278. + # Deduce the name of the destination old-style object file.
  45279. + case $destfile in
  45280. + *.lo)
  45281. + func_lo2o "$destfile"
  45282. + staticdest=$func_lo2o_result
  45283. ;;
  45284. - *.la) lib="$deplib" ;;
  45285. - *.$libext)
  45286. - if test "$pass" = conv; then
  45287. - deplibs="$deplib $deplibs"
  45288. - continue
  45289. - fi
  45290. - case $linkmode in
  45291. - lib)
  45292. - valid_a_lib=no
  45293. - case $deplibs_check_method in
  45294. - match_pattern*)
  45295. - set dummy $deplibs_check_method
  45296. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  45297. - if eval $echo \"$deplib\" 2>/dev/null \
  45298. - | $SED 10q \
  45299. - | $EGREP "$match_pattern_regex" > /dev/null; then
  45300. - valid_a_lib=yes
  45301. - fi
  45302. - ;;
  45303. - pass_all)
  45304. - valid_a_lib=yes
  45305. - ;;
  45306. - esac
  45307. - if test "$valid_a_lib" != yes; then
  45308. - $echo
  45309. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  45310. - $echo "*** I have the capability to make that library automatically link in when"
  45311. - $echo "*** you link to this library. But I can only do this if you have a"
  45312. - $echo "*** shared version of the library, which you do not appear to have"
  45313. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  45314. - $echo "*** that it is just a static archive that I should not used here."
  45315. - else
  45316. - $echo
  45317. - $echo "*** Warning: Linking the shared library $output against the"
  45318. - $echo "*** static library $deplib is not portable!"
  45319. - deplibs="$deplib $deplibs"
  45320. - fi
  45321. - continue
  45322. - ;;
  45323. - prog)
  45324. - if test "$pass" != link; then
  45325. - deplibs="$deplib $deplibs"
  45326. - else
  45327. - compile_deplibs="$deplib $compile_deplibs"
  45328. - finalize_deplibs="$deplib $finalize_deplibs"
  45329. - fi
  45330. - continue
  45331. - ;;
  45332. - esac # linkmode
  45333. - ;; # *.$libext
  45334. - *.lo | *.$objext)
  45335. - if test "$pass" = conv; then
  45336. - deplibs="$deplib $deplibs"
  45337. - elif test "$linkmode" = prog; then
  45338. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  45339. - # If there is no dlopen support or we're linking statically,
  45340. - # we need to preload.
  45341. - newdlprefiles="$newdlprefiles $deplib"
  45342. - compile_deplibs="$deplib $compile_deplibs"
  45343. - finalize_deplibs="$deplib $finalize_deplibs"
  45344. - else
  45345. - newdlfiles="$newdlfiles $deplib"
  45346. - fi
  45347. - fi
  45348. - continue
  45349. + *.$objext)
  45350. + staticdest="$destfile"
  45351. + destfile=
  45352. ;;
  45353. - %DEPLIBS%)
  45354. - alldeplibs=yes
  45355. - continue
  45356. + *)
  45357. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  45358. ;;
  45359. - esac # case $deplib
  45360. - if test "$found" = yes || test -f "$lib"; then :
  45361. - else
  45362. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  45363. - exit $EXIT_FAILURE
  45364. + esac
  45365. +
  45366. + # Install the libtool object if requested.
  45367. + test -n "$destfile" && \
  45368. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  45369. +
  45370. + # Install the old object if enabled.
  45371. + if test "$build_old_libs" = yes; then
  45372. + # Deduce the name of the old-style object file.
  45373. + func_lo2o "$file"
  45374. + staticobj=$func_lo2o_result
  45375. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  45376. fi
  45377. + exit $EXIT_SUCCESS
  45378. + ;;
  45379. - # Check to see that this really is a libtool archive.
  45380. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  45381. + *)
  45382. + # Figure out destination file name, if it wasn't already specified.
  45383. + if test -n "$destname"; then
  45384. + destfile="$destdir/$destname"
  45385. else
  45386. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  45387. - exit $EXIT_FAILURE
  45388. + func_basename "$file"
  45389. + destfile="$func_basename_result"
  45390. + destfile="$destdir/$destfile"
  45391. fi
  45392. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  45393. - test "X$ladir" = "X$lib" && ladir="."
  45394. + # If the file is missing, and there is a .exe on the end, strip it
  45395. + # because it is most likely a libtool script we actually want to
  45396. + # install
  45397. + stripped_ext=""
  45398. + case $file in
  45399. + *.exe)
  45400. + if test ! -f "$file"; then
  45401. + func_stripname '' '.exe' "$file"
  45402. + file=$func_stripname_result
  45403. + stripped_ext=".exe"
  45404. + fi
  45405. + ;;
  45406. + esac
  45407. - dlname=
  45408. - dlopen=
  45409. - dlpreopen=
  45410. - libdir=
  45411. - library_names=
  45412. - old_library=
  45413. - # If the library was installed with an old release of libtool,
  45414. - # it will not redefine variables installed, or shouldnotlink
  45415. - installed=yes
  45416. - shouldnotlink=no
  45417. - avoidtemprpath=
  45418. + # Do a test to see if this is really a libtool program.
  45419. + case $host in
  45420. + *cygwin* | *mingw*)
  45421. + if func_ltwrapper_executable_p "$file"; then
  45422. + func_ltwrapper_scriptname "$file"
  45423. + wrapper=$func_ltwrapper_scriptname_result
  45424. + else
  45425. + func_stripname '' '.exe' "$file"
  45426. + wrapper=$func_stripname_result
  45427. + fi
  45428. + ;;
  45429. + *)
  45430. + wrapper=$file
  45431. + ;;
  45432. + esac
  45433. + if func_ltwrapper_script_p "$wrapper"; then
  45434. + notinst_deplibs=
  45435. + relink_command=
  45436. + func_source "$wrapper"
  45437. - # Read the .la file
  45438. - case $lib in
  45439. - */* | *\\*) . $lib ;;
  45440. - *) . ./$lib ;;
  45441. - esac
  45442. + # Check the variables that should have been set.
  45443. + test -z "$generated_by_libtool_version" && \
  45444. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  45445. - if test "$linkmode,$pass" = "lib,link" ||
  45446. - test "$linkmode,$pass" = "prog,scan" ||
  45447. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  45448. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  45449. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  45450. - fi
  45451. -
  45452. - if test "$pass" = conv; then
  45453. - # Only check for convenience libraries
  45454. - deplibs="$lib $deplibs"
  45455. - if test -z "$libdir"; then
  45456. - if test -z "$old_library"; then
  45457. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  45458. - exit $EXIT_FAILURE
  45459. + finalize=yes
  45460. + for lib in $notinst_deplibs; do
  45461. + # Check to see that each library is installed.
  45462. + libdir=
  45463. + if test -f "$lib"; then
  45464. + func_source "$lib"
  45465. fi
  45466. - # It is a libtool convenience library, so add in its objects.
  45467. - convenience="$convenience $ladir/$objdir/$old_library"
  45468. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  45469. - tmp_libs=
  45470. - for deplib in $dependency_libs; do
  45471. - deplibs="$deplib $deplibs"
  45472. - if test "X$duplicate_deps" = "Xyes" ; then
  45473. - case "$tmp_libs " in
  45474. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  45475. - esac
  45476. - fi
  45477. - tmp_libs="$tmp_libs $deplib"
  45478. - done
  45479. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  45480. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  45481. - exit $EXIT_FAILURE
  45482. - fi
  45483. - continue
  45484. - fi # $pass = conv
  45485. -
  45486. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  45487. + if test -n "$libdir" && test ! -f "$libfile"; then
  45488. + func_warning "\`$lib' has not been installed in \`$libdir'"
  45489. + finalize=no
  45490. + fi
  45491. + done
  45492. - # Get the name of the library we link against.
  45493. - linklib=
  45494. - for l in $old_library $library_names; do
  45495. - linklib="$l"
  45496. - done
  45497. - if test -z "$linklib"; then
  45498. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  45499. - exit $EXIT_FAILURE
  45500. - fi
  45501. + relink_command=
  45502. + func_source "$wrapper"
  45503. - # This library was specified with -dlopen.
  45504. - if test "$pass" = dlopen; then
  45505. - if test -z "$libdir"; then
  45506. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  45507. - exit $EXIT_FAILURE
  45508. - fi
  45509. - if test -z "$dlname" ||
  45510. - test "$dlopen_support" != yes ||
  45511. - test "$build_libtool_libs" = no; then
  45512. - # If there is no dlname, no dlopen support or we're linking
  45513. - # statically, we need to preload. We also need to preload any
  45514. - # dependent libraries so libltdl's deplib preloader doesn't
  45515. - # bomb out in the load deplibs phase.
  45516. - dlprefiles="$dlprefiles $lib $dependency_libs"
  45517. + outputname=
  45518. + if test "$fast_install" = no && test -n "$relink_command"; then
  45519. + $opt_dry_run || {
  45520. + if test "$finalize" = yes; then
  45521. + tmpdir=`func_mktempdir`
  45522. + func_basename "$file$stripped_ext"
  45523. + file="$func_basename_result"
  45524. + outputname="$tmpdir/$file"
  45525. + # Replace the output file specification.
  45526. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  45527. +
  45528. + $opt_silent || {
  45529. + func_quote_for_expand "$relink_command"
  45530. + eval "func_echo $func_quote_for_expand_result"
  45531. + }
  45532. + if eval "$relink_command"; then :
  45533. + else
  45534. + func_error "error: relink \`$file' with the above command before installing it"
  45535. + $opt_dry_run || ${RM}r "$tmpdir"
  45536. + continue
  45537. + fi
  45538. + file="$outputname"
  45539. + else
  45540. + func_warning "cannot relink \`$file'"
  45541. + fi
  45542. + }
  45543. else
  45544. - newdlfiles="$newdlfiles $lib"
  45545. + # Install the binary that we compiled earlier.
  45546. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  45547. fi
  45548. - continue
  45549. - fi # $pass = dlopen
  45550. + fi
  45551. - # We need an absolute path.
  45552. - case $ladir in
  45553. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  45554. - *)
  45555. - abs_ladir=`cd "$ladir" && pwd`
  45556. - if test -z "$abs_ladir"; then
  45557. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  45558. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  45559. - abs_ladir="$ladir"
  45560. - fi
  45561. + # remove .exe since cygwin /usr/bin/install will append another
  45562. + # one anyway
  45563. + case $install_prog,$host in
  45564. + */usr/bin/install*,*cygwin*)
  45565. + case $file:$destfile in
  45566. + *.exe:*.exe)
  45567. + # this is ok
  45568. + ;;
  45569. + *.exe:*)
  45570. + destfile=$destfile.exe
  45571. + ;;
  45572. + *:*.exe)
  45573. + func_stripname '' '.exe' "$destfile"
  45574. + destfile=$func_stripname_result
  45575. + ;;
  45576. + esac
  45577. ;;
  45578. esac
  45579. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  45580. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  45581. + $opt_dry_run || if test -n "$outputname"; then
  45582. + ${RM}r "$tmpdir"
  45583. + fi
  45584. + ;;
  45585. + esac
  45586. + done
  45587. - # Find the relevant object directory and library name.
  45588. - if test "X$installed" = Xyes; then
  45589. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  45590. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  45591. - dir="$ladir"
  45592. - absdir="$abs_ladir"
  45593. - libdir="$abs_ladir"
  45594. - else
  45595. - dir="$libdir"
  45596. - absdir="$libdir"
  45597. + for file in $staticlibs; do
  45598. + func_basename "$file"
  45599. + name="$func_basename_result"
  45600. +
  45601. + # Set up the ranlib parameters.
  45602. + oldlib="$destdir/$name"
  45603. +
  45604. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  45605. +
  45606. + if test -n "$stripme" && test -n "$old_striplib"; then
  45607. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  45608. + fi
  45609. +
  45610. + # Do each command in the postinstall commands.
  45611. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  45612. + done
  45613. +
  45614. + test -n "$future_libdirs" && \
  45615. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  45616. +
  45617. + if test -n "$current_libdirs"; then
  45618. + # Maybe just do a dry run.
  45619. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  45620. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  45621. + else
  45622. + exit $EXIT_SUCCESS
  45623. + fi
  45624. +}
  45625. +
  45626. +test "$mode" = install && func_mode_install ${1+"$@"}
  45627. +
  45628. +
  45629. +# func_generate_dlsyms outputname originator pic_p
  45630. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  45631. +# a dlpreopen symbol table.
  45632. +func_generate_dlsyms ()
  45633. +{
  45634. + $opt_debug
  45635. + my_outputname="$1"
  45636. + my_originator="$2"
  45637. + my_pic_p="${3-no}"
  45638. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  45639. + my_dlsyms=
  45640. +
  45641. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  45642. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  45643. + my_dlsyms="${my_outputname}S.c"
  45644. + else
  45645. + func_error "not configured to extract global symbols from dlpreopened files"
  45646. + fi
  45647. + fi
  45648. +
  45649. + if test -n "$my_dlsyms"; then
  45650. + case $my_dlsyms in
  45651. + "") ;;
  45652. + *.c)
  45653. + # Discover the nlist of each of the dlfiles.
  45654. + nlist="$output_objdir/${my_outputname}.nm"
  45655. +
  45656. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  45657. +
  45658. + # Parse the name list into a source file.
  45659. + func_verbose "creating $output_objdir/$my_dlsyms"
  45660. +
  45661. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  45662. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  45663. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  45664. +
  45665. +#ifdef __cplusplus
  45666. +extern \"C\" {
  45667. +#endif
  45668. +
  45669. +/* External symbol declarations for the compiler. */\
  45670. +"
  45671. +
  45672. + if test "$dlself" = yes; then
  45673. + func_verbose "generating symbol list for \`$output'"
  45674. +
  45675. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  45676. +
  45677. + # Add our own program objects to the symbol list.
  45678. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  45679. + for progfile in $progfiles; do
  45680. + func_verbose "extracting global C symbols from \`$progfile'"
  45681. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  45682. + done
  45683. +
  45684. + if test -n "$exclude_expsyms"; then
  45685. + $opt_dry_run || {
  45686. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  45687. + eval '$MV "$nlist"T "$nlist"'
  45688. + }
  45689. fi
  45690. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  45691. - else
  45692. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  45693. - dir="$ladir"
  45694. - absdir="$abs_ladir"
  45695. - # Remove this search path later
  45696. - notinst_path="$notinst_path $abs_ladir"
  45697. +
  45698. + if test -n "$export_symbols_regex"; then
  45699. + $opt_dry_run || {
  45700. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  45701. + eval '$MV "$nlist"T "$nlist"'
  45702. + }
  45703. + fi
  45704. +
  45705. + # Prepare the list of exported symbols
  45706. + if test -z "$export_symbols"; then
  45707. + export_symbols="$output_objdir/$outputname.exp"
  45708. + $opt_dry_run || {
  45709. + $RM $export_symbols
  45710. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  45711. + case $host in
  45712. + *cygwin* | *mingw* | *cegcc* )
  45713. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  45714. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  45715. + ;;
  45716. + esac
  45717. + }
  45718. else
  45719. - dir="$ladir/$objdir"
  45720. - absdir="$abs_ladir/$objdir"
  45721. - # Remove this search path later
  45722. - notinst_path="$notinst_path $abs_ladir"
  45723. + $opt_dry_run || {
  45724. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  45725. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  45726. + eval '$MV "$nlist"T "$nlist"'
  45727. + case $host in
  45728. + *cygwin | *mingw* | *cegcc* )
  45729. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  45730. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  45731. + ;;
  45732. + esac
  45733. + }
  45734. fi
  45735. - fi # $installed = yes
  45736. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  45737. + fi
  45738. - # This library was specified with -dlpreopen.
  45739. - if test "$pass" = dlpreopen; then
  45740. - if test -z "$libdir"; then
  45741. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  45742. - exit $EXIT_FAILURE
  45743. + for dlprefile in $dlprefiles; do
  45744. + func_verbose "extracting global C symbols from \`$dlprefile'"
  45745. + func_basename "$dlprefile"
  45746. + name="$func_basename_result"
  45747. + $opt_dry_run || {
  45748. + eval '$ECHO ": $name " >> "$nlist"'
  45749. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  45750. + }
  45751. + done
  45752. +
  45753. + $opt_dry_run || {
  45754. + # Make sure we have at least an empty file.
  45755. + test -f "$nlist" || : > "$nlist"
  45756. +
  45757. + if test -n "$exclude_expsyms"; then
  45758. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  45759. + $MV "$nlist"T "$nlist"
  45760. fi
  45761. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  45762. - # are required to link).
  45763. - if test -n "$old_library"; then
  45764. - newdlprefiles="$newdlprefiles $dir/$old_library"
  45765. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  45766. - elif test -n "$dlname"; then
  45767. - newdlprefiles="$newdlprefiles $dir/$dlname"
  45768. +
  45769. + # Try sorting and uniquifying the output.
  45770. + if $GREP -v "^: " < "$nlist" |
  45771. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  45772. + sort -k 3
  45773. + else
  45774. + sort +2
  45775. + fi |
  45776. + uniq > "$nlist"S; then
  45777. + :
  45778. else
  45779. - newdlprefiles="$newdlprefiles $dir/$linklib"
  45780. + $GREP -v "^: " < "$nlist" > "$nlist"S
  45781. fi
  45782. - fi # $pass = dlpreopen
  45783. - if test -z "$libdir"; then
  45784. - # Link the convenience library
  45785. - if test "$linkmode" = lib; then
  45786. - deplibs="$dir/$old_library $deplibs"
  45787. - elif test "$linkmode,$pass" = "prog,link"; then
  45788. - compile_deplibs="$dir/$old_library $compile_deplibs"
  45789. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  45790. + if test -f "$nlist"S; then
  45791. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  45792. else
  45793. - deplibs="$lib $deplibs" # used for prog,scan pass
  45794. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  45795. fi
  45796. - continue
  45797. - fi
  45798. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  45799. - if test "$linkmode" = prog && test "$pass" != link; then
  45800. - newlib_search_path="$newlib_search_path $ladir"
  45801. - deplibs="$lib $deplibs"
  45802. +/* The mapping between symbol names and symbols. */
  45803. +typedef struct {
  45804. + const char *name;
  45805. + void *address;
  45806. +} lt_dlsymlist;
  45807. +"
  45808. + case $host in
  45809. + *cygwin* | *mingw* | *cegcc* )
  45810. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  45811. +/* DATA imports from DLLs on WIN32 con't be const, because
  45812. + runtime relocations are performed -- see ld's documentation
  45813. + on pseudo-relocs. */"
  45814. + lt_dlsym_const= ;;
  45815. + *osf5*)
  45816. + echo >> "$output_objdir/$my_dlsyms" "\
  45817. +/* This system does not cope well with relocations in const data */"
  45818. + lt_dlsym_const= ;;
  45819. + *)
  45820. + lt_dlsym_const=const ;;
  45821. + esac
  45822. - linkalldeplibs=no
  45823. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  45824. - test "$build_libtool_libs" = no; then
  45825. - linkalldeplibs=yes
  45826. - fi
  45827. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  45828. +extern $lt_dlsym_const lt_dlsymlist
  45829. +lt_${my_prefix}_LTX_preloaded_symbols[];
  45830. +$lt_dlsym_const lt_dlsymlist
  45831. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  45832. +{\
  45833. + { \"$my_originator\", (void *) 0 },"
  45834. - tmp_libs=
  45835. - for deplib in $dependency_libs; do
  45836. - case $deplib in
  45837. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  45838. - esac
  45839. - # Need to link against all dependency_libs?
  45840. - if test "$linkalldeplibs" = yes; then
  45841. - deplibs="$deplib $deplibs"
  45842. - else
  45843. - # Need to hardcode shared library paths
  45844. - # or/and link against static libraries
  45845. - newdependency_libs="$deplib $newdependency_libs"
  45846. - fi
  45847. - if test "X$duplicate_deps" = "Xyes" ; then
  45848. - case "$tmp_libs " in
  45849. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  45850. - esac
  45851. - fi
  45852. - tmp_libs="$tmp_libs $deplib"
  45853. - done # for deplib
  45854. - continue
  45855. - fi # $linkmode = prog...
  45856. + case $need_lib_prefix in
  45857. + no)
  45858. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  45859. + ;;
  45860. + *)
  45861. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  45862. + ;;
  45863. + esac
  45864. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  45865. + {0, (void *) 0}
  45866. +};
  45867. - if test "$linkmode,$pass" = "prog,link"; then
  45868. - if test -n "$library_names" &&
  45869. - { { test "$prefer_static_libs" = no ||
  45870. - test "$prefer_static_libs,$installed" = "built,yes"; } ||
  45871. - test -z "$old_library"; }; then
  45872. - # We need to hardcode the library path
  45873. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  45874. - # Make sure the rpath contains only unique directories.
  45875. - case "$temp_rpath " in
  45876. - *" $dir "*) ;;
  45877. - *" $absdir "*) ;;
  45878. - *) temp_rpath="$temp_rpath $absdir" ;;
  45879. - esac
  45880. - fi
  45881. +/* This works around a problem in FreeBSD linker */
  45882. +#ifdef FREEBSD_WORKAROUND
  45883. +static const void *lt_preloaded_setup() {
  45884. + return lt_${my_prefix}_LTX_preloaded_symbols;
  45885. +}
  45886. +#endif
  45887. - # Hardcode the library path.
  45888. - # Skip directories that are in the system default run-time
  45889. - # search path.
  45890. - case " $sys_lib_dlsearch_path " in
  45891. - *" $absdir "*) ;;
  45892. - *)
  45893. - case "$compile_rpath " in
  45894. - *" $absdir "*) ;;
  45895. - *) compile_rpath="$compile_rpath $absdir"
  45896. - esac
  45897. - ;;
  45898. - esac
  45899. - case " $sys_lib_dlsearch_path " in
  45900. - *" $libdir "*) ;;
  45901. - *)
  45902. - case "$finalize_rpath " in
  45903. - *" $libdir "*) ;;
  45904. - *) finalize_rpath="$finalize_rpath $libdir"
  45905. - esac
  45906. - ;;
  45907. - esac
  45908. - fi # $linkmode,$pass = prog,link...
  45909. +#ifdef __cplusplus
  45910. +}
  45911. +#endif\
  45912. +"
  45913. + } # !$opt_dry_run
  45914. - if test "$alldeplibs" = yes &&
  45915. - { test "$deplibs_check_method" = pass_all ||
  45916. - { test "$build_libtool_libs" = yes &&
  45917. - test -n "$library_names"; }; }; then
  45918. - # We only need to search for static libraries
  45919. - continue
  45920. - fi
  45921. - fi
  45922. + pic_flag_for_symtable=
  45923. + case "$compile_command " in
  45924. + *" -static "*) ;;
  45925. + *)
  45926. + case $host in
  45927. + # compiling the symbol table file with pic_flag works around
  45928. + # a FreeBSD bug that causes programs to crash when -lm is
  45929. + # linked before any other PIC object. But we must not use
  45930. + # pic_flag when linking with -static. The problem exists in
  45931. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  45932. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  45933. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  45934. + *-*-hpux*)
  45935. + pic_flag_for_symtable=" $pic_flag" ;;
  45936. + *)
  45937. + if test "X$my_pic_p" != Xno; then
  45938. + pic_flag_for_symtable=" $pic_flag"
  45939. + fi
  45940. + ;;
  45941. + esac
  45942. + ;;
  45943. + esac
  45944. + symtab_cflags=
  45945. + for arg in $LTCFLAGS; do
  45946. + case $arg in
  45947. + -pie | -fpie | -fPIE) ;;
  45948. + *) symtab_cflags="$symtab_cflags $arg" ;;
  45949. + esac
  45950. + done
  45951. - link_static=no # Whether the deplib will be linked statically
  45952. - use_static_libs=$prefer_static_libs
  45953. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  45954. - use_static_libs=no
  45955. - fi
  45956. - if test -n "$library_names" &&
  45957. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  45958. - if test "$installed" = no; then
  45959. - notinst_deplibs="$notinst_deplibs $lib"
  45960. - need_relink=yes
  45961. - fi
  45962. - # This is a shared library
  45963. + # Now compile the dynamic symbol file.
  45964. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  45965. - # Warn about portability, can't link against -module's on
  45966. - # some systems (darwin)
  45967. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  45968. - $echo
  45969. - if test "$linkmode" = prog; then
  45970. - $echo "*** Warning: Linking the executable $output against the loadable module"
  45971. - else
  45972. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  45973. - fi
  45974. - $echo "*** $linklib is not portable!"
  45975. - fi
  45976. - if test "$linkmode" = lib &&
  45977. - test "$hardcode_into_libs" = yes; then
  45978. - # Hardcode the library path.
  45979. - # Skip directories that are in the system default run-time
  45980. - # search path.
  45981. - case " $sys_lib_dlsearch_path " in
  45982. - *" $absdir "*) ;;
  45983. - *)
  45984. - case "$compile_rpath " in
  45985. - *" $absdir "*) ;;
  45986. - *) compile_rpath="$compile_rpath $absdir"
  45987. - esac
  45988. - ;;
  45989. - esac
  45990. - case " $sys_lib_dlsearch_path " in
  45991. - *" $libdir "*) ;;
  45992. - *)
  45993. - case "$finalize_rpath " in
  45994. - *" $libdir "*) ;;
  45995. - *) finalize_rpath="$finalize_rpath $libdir"
  45996. - esac
  45997. - ;;
  45998. - esac
  45999. + # Clean up the generated files.
  46000. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  46001. +
  46002. + # Transform the symbol file into the correct name.
  46003. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  46004. + case $host in
  46005. + *cygwin* | *mingw* | *cegcc* )
  46006. + if test -f "$output_objdir/$my_outputname.def"; then
  46007. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  46008. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  46009. + else
  46010. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  46011. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  46012. fi
  46013. + ;;
  46014. + *)
  46015. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  46016. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  46017. + ;;
  46018. + esac
  46019. + ;;
  46020. + *)
  46021. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  46022. + ;;
  46023. + esac
  46024. + else
  46025. + # We keep going just in case the user didn't refer to
  46026. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  46027. + # really was required.
  46028. +
  46029. + # Nullify the symbol file.
  46030. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  46031. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  46032. + fi
  46033. +}
  46034. - if test -n "$old_archive_from_expsyms_cmds"; then
  46035. - # figure out the soname
  46036. - set dummy $library_names
  46037. - realname="$2"
  46038. - shift; shift
  46039. - libname=`eval \\$echo \"$libname_spec\"`
  46040. - # use dlname if we got it. it's perfectly good, no?
  46041. - if test -n "$dlname"; then
  46042. - soname="$dlname"
  46043. - elif test -n "$soname_spec"; then
  46044. - # bleh windows
  46045. - case $host in
  46046. - *cygwin* | mingw*)
  46047. - major=`expr $current - $age`
  46048. - versuffix="-$major"
  46049. - ;;
  46050. - esac
  46051. - eval soname=\"$soname_spec\"
  46052. - else
  46053. - soname="$realname"
  46054. - fi
  46055. +# func_win32_libid arg
  46056. +# return the library type of file 'arg'
  46057. +#
  46058. +# Need a lot of goo to handle *both* DLLs and import libs
  46059. +# Has to be a shell function in order to 'eat' the argument
  46060. +# that is supplied when $file_magic_command is called.
  46061. +func_win32_libid ()
  46062. +{
  46063. + $opt_debug
  46064. + win32_libid_type="unknown"
  46065. + win32_fileres=`file -L $1 2>/dev/null`
  46066. + case $win32_fileres in
  46067. + *ar\ archive\ import\ library*) # definitely import
  46068. + win32_libid_type="x86 archive import"
  46069. + ;;
  46070. + *ar\ archive*) # could be an import, or static
  46071. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  46072. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  46073. + win32_nmres=`eval $NM -f posix -A $1 |
  46074. + $SED -n -e '
  46075. + 1,100{
  46076. + / I /{
  46077. + s,.*,import,
  46078. + p
  46079. + q
  46080. + }
  46081. + }'`
  46082. + case $win32_nmres in
  46083. + import*) win32_libid_type="x86 archive import";;
  46084. + *) win32_libid_type="x86 archive static";;
  46085. + esac
  46086. + fi
  46087. + ;;
  46088. + *DLL*)
  46089. + win32_libid_type="x86 DLL"
  46090. + ;;
  46091. + *executable*) # but shell scripts are "executable" too...
  46092. + case $win32_fileres in
  46093. + *MS\ Windows\ PE\ Intel*)
  46094. + win32_libid_type="x86 DLL"
  46095. + ;;
  46096. + esac
  46097. + ;;
  46098. + esac
  46099. + $ECHO "$win32_libid_type"
  46100. +}
  46101. - # Make a new name for the extract_expsyms_cmds to use
  46102. - soroot="$soname"
  46103. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  46104. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  46105. - # If the library has no export list, then create one now
  46106. - if test -f "$output_objdir/$soname-def"; then :
  46107. - else
  46108. - $show "extracting exported symbol list from \`$soname'"
  46109. - save_ifs="$IFS"; IFS='~'
  46110. - cmds=$extract_expsyms_cmds
  46111. - for cmd in $cmds; do
  46112. - IFS="$save_ifs"
  46113. - eval cmd=\"$cmd\"
  46114. - $show "$cmd"
  46115. - $run eval "$cmd" || exit $?
  46116. - done
  46117. - IFS="$save_ifs"
  46118. - fi
  46119. - # Create $newlib
  46120. - if test -f "$output_objdir/$newlib"; then :; else
  46121. - $show "generating import library for \`$soname'"
  46122. - save_ifs="$IFS"; IFS='~'
  46123. - cmds=$old_archive_from_expsyms_cmds
  46124. - for cmd in $cmds; do
  46125. - IFS="$save_ifs"
  46126. - eval cmd=\"$cmd\"
  46127. - $show "$cmd"
  46128. - $run eval "$cmd" || exit $?
  46129. - done
  46130. - IFS="$save_ifs"
  46131. - fi
  46132. - # make sure the library variables are pointing to the new library
  46133. - dir=$output_objdir
  46134. - linklib=$newlib
  46135. - fi # test -n "$old_archive_from_expsyms_cmds"
  46136. +# func_extract_an_archive dir oldlib
  46137. +func_extract_an_archive ()
  46138. +{
  46139. + $opt_debug
  46140. + f_ex_an_ar_dir="$1"; shift
  46141. + f_ex_an_ar_oldlib="$1"
  46142. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  46143. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  46144. + :
  46145. + else
  46146. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  46147. + fi
  46148. +}
  46149. - if test "$linkmode" = prog || test "$mode" != relink; then
  46150. - add_shlibpath=
  46151. - add_dir=
  46152. - add=
  46153. - lib_linked=yes
  46154. - case $hardcode_action in
  46155. - immediate | unsupported)
  46156. - if test "$hardcode_direct" = no; then
  46157. - add="$dir/$linklib"
  46158. - case $host in
  46159. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  46160. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  46161. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  46162. - *-*-unixware7*) add_dir="-L$dir" ;;
  46163. - *-*-darwin* )
  46164. - # if the lib is a module then we can not link against
  46165. - # it, someone is ignoring the new warnings I added
  46166. - if /usr/bin/file -L $add 2> /dev/null |
  46167. - $EGREP ": [^:]* bundle" >/dev/null ; then
  46168. - $echo "** Warning, lib $linklib is a module, not a shared library"
  46169. - if test -z "$old_library" ; then
  46170. - $echo
  46171. - $echo "** And there doesn't seem to be a static archive available"
  46172. - $echo "** The link will probably fail, sorry"
  46173. - else
  46174. - add="$dir/$old_library"
  46175. - fi
  46176. - fi
  46177. - esac
  46178. - elif test "$hardcode_minus_L" = no; then
  46179. - case $host in
  46180. - *-*-sunos*) add_shlibpath="$dir" ;;
  46181. - esac
  46182. - add_dir="-L$dir"
  46183. - add="-l$name"
  46184. - elif test "$hardcode_shlibpath_var" = no; then
  46185. - add_shlibpath="$dir"
  46186. - add="-l$name"
  46187. - else
  46188. - lib_linked=no
  46189. - fi
  46190. - ;;
  46191. - relink)
  46192. - if test "$hardcode_direct" = yes; then
  46193. - add="$dir/$linklib"
  46194. - elif test "$hardcode_minus_L" = yes; then
  46195. - add_dir="-L$dir"
  46196. - # Try looking first in the location we're being installed to.
  46197. - if test -n "$inst_prefix_dir"; then
  46198. - case $libdir in
  46199. - [\\/]*)
  46200. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  46201. - ;;
  46202. - esac
  46203. - fi
  46204. - add="-l$name"
  46205. - elif test "$hardcode_shlibpath_var" = yes; then
  46206. - add_shlibpath="$dir"
  46207. - add="-l$name"
  46208. - else
  46209. - lib_linked=no
  46210. - fi
  46211. - ;;
  46212. - *) lib_linked=no ;;
  46213. - esac
  46214. - if test "$lib_linked" != yes; then
  46215. - $echo "$modename: configuration error: unsupported hardcode properties"
  46216. - exit $EXIT_FAILURE
  46217. - fi
  46218. +# func_extract_archives gentop oldlib ...
  46219. +func_extract_archives ()
  46220. +{
  46221. + $opt_debug
  46222. + my_gentop="$1"; shift
  46223. + my_oldlibs=${1+"$@"}
  46224. + my_oldobjs=""
  46225. + my_xlib=""
  46226. + my_xabs=""
  46227. + my_xdir=""
  46228. - if test -n "$add_shlibpath"; then
  46229. - case :$compile_shlibpath: in
  46230. - *":$add_shlibpath:"*) ;;
  46231. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  46232. - esac
  46233. - fi
  46234. - if test "$linkmode" = prog; then
  46235. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  46236. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  46237. - else
  46238. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  46239. - test -n "$add" && deplibs="$add $deplibs"
  46240. - if test "$hardcode_direct" != yes && \
  46241. - test "$hardcode_minus_L" != yes && \
  46242. - test "$hardcode_shlibpath_var" = yes; then
  46243. - case :$finalize_shlibpath: in
  46244. - *":$libdir:"*) ;;
  46245. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  46246. - esac
  46247. - fi
  46248. - fi
  46249. - fi
  46250. + for my_xlib in $my_oldlibs; do
  46251. + # Extract the objects.
  46252. + case $my_xlib in
  46253. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  46254. + *) my_xabs=`pwd`"/$my_xlib" ;;
  46255. + esac
  46256. + func_basename "$my_xlib"
  46257. + my_xlib="$func_basename_result"
  46258. + my_xlib_u=$my_xlib
  46259. + while :; do
  46260. + case " $extracted_archives " in
  46261. + *" $my_xlib_u "*)
  46262. + func_arith $extracted_serial + 1
  46263. + extracted_serial=$func_arith_result
  46264. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  46265. + *) break ;;
  46266. + esac
  46267. + done
  46268. + extracted_archives="$extracted_archives $my_xlib_u"
  46269. + my_xdir="$my_gentop/$my_xlib_u"
  46270. - if test "$linkmode" = prog || test "$mode" = relink; then
  46271. - add_shlibpath=
  46272. - add_dir=
  46273. - add=
  46274. - # Finalize command for both is simple: just hardcode it.
  46275. - if test "$hardcode_direct" = yes; then
  46276. - add="$libdir/$linklib"
  46277. - elif test "$hardcode_minus_L" = yes; then
  46278. - add_dir="-L$libdir"
  46279. - add="-l$name"
  46280. - elif test "$hardcode_shlibpath_var" = yes; then
  46281. - case :$finalize_shlibpath: in
  46282. - *":$libdir:"*) ;;
  46283. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  46284. - esac
  46285. - add="-l$name"
  46286. - elif test "$hardcode_automatic" = yes; then
  46287. - if test -n "$inst_prefix_dir" &&
  46288. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  46289. - add="$inst_prefix_dir$libdir/$linklib"
  46290. - else
  46291. - add="$libdir/$linklib"
  46292. - fi
  46293. - else
  46294. - # We cannot seem to hardcode it, guess we'll fake it.
  46295. - add_dir="-L$libdir"
  46296. - # Try looking first in the location we're being installed to.
  46297. - if test -n "$inst_prefix_dir"; then
  46298. - case $libdir in
  46299. - [\\/]*)
  46300. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  46301. - ;;
  46302. - esac
  46303. - fi
  46304. - add="-l$name"
  46305. - fi
  46306. + func_mkdir_p "$my_xdir"
  46307. - if test "$linkmode" = prog; then
  46308. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  46309. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  46310. - else
  46311. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  46312. - test -n "$add" && deplibs="$add $deplibs"
  46313. - fi
  46314. - fi
  46315. - elif test "$linkmode" = prog; then
  46316. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  46317. - # is not unsupported. This is valid on all known static and
  46318. - # shared platforms.
  46319. - if test "$hardcode_direct" != unsupported; then
  46320. - test -n "$old_library" && linklib="$old_library"
  46321. - compile_deplibs="$dir/$linklib $compile_deplibs"
  46322. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  46323. + case $host in
  46324. + *-darwin*)
  46325. + func_verbose "Extracting $my_xabs"
  46326. + # Do not bother doing anything if just a dry run
  46327. + $opt_dry_run || {
  46328. + darwin_orig_dir=`pwd`
  46329. + cd $my_xdir || exit $?
  46330. + darwin_archive=$my_xabs
  46331. + darwin_curdir=`pwd`
  46332. + darwin_base_archive=`basename "$darwin_archive"`
  46333. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  46334. + if test -n "$darwin_arches"; then
  46335. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  46336. + darwin_arch=
  46337. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  46338. + for darwin_arch in $darwin_arches ; do
  46339. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  46340. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  46341. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  46342. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  46343. + cd "$darwin_curdir"
  46344. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  46345. + done # $darwin_arches
  46346. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  46347. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  46348. + darwin_file=
  46349. + darwin_files=
  46350. + for darwin_file in $darwin_filelist; do
  46351. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  46352. + $LIPO -create -output "$darwin_file" $darwin_files
  46353. + done # $darwin_filelist
  46354. + $RM -rf unfat-$$
  46355. + cd "$darwin_orig_dir"
  46356. else
  46357. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  46358. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  46359. - fi
  46360. - elif test "$build_libtool_libs" = yes; then
  46361. - # Not a shared library
  46362. - if test "$deplibs_check_method" != pass_all; then
  46363. - # We're trying link a shared library against a static one
  46364. - # but the system doesn't support it.
  46365. + cd $darwin_orig_dir
  46366. + func_extract_an_archive "$my_xdir" "$my_xabs"
  46367. + fi # $darwin_arches
  46368. + } # !$opt_dry_run
  46369. + ;;
  46370. + *)
  46371. + func_extract_an_archive "$my_xdir" "$my_xabs"
  46372. + ;;
  46373. + esac
  46374. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  46375. + done
  46376. - # Just print a warning and add the library to dependency_libs so
  46377. - # that the program can be linked against the static library.
  46378. - $echo
  46379. - $echo "*** Warning: This system can not link to static lib archive $lib."
  46380. - $echo "*** I have the capability to make that library automatically link in when"
  46381. - $echo "*** you link to this library. But I can only do this if you have a"
  46382. - $echo "*** shared version of the library, which you do not appear to have."
  46383. - if test "$module" = yes; then
  46384. - $echo "*** But as you try to build a module library, libtool will still create "
  46385. - $echo "*** a static module, that should work as long as the dlopening application"
  46386. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  46387. - if test -z "$global_symbol_pipe"; then
  46388. - $echo
  46389. - $echo "*** However, this would only work if libtool was able to extract symbol"
  46390. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  46391. - $echo "*** not find such a program. So, this module is probably useless."
  46392. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  46393. - fi
  46394. - if test "$build_old_libs" = no; then
  46395. - build_libtool_libs=module
  46396. - build_old_libs=yes
  46397. - else
  46398. - build_libtool_libs=no
  46399. - fi
  46400. - fi
  46401. - else
  46402. - deplibs="$dir/$old_library $deplibs"
  46403. - link_static=yes
  46404. - fi
  46405. - fi # link shared/static library?
  46406. + func_extract_archives_result="$my_oldobjs"
  46407. +}
  46408. - if test "$linkmode" = lib; then
  46409. - if test -n "$dependency_libs" &&
  46410. - { test "$hardcode_into_libs" != yes ||
  46411. - test "$build_old_libs" = yes ||
  46412. - test "$link_static" = yes; }; then
  46413. - # Extract -R from dependency_libs
  46414. - temp_deplibs=
  46415. - for libdir in $dependency_libs; do
  46416. - case $libdir in
  46417. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  46418. - case " $xrpath " in
  46419. - *" $temp_xrpath "*) ;;
  46420. - *) xrpath="$xrpath $temp_xrpath";;
  46421. - esac;;
  46422. - *) temp_deplibs="$temp_deplibs $libdir";;
  46423. - esac
  46424. - done
  46425. - dependency_libs="$temp_deplibs"
  46426. - fi
  46427. - newlib_search_path="$newlib_search_path $absdir"
  46428. - # Link against this library
  46429. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  46430. - # ... and its dependency_libs
  46431. - tmp_libs=
  46432. - for deplib in $dependency_libs; do
  46433. - newdependency_libs="$deplib $newdependency_libs"
  46434. - if test "X$duplicate_deps" = "Xyes" ; then
  46435. - case "$tmp_libs " in
  46436. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  46437. - esac
  46438. - fi
  46439. - tmp_libs="$tmp_libs $deplib"
  46440. - done
  46441. - if test "$link_all_deplibs" != no; then
  46442. - # Add the search paths of all dependency libraries
  46443. - for deplib in $dependency_libs; do
  46444. - case $deplib in
  46445. - -L*) path="$deplib" ;;
  46446. - *.la)
  46447. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  46448. - test "X$dir" = "X$deplib" && dir="."
  46449. - # We need an absolute path.
  46450. - case $dir in
  46451. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  46452. - *)
  46453. - absdir=`cd "$dir" && pwd`
  46454. - if test -z "$absdir"; then
  46455. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  46456. - absdir="$dir"
  46457. - fi
  46458. - ;;
  46459. - esac
  46460. - if grep "^installed=no" $deplib > /dev/null; then
  46461. - path="$absdir/$objdir"
  46462. - else
  46463. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  46464. - if test -z "$libdir"; then
  46465. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  46466. - exit $EXIT_FAILURE
  46467. - fi
  46468. - if test "$absdir" != "$libdir"; then
  46469. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  46470. - fi
  46471. - path="$absdir"
  46472. - fi
  46473. - depdepl=
  46474. - case $host in
  46475. - *-*-darwin*)
  46476. - # we do not want to link against static libs,
  46477. - # but need to link against shared
  46478. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  46479. - if test -n "$deplibrary_names" ; then
  46480. - for tmp in $deplibrary_names ; do
  46481. - depdepl=$tmp
  46482. - done
  46483. - if test -f "$path/$depdepl" ; then
  46484. - depdepl="$path/$depdepl"
  46485. - fi
  46486. - # do not add paths which are already there
  46487. - case " $newlib_search_path " in
  46488. - *" $path "*) ;;
  46489. - *) newlib_search_path="$newlib_search_path $path";;
  46490. - esac
  46491. - fi
  46492. - path=""
  46493. - ;;
  46494. - *)
  46495. - path="-L$path"
  46496. - ;;
  46497. - esac
  46498. - ;;
  46499. - -l*)
  46500. - case $host in
  46501. - *-*-darwin*)
  46502. - # Again, we only want to link against shared libraries
  46503. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  46504. - for tmp in $newlib_search_path ; do
  46505. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  46506. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  46507. - break
  46508. - fi
  46509. - done
  46510. - path=""
  46511. - ;;
  46512. - *) continue ;;
  46513. - esac
  46514. - ;;
  46515. - *) continue ;;
  46516. - esac
  46517. - case " $deplibs " in
  46518. - *" $path "*) ;;
  46519. - *) deplibs="$path $deplibs" ;;
  46520. - esac
  46521. - case " $deplibs " in
  46522. - *" $depdepl "*) ;;
  46523. - *) deplibs="$depdepl $deplibs" ;;
  46524. - esac
  46525. - done
  46526. - fi # link_all_deplibs != no
  46527. - fi # linkmode = lib
  46528. - done # for deplib in $libs
  46529. - dependency_libs="$newdependency_libs"
  46530. - if test "$pass" = dlpreopen; then
  46531. - # Link the dlpreopened libraries before other libraries
  46532. - for deplib in $save_deplibs; do
  46533. - deplibs="$deplib $deplibs"
  46534. - done
  46535. - fi
  46536. - if test "$pass" != dlopen; then
  46537. - if test "$pass" != conv; then
  46538. - # Make sure lib_search_path contains only unique directories.
  46539. - lib_search_path=
  46540. - for dir in $newlib_search_path; do
  46541. - case "$lib_search_path " in
  46542. - *" $dir "*) ;;
  46543. - *) lib_search_path="$lib_search_path $dir" ;;
  46544. - esac
  46545. - done
  46546. - newlib_search_path=
  46547. +# func_emit_wrapper_part1 [arg=no]
  46548. +#
  46549. +# Emit the first part of a libtool wrapper script on stdout.
  46550. +# For more information, see the description associated with
  46551. +# func_emit_wrapper(), below.
  46552. +func_emit_wrapper_part1 ()
  46553. +{
  46554. + func_emit_wrapper_part1_arg1=no
  46555. + if test -n "$1" ; then
  46556. + func_emit_wrapper_part1_arg1=$1
  46557. fi
  46558. - if test "$linkmode,$pass" != "prog,link"; then
  46559. - vars="deplibs"
  46560. - else
  46561. - vars="compile_deplibs finalize_deplibs"
  46562. - fi
  46563. - for var in $vars dependency_libs; do
  46564. - # Add libraries to $var in reverse order
  46565. - eval tmp_libs=\"\$$var\"
  46566. - new_libs=
  46567. - for deplib in $tmp_libs; do
  46568. - # FIXME: Pedantically, this is the right thing to do, so
  46569. - # that some nasty dependency loop isn't accidentally
  46570. - # broken:
  46571. - #new_libs="$deplib $new_libs"
  46572. - # Pragmatically, this seems to cause very few problems in
  46573. - # practice:
  46574. - case $deplib in
  46575. - -L*) new_libs="$deplib $new_libs" ;;
  46576. - -R*) ;;
  46577. - *)
  46578. - # And here is the reason: when a library appears more
  46579. - # than once as an explicit dependence of a library, or
  46580. - # is implicitly linked in more than once by the
  46581. - # compiler, it is considered special, and multiple
  46582. - # occurrences thereof are not removed. Compare this
  46583. - # with having the same library being listed as a
  46584. - # dependency of multiple other libraries: in this case,
  46585. - # we know (pedantically, we assume) the library does not
  46586. - # need to be listed more than once, so we keep only the
  46587. - # last copy. This is not always right, but it is rare
  46588. - # enough that we require users that really mean to play
  46589. - # such unportable linking tricks to link the library
  46590. - # using -Wl,-lname, so that libtool does not consider it
  46591. - # for duplicate removal.
  46592. - case " $specialdeplibs " in
  46593. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  46594. - *)
  46595. - case " $new_libs " in
  46596. - *" $deplib "*) ;;
  46597. - *) new_libs="$deplib $new_libs" ;;
  46598. - esac
  46599. - ;;
  46600. - esac
  46601. - ;;
  46602. - esac
  46603. - done
  46604. - tmp_libs=
  46605. - for deplib in $new_libs; do
  46606. - case $deplib in
  46607. - -L*)
  46608. - case " $tmp_libs " in
  46609. - *" $deplib "*) ;;
  46610. - *) tmp_libs="$tmp_libs $deplib" ;;
  46611. - esac
  46612. - ;;
  46613. - *) tmp_libs="$tmp_libs $deplib" ;;
  46614. - esac
  46615. - done
  46616. - eval $var=\"$tmp_libs\"
  46617. - done # for var
  46618. - fi
  46619. - # Last step: remove runtime libs from dependency_libs
  46620. - # (they stay in deplibs)
  46621. - tmp_libs=
  46622. - for i in $dependency_libs ; do
  46623. - case " $predeps $postdeps $compiler_lib_search_path " in
  46624. - *" $i "*)
  46625. - i=""
  46626. - ;;
  46627. - esac
  46628. - if test -n "$i" ; then
  46629. - tmp_libs="$tmp_libs $i"
  46630. - fi
  46631. - done
  46632. - dependency_libs=$tmp_libs
  46633. - done # for pass
  46634. - if test "$linkmode" = prog; then
  46635. - dlfiles="$newdlfiles"
  46636. - dlprefiles="$newdlprefiles"
  46637. - fi
  46638. + $ECHO "\
  46639. +#! $SHELL
  46640. - case $linkmode in
  46641. - oldlib)
  46642. - if test -n "$deplibs"; then
  46643. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  46644. - fi
  46645. +# $output - temporary wrapper script for $objdir/$outputname
  46646. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  46647. +#
  46648. +# The $output program cannot be directly executed until all the libtool
  46649. +# libraries that it depends on are installed.
  46650. +#
  46651. +# This wrapper script should never be moved out of the build directory.
  46652. +# If it is, it will not operate correctly.
  46653. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  46654. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  46655. - fi
  46656. +# Sed substitution that helps us do robust quoting. It backslashifies
  46657. +# metacharacters that are still active within double-quoted strings.
  46658. +Xsed='${SED} -e 1s/^X//'
  46659. +sed_quote_subst='$sed_quote_subst'
  46660. - if test -n "$rpath"; then
  46661. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  46662. - fi
  46663. +# Be Bourne compatible
  46664. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  46665. + emulate sh
  46666. + NULLCMD=:
  46667. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  46668. + # is contrary to our usage. Disable this feature.
  46669. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  46670. + setopt NO_GLOB_SUBST
  46671. +else
  46672. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  46673. +fi
  46674. +BIN_SH=xpg4; export BIN_SH # for Tru64
  46675. +DUALCASE=1; export DUALCASE # for MKS sh
  46676. - if test -n "$xrpath"; then
  46677. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  46678. - fi
  46679. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  46680. +# if CDPATH is set.
  46681. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  46682. - if test -n "$vinfo"; then
  46683. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  46684. - fi
  46685. +relink_command=\"$relink_command\"
  46686. - if test -n "$release"; then
  46687. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  46688. - fi
  46689. +# This environment variable determines our operation mode.
  46690. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  46691. + # install mode needs the following variables:
  46692. + generated_by_libtool_version='$macro_version'
  46693. + notinst_deplibs='$notinst_deplibs'
  46694. +else
  46695. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  46696. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  46697. + ECHO=\"$qecho\"
  46698. + file=\"\$0\"
  46699. + # Make sure echo works.
  46700. + if test \"X\$1\" = X--no-reexec; then
  46701. + # Discard the --no-reexec flag, and continue.
  46702. + shift
  46703. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  46704. + # Yippee, \$ECHO works!
  46705. + :
  46706. + else
  46707. + # Restart under the correct shell, and then maybe \$ECHO will work.
  46708. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  46709. + fi
  46710. + fi\
  46711. +"
  46712. + $ECHO "\
  46713. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  46714. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  46715. - fi
  46716. + # Find the directory that this script lives in.
  46717. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  46718. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  46719. - # Now set the variables for building old libraries.
  46720. - build_libtool_libs=no
  46721. - oldlibs="$output"
  46722. - objs="$objs$old_deplibs"
  46723. - ;;
  46724. + # Follow symbolic links until we get to the real thisdir.
  46725. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  46726. + while test -n \"\$file\"; do
  46727. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  46728. - lib)
  46729. - # Make sure we only generate libraries of the form `libNAME.la'.
  46730. - case $outputname in
  46731. - lib*)
  46732. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  46733. - eval shared_ext=\"$shrext_cmds\"
  46734. - eval libname=\"$libname_spec\"
  46735. - ;;
  46736. - *)
  46737. - if test "$module" = no; then
  46738. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  46739. - $echo "$help" 1>&2
  46740. - exit $EXIT_FAILURE
  46741. - fi
  46742. - if test "$need_lib_prefix" != no; then
  46743. - # Add the "lib" prefix for modules if required
  46744. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  46745. - eval shared_ext=\"$shrext_cmds\"
  46746. - eval libname=\"$libname_spec\"
  46747. - else
  46748. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  46749. - fi
  46750. - ;;
  46751. + # If there was a directory component, then change thisdir.
  46752. + if test \"x\$destdir\" != \"x\$file\"; then
  46753. + case \"\$destdir\" in
  46754. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  46755. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  46756. esac
  46757. + fi
  46758. - if test -n "$objs"; then
  46759. - if test "$deplibs_check_method" != pass_all; then
  46760. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  46761. - exit $EXIT_FAILURE
  46762. - else
  46763. - $echo
  46764. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  46765. - $echo "*** objects $objs is not portable!"
  46766. - libobjs="$libobjs $objs"
  46767. - fi
  46768. - fi
  46769. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  46770. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  46771. + done
  46772. +"
  46773. +}
  46774. +# end: func_emit_wrapper_part1
  46775. - if test "$dlself" != no; then
  46776. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  46777. - fi
  46778. +# func_emit_wrapper_part2 [arg=no]
  46779. +#
  46780. +# Emit the second part of a libtool wrapper script on stdout.
  46781. +# For more information, see the description associated with
  46782. +# func_emit_wrapper(), below.
  46783. +func_emit_wrapper_part2 ()
  46784. +{
  46785. + func_emit_wrapper_part2_arg1=no
  46786. + if test -n "$1" ; then
  46787. + func_emit_wrapper_part2_arg1=$1
  46788. + fi
  46789. +
  46790. + $ECHO "\
  46791. +
  46792. + # Usually 'no', except on cygwin/mingw when embedded into
  46793. + # the cwrapper.
  46794. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  46795. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  46796. + # special case for '.'
  46797. + if test \"\$thisdir\" = \".\"; then
  46798. + thisdir=\`pwd\`
  46799. + fi
  46800. + # remove .libs from thisdir
  46801. + case \"\$thisdir\" in
  46802. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  46803. + $objdir ) thisdir=. ;;
  46804. + esac
  46805. + fi
  46806. - set dummy $rpath
  46807. - if test "$#" -gt 2; then
  46808. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  46809. + # Try to get the absolute directory name.
  46810. + absdir=\`cd \"\$thisdir\" && pwd\`
  46811. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  46812. +"
  46813. +
  46814. + if test "$fast_install" = yes; then
  46815. + $ECHO "\
  46816. + program=lt-'$outputname'$exeext
  46817. + progdir=\"\$thisdir/$objdir\"
  46818. +
  46819. + if test ! -f \"\$progdir/\$program\" ||
  46820. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  46821. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  46822. +
  46823. + file=\"\$\$-\$program\"
  46824. +
  46825. + if test ! -d \"\$progdir\"; then
  46826. + $MKDIR \"\$progdir\"
  46827. + else
  46828. + $RM \"\$progdir/\$file\"
  46829. + fi"
  46830. +
  46831. + $ECHO "\
  46832. +
  46833. + # relink executable if necessary
  46834. + if test -n \"\$relink_command\"; then
  46835. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  46836. + else
  46837. + $ECHO \"\$relink_command_output\" >&2
  46838. + $RM \"\$progdir/\$file\"
  46839. + exit 1
  46840. fi
  46841. - install_libdir="$2"
  46842. + fi
  46843. - oldlibs=
  46844. - if test -z "$rpath"; then
  46845. - if test "$build_libtool_libs" = yes; then
  46846. - # Building a libtool convenience library.
  46847. - # Some compilers have problems with a `.al' extension so
  46848. - # convenience libraries should have the same extension an
  46849. - # archive normally would.
  46850. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  46851. - build_libtool_libs=convenience
  46852. - build_old_libs=yes
  46853. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  46854. + { $RM \"\$progdir/\$program\";
  46855. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  46856. + $RM \"\$progdir/\$file\"
  46857. + fi"
  46858. + else
  46859. + $ECHO "\
  46860. + program='$outputname'
  46861. + progdir=\"\$thisdir/$objdir\"
  46862. +"
  46863. fi
  46864. - if test -n "$vinfo"; then
  46865. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  46866. - fi
  46867. + $ECHO "\
  46868. - if test -n "$release"; then
  46869. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  46870. - fi
  46871. - else
  46872. + if test -f \"\$progdir/\$program\"; then"
  46873. - # Parse the version information argument.
  46874. - save_ifs="$IFS"; IFS=':'
  46875. - set dummy $vinfo 0 0 0
  46876. - IFS="$save_ifs"
  46877. + # Export our shlibpath_var if we have one.
  46878. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  46879. + $ECHO "\
  46880. + # Add our own library path to $shlibpath_var
  46881. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  46882. - if test -n "$8"; then
  46883. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  46884. - $echo "$help" 1>&2
  46885. - exit $EXIT_FAILURE
  46886. + # Some systems cannot cope with colon-terminated $shlibpath_var
  46887. + # The second colon is a workaround for a bug in BeOS R4 sed
  46888. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  46889. +
  46890. + export $shlibpath_var
  46891. +"
  46892. fi
  46893. - # convert absolute version numbers to libtool ages
  46894. - # this retains compatibility with .la files and attempts
  46895. - # to make the code below a bit more comprehensible
  46896. + # fixup the dll searchpath if we need to.
  46897. + if test -n "$dllsearchpath"; then
  46898. + $ECHO "\
  46899. + # Add the dll search path components to the executable PATH
  46900. + PATH=$dllsearchpath:\$PATH
  46901. +"
  46902. + fi
  46903. - case $vinfo_number in
  46904. - yes)
  46905. - number_major="$2"
  46906. - number_minor="$3"
  46907. - number_revision="$4"
  46908. - #
  46909. - # There are really only two kinds -- those that
  46910. - # use the current revision as the major version
  46911. - # and those that subtract age and use age as
  46912. - # a minor version. But, then there is irix
  46913. - # which has an extra 1 added just for fun
  46914. - #
  46915. - case $version_type in
  46916. - darwin|linux|osf|windows|none)
  46917. - current=`expr $number_major + $number_minor`
  46918. - age="$number_minor"
  46919. - revision="$number_revision"
  46920. - ;;
  46921. - freebsd-aout|freebsd-elf|sunos)
  46922. - current="$number_major"
  46923. - revision="$number_minor"
  46924. - age="0"
  46925. - ;;
  46926. - irix|nonstopux)
  46927. - current=`expr $number_major + $number_minor`
  46928. - age="$number_minor"
  46929. - revision="$number_minor"
  46930. - lt_irix_increment=no
  46931. - ;;
  46932. - esac
  46933. - ;;
  46934. - no)
  46935. - current="$2"
  46936. - revision="$3"
  46937. - age="$4"
  46938. + $ECHO "\
  46939. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  46940. + # Run the actual program with our arguments.
  46941. +"
  46942. + case $host in
  46943. + # Backslashes separate directories on plain windows
  46944. + *-*-mingw | *-*-os2* | *-cegcc*)
  46945. + $ECHO "\
  46946. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  46947. +"
  46948. ;;
  46949. - esac
  46950. - # Check that each of the things are valid numbers.
  46951. - case $current in
  46952. - 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]) ;;
  46953. *)
  46954. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  46955. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  46956. - exit $EXIT_FAILURE
  46957. - ;;
  46958. - esac
  46959. -
  46960. - case $revision in
  46961. - 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]) ;;
  46962. - *)
  46963. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  46964. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  46965. - exit $EXIT_FAILURE
  46966. + $ECHO "\
  46967. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  46968. +"
  46969. ;;
  46970. esac
  46971. + $ECHO "\
  46972. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  46973. + exit 1
  46974. + fi
  46975. + else
  46976. + # The program doesn't exist.
  46977. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  46978. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  46979. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  46980. + exit 1
  46981. + fi
  46982. +fi\
  46983. +"
  46984. +}
  46985. +# end: func_emit_wrapper_part2
  46986. - case $age in
  46987. - 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]) ;;
  46988. - *)
  46989. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  46990. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  46991. - exit $EXIT_FAILURE
  46992. - ;;
  46993. - esac
  46994. - if test "$age" -gt "$current"; then
  46995. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  46996. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  46997. - exit $EXIT_FAILURE
  46998. +# func_emit_wrapper [arg=no]
  46999. +#
  47000. +# Emit a libtool wrapper script on stdout.
  47001. +# Don't directly open a file because we may want to
  47002. +# incorporate the script contents within a cygwin/mingw
  47003. +# wrapper executable. Must ONLY be called from within
  47004. +# func_mode_link because it depends on a number of variables
  47005. +# set therein.
  47006. +#
  47007. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  47008. +# variable will take. If 'yes', then the emitted script
  47009. +# will assume that the directory in which it is stored is
  47010. +# the $objdir directory. This is a cygwin/mingw-specific
  47011. +# behavior.
  47012. +func_emit_wrapper ()
  47013. +{
  47014. + func_emit_wrapper_arg1=no
  47015. + if test -n "$1" ; then
  47016. + func_emit_wrapper_arg1=$1
  47017. fi
  47018. - # Calculate the version variables.
  47019. - major=
  47020. - versuffix=
  47021. - verstring=
  47022. - case $version_type in
  47023. - none) ;;
  47024. + # split this up so that func_emit_cwrapperexe_src
  47025. + # can call each part independently.
  47026. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  47027. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  47028. +}
  47029. - darwin)
  47030. - # Like Linux, but with the current version available in
  47031. - # verstring for coding it into the library header
  47032. - major=.`expr $current - $age`
  47033. - versuffix="$major.$age.$revision"
  47034. - # Darwin ld doesn't like 0 for these options...
  47035. - minor_current=`expr $current + 1`
  47036. - xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  47037. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  47038. - ;;
  47039. - freebsd-aout)
  47040. - major=".$current"
  47041. - versuffix=".$current.$revision";
  47042. - ;;
  47043. +# func_to_host_path arg
  47044. +#
  47045. +# Convert paths to host format when used with build tools.
  47046. +# Intended for use with "native" mingw (where libtool itself
  47047. +# is running under the msys shell), or in the following cross-
  47048. +# build environments:
  47049. +# $build $host
  47050. +# mingw (msys) mingw [e.g. native]
  47051. +# cygwin mingw
  47052. +# *nix + wine mingw
  47053. +# where wine is equipped with the `winepath' executable.
  47054. +# In the native mingw case, the (msys) shell automatically
  47055. +# converts paths for any non-msys applications it launches,
  47056. +# but that facility isn't available from inside the cwrapper.
  47057. +# Similar accommodations are necessary for $host mingw and
  47058. +# $build cygwin. Calling this function does no harm for other
  47059. +# $host/$build combinations not listed above.
  47060. +#
  47061. +# ARG is the path (on $build) that should be converted to
  47062. +# the proper representation for $host. The result is stored
  47063. +# in $func_to_host_path_result.
  47064. +func_to_host_path ()
  47065. +{
  47066. + func_to_host_path_result="$1"
  47067. + if test -n "$1" ; then
  47068. + case $host in
  47069. + *mingw* )
  47070. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  47071. + case $build in
  47072. + *mingw* ) # actually, msys
  47073. + # awkward: cmd appends spaces to result
  47074. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  47075. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  47076. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  47077. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  47078. + $SED -e "$lt_sed_naive_backslashify"`
  47079. + ;;
  47080. + *cygwin* )
  47081. + func_to_host_path_tmp1=`cygpath -w "$1"`
  47082. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  47083. + $SED -e "$lt_sed_naive_backslashify"`
  47084. + ;;
  47085. + * )
  47086. + # Unfortunately, winepath does not exit with a non-zero
  47087. + # error code, so we are forced to check the contents of
  47088. + # stdout. On the other hand, if the command is not
  47089. + # found, the shell will set an exit code of 127 and print
  47090. + # *an error message* to stdout. So we must check for both
  47091. + # error code of zero AND non-empty stdout, which explains
  47092. + # the odd construction:
  47093. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  47094. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  47095. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  47096. + $SED -e "$lt_sed_naive_backslashify"`
  47097. + else
  47098. + # Allow warning below.
  47099. + func_to_host_path_result=""
  47100. + fi
  47101. + ;;
  47102. + esac
  47103. + if test -z "$func_to_host_path_result" ; then
  47104. + func_error "Could not determine host path corresponding to"
  47105. + func_error " '$1'"
  47106. + func_error "Continuing, but uninstalled executables may not work."
  47107. + # Fallback:
  47108. + func_to_host_path_result="$1"
  47109. + fi
  47110. + ;;
  47111. + esac
  47112. + fi
  47113. +}
  47114. +# end: func_to_host_path
  47115. - freebsd-elf)
  47116. - major=".$current"
  47117. - versuffix=".$current";
  47118. - ;;
  47119. +# func_to_host_pathlist arg
  47120. +#
  47121. +# Convert pathlists to host format when used with build tools.
  47122. +# See func_to_host_path(), above. This function supports the
  47123. +# following $build/$host combinations (but does no harm for
  47124. +# combinations not listed here):
  47125. +# $build $host
  47126. +# mingw (msys) mingw [e.g. native]
  47127. +# cygwin mingw
  47128. +# *nix + wine mingw
  47129. +#
  47130. +# Path separators are also converted from $build format to
  47131. +# $host format. If ARG begins or ends with a path separator
  47132. +# character, it is preserved (but converted to $host format)
  47133. +# on output.
  47134. +#
  47135. +# ARG is a pathlist (on $build) that should be converted to
  47136. +# the proper representation on $host. The result is stored
  47137. +# in $func_to_host_pathlist_result.
  47138. +func_to_host_pathlist ()
  47139. +{
  47140. + func_to_host_pathlist_result="$1"
  47141. + if test -n "$1" ; then
  47142. + case $host in
  47143. + *mingw* )
  47144. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  47145. + # Remove leading and trailing path separator characters from
  47146. + # ARG. msys behavior is inconsistent here, cygpath turns them
  47147. + # into '.;' and ';.', and winepath ignores them completely.
  47148. + func_to_host_pathlist_tmp2="$1"
  47149. + # Once set for this call, this variable should not be
  47150. + # reassigned. It is used in tha fallback case.
  47151. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  47152. + $SED -e 's|^:*||' -e 's|:*$||'`
  47153. + case $build in
  47154. + *mingw* ) # Actually, msys.
  47155. + # Awkward: cmd appends spaces to result.
  47156. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  47157. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  47158. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  47159. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  47160. + $SED -e "$lt_sed_naive_backslashify"`
  47161. + ;;
  47162. + *cygwin* )
  47163. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  47164. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  47165. + $SED -e "$lt_sed_naive_backslashify"`
  47166. + ;;
  47167. + * )
  47168. + # unfortunately, winepath doesn't convert pathlists
  47169. + func_to_host_pathlist_result=""
  47170. + func_to_host_pathlist_oldIFS=$IFS
  47171. + IFS=:
  47172. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  47173. + IFS=$func_to_host_pathlist_oldIFS
  47174. + if test -n "$func_to_host_pathlist_f" ; then
  47175. + func_to_host_path "$func_to_host_pathlist_f"
  47176. + if test -n "$func_to_host_path_result" ; then
  47177. + if test -z "$func_to_host_pathlist_result" ; then
  47178. + func_to_host_pathlist_result="$func_to_host_path_result"
  47179. + else
  47180. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  47181. + fi
  47182. + fi
  47183. + fi
  47184. + IFS=:
  47185. + done
  47186. + IFS=$func_to_host_pathlist_oldIFS
  47187. + ;;
  47188. + esac
  47189. + if test -z "$func_to_host_pathlist_result" ; then
  47190. + func_error "Could not determine the host path(s) corresponding to"
  47191. + func_error " '$1'"
  47192. + func_error "Continuing, but uninstalled executables may not work."
  47193. + # Fallback. This may break if $1 contains DOS-style drive
  47194. + # specifications. The fix is not to complicate the expression
  47195. + # below, but for the user to provide a working wine installation
  47196. + # with winepath so that path translation in the cross-to-mingw
  47197. + # case works properly.
  47198. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  47199. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  47200. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  47201. + fi
  47202. + # Now, add the leading and trailing path separators back
  47203. + case "$1" in
  47204. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  47205. + ;;
  47206. + esac
  47207. + case "$1" in
  47208. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  47209. + ;;
  47210. + esac
  47211. + ;;
  47212. + esac
  47213. + fi
  47214. +}
  47215. +# end: func_to_host_pathlist
  47216. - irix | nonstopux)
  47217. - if test "X$lt_irix_increment" = "Xno"; then
  47218. - major=`expr $current - $age`
  47219. - else
  47220. - major=`expr $current - $age + 1`
  47221. - fi
  47222. - case $version_type in
  47223. - nonstopux) verstring_prefix=nonstopux ;;
  47224. - *) verstring_prefix=sgi ;;
  47225. - esac
  47226. - verstring="$verstring_prefix$major.$revision"
  47227. +# func_emit_cwrapperexe_src
  47228. +# emit the source code for a wrapper executable on stdout
  47229. +# Must ONLY be called from within func_mode_link because
  47230. +# it depends on a number of variable set therein.
  47231. +func_emit_cwrapperexe_src ()
  47232. +{
  47233. + cat <<EOF
  47234. - # Add in all the interfaces that we are compatible with.
  47235. - loop=$revision
  47236. - while test "$loop" -ne 0; do
  47237. - iface=`expr $revision - $loop`
  47238. - loop=`expr $loop - 1`
  47239. - verstring="$verstring_prefix$major.$iface:$verstring"
  47240. - done
  47241. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  47242. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  47243. - # Before this point, $major must not contain `.'.
  47244. - major=.$major
  47245. - versuffix="$major.$revision"
  47246. - ;;
  47247. + The $output program cannot be directly executed until all the libtool
  47248. + libraries that it depends on are installed.
  47249. - linux)
  47250. - major=.`expr $current - $age`
  47251. - versuffix="$major.$age.$revision"
  47252. - ;;
  47253. + This wrapper executable should never be moved out of the build directory.
  47254. + If it is, it will not operate correctly.
  47255. - osf)
  47256. - major=.`expr $current - $age`
  47257. - versuffix=".$current.$age.$revision"
  47258. - verstring="$current.$age.$revision"
  47259. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  47260. + but could eventually absorb all of the scripts functionality and
  47261. + exec $objdir/$outputname directly.
  47262. +*/
  47263. +EOF
  47264. + cat <<"EOF"
  47265. +#include <stdio.h>
  47266. +#include <stdlib.h>
  47267. +#ifdef _MSC_VER
  47268. +# include <direct.h>
  47269. +# include <process.h>
  47270. +# include <io.h>
  47271. +# define setmode _setmode
  47272. +#else
  47273. +# include <unistd.h>
  47274. +# include <stdint.h>
  47275. +# ifdef __CYGWIN__
  47276. +# include <io.h>
  47277. +# define HAVE_SETENV
  47278. +# ifdef __STRICT_ANSI__
  47279. +char *realpath (const char *, char *);
  47280. +int putenv (char *);
  47281. +int setenv (const char *, const char *, int);
  47282. +# endif
  47283. +# endif
  47284. +#endif
  47285. +#include <malloc.h>
  47286. +#include <stdarg.h>
  47287. +#include <assert.h>
  47288. +#include <string.h>
  47289. +#include <ctype.h>
  47290. +#include <errno.h>
  47291. +#include <fcntl.h>
  47292. +#include <sys/stat.h>
  47293. - # Add in all the interfaces that we are compatible with.
  47294. - loop=$age
  47295. - while test "$loop" -ne 0; do
  47296. - iface=`expr $current - $loop`
  47297. - loop=`expr $loop - 1`
  47298. - verstring="$verstring:${iface}.0"
  47299. - done
  47300. +#if defined(PATH_MAX)
  47301. +# define LT_PATHMAX PATH_MAX
  47302. +#elif defined(MAXPATHLEN)
  47303. +# define LT_PATHMAX MAXPATHLEN
  47304. +#else
  47305. +# define LT_PATHMAX 1024
  47306. +#endif
  47307. - # Make executables depend on our current version.
  47308. - verstring="$verstring:${current}.0"
  47309. - ;;
  47310. +#ifndef S_IXOTH
  47311. +# define S_IXOTH 0
  47312. +#endif
  47313. +#ifndef S_IXGRP
  47314. +# define S_IXGRP 0
  47315. +#endif
  47316. - sunos)
  47317. - major=".$current"
  47318. - versuffix=".$current.$revision"
  47319. - ;;
  47320. +#ifdef _MSC_VER
  47321. +# define S_IXUSR _S_IEXEC
  47322. +# define stat _stat
  47323. +# ifndef _INTPTR_T_DEFINED
  47324. +# define intptr_t int
  47325. +# endif
  47326. +#endif
  47327. - windows)
  47328. - # Use '-' rather than '.', since we only want one
  47329. - # extension on DOS 8.3 filesystems.
  47330. - major=`expr $current - $age`
  47331. - versuffix="-$major"
  47332. - ;;
  47333. +#ifndef DIR_SEPARATOR
  47334. +# define DIR_SEPARATOR '/'
  47335. +# define PATH_SEPARATOR ':'
  47336. +#endif
  47337. - *)
  47338. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  47339. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  47340. - exit $EXIT_FAILURE
  47341. - ;;
  47342. - esac
  47343. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  47344. + defined (__OS2__)
  47345. +# define HAVE_DOS_BASED_FILE_SYSTEM
  47346. +# define FOPEN_WB "wb"
  47347. +# ifndef DIR_SEPARATOR_2
  47348. +# define DIR_SEPARATOR_2 '\\'
  47349. +# endif
  47350. +# ifndef PATH_SEPARATOR_2
  47351. +# define PATH_SEPARATOR_2 ';'
  47352. +# endif
  47353. +#endif
  47354. - # Clear the version info if we defaulted, and they specified a release.
  47355. - if test -z "$vinfo" && test -n "$release"; then
  47356. - major=
  47357. - case $version_type in
  47358. - darwin)
  47359. - # we can't check for "0.0" in archive_cmds due to quoting
  47360. - # problems, so we reset it completely
  47361. - verstring=
  47362. - ;;
  47363. - *)
  47364. - verstring="0.0"
  47365. - ;;
  47366. - esac
  47367. - if test "$need_version" = no; then
  47368. - versuffix=
  47369. - else
  47370. - versuffix=".0.0"
  47371. - fi
  47372. - fi
  47373. +#ifndef DIR_SEPARATOR_2
  47374. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  47375. +#else /* DIR_SEPARATOR_2 */
  47376. +# define IS_DIR_SEPARATOR(ch) \
  47377. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  47378. +#endif /* DIR_SEPARATOR_2 */
  47379. - # Remove version info from name if versioning should be avoided
  47380. - if test "$avoid_version" = yes && test "$need_version" = no; then
  47381. - major=
  47382. - versuffix=
  47383. - verstring=""
  47384. - fi
  47385. +#ifndef PATH_SEPARATOR_2
  47386. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  47387. +#else /* PATH_SEPARATOR_2 */
  47388. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  47389. +#endif /* PATH_SEPARATOR_2 */
  47390. - # Check to see if the archive will have undefined symbols.
  47391. - if test "$allow_undefined" = yes; then
  47392. - if test "$allow_undefined_flag" = unsupported; then
  47393. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  47394. - build_libtool_libs=no
  47395. - build_old_libs=yes
  47396. - fi
  47397. - else
  47398. - # Don't allow undefined symbols.
  47399. - allow_undefined_flag="$no_undefined_flag"
  47400. - fi
  47401. - fi
  47402. +#ifdef __CYGWIN__
  47403. +# define FOPEN_WB "wb"
  47404. +#endif
  47405. - if test "$mode" != relink; then
  47406. - # Remove our outputs, but don't remove object files since they
  47407. - # may have been created when compiling PIC objects.
  47408. - removelist=
  47409. - tempremovelist=`$echo "$output_objdir/*"`
  47410. - for p in $tempremovelist; do
  47411. - case $p in
  47412. - *.$objext)
  47413. - ;;
  47414. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  47415. - if test "X$precious_files_regex" != "X"; then
  47416. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  47417. - then
  47418. - continue
  47419. - fi
  47420. - fi
  47421. - removelist="$removelist $p"
  47422. - ;;
  47423. - *) ;;
  47424. - esac
  47425. - done
  47426. - if test -n "$removelist"; then
  47427. - $show "${rm}r $removelist"
  47428. - $run ${rm}r $removelist
  47429. - fi
  47430. - fi
  47431. +#ifndef FOPEN_WB
  47432. +# define FOPEN_WB "w"
  47433. +#endif
  47434. +#ifndef _O_BINARY
  47435. +# define _O_BINARY 0
  47436. +#endif
  47437. - # Now set the variables for building old libraries.
  47438. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  47439. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  47440. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  47441. +#define XFREE(stale) do { \
  47442. + if (stale) { free ((void *) stale); stale = 0; } \
  47443. +} while (0)
  47444. - # Transform .lo files to .o files.
  47445. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  47446. - fi
  47447. +#undef LTWRAPPER_DEBUGPRINTF
  47448. +#if defined DEBUGWRAPPER
  47449. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  47450. +static void
  47451. +ltwrapper_debugprintf (const char *fmt, ...)
  47452. +{
  47453. + va_list args;
  47454. + va_start (args, fmt);
  47455. + (void) vfprintf (stderr, fmt, args);
  47456. + va_end (args);
  47457. +}
  47458. +#else
  47459. +# define LTWRAPPER_DEBUGPRINTF(args)
  47460. +#endif
  47461. - # Eliminate all temporary directories.
  47462. - #for path in $notinst_path; do
  47463. - # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  47464. - # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  47465. - # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  47466. - #done
  47467. +const char *program_name = NULL;
  47468. - if test -n "$xrpath"; then
  47469. - # If the user specified any rpath flags, then add them.
  47470. - temp_xrpath=
  47471. - for libdir in $xrpath; do
  47472. - temp_xrpath="$temp_xrpath -R$libdir"
  47473. - case "$finalize_rpath " in
  47474. - *" $libdir "*) ;;
  47475. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  47476. - esac
  47477. - done
  47478. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  47479. - dependency_libs="$temp_xrpath $dependency_libs"
  47480. - fi
  47481. - fi
  47482. +void *xmalloc (size_t num);
  47483. +char *xstrdup (const char *string);
  47484. +const char *base_name (const char *name);
  47485. +char *find_executable (const char *wrapper);
  47486. +char *chase_symlinks (const char *pathspec);
  47487. +int make_executable (const char *path);
  47488. +int check_executable (const char *path);
  47489. +char *strendzap (char *str, const char *pat);
  47490. +void lt_fatal (const char *message, ...);
  47491. +void lt_setenv (const char *name, const char *value);
  47492. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  47493. +void lt_opt_process_env_set (const char *arg);
  47494. +void lt_opt_process_env_prepend (const char *arg);
  47495. +void lt_opt_process_env_append (const char *arg);
  47496. +int lt_split_name_value (const char *arg, char** name, char** value);
  47497. +void lt_update_exe_path (const char *name, const char *value);
  47498. +void lt_update_lib_path (const char *name, const char *value);
  47499. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  47500. - old_dlfiles="$dlfiles"
  47501. - dlfiles=
  47502. - for lib in $old_dlfiles; do
  47503. - case " $dlprefiles $dlfiles " in
  47504. - *" $lib "*) ;;
  47505. - *) dlfiles="$dlfiles $lib" ;;
  47506. - esac
  47507. - done
  47508. +static const char *script_text_part1 =
  47509. +EOF
  47510. - # Make sure dlprefiles contains only unique files
  47511. - old_dlprefiles="$dlprefiles"
  47512. - dlprefiles=
  47513. - for lib in $old_dlprefiles; do
  47514. - case "$dlprefiles " in
  47515. - *" $lib "*) ;;
  47516. - *) dlprefiles="$dlprefiles $lib" ;;
  47517. - esac
  47518. - done
  47519. + func_emit_wrapper_part1 yes |
  47520. + $SED -e 's/\([\\"]\)/\\\1/g' \
  47521. + -e 's/^/ "/' -e 's/$/\\n"/'
  47522. + echo ";"
  47523. + cat <<EOF
  47524. - if test "$build_libtool_libs" = yes; then
  47525. - if test -n "$rpath"; then
  47526. - case $host in
  47527. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  47528. - # these systems don't actually have a c library (as such)!
  47529. - ;;
  47530. - *-*-rhapsody* | *-*-darwin1.[012])
  47531. - # Rhapsody C library is in the System framework
  47532. - deplibs="$deplibs -framework System"
  47533. - ;;
  47534. - *-*-netbsd*)
  47535. - # Don't link with libc until the a.out ld.so is fixed.
  47536. - ;;
  47537. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  47538. - # Do not include libc due to us having libc/libc_r.
  47539. - ;;
  47540. - *-*-sco3.2v5* | *-*-sco5v6*)
  47541. - # Causes problems with __ctype
  47542. - ;;
  47543. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  47544. - # Compiler inserts libc in the correct place for threads to work
  47545. - ;;
  47546. - *)
  47547. - # Add libc to deplibs on all other systems if necessary.
  47548. - if test "$build_libtool_need_lc" = "yes"; then
  47549. - deplibs="$deplibs -lc"
  47550. - fi
  47551. - ;;
  47552. - esac
  47553. - fi
  47554. +static const char *script_text_part2 =
  47555. +EOF
  47556. + func_emit_wrapper_part2 yes |
  47557. + $SED -e 's/\([\\"]\)/\\\1/g' \
  47558. + -e 's/^/ "/' -e 's/$/\\n"/'
  47559. + echo ";"
  47560. +
  47561. + cat <<EOF
  47562. +const char * MAGIC_EXE = "$magic_exe";
  47563. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  47564. +EOF
  47565. - # Transform deplibs into only deplibs that can be linked in shared.
  47566. - name_save=$name
  47567. - libname_save=$libname
  47568. - release_save=$release
  47569. - versuffix_save=$versuffix
  47570. - major_save=$major
  47571. - # I'm not sure if I'm treating the release correctly. I think
  47572. - # release should show up in the -l (ie -lgmp5) so we don't want to
  47573. - # add it in twice. Is that correct?
  47574. - release=""
  47575. - versuffix=""
  47576. - major=""
  47577. - newdeplibs=
  47578. - droppeddeps=no
  47579. - case $deplibs_check_method in
  47580. - pass_all)
  47581. - # Don't check for shared/static. Everything works.
  47582. - # This might be a little naive. We might want to check
  47583. - # whether the library exists or not. But this is on
  47584. - # osf3 & osf4 and I'm not really sure... Just
  47585. - # implementing what was already the behavior.
  47586. - newdeplibs=$deplibs
  47587. - ;;
  47588. - test_compile)
  47589. - # This code stresses the "libraries are programs" paradigm to its
  47590. - # limits. Maybe even breaks it. We compile a program, linking it
  47591. - # against the deplibs as a proxy for the library. Then we can check
  47592. - # whether they linked in statically or dynamically with ldd.
  47593. - $rm conftest.c
  47594. - cat > conftest.c <<EOF
  47595. - int main() { return 0; }
  47596. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  47597. + func_to_host_pathlist "$temp_rpath"
  47598. + cat <<EOF
  47599. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  47600. EOF
  47601. - $rm conftest
  47602. - if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  47603. - ldd_output=`ldd conftest`
  47604. - for i in $deplibs; do
  47605. - name=`expr $i : '-l\(.*\)'`
  47606. - # If $name is empty we are operating on a -L argument.
  47607. - if test "$name" != "" && test "$name" != "0"; then
  47608. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  47609. - case " $predeps $postdeps " in
  47610. - *" $i "*)
  47611. - newdeplibs="$newdeplibs $i"
  47612. - i=""
  47613. - ;;
  47614. - esac
  47615. - fi
  47616. - if test -n "$i" ; then
  47617. - libname=`eval \\$echo \"$libname_spec\"`
  47618. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  47619. - set dummy $deplib_matches
  47620. - deplib_match=$2
  47621. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  47622. - newdeplibs="$newdeplibs $i"
  47623. - else
  47624. - droppeddeps=yes
  47625. - $echo
  47626. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  47627. - $echo "*** I have the capability to make that library automatically link in when"
  47628. - $echo "*** you link to this library. But I can only do this if you have a"
  47629. - $echo "*** shared version of the library, which I believe you do not have"
  47630. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  47631. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  47632. - fi
  47633. - fi
  47634. - else
  47635. - newdeplibs="$newdeplibs $i"
  47636. - fi
  47637. - done
  47638. - else
  47639. - # Error occurred in the first compile. Let's try to salvage
  47640. - # the situation: Compile a separate program for each library.
  47641. - for i in $deplibs; do
  47642. - name=`expr $i : '-l\(.*\)'`
  47643. - # If $name is empty we are operating on a -L argument.
  47644. - if test "$name" != "" && test "$name" != "0"; then
  47645. - $rm conftest
  47646. - if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  47647. - ldd_output=`ldd conftest`
  47648. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  47649. - case " $predeps $postdeps " in
  47650. - *" $i "*)
  47651. - newdeplibs="$newdeplibs $i"
  47652. - i=""
  47653. - ;;
  47654. - esac
  47655. - fi
  47656. - if test -n "$i" ; then
  47657. - libname=`eval \\$echo \"$libname_spec\"`
  47658. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  47659. - set dummy $deplib_matches
  47660. - deplib_match=$2
  47661. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  47662. - newdeplibs="$newdeplibs $i"
  47663. - else
  47664. - droppeddeps=yes
  47665. - $echo
  47666. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  47667. - $echo "*** I have the capability to make that library automatically link in when"
  47668. - $echo "*** you link to this library. But I can only do this if you have a"
  47669. - $echo "*** shared version of the library, which you do not appear to have"
  47670. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  47671. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  47672. - fi
  47673. - fi
  47674. - else
  47675. - droppeddeps=yes
  47676. - $echo
  47677. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  47678. - $echo "*** make it link in! You will probably need to install it or some"
  47679. - $echo "*** library that it depends on before this library will be fully"
  47680. - $echo "*** functional. Installing it before continuing would be even better."
  47681. - fi
  47682. - else
  47683. - newdeplibs="$newdeplibs $i"
  47684. - fi
  47685. - done
  47686. - fi
  47687. - ;;
  47688. - file_magic*)
  47689. - set dummy $deplibs_check_method
  47690. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  47691. - for a_deplib in $deplibs; do
  47692. - name=`expr $a_deplib : '-l\(.*\)'`
  47693. - # If $name is empty we are operating on a -L argument.
  47694. - if test "$name" != "" && test "$name" != "0"; then
  47695. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  47696. - case " $predeps $postdeps " in
  47697. - *" $a_deplib "*)
  47698. - newdeplibs="$newdeplibs $a_deplib"
  47699. - a_deplib=""
  47700. - ;;
  47701. - esac
  47702. - fi
  47703. - if test -n "$a_deplib" ; then
  47704. - libname=`eval \\$echo \"$libname_spec\"`
  47705. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  47706. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  47707. - for potent_lib in $potential_libs; do
  47708. - # Follow soft links.
  47709. - if ls -lLd "$potent_lib" 2>/dev/null \
  47710. - | grep " -> " >/dev/null; then
  47711. - continue
  47712. - fi
  47713. - # The statement above tries to avoid entering an
  47714. - # endless loop below, in case of cyclic links.
  47715. - # We might still enter an endless loop, since a link
  47716. - # loop can be closed while we follow links,
  47717. - # but so what?
  47718. - potlib="$potent_lib"
  47719. - while test -h "$potlib" 2>/dev/null; do
  47720. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  47721. - case $potliblink in
  47722. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  47723. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  47724. - esac
  47725. - done
  47726. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  47727. - | ${SED} 10q \
  47728. - | $EGREP "$file_magic_regex" > /dev/null; then
  47729. - newdeplibs="$newdeplibs $a_deplib"
  47730. - a_deplib=""
  47731. - break 2
  47732. - fi
  47733. - done
  47734. - done
  47735. - fi
  47736. - if test -n "$a_deplib" ; then
  47737. - droppeddeps=yes
  47738. - $echo
  47739. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  47740. - $echo "*** I have the capability to make that library automatically link in when"
  47741. - $echo "*** you link to this library. But I can only do this if you have a"
  47742. - $echo "*** shared version of the library, which you do not appear to have"
  47743. - $echo "*** because I did check the linker path looking for a file starting"
  47744. - if test -z "$potlib" ; then
  47745. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  47746. - else
  47747. - $echo "*** with $libname and none of the candidates passed a file format test"
  47748. - $echo "*** using a file magic. Last file checked: $potlib"
  47749. - fi
  47750. - fi
  47751. else
  47752. - # Add a -L argument.
  47753. - newdeplibs="$newdeplibs $a_deplib"
  47754. + cat <<"EOF"
  47755. +const char * LIB_PATH_VALUE = "";
  47756. +EOF
  47757. fi
  47758. - done # Gone through all deplibs.
  47759. - ;;
  47760. - match_pattern*)
  47761. - set dummy $deplibs_check_method
  47762. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  47763. - for a_deplib in $deplibs; do
  47764. - name=`expr $a_deplib : '-l\(.*\)'`
  47765. - # If $name is empty we are operating on a -L argument.
  47766. - if test -n "$name" && test "$name" != "0"; then
  47767. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  47768. - case " $predeps $postdeps " in
  47769. - *" $a_deplib "*)
  47770. - newdeplibs="$newdeplibs $a_deplib"
  47771. - a_deplib=""
  47772. - ;;
  47773. - esac
  47774. - fi
  47775. - if test -n "$a_deplib" ; then
  47776. - libname=`eval \\$echo \"$libname_spec\"`
  47777. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  47778. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  47779. - for potent_lib in $potential_libs; do
  47780. - potlib="$potent_lib" # see symlink-check above in file_magic test
  47781. - if eval $echo \"$potent_lib\" 2>/dev/null \
  47782. - | ${SED} 10q \
  47783. - | $EGREP "$match_pattern_regex" > /dev/null; then
  47784. - newdeplibs="$newdeplibs $a_deplib"
  47785. - a_deplib=""
  47786. - break 2
  47787. - fi
  47788. - done
  47789. - done
  47790. - fi
  47791. - if test -n "$a_deplib" ; then
  47792. - droppeddeps=yes
  47793. - $echo
  47794. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  47795. - $echo "*** I have the capability to make that library automatically link in when"
  47796. - $echo "*** you link to this library. But I can only do this if you have a"
  47797. - $echo "*** shared version of the library, which you do not appear to have"
  47798. - $echo "*** because I did check the linker path looking for a file starting"
  47799. - if test -z "$potlib" ; then
  47800. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  47801. - else
  47802. - $echo "*** with $libname and none of the candidates passed a file format test"
  47803. - $echo "*** using a regex pattern. Last file checked: $potlib"
  47804. - fi
  47805. - fi
  47806. +
  47807. + if test -n "$dllsearchpath"; then
  47808. + func_to_host_pathlist "$dllsearchpath:"
  47809. + cat <<EOF
  47810. +const char * EXE_PATH_VARNAME = "PATH";
  47811. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  47812. +EOF
  47813. else
  47814. - # Add a -L argument.
  47815. - newdeplibs="$newdeplibs $a_deplib"
  47816. + cat <<"EOF"
  47817. +const char * EXE_PATH_VARNAME = "";
  47818. +const char * EXE_PATH_VALUE = "";
  47819. +EOF
  47820. fi
  47821. - done # Gone through all deplibs.
  47822. - ;;
  47823. - none | unknown | *)
  47824. - newdeplibs=""
  47825. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  47826. - -e 's/ -[LR][^ ]*//g'`
  47827. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  47828. - for i in $predeps $postdeps ; do
  47829. - # can't use Xsed below, because $i might contain '/'
  47830. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  47831. - done
  47832. - fi
  47833. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  47834. - | grep . >/dev/null; then
  47835. - $echo
  47836. - if test "X$deplibs_check_method" = "Xnone"; then
  47837. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  47838. +
  47839. + if test "$fast_install" = yes; then
  47840. + cat <<EOF
  47841. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  47842. +EOF
  47843. else
  47844. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  47845. + cat <<EOF
  47846. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  47847. +EOF
  47848. fi
  47849. - $echo "*** All declared inter-library dependencies are being dropped."
  47850. - droppeddeps=yes
  47851. - fi
  47852. - ;;
  47853. - esac
  47854. - versuffix=$versuffix_save
  47855. - major=$major_save
  47856. - release=$release_save
  47857. - libname=$libname_save
  47858. - name=$name_save
  47859. - case $host in
  47860. - *-*-rhapsody* | *-*-darwin1.[012])
  47861. - # On Rhapsody replace the C library is the System framework
  47862. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  47863. - ;;
  47864. - esac
  47865. - if test "$droppeddeps" = yes; then
  47866. - if test "$module" = yes; then
  47867. - $echo
  47868. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  47869. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  47870. - $echo "*** a static module, that should work as long as the dlopening"
  47871. - $echo "*** application is linked with the -dlopen flag."
  47872. - if test -z "$global_symbol_pipe"; then
  47873. - $echo
  47874. - $echo "*** However, this would only work if libtool was able to extract symbol"
  47875. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  47876. - $echo "*** not find such a program. So, this module is probably useless."
  47877. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  47878. - fi
  47879. - if test "$build_old_libs" = no; then
  47880. - oldlibs="$output_objdir/$libname.$libext"
  47881. - build_libtool_libs=module
  47882. - build_old_libs=yes
  47883. - else
  47884. - build_libtool_libs=no
  47885. - fi
  47886. - else
  47887. - $echo "*** The inter-library dependencies that have been dropped here will be"
  47888. - $echo "*** automatically added whenever a program is linked with this library"
  47889. - $echo "*** or is declared to -dlopen it."
  47890. + cat <<"EOF"
  47891. - if test "$allow_undefined" = no; then
  47892. - $echo
  47893. - $echo "*** Since this library must not contain undefined symbols,"
  47894. - $echo "*** because either the platform does not support them or"
  47895. - $echo "*** it was explicitly requested with -no-undefined,"
  47896. - $echo "*** libtool will only create a static version of it."
  47897. - if test "$build_old_libs" = no; then
  47898. - oldlibs="$output_objdir/$libname.$libext"
  47899. - build_libtool_libs=module
  47900. - build_old_libs=yes
  47901. - else
  47902. - build_libtool_libs=no
  47903. - fi
  47904. - fi
  47905. - fi
  47906. - fi
  47907. - # Done checking deplibs!
  47908. - deplibs=$newdeplibs
  47909. - fi
  47910. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  47911. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  47912. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  47913. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  47914. - # move library search paths that coincide with paths to not yet
  47915. - # installed libraries to the beginning of the library search list
  47916. - new_libs=
  47917. - for path in $notinst_path; do
  47918. - case " $new_libs " in
  47919. - *" -L$path/$objdir "*) ;;
  47920. - *)
  47921. - case " $deplibs " in
  47922. - *" -L$path/$objdir "*)
  47923. - new_libs="$new_libs -L$path/$objdir" ;;
  47924. - esac
  47925. - ;;
  47926. - esac
  47927. - done
  47928. - for deplib in $deplibs; do
  47929. - case $deplib in
  47930. - -L*)
  47931. - case " $new_libs " in
  47932. - *" $deplib "*) ;;
  47933. - *) new_libs="$new_libs $deplib" ;;
  47934. - esac
  47935. - ;;
  47936. - *) new_libs="$new_libs $deplib" ;;
  47937. - esac
  47938. - done
  47939. - deplibs="$new_libs"
  47940. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  47941. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  47942. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  47943. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  47944. - # All the library-specific variables (install_libdir is set above).
  47945. - library_names=
  47946. - old_library=
  47947. - dlname=
  47948. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  47949. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  47950. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  47951. - # Test again, we may have decided not to build it any more
  47952. - if test "$build_libtool_libs" = yes; then
  47953. - if test "$hardcode_into_libs" = yes; then
  47954. - # Hardcode the library paths
  47955. - hardcode_libdirs=
  47956. - dep_rpath=
  47957. - rpath="$finalize_rpath"
  47958. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  47959. - for libdir in $rpath; do
  47960. - if test -n "$hardcode_libdir_flag_spec"; then
  47961. - if test -n "$hardcode_libdir_separator"; then
  47962. - if test -z "$hardcode_libdirs"; then
  47963. - hardcode_libdirs="$libdir"
  47964. - else
  47965. - # Just accumulate the unique libdirs.
  47966. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  47967. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  47968. - ;;
  47969. - *)
  47970. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  47971. - ;;
  47972. - esac
  47973. - fi
  47974. - else
  47975. - eval flag=\"$hardcode_libdir_flag_spec\"
  47976. - dep_rpath="$dep_rpath $flag"
  47977. - fi
  47978. - elif test -n "$runpath_var"; then
  47979. - case "$perm_rpath " in
  47980. - *" $libdir "*) ;;
  47981. - *) perm_rpath="$perm_rpath $libdir" ;;
  47982. - esac
  47983. - fi
  47984. - done
  47985. - # Substitute the hardcoded libdirs into the rpath.
  47986. - if test -n "$hardcode_libdir_separator" &&
  47987. - test -n "$hardcode_libdirs"; then
  47988. - libdir="$hardcode_libdirs"
  47989. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  47990. - case $archive_cmds in
  47991. - *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
  47992. - *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
  47993. - esac
  47994. - else
  47995. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  47996. - fi
  47997. - fi
  47998. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  47999. - # We should set the runpath_var.
  48000. - rpath=
  48001. - for dir in $perm_rpath; do
  48002. - rpath="$rpath$dir:"
  48003. - done
  48004. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  48005. - fi
  48006. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  48007. - fi
  48008. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  48009. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  48010. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  48011. - shlibpath="$finalize_shlibpath"
  48012. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  48013. - if test -n "$shlibpath"; then
  48014. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  48015. - fi
  48016. +int
  48017. +main (int argc, char *argv[])
  48018. +{
  48019. + char **newargz;
  48020. + int newargc;
  48021. + char *tmp_pathspec;
  48022. + char *actual_cwrapper_path;
  48023. + char *actual_cwrapper_name;
  48024. + char *target_name;
  48025. + char *lt_argv_zero;
  48026. + intptr_t rval = 127;
  48027. - # Get the real and link names of the library.
  48028. - eval shared_ext=\"$shrext_cmds\"
  48029. - eval library_names=\"$library_names_spec\"
  48030. - set dummy $library_names
  48031. - realname="$2"
  48032. - shift; shift
  48033. + int i;
  48034. - if test -n "$soname_spec"; then
  48035. - eval soname=\"$soname_spec\"
  48036. - else
  48037. - soname="$realname"
  48038. - fi
  48039. - if test -z "$dlname"; then
  48040. - dlname=$soname
  48041. - fi
  48042. + program_name = (char *) xstrdup (base_name (argv[0]));
  48043. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  48044. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  48045. - lib="$output_objdir/$realname"
  48046. - linknames=
  48047. - for link
  48048. - do
  48049. - linknames="$linknames $link"
  48050. - done
  48051. + /* very simple arg parsing; don't want to rely on getopt */
  48052. + for (i = 1; i < argc; i++)
  48053. + {
  48054. + if (strcmp (argv[i], dumpscript_opt) == 0)
  48055. + {
  48056. +EOF
  48057. + case "$host" in
  48058. + *mingw* | *cygwin* )
  48059. + # make stdout use "unix" line endings
  48060. + echo " setmode(1,_O_BINARY);"
  48061. + ;;
  48062. + esac
  48063. - # Use standard objects if they are pic
  48064. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  48065. + cat <<"EOF"
  48066. + printf ("%s", script_text_part1);
  48067. + printf ("%s", script_text_part2);
  48068. + return 0;
  48069. + }
  48070. + }
  48071. - # Prepare the list of exported symbols
  48072. - if test -z "$export_symbols"; then
  48073. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  48074. - $show "generating symbol list for \`$libname.la'"
  48075. - export_symbols="$output_objdir/$libname.exp"
  48076. - $run $rm $export_symbols
  48077. - cmds=$export_symbols_cmds
  48078. - save_ifs="$IFS"; IFS='~'
  48079. - for cmd in $cmds; do
  48080. - IFS="$save_ifs"
  48081. - eval cmd=\"$cmd\"
  48082. - if len=`expr "X$cmd" : ".*"` &&
  48083. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  48084. - $show "$cmd"
  48085. - $run eval "$cmd" || exit $?
  48086. - skipped_export=false
  48087. - else
  48088. - # The command line is too long to execute in one step.
  48089. - $show "using reloadable object file for export list..."
  48090. - skipped_export=:
  48091. - # Break out early, otherwise skipped_export may be
  48092. - # set to false by a later but shorter cmd.
  48093. - break
  48094. - fi
  48095. - done
  48096. - IFS="$save_ifs"
  48097. - if test -n "$export_symbols_regex"; then
  48098. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  48099. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  48100. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  48101. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  48102. - fi
  48103. - fi
  48104. - fi
  48105. + newargz = XMALLOC (char *, argc + 1);
  48106. + tmp_pathspec = find_executable (argv[0]);
  48107. + if (tmp_pathspec == NULL)
  48108. + lt_fatal ("Couldn't find %s", argv[0]);
  48109. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  48110. + tmp_pathspec));
  48111. +
  48112. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  48113. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  48114. + actual_cwrapper_path));
  48115. + XFREE (tmp_pathspec);
  48116. +
  48117. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  48118. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  48119. +
  48120. + /* wrapper name transforms */
  48121. + strendzap (actual_cwrapper_name, ".exe");
  48122. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  48123. + XFREE (actual_cwrapper_name);
  48124. + actual_cwrapper_name = tmp_pathspec;
  48125. + tmp_pathspec = 0;
  48126. +
  48127. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  48128. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  48129. + strendzap (target_name, ".exe");
  48130. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  48131. + XFREE (target_name);
  48132. + target_name = tmp_pathspec;
  48133. + tmp_pathspec = 0;
  48134. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  48135. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  48136. - fi
  48137. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  48138. + target_name));
  48139. +EOF
  48140. - tmp_deplibs=
  48141. - for test_deplib in $deplibs; do
  48142. - case " $convenience " in
  48143. - *" $test_deplib "*) ;;
  48144. - *)
  48145. - tmp_deplibs="$tmp_deplibs $test_deplib"
  48146. - ;;
  48147. - esac
  48148. - done
  48149. - deplibs="$tmp_deplibs"
  48150. + cat <<EOF
  48151. + newargz[0] =
  48152. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  48153. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  48154. + strcpy (newargz[0], actual_cwrapper_path);
  48155. + strcat (newargz[0], "$objdir");
  48156. + strcat (newargz[0], "/");
  48157. +EOF
  48158. - if test -n "$convenience"; then
  48159. - if test -n "$whole_archive_flag_spec"; then
  48160. - save_libobjs=$libobjs
  48161. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  48162. - else
  48163. - gentop="$output_objdir/${outputname}x"
  48164. - generated="$generated $gentop"
  48165. + cat <<"EOF"
  48166. + /* stop here, and copy so we don't have to do this twice */
  48167. + tmp_pathspec = xstrdup (newargz[0]);
  48168. +
  48169. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  48170. + strcat (newargz[0], actual_cwrapper_name);
  48171. +
  48172. + /* DO want the lt- prefix here if it exists, so use target_name */
  48173. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  48174. + XFREE (tmp_pathspec);
  48175. + tmp_pathspec = NULL;
  48176. +EOF
  48177. - func_extract_archives $gentop $convenience
  48178. - libobjs="$libobjs $func_extract_archives_result"
  48179. - fi
  48180. - fi
  48181. -
  48182. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  48183. - eval flag=\"$thread_safe_flag_spec\"
  48184. - linker_flags="$linker_flags $flag"
  48185. - fi
  48186. + case $host_os in
  48187. + mingw*)
  48188. + cat <<"EOF"
  48189. + {
  48190. + char* p;
  48191. + while ((p = strchr (newargz[0], '\\')) != NULL)
  48192. + {
  48193. + *p = '/';
  48194. + }
  48195. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  48196. + {
  48197. + *p = '/';
  48198. + }
  48199. + }
  48200. +EOF
  48201. + ;;
  48202. + esac
  48203. - # Make a backup of the uninstalled library when relinking
  48204. - if test "$mode" = relink; then
  48205. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  48206. - fi
  48207. + cat <<"EOF"
  48208. + XFREE (target_name);
  48209. + XFREE (actual_cwrapper_path);
  48210. + XFREE (actual_cwrapper_name);
  48211. +
  48212. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  48213. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  48214. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  48215. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  48216. - # Do each of the archive commands.
  48217. - if test "$module" = yes && test -n "$module_cmds" ; then
  48218. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  48219. - eval test_cmds=\"$module_expsym_cmds\"
  48220. - cmds=$module_expsym_cmds
  48221. - else
  48222. - eval test_cmds=\"$module_cmds\"
  48223. - cmds=$module_cmds
  48224. - fi
  48225. - else
  48226. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  48227. - eval test_cmds=\"$archive_expsym_cmds\"
  48228. - cmds=$archive_expsym_cmds
  48229. - else
  48230. - eval test_cmds=\"$archive_cmds\"
  48231. - cmds=$archive_cmds
  48232. - fi
  48233. - fi
  48234. + newargc=0;
  48235. + for (i = 1; i < argc; i++)
  48236. + {
  48237. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  48238. + {
  48239. + if (argv[i][env_set_opt_len] == '=')
  48240. + {
  48241. + const char *p = argv[i] + env_set_opt_len + 1;
  48242. + lt_opt_process_env_set (p);
  48243. + }
  48244. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  48245. + {
  48246. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  48247. + }
  48248. + else
  48249. + lt_fatal ("%s missing required argument", env_set_opt);
  48250. + continue;
  48251. + }
  48252. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  48253. + {
  48254. + if (argv[i][env_prepend_opt_len] == '=')
  48255. + {
  48256. + const char *p = argv[i] + env_prepend_opt_len + 1;
  48257. + lt_opt_process_env_prepend (p);
  48258. + }
  48259. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  48260. + {
  48261. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  48262. + }
  48263. + else
  48264. + lt_fatal ("%s missing required argument", env_prepend_opt);
  48265. + continue;
  48266. + }
  48267. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  48268. + {
  48269. + if (argv[i][env_append_opt_len] == '=')
  48270. + {
  48271. + const char *p = argv[i] + env_append_opt_len + 1;
  48272. + lt_opt_process_env_append (p);
  48273. + }
  48274. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  48275. + {
  48276. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  48277. + }
  48278. + else
  48279. + lt_fatal ("%s missing required argument", env_append_opt);
  48280. + continue;
  48281. + }
  48282. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  48283. + {
  48284. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  48285. + namespace, but it is not one of the ones we know about and
  48286. + have already dealt with, above (inluding dump-script), then
  48287. + report an error. Otherwise, targets might begin to believe
  48288. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  48289. + namespace. The first time any user complains about this, we'll
  48290. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  48291. + or a configure.ac-settable value.
  48292. + */
  48293. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  48294. + ltwrapper_option_prefix, argv[i]);
  48295. + }
  48296. + /* otherwise ... */
  48297. + newargz[++newargc] = xstrdup (argv[i]);
  48298. + }
  48299. + newargz[++newargc] = NULL;
  48300. - if test "X$skipped_export" != "X:" &&
  48301. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  48302. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  48303. - :
  48304. - else
  48305. - # The command line is too long to link in one step, link piecewise.
  48306. - $echo "creating reloadable object files..."
  48307. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  48308. + for (i = 0; i < newargc; i++)
  48309. + {
  48310. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  48311. + }
  48312. - # Save the value of $output and $libobjs because we want to
  48313. - # use them later. If we have whole_archive_flag_spec, we
  48314. - # want to use save_libobjs as it was before
  48315. - # whole_archive_flag_spec was expanded, because we can't
  48316. - # assume the linker understands whole_archive_flag_spec.
  48317. - # This may have to be revisited, in case too many
  48318. - # convenience libraries get linked in and end up exceeding
  48319. - # the spec.
  48320. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  48321. - save_libobjs=$libobjs
  48322. - fi
  48323. - save_output=$output
  48324. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  48325. +EOF
  48326. - # Clear the reloadable object creation command queue and
  48327. - # initialize k to one.
  48328. - test_cmds=
  48329. - concat_cmds=
  48330. - objlist=
  48331. - delfiles=
  48332. - last_robj=
  48333. - k=1
  48334. - output=$output_objdir/$output_la-${k}.$objext
  48335. - # Loop over the list of objects to be linked.
  48336. - for obj in $save_libobjs
  48337. - do
  48338. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  48339. - if test "X$objlist" = X ||
  48340. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  48341. - test "$len" -le "$max_cmd_len"; }; then
  48342. - objlist="$objlist $obj"
  48343. - else
  48344. - # The command $test_cmds is almost too long, add a
  48345. - # command to the queue.
  48346. - if test "$k" -eq 1 ; then
  48347. - # The first file doesn't have a previous command to add.
  48348. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  48349. - else
  48350. - # All subsequent reloadable object files will link in
  48351. - # the last one created.
  48352. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  48353. - fi
  48354. - last_robj=$output_objdir/$output_la-${k}.$objext
  48355. - k=`expr $k + 1`
  48356. - output=$output_objdir/$output_la-${k}.$objext
  48357. - objlist=$obj
  48358. - len=1
  48359. - fi
  48360. - done
  48361. - # Handle the remaining objects by creating one last
  48362. - # reloadable object file. All subsequent reloadable object
  48363. - # files will link in the last one created.
  48364. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  48365. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  48366. + case $host_os in
  48367. + mingw*)
  48368. + cat <<"EOF"
  48369. + /* execv doesn't actually work on mingw as expected on unix */
  48370. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  48371. + if (rval == -1)
  48372. + {
  48373. + /* failed to start process */
  48374. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  48375. + return 127;
  48376. + }
  48377. + return rval;
  48378. +EOF
  48379. + ;;
  48380. + *)
  48381. + cat <<"EOF"
  48382. + execv (lt_argv_zero, newargz);
  48383. + return rval; /* =127, but avoids unused variable warning */
  48384. +EOF
  48385. + ;;
  48386. + esac
  48387. - if ${skipped_export-false}; then
  48388. - $show "generating symbol list for \`$libname.la'"
  48389. - export_symbols="$output_objdir/$libname.exp"
  48390. - $run $rm $export_symbols
  48391. - libobjs=$output
  48392. - # Append the command to create the export file.
  48393. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  48394. - fi
  48395. -
  48396. - # Set up a command to remove the reloadable object files
  48397. - # after they are used.
  48398. - i=0
  48399. - while test "$i" -lt "$k"
  48400. - do
  48401. - i=`expr $i + 1`
  48402. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  48403. - done
  48404. + cat <<"EOF"
  48405. +}
  48406. - $echo "creating a temporary reloadable object file: $output"
  48407. +void *
  48408. +xmalloc (size_t num)
  48409. +{
  48410. + void *p = (void *) malloc (num);
  48411. + if (!p)
  48412. + lt_fatal ("Memory exhausted");
  48413. - # Loop through the commands generated above and execute them.
  48414. - save_ifs="$IFS"; IFS='~'
  48415. - for cmd in $concat_cmds; do
  48416. - IFS="$save_ifs"
  48417. - $show "$cmd"
  48418. - $run eval "$cmd" || exit $?
  48419. - done
  48420. - IFS="$save_ifs"
  48421. + return p;
  48422. +}
  48423. - libobjs=$output
  48424. - # Restore the value of output.
  48425. - output=$save_output
  48426. +char *
  48427. +xstrdup (const char *string)
  48428. +{
  48429. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  48430. + string) : NULL;
  48431. +}
  48432. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  48433. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  48434. - fi
  48435. - # Expand the library linking commands again to reset the
  48436. - # value of $libobjs for piecewise linking.
  48437. +const char *
  48438. +base_name (const char *name)
  48439. +{
  48440. + const char *base;
  48441. - # Do each of the archive commands.
  48442. - if test "$module" = yes && test -n "$module_cmds" ; then
  48443. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  48444. - cmds=$module_expsym_cmds
  48445. - else
  48446. - cmds=$module_cmds
  48447. - fi
  48448. - else
  48449. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  48450. - cmds=$archive_expsym_cmds
  48451. - else
  48452. - cmds=$archive_cmds
  48453. - fi
  48454. - fi
  48455. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  48456. + /* Skip over the disk name in MSDOS pathnames. */
  48457. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  48458. + name += 2;
  48459. +#endif
  48460. - # Append the command to remove the reloadable object files
  48461. - # to the just-reset $cmds.
  48462. - eval cmds=\"\$cmds~\$rm $delfiles\"
  48463. - fi
  48464. - save_ifs="$IFS"; IFS='~'
  48465. - for cmd in $cmds; do
  48466. - IFS="$save_ifs"
  48467. - eval cmd=\"$cmd\"
  48468. - $show "$cmd"
  48469. - $run eval "$cmd" || {
  48470. - lt_exit=$?
  48471. + for (base = name; *name; name++)
  48472. + if (IS_DIR_SEPARATOR (*name))
  48473. + base = name + 1;
  48474. + return base;
  48475. +}
  48476. - # Restore the uninstalled library and exit
  48477. - if test "$mode" = relink; then
  48478. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  48479. - fi
  48480. +int
  48481. +check_executable (const char *path)
  48482. +{
  48483. + struct stat st;
  48484. - exit $lt_exit
  48485. - }
  48486. - done
  48487. - IFS="$save_ifs"
  48488. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  48489. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  48490. + if ((!path) || (!*path))
  48491. + return 0;
  48492. - # Restore the uninstalled library and exit
  48493. - if test "$mode" = relink; then
  48494. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  48495. + if ((stat (path, &st) >= 0)
  48496. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  48497. + return 1;
  48498. + else
  48499. + return 0;
  48500. +}
  48501. - if test -n "$convenience"; then
  48502. - if test -z "$whole_archive_flag_spec"; then
  48503. - $show "${rm}r $gentop"
  48504. - $run ${rm}r "$gentop"
  48505. - fi
  48506. - fi
  48507. +int
  48508. +make_executable (const char *path)
  48509. +{
  48510. + int rval = 0;
  48511. + struct stat st;
  48512. - exit $EXIT_SUCCESS
  48513. - fi
  48514. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  48515. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  48516. + if ((!path) || (!*path))
  48517. + return 0;
  48518. - # Create links to the real library.
  48519. - for linkname in $linknames; do
  48520. - if test "$realname" != "$linkname"; then
  48521. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  48522. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  48523. - fi
  48524. - done
  48525. + if (stat (path, &st) >= 0)
  48526. + {
  48527. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  48528. + }
  48529. + return rval;
  48530. +}
  48531. - # If -module or -export-dynamic was specified, set the dlname.
  48532. - if test "$module" = yes || test "$export_dynamic" = yes; then
  48533. - # On all known operating systems, these are identical.
  48534. - dlname="$soname"
  48535. - fi
  48536. - fi
  48537. - ;;
  48538. +/* Searches for the full path of the wrapper. Returns
  48539. + newly allocated full path name if found, NULL otherwise
  48540. + Does not chase symlinks, even on platforms that support them.
  48541. +*/
  48542. +char *
  48543. +find_executable (const char *wrapper)
  48544. +{
  48545. + int has_slash = 0;
  48546. + const char *p;
  48547. + const char *p_next;
  48548. + /* static buffer for getcwd */
  48549. + char tmp[LT_PATHMAX + 1];
  48550. + int tmp_len;
  48551. + char *concat_name;
  48552. - obj)
  48553. - if test -n "$deplibs"; then
  48554. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  48555. - fi
  48556. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  48557. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  48558. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  48559. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  48560. - fi
  48561. + if ((wrapper == NULL) || (*wrapper == '\0'))
  48562. + return NULL;
  48563. - if test -n "$rpath"; then
  48564. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  48565. - fi
  48566. + /* Absolute path? */
  48567. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  48568. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  48569. + {
  48570. + concat_name = xstrdup (wrapper);
  48571. + if (check_executable (concat_name))
  48572. + return concat_name;
  48573. + XFREE (concat_name);
  48574. + }
  48575. + else
  48576. + {
  48577. +#endif
  48578. + if (IS_DIR_SEPARATOR (wrapper[0]))
  48579. + {
  48580. + concat_name = xstrdup (wrapper);
  48581. + if (check_executable (concat_name))
  48582. + return concat_name;
  48583. + XFREE (concat_name);
  48584. + }
  48585. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  48586. + }
  48587. +#endif
  48588. - if test -n "$xrpath"; then
  48589. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  48590. - fi
  48591. + for (p = wrapper; *p; p++)
  48592. + if (*p == '/')
  48593. + {
  48594. + has_slash = 1;
  48595. + break;
  48596. + }
  48597. + if (!has_slash)
  48598. + {
  48599. + /* no slashes; search PATH */
  48600. + const char *path = getenv ("PATH");
  48601. + if (path != NULL)
  48602. + {
  48603. + for (p = path; *p; p = p_next)
  48604. + {
  48605. + const char *q;
  48606. + size_t p_len;
  48607. + for (q = p; *q; q++)
  48608. + if (IS_PATH_SEPARATOR (*q))
  48609. + break;
  48610. + p_len = q - p;
  48611. + p_next = (*q == '\0' ? q : q + 1);
  48612. + if (p_len == 0)
  48613. + {
  48614. + /* empty path: current directory */
  48615. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  48616. + lt_fatal ("getcwd failed");
  48617. + tmp_len = strlen (tmp);
  48618. + concat_name =
  48619. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  48620. + memcpy (concat_name, tmp, tmp_len);
  48621. + concat_name[tmp_len] = '/';
  48622. + strcpy (concat_name + tmp_len + 1, wrapper);
  48623. + }
  48624. + else
  48625. + {
  48626. + concat_name =
  48627. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  48628. + memcpy (concat_name, p, p_len);
  48629. + concat_name[p_len] = '/';
  48630. + strcpy (concat_name + p_len + 1, wrapper);
  48631. + }
  48632. + if (check_executable (concat_name))
  48633. + return concat_name;
  48634. + XFREE (concat_name);
  48635. + }
  48636. + }
  48637. + /* not found in PATH; assume curdir */
  48638. + }
  48639. + /* Relative path | not found in path: prepend cwd */
  48640. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  48641. + lt_fatal ("getcwd failed");
  48642. + tmp_len = strlen (tmp);
  48643. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  48644. + memcpy (concat_name, tmp, tmp_len);
  48645. + concat_name[tmp_len] = '/';
  48646. + strcpy (concat_name + tmp_len + 1, wrapper);
  48647. - if test -n "$vinfo"; then
  48648. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  48649. - fi
  48650. + if (check_executable (concat_name))
  48651. + return concat_name;
  48652. + XFREE (concat_name);
  48653. + return NULL;
  48654. +}
  48655. - if test -n "$release"; then
  48656. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  48657. - fi
  48658. +char *
  48659. +chase_symlinks (const char *pathspec)
  48660. +{
  48661. +#ifndef S_ISLNK
  48662. + return xstrdup (pathspec);
  48663. +#else
  48664. + char buf[LT_PATHMAX];
  48665. + struct stat s;
  48666. + char *tmp_pathspec = xstrdup (pathspec);
  48667. + char *p;
  48668. + int has_symlinks = 0;
  48669. + while (strlen (tmp_pathspec) && !has_symlinks)
  48670. + {
  48671. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  48672. + tmp_pathspec));
  48673. + if (lstat (tmp_pathspec, &s) == 0)
  48674. + {
  48675. + if (S_ISLNK (s.st_mode) != 0)
  48676. + {
  48677. + has_symlinks = 1;
  48678. + break;
  48679. + }
  48680. - case $output in
  48681. - *.lo)
  48682. - if test -n "$objs$old_deplibs"; then
  48683. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  48684. - exit $EXIT_FAILURE
  48685. - fi
  48686. - libobj="$output"
  48687. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  48688. - ;;
  48689. - *)
  48690. - libobj=
  48691. - obj="$output"
  48692. - ;;
  48693. - esac
  48694. + /* search backwards for last DIR_SEPARATOR */
  48695. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  48696. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  48697. + p--;
  48698. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  48699. + {
  48700. + /* no more DIR_SEPARATORS left */
  48701. + break;
  48702. + }
  48703. + *p = '\0';
  48704. + }
  48705. + else
  48706. + {
  48707. + char *errstr = strerror (errno);
  48708. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  48709. + }
  48710. + }
  48711. + XFREE (tmp_pathspec);
  48712. - # Delete the old objects.
  48713. - $run $rm $obj $libobj
  48714. + if (!has_symlinks)
  48715. + {
  48716. + return xstrdup (pathspec);
  48717. + }
  48718. - # Objects from convenience libraries. This assumes
  48719. - # single-version convenience libraries. Whenever we create
  48720. - # different ones for PIC/non-PIC, this we'll have to duplicate
  48721. - # the extraction.
  48722. - reload_conv_objs=
  48723. - gentop=
  48724. - # reload_cmds runs $LD directly, so let us get rid of
  48725. - # -Wl from whole_archive_flag_spec and hope we can get by with
  48726. - # turning comma into space..
  48727. - wl=
  48728. + tmp_pathspec = realpath (pathspec, buf);
  48729. + if (tmp_pathspec == 0)
  48730. + {
  48731. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  48732. + }
  48733. + return xstrdup (tmp_pathspec);
  48734. +#endif
  48735. +}
  48736. - if test -n "$convenience"; then
  48737. - if test -n "$whole_archive_flag_spec"; then
  48738. - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  48739. - reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  48740. - else
  48741. - gentop="$output_objdir/${obj}x"
  48742. - generated="$generated $gentop"
  48743. +char *
  48744. +strendzap (char *str, const char *pat)
  48745. +{
  48746. + size_t len, patlen;
  48747. - func_extract_archives $gentop $convenience
  48748. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  48749. - fi
  48750. - fi
  48751. + assert (str != NULL);
  48752. + assert (pat != NULL);
  48753. - # Create the old-style object.
  48754. - 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
  48755. + len = strlen (str);
  48756. + patlen = strlen (pat);
  48757. - output="$obj"
  48758. - cmds=$reload_cmds
  48759. - save_ifs="$IFS"; IFS='~'
  48760. - for cmd in $cmds; do
  48761. - IFS="$save_ifs"
  48762. - eval cmd=\"$cmd\"
  48763. - $show "$cmd"
  48764. - $run eval "$cmd" || exit $?
  48765. - done
  48766. - IFS="$save_ifs"
  48767. + if (patlen <= len)
  48768. + {
  48769. + str += len - patlen;
  48770. + if (strcmp (str, pat) == 0)
  48771. + *str = '\0';
  48772. + }
  48773. + return str;
  48774. +}
  48775. - # Exit if we aren't doing a library object file.
  48776. - if test -z "$libobj"; then
  48777. - if test -n "$gentop"; then
  48778. - $show "${rm}r $gentop"
  48779. - $run ${rm}r $gentop
  48780. - fi
  48781. +static void
  48782. +lt_error_core (int exit_status, const char *mode,
  48783. + const char *message, va_list ap)
  48784. +{
  48785. + fprintf (stderr, "%s: %s: ", program_name, mode);
  48786. + vfprintf (stderr, message, ap);
  48787. + fprintf (stderr, ".\n");
  48788. - exit $EXIT_SUCCESS
  48789. - fi
  48790. + if (exit_status >= 0)
  48791. + exit (exit_status);
  48792. +}
  48793. - if test "$build_libtool_libs" != yes; then
  48794. - if test -n "$gentop"; then
  48795. - $show "${rm}r $gentop"
  48796. - $run ${rm}r $gentop
  48797. - fi
  48798. +void
  48799. +lt_fatal (const char *message, ...)
  48800. +{
  48801. + va_list ap;
  48802. + va_start (ap, message);
  48803. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  48804. + va_end (ap);
  48805. +}
  48806. - # Create an invalid libtool object if no PIC, so that we don't
  48807. - # accidentally link it into a program.
  48808. - # $show "echo timestamp > $libobj"
  48809. - # $run eval "echo timestamp > $libobj" || exit $?
  48810. - exit $EXIT_SUCCESS
  48811. - fi
  48812. +void
  48813. +lt_setenv (const char *name, const char *value)
  48814. +{
  48815. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  48816. + (name ? name : "<NULL>"),
  48817. + (value ? value : "<NULL>")));
  48818. + {
  48819. +#ifdef HAVE_SETENV
  48820. + /* always make a copy, for consistency with !HAVE_SETENV */
  48821. + char *str = xstrdup (value);
  48822. + setenv (name, str, 1);
  48823. +#else
  48824. + int len = strlen (name) + 1 + strlen (value) + 1;
  48825. + char *str = XMALLOC (char, len);
  48826. + sprintf (str, "%s=%s", name, value);
  48827. + if (putenv (str) != EXIT_SUCCESS)
  48828. + {
  48829. + XFREE (str);
  48830. + }
  48831. +#endif
  48832. + }
  48833. +}
  48834. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  48835. - # Only do commands if we really have different PIC objects.
  48836. - reload_objs="$libobjs $reload_conv_objs"
  48837. - output="$libobj"
  48838. - cmds=$reload_cmds
  48839. - save_ifs="$IFS"; IFS='~'
  48840. - for cmd in $cmds; do
  48841. - IFS="$save_ifs"
  48842. - eval cmd=\"$cmd\"
  48843. - $show "$cmd"
  48844. - $run eval "$cmd" || exit $?
  48845. - done
  48846. - IFS="$save_ifs"
  48847. - fi
  48848. -
  48849. - if test -n "$gentop"; then
  48850. - $show "${rm}r $gentop"
  48851. - $run ${rm}r $gentop
  48852. - fi
  48853. -
  48854. - exit $EXIT_SUCCESS
  48855. - ;;
  48856. -
  48857. - prog)
  48858. - case $host in
  48859. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  48860. - esac
  48861. - if test -n "$vinfo"; then
  48862. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  48863. - fi
  48864. -
  48865. - if test -n "$release"; then
  48866. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  48867. - fi
  48868. -
  48869. - if test "$preload" = yes; then
  48870. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  48871. - test "$dlopen_self_static" = unknown; then
  48872. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  48873. - fi
  48874. - fi
  48875. +char *
  48876. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  48877. +{
  48878. + char *new_value;
  48879. + if (orig_value && *orig_value)
  48880. + {
  48881. + int orig_value_len = strlen (orig_value);
  48882. + int add_len = strlen (add);
  48883. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  48884. + if (to_end)
  48885. + {
  48886. + strcpy (new_value, orig_value);
  48887. + strcpy (new_value + orig_value_len, add);
  48888. + }
  48889. + else
  48890. + {
  48891. + strcpy (new_value, add);
  48892. + strcpy (new_value + add_len, orig_value);
  48893. + }
  48894. + }
  48895. + else
  48896. + {
  48897. + new_value = xstrdup (add);
  48898. + }
  48899. + return new_value;
  48900. +}
  48901. - case $host in
  48902. - *-*-rhapsody* | *-*-darwin1.[012])
  48903. - # On Rhapsody replace the C library is the System framework
  48904. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  48905. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  48906. - ;;
  48907. - esac
  48908. +int
  48909. +lt_split_name_value (const char *arg, char** name, char** value)
  48910. +{
  48911. + const char *p;
  48912. + int len;
  48913. + if (!arg || !*arg)
  48914. + return 1;
  48915. - case $host in
  48916. - *darwin*)
  48917. - # Don't allow lazy linking, it breaks C++ global constructors
  48918. - if test "$tagname" = CXX ; then
  48919. - compile_command="$compile_command ${wl}-bind_at_load"
  48920. - finalize_command="$finalize_command ${wl}-bind_at_load"
  48921. - fi
  48922. - ;;
  48923. - esac
  48924. + p = strchr (arg, (int)'=');
  48925. + if (!p)
  48926. + return 1;
  48927. - # move library search paths that coincide with paths to not yet
  48928. - # installed libraries to the beginning of the library search list
  48929. - new_libs=
  48930. - for path in $notinst_path; do
  48931. - case " $new_libs " in
  48932. - *" -L$path/$objdir "*) ;;
  48933. - *)
  48934. - case " $compile_deplibs " in
  48935. - *" -L$path/$objdir "*)
  48936. - new_libs="$new_libs -L$path/$objdir" ;;
  48937. - esac
  48938. - ;;
  48939. - esac
  48940. - done
  48941. - for deplib in $compile_deplibs; do
  48942. - case $deplib in
  48943. - -L*)
  48944. - case " $new_libs " in
  48945. - *" $deplib "*) ;;
  48946. - *) new_libs="$new_libs $deplib" ;;
  48947. - esac
  48948. - ;;
  48949. - *) new_libs="$new_libs $deplib" ;;
  48950. - esac
  48951. - done
  48952. - compile_deplibs="$new_libs"
  48953. + *value = xstrdup (++p);
  48954. + len = strlen (arg) - strlen (*value);
  48955. + *name = XMALLOC (char, len);
  48956. + strncpy (*name, arg, len-1);
  48957. + (*name)[len - 1] = '\0';
  48958. - compile_command="$compile_command $compile_deplibs"
  48959. - finalize_command="$finalize_command $finalize_deplibs"
  48960. + return 0;
  48961. +}
  48962. - if test -n "$rpath$xrpath"; then
  48963. - # If the user specified any rpath flags, then add them.
  48964. - for libdir in $rpath $xrpath; do
  48965. - # This is the magic to use -rpath.
  48966. - case "$finalize_rpath " in
  48967. - *" $libdir "*) ;;
  48968. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  48969. - esac
  48970. - done
  48971. - fi
  48972. +void
  48973. +lt_opt_process_env_set (const char *arg)
  48974. +{
  48975. + char *name = NULL;
  48976. + char *value = NULL;
  48977. - # Now hardcode the library paths
  48978. - rpath=
  48979. - hardcode_libdirs=
  48980. - for libdir in $compile_rpath $finalize_rpath; do
  48981. - if test -n "$hardcode_libdir_flag_spec"; then
  48982. - if test -n "$hardcode_libdir_separator"; then
  48983. - if test -z "$hardcode_libdirs"; then
  48984. - hardcode_libdirs="$libdir"
  48985. - else
  48986. - # Just accumulate the unique libdirs.
  48987. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  48988. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  48989. - ;;
  48990. - *)
  48991. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  48992. - ;;
  48993. - esac
  48994. - fi
  48995. - else
  48996. - eval flag=\"$hardcode_libdir_flag_spec\"
  48997. - rpath="$rpath $flag"
  48998. - fi
  48999. - elif test -n "$runpath_var"; then
  49000. - case "$perm_rpath " in
  49001. - *" $libdir "*) ;;
  49002. - *) perm_rpath="$perm_rpath $libdir" ;;
  49003. - esac
  49004. - fi
  49005. - case $host in
  49006. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  49007. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  49008. - case :$dllsearchpath: in
  49009. - *":$libdir:"*) ;;
  49010. - *) dllsearchpath="$dllsearchpath:$libdir";;
  49011. - esac
  49012. - case :$dllsearchpath: in
  49013. - *":$testbindir:"*) ;;
  49014. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  49015. - esac
  49016. - ;;
  49017. - esac
  49018. - done
  49019. - # Substitute the hardcoded libdirs into the rpath.
  49020. - if test -n "$hardcode_libdir_separator" &&
  49021. - test -n "$hardcode_libdirs"; then
  49022. - libdir="$hardcode_libdirs"
  49023. - eval rpath=\" $hardcode_libdir_flag_spec\"
  49024. - fi
  49025. - compile_rpath="$rpath"
  49026. + if (lt_split_name_value (arg, &name, &value) != 0)
  49027. + {
  49028. + XFREE (name);
  49029. + XFREE (value);
  49030. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  49031. + }
  49032. - rpath=
  49033. - hardcode_libdirs=
  49034. - for libdir in $finalize_rpath; do
  49035. - if test -n "$hardcode_libdir_flag_spec"; then
  49036. - if test -n "$hardcode_libdir_separator"; then
  49037. - if test -z "$hardcode_libdirs"; then
  49038. - hardcode_libdirs="$libdir"
  49039. - else
  49040. - # Just accumulate the unique libdirs.
  49041. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  49042. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  49043. - ;;
  49044. - *)
  49045. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  49046. - ;;
  49047. - esac
  49048. - fi
  49049. - else
  49050. - eval flag=\"$hardcode_libdir_flag_spec\"
  49051. - rpath="$rpath $flag"
  49052. - fi
  49053. - elif test -n "$runpath_var"; then
  49054. - case "$finalize_perm_rpath " in
  49055. - *" $libdir "*) ;;
  49056. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  49057. - esac
  49058. - fi
  49059. - done
  49060. - # Substitute the hardcoded libdirs into the rpath.
  49061. - if test -n "$hardcode_libdir_separator" &&
  49062. - test -n "$hardcode_libdirs"; then
  49063. - libdir="$hardcode_libdirs"
  49064. - eval rpath=\" $hardcode_libdir_flag_spec\"
  49065. - fi
  49066. - finalize_rpath="$rpath"
  49067. + lt_setenv (name, value);
  49068. + XFREE (name);
  49069. + XFREE (value);
  49070. +}
  49071. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  49072. - # Transform all the library objects into standard objects.
  49073. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  49074. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  49075. - fi
  49076. +void
  49077. +lt_opt_process_env_prepend (const char *arg)
  49078. +{
  49079. + char *name = NULL;
  49080. + char *value = NULL;
  49081. + char *new_value = NULL;
  49082. - dlsyms=
  49083. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  49084. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  49085. - dlsyms="${outputname}S.c"
  49086. - else
  49087. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  49088. - fi
  49089. - fi
  49090. + if (lt_split_name_value (arg, &name, &value) != 0)
  49091. + {
  49092. + XFREE (name);
  49093. + XFREE (value);
  49094. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  49095. + }
  49096. - if test -n "$dlsyms"; then
  49097. - case $dlsyms in
  49098. - "") ;;
  49099. - *.c)
  49100. - # Discover the nlist of each of the dlfiles.
  49101. - nlist="$output_objdir/${outputname}.nm"
  49102. + new_value = lt_extend_str (getenv (name), value, 0);
  49103. + lt_setenv (name, new_value);
  49104. + XFREE (new_value);
  49105. + XFREE (name);
  49106. + XFREE (value);
  49107. +}
  49108. - $show "$rm $nlist ${nlist}S ${nlist}T"
  49109. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  49110. +void
  49111. +lt_opt_process_env_append (const char *arg)
  49112. +{
  49113. + char *name = NULL;
  49114. + char *value = NULL;
  49115. + char *new_value = NULL;
  49116. - # Parse the name list into a source file.
  49117. - $show "creating $output_objdir/$dlsyms"
  49118. + if (lt_split_name_value (arg, &name, &value) != 0)
  49119. + {
  49120. + XFREE (name);
  49121. + XFREE (value);
  49122. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  49123. + }
  49124. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  49125. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  49126. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  49127. + new_value = lt_extend_str (getenv (name), value, 1);
  49128. + lt_setenv (name, new_value);
  49129. + XFREE (new_value);
  49130. + XFREE (name);
  49131. + XFREE (value);
  49132. +}
  49133. -#ifdef __cplusplus
  49134. -extern \"C\" {
  49135. -#endif
  49136. +void
  49137. +lt_update_exe_path (const char *name, const char *value)
  49138. +{
  49139. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  49140. + (name ? name : "<NULL>"),
  49141. + (value ? value : "<NULL>")));
  49142. -/* Prevent the only kind of declaration conflicts we can make. */
  49143. -#define lt_preloaded_symbols some_other_symbol
  49144. + if (name && *name && value && *value)
  49145. + {
  49146. + char *new_value = lt_extend_str (getenv (name), value, 0);
  49147. + /* some systems can't cope with a ':'-terminated path #' */
  49148. + int len = strlen (new_value);
  49149. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  49150. + {
  49151. + new_value[len-1] = '\0';
  49152. + }
  49153. + lt_setenv (name, new_value);
  49154. + XFREE (new_value);
  49155. + }
  49156. +}
  49157. -/* External symbol declarations for the compiler. */\
  49158. -"
  49159. +void
  49160. +lt_update_lib_path (const char *name, const char *value)
  49161. +{
  49162. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  49163. + (name ? name : "<NULL>"),
  49164. + (value ? value : "<NULL>")));
  49165. - if test "$dlself" = yes; then
  49166. - $show "generating symbol list for \`$output'"
  49167. + if (name && *name && value && *value)
  49168. + {
  49169. + char *new_value = lt_extend_str (getenv (name), value, 0);
  49170. + lt_setenv (name, new_value);
  49171. + XFREE (new_value);
  49172. + }
  49173. +}
  49174. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  49175. - # Add our own program objects to the symbol list.
  49176. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  49177. - for arg in $progfiles; do
  49178. - $show "extracting global C symbols from \`$arg'"
  49179. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  49180. - done
  49181. +EOF
  49182. +}
  49183. +# end: func_emit_cwrapperexe_src
  49184. - if test -n "$exclude_expsyms"; then
  49185. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  49186. - $run eval '$mv "$nlist"T "$nlist"'
  49187. - fi
  49188. -
  49189. - if test -n "$export_symbols_regex"; then
  49190. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  49191. - $run eval '$mv "$nlist"T "$nlist"'
  49192. - fi
  49193. -
  49194. - # Prepare the list of exported symbols
  49195. - if test -z "$export_symbols"; then
  49196. - export_symbols="$output_objdir/$outputname.exp"
  49197. - $run $rm $export_symbols
  49198. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  49199. - case $host in
  49200. - *cygwin* | *mingw* )
  49201. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  49202. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  49203. - ;;
  49204. - esac
  49205. - else
  49206. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  49207. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  49208. - $run eval 'mv "$nlist"T "$nlist"'
  49209. - case $host in
  49210. - *cygwin* | *mingw* )
  49211. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  49212. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  49213. - ;;
  49214. - esac
  49215. - fi
  49216. - fi
  49217. +# func_mode_link arg...
  49218. +func_mode_link ()
  49219. +{
  49220. + $opt_debug
  49221. + case $host in
  49222. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  49223. + # It is impossible to link a dll without this setting, and
  49224. + # we shouldn't force the makefile maintainer to figure out
  49225. + # which system we are compiling for in order to pass an extra
  49226. + # flag for every libtool invocation.
  49227. + # allow_undefined=no
  49228. - for arg in $dlprefiles; do
  49229. - $show "extracting global C symbols from \`$arg'"
  49230. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  49231. - $run eval '$echo ": $name " >> "$nlist"'
  49232. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  49233. - done
  49234. + # FIXME: Unfortunately, there are problems with the above when trying
  49235. + # to make a dll which has undefined symbols, in which case not
  49236. + # even a static library is built. For now, we need to specify
  49237. + # -no-undefined on the libtool link line when we can be certain
  49238. + # that all symbols are satisfied, otherwise we get a static library.
  49239. + allow_undefined=yes
  49240. + ;;
  49241. + *)
  49242. + allow_undefined=yes
  49243. + ;;
  49244. + esac
  49245. + libtool_args=$nonopt
  49246. + base_compile="$nonopt $@"
  49247. + compile_command=$nonopt
  49248. + finalize_command=$nonopt
  49249. - if test -z "$run"; then
  49250. - # Make sure we have at least an empty file.
  49251. - test -f "$nlist" || : > "$nlist"
  49252. -
  49253. - if test -n "$exclude_expsyms"; then
  49254. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  49255. - $mv "$nlist"T "$nlist"
  49256. - fi
  49257. + compile_rpath=
  49258. + finalize_rpath=
  49259. + compile_shlibpath=
  49260. + finalize_shlibpath=
  49261. + convenience=
  49262. + old_convenience=
  49263. + deplibs=
  49264. + old_deplibs=
  49265. + compiler_flags=
  49266. + linker_flags=
  49267. + dllsearchpath=
  49268. + lib_search_path=`pwd`
  49269. + inst_prefix_dir=
  49270. + new_inherited_linker_flags=
  49271. - # Try sorting and uniquifying the output.
  49272. - if grep -v "^: " < "$nlist" |
  49273. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  49274. - sort -k 3
  49275. - else
  49276. - sort +2
  49277. - fi |
  49278. - uniq > "$nlist"S; then
  49279. - :
  49280. - else
  49281. - grep -v "^: " < "$nlist" > "$nlist"S
  49282. - fi
  49283. -
  49284. - if test -f "$nlist"S; then
  49285. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  49286. - else
  49287. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  49288. - fi
  49289. -
  49290. - $echo >> "$output_objdir/$dlsyms" "\
  49291. -
  49292. -#undef lt_preloaded_symbols
  49293. -
  49294. -#if defined (__STDC__) && __STDC__
  49295. -# define lt_ptr void *
  49296. -#else
  49297. -# define lt_ptr char *
  49298. -# define const
  49299. -#endif
  49300. -
  49301. -/* The mapping between symbol names and symbols. */
  49302. -"
  49303. -
  49304. - case $host in
  49305. - *cygwin* | *mingw* )
  49306. - $echo >> "$output_objdir/$dlsyms" "\
  49307. -/* DATA imports from DLLs on WIN32 can't be const, because
  49308. - runtime relocations are performed -- see ld's documentation
  49309. - on pseudo-relocs */
  49310. -struct {
  49311. -"
  49312. - ;;
  49313. - * )
  49314. - $echo >> "$output_objdir/$dlsyms" "\
  49315. -const struct {
  49316. -"
  49317. - ;;
  49318. - esac
  49319. -
  49320. -
  49321. - $echo >> "$output_objdir/$dlsyms" "\
  49322. - const char *name;
  49323. - lt_ptr address;
  49324. -}
  49325. -lt_preloaded_symbols[] =
  49326. -{\
  49327. -"
  49328. -
  49329. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  49330. -
  49331. - $echo >> "$output_objdir/$dlsyms" "\
  49332. - {0, (lt_ptr) 0}
  49333. -};
  49334. -
  49335. -/* This works around a problem in FreeBSD linker */
  49336. -#ifdef FREEBSD_WORKAROUND
  49337. -static const void *lt_preloaded_setup() {
  49338. - return lt_preloaded_symbols;
  49339. -}
  49340. -#endif
  49341. + avoid_version=no
  49342. + dlfiles=
  49343. + dlprefiles=
  49344. + dlself=no
  49345. + export_dynamic=no
  49346. + export_symbols=
  49347. + export_symbols_regex=
  49348. + generated=
  49349. + libobjs=
  49350. + ltlibs=
  49351. + module=no
  49352. + no_install=no
  49353. + objs=
  49354. + non_pic_objects=
  49355. + precious_files_regex=
  49356. + prefer_static_libs=no
  49357. + preload=no
  49358. + prev=
  49359. + prevarg=
  49360. + release=
  49361. + rpath=
  49362. + xrpath=
  49363. + perm_rpath=
  49364. + temp_rpath=
  49365. + thread_safe=no
  49366. + vinfo=
  49367. + vinfo_number=no
  49368. + weak_libs=
  49369. + single_module="${wl}-single_module"
  49370. + func_infer_tag $base_compile
  49371. -#ifdef __cplusplus
  49372. -}
  49373. -#endif\
  49374. -"
  49375. + # We need to know -static, to get the right output filenames.
  49376. + for arg
  49377. + do
  49378. + case $arg in
  49379. + -shared)
  49380. + test "$build_libtool_libs" != yes && \
  49381. + func_fatal_configuration "can not build a shared library"
  49382. + build_old_libs=no
  49383. + break
  49384. + ;;
  49385. + -all-static | -static | -static-libtool-libs)
  49386. + case $arg in
  49387. + -all-static)
  49388. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  49389. + func_warning "complete static linking is impossible in this configuration"
  49390. fi
  49391. -
  49392. - pic_flag_for_symtable=
  49393. - case $host in
  49394. - # compiling the symbol table file with pic_flag works around
  49395. - # a FreeBSD bug that causes programs to crash when -lm is
  49396. - # linked before any other PIC object. But we must not use
  49397. - # pic_flag when linking with -static. The problem exists in
  49398. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  49399. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  49400. - case "$compile_command " in
  49401. - *" -static "*) ;;
  49402. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  49403. - esac;;
  49404. - *-*-hpux*)
  49405. - case "$compile_command " in
  49406. - *" -static "*) ;;
  49407. - *) pic_flag_for_symtable=" $pic_flag";;
  49408. - esac
  49409. - esac
  49410. -
  49411. - # Now compile the dynamic symbol file.
  49412. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  49413. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  49414. -
  49415. - # Clean up the generated files.
  49416. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  49417. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  49418. -
  49419. - # Transform the symbol file into the correct name.
  49420. - case $host in
  49421. - *cygwin* | *mingw* )
  49422. - if test -f "$output_objdir/${outputname}.def" ; then
  49423. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  49424. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
  49425. - else
  49426. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  49427. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  49428. - fi
  49429. - ;;
  49430. - * )
  49431. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  49432. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
  49433. - ;;
  49434. - esac
  49435. + if test -n "$link_static_flag"; then
  49436. + dlopen_self=$dlopen_self_static
  49437. + fi
  49438. + prefer_static_libs=yes
  49439. ;;
  49440. - *)
  49441. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  49442. - exit $EXIT_FAILURE
  49443. + -static)
  49444. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  49445. + dlopen_self=$dlopen_self_static
  49446. + fi
  49447. + prefer_static_libs=built
  49448. + ;;
  49449. + -static-libtool-libs)
  49450. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  49451. + dlopen_self=$dlopen_self_static
  49452. + fi
  49453. + prefer_static_libs=yes
  49454. ;;
  49455. esac
  49456. - else
  49457. - # We keep going just in case the user didn't refer to
  49458. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  49459. - # really was required.
  49460. -
  49461. - # Nullify the symbol file.
  49462. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  49463. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
  49464. - fi
  49465. -
  49466. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  49467. - # Replace the output file specification.
  49468. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
  49469. - link_command="$compile_command$compile_rpath"
  49470. + build_libtool_libs=no
  49471. + build_old_libs=yes
  49472. + break
  49473. + ;;
  49474. + esac
  49475. + done
  49476. - # We have no uninstalled library dependencies, so finalize right now.
  49477. - $show "$link_command"
  49478. - $run eval "$link_command"
  49479. - exit_status=$?
  49480. + # See if our shared archives depend on static archives.
  49481. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  49482. - # Delete the generated files.
  49483. - if test -n "$dlsyms"; then
  49484. - $show "$rm $output_objdir/${outputname}S.${objext}"
  49485. - $run $rm "$output_objdir/${outputname}S.${objext}"
  49486. - fi
  49487. + # Go through the arguments, transforming them on the way.
  49488. + while test "$#" -gt 0; do
  49489. + arg="$1"
  49490. + shift
  49491. + func_quote_for_eval "$arg"
  49492. + qarg=$func_quote_for_eval_unquoted_result
  49493. + func_append libtool_args " $func_quote_for_eval_result"
  49494. - exit $exit_status
  49495. - fi
  49496. + # If the previous option needs an argument, assign it.
  49497. + if test -n "$prev"; then
  49498. + case $prev in
  49499. + output)
  49500. + func_append compile_command " @OUTPUT@"
  49501. + func_append finalize_command " @OUTPUT@"
  49502. + ;;
  49503. + esac
  49504. - if test -n "$shlibpath_var"; then
  49505. - # We should set the shlibpath_var
  49506. - rpath=
  49507. - for dir in $temp_rpath; do
  49508. - case $dir in
  49509. - [\\/]* | [A-Za-z]:[\\/]*)
  49510. - # Absolute path.
  49511. - rpath="$rpath$dir:"
  49512. + case $prev in
  49513. + dlfiles|dlprefiles)
  49514. + if test "$preload" = no; then
  49515. + # Add the symbol object into the linking commands.
  49516. + func_append compile_command " @SYMFILE@"
  49517. + func_append finalize_command " @SYMFILE@"
  49518. + preload=yes
  49519. + fi
  49520. + case $arg in
  49521. + *.la | *.lo) ;; # We handle these cases below.
  49522. + force)
  49523. + if test "$dlself" = no; then
  49524. + dlself=needless
  49525. + export_dynamic=yes
  49526. + fi
  49527. + prev=
  49528. + continue
  49529. + ;;
  49530. + self)
  49531. + if test "$prev" = dlprefiles; then
  49532. + dlself=yes
  49533. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  49534. + dlself=yes
  49535. + else
  49536. + dlself=needless
  49537. + export_dynamic=yes
  49538. + fi
  49539. + prev=
  49540. + continue
  49541. ;;
  49542. *)
  49543. - # Relative path: add a thisdir entry.
  49544. - rpath="$rpath\$thisdir/$dir:"
  49545. + if test "$prev" = dlfiles; then
  49546. + dlfiles="$dlfiles $arg"
  49547. + else
  49548. + dlprefiles="$dlprefiles $arg"
  49549. + fi
  49550. + prev=
  49551. + continue
  49552. ;;
  49553. esac
  49554. - done
  49555. - temp_rpath="$rpath"
  49556. - fi
  49557. + ;;
  49558. + expsyms)
  49559. + export_symbols="$arg"
  49560. + test -f "$arg" \
  49561. + || func_fatal_error "symbol file \`$arg' does not exist"
  49562. + prev=
  49563. + continue
  49564. + ;;
  49565. + expsyms_regex)
  49566. + export_symbols_regex="$arg"
  49567. + prev=
  49568. + continue
  49569. + ;;
  49570. + framework)
  49571. + case $host in
  49572. + *-*-darwin*)
  49573. + case "$deplibs " in
  49574. + *" $qarg.ltframework "*) ;;
  49575. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  49576. + ;;
  49577. + esac
  49578. + ;;
  49579. + esac
  49580. + prev=
  49581. + continue
  49582. + ;;
  49583. + inst_prefix)
  49584. + inst_prefix_dir="$arg"
  49585. + prev=
  49586. + continue
  49587. + ;;
  49588. + objectlist)
  49589. + if test -f "$arg"; then
  49590. + save_arg=$arg
  49591. + moreargs=
  49592. + for fil in `cat "$save_arg"`
  49593. + do
  49594. +# moreargs="$moreargs $fil"
  49595. + arg=$fil
  49596. + # A libtool-controlled object.
  49597. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  49598. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  49599. - fi
  49600. - if test -n "$finalize_shlibpath"; then
  49601. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  49602. - fi
  49603. + # Check to see that this really is a libtool object.
  49604. + if func_lalib_unsafe_p "$arg"; then
  49605. + pic_object=
  49606. + non_pic_object=
  49607. - compile_var=
  49608. - finalize_var=
  49609. - if test -n "$runpath_var"; then
  49610. - if test -n "$perm_rpath"; then
  49611. - # We should set the runpath_var.
  49612. - rpath=
  49613. - for dir in $perm_rpath; do
  49614. - rpath="$rpath$dir:"
  49615. - done
  49616. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  49617. - fi
  49618. - if test -n "$finalize_perm_rpath"; then
  49619. - # We should set the runpath_var.
  49620. - rpath=
  49621. - for dir in $finalize_perm_rpath; do
  49622. - rpath="$rpath$dir:"
  49623. - done
  49624. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  49625. - fi
  49626. - fi
  49627. + # Read the .lo file
  49628. + func_source "$arg"
  49629. - if test "$no_install" = yes; then
  49630. - # We don't need to create a wrapper script.
  49631. - link_command="$compile_var$compile_command$compile_rpath"
  49632. - # Replace the output file specification.
  49633. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  49634. - # Delete the old output file.
  49635. - $run $rm $output
  49636. - # Link the executable and exit
  49637. - $show "$link_command"
  49638. - $run eval "$link_command" || exit $?
  49639. - exit $EXIT_SUCCESS
  49640. - fi
  49641. + if test -z "$pic_object" ||
  49642. + test -z "$non_pic_object" ||
  49643. + test "$pic_object" = none &&
  49644. + test "$non_pic_object" = none; then
  49645. + func_fatal_error "cannot find name of object for \`$arg'"
  49646. + fi
  49647. - if test "$hardcode_action" = relink; then
  49648. - # Fast installation is not supported
  49649. - link_command="$compile_var$compile_command$compile_rpath"
  49650. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  49651. + # Extract subdirectory from the argument.
  49652. + func_dirname "$arg" "/" ""
  49653. + xdir="$func_dirname_result"
  49654. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  49655. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  49656. - else
  49657. - if test "$fast_install" != no; then
  49658. - link_command="$finalize_var$compile_command$finalize_rpath"
  49659. - if test "$fast_install" = yes; then
  49660. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
  49661. - else
  49662. - # fast_install is set to needless
  49663. - relink_command=
  49664. - fi
  49665. - else
  49666. - link_command="$compile_var$compile_command$compile_rpath"
  49667. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  49668. - fi
  49669. - fi
  49670. + if test "$pic_object" != none; then
  49671. + # Prepend the subdirectory the object is found in.
  49672. + pic_object="$xdir$pic_object"
  49673. - # Replace the output file specification.
  49674. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  49675. + if test "$prev" = dlfiles; then
  49676. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  49677. + dlfiles="$dlfiles $pic_object"
  49678. + prev=
  49679. + continue
  49680. + else
  49681. + # If libtool objects are unsupported, then we need to preload.
  49682. + prev=dlprefiles
  49683. + fi
  49684. + fi
  49685. - # Delete the old output files.
  49686. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  49687. + # CHECK ME: I think I busted this. -Ossama
  49688. + if test "$prev" = dlprefiles; then
  49689. + # Preload the old-style object.
  49690. + dlprefiles="$dlprefiles $pic_object"
  49691. + prev=
  49692. + fi
  49693. +
  49694. + # A PIC object.
  49695. + func_append libobjs " $pic_object"
  49696. + arg="$pic_object"
  49697. + fi
  49698. - $show "$link_command"
  49699. - $run eval "$link_command" || exit $?
  49700. + # Non-PIC object.
  49701. + if test "$non_pic_object" != none; then
  49702. + # Prepend the subdirectory the object is found in.
  49703. + non_pic_object="$xdir$non_pic_object"
  49704. - # Now create the wrapper script.
  49705. - $show "creating $output"
  49706. + # A standard non-PIC object
  49707. + func_append non_pic_objects " $non_pic_object"
  49708. + if test -z "$pic_object" || test "$pic_object" = none ; then
  49709. + arg="$non_pic_object"
  49710. + fi
  49711. + else
  49712. + # If the PIC object exists, use it instead.
  49713. + # $xdir was prepended to $pic_object above.
  49714. + non_pic_object="$pic_object"
  49715. + func_append non_pic_objects " $non_pic_object"
  49716. + fi
  49717. + else
  49718. + # Only an error if not doing a dry-run.
  49719. + if $opt_dry_run; then
  49720. + # Extract subdirectory from the argument.
  49721. + func_dirname "$arg" "/" ""
  49722. + xdir="$func_dirname_result"
  49723. - # Quote the relink command for shipping.
  49724. - if test -n "$relink_command"; then
  49725. - # Preserve any variables that may affect compiler behavior
  49726. - for var in $variables_saved_for_relink; do
  49727. - if eval test -z \"\${$var+set}\"; then
  49728. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  49729. - elif eval var_value=\$$var; test -z "$var_value"; then
  49730. - relink_command="$var=; export $var; $relink_command"
  49731. + func_lo2o "$arg"
  49732. + pic_object=$xdir$objdir/$func_lo2o_result
  49733. + non_pic_object=$xdir$func_lo2o_result
  49734. + func_append libobjs " $pic_object"
  49735. + func_append non_pic_objects " $non_pic_object"
  49736. + else
  49737. + func_fatal_error "\`$arg' is not a valid libtool object"
  49738. + fi
  49739. + fi
  49740. + done
  49741. else
  49742. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  49743. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  49744. + func_fatal_error "link input file \`$arg' does not exist"
  49745. fi
  49746. - done
  49747. - relink_command="(cd `pwd`; $relink_command)"
  49748. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  49749. - fi
  49750. -
  49751. - # Quote $echo for shipping.
  49752. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  49753. - case $progpath in
  49754. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  49755. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  49756. - esac
  49757. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  49758. - else
  49759. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  49760. - fi
  49761. -
  49762. - # Only actually do things if our run command is non-null.
  49763. - if test -z "$run"; then
  49764. - # win32 will think the script is a binary if it has
  49765. - # a .exe suffix, so we strip it off here.
  49766. - case $output in
  49767. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  49768. - esac
  49769. - # test for cygwin because mv fails w/o .exe extensions
  49770. - case $host in
  49771. - *cygwin*)
  49772. - exeext=.exe
  49773. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  49774. - *) exeext= ;;
  49775. + arg=$save_arg
  49776. + prev=
  49777. + continue
  49778. + ;;
  49779. + precious_regex)
  49780. + precious_files_regex="$arg"
  49781. + prev=
  49782. + continue
  49783. + ;;
  49784. + release)
  49785. + release="-$arg"
  49786. + prev=
  49787. + continue
  49788. + ;;
  49789. + rpath | xrpath)
  49790. + # We need an absolute path.
  49791. + case $arg in
  49792. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  49793. + *)
  49794. + func_fatal_error "only absolute run-paths are allowed"
  49795. + ;;
  49796. + esac
  49797. + if test "$prev" = rpath; then
  49798. + case "$rpath " in
  49799. + *" $arg "*) ;;
  49800. + *) rpath="$rpath $arg" ;;
  49801. + esac
  49802. + else
  49803. + case "$xrpath " in
  49804. + *" $arg "*) ;;
  49805. + *) xrpath="$xrpath $arg" ;;
  49806. + esac
  49807. + fi
  49808. + prev=
  49809. + continue
  49810. + ;;
  49811. + shrext)
  49812. + shrext_cmds="$arg"
  49813. + prev=
  49814. + continue
  49815. + ;;
  49816. + weak)
  49817. + weak_libs="$weak_libs $arg"
  49818. + prev=
  49819. + continue
  49820. + ;;
  49821. + xcclinker)
  49822. + linker_flags="$linker_flags $qarg"
  49823. + compiler_flags="$compiler_flags $qarg"
  49824. + prev=
  49825. + func_append compile_command " $qarg"
  49826. + func_append finalize_command " $qarg"
  49827. + continue
  49828. + ;;
  49829. + xcompiler)
  49830. + compiler_flags="$compiler_flags $qarg"
  49831. + prev=
  49832. + func_append compile_command " $qarg"
  49833. + func_append finalize_command " $qarg"
  49834. + continue
  49835. + ;;
  49836. + xlinker)
  49837. + linker_flags="$linker_flags $qarg"
  49838. + compiler_flags="$compiler_flags $wl$qarg"
  49839. + prev=
  49840. + func_append compile_command " $wl$qarg"
  49841. + func_append finalize_command " $wl$qarg"
  49842. + continue
  49843. + ;;
  49844. + *)
  49845. + eval "$prev=\"\$arg\""
  49846. + prev=
  49847. + continue
  49848. + ;;
  49849. esac
  49850. - case $host in
  49851. - *cygwin* | *mingw* )
  49852. - output_name=`basename $output`
  49853. - output_path=`dirname $output`
  49854. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  49855. - cwrapper="$output_path/$output_name.exe"
  49856. - $rm $cwrappersource $cwrapper
  49857. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  49858. -
  49859. - cat > $cwrappersource <<EOF
  49860. -
  49861. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  49862. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  49863. + fi # test -n "$prev"
  49864. - The $output program cannot be directly executed until all the libtool
  49865. - libraries that it depends on are installed.
  49866. + prevarg="$arg"
  49867. - This wrapper executable should never be moved out of the build directory.
  49868. - If it is, it will not operate correctly.
  49869. + case $arg in
  49870. + -all-static)
  49871. + if test -n "$link_static_flag"; then
  49872. + # See comment for -static flag below, for more details.
  49873. + func_append compile_command " $link_static_flag"
  49874. + func_append finalize_command " $link_static_flag"
  49875. + fi
  49876. + continue
  49877. + ;;
  49878. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  49879. - but could eventually absorb all of the scripts functionality and
  49880. - exec $objdir/$outputname directly.
  49881. -*/
  49882. -EOF
  49883. - cat >> $cwrappersource<<"EOF"
  49884. -#include <stdio.h>
  49885. -#include <stdlib.h>
  49886. -#include <unistd.h>
  49887. -#include <malloc.h>
  49888. -#include <stdarg.h>
  49889. -#include <assert.h>
  49890. -#include <string.h>
  49891. -#include <ctype.h>
  49892. -#include <sys/stat.h>
  49893. + -allow-undefined)
  49894. + # FIXME: remove this flag sometime in the future.
  49895. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  49896. + ;;
  49897. -#if defined(PATH_MAX)
  49898. -# define LT_PATHMAX PATH_MAX
  49899. -#elif defined(MAXPATHLEN)
  49900. -# define LT_PATHMAX MAXPATHLEN
  49901. -#else
  49902. -# define LT_PATHMAX 1024
  49903. -#endif
  49904. + -avoid-version)
  49905. + avoid_version=yes
  49906. + continue
  49907. + ;;
  49908. -#ifndef DIR_SEPARATOR
  49909. -# define DIR_SEPARATOR '/'
  49910. -# define PATH_SEPARATOR ':'
  49911. -#endif
  49912. + -dlopen)
  49913. + prev=dlfiles
  49914. + continue
  49915. + ;;
  49916. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  49917. - defined (__OS2__)
  49918. -# define HAVE_DOS_BASED_FILE_SYSTEM
  49919. -# ifndef DIR_SEPARATOR_2
  49920. -# define DIR_SEPARATOR_2 '\\'
  49921. -# endif
  49922. -# ifndef PATH_SEPARATOR_2
  49923. -# define PATH_SEPARATOR_2 ';'
  49924. -# endif
  49925. -#endif
  49926. + -dlpreopen)
  49927. + prev=dlprefiles
  49928. + continue
  49929. + ;;
  49930. -#ifndef DIR_SEPARATOR_2
  49931. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  49932. -#else /* DIR_SEPARATOR_2 */
  49933. -# define IS_DIR_SEPARATOR(ch) \
  49934. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  49935. -#endif /* DIR_SEPARATOR_2 */
  49936. + -export-dynamic)
  49937. + export_dynamic=yes
  49938. + continue
  49939. + ;;
  49940. -#ifndef PATH_SEPARATOR_2
  49941. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  49942. -#else /* PATH_SEPARATOR_2 */
  49943. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  49944. -#endif /* PATH_SEPARATOR_2 */
  49945. + -export-symbols | -export-symbols-regex)
  49946. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  49947. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  49948. + fi
  49949. + if test "X$arg" = "X-export-symbols"; then
  49950. + prev=expsyms
  49951. + else
  49952. + prev=expsyms_regex
  49953. + fi
  49954. + continue
  49955. + ;;
  49956. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  49957. -#define XFREE(stale) do { \
  49958. - if (stale) { free ((void *) stale); stale = 0; } \
  49959. -} while (0)
  49960. + -framework)
  49961. + prev=framework
  49962. + continue
  49963. + ;;
  49964. -/* -DDEBUG is fairly common in CFLAGS. */
  49965. -#undef DEBUG
  49966. -#if defined DEBUGWRAPPER
  49967. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  49968. -#else
  49969. -# define DEBUG(format, ...)
  49970. -#endif
  49971. + -inst-prefix-dir)
  49972. + prev=inst_prefix
  49973. + continue
  49974. + ;;
  49975. -const char *program_name = NULL;
  49976. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  49977. + # so, if we see these flags be careful not to treat them like -L
  49978. + -L[A-Z][A-Z]*:*)
  49979. + case $with_gcc/$host in
  49980. + no/*-*-irix* | /*-*-irix*)
  49981. + func_append compile_command " $arg"
  49982. + func_append finalize_command " $arg"
  49983. + ;;
  49984. + esac
  49985. + continue
  49986. + ;;
  49987. -void * xmalloc (size_t num);
  49988. -char * xstrdup (const char *string);
  49989. -const char * base_name (const char *name);
  49990. -char * find_executable(const char *wrapper);
  49991. -int check_executable(const char *path);
  49992. -char * strendzap(char *str, const char *pat);
  49993. -void lt_fatal (const char *message, ...);
  49994. + -L*)
  49995. + func_stripname '-L' '' "$arg"
  49996. + dir=$func_stripname_result
  49997. + if test -z "$dir"; then
  49998. + if test "$#" -gt 0; then
  49999. + func_fatal_error "require no space between \`-L' and \`$1'"
  50000. + else
  50001. + func_fatal_error "need path for \`-L' option"
  50002. + fi
  50003. + fi
  50004. + # We need an absolute path.
  50005. + case $dir in
  50006. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  50007. + *)
  50008. + absdir=`cd "$dir" && pwd`
  50009. + test -z "$absdir" && \
  50010. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  50011. + dir="$absdir"
  50012. + ;;
  50013. + esac
  50014. + case "$deplibs " in
  50015. + *" -L$dir "*) ;;
  50016. + *)
  50017. + deplibs="$deplibs -L$dir"
  50018. + lib_search_path="$lib_search_path $dir"
  50019. + ;;
  50020. + esac
  50021. + case $host in
  50022. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  50023. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  50024. + case :$dllsearchpath: in
  50025. + *":$dir:"*) ;;
  50026. + ::) dllsearchpath=$dir;;
  50027. + *) dllsearchpath="$dllsearchpath:$dir";;
  50028. + esac
  50029. + case :$dllsearchpath: in
  50030. + *":$testbindir:"*) ;;
  50031. + ::) dllsearchpath=$testbindir;;
  50032. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  50033. + esac
  50034. + ;;
  50035. + esac
  50036. + continue
  50037. + ;;
  50038. -int
  50039. -main (int argc, char *argv[])
  50040. -{
  50041. - char **newargz;
  50042. - int i;
  50043. + -l*)
  50044. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  50045. + case $host in
  50046. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  50047. + # These systems don't actually have a C or math library (as such)
  50048. + continue
  50049. + ;;
  50050. + *-*-os2*)
  50051. + # These systems don't actually have a C library (as such)
  50052. + test "X$arg" = "X-lc" && continue
  50053. + ;;
  50054. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  50055. + # Do not include libc due to us having libc/libc_r.
  50056. + test "X$arg" = "X-lc" && continue
  50057. + ;;
  50058. + *-*-rhapsody* | *-*-darwin1.[012])
  50059. + # Rhapsody C and math libraries are in the System framework
  50060. + deplibs="$deplibs System.ltframework"
  50061. + continue
  50062. + ;;
  50063. + *-*-sco3.2v5* | *-*-sco5v6*)
  50064. + # Causes problems with __ctype
  50065. + test "X$arg" = "X-lc" && continue
  50066. + ;;
  50067. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  50068. + # Compiler inserts libc in the correct place for threads to work
  50069. + test "X$arg" = "X-lc" && continue
  50070. + ;;
  50071. + esac
  50072. + elif test "X$arg" = "X-lc_r"; then
  50073. + case $host in
  50074. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  50075. + # Do not include libc_r directly, use -pthread flag.
  50076. + continue
  50077. + ;;
  50078. + esac
  50079. + fi
  50080. + deplibs="$deplibs $arg"
  50081. + continue
  50082. + ;;
  50083. - program_name = (char *) xstrdup (base_name (argv[0]));
  50084. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  50085. - DEBUG("(main) program_name : %s\n",program_name);
  50086. - newargz = XMALLOC(char *, argc+2);
  50087. -EOF
  50088. + -module)
  50089. + module=yes
  50090. + continue
  50091. + ;;
  50092. - cat >> $cwrappersource <<EOF
  50093. - newargz[0] = (char *) xstrdup("$SHELL");
  50094. -EOF
  50095. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  50096. + # classes, name mangling, and exception handling.
  50097. + # Darwin uses the -arch flag to determine output architecture.
  50098. + -model|-arch|-isysroot)
  50099. + compiler_flags="$compiler_flags $arg"
  50100. + func_append compile_command " $arg"
  50101. + func_append finalize_command " $arg"
  50102. + prev=xcompiler
  50103. + continue
  50104. + ;;
  50105. - cat >> $cwrappersource <<"EOF"
  50106. - newargz[1] = find_executable(argv[0]);
  50107. - if (newargz[1] == NULL)
  50108. - lt_fatal("Couldn't find %s", argv[0]);
  50109. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  50110. - /* we know the script has the same name, without the .exe */
  50111. - /* so make sure newargz[1] doesn't end in .exe */
  50112. - strendzap(newargz[1],".exe");
  50113. - for (i = 1; i < argc; i++)
  50114. - newargz[i+1] = xstrdup(argv[i]);
  50115. - newargz[argc+1] = NULL;
  50116. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  50117. + compiler_flags="$compiler_flags $arg"
  50118. + func_append compile_command " $arg"
  50119. + func_append finalize_command " $arg"
  50120. + case "$new_inherited_linker_flags " in
  50121. + *" $arg "*) ;;
  50122. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  50123. + esac
  50124. + continue
  50125. + ;;
  50126. - for (i=0; i<argc+1; i++)
  50127. - {
  50128. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  50129. - ;
  50130. - }
  50131. + -multi_module)
  50132. + single_module="${wl}-multi_module"
  50133. + continue
  50134. + ;;
  50135. -EOF
  50136. + -no-fast-install)
  50137. + fast_install=no
  50138. + continue
  50139. + ;;
  50140. - case $host_os in
  50141. - mingw*)
  50142. - cat >> $cwrappersource <<EOF
  50143. - execv("$SHELL",(char const **)newargz);
  50144. -EOF
  50145. - ;;
  50146. - *)
  50147. - cat >> $cwrappersource <<EOF
  50148. - execv("$SHELL",newargz);
  50149. -EOF
  50150. - ;;
  50151. - esac
  50152. + -no-install)
  50153. + case $host in
  50154. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  50155. + # The PATH hackery in wrapper scripts is required on Windows
  50156. + # and Darwin in order for the loader to find any dlls it needs.
  50157. + func_warning "\`-no-install' is ignored for $host"
  50158. + func_warning "assuming \`-no-fast-install' instead"
  50159. + fast_install=no
  50160. + ;;
  50161. + *) no_install=yes ;;
  50162. + esac
  50163. + continue
  50164. + ;;
  50165. - cat >> $cwrappersource <<"EOF"
  50166. - return 127;
  50167. -}
  50168. + -no-undefined)
  50169. + allow_undefined=no
  50170. + continue
  50171. + ;;
  50172. -void *
  50173. -xmalloc (size_t num)
  50174. -{
  50175. - void * p = (void *) malloc (num);
  50176. - if (!p)
  50177. - lt_fatal ("Memory exhausted");
  50178. + -objectlist)
  50179. + prev=objectlist
  50180. + continue
  50181. + ;;
  50182. - return p;
  50183. -}
  50184. + -o) prev=output ;;
  50185. -char *
  50186. -xstrdup (const char *string)
  50187. -{
  50188. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  50189. -;
  50190. -}
  50191. + -precious-files-regex)
  50192. + prev=precious_regex
  50193. + continue
  50194. + ;;
  50195. -const char *
  50196. -base_name (const char *name)
  50197. -{
  50198. - const char *base;
  50199. + -release)
  50200. + prev=release
  50201. + continue
  50202. + ;;
  50203. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  50204. - /* Skip over the disk name in MSDOS pathnames. */
  50205. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  50206. - name += 2;
  50207. -#endif
  50208. + -rpath)
  50209. + prev=rpath
  50210. + continue
  50211. + ;;
  50212. - for (base = name; *name; name++)
  50213. - if (IS_DIR_SEPARATOR (*name))
  50214. - base = name + 1;
  50215. - return base;
  50216. -}
  50217. + -R)
  50218. + prev=xrpath
  50219. + continue
  50220. + ;;
  50221. -int
  50222. -check_executable(const char * path)
  50223. -{
  50224. - struct stat st;
  50225. + -R*)
  50226. + func_stripname '-R' '' "$arg"
  50227. + dir=$func_stripname_result
  50228. + # We need an absolute path.
  50229. + case $dir in
  50230. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  50231. + *)
  50232. + func_fatal_error "only absolute run-paths are allowed"
  50233. + ;;
  50234. + esac
  50235. + case "$xrpath " in
  50236. + *" $dir "*) ;;
  50237. + *) xrpath="$xrpath $dir" ;;
  50238. + esac
  50239. + continue
  50240. + ;;
  50241. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  50242. - if ((!path) || (!*path))
  50243. - return 0;
  50244. + -shared)
  50245. + # The effects of -shared are defined in a previous loop.
  50246. + continue
  50247. + ;;
  50248. - if ((stat (path, &st) >= 0) &&
  50249. - (
  50250. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  50251. -#if defined (S_IXOTH)
  50252. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  50253. -#endif
  50254. -#if defined (S_IXGRP)
  50255. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  50256. -#endif
  50257. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  50258. - )
  50259. - return 1;
  50260. - else
  50261. - return 0;
  50262. -}
  50263. + -shrext)
  50264. + prev=shrext
  50265. + continue
  50266. + ;;
  50267. -/* Searches for the full path of the wrapper. Returns
  50268. - newly allocated full path name if found, NULL otherwise */
  50269. -char *
  50270. -find_executable (const char* wrapper)
  50271. -{
  50272. - int has_slash = 0;
  50273. - const char* p;
  50274. - const char* p_next;
  50275. - /* static buffer for getcwd */
  50276. - char tmp[LT_PATHMAX + 1];
  50277. - int tmp_len;
  50278. - char* concat_name;
  50279. + -static | -static-libtool-libs)
  50280. + # The effects of -static are defined in a previous loop.
  50281. + # We used to do the same as -all-static on platforms that
  50282. + # didn't have a PIC flag, but the assumption that the effects
  50283. + # would be equivalent was wrong. It would break on at least
  50284. + # Digital Unix and AIX.
  50285. + continue
  50286. + ;;
  50287. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  50288. + -thread-safe)
  50289. + thread_safe=yes
  50290. + continue
  50291. + ;;
  50292. - if ((wrapper == NULL) || (*wrapper == '\0'))
  50293. - return NULL;
  50294. + -version-info)
  50295. + prev=vinfo
  50296. + continue
  50297. + ;;
  50298. - /* Absolute path? */
  50299. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  50300. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  50301. - {
  50302. - concat_name = xstrdup (wrapper);
  50303. - if (check_executable(concat_name))
  50304. - return concat_name;
  50305. - XFREE(concat_name);
  50306. - }
  50307. - else
  50308. - {
  50309. -#endif
  50310. - if (IS_DIR_SEPARATOR (wrapper[0]))
  50311. - {
  50312. - concat_name = xstrdup (wrapper);
  50313. - if (check_executable(concat_name))
  50314. - return concat_name;
  50315. - XFREE(concat_name);
  50316. - }
  50317. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  50318. - }
  50319. -#endif
  50320. + -version-number)
  50321. + prev=vinfo
  50322. + vinfo_number=yes
  50323. + continue
  50324. + ;;
  50325. - for (p = wrapper; *p; p++)
  50326. - if (*p == '/')
  50327. - {
  50328. - has_slash = 1;
  50329. - break;
  50330. - }
  50331. - if (!has_slash)
  50332. - {
  50333. - /* no slashes; search PATH */
  50334. - const char* path = getenv ("PATH");
  50335. - if (path != NULL)
  50336. - {
  50337. - for (p = path; *p; p = p_next)
  50338. - {
  50339. - const char* q;
  50340. - size_t p_len;
  50341. - for (q = p; *q; q++)
  50342. - if (IS_PATH_SEPARATOR(*q))
  50343. - break;
  50344. - p_len = q - p;
  50345. - p_next = (*q == '\0' ? q : q + 1);
  50346. - if (p_len == 0)
  50347. - {
  50348. - /* empty path: current directory */
  50349. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  50350. - lt_fatal ("getcwd failed");
  50351. - tmp_len = strlen(tmp);
  50352. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  50353. - memcpy (concat_name, tmp, tmp_len);
  50354. - concat_name[tmp_len] = '/';
  50355. - strcpy (concat_name + tmp_len + 1, wrapper);
  50356. - }
  50357. - else
  50358. - {
  50359. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  50360. - memcpy (concat_name, p, p_len);
  50361. - concat_name[p_len] = '/';
  50362. - strcpy (concat_name + p_len + 1, wrapper);
  50363. - }
  50364. - if (check_executable(concat_name))
  50365. - return concat_name;
  50366. - XFREE(concat_name);
  50367. - }
  50368. - }
  50369. - /* not found in PATH; assume curdir */
  50370. - }
  50371. - /* Relative path | not found in path: prepend cwd */
  50372. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  50373. - lt_fatal ("getcwd failed");
  50374. - tmp_len = strlen(tmp);
  50375. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  50376. - memcpy (concat_name, tmp, tmp_len);
  50377. - concat_name[tmp_len] = '/';
  50378. - strcpy (concat_name + tmp_len + 1, wrapper);
  50379. + -weak)
  50380. + prev=weak
  50381. + continue
  50382. + ;;
  50383. - if (check_executable(concat_name))
  50384. - return concat_name;
  50385. - XFREE(concat_name);
  50386. - return NULL;
  50387. -}
  50388. + -Wc,*)
  50389. + func_stripname '-Wc,' '' "$arg"
  50390. + args=$func_stripname_result
  50391. + arg=
  50392. + save_ifs="$IFS"; IFS=','
  50393. + for flag in $args; do
  50394. + IFS="$save_ifs"
  50395. + func_quote_for_eval "$flag"
  50396. + arg="$arg $wl$func_quote_for_eval_result"
  50397. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  50398. + done
  50399. + IFS="$save_ifs"
  50400. + func_stripname ' ' '' "$arg"
  50401. + arg=$func_stripname_result
  50402. + ;;
  50403. -char *
  50404. -strendzap(char *str, const char *pat)
  50405. -{
  50406. - size_t len, patlen;
  50407. + -Wl,*)
  50408. + func_stripname '-Wl,' '' "$arg"
  50409. + args=$func_stripname_result
  50410. + arg=
  50411. + save_ifs="$IFS"; IFS=','
  50412. + for flag in $args; do
  50413. + IFS="$save_ifs"
  50414. + func_quote_for_eval "$flag"
  50415. + arg="$arg $wl$func_quote_for_eval_result"
  50416. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  50417. + linker_flags="$linker_flags $func_quote_for_eval_result"
  50418. + done
  50419. + IFS="$save_ifs"
  50420. + func_stripname ' ' '' "$arg"
  50421. + arg=$func_stripname_result
  50422. + ;;
  50423. - assert(str != NULL);
  50424. - assert(pat != NULL);
  50425. + -Xcompiler)
  50426. + prev=xcompiler
  50427. + continue
  50428. + ;;
  50429. - len = strlen(str);
  50430. - patlen = strlen(pat);
  50431. + -Xlinker)
  50432. + prev=xlinker
  50433. + continue
  50434. + ;;
  50435. - if (patlen <= len)
  50436. - {
  50437. - str += len - patlen;
  50438. - if (strcmp(str, pat) == 0)
  50439. - *str = '\0';
  50440. - }
  50441. - return str;
  50442. -}
  50443. + -XCClinker)
  50444. + prev=xcclinker
  50445. + continue
  50446. + ;;
  50447. -static void
  50448. -lt_error_core (int exit_status, const char * mode,
  50449. - const char * message, va_list ap)
  50450. -{
  50451. - fprintf (stderr, "%s: %s: ", program_name, mode);
  50452. - vfprintf (stderr, message, ap);
  50453. - fprintf (stderr, ".\n");
  50454. + # -msg_* for osf cc
  50455. + -msg_*)
  50456. + func_quote_for_eval "$arg"
  50457. + arg="$func_quote_for_eval_result"
  50458. + ;;
  50459. - if (exit_status >= 0)
  50460. - exit (exit_status);
  50461. -}
  50462. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  50463. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  50464. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  50465. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  50466. + # -q* pass through compiler args for the IBM compiler
  50467. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  50468. + # compiler args for GCC
  50469. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  50470. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  50471. + # @file GCC response files
  50472. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  50473. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
  50474. + func_quote_for_eval "$arg"
  50475. + arg="$func_quote_for_eval_result"
  50476. + func_append compile_command " $arg"
  50477. + func_append finalize_command " $arg"
  50478. + compiler_flags="$compiler_flags $arg"
  50479. + continue
  50480. + ;;
  50481. -void
  50482. -lt_fatal (const char *message, ...)
  50483. -{
  50484. - va_list ap;
  50485. - va_start (ap, message);
  50486. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  50487. - va_end (ap);
  50488. -}
  50489. -EOF
  50490. - # we should really use a build-platform specific compiler
  50491. - # here, but OTOH, the wrappers (shell script and this C one)
  50492. - # are only useful if you want to execute the "real" binary.
  50493. - # Since the "real" binary is built for $host, then this
  50494. - # wrapper might as well be built for $host, too.
  50495. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  50496. - ;;
  50497. - esac
  50498. - $rm $output
  50499. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  50500. + # Some other compiler flag.
  50501. + -* | +*)
  50502. + func_quote_for_eval "$arg"
  50503. + arg="$func_quote_for_eval_result"
  50504. + ;;
  50505. - $echo > $output "\
  50506. -#! $SHELL
  50507. + *.$objext)
  50508. + # A standard object.
  50509. + objs="$objs $arg"
  50510. + ;;
  50511. -# $output - temporary wrapper script for $objdir/$outputname
  50512. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  50513. -#
  50514. -# The $output program cannot be directly executed until all the libtool
  50515. -# libraries that it depends on are installed.
  50516. -#
  50517. -# This wrapper script should never be moved out of the build directory.
  50518. -# If it is, it will not operate correctly.
  50519. + *.lo)
  50520. + # A libtool-controlled object.
  50521. -# Sed substitution that helps us do robust quoting. It backslashifies
  50522. -# metacharacters that are still active within double-quoted strings.
  50523. -Xsed='${SED} -e 1s/^X//'
  50524. -sed_quote_subst='$sed_quote_subst'
  50525. + # Check to see that this really is a libtool object.
  50526. + if func_lalib_unsafe_p "$arg"; then
  50527. + pic_object=
  50528. + non_pic_object=
  50529. -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
  50530. -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  50531. - emulate sh
  50532. - NULLCMD=:
  50533. - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  50534. - # is contrary to our usage. Disable this feature.
  50535. - alias -g '\${1+\"\$@\"}'='\"\$@\"'
  50536. - setopt NO_GLOB_SUBST
  50537. -else
  50538. - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  50539. -fi
  50540. -BIN_SH=xpg4; export BIN_SH # for Tru64
  50541. -DUALCASE=1; export DUALCASE # for MKS sh
  50542. + # Read the .lo file
  50543. + func_source "$arg"
  50544. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  50545. -# if CDPATH is set.
  50546. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  50547. + if test -z "$pic_object" ||
  50548. + test -z "$non_pic_object" ||
  50549. + test "$pic_object" = none &&
  50550. + test "$non_pic_object" = none; then
  50551. + func_fatal_error "cannot find name of object for \`$arg'"
  50552. + fi
  50553. -relink_command=\"$relink_command\"
  50554. + # Extract subdirectory from the argument.
  50555. + func_dirname "$arg" "/" ""
  50556. + xdir="$func_dirname_result"
  50557. -# This environment variable determines our operation mode.
  50558. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  50559. - # install mode needs the following variable:
  50560. - notinst_deplibs='$notinst_deplibs'
  50561. -else
  50562. - # When we are sourced in execute mode, \$file and \$echo are already set.
  50563. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  50564. - echo=\"$qecho\"
  50565. - file=\"\$0\"
  50566. - # Make sure echo works.
  50567. - if test \"X\$1\" = X--no-reexec; then
  50568. - # Discard the --no-reexec flag, and continue.
  50569. - shift
  50570. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  50571. - # Yippee, \$echo works!
  50572. - :
  50573. - else
  50574. - # Restart under the correct shell, and then maybe \$echo will work.
  50575. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  50576. - fi
  50577. - fi\
  50578. -"
  50579. - $echo >> $output "\
  50580. + if test "$pic_object" != none; then
  50581. + # Prepend the subdirectory the object is found in.
  50582. + pic_object="$xdir$pic_object"
  50583. - # Find the directory that this script lives in.
  50584. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  50585. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  50586. + if test "$prev" = dlfiles; then
  50587. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  50588. + dlfiles="$dlfiles $pic_object"
  50589. + prev=
  50590. + continue
  50591. + else
  50592. + # If libtool objects are unsupported, then we need to preload.
  50593. + prev=dlprefiles
  50594. + fi
  50595. + fi
  50596. - # Follow symbolic links until we get to the real thisdir.
  50597. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  50598. - while test -n \"\$file\"; do
  50599. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  50600. + # CHECK ME: I think I busted this. -Ossama
  50601. + if test "$prev" = dlprefiles; then
  50602. + # Preload the old-style object.
  50603. + dlprefiles="$dlprefiles $pic_object"
  50604. + prev=
  50605. + fi
  50606. - # If there was a directory component, then change thisdir.
  50607. - if test \"x\$destdir\" != \"x\$file\"; then
  50608. - case \"\$destdir\" in
  50609. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  50610. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  50611. - esac
  50612. + # A PIC object.
  50613. + func_append libobjs " $pic_object"
  50614. + arg="$pic_object"
  50615. + fi
  50616. +
  50617. + # Non-PIC object.
  50618. + if test "$non_pic_object" != none; then
  50619. + # Prepend the subdirectory the object is found in.
  50620. + non_pic_object="$xdir$non_pic_object"
  50621. +
  50622. + # A standard non-PIC object
  50623. + func_append non_pic_objects " $non_pic_object"
  50624. + if test -z "$pic_object" || test "$pic_object" = none ; then
  50625. + arg="$non_pic_object"
  50626. + fi
  50627. + else
  50628. + # If the PIC object exists, use it instead.
  50629. + # $xdir was prepended to $pic_object above.
  50630. + non_pic_object="$pic_object"
  50631. + func_append non_pic_objects " $non_pic_object"
  50632. + fi
  50633. + else
  50634. + # Only an error if not doing a dry-run.
  50635. + if $opt_dry_run; then
  50636. + # Extract subdirectory from the argument.
  50637. + func_dirname "$arg" "/" ""
  50638. + xdir="$func_dirname_result"
  50639. +
  50640. + func_lo2o "$arg"
  50641. + pic_object=$xdir$objdir/$func_lo2o_result
  50642. + non_pic_object=$xdir$func_lo2o_result
  50643. + func_append libobjs " $pic_object"
  50644. + func_append non_pic_objects " $non_pic_object"
  50645. + else
  50646. + func_fatal_error "\`$arg' is not a valid libtool object"
  50647. + fi
  50648. + fi
  50649. + ;;
  50650. +
  50651. + *.$libext)
  50652. + # An archive.
  50653. + deplibs="$deplibs $arg"
  50654. + old_deplibs="$old_deplibs $arg"
  50655. + continue
  50656. + ;;
  50657. +
  50658. + *.la)
  50659. + # A libtool-controlled library.
  50660. +
  50661. + if test "$prev" = dlfiles; then
  50662. + # This library was specified with -dlopen.
  50663. + dlfiles="$dlfiles $arg"
  50664. + prev=
  50665. + elif test "$prev" = dlprefiles; then
  50666. + # The library was specified with -dlpreopen.
  50667. + dlprefiles="$dlprefiles $arg"
  50668. + prev=
  50669. + else
  50670. + deplibs="$deplibs $arg"
  50671. + fi
  50672. + continue
  50673. + ;;
  50674. +
  50675. + # Some other compiler argument.
  50676. + *)
  50677. + # Unknown arguments in both finalize_command and compile_command need
  50678. + # to be aesthetically quoted because they are evaled later.
  50679. + func_quote_for_eval "$arg"
  50680. + arg="$func_quote_for_eval_result"
  50681. + ;;
  50682. + esac # arg
  50683. +
  50684. + # Now actually substitute the argument into the commands.
  50685. + if test -n "$arg"; then
  50686. + func_append compile_command " $arg"
  50687. + func_append finalize_command " $arg"
  50688. + fi
  50689. + done # argument parsing loop
  50690. +
  50691. + test -n "$prev" && \
  50692. + func_fatal_help "the \`$prevarg' option requires an argument"
  50693. +
  50694. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  50695. + eval arg=\"$export_dynamic_flag_spec\"
  50696. + func_append compile_command " $arg"
  50697. + func_append finalize_command " $arg"
  50698. fi
  50699. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  50700. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  50701. - done
  50702. + oldlibs=
  50703. + # calculate the name of the file, without its directory
  50704. + func_basename "$output"
  50705. + outputname="$func_basename_result"
  50706. + libobjs_save="$libobjs"
  50707. +
  50708. + if test -n "$shlibpath_var"; then
  50709. + # get the directories listed in $shlibpath_var
  50710. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  50711. + else
  50712. + shlib_search_path=
  50713. + fi
  50714. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  50715. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  50716. +
  50717. + func_dirname "$output" "/" ""
  50718. + output_objdir="$func_dirname_result$objdir"
  50719. + # Create the object directory.
  50720. + func_mkdir_p "$output_objdir"
  50721. +
  50722. + # Determine the type of output
  50723. + case $output in
  50724. + "")
  50725. + func_fatal_help "you must specify an output file"
  50726. + ;;
  50727. + *.$libext) linkmode=oldlib ;;
  50728. + *.lo | *.$objext) linkmode=obj ;;
  50729. + *.la) linkmode=lib ;;
  50730. + *) linkmode=prog ;; # Anything else should be a program.
  50731. + esac
  50732. +
  50733. + specialdeplibs=
  50734. +
  50735. + libs=
  50736. + # Find all interdependent deplibs by searching for libraries
  50737. + # that are linked more than once (e.g. -la -lb -la)
  50738. + for deplib in $deplibs; do
  50739. + if $opt_duplicate_deps ; then
  50740. + case "$libs " in
  50741. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  50742. + esac
  50743. + fi
  50744. + libs="$libs $deplib"
  50745. + done
  50746. +
  50747. + if test "$linkmode" = lib; then
  50748. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  50749. +
  50750. + # Compute libraries that are listed more than once in $predeps
  50751. + # $postdeps and mark them as special (i.e., whose duplicates are
  50752. + # not to be eliminated).
  50753. + pre_post_deps=
  50754. + if $opt_duplicate_compiler_generated_deps; then
  50755. + for pre_post_dep in $predeps $postdeps; do
  50756. + case "$pre_post_deps " in
  50757. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  50758. + esac
  50759. + pre_post_deps="$pre_post_deps $pre_post_dep"
  50760. + done
  50761. + fi
  50762. + pre_post_deps=
  50763. + fi
  50764. +
  50765. + deplibs=
  50766. + newdependency_libs=
  50767. + newlib_search_path=
  50768. + need_relink=no # whether we're linking any uninstalled libtool libraries
  50769. + notinst_deplibs= # not-installed libtool libraries
  50770. + notinst_path= # paths that contain not-installed libtool libraries
  50771. +
  50772. + case $linkmode in
  50773. + lib)
  50774. + passes="conv dlpreopen link"
  50775. + for file in $dlfiles $dlprefiles; do
  50776. + case $file in
  50777. + *.la) ;;
  50778. + *)
  50779. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  50780. + ;;
  50781. + esac
  50782. + done
  50783. + ;;
  50784. + prog)
  50785. + compile_deplibs=
  50786. + finalize_deplibs=
  50787. + alldeplibs=no
  50788. + newdlfiles=
  50789. + newdlprefiles=
  50790. + passes="conv scan dlopen dlpreopen link"
  50791. + ;;
  50792. + *) passes="conv"
  50793. + ;;
  50794. + esac
  50795. +
  50796. + for pass in $passes; do
  50797. + # The preopen pass in lib mode reverses $deplibs; put it back here
  50798. + # so that -L comes before libs that need it for instance...
  50799. + if test "$linkmode,$pass" = "lib,link"; then
  50800. + ## FIXME: Find the place where the list is rebuilt in the wrong
  50801. + ## order, and fix it there properly
  50802. + tmp_deplibs=
  50803. + for deplib in $deplibs; do
  50804. + tmp_deplibs="$deplib $tmp_deplibs"
  50805. + done
  50806. + deplibs="$tmp_deplibs"
  50807. + fi
  50808. +
  50809. + if test "$linkmode,$pass" = "lib,link" ||
  50810. + test "$linkmode,$pass" = "prog,scan"; then
  50811. + libs="$deplibs"
  50812. + deplibs=
  50813. + fi
  50814. + if test "$linkmode" = prog; then
  50815. + case $pass in
  50816. + dlopen) libs="$dlfiles" ;;
  50817. + dlpreopen) libs="$dlprefiles" ;;
  50818. + link)
  50819. + libs="$deplibs %DEPLIBS%"
  50820. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  50821. + ;;
  50822. + esac
  50823. + fi
  50824. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  50825. + # Collect and forward deplibs of preopened libtool libs
  50826. + for lib in $dlprefiles; do
  50827. + # Ignore non-libtool-libs
  50828. + dependency_libs=
  50829. + case $lib in
  50830. + *.la) func_source "$lib" ;;
  50831. + esac
  50832. +
  50833. + # Collect preopened libtool deplibs, except any this library
  50834. + # has declared as weak libs
  50835. + for deplib in $dependency_libs; do
  50836. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  50837. + case " $weak_libs " in
  50838. + *" $deplib_base "*) ;;
  50839. + *) deplibs="$deplibs $deplib" ;;
  50840. + esac
  50841. + done
  50842. + done
  50843. + libs="$dlprefiles"
  50844. + fi
  50845. + if test "$pass" = dlopen; then
  50846. + # Collect dlpreopened libraries
  50847. + save_deplibs="$deplibs"
  50848. + deplibs=
  50849. + fi
  50850. +
  50851. + for deplib in $libs; do
  50852. + lib=
  50853. + found=no
  50854. + case $deplib in
  50855. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  50856. + if test "$linkmode,$pass" = "prog,link"; then
  50857. + compile_deplibs="$deplib $compile_deplibs"
  50858. + finalize_deplibs="$deplib $finalize_deplibs"
  50859. + else
  50860. + compiler_flags="$compiler_flags $deplib"
  50861. + if test "$linkmode" = lib ; then
  50862. + case "$new_inherited_linker_flags " in
  50863. + *" $deplib "*) ;;
  50864. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  50865. + esac
  50866. + fi
  50867. + fi
  50868. + continue
  50869. + ;;
  50870. + -l*)
  50871. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  50872. + func_warning "\`-l' is ignored for archives/objects"
  50873. + continue
  50874. + fi
  50875. + func_stripname '-l' '' "$deplib"
  50876. + name=$func_stripname_result
  50877. + if test "$linkmode" = lib; then
  50878. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  50879. + else
  50880. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  50881. + fi
  50882. + for searchdir in $searchdirs; do
  50883. + for search_ext in .la $std_shrext .so .a; do
  50884. + # Search the libtool library
  50885. + lib="$searchdir/lib${name}${search_ext}"
  50886. + if test -f "$lib"; then
  50887. + if test "$search_ext" = ".la"; then
  50888. + found=yes
  50889. + else
  50890. + found=no
  50891. + fi
  50892. + break 2
  50893. + fi
  50894. + done
  50895. + done
  50896. + if test "$found" != yes; then
  50897. + # deplib doesn't seem to be a libtool library
  50898. + if test "$linkmode,$pass" = "prog,link"; then
  50899. + compile_deplibs="$deplib $compile_deplibs"
  50900. + finalize_deplibs="$deplib $finalize_deplibs"
  50901. + else
  50902. + deplibs="$deplib $deplibs"
  50903. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  50904. + fi
  50905. + continue
  50906. + else # deplib is a libtool library
  50907. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  50908. + # We need to do some special things here, and not later.
  50909. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  50910. + case " $predeps $postdeps " in
  50911. + *" $deplib "*)
  50912. + if func_lalib_p "$lib"; then
  50913. + library_names=
  50914. + old_library=
  50915. + func_source "$lib"
  50916. + for l in $old_library $library_names; do
  50917. + ll="$l"
  50918. + done
  50919. + if test "X$ll" = "X$old_library" ; then # only static version available
  50920. + found=no
  50921. + func_dirname "$lib" "" "."
  50922. + ladir="$func_dirname_result"
  50923. + lib=$ladir/$old_library
  50924. + if test "$linkmode,$pass" = "prog,link"; then
  50925. + compile_deplibs="$deplib $compile_deplibs"
  50926. + finalize_deplibs="$deplib $finalize_deplibs"
  50927. + else
  50928. + deplibs="$deplib $deplibs"
  50929. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  50930. + fi
  50931. + continue
  50932. + fi
  50933. + fi
  50934. + ;;
  50935. + *) ;;
  50936. + esac
  50937. + fi
  50938. + fi
  50939. + ;; # -l
  50940. + *.ltframework)
  50941. + if test "$linkmode,$pass" = "prog,link"; then
  50942. + compile_deplibs="$deplib $compile_deplibs"
  50943. + finalize_deplibs="$deplib $finalize_deplibs"
  50944. + else
  50945. + deplibs="$deplib $deplibs"
  50946. + if test "$linkmode" = lib ; then
  50947. + case "$new_inherited_linker_flags " in
  50948. + *" $deplib "*) ;;
  50949. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  50950. + esac
  50951. + fi
  50952. + fi
  50953. + continue
  50954. + ;;
  50955. + -L*)
  50956. + case $linkmode in
  50957. + lib)
  50958. + deplibs="$deplib $deplibs"
  50959. + test "$pass" = conv && continue
  50960. + newdependency_libs="$deplib $newdependency_libs"
  50961. + func_stripname '-L' '' "$deplib"
  50962. + newlib_search_path="$newlib_search_path $func_stripname_result"
  50963. + ;;
  50964. + prog)
  50965. + if test "$pass" = conv; then
  50966. + deplibs="$deplib $deplibs"
  50967. + continue
  50968. + fi
  50969. + if test "$pass" = scan; then
  50970. + deplibs="$deplib $deplibs"
  50971. + else
  50972. + compile_deplibs="$deplib $compile_deplibs"
  50973. + finalize_deplibs="$deplib $finalize_deplibs"
  50974. + fi
  50975. + func_stripname '-L' '' "$deplib"
  50976. + newlib_search_path="$newlib_search_path $func_stripname_result"
  50977. + ;;
  50978. + *)
  50979. + func_warning "\`-L' is ignored for archives/objects"
  50980. + ;;
  50981. + esac # linkmode
  50982. + continue
  50983. + ;; # -L
  50984. + -R*)
  50985. + if test "$pass" = link; then
  50986. + func_stripname '-R' '' "$deplib"
  50987. + dir=$func_stripname_result
  50988. + # Make sure the xrpath contains only unique directories.
  50989. + case "$xrpath " in
  50990. + *" $dir "*) ;;
  50991. + *) xrpath="$xrpath $dir" ;;
  50992. + esac
  50993. + fi
  50994. + deplibs="$deplib $deplibs"
  50995. + continue
  50996. + ;;
  50997. + *.la) lib="$deplib" ;;
  50998. + *.$libext)
  50999. + if test "$pass" = conv; then
  51000. + deplibs="$deplib $deplibs"
  51001. + continue
  51002. + fi
  51003. + case $linkmode in
  51004. + lib)
  51005. + # Linking convenience modules into shared libraries is allowed,
  51006. + # but linking other static libraries is non-portable.
  51007. + case " $dlpreconveniencelibs " in
  51008. + *" $deplib "*) ;;
  51009. + *)
  51010. + valid_a_lib=no
  51011. + case $deplibs_check_method in
  51012. + match_pattern*)
  51013. + set dummy $deplibs_check_method; shift
  51014. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  51015. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  51016. + | $EGREP "$match_pattern_regex" > /dev/null; then
  51017. + valid_a_lib=yes
  51018. + fi
  51019. + ;;
  51020. + pass_all)
  51021. + valid_a_lib=yes
  51022. + ;;
  51023. + esac
  51024. + if test "$valid_a_lib" != yes; then
  51025. + $ECHO
  51026. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  51027. + $ECHO "*** I have the capability to make that library automatically link in when"
  51028. + $ECHO "*** you link to this library. But I can only do this if you have a"
  51029. + $ECHO "*** shared version of the library, which you do not appear to have"
  51030. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  51031. + $ECHO "*** that it is just a static archive that I should not use here."
  51032. + else
  51033. + $ECHO
  51034. + $ECHO "*** Warning: Linking the shared library $output against the"
  51035. + $ECHO "*** static library $deplib is not portable!"
  51036. + deplibs="$deplib $deplibs"
  51037. + fi
  51038. + ;;
  51039. + esac
  51040. + continue
  51041. + ;;
  51042. + prog)
  51043. + if test "$pass" != link; then
  51044. + deplibs="$deplib $deplibs"
  51045. + else
  51046. + compile_deplibs="$deplib $compile_deplibs"
  51047. + finalize_deplibs="$deplib $finalize_deplibs"
  51048. + fi
  51049. + continue
  51050. + ;;
  51051. + esac # linkmode
  51052. + ;; # *.$libext
  51053. + *.lo | *.$objext)
  51054. + if test "$pass" = conv; then
  51055. + deplibs="$deplib $deplibs"
  51056. + elif test "$linkmode" = prog; then
  51057. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  51058. + # If there is no dlopen support or we're linking statically,
  51059. + # we need to preload.
  51060. + newdlprefiles="$newdlprefiles $deplib"
  51061. + compile_deplibs="$deplib $compile_deplibs"
  51062. + finalize_deplibs="$deplib $finalize_deplibs"
  51063. + else
  51064. + newdlfiles="$newdlfiles $deplib"
  51065. + fi
  51066. + fi
  51067. + continue
  51068. + ;;
  51069. + %DEPLIBS%)
  51070. + alldeplibs=yes
  51071. + continue
  51072. + ;;
  51073. + esac # case $deplib
  51074. +
  51075. + if test "$found" = yes || test -f "$lib"; then :
  51076. + else
  51077. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  51078. + fi
  51079. +
  51080. + # Check to see that this really is a libtool archive.
  51081. + func_lalib_unsafe_p "$lib" \
  51082. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  51083. +
  51084. + func_dirname "$lib" "" "."
  51085. + ladir="$func_dirname_result"
  51086. +
  51087. + dlname=
  51088. + dlopen=
  51089. + dlpreopen=
  51090. + libdir=
  51091. + library_names=
  51092. + old_library=
  51093. + inherited_linker_flags=
  51094. + # If the library was installed with an old release of libtool,
  51095. + # it will not redefine variables installed, or shouldnotlink
  51096. + installed=yes
  51097. + shouldnotlink=no
  51098. + avoidtemprpath=
  51099. +
  51100. +
  51101. + # Read the .la file
  51102. + func_source "$lib"
  51103. +
  51104. + # Convert "-framework foo" to "foo.ltframework"
  51105. + if test -n "$inherited_linker_flags"; then
  51106. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  51107. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  51108. + case " $new_inherited_linker_flags " in
  51109. + *" $tmp_inherited_linker_flag "*) ;;
  51110. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  51111. + esac
  51112. + done
  51113. + fi
  51114. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  51115. + if test "$linkmode,$pass" = "lib,link" ||
  51116. + test "$linkmode,$pass" = "prog,scan" ||
  51117. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  51118. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  51119. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  51120. + fi
  51121. +
  51122. + if test "$pass" = conv; then
  51123. + # Only check for convenience libraries
  51124. + deplibs="$lib $deplibs"
  51125. + if test -z "$libdir"; then
  51126. + if test -z "$old_library"; then
  51127. + func_fatal_error "cannot find name of link library for \`$lib'"
  51128. + fi
  51129. + # It is a libtool convenience library, so add in its objects.
  51130. + convenience="$convenience $ladir/$objdir/$old_library"
  51131. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  51132. + tmp_libs=
  51133. + for deplib in $dependency_libs; do
  51134. + deplibs="$deplib $deplibs"
  51135. + if $opt_duplicate_deps ; then
  51136. + case "$tmp_libs " in
  51137. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  51138. + esac
  51139. + fi
  51140. + tmp_libs="$tmp_libs $deplib"
  51141. + done
  51142. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  51143. + func_fatal_error "\`$lib' is not a convenience library"
  51144. + fi
  51145. + continue
  51146. + fi # $pass = conv
  51147. +
  51148. +
  51149. + # Get the name of the library we link against.
  51150. + linklib=
  51151. + for l in $old_library $library_names; do
  51152. + linklib="$l"
  51153. + done
  51154. + if test -z "$linklib"; then
  51155. + func_fatal_error "cannot find name of link library for \`$lib'"
  51156. + fi
  51157. +
  51158. + # This library was specified with -dlopen.
  51159. + if test "$pass" = dlopen; then
  51160. + if test -z "$libdir"; then
  51161. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  51162. + fi
  51163. + if test -z "$dlname" ||
  51164. + test "$dlopen_support" != yes ||
  51165. + test "$build_libtool_libs" = no; then
  51166. + # If there is no dlname, no dlopen support or we're linking
  51167. + # statically, we need to preload. We also need to preload any
  51168. + # dependent libraries so libltdl's deplib preloader doesn't
  51169. + # bomb out in the load deplibs phase.
  51170. + dlprefiles="$dlprefiles $lib $dependency_libs"
  51171. + else
  51172. + newdlfiles="$newdlfiles $lib"
  51173. + fi
  51174. + continue
  51175. + fi # $pass = dlopen
  51176. +
  51177. + # We need an absolute path.
  51178. + case $ladir in
  51179. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  51180. + *)
  51181. + abs_ladir=`cd "$ladir" && pwd`
  51182. + if test -z "$abs_ladir"; then
  51183. + func_warning "cannot determine absolute directory name of \`$ladir'"
  51184. + func_warning "passing it literally to the linker, although it might fail"
  51185. + abs_ladir="$ladir"
  51186. + fi
  51187. + ;;
  51188. + esac
  51189. + func_basename "$lib"
  51190. + laname="$func_basename_result"
  51191. +
  51192. + # Find the relevant object directory and library name.
  51193. + if test "X$installed" = Xyes; then
  51194. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  51195. + func_warning "library \`$lib' was moved."
  51196. + dir="$ladir"
  51197. + absdir="$abs_ladir"
  51198. + libdir="$abs_ladir"
  51199. + else
  51200. + dir="$libdir"
  51201. + absdir="$libdir"
  51202. + fi
  51203. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  51204. + else
  51205. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  51206. + dir="$ladir"
  51207. + absdir="$abs_ladir"
  51208. + # Remove this search path later
  51209. + notinst_path="$notinst_path $abs_ladir"
  51210. + else
  51211. + dir="$ladir/$objdir"
  51212. + absdir="$abs_ladir/$objdir"
  51213. + # Remove this search path later
  51214. + notinst_path="$notinst_path $abs_ladir"
  51215. + fi
  51216. + fi # $installed = yes
  51217. + func_stripname 'lib' '.la' "$laname"
  51218. + name=$func_stripname_result
  51219. +
  51220. + # This library was specified with -dlpreopen.
  51221. + if test "$pass" = dlpreopen; then
  51222. + if test -z "$libdir" && test "$linkmode" = prog; then
  51223. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  51224. + fi
  51225. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  51226. + # are required to link).
  51227. + if test -n "$old_library"; then
  51228. + newdlprefiles="$newdlprefiles $dir/$old_library"
  51229. + # Keep a list of preopened convenience libraries to check
  51230. + # that they are being used correctly in the link pass.
  51231. + test -z "$libdir" && \
  51232. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  51233. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  51234. + elif test -n "$dlname"; then
  51235. + newdlprefiles="$newdlprefiles $dir/$dlname"
  51236. + else
  51237. + newdlprefiles="$newdlprefiles $dir/$linklib"
  51238. + fi
  51239. + fi # $pass = dlpreopen
  51240. +
  51241. + if test -z "$libdir"; then
  51242. + # Link the convenience library
  51243. + if test "$linkmode" = lib; then
  51244. + deplibs="$dir/$old_library $deplibs"
  51245. + elif test "$linkmode,$pass" = "prog,link"; then
  51246. + compile_deplibs="$dir/$old_library $compile_deplibs"
  51247. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  51248. + else
  51249. + deplibs="$lib $deplibs" # used for prog,scan pass
  51250. + fi
  51251. + continue
  51252. + fi
  51253. +
  51254. +
  51255. + if test "$linkmode" = prog && test "$pass" != link; then
  51256. + newlib_search_path="$newlib_search_path $ladir"
  51257. + deplibs="$lib $deplibs"
  51258. +
  51259. + linkalldeplibs=no
  51260. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  51261. + test "$build_libtool_libs" = no; then
  51262. + linkalldeplibs=yes
  51263. + fi
  51264. +
  51265. + tmp_libs=
  51266. + for deplib in $dependency_libs; do
  51267. + case $deplib in
  51268. + -L*) func_stripname '-L' '' "$deplib"
  51269. + newlib_search_path="$newlib_search_path $func_stripname_result"
  51270. + ;;
  51271. + esac
  51272. + # Need to link against all dependency_libs?
  51273. + if test "$linkalldeplibs" = yes; then
  51274. + deplibs="$deplib $deplibs"
  51275. + else
  51276. + # Need to hardcode shared library paths
  51277. + # or/and link against static libraries
  51278. + newdependency_libs="$deplib $newdependency_libs"
  51279. + fi
  51280. + if $opt_duplicate_deps ; then
  51281. + case "$tmp_libs " in
  51282. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  51283. + esac
  51284. + fi
  51285. + tmp_libs="$tmp_libs $deplib"
  51286. + done # for deplib
  51287. + continue
  51288. + fi # $linkmode = prog...
  51289. +
  51290. + if test "$linkmode,$pass" = "prog,link"; then
  51291. + if test -n "$library_names" &&
  51292. + { { test "$prefer_static_libs" = no ||
  51293. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  51294. + test -z "$old_library"; }; then
  51295. + # We need to hardcode the library path
  51296. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  51297. + # Make sure the rpath contains only unique directories.
  51298. + case "$temp_rpath:" in
  51299. + *"$absdir:"*) ;;
  51300. + *) temp_rpath="$temp_rpath$absdir:" ;;
  51301. + esac
  51302. + fi
  51303. +
  51304. + # Hardcode the library path.
  51305. + # Skip directories that are in the system default run-time
  51306. + # search path.
  51307. + case " $sys_lib_dlsearch_path " in
  51308. + *" $absdir "*) ;;
  51309. + *)
  51310. + case "$compile_rpath " in
  51311. + *" $absdir "*) ;;
  51312. + *) compile_rpath="$compile_rpath $absdir"
  51313. + esac
  51314. + ;;
  51315. + esac
  51316. + case " $sys_lib_dlsearch_path " in
  51317. + *" $libdir "*) ;;
  51318. + *)
  51319. + case "$finalize_rpath " in
  51320. + *" $libdir "*) ;;
  51321. + *) finalize_rpath="$finalize_rpath $libdir"
  51322. + esac
  51323. + ;;
  51324. + esac
  51325. + fi # $linkmode,$pass = prog,link...
  51326. +
  51327. + if test "$alldeplibs" = yes &&
  51328. + { test "$deplibs_check_method" = pass_all ||
  51329. + { test "$build_libtool_libs" = yes &&
  51330. + test -n "$library_names"; }; }; then
  51331. + # We only need to search for static libraries
  51332. + continue
  51333. + fi
  51334. + fi
  51335. +
  51336. + link_static=no # Whether the deplib will be linked statically
  51337. + use_static_libs=$prefer_static_libs
  51338. + if test "$use_static_libs" = built && test "$installed" = yes; then
  51339. + use_static_libs=no
  51340. + fi
  51341. + if test -n "$library_names" &&
  51342. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  51343. + case $host in
  51344. + *cygwin* | *mingw* | *cegcc*)
  51345. + # No point in relinking DLLs because paths are not encoded
  51346. + notinst_deplibs="$notinst_deplibs $lib"
  51347. + need_relink=no
  51348. + ;;
  51349. + *)
  51350. + if test "$installed" = no; then
  51351. + notinst_deplibs="$notinst_deplibs $lib"
  51352. + need_relink=yes
  51353. + fi
  51354. + ;;
  51355. + esac
  51356. + # This is a shared library
  51357. +
  51358. + # Warn about portability, can't link against -module's on some
  51359. + # systems (darwin). Don't bleat about dlopened modules though!
  51360. + dlopenmodule=""
  51361. + for dlpremoduletest in $dlprefiles; do
  51362. + if test "X$dlpremoduletest" = "X$lib"; then
  51363. + dlopenmodule="$dlpremoduletest"
  51364. + break
  51365. + fi
  51366. + done
  51367. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  51368. + $ECHO
  51369. + if test "$linkmode" = prog; then
  51370. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  51371. + else
  51372. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  51373. + fi
  51374. + $ECHO "*** $linklib is not portable!"
  51375. + fi
  51376. + if test "$linkmode" = lib &&
  51377. + test "$hardcode_into_libs" = yes; then
  51378. + # Hardcode the library path.
  51379. + # Skip directories that are in the system default run-time
  51380. + # search path.
  51381. + case " $sys_lib_dlsearch_path " in
  51382. + *" $absdir "*) ;;
  51383. + *)
  51384. + case "$compile_rpath " in
  51385. + *" $absdir "*) ;;
  51386. + *) compile_rpath="$compile_rpath $absdir"
  51387. + esac
  51388. + ;;
  51389. + esac
  51390. + case " $sys_lib_dlsearch_path " in
  51391. + *" $libdir "*) ;;
  51392. + *)
  51393. + case "$finalize_rpath " in
  51394. + *" $libdir "*) ;;
  51395. + *) finalize_rpath="$finalize_rpath $libdir"
  51396. + esac
  51397. + ;;
  51398. + esac
  51399. + fi
  51400. +
  51401. + if test -n "$old_archive_from_expsyms_cmds"; then
  51402. + # figure out the soname
  51403. + set dummy $library_names
  51404. + shift
  51405. + realname="$1"
  51406. + shift
  51407. + libname=`eval "\\$ECHO \"$libname_spec\""`
  51408. + # use dlname if we got it. it's perfectly good, no?
  51409. + if test -n "$dlname"; then
  51410. + soname="$dlname"
  51411. + elif test -n "$soname_spec"; then
  51412. + # bleh windows
  51413. + case $host in
  51414. + *cygwin* | mingw* | *cegcc*)
  51415. + func_arith $current - $age
  51416. + major=$func_arith_result
  51417. + versuffix="-$major"
  51418. + ;;
  51419. + esac
  51420. + eval soname=\"$soname_spec\"
  51421. + else
  51422. + soname="$realname"
  51423. + fi
  51424. +
  51425. + # Make a new name for the extract_expsyms_cmds to use
  51426. + soroot="$soname"
  51427. + func_basename "$soroot"
  51428. + soname="$func_basename_result"
  51429. + func_stripname 'lib' '.dll' "$soname"
  51430. + newlib=libimp-$func_stripname_result.a
  51431. +
  51432. + # If the library has no export list, then create one now
  51433. + if test -f "$output_objdir/$soname-def"; then :
  51434. + else
  51435. + func_verbose "extracting exported symbol list from \`$soname'"
  51436. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  51437. + fi
  51438. +
  51439. + # Create $newlib
  51440. + if test -f "$output_objdir/$newlib"; then :; else
  51441. + func_verbose "generating import library for \`$soname'"
  51442. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  51443. + fi
  51444. + # make sure the library variables are pointing to the new library
  51445. + dir=$output_objdir
  51446. + linklib=$newlib
  51447. + fi # test -n "$old_archive_from_expsyms_cmds"
  51448. +
  51449. + if test "$linkmode" = prog || test "$mode" != relink; then
  51450. + add_shlibpath=
  51451. + add_dir=
  51452. + add=
  51453. + lib_linked=yes
  51454. + case $hardcode_action in
  51455. + immediate | unsupported)
  51456. + if test "$hardcode_direct" = no; then
  51457. + add="$dir/$linklib"
  51458. + case $host in
  51459. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  51460. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  51461. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  51462. + *-*-unixware7*) add_dir="-L$dir" ;;
  51463. + *-*-darwin* )
  51464. + # if the lib is a (non-dlopened) module then we can not
  51465. + # link against it, someone is ignoring the earlier warnings
  51466. + if /usr/bin/file -L $add 2> /dev/null |
  51467. + $GREP ": [^:]* bundle" >/dev/null ; then
  51468. + if test "X$dlopenmodule" != "X$lib"; then
  51469. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  51470. + if test -z "$old_library" ; then
  51471. + $ECHO
  51472. + $ECHO "*** And there doesn't seem to be a static archive available"
  51473. + $ECHO "*** The link will probably fail, sorry"
  51474. + else
  51475. + add="$dir/$old_library"
  51476. + fi
  51477. + elif test -n "$old_library"; then
  51478. + add="$dir/$old_library"
  51479. + fi
  51480. + fi
  51481. + esac
  51482. + elif test "$hardcode_minus_L" = no; then
  51483. + case $host in
  51484. + *-*-sunos*) add_shlibpath="$dir" ;;
  51485. + esac
  51486. + add_dir="-L$dir"
  51487. + add="-l$name"
  51488. + elif test "$hardcode_shlibpath_var" = no; then
  51489. + add_shlibpath="$dir"
  51490. + add="-l$name"
  51491. + else
  51492. + lib_linked=no
  51493. + fi
  51494. + ;;
  51495. + relink)
  51496. + if test "$hardcode_direct" = yes &&
  51497. + test "$hardcode_direct_absolute" = no; then
  51498. + add="$dir/$linklib"
  51499. + elif test "$hardcode_minus_L" = yes; then
  51500. + add_dir="-L$dir"
  51501. + # Try looking first in the location we're being installed to.
  51502. + if test -n "$inst_prefix_dir"; then
  51503. + case $libdir in
  51504. + [\\/]*)
  51505. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  51506. + ;;
  51507. + esac
  51508. + fi
  51509. + add="-l$name"
  51510. + elif test "$hardcode_shlibpath_var" = yes; then
  51511. + add_shlibpath="$dir"
  51512. + add="-l$name"
  51513. + else
  51514. + lib_linked=no
  51515. + fi
  51516. + ;;
  51517. + *) lib_linked=no ;;
  51518. + esac
  51519. +
  51520. + if test "$lib_linked" != yes; then
  51521. + func_fatal_configuration "unsupported hardcode properties"
  51522. + fi
  51523. +
  51524. + if test -n "$add_shlibpath"; then
  51525. + case :$compile_shlibpath: in
  51526. + *":$add_shlibpath:"*) ;;
  51527. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  51528. + esac
  51529. + fi
  51530. + if test "$linkmode" = prog; then
  51531. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  51532. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  51533. + else
  51534. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  51535. + test -n "$add" && deplibs="$add $deplibs"
  51536. + if test "$hardcode_direct" != yes &&
  51537. + test "$hardcode_minus_L" != yes &&
  51538. + test "$hardcode_shlibpath_var" = yes; then
  51539. + case :$finalize_shlibpath: in
  51540. + *":$libdir:"*) ;;
  51541. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  51542. + esac
  51543. + fi
  51544. + fi
  51545. + fi
  51546. +
  51547. + if test "$linkmode" = prog || test "$mode" = relink; then
  51548. + add_shlibpath=
  51549. + add_dir=
  51550. + add=
  51551. + # Finalize command for both is simple: just hardcode it.
  51552. + if test "$hardcode_direct" = yes &&
  51553. + test "$hardcode_direct_absolute" = no; then
  51554. + add="$libdir/$linklib"
  51555. + elif test "$hardcode_minus_L" = yes; then
  51556. + add_dir="-L$libdir"
  51557. + add="-l$name"
  51558. + elif test "$hardcode_shlibpath_var" = yes; then
  51559. + case :$finalize_shlibpath: in
  51560. + *":$libdir:"*) ;;
  51561. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  51562. + esac
  51563. + add="-l$name"
  51564. + elif test "$hardcode_automatic" = yes; then
  51565. + if test -n "$inst_prefix_dir" &&
  51566. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  51567. + add="$inst_prefix_dir$libdir/$linklib"
  51568. + else
  51569. + add="$libdir/$linklib"
  51570. + fi
  51571. + else
  51572. + # We cannot seem to hardcode it, guess we'll fake it.
  51573. + add_dir="-L$libdir"
  51574. + # Try looking first in the location we're being installed to.
  51575. + if test -n "$inst_prefix_dir"; then
  51576. + case $libdir in
  51577. + [\\/]*)
  51578. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  51579. + ;;
  51580. + esac
  51581. + fi
  51582. + add="-l$name"
  51583. + fi
  51584. +
  51585. + if test "$linkmode" = prog; then
  51586. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  51587. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  51588. + else
  51589. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  51590. + test -n "$add" && deplibs="$add $deplibs"
  51591. + fi
  51592. + fi
  51593. + elif test "$linkmode" = prog; then
  51594. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  51595. + # is not unsupported. This is valid on all known static and
  51596. + # shared platforms.
  51597. + if test "$hardcode_direct" != unsupported; then
  51598. + test -n "$old_library" && linklib="$old_library"
  51599. + compile_deplibs="$dir/$linklib $compile_deplibs"
  51600. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  51601. + else
  51602. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  51603. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  51604. + fi
  51605. + elif test "$build_libtool_libs" = yes; then
  51606. + # Not a shared library
  51607. + if test "$deplibs_check_method" != pass_all; then
  51608. + # We're trying link a shared library against a static one
  51609. + # but the system doesn't support it.
  51610. +
  51611. + # Just print a warning and add the library to dependency_libs so
  51612. + # that the program can be linked against the static library.
  51613. + $ECHO
  51614. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  51615. + $ECHO "*** I have the capability to make that library automatically link in when"
  51616. + $ECHO "*** you link to this library. But I can only do this if you have a"
  51617. + $ECHO "*** shared version of the library, which you do not appear to have."
  51618. + if test "$module" = yes; then
  51619. + $ECHO "*** But as you try to build a module library, libtool will still create "
  51620. + $ECHO "*** a static module, that should work as long as the dlopening application"
  51621. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  51622. + if test -z "$global_symbol_pipe"; then
  51623. + $ECHO
  51624. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  51625. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  51626. + $ECHO "*** not find such a program. So, this module is probably useless."
  51627. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  51628. + fi
  51629. + if test "$build_old_libs" = no; then
  51630. + build_libtool_libs=module
  51631. + build_old_libs=yes
  51632. + else
  51633. + build_libtool_libs=no
  51634. + fi
  51635. + fi
  51636. + else
  51637. + deplibs="$dir/$old_library $deplibs"
  51638. + link_static=yes
  51639. + fi
  51640. + fi # link shared/static library?
  51641. +
  51642. + if test "$linkmode" = lib; then
  51643. + if test -n "$dependency_libs" &&
  51644. + { test "$hardcode_into_libs" != yes ||
  51645. + test "$build_old_libs" = yes ||
  51646. + test "$link_static" = yes; }; then
  51647. + # Extract -R from dependency_libs
  51648. + temp_deplibs=
  51649. + for libdir in $dependency_libs; do
  51650. + case $libdir in
  51651. + -R*) func_stripname '-R' '' "$libdir"
  51652. + temp_xrpath=$func_stripname_result
  51653. + case " $xrpath " in
  51654. + *" $temp_xrpath "*) ;;
  51655. + *) xrpath="$xrpath $temp_xrpath";;
  51656. + esac;;
  51657. + *) temp_deplibs="$temp_deplibs $libdir";;
  51658. + esac
  51659. + done
  51660. + dependency_libs="$temp_deplibs"
  51661. + fi
  51662. +
  51663. + newlib_search_path="$newlib_search_path $absdir"
  51664. + # Link against this library
  51665. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  51666. + # ... and its dependency_libs
  51667. + tmp_libs=
  51668. + for deplib in $dependency_libs; do
  51669. + newdependency_libs="$deplib $newdependency_libs"
  51670. + if $opt_duplicate_deps ; then
  51671. + case "$tmp_libs " in
  51672. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  51673. + esac
  51674. + fi
  51675. + tmp_libs="$tmp_libs $deplib"
  51676. + done
  51677. +
  51678. + if test "$link_all_deplibs" != no; then
  51679. + # Add the search paths of all dependency libraries
  51680. + for deplib in $dependency_libs; do
  51681. + path=
  51682. + case $deplib in
  51683. + -L*) path="$deplib" ;;
  51684. + *.la)
  51685. + func_dirname "$deplib" "" "."
  51686. + dir="$func_dirname_result"
  51687. + # We need an absolute path.
  51688. + case $dir in
  51689. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  51690. + *)
  51691. + absdir=`cd "$dir" && pwd`
  51692. + if test -z "$absdir"; then
  51693. + func_warning "cannot determine absolute directory name of \`$dir'"
  51694. + absdir="$dir"
  51695. + fi
  51696. + ;;
  51697. + esac
  51698. + if $GREP "^installed=no" $deplib > /dev/null; then
  51699. + case $host in
  51700. + *-*-darwin*)
  51701. + depdepl=
  51702. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  51703. + if test -n "$deplibrary_names" ; then
  51704. + for tmp in $deplibrary_names ; do
  51705. + depdepl=$tmp
  51706. + done
  51707. + if test -f "$absdir/$objdir/$depdepl" ; then
  51708. + depdepl="$absdir/$objdir/$depdepl"
  51709. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  51710. + if test -z "$darwin_install_name"; then
  51711. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  51712. + fi
  51713. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  51714. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  51715. + path=
  51716. + fi
  51717. + fi
  51718. + ;;
  51719. + *)
  51720. + path="-L$absdir/$objdir"
  51721. + ;;
  51722. + esac
  51723. + else
  51724. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  51725. + test -z "$libdir" && \
  51726. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  51727. + test "$absdir" != "$libdir" && \
  51728. + func_warning "\`$deplib' seems to be moved"
  51729. +
  51730. + path="-L$absdir"
  51731. + fi
  51732. + ;;
  51733. + esac
  51734. + case " $deplibs " in
  51735. + *" $path "*) ;;
  51736. + *) deplibs="$path $deplibs" ;;
  51737. + esac
  51738. + done
  51739. + fi # link_all_deplibs != no
  51740. + fi # linkmode = lib
  51741. + done # for deplib in $libs
  51742. + if test "$pass" = link; then
  51743. + if test "$linkmode" = "prog"; then
  51744. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  51745. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  51746. + else
  51747. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  51748. + fi
  51749. + fi
  51750. + dependency_libs="$newdependency_libs"
  51751. + if test "$pass" = dlpreopen; then
  51752. + # Link the dlpreopened libraries before other libraries
  51753. + for deplib in $save_deplibs; do
  51754. + deplibs="$deplib $deplibs"
  51755. + done
  51756. + fi
  51757. + if test "$pass" != dlopen; then
  51758. + if test "$pass" != conv; then
  51759. + # Make sure lib_search_path contains only unique directories.
  51760. + lib_search_path=
  51761. + for dir in $newlib_search_path; do
  51762. + case "$lib_search_path " in
  51763. + *" $dir "*) ;;
  51764. + *) lib_search_path="$lib_search_path $dir" ;;
  51765. + esac
  51766. + done
  51767. + newlib_search_path=
  51768. + fi
  51769. +
  51770. + if test "$linkmode,$pass" != "prog,link"; then
  51771. + vars="deplibs"
  51772. + else
  51773. + vars="compile_deplibs finalize_deplibs"
  51774. + fi
  51775. + for var in $vars dependency_libs; do
  51776. + # Add libraries to $var in reverse order
  51777. + eval tmp_libs=\"\$$var\"
  51778. + new_libs=
  51779. + for deplib in $tmp_libs; do
  51780. + # FIXME: Pedantically, this is the right thing to do, so
  51781. + # that some nasty dependency loop isn't accidentally
  51782. + # broken:
  51783. + #new_libs="$deplib $new_libs"
  51784. + # Pragmatically, this seems to cause very few problems in
  51785. + # practice:
  51786. + case $deplib in
  51787. + -L*) new_libs="$deplib $new_libs" ;;
  51788. + -R*) ;;
  51789. + *)
  51790. + # And here is the reason: when a library appears more
  51791. + # than once as an explicit dependence of a library, or
  51792. + # is implicitly linked in more than once by the
  51793. + # compiler, it is considered special, and multiple
  51794. + # occurrences thereof are not removed. Compare this
  51795. + # with having the same library being listed as a
  51796. + # dependency of multiple other libraries: in this case,
  51797. + # we know (pedantically, we assume) the library does not
  51798. + # need to be listed more than once, so we keep only the
  51799. + # last copy. This is not always right, but it is rare
  51800. + # enough that we require users that really mean to play
  51801. + # such unportable linking tricks to link the library
  51802. + # using -Wl,-lname, so that libtool does not consider it
  51803. + # for duplicate removal.
  51804. + case " $specialdeplibs " in
  51805. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  51806. + *)
  51807. + case " $new_libs " in
  51808. + *" $deplib "*) ;;
  51809. + *) new_libs="$deplib $new_libs" ;;
  51810. + esac
  51811. + ;;
  51812. + esac
  51813. + ;;
  51814. + esac
  51815. + done
  51816. + tmp_libs=
  51817. + for deplib in $new_libs; do
  51818. + case $deplib in
  51819. + -L*)
  51820. + case " $tmp_libs " in
  51821. + *" $deplib "*) ;;
  51822. + *) tmp_libs="$tmp_libs $deplib" ;;
  51823. + esac
  51824. + ;;
  51825. + *) tmp_libs="$tmp_libs $deplib" ;;
  51826. + esac
  51827. + done
  51828. + eval $var=\"$tmp_libs\"
  51829. + done # for var
  51830. + fi
  51831. + # Last step: remove runtime libs from dependency_libs
  51832. + # (they stay in deplibs)
  51833. + tmp_libs=
  51834. + for i in $dependency_libs ; do
  51835. + case " $predeps $postdeps $compiler_lib_search_path " in
  51836. + *" $i "*)
  51837. + i=""
  51838. + ;;
  51839. + esac
  51840. + if test -n "$i" ; then
  51841. + tmp_libs="$tmp_libs $i"
  51842. + fi
  51843. + done
  51844. + dependency_libs=$tmp_libs
  51845. + done # for pass
  51846. + if test "$linkmode" = prog; then
  51847. + dlfiles="$newdlfiles"
  51848. + fi
  51849. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  51850. + dlprefiles="$newdlprefiles"
  51851. + fi
  51852. +
  51853. + case $linkmode in
  51854. + oldlib)
  51855. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  51856. + func_warning "\`-dlopen' is ignored for archives"
  51857. + fi
  51858. +
  51859. + case " $deplibs" in
  51860. + *\ -l* | *\ -L*)
  51861. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  51862. + esac
  51863. +
  51864. + test -n "$rpath" && \
  51865. + func_warning "\`-rpath' is ignored for archives"
  51866. +
  51867. + test -n "$xrpath" && \
  51868. + func_warning "\`-R' is ignored for archives"
  51869. +
  51870. + test -n "$vinfo" && \
  51871. + func_warning "\`-version-info/-version-number' is ignored for archives"
  51872. +
  51873. + test -n "$release" && \
  51874. + func_warning "\`-release' is ignored for archives"
  51875. +
  51876. + test -n "$export_symbols$export_symbols_regex" && \
  51877. + func_warning "\`-export-symbols' is ignored for archives"
  51878. +
  51879. + # Now set the variables for building old libraries.
  51880. + build_libtool_libs=no
  51881. + oldlibs="$output"
  51882. + objs="$objs$old_deplibs"
  51883. + ;;
  51884. +
  51885. + lib)
  51886. + # Make sure we only generate libraries of the form `libNAME.la'.
  51887. + case $outputname in
  51888. + lib*)
  51889. + func_stripname 'lib' '.la' "$outputname"
  51890. + name=$func_stripname_result
  51891. + eval shared_ext=\"$shrext_cmds\"
  51892. + eval libname=\"$libname_spec\"
  51893. + ;;
  51894. + *)
  51895. + test "$module" = no && \
  51896. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  51897. +
  51898. + if test "$need_lib_prefix" != no; then
  51899. + # Add the "lib" prefix for modules if required
  51900. + func_stripname '' '.la' "$outputname"
  51901. + name=$func_stripname_result
  51902. + eval shared_ext=\"$shrext_cmds\"
  51903. + eval libname=\"$libname_spec\"
  51904. + else
  51905. + func_stripname '' '.la' "$outputname"
  51906. + libname=$func_stripname_result
  51907. + fi
  51908. + ;;
  51909. + esac
  51910. +
  51911. + if test -n "$objs"; then
  51912. + if test "$deplibs_check_method" != pass_all; then
  51913. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  51914. + else
  51915. + $ECHO
  51916. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  51917. + $ECHO "*** objects $objs is not portable!"
  51918. + libobjs="$libobjs $objs"
  51919. + fi
  51920. + fi
  51921. +
  51922. + test "$dlself" != no && \
  51923. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  51924. +
  51925. + set dummy $rpath
  51926. + shift
  51927. + test "$#" -gt 1 && \
  51928. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  51929. +
  51930. + install_libdir="$1"
  51931. +
  51932. + oldlibs=
  51933. + if test -z "$rpath"; then
  51934. + if test "$build_libtool_libs" = yes; then
  51935. + # Building a libtool convenience library.
  51936. + # Some compilers have problems with a `.al' extension so
  51937. + # convenience libraries should have the same extension an
  51938. + # archive normally would.
  51939. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  51940. + build_libtool_libs=convenience
  51941. + build_old_libs=yes
  51942. + fi
  51943. +
  51944. + test -n "$vinfo" && \
  51945. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  51946. +
  51947. + test -n "$release" && \
  51948. + func_warning "\`-release' is ignored for convenience libraries"
  51949. + else
  51950. +
  51951. + # Parse the version information argument.
  51952. + save_ifs="$IFS"; IFS=':'
  51953. + set dummy $vinfo 0 0 0
  51954. + shift
  51955. + IFS="$save_ifs"
  51956. +
  51957. + test -n "$7" && \
  51958. + func_fatal_help "too many parameters to \`-version-info'"
  51959. +
  51960. + # convert absolute version numbers to libtool ages
  51961. + # this retains compatibility with .la files and attempts
  51962. + # to make the code below a bit more comprehensible
  51963. +
  51964. + case $vinfo_number in
  51965. + yes)
  51966. + number_major="$1"
  51967. + number_minor="$2"
  51968. + number_revision="$3"
  51969. + #
  51970. + # There are really only two kinds -- those that
  51971. + # use the current revision as the major version
  51972. + # and those that subtract age and use age as
  51973. + # a minor version. But, then there is irix
  51974. + # which has an extra 1 added just for fun
  51975. + #
  51976. + case $version_type in
  51977. + darwin|linux|osf|windows|none)
  51978. + func_arith $number_major + $number_minor
  51979. + current=$func_arith_result
  51980. + age="$number_minor"
  51981. + revision="$number_revision"
  51982. + ;;
  51983. + freebsd-aout|freebsd-elf|sunos)
  51984. + current="$number_major"
  51985. + revision="$number_minor"
  51986. + age="0"
  51987. + ;;
  51988. + irix|nonstopux)
  51989. + func_arith $number_major + $number_minor
  51990. + current=$func_arith_result
  51991. + age="$number_minor"
  51992. + revision="$number_minor"
  51993. + lt_irix_increment=no
  51994. + ;;
  51995. + *)
  51996. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  51997. + ;;
  51998. + esac
  51999. + ;;
  52000. + no)
  52001. + current="$1"
  52002. + revision="$2"
  52003. + age="$3"
  52004. + ;;
  52005. + esac
  52006. +
  52007. + # Check that each of the things are valid numbers.
  52008. + case $current in
  52009. + 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]) ;;
  52010. + *)
  52011. + func_error "CURRENT \`$current' must be a nonnegative integer"
  52012. + func_fatal_error "\`$vinfo' is not valid version information"
  52013. + ;;
  52014. + esac
  52015. +
  52016. + case $revision in
  52017. + 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]) ;;
  52018. + *)
  52019. + func_error "REVISION \`$revision' must be a nonnegative integer"
  52020. + func_fatal_error "\`$vinfo' is not valid version information"
  52021. + ;;
  52022. + esac
  52023. +
  52024. + case $age in
  52025. + 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]) ;;
  52026. + *)
  52027. + func_error "AGE \`$age' must be a nonnegative integer"
  52028. + func_fatal_error "\`$vinfo' is not valid version information"
  52029. + ;;
  52030. + esac
  52031. +
  52032. + if test "$age" -gt "$current"; then
  52033. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  52034. + func_fatal_error "\`$vinfo' is not valid version information"
  52035. + fi
  52036. +
  52037. + # Calculate the version variables.
  52038. + major=
  52039. + versuffix=
  52040. + verstring=
  52041. + case $version_type in
  52042. + none) ;;
  52043. +
  52044. + darwin)
  52045. + # Like Linux, but with the current version available in
  52046. + # verstring for coding it into the library header
  52047. + func_arith $current - $age
  52048. + major=.$func_arith_result
  52049. + versuffix="$major.$age.$revision"
  52050. + # Darwin ld doesn't like 0 for these options...
  52051. + func_arith $current + 1
  52052. + minor_current=$func_arith_result
  52053. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  52054. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  52055. + ;;
  52056. +
  52057. + freebsd-aout)
  52058. + major=".$current"
  52059. + versuffix=".$current.$revision";
  52060. + ;;
  52061. +
  52062. + freebsd-elf)
  52063. + major=".$current"
  52064. + versuffix=".$current"
  52065. + ;;
  52066. +
  52067. + irix | nonstopux)
  52068. + if test "X$lt_irix_increment" = "Xno"; then
  52069. + func_arith $current - $age
  52070. + else
  52071. + func_arith $current - $age + 1
  52072. + fi
  52073. + major=$func_arith_result
  52074. +
  52075. + case $version_type in
  52076. + nonstopux) verstring_prefix=nonstopux ;;
  52077. + *) verstring_prefix=sgi ;;
  52078. + esac
  52079. + verstring="$verstring_prefix$major.$revision"
  52080. +
  52081. + # Add in all the interfaces that we are compatible with.
  52082. + loop=$revision
  52083. + while test "$loop" -ne 0; do
  52084. + func_arith $revision - $loop
  52085. + iface=$func_arith_result
  52086. + func_arith $loop - 1
  52087. + loop=$func_arith_result
  52088. + verstring="$verstring_prefix$major.$iface:$verstring"
  52089. + done
  52090. +
  52091. + # Before this point, $major must not contain `.'.
  52092. + major=.$major
  52093. + versuffix="$major.$revision"
  52094. + ;;
  52095. +
  52096. + linux)
  52097. + func_arith $current - $age
  52098. + major=.$func_arith_result
  52099. + versuffix="$major.$age.$revision"
  52100. + ;;
  52101. +
  52102. + osf)
  52103. + func_arith $current - $age
  52104. + major=.$func_arith_result
  52105. + versuffix=".$current.$age.$revision"
  52106. + verstring="$current.$age.$revision"
  52107. +
  52108. + # Add in all the interfaces that we are compatible with.
  52109. + loop=$age
  52110. + while test "$loop" -ne 0; do
  52111. + func_arith $current - $loop
  52112. + iface=$func_arith_result
  52113. + func_arith $loop - 1
  52114. + loop=$func_arith_result
  52115. + verstring="$verstring:${iface}.0"
  52116. + done
  52117. +
  52118. + # Make executables depend on our current version.
  52119. + verstring="$verstring:${current}.0"
  52120. + ;;
  52121. +
  52122. + qnx)
  52123. + major=".$current"
  52124. + versuffix=".$current"
  52125. + ;;
  52126. +
  52127. + sunos)
  52128. + major=".$current"
  52129. + versuffix=".$current.$revision"
  52130. + ;;
  52131. +
  52132. + windows)
  52133. + # Use '-' rather than '.', since we only want one
  52134. + # extension on DOS 8.3 filesystems.
  52135. + func_arith $current - $age
  52136. + major=$func_arith_result
  52137. + versuffix="-$major"
  52138. + ;;
  52139. +
  52140. + *)
  52141. + func_fatal_configuration "unknown library version type \`$version_type'"
  52142. + ;;
  52143. + esac
  52144. +
  52145. + # Clear the version info if we defaulted, and they specified a release.
  52146. + if test -z "$vinfo" && test -n "$release"; then
  52147. + major=
  52148. + case $version_type in
  52149. + darwin)
  52150. + # we can't check for "0.0" in archive_cmds due to quoting
  52151. + # problems, so we reset it completely
  52152. + verstring=
  52153. + ;;
  52154. + *)
  52155. + verstring="0.0"
  52156. + ;;
  52157. + esac
  52158. + if test "$need_version" = no; then
  52159. + versuffix=
  52160. + else
  52161. + versuffix=".0.0"
  52162. + fi
  52163. + fi
  52164. +
  52165. + # Remove version info from name if versioning should be avoided
  52166. + if test "$avoid_version" = yes && test "$need_version" = no; then
  52167. + major=
  52168. + versuffix=
  52169. + verstring=""
  52170. + fi
  52171. +
  52172. + # Check to see if the archive will have undefined symbols.
  52173. + if test "$allow_undefined" = yes; then
  52174. + if test "$allow_undefined_flag" = unsupported; then
  52175. + func_warning "undefined symbols not allowed in $host shared libraries"
  52176. + build_libtool_libs=no
  52177. + build_old_libs=yes
  52178. + fi
  52179. + else
  52180. + # Don't allow undefined symbols.
  52181. + allow_undefined_flag="$no_undefined_flag"
  52182. + fi
  52183. +
  52184. + fi
  52185. +
  52186. + func_generate_dlsyms "$libname" "$libname" "yes"
  52187. + libobjs="$libobjs $symfileobj"
  52188. + test "X$libobjs" = "X " && libobjs=
  52189. +
  52190. + if test "$mode" != relink; then
  52191. + # Remove our outputs, but don't remove object files since they
  52192. + # may have been created when compiling PIC objects.
  52193. + removelist=
  52194. + tempremovelist=`$ECHO "$output_objdir/*"`
  52195. + for p in $tempremovelist; do
  52196. + case $p in
  52197. + *.$objext | *.gcno)
  52198. + ;;
  52199. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  52200. + if test "X$precious_files_regex" != "X"; then
  52201. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  52202. + then
  52203. + continue
  52204. + fi
  52205. + fi
  52206. + removelist="$removelist $p"
  52207. + ;;
  52208. + *) ;;
  52209. + esac
  52210. + done
  52211. + test -n "$removelist" && \
  52212. + func_show_eval "${RM}r \$removelist"
  52213. + fi
  52214. +
  52215. + # Now set the variables for building old libraries.
  52216. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  52217. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  52218. +
  52219. + # Transform .lo files to .o files.
  52220. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  52221. + fi
  52222. +
  52223. + # Eliminate all temporary directories.
  52224. + #for path in $notinst_path; do
  52225. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  52226. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  52227. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  52228. + #done
  52229. +
  52230. + if test -n "$xrpath"; then
  52231. + # If the user specified any rpath flags, then add them.
  52232. + temp_xrpath=
  52233. + for libdir in $xrpath; do
  52234. + temp_xrpath="$temp_xrpath -R$libdir"
  52235. + case "$finalize_rpath " in
  52236. + *" $libdir "*) ;;
  52237. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  52238. + esac
  52239. + done
  52240. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  52241. + dependency_libs="$temp_xrpath $dependency_libs"
  52242. + fi
  52243. + fi
  52244. +
  52245. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  52246. + old_dlfiles="$dlfiles"
  52247. + dlfiles=
  52248. + for lib in $old_dlfiles; do
  52249. + case " $dlprefiles $dlfiles " in
  52250. + *" $lib "*) ;;
  52251. + *) dlfiles="$dlfiles $lib" ;;
  52252. + esac
  52253. + done
  52254. +
  52255. + # Make sure dlprefiles contains only unique files
  52256. + old_dlprefiles="$dlprefiles"
  52257. + dlprefiles=
  52258. + for lib in $old_dlprefiles; do
  52259. + case "$dlprefiles " in
  52260. + *" $lib "*) ;;
  52261. + *) dlprefiles="$dlprefiles $lib" ;;
  52262. + esac
  52263. + done
  52264. +
  52265. + if test "$build_libtool_libs" = yes; then
  52266. + if test -n "$rpath"; then
  52267. + case $host in
  52268. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  52269. + # these systems don't actually have a c library (as such)!
  52270. + ;;
  52271. + *-*-rhapsody* | *-*-darwin1.[012])
  52272. + # Rhapsody C library is in the System framework
  52273. + deplibs="$deplibs System.ltframework"
  52274. + ;;
  52275. + *-*-netbsd*)
  52276. + # Don't link with libc until the a.out ld.so is fixed.
  52277. + ;;
  52278. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  52279. + # Do not include libc due to us having libc/libc_r.
  52280. + ;;
  52281. + *-*-sco3.2v5* | *-*-sco5v6*)
  52282. + # Causes problems with __ctype
  52283. + ;;
  52284. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  52285. + # Compiler inserts libc in the correct place for threads to work
  52286. + ;;
  52287. + *)
  52288. + # Add libc to deplibs on all other systems if necessary.
  52289. + if test "$build_libtool_need_lc" = "yes"; then
  52290. + deplibs="$deplibs -lc"
  52291. + fi
  52292. + ;;
  52293. + esac
  52294. + fi
  52295. +
  52296. + # Transform deplibs into only deplibs that can be linked in shared.
  52297. + name_save=$name
  52298. + libname_save=$libname
  52299. + release_save=$release
  52300. + versuffix_save=$versuffix
  52301. + major_save=$major
  52302. + # I'm not sure if I'm treating the release correctly. I think
  52303. + # release should show up in the -l (ie -lgmp5) so we don't want to
  52304. + # add it in twice. Is that correct?
  52305. + release=""
  52306. + versuffix=""
  52307. + major=""
  52308. + newdeplibs=
  52309. + droppeddeps=no
  52310. + case $deplibs_check_method in
  52311. + pass_all)
  52312. + # Don't check for shared/static. Everything works.
  52313. + # This might be a little naive. We might want to check
  52314. + # whether the library exists or not. But this is on
  52315. + # osf3 & osf4 and I'm not really sure... Just
  52316. + # implementing what was already the behavior.
  52317. + newdeplibs=$deplibs
  52318. + ;;
  52319. + test_compile)
  52320. + # This code stresses the "libraries are programs" paradigm to its
  52321. + # limits. Maybe even breaks it. We compile a program, linking it
  52322. + # against the deplibs as a proxy for the library. Then we can check
  52323. + # whether they linked in statically or dynamically with ldd.
  52324. + $opt_dry_run || $RM conftest.c
  52325. + cat > conftest.c <<EOF
  52326. + int main() { return 0; }
  52327. +EOF
  52328. + $opt_dry_run || $RM conftest
  52329. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  52330. + ldd_output=`ldd conftest`
  52331. + for i in $deplibs; do
  52332. + case $i in
  52333. + -l*)
  52334. + func_stripname -l '' "$i"
  52335. + name=$func_stripname_result
  52336. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52337. + case " $predeps $postdeps " in
  52338. + *" $i "*)
  52339. + newdeplibs="$newdeplibs $i"
  52340. + i=""
  52341. + ;;
  52342. + esac
  52343. + fi
  52344. + if test -n "$i" ; then
  52345. + libname=`eval "\\$ECHO \"$libname_spec\""`
  52346. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  52347. + set dummy $deplib_matches; shift
  52348. + deplib_match=$1
  52349. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  52350. + newdeplibs="$newdeplibs $i"
  52351. + else
  52352. + droppeddeps=yes
  52353. + $ECHO
  52354. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  52355. + $ECHO "*** I have the capability to make that library automatically link in when"
  52356. + $ECHO "*** you link to this library. But I can only do this if you have a"
  52357. + $ECHO "*** shared version of the library, which I believe you do not have"
  52358. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  52359. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  52360. + fi
  52361. + fi
  52362. + ;;
  52363. + *)
  52364. + newdeplibs="$newdeplibs $i"
  52365. + ;;
  52366. + esac
  52367. + done
  52368. + else
  52369. + # Error occurred in the first compile. Let's try to salvage
  52370. + # the situation: Compile a separate program for each library.
  52371. + for i in $deplibs; do
  52372. + case $i in
  52373. + -l*)
  52374. + func_stripname -l '' "$i"
  52375. + name=$func_stripname_result
  52376. + $opt_dry_run || $RM conftest
  52377. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  52378. + ldd_output=`ldd conftest`
  52379. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52380. + case " $predeps $postdeps " in
  52381. + *" $i "*)
  52382. + newdeplibs="$newdeplibs $i"
  52383. + i=""
  52384. + ;;
  52385. + esac
  52386. + fi
  52387. + if test -n "$i" ; then
  52388. + libname=`eval "\\$ECHO \"$libname_spec\""`
  52389. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  52390. + set dummy $deplib_matches; shift
  52391. + deplib_match=$1
  52392. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  52393. + newdeplibs="$newdeplibs $i"
  52394. + else
  52395. + droppeddeps=yes
  52396. + $ECHO
  52397. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  52398. + $ECHO "*** I have the capability to make that library automatically link in when"
  52399. + $ECHO "*** you link to this library. But I can only do this if you have a"
  52400. + $ECHO "*** shared version of the library, which you do not appear to have"
  52401. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  52402. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  52403. + fi
  52404. + fi
  52405. + else
  52406. + droppeddeps=yes
  52407. + $ECHO
  52408. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  52409. + $ECHO "*** make it link in! You will probably need to install it or some"
  52410. + $ECHO "*** library that it depends on before this library will be fully"
  52411. + $ECHO "*** functional. Installing it before continuing would be even better."
  52412. + fi
  52413. + ;;
  52414. + *)
  52415. + newdeplibs="$newdeplibs $i"
  52416. + ;;
  52417. + esac
  52418. + done
  52419. + fi
  52420. + ;;
  52421. + file_magic*)
  52422. + set dummy $deplibs_check_method; shift
  52423. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  52424. + for a_deplib in $deplibs; do
  52425. + case $a_deplib in
  52426. + -l*)
  52427. + func_stripname -l '' "$a_deplib"
  52428. + name=$func_stripname_result
  52429. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52430. + case " $predeps $postdeps " in
  52431. + *" $a_deplib "*)
  52432. + newdeplibs="$newdeplibs $a_deplib"
  52433. + a_deplib=""
  52434. + ;;
  52435. + esac
  52436. + fi
  52437. + if test -n "$a_deplib" ; then
  52438. + libname=`eval "\\$ECHO \"$libname_spec\""`
  52439. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  52440. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  52441. + for potent_lib in $potential_libs; do
  52442. + # Follow soft links.
  52443. + if ls -lLd "$potent_lib" 2>/dev/null |
  52444. + $GREP " -> " >/dev/null; then
  52445. + continue
  52446. + fi
  52447. + # The statement above tries to avoid entering an
  52448. + # endless loop below, in case of cyclic links.
  52449. + # We might still enter an endless loop, since a link
  52450. + # loop can be closed while we follow links,
  52451. + # but so what?
  52452. + potlib="$potent_lib"
  52453. + while test -h "$potlib" 2>/dev/null; do
  52454. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  52455. + case $potliblink in
  52456. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  52457. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  52458. + esac
  52459. + done
  52460. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  52461. + $SED -e 10q |
  52462. + $EGREP "$file_magic_regex" > /dev/null; then
  52463. + newdeplibs="$newdeplibs $a_deplib"
  52464. + a_deplib=""
  52465. + break 2
  52466. + fi
  52467. + done
  52468. + done
  52469. + fi
  52470. + if test -n "$a_deplib" ; then
  52471. + droppeddeps=yes
  52472. + $ECHO
  52473. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  52474. + $ECHO "*** I have the capability to make that library automatically link in when"
  52475. + $ECHO "*** you link to this library. But I can only do this if you have a"
  52476. + $ECHO "*** shared version of the library, which you do not appear to have"
  52477. + $ECHO "*** because I did check the linker path looking for a file starting"
  52478. + if test -z "$potlib" ; then
  52479. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  52480. + else
  52481. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  52482. + $ECHO "*** using a file magic. Last file checked: $potlib"
  52483. + fi
  52484. + fi
  52485. + ;;
  52486. + *)
  52487. + # Add a -L argument.
  52488. + newdeplibs="$newdeplibs $a_deplib"
  52489. + ;;
  52490. + esac
  52491. + done # Gone through all deplibs.
  52492. + ;;
  52493. + match_pattern*)
  52494. + set dummy $deplibs_check_method; shift
  52495. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  52496. + for a_deplib in $deplibs; do
  52497. + case $a_deplib in
  52498. + -l*)
  52499. + func_stripname -l '' "$a_deplib"
  52500. + name=$func_stripname_result
  52501. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52502. + case " $predeps $postdeps " in
  52503. + *" $a_deplib "*)
  52504. + newdeplibs="$newdeplibs $a_deplib"
  52505. + a_deplib=""
  52506. + ;;
  52507. + esac
  52508. + fi
  52509. + if test -n "$a_deplib" ; then
  52510. + libname=`eval "\\$ECHO \"$libname_spec\""`
  52511. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  52512. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  52513. + for potent_lib in $potential_libs; do
  52514. + potlib="$potent_lib" # see symlink-check above in file_magic test
  52515. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  52516. + $EGREP "$match_pattern_regex" > /dev/null; then
  52517. + newdeplibs="$newdeplibs $a_deplib"
  52518. + a_deplib=""
  52519. + break 2
  52520. + fi
  52521. + done
  52522. + done
  52523. + fi
  52524. + if test -n "$a_deplib" ; then
  52525. + droppeddeps=yes
  52526. + $ECHO
  52527. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  52528. + $ECHO "*** I have the capability to make that library automatically link in when"
  52529. + $ECHO "*** you link to this library. But I can only do this if you have a"
  52530. + $ECHO "*** shared version of the library, which you do not appear to have"
  52531. + $ECHO "*** because I did check the linker path looking for a file starting"
  52532. + if test -z "$potlib" ; then
  52533. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  52534. + else
  52535. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  52536. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  52537. + fi
  52538. + fi
  52539. + ;;
  52540. + *)
  52541. + # Add a -L argument.
  52542. + newdeplibs="$newdeplibs $a_deplib"
  52543. + ;;
  52544. + esac
  52545. + done # Gone through all deplibs.
  52546. + ;;
  52547. + none | unknown | *)
  52548. + newdeplibs=""
  52549. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  52550. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  52551. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52552. + for i in $predeps $postdeps ; do
  52553. + # can't use Xsed below, because $i might contain '/'
  52554. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  52555. + done
  52556. + fi
  52557. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  52558. + $GREP . >/dev/null; then
  52559. + $ECHO
  52560. + if test "X$deplibs_check_method" = "Xnone"; then
  52561. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  52562. + else
  52563. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  52564. + fi
  52565. + $ECHO "*** All declared inter-library dependencies are being dropped."
  52566. + droppeddeps=yes
  52567. + fi
  52568. + ;;
  52569. + esac
  52570. + versuffix=$versuffix_save
  52571. + major=$major_save
  52572. + release=$release_save
  52573. + libname=$libname_save
  52574. + name=$name_save
  52575. +
  52576. + case $host in
  52577. + *-*-rhapsody* | *-*-darwin1.[012])
  52578. + # On Rhapsody replace the C library with the System framework
  52579. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  52580. + ;;
  52581. + esac
  52582. +
  52583. + if test "$droppeddeps" = yes; then
  52584. + if test "$module" = yes; then
  52585. + $ECHO
  52586. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  52587. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  52588. + $ECHO "*** a static module, that should work as long as the dlopening"
  52589. + $ECHO "*** application is linked with the -dlopen flag."
  52590. + if test -z "$global_symbol_pipe"; then
  52591. + $ECHO
  52592. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  52593. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  52594. + $ECHO "*** not find such a program. So, this module is probably useless."
  52595. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  52596. + fi
  52597. + if test "$build_old_libs" = no; then
  52598. + oldlibs="$output_objdir/$libname.$libext"
  52599. + build_libtool_libs=module
  52600. + build_old_libs=yes
  52601. + else
  52602. + build_libtool_libs=no
  52603. + fi
  52604. + else
  52605. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  52606. + $ECHO "*** automatically added whenever a program is linked with this library"
  52607. + $ECHO "*** or is declared to -dlopen it."
  52608. +
  52609. + if test "$allow_undefined" = no; then
  52610. + $ECHO
  52611. + $ECHO "*** Since this library must not contain undefined symbols,"
  52612. + $ECHO "*** because either the platform does not support them or"
  52613. + $ECHO "*** it was explicitly requested with -no-undefined,"
  52614. + $ECHO "*** libtool will only create a static version of it."
  52615. + if test "$build_old_libs" = no; then
  52616. + oldlibs="$output_objdir/$libname.$libext"
  52617. + build_libtool_libs=module
  52618. + build_old_libs=yes
  52619. + else
  52620. + build_libtool_libs=no
  52621. + fi
  52622. + fi
  52623. + fi
  52624. + fi
  52625. + # Done checking deplibs!
  52626. + deplibs=$newdeplibs
  52627. + fi
  52628. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  52629. + case $host in
  52630. + *-*-darwin*)
  52631. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  52632. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  52633. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  52634. + ;;
  52635. + esac
  52636. +
  52637. + # move library search paths that coincide with paths to not yet
  52638. + # installed libraries to the beginning of the library search list
  52639. + new_libs=
  52640. + for path in $notinst_path; do
  52641. + case " $new_libs " in
  52642. + *" -L$path/$objdir "*) ;;
  52643. + *)
  52644. + case " $deplibs " in
  52645. + *" -L$path/$objdir "*)
  52646. + new_libs="$new_libs -L$path/$objdir" ;;
  52647. + esac
  52648. + ;;
  52649. + esac
  52650. + done
  52651. + for deplib in $deplibs; do
  52652. + case $deplib in
  52653. + -L*)
  52654. + case " $new_libs " in
  52655. + *" $deplib "*) ;;
  52656. + *) new_libs="$new_libs $deplib" ;;
  52657. + esac
  52658. + ;;
  52659. + *) new_libs="$new_libs $deplib" ;;
  52660. + esac
  52661. + done
  52662. + deplibs="$new_libs"
  52663. +
  52664. + # All the library-specific variables (install_libdir is set above).
  52665. + library_names=
  52666. + old_library=
  52667. + dlname=
  52668. +
  52669. + # Test again, we may have decided not to build it any more
  52670. + if test "$build_libtool_libs" = yes; then
  52671. + if test "$hardcode_into_libs" = yes; then
  52672. + # Hardcode the library paths
  52673. + hardcode_libdirs=
  52674. + dep_rpath=
  52675. + rpath="$finalize_rpath"
  52676. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  52677. + for libdir in $rpath; do
  52678. + if test -n "$hardcode_libdir_flag_spec"; then
  52679. + if test -n "$hardcode_libdir_separator"; then
  52680. + if test -z "$hardcode_libdirs"; then
  52681. + hardcode_libdirs="$libdir"
  52682. + else
  52683. + # Just accumulate the unique libdirs.
  52684. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  52685. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  52686. + ;;
  52687. + *)
  52688. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  52689. + ;;
  52690. + esac
  52691. + fi
  52692. + else
  52693. + eval flag=\"$hardcode_libdir_flag_spec\"
  52694. + dep_rpath="$dep_rpath $flag"
  52695. + fi
  52696. + elif test -n "$runpath_var"; then
  52697. + case "$perm_rpath " in
  52698. + *" $libdir "*) ;;
  52699. + *) perm_rpath="$perm_rpath $libdir" ;;
  52700. + esac
  52701. + fi
  52702. + done
  52703. + # Substitute the hardcoded libdirs into the rpath.
  52704. + if test -n "$hardcode_libdir_separator" &&
  52705. + test -n "$hardcode_libdirs"; then
  52706. + libdir="$hardcode_libdirs"
  52707. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  52708. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  52709. + else
  52710. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  52711. + fi
  52712. + fi
  52713. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  52714. + # We should set the runpath_var.
  52715. + rpath=
  52716. + for dir in $perm_rpath; do
  52717. + rpath="$rpath$dir:"
  52718. + done
  52719. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  52720. + fi
  52721. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  52722. + fi
  52723. - # Try to get the absolute directory name.
  52724. - absdir=\`cd \"\$thisdir\" && pwd\`
  52725. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  52726. -"
  52727. + shlibpath="$finalize_shlibpath"
  52728. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  52729. + if test -n "$shlibpath"; then
  52730. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  52731. + fi
  52732. - if test "$fast_install" = yes; then
  52733. - $echo >> $output "\
  52734. - program=lt-'$outputname'$exeext
  52735. - progdir=\"\$thisdir/$objdir\"
  52736. + # Get the real and link names of the library.
  52737. + eval shared_ext=\"$shrext_cmds\"
  52738. + eval library_names=\"$library_names_spec\"
  52739. + set dummy $library_names
  52740. + shift
  52741. + realname="$1"
  52742. + shift
  52743. - if test ! -f \"\$progdir/\$program\" || \\
  52744. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  52745. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  52746. + if test -n "$soname_spec"; then
  52747. + eval soname=\"$soname_spec\"
  52748. + else
  52749. + soname="$realname"
  52750. + fi
  52751. + if test -z "$dlname"; then
  52752. + dlname=$soname
  52753. + fi
  52754. - file=\"\$\$-\$program\"
  52755. + lib="$output_objdir/$realname"
  52756. + linknames=
  52757. + for link
  52758. + do
  52759. + linknames="$linknames $link"
  52760. + done
  52761. - if test ! -d \"\$progdir\"; then
  52762. - $mkdir \"\$progdir\"
  52763. - else
  52764. - $rm \"\$progdir/\$file\"
  52765. - fi"
  52766. + # Use standard objects if they are pic
  52767. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  52768. + test "X$libobjs" = "X " && libobjs=
  52769. - $echo >> $output "\
  52770. + delfiles=
  52771. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  52772. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  52773. + export_symbols="$output_objdir/$libname.uexp"
  52774. + delfiles="$delfiles $export_symbols"
  52775. + fi
  52776. +
  52777. + orig_export_symbols=
  52778. + case $host_os in
  52779. + cygwin* | mingw* | cegcc*)
  52780. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  52781. + # exporting using user supplied symfile
  52782. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  52783. + # and it's NOT already a .def file. Must figure out
  52784. + # which of the given symbols are data symbols and tag
  52785. + # them as such. So, trigger use of export_symbols_cmds.
  52786. + # export_symbols gets reassigned inside the "prepare
  52787. + # the list of exported symbols" if statement, so the
  52788. + # include_expsyms logic still works.
  52789. + orig_export_symbols="$export_symbols"
  52790. + export_symbols=
  52791. + always_export_symbols=yes
  52792. + fi
  52793. + fi
  52794. + ;;
  52795. + esac
  52796. - # relink executable if necessary
  52797. - if test -n \"\$relink_command\"; then
  52798. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  52799. - else
  52800. - $echo \"\$relink_command_output\" >&2
  52801. - $rm \"\$progdir/\$file\"
  52802. - exit $EXIT_FAILURE
  52803. - fi
  52804. - fi
  52805. + # Prepare the list of exported symbols
  52806. + if test -z "$export_symbols"; then
  52807. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  52808. + func_verbose "generating symbol list for \`$libname.la'"
  52809. + export_symbols="$output_objdir/$libname.exp"
  52810. + $opt_dry_run || $RM $export_symbols
  52811. + cmds=$export_symbols_cmds
  52812. + save_ifs="$IFS"; IFS='~'
  52813. + for cmd in $cmds; do
  52814. + IFS="$save_ifs"
  52815. + eval cmd=\"$cmd\"
  52816. + func_len " $cmd"
  52817. + len=$func_len_result
  52818. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  52819. + func_show_eval "$cmd" 'exit $?'
  52820. + skipped_export=false
  52821. + else
  52822. + # The command line is too long to execute in one step.
  52823. + func_verbose "using reloadable object file for export list..."
  52824. + skipped_export=:
  52825. + # Break out early, otherwise skipped_export may be
  52826. + # set to false by a later but shorter cmd.
  52827. + break
  52828. + fi
  52829. + done
  52830. + IFS="$save_ifs"
  52831. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  52832. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  52833. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  52834. + fi
  52835. + fi
  52836. + fi
  52837. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  52838. - { $rm \"\$progdir/\$program\";
  52839. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  52840. - $rm \"\$progdir/\$file\"
  52841. - fi"
  52842. - else
  52843. - $echo >> $output "\
  52844. - program='$outputname'
  52845. - progdir=\"\$thisdir/$objdir\"
  52846. -"
  52847. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  52848. + tmp_export_symbols="$export_symbols"
  52849. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  52850. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  52851. + fi
  52852. +
  52853. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  52854. + # The given exports_symbols file has to be filtered, so filter it.
  52855. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  52856. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  52857. + # 's' commands which not all seds can handle. GNU sed should be fine
  52858. + # though. Also, the filter scales superlinearly with the number of
  52859. + # global variables. join(1) would be nice here, but unfortunately
  52860. + # isn't a blessed tool.
  52861. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  52862. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  52863. + export_symbols=$output_objdir/$libname.def
  52864. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  52865. fi
  52866. - $echo >> $output "\
  52867. + tmp_deplibs=
  52868. + for test_deplib in $deplibs; do
  52869. + case " $convenience " in
  52870. + *" $test_deplib "*) ;;
  52871. + *)
  52872. + tmp_deplibs="$tmp_deplibs $test_deplib"
  52873. + ;;
  52874. + esac
  52875. + done
  52876. + deplibs="$tmp_deplibs"
  52877. - if test -f \"\$progdir/\$program\"; then"
  52878. + if test -n "$convenience"; then
  52879. + if test -n "$whole_archive_flag_spec" &&
  52880. + test "$compiler_needs_object" = yes &&
  52881. + test -z "$libobjs"; then
  52882. + # extract the archives, so we have objects to list.
  52883. + # TODO: could optimize this to just extract one archive.
  52884. + whole_archive_flag_spec=
  52885. + fi
  52886. + if test -n "$whole_archive_flag_spec"; then
  52887. + save_libobjs=$libobjs
  52888. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  52889. + test "X$libobjs" = "X " && libobjs=
  52890. + else
  52891. + gentop="$output_objdir/${outputname}x"
  52892. + generated="$generated $gentop"
  52893. - # Export our shlibpath_var if we have one.
  52894. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  52895. - $echo >> $output "\
  52896. - # Add our own library path to $shlibpath_var
  52897. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  52898. + func_extract_archives $gentop $convenience
  52899. + libobjs="$libobjs $func_extract_archives_result"
  52900. + test "X$libobjs" = "X " && libobjs=
  52901. + fi
  52902. + fi
  52903. - # Some systems cannot cope with colon-terminated $shlibpath_var
  52904. - # The second colon is a workaround for a bug in BeOS R4 sed
  52905. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  52906. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  52907. + eval flag=\"$thread_safe_flag_spec\"
  52908. + linker_flags="$linker_flags $flag"
  52909. + fi
  52910. - export $shlibpath_var
  52911. -"
  52912. + # Make a backup of the uninstalled library when relinking
  52913. + if test "$mode" = relink; then
  52914. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  52915. fi
  52916. - # fixup the dll searchpath if we need to.
  52917. - if test -n "$dllsearchpath"; then
  52918. - $echo >> $output "\
  52919. - # Add the dll search path components to the executable PATH
  52920. - PATH=$dllsearchpath:\$PATH
  52921. -"
  52922. + # Do each of the archive commands.
  52923. + if test "$module" = yes && test -n "$module_cmds" ; then
  52924. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  52925. + eval test_cmds=\"$module_expsym_cmds\"
  52926. + cmds=$module_expsym_cmds
  52927. + else
  52928. + eval test_cmds=\"$module_cmds\"
  52929. + cmds=$module_cmds
  52930. + fi
  52931. + else
  52932. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  52933. + eval test_cmds=\"$archive_expsym_cmds\"
  52934. + cmds=$archive_expsym_cmds
  52935. + else
  52936. + eval test_cmds=\"$archive_cmds\"
  52937. + cmds=$archive_cmds
  52938. + fi
  52939. fi
  52940. - $echo >> $output "\
  52941. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  52942. - # Run the actual program with our arguments.
  52943. -"
  52944. - case $host in
  52945. - # Backslashes separate directories on plain windows
  52946. - *-*-mingw | *-*-os2*)
  52947. - $echo >> $output "\
  52948. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  52949. -"
  52950. - ;;
  52951. + if test "X$skipped_export" != "X:" &&
  52952. + func_len " $test_cmds" &&
  52953. + len=$func_len_result &&
  52954. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  52955. + :
  52956. + else
  52957. + # The command line is too long to link in one step, link piecewise
  52958. + # or, if using GNU ld and skipped_export is not :, use a linker
  52959. + # script.
  52960. - *)
  52961. - $echo >> $output "\
  52962. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  52963. -"
  52964. - ;;
  52965. - esac
  52966. - $echo >> $output "\
  52967. - \$echo \"\$0: cannot exec \$program \$*\"
  52968. - exit $EXIT_FAILURE
  52969. - fi
  52970. - else
  52971. - # The program doesn't exist.
  52972. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  52973. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  52974. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  52975. - exit $EXIT_FAILURE
  52976. - fi
  52977. -fi\
  52978. -"
  52979. - chmod +x $output
  52980. - fi
  52981. - exit $EXIT_SUCCESS
  52982. - ;;
  52983. - esac
  52984. + # Save the value of $output and $libobjs because we want to
  52985. + # use them later. If we have whole_archive_flag_spec, we
  52986. + # want to use save_libobjs as it was before
  52987. + # whole_archive_flag_spec was expanded, because we can't
  52988. + # assume the linker understands whole_archive_flag_spec.
  52989. + # This may have to be revisited, in case too many
  52990. + # convenience libraries get linked in and end up exceeding
  52991. + # the spec.
  52992. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  52993. + save_libobjs=$libobjs
  52994. + fi
  52995. + save_output=$output
  52996. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  52997. - # See if we need to build an old-fashioned archive.
  52998. - for oldlib in $oldlibs; do
  52999. + # Clear the reloadable object creation command queue and
  53000. + # initialize k to one.
  53001. + test_cmds=
  53002. + concat_cmds=
  53003. + objlist=
  53004. + last_robj=
  53005. + k=1
  53006. - if test "$build_libtool_libs" = convenience; then
  53007. - oldobjs="$libobjs_save"
  53008. - addlibs="$convenience"
  53009. - build_libtool_libs=no
  53010. - else
  53011. - if test "$build_libtool_libs" = module; then
  53012. - oldobjs="$libobjs_save"
  53013. - build_libtool_libs=no
  53014. - else
  53015. - oldobjs="$old_deplibs $non_pic_objects"
  53016. - fi
  53017. - addlibs="$old_convenience"
  53018. - fi
  53019. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  53020. + output=${output_objdir}/${output_la}.lnkscript
  53021. + func_verbose "creating GNU ld script: $output"
  53022. + $ECHO 'INPUT (' > $output
  53023. + for obj in $save_libobjs
  53024. + do
  53025. + $ECHO "$obj" >> $output
  53026. + done
  53027. + $ECHO ')' >> $output
  53028. + delfiles="$delfiles $output"
  53029. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  53030. + output=${output_objdir}/${output_la}.lnk
  53031. + func_verbose "creating linker input file list: $output"
  53032. + : > $output
  53033. + set x $save_libobjs
  53034. + shift
  53035. + firstobj=
  53036. + if test "$compiler_needs_object" = yes; then
  53037. + firstobj="$1 "
  53038. + shift
  53039. + fi
  53040. + for obj
  53041. + do
  53042. + $ECHO "$obj" >> $output
  53043. + done
  53044. + delfiles="$delfiles $output"
  53045. + output=$firstobj\"$file_list_spec$output\"
  53046. + else
  53047. + if test -n "$save_libobjs"; then
  53048. + func_verbose "creating reloadable object files..."
  53049. + output=$output_objdir/$output_la-${k}.$objext
  53050. + eval test_cmds=\"$reload_cmds\"
  53051. + func_len " $test_cmds"
  53052. + len0=$func_len_result
  53053. + len=$len0
  53054. +
  53055. + # Loop over the list of objects to be linked.
  53056. + for obj in $save_libobjs
  53057. + do
  53058. + func_len " $obj"
  53059. + func_arith $len + $func_len_result
  53060. + len=$func_arith_result
  53061. + if test "X$objlist" = X ||
  53062. + test "$len" -lt "$max_cmd_len"; then
  53063. + func_append objlist " $obj"
  53064. + else
  53065. + # The command $test_cmds is almost too long, add a
  53066. + # command to the queue.
  53067. + if test "$k" -eq 1 ; then
  53068. + # The first file doesn't have a previous command to add.
  53069. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  53070. + else
  53071. + # All subsequent reloadable object files will link in
  53072. + # the last one created.
  53073. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  53074. + fi
  53075. + last_robj=$output_objdir/$output_la-${k}.$objext
  53076. + func_arith $k + 1
  53077. + k=$func_arith_result
  53078. + output=$output_objdir/$output_la-${k}.$objext
  53079. + objlist=$obj
  53080. + func_len " $last_robj"
  53081. + func_arith $len0 + $func_len_result
  53082. + len=$func_arith_result
  53083. + fi
  53084. + done
  53085. + # Handle the remaining objects by creating one last
  53086. + # reloadable object file. All subsequent reloadable object
  53087. + # files will link in the last one created.
  53088. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  53089. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  53090. + if test -n "$last_robj"; then
  53091. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  53092. + fi
  53093. + delfiles="$delfiles $output"
  53094. - if test -n "$addlibs"; then
  53095. - gentop="$output_objdir/${outputname}x"
  53096. - generated="$generated $gentop"
  53097. + else
  53098. + output=
  53099. + fi
  53100. - func_extract_archives $gentop $addlibs
  53101. - oldobjs="$oldobjs $func_extract_archives_result"
  53102. - fi
  53103. + if ${skipped_export-false}; then
  53104. + func_verbose "generating symbol list for \`$libname.la'"
  53105. + export_symbols="$output_objdir/$libname.exp"
  53106. + $opt_dry_run || $RM $export_symbols
  53107. + libobjs=$output
  53108. + # Append the command to create the export file.
  53109. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  53110. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  53111. + if test -n "$last_robj"; then
  53112. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  53113. + fi
  53114. + fi
  53115. - # Do each command in the archive commands.
  53116. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  53117. - cmds=$old_archive_from_new_cmds
  53118. - else
  53119. - # POSIX demands no paths to be encoded in archives. We have
  53120. - # to avoid creating archives with duplicate basenames if we
  53121. - # might have to extract them afterwards, e.g., when creating a
  53122. - # static archive out of a convenience library, or when linking
  53123. - # the entirety of a libtool archive into another (currently
  53124. - # not supported by libtool).
  53125. - if (for obj in $oldobjs
  53126. - do
  53127. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  53128. - done | sort | sort -uc >/dev/null 2>&1); then
  53129. - :
  53130. - else
  53131. - $echo "copying selected object files to avoid basename conflicts..."
  53132. + test -n "$save_libobjs" &&
  53133. + func_verbose "creating a temporary reloadable object file: $output"
  53134. - if test -z "$gentop"; then
  53135. - gentop="$output_objdir/${outputname}x"
  53136. - generated="$generated $gentop"
  53137. + # Loop through the commands generated above and execute them.
  53138. + save_ifs="$IFS"; IFS='~'
  53139. + for cmd in $concat_cmds; do
  53140. + IFS="$save_ifs"
  53141. + $opt_silent || {
  53142. + func_quote_for_expand "$cmd"
  53143. + eval "func_echo $func_quote_for_expand_result"
  53144. + }
  53145. + $opt_dry_run || eval "$cmd" || {
  53146. + lt_exit=$?
  53147. +
  53148. + # Restore the uninstalled library and exit
  53149. + if test "$mode" = relink; then
  53150. + ( cd "$output_objdir" && \
  53151. + $RM "${realname}T" && \
  53152. + $MV "${realname}U" "$realname" )
  53153. + fi
  53154. - $show "${rm}r $gentop"
  53155. - $run ${rm}r "$gentop"
  53156. - $show "$mkdir $gentop"
  53157. - $run $mkdir "$gentop"
  53158. - exit_status=$?
  53159. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  53160. - exit $exit_status
  53161. + exit $lt_exit
  53162. + }
  53163. + done
  53164. + IFS="$save_ifs"
  53165. +
  53166. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  53167. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  53168. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  53169. fi
  53170. fi
  53171. - save_oldobjs=$oldobjs
  53172. - oldobjs=
  53173. - counter=1
  53174. - for obj in $save_oldobjs
  53175. - do
  53176. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  53177. - case " $oldobjs " in
  53178. - " ") oldobjs=$obj ;;
  53179. - *[\ /]"$objbase "*)
  53180. - while :; do
  53181. - # Make sure we don't pick an alternate name that also
  53182. - # overlaps.
  53183. - newobj=lt$counter-$objbase
  53184. - counter=`expr $counter + 1`
  53185. - case " $oldobjs " in
  53186. - *[\ /]"$newobj "*) ;;
  53187. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  53188. - esac
  53189. - done
  53190. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  53191. - $run ln "$obj" "$gentop/$newobj" ||
  53192. - $run cp "$obj" "$gentop/$newobj"
  53193. - oldobjs="$oldobjs $gentop/$newobj"
  53194. - ;;
  53195. - *) oldobjs="$oldobjs $obj" ;;
  53196. - esac
  53197. - done
  53198. - fi
  53199. + if ${skipped_export-false}; then
  53200. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  53201. + tmp_export_symbols="$export_symbols"
  53202. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  53203. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  53204. + fi
  53205. +
  53206. + if test -n "$orig_export_symbols"; then
  53207. + # The given exports_symbols file has to be filtered, so filter it.
  53208. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  53209. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  53210. + # 's' commands which not all seds can handle. GNU sed should be fine
  53211. + # though. Also, the filter scales superlinearly with the number of
  53212. + # global variables. join(1) would be nice here, but unfortunately
  53213. + # isn't a blessed tool.
  53214. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  53215. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  53216. + export_symbols=$output_objdir/$libname.def
  53217. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  53218. + fi
  53219. + fi
  53220. - eval cmds=\"$old_archive_cmds\"
  53221. + libobjs=$output
  53222. + # Restore the value of output.
  53223. + output=$save_output
  53224. - if len=`expr "X$cmds" : ".*"` &&
  53225. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  53226. - cmds=$old_archive_cmds
  53227. - else
  53228. - # the command line is too long to link in one step, link in parts
  53229. - $echo "using piecewise archive linking..."
  53230. - save_RANLIB=$RANLIB
  53231. - RANLIB=:
  53232. - objlist=
  53233. - concat_cmds=
  53234. - save_oldobjs=$oldobjs
  53235. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  53236. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  53237. + test "X$libobjs" = "X " && libobjs=
  53238. + fi
  53239. + # Expand the library linking commands again to reset the
  53240. + # value of $libobjs for piecewise linking.
  53241. - # Is there a better way of finding the last object in the list?
  53242. - for obj in $save_oldobjs
  53243. - do
  53244. - last_oldobj=$obj
  53245. - done
  53246. - for obj in $save_oldobjs
  53247. - do
  53248. - oldobjs="$objlist $obj"
  53249. - objlist="$objlist $obj"
  53250. - eval test_cmds=\"$old_archive_cmds\"
  53251. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  53252. - test "$len" -le "$max_cmd_len"; then
  53253. - :
  53254. + # Do each of the archive commands.
  53255. + if test "$module" = yes && test -n "$module_cmds" ; then
  53256. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  53257. + cmds=$module_expsym_cmds
  53258. else
  53259. - # the above command should be used before it gets too long
  53260. - oldobjs=$objlist
  53261. - if test "$obj" = "$last_oldobj" ; then
  53262. - RANLIB=$save_RANLIB
  53263. - fi
  53264. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  53265. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  53266. - objlist=
  53267. + cmds=$module_cmds
  53268. fi
  53269. - done
  53270. - RANLIB=$save_RANLIB
  53271. - oldobjs=$objlist
  53272. - if test "X$oldobjs" = "X" ; then
  53273. - eval cmds=\"\$concat_cmds\"
  53274. else
  53275. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  53276. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  53277. + cmds=$archive_expsym_cmds
  53278. + else
  53279. + cmds=$archive_cmds
  53280. + fi
  53281. fi
  53282. fi
  53283. - fi
  53284. - save_ifs="$IFS"; IFS='~'
  53285. - for cmd in $cmds; do
  53286. - eval cmd=\"$cmd\"
  53287. - IFS="$save_ifs"
  53288. - $show "$cmd"
  53289. - $run eval "$cmd" || exit $?
  53290. - done
  53291. - IFS="$save_ifs"
  53292. - done
  53293. - if test -n "$generated"; then
  53294. - $show "${rm}r$generated"
  53295. - $run ${rm}r$generated
  53296. - fi
  53297. + if test -n "$delfiles"; then
  53298. + # Append the command to remove temporary files to $cmds.
  53299. + eval cmds=\"\$cmds~\$RM $delfiles\"
  53300. + fi
  53301. - # Now create the libtool archive.
  53302. - case $output in
  53303. - *.la)
  53304. - old_library=
  53305. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  53306. - $show "creating $output"
  53307. + # Add any objects from preloaded convenience libraries
  53308. + if test -n "$dlprefiles"; then
  53309. + gentop="$output_objdir/${outputname}x"
  53310. + generated="$generated $gentop"
  53311. - # Preserve any variables that may affect compiler behavior
  53312. - for var in $variables_saved_for_relink; do
  53313. - if eval test -z \"\${$var+set}\"; then
  53314. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  53315. - elif eval var_value=\$$var; test -z "$var_value"; then
  53316. - relink_command="$var=; export $var; $relink_command"
  53317. - else
  53318. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  53319. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  53320. + func_extract_archives $gentop $dlprefiles
  53321. + libobjs="$libobjs $func_extract_archives_result"
  53322. + test "X$libobjs" = "X " && libobjs=
  53323. fi
  53324. - done
  53325. - # Quote the link command for shipping.
  53326. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  53327. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
  53328. - if test "$hardcode_automatic" = yes ; then
  53329. - relink_command=
  53330. - fi
  53331. + save_ifs="$IFS"; IFS='~'
  53332. + for cmd in $cmds; do
  53333. + IFS="$save_ifs"
  53334. + eval cmd=\"$cmd\"
  53335. + $opt_silent || {
  53336. + func_quote_for_expand "$cmd"
  53337. + eval "func_echo $func_quote_for_expand_result"
  53338. + }
  53339. + $opt_dry_run || eval "$cmd" || {
  53340. + lt_exit=$?
  53341. - # Only create the output if not a dry run.
  53342. - if test -z "$run"; then
  53343. - for installed in no yes; do
  53344. - if test "$installed" = yes; then
  53345. - if test -z "$install_libdir"; then
  53346. - break
  53347. + # Restore the uninstalled library and exit
  53348. + if test "$mode" = relink; then
  53349. + ( cd "$output_objdir" && \
  53350. + $RM "${realname}T" && \
  53351. + $MV "${realname}U" "$realname" )
  53352. fi
  53353. - output="$output_objdir/$outputname"i
  53354. - # Replace all uninstalled libtool libraries with the installed ones
  53355. - newdependency_libs=
  53356. - for deplib in $dependency_libs; do
  53357. - case $deplib in
  53358. - *.la)
  53359. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  53360. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  53361. - if test -z "$libdir"; then
  53362. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  53363. - exit $EXIT_FAILURE
  53364. - fi
  53365. - newdependency_libs="$newdependency_libs $libdir/$name"
  53366. - ;;
  53367. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  53368. - esac
  53369. - done
  53370. - dependency_libs="$newdependency_libs"
  53371. - newdlfiles=
  53372. - for lib in $dlfiles; do
  53373. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  53374. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  53375. - if test -z "$libdir"; then
  53376. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  53377. - exit $EXIT_FAILURE
  53378. - fi
  53379. - newdlfiles="$newdlfiles $libdir/$name"
  53380. - done
  53381. - dlfiles="$newdlfiles"
  53382. - newdlprefiles=
  53383. - for lib in $dlprefiles; do
  53384. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  53385. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  53386. - if test -z "$libdir"; then
  53387. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  53388. - exit $EXIT_FAILURE
  53389. - fi
  53390. - newdlprefiles="$newdlprefiles $libdir/$name"
  53391. - done
  53392. - dlprefiles="$newdlprefiles"
  53393. - else
  53394. - newdlfiles=
  53395. - for lib in $dlfiles; do
  53396. - case $lib in
  53397. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  53398. - *) abs=`pwd`"/$lib" ;;
  53399. - esac
  53400. - newdlfiles="$newdlfiles $abs"
  53401. - done
  53402. - dlfiles="$newdlfiles"
  53403. - newdlprefiles=
  53404. - for lib in $dlprefiles; do
  53405. - case $lib in
  53406. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  53407. - *) abs=`pwd`"/$lib" ;;
  53408. - esac
  53409. - newdlprefiles="$newdlprefiles $abs"
  53410. - done
  53411. - dlprefiles="$newdlprefiles"
  53412. - fi
  53413. - $rm $output
  53414. - # place dlname in correct position for cygwin
  53415. - tdlname=$dlname
  53416. - case $host,$output,$installed,$module,$dlname in
  53417. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  53418. - esac
  53419. - $echo > $output "\
  53420. -# $outputname - a libtool library file
  53421. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  53422. -#
  53423. -# Please DO NOT delete this file!
  53424. -# It is necessary for linking the library.
  53425. -
  53426. -# The name that we can dlopen(3).
  53427. -dlname='$tdlname'
  53428. -
  53429. -# Names of this library.
  53430. -library_names='$library_names'
  53431. -
  53432. -# The name of the static archive.
  53433. -old_library='$old_library'
  53434. -
  53435. -# Libraries that this one depends upon.
  53436. -dependency_libs='$dependency_libs'
  53437. -# Version information for $libname.
  53438. -current=$current
  53439. -age=$age
  53440. -revision=$revision
  53441. + exit $lt_exit
  53442. + }
  53443. + done
  53444. + IFS="$save_ifs"
  53445. -# Is this an already installed library?
  53446. -installed=$installed
  53447. + # Restore the uninstalled library and exit
  53448. + if test "$mode" = relink; then
  53449. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  53450. -# Should we warn about portability when linking against -modules?
  53451. -shouldnotlink=$module
  53452. + if test -n "$convenience"; then
  53453. + if test -z "$whole_archive_flag_spec"; then
  53454. + func_show_eval '${RM}r "$gentop"'
  53455. + fi
  53456. + fi
  53457. -# Files to dlopen/dlpreopen
  53458. -dlopen='$dlfiles'
  53459. -dlpreopen='$dlprefiles'
  53460. + exit $EXIT_SUCCESS
  53461. + fi
  53462. -# Directory that this library needs to be installed in:
  53463. -libdir='$install_libdir'"
  53464. - if test "$installed" = no && test "$need_relink" = yes; then
  53465. - $echo >> $output "\
  53466. -relink_command=\"$relink_command\""
  53467. + # Create links to the real library.
  53468. + for linkname in $linknames; do
  53469. + if test "$realname" != "$linkname"; then
  53470. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  53471. fi
  53472. done
  53473. - fi
  53474. - # Do a symbolic link so that the libtool archive can be found in
  53475. - # LD_LIBRARY_PATH before the program is installed.
  53476. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  53477. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  53478. + # If -module or -export-dynamic was specified, set the dlname.
  53479. + if test "$module" = yes || test "$export_dynamic" = yes; then
  53480. + # On all known operating systems, these are identical.
  53481. + dlname="$soname"
  53482. + fi
  53483. + fi
  53484. ;;
  53485. - esac
  53486. - exit $EXIT_SUCCESS
  53487. - ;;
  53488. - # libtool install mode
  53489. - install)
  53490. - modename="$modename: install"
  53491. + obj)
  53492. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  53493. + func_warning "\`-dlopen' is ignored for objects"
  53494. + fi
  53495. - # There may be an optional sh(1) argument at the beginning of
  53496. - # install_prog (especially on Windows NT).
  53497. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  53498. - # Allow the use of GNU shtool's install command.
  53499. - $echo "X$nonopt" | grep shtool > /dev/null; then
  53500. - # Aesthetically quote it.
  53501. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  53502. - case $arg in
  53503. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  53504. - arg="\"$arg\""
  53505. - ;;
  53506. + case " $deplibs" in
  53507. + *\ -l* | *\ -L*)
  53508. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  53509. esac
  53510. - install_prog="$arg "
  53511. - arg="$1"
  53512. - shift
  53513. - else
  53514. - install_prog=
  53515. - arg=$nonopt
  53516. - fi
  53517. - # The real first argument should be the name of the installation program.
  53518. - # Aesthetically quote it.
  53519. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  53520. - case $arg in
  53521. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  53522. - arg="\"$arg\""
  53523. - ;;
  53524. - esac
  53525. - install_prog="$install_prog$arg"
  53526. + test -n "$rpath" && \
  53527. + func_warning "\`-rpath' is ignored for objects"
  53528. +
  53529. + test -n "$xrpath" && \
  53530. + func_warning "\`-R' is ignored for objects"
  53531. +
  53532. + test -n "$vinfo" && \
  53533. + func_warning "\`-version-info' is ignored for objects"
  53534. +
  53535. + test -n "$release" && \
  53536. + func_warning "\`-release' is ignored for objects"
  53537. - # We need to accept at least all the BSD install flags.
  53538. - dest=
  53539. - files=
  53540. - opts=
  53541. - prev=
  53542. - install_type=
  53543. - isdir=no
  53544. - stripme=
  53545. - for arg
  53546. - do
  53547. - if test -n "$dest"; then
  53548. - files="$files $dest"
  53549. - dest=$arg
  53550. - continue
  53551. - fi
  53552. + case $output in
  53553. + *.lo)
  53554. + test -n "$objs$old_deplibs" && \
  53555. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  53556. - case $arg in
  53557. - -d) isdir=yes ;;
  53558. - -f)
  53559. - case " $install_prog " in
  53560. - *[\\\ /]cp\ *) ;;
  53561. - *) prev=$arg ;;
  53562. - esac
  53563. - ;;
  53564. - -g | -m | -o) prev=$arg ;;
  53565. - -s)
  53566. - stripme=" -s"
  53567. - continue
  53568. - ;;
  53569. - -*)
  53570. + libobj=$output
  53571. + func_lo2o "$libobj"
  53572. + obj=$func_lo2o_result
  53573. ;;
  53574. *)
  53575. - # If the previous option needed an argument, then skip it.
  53576. - if test -n "$prev"; then
  53577. - prev=
  53578. - else
  53579. - dest=$arg
  53580. - continue
  53581. - fi
  53582. + libobj=
  53583. + obj="$output"
  53584. ;;
  53585. esac
  53586. - # Aesthetically quote the argument.
  53587. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  53588. - case $arg in
  53589. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  53590. - arg="\"$arg\""
  53591. - ;;
  53592. - esac
  53593. - install_prog="$install_prog $arg"
  53594. - done
  53595. + # Delete the old objects.
  53596. + $opt_dry_run || $RM $obj $libobj
  53597. - if test -z "$install_prog"; then
  53598. - $echo "$modename: you must specify an install program" 1>&2
  53599. - $echo "$help" 1>&2
  53600. - exit $EXIT_FAILURE
  53601. - fi
  53602. + # Objects from convenience libraries. This assumes
  53603. + # single-version convenience libraries. Whenever we create
  53604. + # different ones for PIC/non-PIC, this we'll have to duplicate
  53605. + # the extraction.
  53606. + reload_conv_objs=
  53607. + gentop=
  53608. + # reload_cmds runs $LD directly, so let us get rid of
  53609. + # -Wl from whole_archive_flag_spec and hope we can get by with
  53610. + # turning comma into space..
  53611. + wl=
  53612. - if test -n "$prev"; then
  53613. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  53614. - $echo "$help" 1>&2
  53615. - exit $EXIT_FAILURE
  53616. - fi
  53617. + if test -n "$convenience"; then
  53618. + if test -n "$whole_archive_flag_spec"; then
  53619. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  53620. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  53621. + else
  53622. + gentop="$output_objdir/${obj}x"
  53623. + generated="$generated $gentop"
  53624. - if test -z "$files"; then
  53625. - if test -z "$dest"; then
  53626. - $echo "$modename: no file or destination specified" 1>&2
  53627. - else
  53628. - $echo "$modename: you must specify a destination" 1>&2
  53629. + func_extract_archives $gentop $convenience
  53630. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  53631. + fi
  53632. fi
  53633. - $echo "$help" 1>&2
  53634. - exit $EXIT_FAILURE
  53635. - fi
  53636. - # Strip any trailing slash from the destination.
  53637. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  53638. + # Create the old-style object.
  53639. + 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
  53640. - # Check to see that the destination is a directory.
  53641. - test -d "$dest" && isdir=yes
  53642. - if test "$isdir" = yes; then
  53643. - destdir="$dest"
  53644. - destname=
  53645. - else
  53646. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  53647. - test "X$destdir" = "X$dest" && destdir=.
  53648. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  53649. + output="$obj"
  53650. + func_execute_cmds "$reload_cmds" 'exit $?'
  53651. - # Not a directory, so check to see that there is only one file specified.
  53652. - set dummy $files
  53653. - if test "$#" -gt 2; then
  53654. - $echo "$modename: \`$dest' is not a directory" 1>&2
  53655. - $echo "$help" 1>&2
  53656. - exit $EXIT_FAILURE
  53657. + # Exit if we aren't doing a library object file.
  53658. + if test -z "$libobj"; then
  53659. + if test -n "$gentop"; then
  53660. + func_show_eval '${RM}r "$gentop"'
  53661. + fi
  53662. +
  53663. + exit $EXIT_SUCCESS
  53664. fi
  53665. - fi
  53666. - case $destdir in
  53667. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  53668. - *)
  53669. - for file in $files; do
  53670. - case $file in
  53671. - *.lo) ;;
  53672. - *)
  53673. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  53674. - $echo "$help" 1>&2
  53675. - exit $EXIT_FAILURE
  53676. - ;;
  53677. - esac
  53678. - done
  53679. +
  53680. + if test "$build_libtool_libs" != yes; then
  53681. + if test -n "$gentop"; then
  53682. + func_show_eval '${RM}r "$gentop"'
  53683. + fi
  53684. +
  53685. + # Create an invalid libtool object if no PIC, so that we don't
  53686. + # accidentally link it into a program.
  53687. + # $show "echo timestamp > $libobj"
  53688. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  53689. + exit $EXIT_SUCCESS
  53690. + fi
  53691. +
  53692. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  53693. + # Only do commands if we really have different PIC objects.
  53694. + reload_objs="$libobjs $reload_conv_objs"
  53695. + output="$libobj"
  53696. + func_execute_cmds "$reload_cmds" 'exit $?'
  53697. + fi
  53698. +
  53699. + if test -n "$gentop"; then
  53700. + func_show_eval '${RM}r "$gentop"'
  53701. + fi
  53702. +
  53703. + exit $EXIT_SUCCESS
  53704. ;;
  53705. - esac
  53706. - # This variable tells wrapper scripts just to set variables rather
  53707. - # than running their programs.
  53708. - libtool_install_magic="$magic"
  53709. + prog)
  53710. + case $host in
  53711. + *cygwin*) func_stripname '' '.exe' "$output"
  53712. + output=$func_stripname_result.exe;;
  53713. + esac
  53714. + test -n "$vinfo" && \
  53715. + func_warning "\`-version-info' is ignored for programs"
  53716. - staticlibs=
  53717. - future_libdirs=
  53718. - current_libdirs=
  53719. - for file in $files; do
  53720. + test -n "$release" && \
  53721. + func_warning "\`-release' is ignored for programs"
  53722. - # Do each installation.
  53723. - case $file in
  53724. - *.$libext)
  53725. - # Do the static libraries later.
  53726. - staticlibs="$staticlibs $file"
  53727. + test "$preload" = yes \
  53728. + && test "$dlopen_support" = unknown \
  53729. + && test "$dlopen_self" = unknown \
  53730. + && test "$dlopen_self_static" = unknown && \
  53731. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  53732. +
  53733. + case $host in
  53734. + *-*-rhapsody* | *-*-darwin1.[012])
  53735. + # On Rhapsody replace the C library is the System framework
  53736. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  53737. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  53738. ;;
  53739. + esac
  53740. - *.la)
  53741. - # Check to see that this really is a libtool archive.
  53742. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  53743. - else
  53744. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  53745. - $echo "$help" 1>&2
  53746. - exit $EXIT_FAILURE
  53747. + case $host in
  53748. + *-*-darwin*)
  53749. + # Don't allow lazy linking, it breaks C++ global constructors
  53750. + # But is supposedly fixed on 10.4 or later (yay!).
  53751. + if test "$tagname" = CXX ; then
  53752. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  53753. + 10.[0123])
  53754. + compile_command="$compile_command ${wl}-bind_at_load"
  53755. + finalize_command="$finalize_command ${wl}-bind_at_load"
  53756. + ;;
  53757. + esac
  53758. fi
  53759. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  53760. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  53761. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  53762. + ;;
  53763. + esac
  53764. - library_names=
  53765. - old_library=
  53766. - relink_command=
  53767. - # If there is no directory component, then add one.
  53768. - case $file in
  53769. - */* | *\\*) . $file ;;
  53770. - *) . ./$file ;;
  53771. - esac
  53772. - # Add the libdir to current_libdirs if it is the destination.
  53773. - if test "X$destdir" = "X$libdir"; then
  53774. - case "$current_libdirs " in
  53775. - *" $libdir "*) ;;
  53776. - *) current_libdirs="$current_libdirs $libdir" ;;
  53777. + # move library search paths that coincide with paths to not yet
  53778. + # installed libraries to the beginning of the library search list
  53779. + new_libs=
  53780. + for path in $notinst_path; do
  53781. + case " $new_libs " in
  53782. + *" -L$path/$objdir "*) ;;
  53783. + *)
  53784. + case " $compile_deplibs " in
  53785. + *" -L$path/$objdir "*)
  53786. + new_libs="$new_libs -L$path/$objdir" ;;
  53787. esac
  53788. - else
  53789. - # Note the libdir as a future libdir.
  53790. - case "$future_libdirs " in
  53791. - *" $libdir "*) ;;
  53792. - *) future_libdirs="$future_libdirs $libdir" ;;
  53793. + ;;
  53794. + esac
  53795. + done
  53796. + for deplib in $compile_deplibs; do
  53797. + case $deplib in
  53798. + -L*)
  53799. + case " $new_libs " in
  53800. + *" $deplib "*) ;;
  53801. + *) new_libs="$new_libs $deplib" ;;
  53802. esac
  53803. - fi
  53804. + ;;
  53805. + *) new_libs="$new_libs $deplib" ;;
  53806. + esac
  53807. + done
  53808. + compile_deplibs="$new_libs"
  53809. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  53810. - test "X$dir" = "X$file/" && dir=
  53811. - dir="$dir$objdir"
  53812. - if test -n "$relink_command"; then
  53813. - # Determine the prefix the user has applied to our future dir.
  53814. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  53815. + compile_command="$compile_command $compile_deplibs"
  53816. + finalize_command="$finalize_command $finalize_deplibs"
  53817. - # Don't allow the user to place us outside of our expected
  53818. - # location b/c this prevents finding dependent libraries that
  53819. - # are installed to the same prefix.
  53820. - # At present, this check doesn't affect windows .dll's that
  53821. - # are installed into $libdir/../bin (currently, that works fine)
  53822. - # but it's something to keep an eye on.
  53823. - if test "$inst_prefix_dir" = "$destdir"; then
  53824. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  53825. - exit $EXIT_FAILURE
  53826. - fi
  53827. + if test -n "$rpath$xrpath"; then
  53828. + # If the user specified any rpath flags, then add them.
  53829. + for libdir in $rpath $xrpath; do
  53830. + # This is the magic to use -rpath.
  53831. + case "$finalize_rpath " in
  53832. + *" $libdir "*) ;;
  53833. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  53834. + esac
  53835. + done
  53836. + fi
  53837. - if test -n "$inst_prefix_dir"; then
  53838. - # Stick the inst_prefix_dir data into the link command.
  53839. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
  53840. + # Now hardcode the library paths
  53841. + rpath=
  53842. + hardcode_libdirs=
  53843. + for libdir in $compile_rpath $finalize_rpath; do
  53844. + if test -n "$hardcode_libdir_flag_spec"; then
  53845. + if test -n "$hardcode_libdir_separator"; then
  53846. + if test -z "$hardcode_libdirs"; then
  53847. + hardcode_libdirs="$libdir"
  53848. + else
  53849. + # Just accumulate the unique libdirs.
  53850. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  53851. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  53852. + ;;
  53853. + *)
  53854. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  53855. + ;;
  53856. + esac
  53857. + fi
  53858. else
  53859. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
  53860. + eval flag=\"$hardcode_libdir_flag_spec\"
  53861. + rpath="$rpath $flag"
  53862. fi
  53863. + elif test -n "$runpath_var"; then
  53864. + case "$perm_rpath " in
  53865. + *" $libdir "*) ;;
  53866. + *) perm_rpath="$perm_rpath $libdir" ;;
  53867. + esac
  53868. + fi
  53869. + case $host in
  53870. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  53871. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  53872. + case :$dllsearchpath: in
  53873. + *":$libdir:"*) ;;
  53874. + ::) dllsearchpath=$libdir;;
  53875. + *) dllsearchpath="$dllsearchpath:$libdir";;
  53876. + esac
  53877. + case :$dllsearchpath: in
  53878. + *":$testbindir:"*) ;;
  53879. + ::) dllsearchpath=$testbindir;;
  53880. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  53881. + esac
  53882. + ;;
  53883. + esac
  53884. + done
  53885. + # Substitute the hardcoded libdirs into the rpath.
  53886. + if test -n "$hardcode_libdir_separator" &&
  53887. + test -n "$hardcode_libdirs"; then
  53888. + libdir="$hardcode_libdirs"
  53889. + eval rpath=\" $hardcode_libdir_flag_spec\"
  53890. + fi
  53891. + compile_rpath="$rpath"
  53892. - $echo "$modename: warning: relinking \`$file'" 1>&2
  53893. - $show "$relink_command"
  53894. - if $run eval "$relink_command"; then :
  53895. + rpath=
  53896. + hardcode_libdirs=
  53897. + for libdir in $finalize_rpath; do
  53898. + if test -n "$hardcode_libdir_flag_spec"; then
  53899. + if test -n "$hardcode_libdir_separator"; then
  53900. + if test -z "$hardcode_libdirs"; then
  53901. + hardcode_libdirs="$libdir"
  53902. + else
  53903. + # Just accumulate the unique libdirs.
  53904. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  53905. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  53906. + ;;
  53907. + *)
  53908. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  53909. + ;;
  53910. + esac
  53911. + fi
  53912. else
  53913. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  53914. - exit $EXIT_FAILURE
  53915. + eval flag=\"$hardcode_libdir_flag_spec\"
  53916. + rpath="$rpath $flag"
  53917. fi
  53918. + elif test -n "$runpath_var"; then
  53919. + case "$finalize_perm_rpath " in
  53920. + *" $libdir "*) ;;
  53921. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  53922. + esac
  53923. fi
  53924. + done
  53925. + # Substitute the hardcoded libdirs into the rpath.
  53926. + if test -n "$hardcode_libdir_separator" &&
  53927. + test -n "$hardcode_libdirs"; then
  53928. + libdir="$hardcode_libdirs"
  53929. + eval rpath=\" $hardcode_libdir_flag_spec\"
  53930. + fi
  53931. + finalize_rpath="$rpath"
  53932. - # See the names of the shared library.
  53933. - set dummy $library_names
  53934. - if test -n "$2"; then
  53935. - realname="$2"
  53936. - shift
  53937. - shift
  53938. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  53939. + # Transform all the library objects into standard objects.
  53940. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53941. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53942. + fi
  53943. - srcname="$realname"
  53944. - test -n "$relink_command" && srcname="$realname"T
  53945. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  53946. - # Install the shared library and build the symlinks.
  53947. - $show "$install_prog $dir/$srcname $destdir/$realname"
  53948. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  53949. - if test -n "$stripme" && test -n "$striplib"; then
  53950. - $show "$striplib $destdir/$realname"
  53951. - $run eval "$striplib $destdir/$realname" || exit $?
  53952. - fi
  53953. + # template prelinking step
  53954. + if test -n "$prelink_cmds"; then
  53955. + func_execute_cmds "$prelink_cmds" 'exit $?'
  53956. + fi
  53957. - if test "$#" -gt 0; then
  53958. - # Delete the old symlinks, and create new ones.
  53959. - # Try `ln -sf' first, because the `ln' binary might depend on
  53960. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  53961. - # so we also need to try rm && ln -s.
  53962. - for linkname
  53963. - do
  53964. - if test "$linkname" != "$realname"; then
  53965. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  53966. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  53967. - fi
  53968. - done
  53969. - fi
  53970. + wrappers_required=yes
  53971. + case $host in
  53972. + *cygwin* | *mingw* )
  53973. + if test "$build_libtool_libs" != yes; then
  53974. + wrappers_required=no
  53975. + fi
  53976. + ;;
  53977. + *cegcc)
  53978. + # Disable wrappers for cegcc, we are cross compiling anyway.
  53979. + wrappers_required=no
  53980. + ;;
  53981. + *)
  53982. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  53983. + wrappers_required=no
  53984. + fi
  53985. + ;;
  53986. + esac
  53987. + if test "$wrappers_required" = no; then
  53988. + # Replace the output file specification.
  53989. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  53990. + link_command="$compile_command$compile_rpath"
  53991. - # Do each command in the postinstall commands.
  53992. - lib="$destdir/$realname"
  53993. - cmds=$postinstall_cmds
  53994. - save_ifs="$IFS"; IFS='~'
  53995. - for cmd in $cmds; do
  53996. - IFS="$save_ifs"
  53997. - eval cmd=\"$cmd\"
  53998. - $show "$cmd"
  53999. - $run eval "$cmd" || {
  54000. - lt_exit=$?
  54001. -
  54002. - # Restore the uninstalled library and exit
  54003. - if test "$mode" = relink; then
  54004. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  54005. - fi
  54006. + # We have no uninstalled library dependencies, so finalize right now.
  54007. + exit_status=0
  54008. + func_show_eval "$link_command" 'exit_status=$?'
  54009. - exit $lt_exit
  54010. - }
  54011. - done
  54012. - IFS="$save_ifs"
  54013. + # Delete the generated files.
  54014. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  54015. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  54016. fi
  54017. - # Install the pseudo-library for information purposes.
  54018. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  54019. - instname="$dir/$name"i
  54020. - $show "$install_prog $instname $destdir/$name"
  54021. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  54022. -
  54023. - # Maybe install the static library, too.
  54024. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  54025. - ;;
  54026. + exit $exit_status
  54027. + fi
  54028. - *.lo)
  54029. - # Install (i.e. copy) a libtool object.
  54030. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  54031. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  54032. + fi
  54033. + if test -n "$finalize_shlibpath"; then
  54034. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  54035. + fi
  54036. - # Figure out destination file name, if it wasn't already specified.
  54037. - if test -n "$destname"; then
  54038. - destfile="$destdir/$destname"
  54039. - else
  54040. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  54041. - destfile="$destdir/$destfile"
  54042. + compile_var=
  54043. + finalize_var=
  54044. + if test -n "$runpath_var"; then
  54045. + if test -n "$perm_rpath"; then
  54046. + # We should set the runpath_var.
  54047. + rpath=
  54048. + for dir in $perm_rpath; do
  54049. + rpath="$rpath$dir:"
  54050. + done
  54051. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  54052. fi
  54053. -
  54054. - # Deduce the name of the destination old-style object file.
  54055. - case $destfile in
  54056. - *.lo)
  54057. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  54058. - ;;
  54059. - *.$objext)
  54060. - staticdest="$destfile"
  54061. - destfile=
  54062. - ;;
  54063. - *)
  54064. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  54065. - $echo "$help" 1>&2
  54066. - exit $EXIT_FAILURE
  54067. - ;;
  54068. - esac
  54069. -
  54070. - # Install the libtool object if requested.
  54071. - if test -n "$destfile"; then
  54072. - $show "$install_prog $file $destfile"
  54073. - $run eval "$install_prog $file $destfile" || exit $?
  54074. + if test -n "$finalize_perm_rpath"; then
  54075. + # We should set the runpath_var.
  54076. + rpath=
  54077. + for dir in $finalize_perm_rpath; do
  54078. + rpath="$rpath$dir:"
  54079. + done
  54080. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  54081. fi
  54082. + fi
  54083. - # Install the old object if enabled.
  54084. - if test "$build_old_libs" = yes; then
  54085. - # Deduce the name of the old-style object file.
  54086. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  54087. -
  54088. - $show "$install_prog $staticobj $staticdest"
  54089. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  54090. - fi
  54091. + if test "$no_install" = yes; then
  54092. + # We don't need to create a wrapper script.
  54093. + link_command="$compile_var$compile_command$compile_rpath"
  54094. + # Replace the output file specification.
  54095. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  54096. + # Delete the old output file.
  54097. + $opt_dry_run || $RM $output
  54098. + # Link the executable and exit
  54099. + func_show_eval "$link_command" 'exit $?'
  54100. exit $EXIT_SUCCESS
  54101. - ;;
  54102. + fi
  54103. - *)
  54104. - # Figure out destination file name, if it wasn't already specified.
  54105. - if test -n "$destname"; then
  54106. - destfile="$destdir/$destname"
  54107. + if test "$hardcode_action" = relink; then
  54108. + # Fast installation is not supported
  54109. + link_command="$compile_var$compile_command$compile_rpath"
  54110. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  54111. +
  54112. + func_warning "this platform does not like uninstalled shared libraries"
  54113. + func_warning "\`$output' will be relinked during installation"
  54114. + else
  54115. + if test "$fast_install" != no; then
  54116. + link_command="$finalize_var$compile_command$finalize_rpath"
  54117. + if test "$fast_install" = yes; then
  54118. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  54119. + else
  54120. + # fast_install is set to needless
  54121. + relink_command=
  54122. + fi
  54123. else
  54124. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  54125. - destfile="$destdir/$destfile"
  54126. + link_command="$compile_var$compile_command$compile_rpath"
  54127. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  54128. fi
  54129. + fi
  54130. - # If the file is missing, and there is a .exe on the end, strip it
  54131. - # because it is most likely a libtool script we actually want to
  54132. - # install
  54133. - stripped_ext=""
  54134. - case $file in
  54135. - *.exe)
  54136. - if test ! -f "$file"; then
  54137. - file=`$echo $file|${SED} 's,.exe$,,'`
  54138. - stripped_ext=".exe"
  54139. - fi
  54140. - ;;
  54141. - esac
  54142. -
  54143. - # Do a test to see if this is really a libtool program.
  54144. - case $host in
  54145. - *cygwin*|*mingw*)
  54146. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  54147. - ;;
  54148. - *)
  54149. - wrapper=$file
  54150. - ;;
  54151. - esac
  54152. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  54153. - notinst_deplibs=
  54154. - relink_command=
  54155. -
  54156. - # Note that it is not necessary on cygwin/mingw to append a dot to
  54157. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  54158. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  54159. - # `FILE.' does not work on cygwin managed mounts.
  54160. - #
  54161. - # If there is no directory component, then add one.
  54162. - case $wrapper in
  54163. - */* | *\\*) . ${wrapper} ;;
  54164. - *) . ./${wrapper} ;;
  54165. - esac
  54166. -
  54167. - # Check the variables that should have been set.
  54168. - if test -z "$notinst_deplibs"; then
  54169. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  54170. - exit $EXIT_FAILURE
  54171. - fi
  54172. + # Replace the output file specification.
  54173. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  54174. - finalize=yes
  54175. - for lib in $notinst_deplibs; do
  54176. - # Check to see that each library is installed.
  54177. - libdir=
  54178. - if test -f "$lib"; then
  54179. - # If there is no directory component, then add one.
  54180. - case $lib in
  54181. - */* | *\\*) . $lib ;;
  54182. - *) . ./$lib ;;
  54183. - esac
  54184. - fi
  54185. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  54186. - if test -n "$libdir" && test ! -f "$libfile"; then
  54187. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  54188. - finalize=no
  54189. - fi
  54190. - done
  54191. + # Delete the old output files.
  54192. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  54193. - relink_command=
  54194. - # Note that it is not necessary on cygwin/mingw to append a dot to
  54195. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  54196. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  54197. - # `FILE.' does not work on cygwin managed mounts.
  54198. - #
  54199. - # If there is no directory component, then add one.
  54200. - case $wrapper in
  54201. - */* | *\\*) . ${wrapper} ;;
  54202. - *) . ./${wrapper} ;;
  54203. - esac
  54204. + func_show_eval "$link_command" 'exit $?'
  54205. - outputname=
  54206. - if test "$fast_install" = no && test -n "$relink_command"; then
  54207. - if test "$finalize" = yes && test -z "$run"; then
  54208. - tmpdir=`func_mktempdir`
  54209. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  54210. - outputname="$tmpdir/$file"
  54211. - # Replace the output file specification.
  54212. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
  54213. + # Now create the wrapper script.
  54214. + func_verbose "creating $output"
  54215. - $show "$relink_command"
  54216. - if $run eval "$relink_command"; then :
  54217. - else
  54218. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  54219. - ${rm}r "$tmpdir"
  54220. - continue
  54221. - fi
  54222. - file="$outputname"
  54223. - else
  54224. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  54225. - fi
  54226. + # Quote the relink command for shipping.
  54227. + if test -n "$relink_command"; then
  54228. + # Preserve any variables that may affect compiler behavior
  54229. + for var in $variables_saved_for_relink; do
  54230. + if eval test -z \"\${$var+set}\"; then
  54231. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  54232. + elif eval var_value=\$$var; test -z "$var_value"; then
  54233. + relink_command="$var=; export $var; $relink_command"
  54234. else
  54235. - # Install the binary that we compiled earlier.
  54236. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  54237. + func_quote_for_eval "$var_value"
  54238. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  54239. fi
  54240. - fi
  54241. + done
  54242. + relink_command="(cd `pwd`; $relink_command)"
  54243. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  54244. + fi
  54245. - # remove .exe since cygwin /usr/bin/install will append another
  54246. - # one anyway
  54247. - case $install_prog,$host in
  54248. - */usr/bin/install*,*cygwin*)
  54249. - case $file:$destfile in
  54250. - *.exe:*.exe)
  54251. - # this is ok
  54252. - ;;
  54253. - *.exe:*)
  54254. - destfile=$destfile.exe
  54255. - ;;
  54256. - *:*.exe)
  54257. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  54258. - ;;
  54259. - esac
  54260. - ;;
  54261. + # Quote $ECHO for shipping.
  54262. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  54263. + case $progpath in
  54264. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  54265. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  54266. + esac
  54267. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  54268. + else
  54269. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  54270. + fi
  54271. +
  54272. + # Only actually do things if not in dry run mode.
  54273. + $opt_dry_run || {
  54274. + # win32 will think the script is a binary if it has
  54275. + # a .exe suffix, so we strip it off here.
  54276. + case $output in
  54277. + *.exe) func_stripname '' '.exe' "$output"
  54278. + output=$func_stripname_result ;;
  54279. + esac
  54280. + # test for cygwin because mv fails w/o .exe extensions
  54281. + case $host in
  54282. + *cygwin*)
  54283. + exeext=.exe
  54284. + func_stripname '' '.exe' "$outputname"
  54285. + outputname=$func_stripname_result ;;
  54286. + *) exeext= ;;
  54287. esac
  54288. - $show "$install_prog$stripme $file $destfile"
  54289. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  54290. - test -n "$outputname" && ${rm}r "$tmpdir"
  54291. - ;;
  54292. - esac
  54293. - done
  54294. + case $host in
  54295. + *cygwin* | *mingw* )
  54296. + func_dirname_and_basename "$output" "" "."
  54297. + output_name=$func_basename_result
  54298. + output_path=$func_dirname_result
  54299. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  54300. + cwrapper="$output_path/$output_name.exe"
  54301. + $RM $cwrappersource $cwrapper
  54302. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  54303. +
  54304. + func_emit_cwrapperexe_src > $cwrappersource
  54305. +
  54306. + # The wrapper executable is built using the $host compiler,
  54307. + # because it contains $host paths and files. If cross-
  54308. + # compiling, it, like the target executable, must be
  54309. + # executed on the $host or under an emulation environment.
  54310. + $opt_dry_run || {
  54311. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  54312. + $STRIP $cwrapper
  54313. + }
  54314. - for file in $staticlibs; do
  54315. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  54316. + # Now, create the wrapper script for func_source use:
  54317. + func_ltwrapper_scriptname $cwrapper
  54318. + $RM $func_ltwrapper_scriptname_result
  54319. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  54320. + $opt_dry_run || {
  54321. + # note: this script will not be executed, so do not chmod.
  54322. + if test "x$build" = "x$host" ; then
  54323. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  54324. + else
  54325. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  54326. + fi
  54327. + }
  54328. + ;;
  54329. + * )
  54330. + $RM $output
  54331. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  54332. - # Set up the ranlib parameters.
  54333. - oldlib="$destdir/$name"
  54334. + func_emit_wrapper no > $output
  54335. + chmod +x $output
  54336. + ;;
  54337. + esac
  54338. + }
  54339. + exit $EXIT_SUCCESS
  54340. + ;;
  54341. + esac
  54342. - $show "$install_prog $file $oldlib"
  54343. - $run eval "$install_prog \$file \$oldlib" || exit $?
  54344. + # See if we need to build an old-fashioned archive.
  54345. + for oldlib in $oldlibs; do
  54346. - if test -n "$stripme" && test -n "$old_striplib"; then
  54347. - $show "$old_striplib $oldlib"
  54348. - $run eval "$old_striplib $oldlib" || exit $?
  54349. + if test "$build_libtool_libs" = convenience; then
  54350. + oldobjs="$libobjs_save $symfileobj"
  54351. + addlibs="$convenience"
  54352. + build_libtool_libs=no
  54353. + else
  54354. + if test "$build_libtool_libs" = module; then
  54355. + oldobjs="$libobjs_save"
  54356. + build_libtool_libs=no
  54357. + else
  54358. + oldobjs="$old_deplibs $non_pic_objects"
  54359. + if test "$preload" = yes && test -f "$symfileobj"; then
  54360. + oldobjs="$oldobjs $symfileobj"
  54361. + fi
  54362. + fi
  54363. + addlibs="$old_convenience"
  54364. fi
  54365. - # Do each command in the postinstall commands.
  54366. - cmds=$old_postinstall_cmds
  54367. - save_ifs="$IFS"; IFS='~'
  54368. - for cmd in $cmds; do
  54369. - IFS="$save_ifs"
  54370. - eval cmd=\"$cmd\"
  54371. - $show "$cmd"
  54372. - $run eval "$cmd" || exit $?
  54373. - done
  54374. - IFS="$save_ifs"
  54375. - done
  54376. + if test -n "$addlibs"; then
  54377. + gentop="$output_objdir/${outputname}x"
  54378. + generated="$generated $gentop"
  54379. - if test -n "$future_libdirs"; then
  54380. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  54381. - fi
  54382. + func_extract_archives $gentop $addlibs
  54383. + oldobjs="$oldobjs $func_extract_archives_result"
  54384. + fi
  54385. - if test -n "$current_libdirs"; then
  54386. - # Maybe just do a dry run.
  54387. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  54388. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  54389. - else
  54390. - exit $EXIT_SUCCESS
  54391. - fi
  54392. - ;;
  54393. + # Do each command in the archive commands.
  54394. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  54395. + cmds=$old_archive_from_new_cmds
  54396. + else
  54397. - # libtool finish mode
  54398. - finish)
  54399. - modename="$modename: finish"
  54400. - libdirs="$nonopt"
  54401. - admincmds=
  54402. + # Add any objects from preloaded convenience libraries
  54403. + if test -n "$dlprefiles"; then
  54404. + gentop="$output_objdir/${outputname}x"
  54405. + generated="$generated $gentop"
  54406. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  54407. - for dir
  54408. - do
  54409. - libdirs="$libdirs $dir"
  54410. - done
  54411. + func_extract_archives $gentop $dlprefiles
  54412. + oldobjs="$oldobjs $func_extract_archives_result"
  54413. + fi
  54414. - for libdir in $libdirs; do
  54415. - if test -n "$finish_cmds"; then
  54416. - # Do each command in the finish commands.
  54417. - cmds=$finish_cmds
  54418. - save_ifs="$IFS"; IFS='~'
  54419. - for cmd in $cmds; do
  54420. - IFS="$save_ifs"
  54421. - eval cmd=\"$cmd\"
  54422. - $show "$cmd"
  54423. - $run eval "$cmd" || admincmds="$admincmds
  54424. - $cmd"
  54425. + # POSIX demands no paths to be encoded in archives. We have
  54426. + # to avoid creating archives with duplicate basenames if we
  54427. + # might have to extract them afterwards, e.g., when creating a
  54428. + # static archive out of a convenience library, or when linking
  54429. + # the entirety of a libtool archive into another (currently
  54430. + # not supported by libtool).
  54431. + if (for obj in $oldobjs
  54432. + do
  54433. + func_basename "$obj"
  54434. + $ECHO "$func_basename_result"
  54435. + done | sort | sort -uc >/dev/null 2>&1); then
  54436. + :
  54437. + else
  54438. + $ECHO "copying selected object files to avoid basename conflicts..."
  54439. + gentop="$output_objdir/${outputname}x"
  54440. + generated="$generated $gentop"
  54441. + func_mkdir_p "$gentop"
  54442. + save_oldobjs=$oldobjs
  54443. + oldobjs=
  54444. + counter=1
  54445. + for obj in $save_oldobjs
  54446. + do
  54447. + func_basename "$obj"
  54448. + objbase="$func_basename_result"
  54449. + case " $oldobjs " in
  54450. + " ") oldobjs=$obj ;;
  54451. + *[\ /]"$objbase "*)
  54452. + while :; do
  54453. + # Make sure we don't pick an alternate name that also
  54454. + # overlaps.
  54455. + newobj=lt$counter-$objbase
  54456. + func_arith $counter + 1
  54457. + counter=$func_arith_result
  54458. + case " $oldobjs " in
  54459. + *[\ /]"$newobj "*) ;;
  54460. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  54461. + esac
  54462. + done
  54463. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  54464. + oldobjs="$oldobjs $gentop/$newobj"
  54465. + ;;
  54466. + *) oldobjs="$oldobjs $obj" ;;
  54467. + esac
  54468. done
  54469. - IFS="$save_ifs"
  54470. fi
  54471. - if test -n "$finish_eval"; then
  54472. - # Do the single finish_eval.
  54473. - eval cmds=\"$finish_eval\"
  54474. - $run eval "$cmds" || admincmds="$admincmds
  54475. - $cmds"
  54476. - fi
  54477. - done
  54478. - fi
  54479. -
  54480. - # Exit here if they wanted silent mode.
  54481. - test "$show" = : && exit $EXIT_SUCCESS
  54482. + eval cmds=\"$old_archive_cmds\"
  54483. - $echo "X----------------------------------------------------------------------" | $Xsed
  54484. - $echo "Libraries have been installed in:"
  54485. - for libdir in $libdirs; do
  54486. - $echo " $libdir"
  54487. + func_len " $cmds"
  54488. + len=$func_len_result
  54489. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  54490. + cmds=$old_archive_cmds
  54491. + else
  54492. + # the command line is too long to link in one step, link in parts
  54493. + func_verbose "using piecewise archive linking..."
  54494. + save_RANLIB=$RANLIB
  54495. + RANLIB=:
  54496. + objlist=
  54497. + concat_cmds=
  54498. + save_oldobjs=$oldobjs
  54499. + oldobjs=
  54500. + # Is there a better way of finding the last object in the list?
  54501. + for obj in $save_oldobjs
  54502. + do
  54503. + last_oldobj=$obj
  54504. + done
  54505. + eval test_cmds=\"$old_archive_cmds\"
  54506. + func_len " $test_cmds"
  54507. + len0=$func_len_result
  54508. + len=$len0
  54509. + for obj in $save_oldobjs
  54510. + do
  54511. + func_len " $obj"
  54512. + func_arith $len + $func_len_result
  54513. + len=$func_arith_result
  54514. + func_append objlist " $obj"
  54515. + if test "$len" -lt "$max_cmd_len"; then
  54516. + :
  54517. + else
  54518. + # the above command should be used before it gets too long
  54519. + oldobjs=$objlist
  54520. + if test "$obj" = "$last_oldobj" ; then
  54521. + RANLIB=$save_RANLIB
  54522. + fi
  54523. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  54524. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  54525. + objlist=
  54526. + len=$len0
  54527. + fi
  54528. + done
  54529. + RANLIB=$save_RANLIB
  54530. + oldobjs=$objlist
  54531. + if test "X$oldobjs" = "X" ; then
  54532. + eval cmds=\"\$concat_cmds\"
  54533. + else
  54534. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  54535. + fi
  54536. + fi
  54537. + fi
  54538. + func_execute_cmds "$cmds" 'exit $?'
  54539. done
  54540. - $echo
  54541. - $echo "If you ever happen to want to link against installed libraries"
  54542. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  54543. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  54544. - $echo "flag during linking and do at least one of the following:"
  54545. - if test -n "$shlibpath_var"; then
  54546. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  54547. - $echo " during execution"
  54548. - fi
  54549. - if test -n "$runpath_var"; then
  54550. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  54551. - $echo " during linking"
  54552. - fi
  54553. - if test -n "$hardcode_libdir_flag_spec"; then
  54554. - libdir=LIBDIR
  54555. - eval flag=\"$hardcode_libdir_flag_spec\"
  54556. -
  54557. - $echo " - use the \`$flag' linker flag"
  54558. - fi
  54559. - if test -n "$admincmds"; then
  54560. - $echo " - have your system administrator run these commands:$admincmds"
  54561. - fi
  54562. - if test -f /etc/ld.so.conf; then
  54563. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  54564. - fi
  54565. - $echo
  54566. - $echo "See any operating system documentation about shared libraries for"
  54567. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  54568. - $echo "X----------------------------------------------------------------------" | $Xsed
  54569. - exit $EXIT_SUCCESS
  54570. - ;;
  54571. - # libtool execute mode
  54572. - execute)
  54573. - modename="$modename: execute"
  54574. -
  54575. - # The first argument is the command name.
  54576. - cmd="$nonopt"
  54577. - if test -z "$cmd"; then
  54578. - $echo "$modename: you must specify a COMMAND" 1>&2
  54579. - $echo "$help"
  54580. - exit $EXIT_FAILURE
  54581. - fi
  54582. + test -n "$generated" && \
  54583. + func_show_eval "${RM}r$generated"
  54584. - # Handle -dlopen flags immediately.
  54585. - for file in $execute_dlfiles; do
  54586. - if test ! -f "$file"; then
  54587. - $echo "$modename: \`$file' is not a file" 1>&2
  54588. - $echo "$help" 1>&2
  54589. - exit $EXIT_FAILURE
  54590. - fi
  54591. + # Now create the libtool archive.
  54592. + case $output in
  54593. + *.la)
  54594. + old_library=
  54595. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  54596. + func_verbose "creating $output"
  54597. - dir=
  54598. - case $file in
  54599. - *.la)
  54600. - # Check to see that this really is a libtool archive.
  54601. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  54602. + # Preserve any variables that may affect compiler behavior
  54603. + for var in $variables_saved_for_relink; do
  54604. + if eval test -z \"\${$var+set}\"; then
  54605. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  54606. + elif eval var_value=\$$var; test -z "$var_value"; then
  54607. + relink_command="$var=; export $var; $relink_command"
  54608. else
  54609. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  54610. - $echo "$help" 1>&2
  54611. - exit $EXIT_FAILURE
  54612. + func_quote_for_eval "$var_value"
  54613. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  54614. fi
  54615. + done
  54616. + # Quote the link command for shipping.
  54617. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  54618. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  54619. + if test "$hardcode_automatic" = yes ; then
  54620. + relink_command=
  54621. + fi
  54622. - # Read the libtool library.
  54623. - dlname=
  54624. - library_names=
  54625. + # Only create the output if not a dry run.
  54626. + $opt_dry_run || {
  54627. + for installed in no yes; do
  54628. + if test "$installed" = yes; then
  54629. + if test -z "$install_libdir"; then
  54630. + break
  54631. + fi
  54632. + output="$output_objdir/$outputname"i
  54633. + # Replace all uninstalled libtool libraries with the installed ones
  54634. + newdependency_libs=
  54635. + for deplib in $dependency_libs; do
  54636. + case $deplib in
  54637. + *.la)
  54638. + func_basename "$deplib"
  54639. + name="$func_basename_result"
  54640. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  54641. + test -z "$libdir" && \
  54642. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  54643. + newdependency_libs="$newdependency_libs $libdir/$name"
  54644. + ;;
  54645. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  54646. + esac
  54647. + done
  54648. + dependency_libs="$newdependency_libs"
  54649. + newdlfiles=
  54650. +
  54651. + for lib in $dlfiles; do
  54652. + case $lib in
  54653. + *.la)
  54654. + func_basename "$lib"
  54655. + name="$func_basename_result"
  54656. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  54657. + test -z "$libdir" && \
  54658. + func_fatal_error "\`$lib' is not a valid libtool archive"
  54659. + newdlfiles="$newdlfiles $libdir/$name"
  54660. + ;;
  54661. + *) newdlfiles="$newdlfiles $lib" ;;
  54662. + esac
  54663. + done
  54664. + dlfiles="$newdlfiles"
  54665. + newdlprefiles=
  54666. + for lib in $dlprefiles; do
  54667. + case $lib in
  54668. + *.la)
  54669. + # Only pass preopened files to the pseudo-archive (for
  54670. + # eventual linking with the app. that links it) if we
  54671. + # didn't already link the preopened objects directly into
  54672. + # the library:
  54673. + func_basename "$lib"
  54674. + name="$func_basename_result"
  54675. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  54676. + test -z "$libdir" && \
  54677. + func_fatal_error "\`$lib' is not a valid libtool archive"
  54678. + newdlprefiles="$newdlprefiles $libdir/$name"
  54679. + ;;
  54680. + esac
  54681. + done
  54682. + dlprefiles="$newdlprefiles"
  54683. + else
  54684. + newdlfiles=
  54685. + for lib in $dlfiles; do
  54686. + case $lib in
  54687. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  54688. + *) abs=`pwd`"/$lib" ;;
  54689. + esac
  54690. + newdlfiles="$newdlfiles $abs"
  54691. + done
  54692. + dlfiles="$newdlfiles"
  54693. + newdlprefiles=
  54694. + for lib in $dlprefiles; do
  54695. + case $lib in
  54696. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  54697. + *) abs=`pwd`"/$lib" ;;
  54698. + esac
  54699. + newdlprefiles="$newdlprefiles $abs"
  54700. + done
  54701. + dlprefiles="$newdlprefiles"
  54702. + fi
  54703. + $RM $output
  54704. + # place dlname in correct position for cygwin
  54705. + tdlname=$dlname
  54706. + case $host,$output,$installed,$module,$dlname in
  54707. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  54708. + esac
  54709. + $ECHO > $output "\
  54710. +# $outputname - a libtool library file
  54711. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  54712. +#
  54713. +# Please DO NOT delete this file!
  54714. +# It is necessary for linking the library.
  54715. - # If there is no directory component, then add one.
  54716. - case $file in
  54717. - */* | *\\*) . $file ;;
  54718. - *) . ./$file ;;
  54719. - esac
  54720. +# The name that we can dlopen(3).
  54721. +dlname='$tdlname'
  54722. - # Skip this library if it cannot be dlopened.
  54723. - if test -z "$dlname"; then
  54724. - # Warn if it was a shared library.
  54725. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  54726. - continue
  54727. - fi
  54728. +# Names of this library.
  54729. +library_names='$library_names'
  54730. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  54731. - test "X$dir" = "X$file" && dir=.
  54732. +# The name of the static archive.
  54733. +old_library='$old_library'
  54734. - if test -f "$dir/$objdir/$dlname"; then
  54735. - dir="$dir/$objdir"
  54736. - else
  54737. - if test ! -f "$dir/$dlname"; then
  54738. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  54739. - exit $EXIT_FAILURE
  54740. - fi
  54741. - fi
  54742. - ;;
  54743. +# Linker flags that can not go in dependency_libs.
  54744. +inherited_linker_flags='$new_inherited_linker_flags'
  54745. - *.lo)
  54746. - # Just add the directory containing the .lo file.
  54747. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  54748. - test "X$dir" = "X$file" && dir=.
  54749. - ;;
  54750. +# Libraries that this one depends upon.
  54751. +dependency_libs='$dependency_libs'
  54752. - *)
  54753. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  54754. - continue
  54755. - ;;
  54756. - esac
  54757. +# Names of additional weak libraries provided by this library
  54758. +weak_library_names='$weak_libs'
  54759. - # Get the absolute pathname.
  54760. - absdir=`cd "$dir" && pwd`
  54761. - test -n "$absdir" && dir="$absdir"
  54762. +# Version information for $libname.
  54763. +current=$current
  54764. +age=$age
  54765. +revision=$revision
  54766. - # Now add the directory to shlibpath_var.
  54767. - if eval "test -z \"\$$shlibpath_var\""; then
  54768. - eval "$shlibpath_var=\"\$dir\""
  54769. - else
  54770. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  54771. - fi
  54772. - done
  54773. +# Is this an already installed library?
  54774. +installed=$installed
  54775. - # This variable tells wrapper scripts just to set shlibpath_var
  54776. - # rather than running their programs.
  54777. - libtool_execute_magic="$magic"
  54778. +# Should we warn about portability when linking against -modules?
  54779. +shouldnotlink=$module
  54780. - # Check if any of the arguments is a wrapper script.
  54781. - args=
  54782. - for file
  54783. - do
  54784. - case $file in
  54785. - -*) ;;
  54786. - *)
  54787. - # Do a test to see if this is really a libtool program.
  54788. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  54789. - # If there is no directory component, then add one.
  54790. - case $file in
  54791. - */* | *\\*) . $file ;;
  54792. - *) . ./$file ;;
  54793. - esac
  54794. +# Files to dlopen/dlpreopen
  54795. +dlopen='$dlfiles'
  54796. +dlpreopen='$dlprefiles'
  54797. - # Transform arg to wrapped name.
  54798. - file="$progdir/$program"
  54799. - fi
  54800. - ;;
  54801. - esac
  54802. - # Quote arguments (to preserve shell metacharacters).
  54803. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  54804. - args="$args \"$file\""
  54805. - done
  54806. +# Directory that this library needs to be installed in:
  54807. +libdir='$install_libdir'"
  54808. + if test "$installed" = no && test "$need_relink" = yes; then
  54809. + $ECHO >> $output "\
  54810. +relink_command=\"$relink_command\""
  54811. + fi
  54812. + done
  54813. + }
  54814. - if test -z "$run"; then
  54815. - if test -n "$shlibpath_var"; then
  54816. - # Export the shlibpath_var.
  54817. - eval "export $shlibpath_var"
  54818. - fi
  54819. + # Do a symbolic link so that the libtool archive can be found in
  54820. + # LD_LIBRARY_PATH before the program is installed.
  54821. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  54822. + ;;
  54823. + esac
  54824. + exit $EXIT_SUCCESS
  54825. +}
  54826. - # Restore saved environment variables
  54827. - for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  54828. - do
  54829. - eval "if test \"\${save_$lt_var+set}\" = set; then
  54830. - $lt_var=\$save_$lt_var; export $lt_var
  54831. - fi"
  54832. - done
  54833. +{ test "$mode" = link || test "$mode" = relink; } &&
  54834. + func_mode_link ${1+"$@"}
  54835. - # Now prepare to actually exec the command.
  54836. - exec_cmd="\$cmd$args"
  54837. - else
  54838. - # Display what would be done.
  54839. - if test -n "$shlibpath_var"; then
  54840. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  54841. - $echo "export $shlibpath_var"
  54842. - fi
  54843. - $echo "$cmd$args"
  54844. - exit $EXIT_SUCCESS
  54845. - fi
  54846. - ;;
  54847. - # libtool clean and uninstall mode
  54848. - clean | uninstall)
  54849. - modename="$modename: $mode"
  54850. - rm="$nonopt"
  54851. +# func_mode_uninstall arg...
  54852. +func_mode_uninstall ()
  54853. +{
  54854. + $opt_debug
  54855. + RM="$nonopt"
  54856. files=
  54857. rmforce=
  54858. exit_status=0
  54859. @@ -6513,30 +8209,28 @@
  54860. for arg
  54861. do
  54862. case $arg in
  54863. - -f) rm="$rm $arg"; rmforce=yes ;;
  54864. - -*) rm="$rm $arg" ;;
  54865. + -f) RM="$RM $arg"; rmforce=yes ;;
  54866. + -*) RM="$RM $arg" ;;
  54867. *) files="$files $arg" ;;
  54868. esac
  54869. done
  54870. - if test -z "$rm"; then
  54871. - $echo "$modename: you must specify an RM program" 1>&2
  54872. - $echo "$help" 1>&2
  54873. - exit $EXIT_FAILURE
  54874. - fi
  54875. + test -z "$RM" && \
  54876. + func_fatal_help "you must specify an RM program"
  54877. rmdirs=
  54878. origobjdir="$objdir"
  54879. for file in $files; do
  54880. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  54881. - if test "X$dir" = "X$file"; then
  54882. - dir=.
  54883. + func_dirname "$file" "" "."
  54884. + dir="$func_dirname_result"
  54885. + if test "X$dir" = X.; then
  54886. objdir="$origobjdir"
  54887. else
  54888. objdir="$dir/$origobjdir"
  54889. fi
  54890. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  54891. + func_basename "$file"
  54892. + name="$func_basename_result"
  54893. test "$mode" = uninstall && objdir="$dir"
  54894. # Remember objdir for removal later, being careful to avoid duplicates
  54895. @@ -6548,9 +8242,9 @@
  54896. fi
  54897. # Don't error if the file doesn't exist and rm -f was used.
  54898. - if (test -L "$file") >/dev/null 2>&1 \
  54899. - || (test -h "$file") >/dev/null 2>&1 \
  54900. - || test -f "$file"; then
  54901. + if { test -L "$file"; } >/dev/null 2>&1 ||
  54902. + { test -h "$file"; } >/dev/null 2>&1 ||
  54903. + test -f "$file"; then
  54904. :
  54905. elif test -d "$file"; then
  54906. exit_status=1
  54907. @@ -6564,8 +8258,8 @@
  54908. case $name in
  54909. *.la)
  54910. # Possibly a libtool archive, so verify it.
  54911. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  54912. - . $dir/$name
  54913. + if func_lalib_p "$file"; then
  54914. + func_source $dir/$name
  54915. # Delete the libtool libraries and symlinks.
  54916. for n in $library_names; do
  54917. @@ -6580,39 +8274,17 @@
  54918. *" $dlname "*) ;;
  54919. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  54920. esac
  54921. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  54922. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  54923. ;;
  54924. uninstall)
  54925. if test -n "$library_names"; then
  54926. # Do each command in the postuninstall commands.
  54927. - cmds=$postuninstall_cmds
  54928. - save_ifs="$IFS"; IFS='~'
  54929. - for cmd in $cmds; do
  54930. - IFS="$save_ifs"
  54931. - eval cmd=\"$cmd\"
  54932. - $show "$cmd"
  54933. - $run eval "$cmd"
  54934. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  54935. - exit_status=1
  54936. - fi
  54937. - done
  54938. - IFS="$save_ifs"
  54939. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  54940. fi
  54941. if test -n "$old_library"; then
  54942. # Do each command in the old_postuninstall commands.
  54943. - cmds=$old_postuninstall_cmds
  54944. - save_ifs="$IFS"; IFS='~'
  54945. - for cmd in $cmds; do
  54946. - IFS="$save_ifs"
  54947. - eval cmd=\"$cmd\"
  54948. - $show "$cmd"
  54949. - $run eval "$cmd"
  54950. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  54951. - exit_status=1
  54952. - fi
  54953. - done
  54954. - IFS="$save_ifs"
  54955. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  54956. fi
  54957. # FIXME: should reinstall the best remaining shared library.
  54958. ;;
  54959. @@ -6622,20 +8294,20 @@
  54960. *.lo)
  54961. # Possibly a libtool object, so verify it.
  54962. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  54963. + if func_lalib_p "$file"; then
  54964. # Read the .lo file
  54965. - . $dir/$name
  54966. + func_source $dir/$name
  54967. # Add PIC object to the list of files to remove.
  54968. - if test -n "$pic_object" \
  54969. - && test "$pic_object" != none; then
  54970. + if test -n "$pic_object" &&
  54971. + test "$pic_object" != none; then
  54972. rmfiles="$rmfiles $dir/$pic_object"
  54973. fi
  54974. # Add non-PIC object to the list of files to remove.
  54975. - if test -n "$non_pic_object" \
  54976. - && test "$non_pic_object" != none; then
  54977. + if test -n "$non_pic_object" &&
  54978. + test "$non_pic_object" != none; then
  54979. rmfiles="$rmfiles $dir/$non_pic_object"
  54980. fi
  54981. fi
  54982. @@ -6646,17 +8318,26 @@
  54983. noexename=$name
  54984. case $file in
  54985. *.exe)
  54986. - file=`$echo $file|${SED} 's,.exe$,,'`
  54987. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  54988. + func_stripname '' '.exe' "$file"
  54989. + file=$func_stripname_result
  54990. + func_stripname '' '.exe' "$name"
  54991. + noexename=$func_stripname_result
  54992. # $file with .exe has already been added to rmfiles,
  54993. # add $file without .exe
  54994. rmfiles="$rmfiles $file"
  54995. ;;
  54996. esac
  54997. # Do a test to see if this is a libtool program.
  54998. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  54999. - relink_command=
  55000. - . $dir/$noexename
  55001. + if func_ltwrapper_p "$file"; then
  55002. + if func_ltwrapper_executable_p "$file"; then
  55003. + func_ltwrapper_scriptname "$file"
  55004. + relink_command=
  55005. + func_source $func_ltwrapper_scriptname_result
  55006. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  55007. + else
  55008. + relink_command=
  55009. + func_source $dir/$noexename
  55010. + fi
  55011. # note $name still contains .exe if it was in $file originally
  55012. # as does the version of $file that was added into $rmfiles
  55013. @@ -6671,239 +8352,38 @@
  55014. fi
  55015. ;;
  55016. esac
  55017. - $show "$rm $rmfiles"
  55018. - $run $rm $rmfiles || exit_status=1
  55019. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  55020. done
  55021. objdir="$origobjdir"
  55022. # Try to remove the ${objdir}s in the directories where we deleted files
  55023. for dir in $rmdirs; do
  55024. if test -d "$dir"; then
  55025. - $show "rmdir $dir"
  55026. - $run rmdir $dir >/dev/null 2>&1
  55027. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  55028. fi
  55029. done
  55030. exit $exit_status
  55031. - ;;
  55032. +}
  55033. - "")
  55034. - $echo "$modename: you must specify a MODE" 1>&2
  55035. - $echo "$generic_help" 1>&2
  55036. - exit $EXIT_FAILURE
  55037. - ;;
  55038. - esac
  55039. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  55040. + func_mode_uninstall ${1+"$@"}
  55041. - if test -z "$exec_cmd"; then
  55042. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  55043. - $echo "$generic_help" 1>&2
  55044. - exit $EXIT_FAILURE
  55045. - fi
  55046. -fi # test -z "$show_help"
  55047. +test -z "$mode" && {
  55048. + help="$generic_help"
  55049. + func_fatal_help "you must specify a MODE"
  55050. +}
  55051. +
  55052. +test -z "$exec_cmd" && \
  55053. + func_fatal_help "invalid operation mode \`$mode'"
  55054. if test -n "$exec_cmd"; then
  55055. - eval exec $exec_cmd
  55056. + eval exec "$exec_cmd"
  55057. exit $EXIT_FAILURE
  55058. fi
  55059. -# We need to display help for each of the modes.
  55060. -case $mode in
  55061. -"") $echo \
  55062. -"Usage: $modename [OPTION]... [MODE-ARG]...
  55063. -
  55064. -Provide generalized library-building support services.
  55065. -
  55066. - --config show all configuration variables
  55067. - --debug enable verbose shell tracing
  55068. --n, --dry-run display commands without modifying any files
  55069. - --features display basic configuration information and exit
  55070. - --finish same as \`--mode=finish'
  55071. - --help display this help message and exit
  55072. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  55073. - --quiet same as \`--silent'
  55074. - --silent don't print informational messages
  55075. - --tag=TAG use configuration variables from tag TAG
  55076. - --version print version information
  55077. -
  55078. -MODE must be one of the following:
  55079. -
  55080. - clean remove files from the build directory
  55081. - compile compile a source file into a libtool object
  55082. - execute automatically set library path, then run a program
  55083. - finish complete the installation of libtool libraries
  55084. - install install libraries or executables
  55085. - link create a library or an executable
  55086. - uninstall remove libraries from an installed directory
  55087. -
  55088. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  55089. -a more detailed description of MODE.
  55090. -
  55091. -Report bugs to <bug-libtool@gnu.org>."
  55092. - exit $EXIT_SUCCESS
  55093. - ;;
  55094. -
  55095. -clean)
  55096. - $echo \
  55097. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  55098. -
  55099. -Remove files from the build directory.
  55100. -
  55101. -RM is the name of the program to use to delete files associated with each FILE
  55102. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  55103. -to RM.
  55104. -
  55105. -If FILE is a libtool library, object or program, all the files associated
  55106. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  55107. - ;;
  55108. -
  55109. -compile)
  55110. - $echo \
  55111. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  55112. -
  55113. -Compile a source file into a libtool library object.
  55114. -
  55115. -This mode accepts the following additional options:
  55116. -
  55117. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  55118. - -prefer-pic try to building PIC objects only
  55119. - -prefer-non-pic try to building non-PIC objects only
  55120. - -static always build a \`.o' file suitable for static linking
  55121. -
  55122. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  55123. -from the given SOURCEFILE.
  55124. -
  55125. -The output file name is determined by removing the directory component from
  55126. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  55127. -library object suffix, \`.lo'."
  55128. - ;;
  55129. -
  55130. -execute)
  55131. - $echo \
  55132. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  55133. -
  55134. -Automatically set library path, then run a program.
  55135. -
  55136. -This mode accepts the following additional options:
  55137. -
  55138. - -dlopen FILE add the directory containing FILE to the library path
  55139. -
  55140. -This mode sets the library path environment variable according to \`-dlopen'
  55141. -flags.
  55142. -
  55143. -If any of the ARGS are libtool executable wrappers, then they are translated
  55144. -into their corresponding uninstalled binary, and any of their required library
  55145. -directories are added to the library path.
  55146. -
  55147. -Then, COMMAND is executed, with ARGS as arguments."
  55148. - ;;
  55149. -
  55150. -finish)
  55151. - $echo \
  55152. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  55153. -
  55154. -Complete the installation of libtool libraries.
  55155. -
  55156. -Each LIBDIR is a directory that contains libtool libraries.
  55157. -
  55158. -The commands that this mode executes may require superuser privileges. Use
  55159. -the \`--dry-run' option if you just want to see what would be executed."
  55160. - ;;
  55161. -
  55162. -install)
  55163. - $echo \
  55164. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  55165. -
  55166. -Install executables or libraries.
  55167. -
  55168. -INSTALL-COMMAND is the installation command. The first component should be
  55169. -either the \`install' or \`cp' program.
  55170. -
  55171. -The rest of the components are interpreted as arguments to that command (only
  55172. -BSD-compatible install options are recognized)."
  55173. - ;;
  55174. -
  55175. -link)
  55176. - $echo \
  55177. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  55178. -
  55179. -Link object files or libraries together to form another library, or to
  55180. -create an executable program.
  55181. +exit $exit_status
  55182. -LINK-COMMAND is a command using the C compiler that you would use to create
  55183. -a program from several object files.
  55184. -
  55185. -The following components of LINK-COMMAND are treated specially:
  55186. -
  55187. - -all-static do not do any dynamic linking at all
  55188. - -avoid-version do not add a version suffix if possible
  55189. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  55190. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  55191. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  55192. - -export-symbols SYMFILE
  55193. - try to export only the symbols listed in SYMFILE
  55194. - -export-symbols-regex REGEX
  55195. - try to export only the symbols matching REGEX
  55196. - -LLIBDIR search LIBDIR for required installed libraries
  55197. - -lNAME OUTPUT-FILE requires the installed library libNAME
  55198. - -module build a library that can dlopened
  55199. - -no-fast-install disable the fast-install mode
  55200. - -no-install link a not-installable executable
  55201. - -no-undefined declare that a library does not refer to external symbols
  55202. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  55203. - -objectlist FILE Use a list of object files found in FILE to specify objects
  55204. - -precious-files-regex REGEX
  55205. - don't remove output files matching REGEX
  55206. - -release RELEASE specify package release information
  55207. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  55208. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  55209. - -static do not do any dynamic linking of uninstalled libtool libraries
  55210. - -static-libtool-libs
  55211. - do not do any dynamic linking of libtool libraries
  55212. - -version-info CURRENT[:REVISION[:AGE]]
  55213. - specify library version info [each variable defaults to 0]
  55214. -
  55215. -All other options (arguments beginning with \`-') are ignored.
  55216. -
  55217. -Every other argument is treated as a filename. Files ending in \`.la' are
  55218. -treated as uninstalled libtool libraries, other files are standard or library
  55219. -object files.
  55220. -
  55221. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  55222. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  55223. -required, except when creating a convenience library.
  55224. -
  55225. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  55226. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  55227. -
  55228. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  55229. -is created, otherwise an executable program is created."
  55230. - ;;
  55231. -
  55232. -uninstall)
  55233. - $echo \
  55234. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  55235. -
  55236. -Remove libraries from an installation directory.
  55237. -
  55238. -RM is the name of the program to use to delete files associated with each FILE
  55239. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  55240. -to RM.
  55241. -
  55242. -If FILE is a libtool library, all the files associated with it are deleted.
  55243. -Otherwise, only FILE itself is deleted using RM."
  55244. - ;;
  55245. -
  55246. -*)
  55247. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  55248. - $echo "$help" 1>&2
  55249. - exit $EXIT_FAILURE
  55250. - ;;
  55251. -esac
  55252. -
  55253. -$echo
  55254. -$echo "Try \`$modename --help' for more information about other modes."
  55255. -
  55256. -exit $?
  55257. # The TAGs below are defined such that we never get into a situation
  55258. # in which we disable both kinds of libraries. Given conflicting
  55259. @@ -6917,14 +8397,17 @@
  55260. # configuration. But we'll never go from static-only to shared-only.
  55261. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  55262. -disable_libs=shared
  55263. +build_libtool_libs=no
  55264. +build_old_libs=yes
  55265. # ### END LIBTOOL TAG CONFIG: disable-shared
  55266. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  55267. -disable_libs=static
  55268. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  55269. # ### END LIBTOOL TAG CONFIG: disable-static
  55270. # Local Variables:
  55271. # mode:shell-script
  55272. # sh-indentation:2
  55273. # End:
  55274. +# vi:sw=2
  55275. +
  55276. diff -Nur icecast-2.3.2.orig/m4/libtool.m4 icecast-2.3.2/m4/libtool.m4
  55277. --- icecast-2.3.2.orig/m4/libtool.m4 1970-01-01 01:00:00.000000000 +0100
  55278. +++ icecast-2.3.2/m4/libtool.m4 2010-02-18 21:27:29.616856377 +0100
  55279. @@ -0,0 +1,7377 @@
  55280. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  55281. +#
  55282. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  55283. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  55284. +# Written by Gordon Matzigkeit, 1996
  55285. +#
  55286. +# This file is free software; the Free Software Foundation gives
  55287. +# unlimited permission to copy and/or distribute it, with or without
  55288. +# modifications, as long as this notice is preserved.
  55289. +
  55290. +m4_define([_LT_COPYING], [dnl
  55291. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  55292. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  55293. +# Written by Gordon Matzigkeit, 1996
  55294. +#
  55295. +# This file is part of GNU Libtool.
  55296. +#
  55297. +# GNU Libtool is free software; you can redistribute it and/or
  55298. +# modify it under the terms of the GNU General Public License as
  55299. +# published by the Free Software Foundation; either version 2 of
  55300. +# the License, or (at your option) any later version.
  55301. +#
  55302. +# As a special exception to the GNU General Public License,
  55303. +# if you distribute this file as part of a program or library that
  55304. +# is built using GNU Libtool, you may include this file under the
  55305. +# same distribution terms that you use for the rest of that program.
  55306. +#
  55307. +# GNU Libtool is distributed in the hope that it will be useful,
  55308. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  55309. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  55310. +# GNU General Public License for more details.
  55311. +#
  55312. +# You should have received a copy of the GNU General Public License
  55313. +# along with GNU Libtool; see the file COPYING. If not, a copy
  55314. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  55315. +# obtained by writing to the Free Software Foundation, Inc.,
  55316. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  55317. +])
  55318. +
  55319. +# serial 56 LT_INIT
  55320. +
  55321. +
  55322. +# LT_PREREQ(VERSION)
  55323. +# ------------------
  55324. +# Complain and exit if this libtool version is less that VERSION.
  55325. +m4_defun([LT_PREREQ],
  55326. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  55327. + [m4_default([$3],
  55328. + [m4_fatal([Libtool version $1 or higher is required],
  55329. + 63)])],
  55330. + [$2])])
  55331. +
  55332. +
  55333. +# _LT_CHECK_BUILDDIR
  55334. +# ------------------
  55335. +# Complain if the absolute build directory name contains unusual characters
  55336. +m4_defun([_LT_CHECK_BUILDDIR],
  55337. +[case `pwd` in
  55338. + *\ * | *\ *)
  55339. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  55340. +esac
  55341. +])
  55342. +
  55343. +
  55344. +# LT_INIT([OPTIONS])
  55345. +# ------------------
  55346. +AC_DEFUN([LT_INIT],
  55347. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  55348. +AC_BEFORE([$0], [LT_LANG])dnl
  55349. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  55350. +AC_BEFORE([$0], [LTDL_INIT])dnl
  55351. +m4_require([_LT_CHECK_BUILDDIR])dnl
  55352. +
  55353. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  55354. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  55355. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  55356. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  55357. +dnl unless we require an AC_DEFUNed macro:
  55358. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  55359. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  55360. +AC_REQUIRE([LTVERSION_VERSION])dnl
  55361. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  55362. +m4_require([_LT_PROG_LTMAIN])dnl
  55363. +
  55364. +dnl Parse OPTIONS
  55365. +_LT_SET_OPTIONS([$0], [$1])
  55366. +
  55367. +# This can be used to rebuild libtool when needed
  55368. +LIBTOOL_DEPS="$ltmain"
  55369. +
  55370. +# Always use our own libtool.
  55371. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  55372. +AC_SUBST(LIBTOOL)dnl
  55373. +
  55374. +_LT_SETUP
  55375. +
  55376. +# Only expand once:
  55377. +m4_define([LT_INIT])
  55378. +])# LT_INIT
  55379. +
  55380. +# Old names:
  55381. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  55382. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  55383. +dnl aclocal-1.4 backwards compatibility:
  55384. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  55385. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  55386. +
  55387. +
  55388. +# _LT_CC_BASENAME(CC)
  55389. +# -------------------
  55390. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  55391. +m4_defun([_LT_CC_BASENAME],
  55392. +[for cc_temp in $1""; do
  55393. + case $cc_temp in
  55394. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  55395. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  55396. + \-*) ;;
  55397. + *) break;;
  55398. + esac
  55399. +done
  55400. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  55401. +])
  55402. +
  55403. +
  55404. +# _LT_FILEUTILS_DEFAULTS
  55405. +# ----------------------
  55406. +# It is okay to use these file commands and assume they have been set
  55407. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  55408. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  55409. +[: ${CP="cp -f"}
  55410. +: ${MV="mv -f"}
  55411. +: ${RM="rm -f"}
  55412. +])# _LT_FILEUTILS_DEFAULTS
  55413. +
  55414. +
  55415. +# _LT_SETUP
  55416. +# ---------
  55417. +m4_defun([_LT_SETUP],
  55418. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  55419. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  55420. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  55421. +_LT_DECL([], [host], [0])dnl
  55422. +_LT_DECL([], [host_os], [0])dnl
  55423. +dnl
  55424. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  55425. +_LT_DECL([], [build], [0])dnl
  55426. +_LT_DECL([], [build_os], [0])dnl
  55427. +dnl
  55428. +AC_REQUIRE([AC_PROG_CC])dnl
  55429. +AC_REQUIRE([LT_PATH_LD])dnl
  55430. +AC_REQUIRE([LT_PATH_NM])dnl
  55431. +dnl
  55432. +AC_REQUIRE([AC_PROG_LN_S])dnl
  55433. +test -z "$LN_S" && LN_S="ln -s"
  55434. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  55435. +dnl
  55436. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  55437. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  55438. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  55439. +dnl
  55440. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  55441. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  55442. +m4_require([_LT_CMD_RELOAD])dnl
  55443. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  55444. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  55445. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  55446. +
  55447. +_LT_CONFIG_LIBTOOL_INIT([
  55448. +# See if we are running on zsh, and set the options which allow our
  55449. +# commands through without removal of \ escapes INIT.
  55450. +if test -n "\${ZSH_VERSION+set}" ; then
  55451. + setopt NO_GLOB_SUBST
  55452. +fi
  55453. +])
  55454. +if test -n "${ZSH_VERSION+set}" ; then
  55455. + setopt NO_GLOB_SUBST
  55456. +fi
  55457. +
  55458. +_LT_CHECK_OBJDIR
  55459. +
  55460. +m4_require([_LT_TAG_COMPILER])dnl
  55461. +_LT_PROG_ECHO_BACKSLASH
  55462. +
  55463. +case $host_os in
  55464. +aix3*)
  55465. + # AIX sometimes has problems with the GCC collect2 program. For some
  55466. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  55467. + # vanish in a puff of smoke.
  55468. + if test "X${COLLECT_NAMES+set}" != Xset; then
  55469. + COLLECT_NAMES=
  55470. + export COLLECT_NAMES
  55471. + fi
  55472. + ;;
  55473. +esac
  55474. +
  55475. +# Sed substitution that helps us do robust quoting. It backslashifies
  55476. +# metacharacters that are still active within double-quoted strings.
  55477. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  55478. +
  55479. +# Same as above, but do not quote variable references.
  55480. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  55481. +
  55482. +# Sed substitution to delay expansion of an escaped shell variable in a
  55483. +# double_quote_subst'ed string.
  55484. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  55485. +
  55486. +# Sed substitution to delay expansion of an escaped single quote.
  55487. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  55488. +
  55489. +# Sed substitution to avoid accidental globbing in evaled expressions
  55490. +no_glob_subst='s/\*/\\\*/g'
  55491. +
  55492. +# Global variables:
  55493. +ofile=libtool
  55494. +can_build_shared=yes
  55495. +
  55496. +# All known linkers require a `.a' archive for static linking (except MSVC,
  55497. +# which needs '.lib').
  55498. +libext=a
  55499. +
  55500. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  55501. +
  55502. +old_CC="$CC"
  55503. +old_CFLAGS="$CFLAGS"
  55504. +
  55505. +# Set sane defaults for various variables
  55506. +test -z "$CC" && CC=cc
  55507. +test -z "$LTCC" && LTCC=$CC
  55508. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  55509. +test -z "$LD" && LD=ld
  55510. +test -z "$ac_objext" && ac_objext=o
  55511. +
  55512. +_LT_CC_BASENAME([$compiler])
  55513. +
  55514. +# Only perform the check for file, if the check method requires it
  55515. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  55516. +case $deplibs_check_method in
  55517. +file_magic*)
  55518. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  55519. + _LT_PATH_MAGIC
  55520. + fi
  55521. + ;;
  55522. +esac
  55523. +
  55524. +# Use C for the default configuration in the libtool script
  55525. +LT_SUPPORTED_TAG([CC])
  55526. +_LT_LANG_C_CONFIG
  55527. +_LT_LANG_DEFAULT_CONFIG
  55528. +_LT_CONFIG_COMMANDS
  55529. +])# _LT_SETUP
  55530. +
  55531. +
  55532. +# _LT_PROG_LTMAIN
  55533. +# ---------------
  55534. +# Note that this code is called both from `configure', and `config.status'
  55535. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  55536. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  55537. +# so we pass a copy along to make sure it has a sensible value anyway.
  55538. +m4_defun([_LT_PROG_LTMAIN],
  55539. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  55540. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  55541. +ltmain="$ac_aux_dir/ltmain.sh"
  55542. +])# _LT_PROG_LTMAIN
  55543. +
  55544. +
  55545. +## ------------------------------------- ##
  55546. +## Accumulate code for creating libtool. ##
  55547. +## ------------------------------------- ##
  55548. +
  55549. +# So that we can recreate a full libtool script including additional
  55550. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  55551. +# in macros and then make a single call at the end using the `libtool'
  55552. +# label.
  55553. +
  55554. +
  55555. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  55556. +# ----------------------------------------
  55557. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  55558. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  55559. +[m4_ifval([$1],
  55560. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  55561. + [$1
  55562. +])])])
  55563. +
  55564. +# Initialize.
  55565. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  55566. +
  55567. +
  55568. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  55569. +# ------------------------------
  55570. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  55571. +m4_define([_LT_CONFIG_LIBTOOL],
  55572. +[m4_ifval([$1],
  55573. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  55574. + [$1
  55575. +])])])
  55576. +
  55577. +# Initialize.
  55578. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  55579. +
  55580. +
  55581. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  55582. +# -----------------------------------------------------
  55583. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  55584. +[_LT_CONFIG_LIBTOOL([$1])
  55585. +_LT_CONFIG_LIBTOOL_INIT([$2])
  55586. +])
  55587. +
  55588. +
  55589. +# _LT_FORMAT_COMMENT([COMMENT])
  55590. +# -----------------------------
  55591. +# Add leading comment marks to the start of each line, and a trailing
  55592. +# full-stop to the whole comment if one is not present already.
  55593. +m4_define([_LT_FORMAT_COMMENT],
  55594. +[m4_ifval([$1], [
  55595. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  55596. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  55597. +)])
  55598. +
  55599. +
  55600. +
  55601. +## ------------------------ ##
  55602. +## FIXME: Eliminate VARNAME ##
  55603. +## ------------------------ ##
  55604. +
  55605. +
  55606. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  55607. +# -------------------------------------------------------------------
  55608. +# CONFIGNAME is the name given to the value in the libtool script.
  55609. +# VARNAME is the (base) name used in the configure script.
  55610. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  55611. +# VARNAME. Any other value will be used directly.
  55612. +m4_define([_LT_DECL],
  55613. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  55614. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  55615. + [m4_ifval([$1], [$1], [$2])])
  55616. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  55617. + m4_ifval([$4],
  55618. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  55619. + lt_dict_add_subkey([lt_decl_dict], [$2],
  55620. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  55621. +])
  55622. +
  55623. +
  55624. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  55625. +# --------------------------------------------------------
  55626. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  55627. +
  55628. +
  55629. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  55630. +# ------------------------------------------------
  55631. +m4_define([lt_decl_tag_varnames],
  55632. +[_lt_decl_filter([tagged?], [yes], $@)])
  55633. +
  55634. +
  55635. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  55636. +# ---------------------------------------------------------
  55637. +m4_define([_lt_decl_filter],
  55638. +[m4_case([$#],
  55639. + [0], [m4_fatal([$0: too few arguments: $#])],
  55640. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  55641. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  55642. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  55643. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  55644. +])
  55645. +
  55646. +
  55647. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  55648. +# --------------------------------------------------
  55649. +m4_define([lt_decl_quote_varnames],
  55650. +[_lt_decl_filter([value], [1], $@)])
  55651. +
  55652. +
  55653. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  55654. +# ---------------------------------------------------
  55655. +m4_define([lt_decl_dquote_varnames],
  55656. +[_lt_decl_filter([value], [2], $@)])
  55657. +
  55658. +
  55659. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  55660. +# ---------------------------------------------------
  55661. +m4_define([lt_decl_varnames_tagged],
  55662. +[m4_assert([$# <= 2])dnl
  55663. +_$0(m4_quote(m4_default([$1], [[, ]])),
  55664. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  55665. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  55666. +m4_define([_lt_decl_varnames_tagged],
  55667. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  55668. +
  55669. +
  55670. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  55671. +# ------------------------------------------------
  55672. +m4_define([lt_decl_all_varnames],
  55673. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  55674. + m4_if([$2], [],
  55675. + m4_quote(lt_decl_varnames),
  55676. + m4_quote(m4_shift($@))))[]dnl
  55677. +])
  55678. +m4_define([_lt_decl_all_varnames],
  55679. +[lt_join($@, lt_decl_varnames_tagged([$1],
  55680. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  55681. +])
  55682. +
  55683. +
  55684. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  55685. +# ------------------------------------
  55686. +# Quote a variable value, and forward it to `config.status' so that its
  55687. +# declaration there will have the same value as in `configure'. VARNAME
  55688. +# must have a single quote delimited value for this to work.
  55689. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  55690. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  55691. +
  55692. +
  55693. +# _LT_CONFIG_STATUS_DECLARATIONS
  55694. +# ------------------------------
  55695. +# We delimit libtool config variables with single quotes, so when
  55696. +# we write them to config.status, we have to be sure to quote all
  55697. +# embedded single quotes properly. In configure, this macro expands
  55698. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  55699. +#
  55700. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  55701. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  55702. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  55703. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  55704. +
  55705. +
  55706. +# _LT_LIBTOOL_TAGS
  55707. +# ----------------
  55708. +# Output comment and list of tags supported by the script
  55709. +m4_defun([_LT_LIBTOOL_TAGS],
  55710. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  55711. +available_tags="_LT_TAGS"dnl
  55712. +])
  55713. +
  55714. +
  55715. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  55716. +# -----------------------------------
  55717. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  55718. +# expand to a commented shell variable setting:
  55719. +#
  55720. +# # Some comment about what VAR is for.
  55721. +# visible_name=$lt_internal_name
  55722. +m4_define([_LT_LIBTOOL_DECLARE],
  55723. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  55724. + [description])))[]dnl
  55725. +m4_pushdef([_libtool_name],
  55726. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  55727. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  55728. + [0], [_libtool_name=[$]$1],
  55729. + [1], [_libtool_name=$lt_[]$1],
  55730. + [2], [_libtool_name=$lt_[]$1],
  55731. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  55732. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  55733. +])
  55734. +
  55735. +
  55736. +# _LT_LIBTOOL_CONFIG_VARS
  55737. +# -----------------------
  55738. +# Produce commented declarations of non-tagged libtool config variables
  55739. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  55740. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  55741. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  55742. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  55743. +[m4_foreach([_lt_var],
  55744. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  55745. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  55746. +
  55747. +
  55748. +# _LT_LIBTOOL_TAG_VARS(TAG)
  55749. +# -------------------------
  55750. +m4_define([_LT_LIBTOOL_TAG_VARS],
  55751. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  55752. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  55753. +
  55754. +
  55755. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  55756. +# ------------------------------
  55757. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  55758. +
  55759. +
  55760. +# _LT_CONFIG_COMMANDS
  55761. +# -------------------
  55762. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  55763. +# variables for single and double quote escaping we saved from calls
  55764. +# to _LT_DECL, we can put quote escaped variables declarations
  55765. +# into `config.status', and then the shell code to quote escape them in
  55766. +# for loops in `config.status'. Finally, any additional code accumulated
  55767. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  55768. +m4_defun([_LT_CONFIG_COMMANDS],
  55769. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  55770. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  55771. + dnl instead of duplicating it all over again into config.status,
  55772. + dnl then we will have config.status run $CONFIG_LT later, so it
  55773. + dnl needs to know what name is stored there:
  55774. + [AC_CONFIG_COMMANDS([libtool],
  55775. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  55776. + dnl If the libtool generation code is destined for config.status,
  55777. + dnl expand the accumulated commands and init code now:
  55778. + [AC_CONFIG_COMMANDS([libtool],
  55779. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  55780. +])#_LT_CONFIG_COMMANDS
  55781. +
  55782. +
  55783. +# Initialize.
  55784. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  55785. +[
  55786. +
  55787. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  55788. +# if CDPATH is set.
  55789. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  55790. +
  55791. +sed_quote_subst='$sed_quote_subst'
  55792. +double_quote_subst='$double_quote_subst'
  55793. +delay_variable_subst='$delay_variable_subst'
  55794. +_LT_CONFIG_STATUS_DECLARATIONS
  55795. +LTCC='$LTCC'
  55796. +LTCFLAGS='$LTCFLAGS'
  55797. +compiler='$compiler_DEFAULT'
  55798. +
  55799. +# Quote evaled strings.
  55800. +for var in lt_decl_all_varnames([[ \
  55801. +]], lt_decl_quote_varnames); do
  55802. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  55803. + *[[\\\\\\\`\\"\\\$]]*)
  55804. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  55805. + ;;
  55806. + *)
  55807. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  55808. + ;;
  55809. + esac
  55810. +done
  55811. +
  55812. +# Double-quote double-evaled strings.
  55813. +for var in lt_decl_all_varnames([[ \
  55814. +]], lt_decl_dquote_varnames); do
  55815. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  55816. + *[[\\\\\\\`\\"\\\$]]*)
  55817. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  55818. + ;;
  55819. + *)
  55820. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  55821. + ;;
  55822. + esac
  55823. +done
  55824. +
  55825. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  55826. +case \$lt_ECHO in
  55827. +*'\\\[$]0 --fallback-echo"')dnl "
  55828. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  55829. + ;;
  55830. +esac
  55831. +
  55832. +_LT_OUTPUT_LIBTOOL_INIT
  55833. +])
  55834. +
  55835. +
  55836. +# LT_OUTPUT
  55837. +# ---------
  55838. +# This macro allows early generation of the libtool script (before
  55839. +# AC_OUTPUT is called), incase it is used in configure for compilation
  55840. +# tests.
  55841. +AC_DEFUN([LT_OUTPUT],
  55842. +[: ${CONFIG_LT=./config.lt}
  55843. +AC_MSG_NOTICE([creating $CONFIG_LT])
  55844. +cat >"$CONFIG_LT" <<_LTEOF
  55845. +#! $SHELL
  55846. +# Generated by $as_me.
  55847. +# Run this file to recreate a libtool stub with the current configuration.
  55848. +
  55849. +lt_cl_silent=false
  55850. +SHELL=\${CONFIG_SHELL-$SHELL}
  55851. +_LTEOF
  55852. +
  55853. +cat >>"$CONFIG_LT" <<\_LTEOF
  55854. +AS_SHELL_SANITIZE
  55855. +_AS_PREPARE
  55856. +
  55857. +exec AS_MESSAGE_FD>&1
  55858. +exec AS_MESSAGE_LOG_FD>>config.log
  55859. +{
  55860. + echo
  55861. + AS_BOX([Running $as_me.])
  55862. +} >&AS_MESSAGE_LOG_FD
  55863. +
  55864. +lt_cl_help="\
  55865. +\`$as_me' creates a local libtool stub from the current configuration,
  55866. +for use in further configure time tests before the real libtool is
  55867. +generated.
  55868. +
  55869. +Usage: $[0] [[OPTIONS]]
  55870. +
  55871. + -h, --help print this help, then exit
  55872. + -V, --version print version number, then exit
  55873. + -q, --quiet do not print progress messages
  55874. + -d, --debug don't remove temporary files
  55875. +
  55876. +Report bugs to <bug-libtool@gnu.org>."
  55877. +
  55878. +lt_cl_version="\
  55879. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  55880. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  55881. +configured by $[0], generated by m4_PACKAGE_STRING.
  55882. +
  55883. +Copyright (C) 2008 Free Software Foundation, Inc.
  55884. +This config.lt script is free software; the Free Software Foundation
  55885. +gives unlimited permision to copy, distribute and modify it."
  55886. +
  55887. +while test $[#] != 0
  55888. +do
  55889. + case $[1] in
  55890. + --version | --v* | -V )
  55891. + echo "$lt_cl_version"; exit 0 ;;
  55892. + --help | --h* | -h )
  55893. + echo "$lt_cl_help"; exit 0 ;;
  55894. + --debug | --d* | -d )
  55895. + debug=: ;;
  55896. + --quiet | --q* | --silent | --s* | -q )
  55897. + lt_cl_silent=: ;;
  55898. +
  55899. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  55900. +Try \`$[0] --help' for more information.]) ;;
  55901. +
  55902. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  55903. +Try \`$[0] --help' for more information.]) ;;
  55904. + esac
  55905. + shift
  55906. +done
  55907. +
  55908. +if $lt_cl_silent; then
  55909. + exec AS_MESSAGE_FD>/dev/null
  55910. +fi
  55911. +_LTEOF
  55912. +
  55913. +cat >>"$CONFIG_LT" <<_LTEOF
  55914. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  55915. +_LTEOF
  55916. +
  55917. +cat >>"$CONFIG_LT" <<\_LTEOF
  55918. +AC_MSG_NOTICE([creating $ofile])
  55919. +_LT_OUTPUT_LIBTOOL_COMMANDS
  55920. +AS_EXIT(0)
  55921. +_LTEOF
  55922. +chmod +x "$CONFIG_LT"
  55923. +
  55924. +# configure is writing to config.log, but config.lt does its own redirection,
  55925. +# appending to config.log, which fails on DOS, as config.log is still kept
  55926. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  55927. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  55928. +if test "$no_create" != yes; then
  55929. + lt_cl_success=:
  55930. + test "$silent" = yes &&
  55931. + lt_config_lt_args="$lt_config_lt_args --quiet"
  55932. + exec AS_MESSAGE_LOG_FD>/dev/null
  55933. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  55934. + exec AS_MESSAGE_LOG_FD>>config.log
  55935. + $lt_cl_success || AS_EXIT(1)
  55936. +fi
  55937. +])# LT_OUTPUT
  55938. +
  55939. +
  55940. +# _LT_CONFIG(TAG)
  55941. +# ---------------
  55942. +# If TAG is the built-in tag, create an initial libtool script with a
  55943. +# default configuration from the untagged config vars. Otherwise add code
  55944. +# to config.status for appending the configuration named by TAG from the
  55945. +# matching tagged config vars.
  55946. +m4_defun([_LT_CONFIG],
  55947. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  55948. +_LT_CONFIG_SAVE_COMMANDS([
  55949. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  55950. + m4_if(_LT_TAG, [C], [
  55951. + # See if we are running on zsh, and set the options which allow our
  55952. + # commands through without removal of \ escapes.
  55953. + if test -n "${ZSH_VERSION+set}" ; then
  55954. + setopt NO_GLOB_SUBST
  55955. + fi
  55956. +
  55957. + cfgfile="${ofile}T"
  55958. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  55959. + $RM "$cfgfile"
  55960. +
  55961. + cat <<_LT_EOF >> "$cfgfile"
  55962. +#! $SHELL
  55963. +
  55964. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  55965. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  55966. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  55967. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  55968. +#
  55969. +_LT_COPYING
  55970. +_LT_LIBTOOL_TAGS
  55971. +
  55972. +# ### BEGIN LIBTOOL CONFIG
  55973. +_LT_LIBTOOL_CONFIG_VARS
  55974. +_LT_LIBTOOL_TAG_VARS
  55975. +# ### END LIBTOOL CONFIG
  55976. +
  55977. +_LT_EOF
  55978. +
  55979. + case $host_os in
  55980. + aix3*)
  55981. + cat <<\_LT_EOF >> "$cfgfile"
  55982. +# AIX sometimes has problems with the GCC collect2 program. For some
  55983. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  55984. +# vanish in a puff of smoke.
  55985. +if test "X${COLLECT_NAMES+set}" != Xset; then
  55986. + COLLECT_NAMES=
  55987. + export COLLECT_NAMES
  55988. +fi
  55989. +_LT_EOF
  55990. + ;;
  55991. + esac
  55992. +
  55993. + _LT_PROG_LTMAIN
  55994. +
  55995. + # We use sed instead of cat because bash on DJGPP gets confused if
  55996. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  55997. + # text mode, it properly converts lines to CR/LF. This bash problem
  55998. + # is reportedly fixed, but why not run on old versions too?
  55999. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  56000. + || (rm -f "$cfgfile"; exit 1)
  56001. +
  56002. + _LT_PROG_XSI_SHELLFNS
  56003. +
  56004. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  56005. + || (rm -f "$cfgfile"; exit 1)
  56006. +
  56007. + mv -f "$cfgfile" "$ofile" ||
  56008. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  56009. + chmod +x "$ofile"
  56010. +],
  56011. +[cat <<_LT_EOF >> "$ofile"
  56012. +
  56013. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  56014. +dnl in a comment (ie after a #).
  56015. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  56016. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  56017. +# ### END LIBTOOL TAG CONFIG: $1
  56018. +_LT_EOF
  56019. +])dnl /m4_if
  56020. +],
  56021. +[m4_if([$1], [], [
  56022. + PACKAGE='$PACKAGE'
  56023. + VERSION='$VERSION'
  56024. + TIMESTAMP='$TIMESTAMP'
  56025. + RM='$RM'
  56026. + ofile='$ofile'], [])
  56027. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  56028. +])# _LT_CONFIG
  56029. +
  56030. +
  56031. +# LT_SUPPORTED_TAG(TAG)
  56032. +# ---------------------
  56033. +# Trace this macro to discover what tags are supported by the libtool
  56034. +# --tag option, using:
  56035. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  56036. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  56037. +
  56038. +
  56039. +# C support is built-in for now
  56040. +m4_define([_LT_LANG_C_enabled], [])
  56041. +m4_define([_LT_TAGS], [])
  56042. +
  56043. +
  56044. +# LT_LANG(LANG)
  56045. +# -------------
  56046. +# Enable libtool support for the given language if not already enabled.
  56047. +AC_DEFUN([LT_LANG],
  56048. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  56049. +m4_case([$1],
  56050. + [C], [_LT_LANG(C)],
  56051. + [C++], [_LT_LANG(CXX)],
  56052. + [Java], [_LT_LANG(GCJ)],
  56053. + [Fortran 77], [_LT_LANG(F77)],
  56054. + [Fortran], [_LT_LANG(FC)],
  56055. + [Windows Resource], [_LT_LANG(RC)],
  56056. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  56057. + [_LT_LANG($1)],
  56058. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  56059. +])# LT_LANG
  56060. +
  56061. +
  56062. +# _LT_LANG(LANGNAME)
  56063. +# ------------------
  56064. +m4_defun([_LT_LANG],
  56065. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  56066. + [LT_SUPPORTED_TAG([$1])dnl
  56067. + m4_append([_LT_TAGS], [$1 ])dnl
  56068. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  56069. + _LT_LANG_$1_CONFIG($1)])dnl
  56070. +])# _LT_LANG
  56071. +
  56072. +
  56073. +# _LT_LANG_DEFAULT_CONFIG
  56074. +# -----------------------
  56075. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  56076. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  56077. + [LT_LANG(CXX)],
  56078. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  56079. +
  56080. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  56081. + [LT_LANG(F77)],
  56082. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  56083. +
  56084. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  56085. + [LT_LANG(FC)],
  56086. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  56087. +
  56088. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  56089. +dnl pulling things in needlessly.
  56090. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  56091. + [LT_LANG(GCJ)],
  56092. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  56093. + [LT_LANG(GCJ)],
  56094. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  56095. + [LT_LANG(GCJ)],
  56096. + [m4_ifdef([AC_PROG_GCJ],
  56097. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  56098. + m4_ifdef([A][M_PROG_GCJ],
  56099. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  56100. + m4_ifdef([LT_PROG_GCJ],
  56101. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  56102. +
  56103. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  56104. + [LT_LANG(RC)],
  56105. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  56106. +])# _LT_LANG_DEFAULT_CONFIG
  56107. +
  56108. +# Obsolete macros:
  56109. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  56110. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  56111. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  56112. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  56113. +dnl aclocal-1.4 backwards compatibility:
  56114. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  56115. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  56116. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  56117. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  56118. +
  56119. +
  56120. +# _LT_TAG_COMPILER
  56121. +# ----------------
  56122. +m4_defun([_LT_TAG_COMPILER],
  56123. +[AC_REQUIRE([AC_PROG_CC])dnl
  56124. +
  56125. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  56126. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  56127. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  56128. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  56129. +
  56130. +# If no C compiler was specified, use CC.
  56131. +LTCC=${LTCC-"$CC"}
  56132. +
  56133. +# If no C compiler flags were specified, use CFLAGS.
  56134. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  56135. +
  56136. +# Allow CC to be a program name with arguments.
  56137. +compiler=$CC
  56138. +])# _LT_TAG_COMPILER
  56139. +
  56140. +
  56141. +# _LT_COMPILER_BOILERPLATE
  56142. +# ------------------------
  56143. +# Check for compiler boilerplate output or warnings with
  56144. +# the simple compiler test code.
  56145. +m4_defun([_LT_COMPILER_BOILERPLATE],
  56146. +[m4_require([_LT_DECL_SED])dnl
  56147. +ac_outfile=conftest.$ac_objext
  56148. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  56149. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  56150. +_lt_compiler_boilerplate=`cat conftest.err`
  56151. +$RM conftest*
  56152. +])# _LT_COMPILER_BOILERPLATE
  56153. +
  56154. +
  56155. +# _LT_LINKER_BOILERPLATE
  56156. +# ----------------------
  56157. +# Check for linker boilerplate output or warnings with
  56158. +# the simple link test code.
  56159. +m4_defun([_LT_LINKER_BOILERPLATE],
  56160. +[m4_require([_LT_DECL_SED])dnl
  56161. +ac_outfile=conftest.$ac_objext
  56162. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  56163. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  56164. +_lt_linker_boilerplate=`cat conftest.err`
  56165. +$RM -r conftest*
  56166. +])# _LT_LINKER_BOILERPLATE
  56167. +
  56168. +# _LT_REQUIRED_DARWIN_CHECKS
  56169. +# -------------------------
  56170. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  56171. + case $host_os in
  56172. + rhapsody* | darwin*)
  56173. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  56174. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  56175. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  56176. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  56177. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  56178. + _LT_DECL([], [DSYMUTIL], [1],
  56179. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  56180. + _LT_DECL([], [NMEDIT], [1],
  56181. + [Tool to change global to local symbols on Mac OS X])
  56182. + _LT_DECL([], [LIPO], [1],
  56183. + [Tool to manipulate fat objects and archives on Mac OS X])
  56184. + _LT_DECL([], [OTOOL], [1],
  56185. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  56186. + _LT_DECL([], [OTOOL64], [1],
  56187. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  56188. +
  56189. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  56190. + [lt_cv_apple_cc_single_mod=no
  56191. + if test -z "${LT_MULTI_MODULE}"; then
  56192. + # By default we will add the -single_module flag. You can override
  56193. + # by either setting the environment variable LT_MULTI_MODULE
  56194. + # non-empty at configure time, or by adding -multi_module to the
  56195. + # link flags.
  56196. + rm -rf libconftest.dylib*
  56197. + echo "int foo(void){return 1;}" > conftest.c
  56198. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  56199. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  56200. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  56201. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  56202. + _lt_result=$?
  56203. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  56204. + lt_cv_apple_cc_single_mod=yes
  56205. + else
  56206. + cat conftest.err >&AS_MESSAGE_LOG_FD
  56207. + fi
  56208. + rm -rf libconftest.dylib*
  56209. + rm -f conftest.*
  56210. + fi])
  56211. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  56212. + [lt_cv_ld_exported_symbols_list],
  56213. + [lt_cv_ld_exported_symbols_list=no
  56214. + save_LDFLAGS=$LDFLAGS
  56215. + echo "_main" > conftest.sym
  56216. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  56217. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  56218. + [lt_cv_ld_exported_symbols_list=yes],
  56219. + [lt_cv_ld_exported_symbols_list=no])
  56220. + LDFLAGS="$save_LDFLAGS"
  56221. + ])
  56222. + case $host_os in
  56223. + rhapsody* | darwin1.[[012]])
  56224. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  56225. + darwin1.*)
  56226. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  56227. + darwin*) # darwin 5.x on
  56228. + # if running on 10.5 or later, the deployment target defaults
  56229. + # to the OS version, if on x86, and 10.4, the deployment
  56230. + # target defaults to 10.4. Don't you love it?
  56231. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  56232. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  56233. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  56234. + 10.[[012]]*)
  56235. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  56236. + 10.*)
  56237. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  56238. + esac
  56239. + ;;
  56240. + esac
  56241. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  56242. + _lt_dar_single_mod='$single_module'
  56243. + fi
  56244. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  56245. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  56246. + else
  56247. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  56248. + fi
  56249. + if test "$DSYMUTIL" != ":"; then
  56250. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  56251. + else
  56252. + _lt_dsymutil=
  56253. + fi
  56254. + ;;
  56255. + esac
  56256. +])
  56257. +
  56258. +
  56259. +# _LT_DARWIN_LINKER_FEATURES
  56260. +# --------------------------
  56261. +# Checks for linker and compiler features on darwin
  56262. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  56263. +[
  56264. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  56265. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  56266. + _LT_TAGVAR(hardcode_direct, $1)=no
  56267. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  56268. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  56269. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  56270. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  56271. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  56272. + case $cc_basename in
  56273. + ifort*) _lt_dar_can_shared=yes ;;
  56274. + *) _lt_dar_can_shared=$GCC ;;
  56275. + esac
  56276. + if test "$_lt_dar_can_shared" = "yes"; then
  56277. + output_verbose_link_cmd=echo
  56278. + _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}"
  56279. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  56280. + _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}"
  56281. + _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}"
  56282. + m4_if([$1], [CXX],
  56283. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  56284. + _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}"
  56285. + _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}"
  56286. + fi
  56287. +],[])
  56288. + else
  56289. + _LT_TAGVAR(ld_shlibs, $1)=no
  56290. + fi
  56291. +])
  56292. +
  56293. +# _LT_SYS_MODULE_PATH_AIX
  56294. +# -----------------------
  56295. +# Links a minimal program and checks the executable
  56296. +# for the system default hardcoded library path. In most cases,
  56297. +# this is /usr/lib:/lib, but when the MPI compilers are used
  56298. +# the location of the communication and MPI libs are included too.
  56299. +# If we don't find anything, use the default library path according
  56300. +# to the aix ld manual.
  56301. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  56302. +[m4_require([_LT_DECL_SED])dnl
  56303. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  56304. +lt_aix_libpath_sed='
  56305. + /Import File Strings/,/^$/ {
  56306. + /^0/ {
  56307. + s/^0 *\(.*\)$/\1/
  56308. + p
  56309. + }
  56310. + }'
  56311. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  56312. +# Check for a 64-bit object if we didn't find anything.
  56313. +if test -z "$aix_libpath"; then
  56314. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  56315. +fi],[])
  56316. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  56317. +])# _LT_SYS_MODULE_PATH_AIX
  56318. +
  56319. +
  56320. +# _LT_SHELL_INIT(ARG)
  56321. +# -------------------
  56322. +m4_define([_LT_SHELL_INIT],
  56323. +[ifdef([AC_DIVERSION_NOTICE],
  56324. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  56325. + [AC_DIVERT_PUSH(NOTICE)])
  56326. +$1
  56327. +AC_DIVERT_POP
  56328. +])# _LT_SHELL_INIT
  56329. +
  56330. +
  56331. +# _LT_PROG_ECHO_BACKSLASH
  56332. +# -----------------------
  56333. +# Add some code to the start of the generated configure script which
  56334. +# will find an echo command which doesn't interpret backslashes.
  56335. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  56336. +[_LT_SHELL_INIT([
  56337. +# Check that we are running under the correct shell.
  56338. +SHELL=${CONFIG_SHELL-/bin/sh}
  56339. +
  56340. +case X$lt_ECHO in
  56341. +X*--fallback-echo)
  56342. + # Remove one level of quotation (which was required for Make).
  56343. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  56344. + ;;
  56345. +esac
  56346. +
  56347. +ECHO=${lt_ECHO-echo}
  56348. +if test "X[$]1" = X--no-reexec; then
  56349. + # Discard the --no-reexec flag, and continue.
  56350. + shift
  56351. +elif test "X[$]1" = X--fallback-echo; then
  56352. + # Avoid inline document here, it may be left over
  56353. + :
  56354. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  56355. + # Yippee, $ECHO works!
  56356. + :
  56357. +else
  56358. + # Restart under the correct shell.
  56359. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  56360. +fi
  56361. +
  56362. +if test "X[$]1" = X--fallback-echo; then
  56363. + # used as fallback echo
  56364. + shift
  56365. + cat <<_LT_EOF
  56366. +[$]*
  56367. +_LT_EOF
  56368. + exit 0
  56369. +fi
  56370. +
  56371. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  56372. +# if CDPATH is set.
  56373. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  56374. +
  56375. +if test -z "$lt_ECHO"; then
  56376. + if test "X${echo_test_string+set}" != Xset; then
  56377. + # find a string as large as possible, as long as the shell can cope with it
  56378. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  56379. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  56380. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  56381. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  56382. + then
  56383. + break
  56384. + fi
  56385. + done
  56386. + fi
  56387. +
  56388. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  56389. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  56390. + test "X$echo_testing_string" = "X$echo_test_string"; then
  56391. + :
  56392. + else
  56393. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  56394. + # backslashes. This makes it impossible to quote backslashes using
  56395. + # echo "$something" | sed 's/\\/\\\\/g'
  56396. + #
  56397. + # So, first we look for a working echo in the user's PATH.
  56398. +
  56399. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  56400. + for dir in $PATH /usr/ucb; do
  56401. + IFS="$lt_save_ifs"
  56402. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  56403. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  56404. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  56405. + test "X$echo_testing_string" = "X$echo_test_string"; then
  56406. + ECHO="$dir/echo"
  56407. + break
  56408. + fi
  56409. + done
  56410. + IFS="$lt_save_ifs"
  56411. +
  56412. + if test "X$ECHO" = Xecho; then
  56413. + # We didn't find a better echo, so look for alternatives.
  56414. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  56415. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  56416. + test "X$echo_testing_string" = "X$echo_test_string"; then
  56417. + # This shell has a builtin print -r that does the trick.
  56418. + ECHO='print -r'
  56419. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  56420. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  56421. + # If we have ksh, try running configure again with it.
  56422. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  56423. + export ORIGINAL_CONFIG_SHELL
  56424. + CONFIG_SHELL=/bin/ksh
  56425. + export CONFIG_SHELL
  56426. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  56427. + else
  56428. + # Try using printf.
  56429. + ECHO='printf %s\n'
  56430. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  56431. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  56432. + test "X$echo_testing_string" = "X$echo_test_string"; then
  56433. + # Cool, printf works
  56434. + :
  56435. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  56436. + test "X$echo_testing_string" = 'X\t' &&
  56437. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  56438. + test "X$echo_testing_string" = "X$echo_test_string"; then
  56439. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  56440. + export CONFIG_SHELL
  56441. + SHELL="$CONFIG_SHELL"
  56442. + export SHELL
  56443. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  56444. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  56445. + test "X$echo_testing_string" = 'X\t' &&
  56446. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  56447. + test "X$echo_testing_string" = "X$echo_test_string"; then
  56448. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  56449. + else
  56450. + # maybe with a smaller string...
  56451. + prev=:
  56452. +
  56453. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  56454. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  56455. + then
  56456. + break
  56457. + fi
  56458. + prev="$cmd"
  56459. + done
  56460. +
  56461. + if test "$prev" != 'sed 50q "[$]0"'; then
  56462. + echo_test_string=`eval $prev`
  56463. + export echo_test_string
  56464. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  56465. + else
  56466. + # Oops. We lost completely, so just stick with echo.
  56467. + ECHO=echo
  56468. + fi
  56469. + fi
  56470. + fi
  56471. + fi
  56472. + fi
  56473. +fi
  56474. +
  56475. +# Copy echo and quote the copy suitably for passing to libtool from
  56476. +# the Makefile, instead of quoting the original, which is used later.
  56477. +lt_ECHO=$ECHO
  56478. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  56479. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  56480. +fi
  56481. +
  56482. +AC_SUBST(lt_ECHO)
  56483. +])
  56484. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  56485. +_LT_DECL([], [ECHO], [1],
  56486. + [An echo program that does not interpret backslashes])
  56487. +])# _LT_PROG_ECHO_BACKSLASH
  56488. +
  56489. +
  56490. +# _LT_ENABLE_LOCK
  56491. +# ---------------
  56492. +m4_defun([_LT_ENABLE_LOCK],
  56493. +[AC_ARG_ENABLE([libtool-lock],
  56494. + [AS_HELP_STRING([--disable-libtool-lock],
  56495. + [avoid locking (might break parallel builds)])])
  56496. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  56497. +
  56498. +# Some flags need to be propagated to the compiler or linker for good
  56499. +# libtool support.
  56500. +case $host in
  56501. +ia64-*-hpux*)
  56502. + # Find out which ABI we are using.
  56503. + echo 'int i;' > conftest.$ac_ext
  56504. + if AC_TRY_EVAL(ac_compile); then
  56505. + case `/usr/bin/file conftest.$ac_objext` in
  56506. + *ELF-32*)
  56507. + HPUX_IA64_MODE="32"
  56508. + ;;
  56509. + *ELF-64*)
  56510. + HPUX_IA64_MODE="64"
  56511. + ;;
  56512. + esac
  56513. + fi
  56514. + rm -rf conftest*
  56515. + ;;
  56516. +*-*-irix6*)
  56517. + # Find out which ABI we are using.
  56518. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  56519. + if AC_TRY_EVAL(ac_compile); then
  56520. + if test "$lt_cv_prog_gnu_ld" = yes; then
  56521. + case `/usr/bin/file conftest.$ac_objext` in
  56522. + *32-bit*)
  56523. + LD="${LD-ld} -melf32bsmip"
  56524. + ;;
  56525. + *N32*)
  56526. + LD="${LD-ld} -melf32bmipn32"
  56527. + ;;
  56528. + *64-bit*)
  56529. + LD="${LD-ld} -melf64bmip"
  56530. + ;;
  56531. + esac
  56532. + else
  56533. + case `/usr/bin/file conftest.$ac_objext` in
  56534. + *32-bit*)
  56535. + LD="${LD-ld} -32"
  56536. + ;;
  56537. + *N32*)
  56538. + LD="${LD-ld} -n32"
  56539. + ;;
  56540. + *64-bit*)
  56541. + LD="${LD-ld} -64"
  56542. + ;;
  56543. + esac
  56544. + fi
  56545. + fi
  56546. + rm -rf conftest*
  56547. + ;;
  56548. +
  56549. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  56550. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  56551. + # Find out which ABI we are using.
  56552. + echo 'int i;' > conftest.$ac_ext
  56553. + if AC_TRY_EVAL(ac_compile); then
  56554. + case `/usr/bin/file conftest.o` in
  56555. + *32-bit*)
  56556. + case $host in
  56557. + x86_64-*kfreebsd*-gnu)
  56558. + LD="${LD-ld} -m elf_i386_fbsd"
  56559. + ;;
  56560. + x86_64-*linux*)
  56561. + LD="${LD-ld} -m elf_i386"
  56562. + ;;
  56563. + ppc64-*linux*|powerpc64-*linux*)
  56564. + LD="${LD-ld} -m elf32ppclinux"
  56565. + ;;
  56566. + s390x-*linux*)
  56567. + LD="${LD-ld} -m elf_s390"
  56568. + ;;
  56569. + sparc64-*linux*)
  56570. + LD="${LD-ld} -m elf32_sparc"
  56571. + ;;
  56572. + esac
  56573. + ;;
  56574. + *64-bit*)
  56575. + case $host in
  56576. + x86_64-*kfreebsd*-gnu)
  56577. + LD="${LD-ld} -m elf_x86_64_fbsd"
  56578. + ;;
  56579. + x86_64-*linux*)
  56580. + LD="${LD-ld} -m elf_x86_64"
  56581. + ;;
  56582. + ppc*-*linux*|powerpc*-*linux*)
  56583. + LD="${LD-ld} -m elf64ppc"
  56584. + ;;
  56585. + s390*-*linux*|s390*-*tpf*)
  56586. + LD="${LD-ld} -m elf64_s390"
  56587. + ;;
  56588. + sparc*-*linux*)
  56589. + LD="${LD-ld} -m elf64_sparc"
  56590. + ;;
  56591. + esac
  56592. + ;;
  56593. + esac
  56594. + fi
  56595. + rm -rf conftest*
  56596. + ;;
  56597. +
  56598. +*-*-sco3.2v5*)
  56599. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  56600. + SAVE_CFLAGS="$CFLAGS"
  56601. + CFLAGS="$CFLAGS -belf"
  56602. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  56603. + [AC_LANG_PUSH(C)
  56604. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  56605. + AC_LANG_POP])
  56606. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  56607. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  56608. + CFLAGS="$SAVE_CFLAGS"
  56609. + fi
  56610. + ;;
  56611. +sparc*-*solaris*)
  56612. + # Find out which ABI we are using.
  56613. + echo 'int i;' > conftest.$ac_ext
  56614. + if AC_TRY_EVAL(ac_compile); then
  56615. + case `/usr/bin/file conftest.o` in
  56616. + *64-bit*)
  56617. + case $lt_cv_prog_gnu_ld in
  56618. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  56619. + *)
  56620. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  56621. + LD="${LD-ld} -64"
  56622. + fi
  56623. + ;;
  56624. + esac
  56625. + ;;
  56626. + esac
  56627. + fi
  56628. + rm -rf conftest*
  56629. + ;;
  56630. +esac
  56631. +
  56632. +need_locks="$enable_libtool_lock"
  56633. +])# _LT_ENABLE_LOCK
  56634. +
  56635. +
  56636. +# _LT_CMD_OLD_ARCHIVE
  56637. +# -------------------
  56638. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  56639. +[AC_CHECK_TOOL(AR, ar, false)
  56640. +test -z "$AR" && AR=ar
  56641. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  56642. +_LT_DECL([], [AR], [1], [The archiver])
  56643. +_LT_DECL([], [AR_FLAGS], [1])
  56644. +
  56645. +AC_CHECK_TOOL(STRIP, strip, :)
  56646. +test -z "$STRIP" && STRIP=:
  56647. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  56648. +
  56649. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  56650. +test -z "$RANLIB" && RANLIB=:
  56651. +_LT_DECL([], [RANLIB], [1],
  56652. + [Commands used to install an old-style archive])
  56653. +
  56654. +# Determine commands to create old-style static archives.
  56655. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  56656. +old_postinstall_cmds='chmod 644 $oldlib'
  56657. +old_postuninstall_cmds=
  56658. +
  56659. +if test -n "$RANLIB"; then
  56660. + case $host_os in
  56661. + openbsd*)
  56662. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  56663. + ;;
  56664. + *)
  56665. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  56666. + ;;
  56667. + esac
  56668. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  56669. +fi
  56670. +_LT_DECL([], [old_postinstall_cmds], [2])
  56671. +_LT_DECL([], [old_postuninstall_cmds], [2])
  56672. +_LT_TAGDECL([], [old_archive_cmds], [2],
  56673. + [Commands used to build an old-style archive])
  56674. +])# _LT_CMD_OLD_ARCHIVE
  56675. +
  56676. +
  56677. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  56678. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  56679. +# ----------------------------------------------------------------
  56680. +# Check whether the given compiler option works
  56681. +AC_DEFUN([_LT_COMPILER_OPTION],
  56682. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  56683. +m4_require([_LT_DECL_SED])dnl
  56684. +AC_CACHE_CHECK([$1], [$2],
  56685. + [$2=no
  56686. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  56687. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  56688. + lt_compiler_flag="$3"
  56689. + # Insert the option either (1) after the last *FLAGS variable, or
  56690. + # (2) before a word containing "conftest.", or (3) at the end.
  56691. + # Note that $ac_compile itself does not contain backslashes and begins
  56692. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  56693. + # The option is referenced via a variable to avoid confusing sed.
  56694. + lt_compile=`echo "$ac_compile" | $SED \
  56695. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  56696. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  56697. + -e 's:$: $lt_compiler_flag:'`
  56698. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  56699. + (eval "$lt_compile" 2>conftest.err)
  56700. + ac_status=$?
  56701. + cat conftest.err >&AS_MESSAGE_LOG_FD
  56702. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  56703. + if (exit $ac_status) && test -s "$ac_outfile"; then
  56704. + # The compiler can only warn and ignore the option if not recognized
  56705. + # So say no if there are warnings other than the usual output.
  56706. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  56707. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  56708. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  56709. + $2=yes
  56710. + fi
  56711. + fi
  56712. + $RM conftest*
  56713. +])
  56714. +
  56715. +if test x"[$]$2" = xyes; then
  56716. + m4_if([$5], , :, [$5])
  56717. +else
  56718. + m4_if([$6], , :, [$6])
  56719. +fi
  56720. +])# _LT_COMPILER_OPTION
  56721. +
  56722. +# Old name:
  56723. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  56724. +dnl aclocal-1.4 backwards compatibility:
  56725. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  56726. +
  56727. +
  56728. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  56729. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  56730. +# ----------------------------------------------------
  56731. +# Check whether the given linker option works
  56732. +AC_DEFUN([_LT_LINKER_OPTION],
  56733. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  56734. +m4_require([_LT_DECL_SED])dnl
  56735. +AC_CACHE_CHECK([$1], [$2],
  56736. + [$2=no
  56737. + save_LDFLAGS="$LDFLAGS"
  56738. + LDFLAGS="$LDFLAGS $3"
  56739. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  56740. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  56741. + # The linker can only warn and ignore the option if not recognized
  56742. + # So say no if there are warnings
  56743. + if test -s conftest.err; then
  56744. + # Append any errors to the config.log.
  56745. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  56746. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  56747. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  56748. + if diff conftest.exp conftest.er2 >/dev/null; then
  56749. + $2=yes
  56750. + fi
  56751. + else
  56752. + $2=yes
  56753. + fi
  56754. + fi
  56755. + $RM -r conftest*
  56756. + LDFLAGS="$save_LDFLAGS"
  56757. +])
  56758. +
  56759. +if test x"[$]$2" = xyes; then
  56760. + m4_if([$4], , :, [$4])
  56761. +else
  56762. + m4_if([$5], , :, [$5])
  56763. +fi
  56764. +])# _LT_LINKER_OPTION
  56765. +
  56766. +# Old name:
  56767. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  56768. +dnl aclocal-1.4 backwards compatibility:
  56769. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  56770. +
  56771. +
  56772. +# LT_CMD_MAX_LEN
  56773. +#---------------
  56774. +AC_DEFUN([LT_CMD_MAX_LEN],
  56775. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  56776. +# find the maximum length of command line arguments
  56777. +AC_MSG_CHECKING([the maximum length of command line arguments])
  56778. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  56779. + i=0
  56780. + teststring="ABCD"
  56781. +
  56782. + case $build_os in
  56783. + msdosdjgpp*)
  56784. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  56785. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  56786. + # during glob expansion). Even if it were fixed, the result of this
  56787. + # check would be larger than it should be.
  56788. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  56789. + ;;
  56790. +
  56791. + gnu*)
  56792. + # Under GNU Hurd, this test is not required because there is
  56793. + # no limit to the length of command line arguments.
  56794. + # Libtool will interpret -1 as no limit whatsoever
  56795. + lt_cv_sys_max_cmd_len=-1;
  56796. + ;;
  56797. +
  56798. + cygwin* | mingw* | cegcc*)
  56799. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  56800. + # about 5 minutes as the teststring grows exponentially.
  56801. + # Worse, since 9x/ME are not pre-emptively multitasking,
  56802. + # you end up with a "frozen" computer, even though with patience
  56803. + # the test eventually succeeds (with a max line length of 256k).
  56804. + # Instead, let's just punt: use the minimum linelength reported by
  56805. + # all of the supported platforms: 8192 (on NT/2K/XP).
  56806. + lt_cv_sys_max_cmd_len=8192;
  56807. + ;;
  56808. +
  56809. + amigaos*)
  56810. + # On AmigaOS with pdksh, this test takes hours, literally.
  56811. + # So we just punt and use a minimum line length of 8192.
  56812. + lt_cv_sys_max_cmd_len=8192;
  56813. + ;;
  56814. +
  56815. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  56816. + # This has been around since 386BSD, at least. Likely further.
  56817. + if test -x /sbin/sysctl; then
  56818. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  56819. + elif test -x /usr/sbin/sysctl; then
  56820. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  56821. + else
  56822. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  56823. + fi
  56824. + # And add a safety zone
  56825. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  56826. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  56827. + ;;
  56828. +
  56829. + interix*)
  56830. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  56831. + lt_cv_sys_max_cmd_len=196608
  56832. + ;;
  56833. +
  56834. + osf*)
  56835. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  56836. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  56837. + # nice to cause kernel panics so lets avoid the loop below.
  56838. + # First set a reasonable default.
  56839. + lt_cv_sys_max_cmd_len=16384
  56840. + #
  56841. + if test -x /sbin/sysconfig; then
  56842. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  56843. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  56844. + esac
  56845. + fi
  56846. + ;;
  56847. + sco3.2v5*)
  56848. + lt_cv_sys_max_cmd_len=102400
  56849. + ;;
  56850. + sysv5* | sco5v6* | sysv4.2uw2*)
  56851. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  56852. + if test -n "$kargmax"; then
  56853. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  56854. + else
  56855. + lt_cv_sys_max_cmd_len=32768
  56856. + fi
  56857. + ;;
  56858. + *)
  56859. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  56860. + if test -n "$lt_cv_sys_max_cmd_len"; then
  56861. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  56862. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  56863. + else
  56864. + # Make teststring a little bigger before we do anything with it.
  56865. + # a 1K string should be a reasonable start.
  56866. + for i in 1 2 3 4 5 6 7 8 ; do
  56867. + teststring=$teststring$teststring
  56868. + done
  56869. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  56870. + # If test is not a shell built-in, we'll probably end up computing a
  56871. + # maximum length that is only half of the actual maximum length, but
  56872. + # we can't tell.
  56873. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  56874. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  56875. + test $i != 17 # 1/2 MB should be enough
  56876. + do
  56877. + i=`expr $i + 1`
  56878. + teststring=$teststring$teststring
  56879. + done
  56880. + # Only check the string length outside the loop.
  56881. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  56882. + teststring=
  56883. + # Add a significant safety factor because C++ compilers can tack on
  56884. + # massive amounts of additional arguments before passing them to the
  56885. + # linker. It appears as though 1/2 is a usable value.
  56886. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  56887. + fi
  56888. + ;;
  56889. + esac
  56890. +])
  56891. +if test -n $lt_cv_sys_max_cmd_len ; then
  56892. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  56893. +else
  56894. + AC_MSG_RESULT(none)
  56895. +fi
  56896. +max_cmd_len=$lt_cv_sys_max_cmd_len
  56897. +_LT_DECL([], [max_cmd_len], [0],
  56898. + [What is the maximum length of a command?])
  56899. +])# LT_CMD_MAX_LEN
  56900. +
  56901. +# Old name:
  56902. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  56903. +dnl aclocal-1.4 backwards compatibility:
  56904. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  56905. +
  56906. +
  56907. +# _LT_HEADER_DLFCN
  56908. +# ----------------
  56909. +m4_defun([_LT_HEADER_DLFCN],
  56910. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  56911. +])# _LT_HEADER_DLFCN
  56912. +
  56913. +
  56914. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  56915. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  56916. +# ----------------------------------------------------------------
  56917. +m4_defun([_LT_TRY_DLOPEN_SELF],
  56918. +[m4_require([_LT_HEADER_DLFCN])dnl
  56919. +if test "$cross_compiling" = yes; then :
  56920. + [$4]
  56921. +else
  56922. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  56923. + lt_status=$lt_dlunknown
  56924. + cat > conftest.$ac_ext <<_LT_EOF
  56925. +[#line __oline__ "configure"
  56926. +#include "confdefs.h"
  56927. +
  56928. +#if HAVE_DLFCN_H
  56929. +#include <dlfcn.h>
  56930. +#endif
  56931. +
  56932. +#include <stdio.h>
  56933. +
  56934. +#ifdef RTLD_GLOBAL
  56935. +# define LT_DLGLOBAL RTLD_GLOBAL
  56936. +#else
  56937. +# ifdef DL_GLOBAL
  56938. +# define LT_DLGLOBAL DL_GLOBAL
  56939. +# else
  56940. +# define LT_DLGLOBAL 0
  56941. +# endif
  56942. +#endif
  56943. +
  56944. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  56945. + find out it does not work in some platform. */
  56946. +#ifndef LT_DLLAZY_OR_NOW
  56947. +# ifdef RTLD_LAZY
  56948. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  56949. +# else
  56950. +# ifdef DL_LAZY
  56951. +# define LT_DLLAZY_OR_NOW DL_LAZY
  56952. +# else
  56953. +# ifdef RTLD_NOW
  56954. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  56955. +# else
  56956. +# ifdef DL_NOW
  56957. +# define LT_DLLAZY_OR_NOW DL_NOW
  56958. +# else
  56959. +# define LT_DLLAZY_OR_NOW 0
  56960. +# endif
  56961. +# endif
  56962. +# endif
  56963. +# endif
  56964. +#endif
  56965. +
  56966. +void fnord() { int i=42;}
  56967. +int main ()
  56968. +{
  56969. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  56970. + int status = $lt_dlunknown;
  56971. +
  56972. + if (self)
  56973. + {
  56974. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  56975. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  56976. + /* dlclose (self); */
  56977. + }
  56978. + else
  56979. + puts (dlerror ());
  56980. +
  56981. + return status;
  56982. +}]
  56983. +_LT_EOF
  56984. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  56985. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  56986. + lt_status=$?
  56987. + case x$lt_status in
  56988. + x$lt_dlno_uscore) $1 ;;
  56989. + x$lt_dlneed_uscore) $2 ;;
  56990. + x$lt_dlunknown|x*) $3 ;;
  56991. + esac
  56992. + else :
  56993. + # compilation failed
  56994. + $3
  56995. + fi
  56996. +fi
  56997. +rm -fr conftest*
  56998. +])# _LT_TRY_DLOPEN_SELF
  56999. +
  57000. +
  57001. +# LT_SYS_DLOPEN_SELF
  57002. +# ------------------
  57003. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  57004. +[m4_require([_LT_HEADER_DLFCN])dnl
  57005. +if test "x$enable_dlopen" != xyes; then
  57006. + enable_dlopen=unknown
  57007. + enable_dlopen_self=unknown
  57008. + enable_dlopen_self_static=unknown
  57009. +else
  57010. + lt_cv_dlopen=no
  57011. + lt_cv_dlopen_libs=
  57012. +
  57013. + case $host_os in
  57014. + beos*)
  57015. + lt_cv_dlopen="load_add_on"
  57016. + lt_cv_dlopen_libs=
  57017. + lt_cv_dlopen_self=yes
  57018. + ;;
  57019. +
  57020. + mingw* | pw32* | cegcc*)
  57021. + lt_cv_dlopen="LoadLibrary"
  57022. + lt_cv_dlopen_libs=
  57023. + ;;
  57024. +
  57025. + cygwin*)
  57026. + lt_cv_dlopen="dlopen"
  57027. + lt_cv_dlopen_libs=
  57028. + ;;
  57029. +
  57030. + darwin*)
  57031. + # if libdl is installed we need to link against it
  57032. + AC_CHECK_LIB([dl], [dlopen],
  57033. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  57034. + lt_cv_dlopen="dyld"
  57035. + lt_cv_dlopen_libs=
  57036. + lt_cv_dlopen_self=yes
  57037. + ])
  57038. + ;;
  57039. +
  57040. + *)
  57041. + AC_CHECK_FUNC([shl_load],
  57042. + [lt_cv_dlopen="shl_load"],
  57043. + [AC_CHECK_LIB([dld], [shl_load],
  57044. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  57045. + [AC_CHECK_FUNC([dlopen],
  57046. + [lt_cv_dlopen="dlopen"],
  57047. + [AC_CHECK_LIB([dl], [dlopen],
  57048. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  57049. + [AC_CHECK_LIB([svld], [dlopen],
  57050. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  57051. + [AC_CHECK_LIB([dld], [dld_link],
  57052. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  57053. + ])
  57054. + ])
  57055. + ])
  57056. + ])
  57057. + ])
  57058. + ;;
  57059. + esac
  57060. +
  57061. + if test "x$lt_cv_dlopen" != xno; then
  57062. + enable_dlopen=yes
  57063. + else
  57064. + enable_dlopen=no
  57065. + fi
  57066. +
  57067. + case $lt_cv_dlopen in
  57068. + dlopen)
  57069. + save_CPPFLAGS="$CPPFLAGS"
  57070. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  57071. +
  57072. + save_LDFLAGS="$LDFLAGS"
  57073. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  57074. +
  57075. + save_LIBS="$LIBS"
  57076. + LIBS="$lt_cv_dlopen_libs $LIBS"
  57077. +
  57078. + AC_CACHE_CHECK([whether a program can dlopen itself],
  57079. + lt_cv_dlopen_self, [dnl
  57080. + _LT_TRY_DLOPEN_SELF(
  57081. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  57082. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  57083. + ])
  57084. +
  57085. + if test "x$lt_cv_dlopen_self" = xyes; then
  57086. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  57087. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  57088. + lt_cv_dlopen_self_static, [dnl
  57089. + _LT_TRY_DLOPEN_SELF(
  57090. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  57091. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  57092. + ])
  57093. + fi
  57094. +
  57095. + CPPFLAGS="$save_CPPFLAGS"
  57096. + LDFLAGS="$save_LDFLAGS"
  57097. + LIBS="$save_LIBS"
  57098. + ;;
  57099. + esac
  57100. +
  57101. + case $lt_cv_dlopen_self in
  57102. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  57103. + *) enable_dlopen_self=unknown ;;
  57104. + esac
  57105. +
  57106. + case $lt_cv_dlopen_self_static in
  57107. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  57108. + *) enable_dlopen_self_static=unknown ;;
  57109. + esac
  57110. +fi
  57111. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  57112. + [Whether dlopen is supported])
  57113. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  57114. + [Whether dlopen of programs is supported])
  57115. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  57116. + [Whether dlopen of statically linked programs is supported])
  57117. +])# LT_SYS_DLOPEN_SELF
  57118. +
  57119. +# Old name:
  57120. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  57121. +dnl aclocal-1.4 backwards compatibility:
  57122. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  57123. +
  57124. +
  57125. +# _LT_COMPILER_C_O([TAGNAME])
  57126. +# ---------------------------
  57127. +# Check to see if options -c and -o are simultaneously supported by compiler.
  57128. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  57129. +m4_defun([_LT_COMPILER_C_O],
  57130. +[m4_require([_LT_DECL_SED])dnl
  57131. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  57132. +m4_require([_LT_TAG_COMPILER])dnl
  57133. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  57134. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  57135. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  57136. + $RM -r conftest 2>/dev/null
  57137. + mkdir conftest
  57138. + cd conftest
  57139. + mkdir out
  57140. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  57141. +
  57142. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  57143. + # Insert the option either (1) after the last *FLAGS variable, or
  57144. + # (2) before a word containing "conftest.", or (3) at the end.
  57145. + # Note that $ac_compile itself does not contain backslashes and begins
  57146. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  57147. + lt_compile=`echo "$ac_compile" | $SED \
  57148. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  57149. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  57150. + -e 's:$: $lt_compiler_flag:'`
  57151. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  57152. + (eval "$lt_compile" 2>out/conftest.err)
  57153. + ac_status=$?
  57154. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  57155. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  57156. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  57157. + then
  57158. + # The compiler can only warn and ignore the option if not recognized
  57159. + # So say no if there are warnings
  57160. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  57161. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  57162. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  57163. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  57164. + fi
  57165. + fi
  57166. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  57167. + $RM conftest*
  57168. + # SGI C++ compiler will create directory out/ii_files/ for
  57169. + # template instantiation
  57170. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  57171. + $RM out/* && rmdir out
  57172. + cd ..
  57173. + $RM -r conftest
  57174. + $RM conftest*
  57175. +])
  57176. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  57177. + [Does compiler simultaneously support -c and -o options?])
  57178. +])# _LT_COMPILER_C_O
  57179. +
  57180. +
  57181. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  57182. +# ----------------------------------
  57183. +# Check to see if we can do hard links to lock some files if needed
  57184. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  57185. +[m4_require([_LT_ENABLE_LOCK])dnl
  57186. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  57187. +_LT_COMPILER_C_O([$1])
  57188. +
  57189. +hard_links="nottested"
  57190. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  57191. + # do not overwrite the value of need_locks provided by the user
  57192. + AC_MSG_CHECKING([if we can lock with hard links])
  57193. + hard_links=yes
  57194. + $RM conftest*
  57195. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  57196. + touch conftest.a
  57197. + ln conftest.a conftest.b 2>&5 || hard_links=no
  57198. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  57199. + AC_MSG_RESULT([$hard_links])
  57200. + if test "$hard_links" = no; then
  57201. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  57202. + need_locks=warn
  57203. + fi
  57204. +else
  57205. + need_locks=no
  57206. +fi
  57207. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  57208. +])# _LT_COMPILER_FILE_LOCKS
  57209. +
  57210. +
  57211. +# _LT_CHECK_OBJDIR
  57212. +# ----------------
  57213. +m4_defun([_LT_CHECK_OBJDIR],
  57214. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  57215. +[rm -f .libs 2>/dev/null
  57216. +mkdir .libs 2>/dev/null
  57217. +if test -d .libs; then
  57218. + lt_cv_objdir=.libs
  57219. +else
  57220. + # MS-DOS does not allow filenames that begin with a dot.
  57221. + lt_cv_objdir=_libs
  57222. +fi
  57223. +rmdir .libs 2>/dev/null])
  57224. +objdir=$lt_cv_objdir
  57225. +_LT_DECL([], [objdir], [0],
  57226. + [The name of the directory that contains temporary libtool files])dnl
  57227. +m4_pattern_allow([LT_OBJDIR])dnl
  57228. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  57229. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  57230. +])# _LT_CHECK_OBJDIR
  57231. +
  57232. +
  57233. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  57234. +# --------------------------------------
  57235. +# Check hardcoding attributes.
  57236. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  57237. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  57238. +_LT_TAGVAR(hardcode_action, $1)=
  57239. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  57240. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  57241. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  57242. +
  57243. + # We can hardcode non-existent directories.
  57244. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  57245. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  57246. + # have to relink, otherwise we might link with an installed library
  57247. + # when we should be linking with a yet-to-be-installed one
  57248. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  57249. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  57250. + # Linking always hardcodes the temporary library directory.
  57251. + _LT_TAGVAR(hardcode_action, $1)=relink
  57252. + else
  57253. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  57254. + _LT_TAGVAR(hardcode_action, $1)=immediate
  57255. + fi
  57256. +else
  57257. + # We cannot hardcode anything, or else we can only hardcode existing
  57258. + # directories.
  57259. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  57260. +fi
  57261. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  57262. +
  57263. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  57264. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  57265. + # Fast installation is not supported
  57266. + enable_fast_install=no
  57267. +elif test "$shlibpath_overrides_runpath" = yes ||
  57268. + test "$enable_shared" = no; then
  57269. + # Fast installation is not necessary
  57270. + enable_fast_install=needless
  57271. +fi
  57272. +_LT_TAGDECL([], [hardcode_action], [0],
  57273. + [How to hardcode a shared library path into an executable])
  57274. +])# _LT_LINKER_HARDCODE_LIBPATH
  57275. +
  57276. +
  57277. +# _LT_CMD_STRIPLIB
  57278. +# ----------------
  57279. +m4_defun([_LT_CMD_STRIPLIB],
  57280. +[m4_require([_LT_DECL_EGREP])
  57281. +striplib=
  57282. +old_striplib=
  57283. +AC_MSG_CHECKING([whether stripping libraries is possible])
  57284. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  57285. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  57286. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  57287. + AC_MSG_RESULT([yes])
  57288. +else
  57289. +# FIXME - insert some real tests, host_os isn't really good enough
  57290. + case $host_os in
  57291. + darwin*)
  57292. + if test -n "$STRIP" ; then
  57293. + striplib="$STRIP -x"
  57294. + old_striplib="$STRIP -S"
  57295. + AC_MSG_RESULT([yes])
  57296. + else
  57297. + AC_MSG_RESULT([no])
  57298. + fi
  57299. + ;;
  57300. + *)
  57301. + AC_MSG_RESULT([no])
  57302. + ;;
  57303. + esac
  57304. +fi
  57305. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  57306. +_LT_DECL([], [striplib], [1])
  57307. +])# _LT_CMD_STRIPLIB
  57308. +
  57309. +
  57310. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  57311. +# -----------------------------
  57312. +# PORTME Fill in your ld.so characteristics
  57313. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  57314. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  57315. +m4_require([_LT_DECL_EGREP])dnl
  57316. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  57317. +m4_require([_LT_DECL_OBJDUMP])dnl
  57318. +m4_require([_LT_DECL_SED])dnl
  57319. +AC_MSG_CHECKING([dynamic linker characteristics])
  57320. +m4_if([$1],
  57321. + [], [
  57322. +if test "$GCC" = yes; then
  57323. + case $host_os in
  57324. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  57325. + *) lt_awk_arg="/^libraries:/" ;;
  57326. + esac
  57327. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  57328. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  57329. + # if the path contains ";" then we assume it to be the separator
  57330. + # otherwise default to the standard path separator (i.e. ":") - it is
  57331. + # assumed that no part of a normal pathname contains ";" but that should
  57332. + # okay in the real world where ";" in dirpaths is itself problematic.
  57333. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  57334. + else
  57335. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  57336. + fi
  57337. + # Ok, now we have the path, separated by spaces, we can step through it
  57338. + # and add multilib dir if necessary.
  57339. + lt_tmp_lt_search_path_spec=
  57340. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  57341. + for lt_sys_path in $lt_search_path_spec; do
  57342. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  57343. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  57344. + else
  57345. + test -d "$lt_sys_path" && \
  57346. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  57347. + fi
  57348. + done
  57349. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  57350. +BEGIN {RS=" "; FS="/|\n";} {
  57351. + lt_foo="";
  57352. + lt_count=0;
  57353. + for (lt_i = NF; lt_i > 0; lt_i--) {
  57354. + if ($lt_i != "" && $lt_i != ".") {
  57355. + if ($lt_i == "..") {
  57356. + lt_count++;
  57357. + } else {
  57358. + if (lt_count == 0) {
  57359. + lt_foo="/" $lt_i lt_foo;
  57360. + } else {
  57361. + lt_count--;
  57362. + }
  57363. + }
  57364. + }
  57365. + }
  57366. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  57367. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  57368. +}'`
  57369. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  57370. +else
  57371. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  57372. +fi])
  57373. +library_names_spec=
  57374. +libname_spec='lib$name'
  57375. +soname_spec=
  57376. +shrext_cmds=".so"
  57377. +postinstall_cmds=
  57378. +postuninstall_cmds=
  57379. +finish_cmds=
  57380. +finish_eval=
  57381. +shlibpath_var=
  57382. +shlibpath_overrides_runpath=unknown
  57383. +version_type=none
  57384. +dynamic_linker="$host_os ld.so"
  57385. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  57386. +need_lib_prefix=unknown
  57387. +hardcode_into_libs=no
  57388. +
  57389. +# when you set need_version to no, make sure it does not cause -set_version
  57390. +# flags to be left without arguments
  57391. +need_version=unknown
  57392. +
  57393. +case $host_os in
  57394. +aix3*)
  57395. + version_type=linux
  57396. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  57397. + shlibpath_var=LIBPATH
  57398. +
  57399. + # AIX 3 has no versioning support, so we append a major version to the name.
  57400. + soname_spec='${libname}${release}${shared_ext}$major'
  57401. + ;;
  57402. +
  57403. +aix[[4-9]]*)
  57404. + version_type=linux
  57405. + need_lib_prefix=no
  57406. + need_version=no
  57407. + hardcode_into_libs=yes
  57408. + if test "$host_cpu" = ia64; then
  57409. + # AIX 5 supports IA64
  57410. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  57411. + shlibpath_var=LD_LIBRARY_PATH
  57412. + else
  57413. + # With GCC up to 2.95.x, collect2 would create an import file
  57414. + # for dependence libraries. The import file would start with
  57415. + # the line `#! .'. This would cause the generated library to
  57416. + # depend on `.', always an invalid library. This was fixed in
  57417. + # development snapshots of GCC prior to 3.0.
  57418. + case $host_os in
  57419. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  57420. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  57421. + echo ' yes '
  57422. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  57423. + :
  57424. + else
  57425. + can_build_shared=no
  57426. + fi
  57427. + ;;
  57428. + esac
  57429. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  57430. + # soname into executable. Probably we can add versioning support to
  57431. + # collect2, so additional links can be useful in future.
  57432. + if test "$aix_use_runtimelinking" = yes; then
  57433. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  57434. + # instead of lib<name>.a to let people know that these are not
  57435. + # typical AIX shared libraries.
  57436. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  57437. + else
  57438. + # We preserve .a as extension for shared libraries through AIX4.2
  57439. + # and later when we are not doing run time linking.
  57440. + library_names_spec='${libname}${release}.a $libname.a'
  57441. + soname_spec='${libname}${release}${shared_ext}$major'
  57442. + fi
  57443. + shlibpath_var=LIBPATH
  57444. + fi
  57445. + ;;
  57446. +
  57447. +amigaos*)
  57448. + case $host_cpu in
  57449. + powerpc)
  57450. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  57451. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  57452. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  57453. + ;;
  57454. + m68k)
  57455. + library_names_spec='$libname.ixlibrary $libname.a'
  57456. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  57457. + 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'
  57458. + ;;
  57459. + esac
  57460. + ;;
  57461. +
  57462. +beos*)
  57463. + library_names_spec='${libname}${shared_ext}'
  57464. + dynamic_linker="$host_os ld.so"
  57465. + shlibpath_var=LIBRARY_PATH
  57466. + ;;
  57467. +
  57468. +bsdi[[45]]*)
  57469. + version_type=linux
  57470. + need_version=no
  57471. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  57472. + soname_spec='${libname}${release}${shared_ext}$major'
  57473. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  57474. + shlibpath_var=LD_LIBRARY_PATH
  57475. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  57476. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  57477. + # the default ld.so.conf also contains /usr/contrib/lib and
  57478. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  57479. + # libtool to hard-code these into programs
  57480. + ;;
  57481. +
  57482. +cygwin* | mingw* | pw32* | cegcc*)
  57483. + version_type=windows
  57484. + shrext_cmds=".dll"
  57485. + need_version=no
  57486. + need_lib_prefix=no
  57487. +
  57488. + case $GCC,$host_os in
  57489. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  57490. + library_names_spec='$libname.dll.a'
  57491. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  57492. + postinstall_cmds='base_file=`basename \${file}`~
  57493. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  57494. + dldir=$destdir/`dirname \$dlpath`~
  57495. + test -d \$dldir || mkdir -p \$dldir~
  57496. + $install_prog $dir/$dlname \$dldir/$dlname~
  57497. + chmod a+x \$dldir/$dlname~
  57498. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  57499. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  57500. + fi'
  57501. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  57502. + dlpath=$dir/\$dldll~
  57503. + $RM \$dlpath'
  57504. + shlibpath_overrides_runpath=yes
  57505. +
  57506. + case $host_os in
  57507. + cygwin*)
  57508. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  57509. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  57510. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  57511. + ;;
  57512. + mingw* | cegcc*)
  57513. + # MinGW DLLs use traditional 'lib' prefix
  57514. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  57515. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  57516. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  57517. + # It is most probably a Windows format PATH printed by
  57518. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  57519. + # path with ; separators, and with drive letters. We can handle the
  57520. + # drive letters (cygwin fileutils understands them), so leave them,
  57521. + # especially as we might pass files found there to a mingw objdump,
  57522. + # which wouldn't understand a cygwinified path. Ahh.
  57523. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  57524. + else
  57525. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  57526. + fi
  57527. + ;;
  57528. + pw32*)
  57529. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  57530. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  57531. + ;;
  57532. + esac
  57533. + ;;
  57534. +
  57535. + *)
  57536. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  57537. + ;;
  57538. + esac
  57539. + dynamic_linker='Win32 ld.exe'
  57540. + # FIXME: first we should search . and the directory the executable is in
  57541. + shlibpath_var=PATH
  57542. + ;;
  57543. +
  57544. +darwin* | rhapsody*)
  57545. + dynamic_linker="$host_os dyld"
  57546. + version_type=darwin
  57547. + need_lib_prefix=no
  57548. + need_version=no
  57549. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  57550. + soname_spec='${libname}${release}${major}$shared_ext'
  57551. + shlibpath_overrides_runpath=yes
  57552. + shlibpath_var=DYLD_LIBRARY_PATH
  57553. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  57554. +m4_if([$1], [],[
  57555. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  57556. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  57557. + ;;
  57558. +
  57559. +dgux*)
  57560. + version_type=linux
  57561. + need_lib_prefix=no
  57562. + need_version=no
  57563. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  57564. + soname_spec='${libname}${release}${shared_ext}$major'
  57565. + shlibpath_var=LD_LIBRARY_PATH
  57566. + ;;
  57567. +
  57568. +freebsd1*)
  57569. + dynamic_linker=no
  57570. + ;;
  57571. +
  57572. +freebsd* | dragonfly*)
  57573. + # DragonFly does not have aout. When/if they implement a new
  57574. + # versioning mechanism, adjust this.
  57575. + if test -x /usr/bin/objformat; then
  57576. + objformat=`/usr/bin/objformat`
  57577. + else
  57578. + case $host_os in
  57579. + freebsd[[123]]*) objformat=aout ;;
  57580. + *) objformat=elf ;;
  57581. + esac
  57582. + fi
  57583. + version_type=freebsd-$objformat
  57584. + case $version_type in
  57585. + freebsd-elf*)
  57586. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  57587. + need_version=no
  57588. + need_lib_prefix=no
  57589. + ;;
  57590. + freebsd-*)
  57591. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  57592. + need_version=yes
  57593. + ;;
  57594. + esac
  57595. + shlibpath_var=LD_LIBRARY_PATH
  57596. + case $host_os in
  57597. + freebsd2*)
  57598. + shlibpath_overrides_runpath=yes
  57599. + ;;
  57600. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  57601. + shlibpath_overrides_runpath=yes
  57602. + hardcode_into_libs=yes
  57603. + ;;
  57604. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  57605. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  57606. + shlibpath_overrides_runpath=no
  57607. + hardcode_into_libs=yes
  57608. + ;;
  57609. + *) # from 4.6 on, and DragonFly
  57610. + shlibpath_overrides_runpath=yes
  57611. + hardcode_into_libs=yes
  57612. + ;;
  57613. + esac
  57614. + ;;
  57615. +
  57616. +gnu*)
  57617. + version_type=linux
  57618. + need_lib_prefix=no
  57619. + need_version=no
  57620. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  57621. + soname_spec='${libname}${release}${shared_ext}$major'
  57622. + shlibpath_var=LD_LIBRARY_PATH
  57623. + hardcode_into_libs=yes
  57624. + ;;
  57625. +
  57626. +hpux9* | hpux10* | hpux11*)
  57627. + # Give a soname corresponding to the major version so that dld.sl refuses to
  57628. + # link against other versions.
  57629. + version_type=sunos
  57630. + need_lib_prefix=no
  57631. + need_version=no
  57632. + case $host_cpu in
  57633. + ia64*)
  57634. + shrext_cmds='.so'
  57635. + hardcode_into_libs=yes
  57636. + dynamic_linker="$host_os dld.so"
  57637. + shlibpath_var=LD_LIBRARY_PATH
  57638. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  57639. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  57640. + soname_spec='${libname}${release}${shared_ext}$major'
  57641. + if test "X$HPUX_IA64_MODE" = X32; then
  57642. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  57643. + else
  57644. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  57645. + fi
  57646. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  57647. + ;;
  57648. + hppa*64*)
  57649. + shrext_cmds='.sl'
  57650. + hardcode_into_libs=yes
  57651. + dynamic_linker="$host_os dld.sl"
  57652. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  57653. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  57654. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  57655. + soname_spec='${libname}${release}${shared_ext}$major'
  57656. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  57657. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  57658. + ;;
  57659. + *)
  57660. + shrext_cmds='.sl'
  57661. + dynamic_linker="$host_os dld.sl"
  57662. + shlibpath_var=SHLIB_PATH
  57663. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  57664. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  57665. + soname_spec='${libname}${release}${shared_ext}$major'
  57666. + ;;
  57667. + esac
  57668. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  57669. + postinstall_cmds='chmod 555 $lib'
  57670. + ;;
  57671. +
  57672. +interix[[3-9]]*)
  57673. + version_type=linux
  57674. + need_lib_prefix=no
  57675. + need_version=no
  57676. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  57677. + soname_spec='${libname}${release}${shared_ext}$major'
  57678. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  57679. + shlibpath_var=LD_LIBRARY_PATH
  57680. + shlibpath_overrides_runpath=no
  57681. + hardcode_into_libs=yes
  57682. + ;;
  57683. +
  57684. +irix5* | irix6* | nonstopux*)
  57685. + case $host_os in
  57686. + nonstopux*) version_type=nonstopux ;;
  57687. + *)
  57688. + if test "$lt_cv_prog_gnu_ld" = yes; then
  57689. + version_type=linux
  57690. + else
  57691. + version_type=irix
  57692. + fi ;;
  57693. + esac
  57694. + need_lib_prefix=no
  57695. + need_version=no
  57696. + soname_spec='${libname}${release}${shared_ext}$major'
  57697. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  57698. + case $host_os in
  57699. + irix5* | nonstopux*)
  57700. + libsuff= shlibsuff=
  57701. + ;;
  57702. + *)
  57703. + case $LD in # libtool.m4 will add one of these switches to LD
  57704. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  57705. + libsuff= shlibsuff= libmagic=32-bit;;
  57706. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  57707. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  57708. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  57709. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  57710. + *) libsuff= shlibsuff= libmagic=never-match;;
  57711. + esac
  57712. + ;;
  57713. + esac
  57714. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  57715. + shlibpath_overrides_runpath=no
  57716. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  57717. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  57718. + hardcode_into_libs=yes
  57719. + ;;
  57720. +
  57721. +# No shared lib support for Linux oldld, aout, or coff.
  57722. +linux*oldld* | linux*aout* | linux*coff*)
  57723. + dynamic_linker=no
  57724. + ;;
  57725. +
  57726. +# This must be Linux ELF.
  57727. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  57728. + version_type=linux
  57729. + need_lib_prefix=no
  57730. + need_version=no
  57731. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  57732. + soname_spec='${libname}${release}${shared_ext}$major'
  57733. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  57734. + shlibpath_var=LD_LIBRARY_PATH
  57735. + shlibpath_overrides_runpath=no
  57736. + # Some binutils ld are patched to set DT_RUNPATH
  57737. + save_LDFLAGS=$LDFLAGS
  57738. + save_libdir=$libdir
  57739. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  57740. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  57741. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  57742. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  57743. + [shlibpath_overrides_runpath=yes])])
  57744. + LDFLAGS=$save_LDFLAGS
  57745. + libdir=$save_libdir
  57746. +
  57747. + # This implies no fast_install, which is unacceptable.
  57748. + # Some rework will be needed to allow for fast_install
  57749. + # before this can be enabled.
  57750. + hardcode_into_libs=yes
  57751. +
  57752. + # Append ld.so.conf contents to the search path
  57753. + if test -f /etc/ld.so.conf; then
  57754. + 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' ' '`
  57755. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  57756. + fi
  57757. +
  57758. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  57759. + # powerpc, because MkLinux only supported shared libraries with the
  57760. + # GNU dynamic linker. Since this was broken with cross compilers,
  57761. + # most powerpc-linux boxes support dynamic linking these days and
  57762. + # people can always --disable-shared, the test was removed, and we
  57763. + # assume the GNU/Linux dynamic linker is in use.
  57764. + dynamic_linker='GNU/Linux ld.so'
  57765. + ;;
  57766. +
  57767. +netbsdelf*-gnu)
  57768. + version_type=linux
  57769. + need_lib_prefix=no
  57770. + need_version=no
  57771. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  57772. + soname_spec='${libname}${release}${shared_ext}$major'
  57773. + shlibpath_var=LD_LIBRARY_PATH
  57774. + shlibpath_overrides_runpath=no
  57775. + hardcode_into_libs=yes
  57776. + dynamic_linker='NetBSD ld.elf_so'
  57777. + ;;
  57778. +
  57779. +netbsd*)
  57780. + version_type=sunos
  57781. + need_lib_prefix=no
  57782. + need_version=no
  57783. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  57784. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  57785. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  57786. + dynamic_linker='NetBSD (a.out) ld.so'
  57787. + else
  57788. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  57789. + soname_spec='${libname}${release}${shared_ext}$major'
  57790. + dynamic_linker='NetBSD ld.elf_so'
  57791. + fi
  57792. + shlibpath_var=LD_LIBRARY_PATH
  57793. + shlibpath_overrides_runpath=yes
  57794. + hardcode_into_libs=yes
  57795. + ;;
  57796. +
  57797. +newsos6)
  57798. + version_type=linux
  57799. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  57800. + shlibpath_var=LD_LIBRARY_PATH
  57801. + shlibpath_overrides_runpath=yes
  57802. + ;;
  57803. +
  57804. +*nto* | *qnx*)
  57805. + version_type=qnx
  57806. + need_lib_prefix=no
  57807. + need_version=no
  57808. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  57809. + soname_spec='${libname}${release}${shared_ext}$major'
  57810. + shlibpath_var=LD_LIBRARY_PATH
  57811. + shlibpath_overrides_runpath=no
  57812. + hardcode_into_libs=yes
  57813. + dynamic_linker='ldqnx.so'
  57814. + ;;
  57815. +
  57816. +openbsd*)
  57817. + version_type=sunos
  57818. + sys_lib_dlsearch_path_spec="/usr/lib"
  57819. + need_lib_prefix=no
  57820. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  57821. + case $host_os in
  57822. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  57823. + *) need_version=no ;;
  57824. + esac
  57825. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  57826. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  57827. + shlibpath_var=LD_LIBRARY_PATH
  57828. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  57829. + case $host_os in
  57830. + openbsd2.[[89]] | openbsd2.[[89]].*)
  57831. + shlibpath_overrides_runpath=no
  57832. + ;;
  57833. + *)
  57834. + shlibpath_overrides_runpath=yes
  57835. + ;;
  57836. + esac
  57837. + else
  57838. + shlibpath_overrides_runpath=yes
  57839. + fi
  57840. + ;;
  57841. +
  57842. +os2*)
  57843. + libname_spec='$name'
  57844. + shrext_cmds=".dll"
  57845. + need_lib_prefix=no
  57846. + library_names_spec='$libname${shared_ext} $libname.a'
  57847. + dynamic_linker='OS/2 ld.exe'
  57848. + shlibpath_var=LIBPATH
  57849. + ;;
  57850. +
  57851. +osf3* | osf4* | osf5*)
  57852. + version_type=osf
  57853. + need_lib_prefix=no
  57854. + need_version=no
  57855. + soname_spec='${libname}${release}${shared_ext}$major'
  57856. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  57857. + shlibpath_var=LD_LIBRARY_PATH
  57858. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  57859. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  57860. + ;;
  57861. +
  57862. +rdos*)
  57863. + dynamic_linker=no
  57864. + ;;
  57865. +
  57866. +solaris*)
  57867. + version_type=linux
  57868. + need_lib_prefix=no
  57869. + need_version=no
  57870. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  57871. + soname_spec='${libname}${release}${shared_ext}$major'
  57872. + shlibpath_var=LD_LIBRARY_PATH
  57873. + shlibpath_overrides_runpath=yes
  57874. + hardcode_into_libs=yes
  57875. + # ldd complains unless libraries are executable
  57876. + postinstall_cmds='chmod +x $lib'
  57877. + ;;
  57878. +
  57879. +sunos4*)
  57880. + version_type=sunos
  57881. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  57882. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  57883. + shlibpath_var=LD_LIBRARY_PATH
  57884. + shlibpath_overrides_runpath=yes
  57885. + if test "$with_gnu_ld" = yes; then
  57886. + need_lib_prefix=no
  57887. + fi
  57888. + need_version=yes
  57889. + ;;
  57890. +
  57891. +sysv4 | sysv4.3*)
  57892. + version_type=linux
  57893. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  57894. + soname_spec='${libname}${release}${shared_ext}$major'
  57895. + shlibpath_var=LD_LIBRARY_PATH
  57896. + case $host_vendor in
  57897. + sni)
  57898. + shlibpath_overrides_runpath=no
  57899. + need_lib_prefix=no
  57900. + runpath_var=LD_RUN_PATH
  57901. + ;;
  57902. + siemens)
  57903. + need_lib_prefix=no
  57904. + ;;
  57905. + motorola)
  57906. + need_lib_prefix=no
  57907. + need_version=no
  57908. + shlibpath_overrides_runpath=no
  57909. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  57910. + ;;
  57911. + esac
  57912. + ;;
  57913. +
  57914. +sysv4*MP*)
  57915. + if test -d /usr/nec ;then
  57916. + version_type=linux
  57917. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  57918. + soname_spec='$libname${shared_ext}.$major'
  57919. + shlibpath_var=LD_LIBRARY_PATH
  57920. + fi
  57921. + ;;
  57922. +
  57923. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  57924. + version_type=freebsd-elf
  57925. + need_lib_prefix=no
  57926. + need_version=no
  57927. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  57928. + soname_spec='${libname}${release}${shared_ext}$major'
  57929. + shlibpath_var=LD_LIBRARY_PATH
  57930. + shlibpath_overrides_runpath=yes
  57931. + hardcode_into_libs=yes
  57932. + if test "$with_gnu_ld" = yes; then
  57933. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  57934. + else
  57935. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  57936. + case $host_os in
  57937. + sco3.2v5*)
  57938. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  57939. + ;;
  57940. + esac
  57941. + fi
  57942. + sys_lib_dlsearch_path_spec='/usr/lib'
  57943. + ;;
  57944. +
  57945. +tpf*)
  57946. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  57947. + version_type=linux
  57948. + need_lib_prefix=no
  57949. + need_version=no
  57950. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  57951. + shlibpath_var=LD_LIBRARY_PATH
  57952. + shlibpath_overrides_runpath=no
  57953. + hardcode_into_libs=yes
  57954. + ;;
  57955. +
  57956. +uts4*)
  57957. + version_type=linux
  57958. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  57959. + soname_spec='${libname}${release}${shared_ext}$major'
  57960. + shlibpath_var=LD_LIBRARY_PATH
  57961. + ;;
  57962. +
  57963. +*)
  57964. + dynamic_linker=no
  57965. + ;;
  57966. +esac
  57967. +AC_MSG_RESULT([$dynamic_linker])
  57968. +test "$dynamic_linker" = no && can_build_shared=no
  57969. +
  57970. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  57971. +if test "$GCC" = yes; then
  57972. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  57973. +fi
  57974. +
  57975. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  57976. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  57977. +fi
  57978. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  57979. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  57980. +fi
  57981. +
  57982. +_LT_DECL([], [variables_saved_for_relink], [1],
  57983. + [Variables whose values should be saved in libtool wrapper scripts and
  57984. + restored at link time])
  57985. +_LT_DECL([], [need_lib_prefix], [0],
  57986. + [Do we need the "lib" prefix for modules?])
  57987. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  57988. +_LT_DECL([], [version_type], [0], [Library versioning type])
  57989. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  57990. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  57991. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  57992. + [Is shlibpath searched before the hard-coded library search path?])
  57993. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  57994. +_LT_DECL([], [library_names_spec], [1],
  57995. + [[List of archive names. First name is the real one, the rest are links.
  57996. + The last name is the one that the linker finds with -lNAME]])
  57997. +_LT_DECL([], [soname_spec], [1],
  57998. + [[The coded name of the library, if different from the real name]])
  57999. +_LT_DECL([], [postinstall_cmds], [2],
  58000. + [Command to use after installation of a shared archive])
  58001. +_LT_DECL([], [postuninstall_cmds], [2],
  58002. + [Command to use after uninstallation of a shared archive])
  58003. +_LT_DECL([], [finish_cmds], [2],
  58004. + [Commands used to finish a libtool library installation in a directory])
  58005. +_LT_DECL([], [finish_eval], [1],
  58006. + [[As "finish_cmds", except a single script fragment to be evaled but
  58007. + not shown]])
  58008. +_LT_DECL([], [hardcode_into_libs], [0],
  58009. + [Whether we should hardcode library paths into libraries])
  58010. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  58011. + [Compile-time system search path for libraries])
  58012. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  58013. + [Run-time system search path for libraries])
  58014. +])# _LT_SYS_DYNAMIC_LINKER
  58015. +
  58016. +
  58017. +# _LT_PATH_TOOL_PREFIX(TOOL)
  58018. +# --------------------------
  58019. +# find a file program which can recognize shared library
  58020. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  58021. +[m4_require([_LT_DECL_EGREP])dnl
  58022. +AC_MSG_CHECKING([for $1])
  58023. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  58024. +[case $MAGIC_CMD in
  58025. +[[\\/*] | ?:[\\/]*])
  58026. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  58027. + ;;
  58028. +*)
  58029. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  58030. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  58031. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  58032. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  58033. +dnl not every word. This closes a longstanding sh security hole.
  58034. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  58035. + for ac_dir in $ac_dummy; do
  58036. + IFS="$lt_save_ifs"
  58037. + test -z "$ac_dir" && ac_dir=.
  58038. + if test -f $ac_dir/$1; then
  58039. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  58040. + if test -n "$file_magic_test_file"; then
  58041. + case $deplibs_check_method in
  58042. + "file_magic "*)
  58043. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  58044. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  58045. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  58046. + $EGREP "$file_magic_regex" > /dev/null; then
  58047. + :
  58048. + else
  58049. + cat <<_LT_EOF 1>&2
  58050. +
  58051. +*** Warning: the command libtool uses to detect shared libraries,
  58052. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  58053. +*** The result is that libtool may fail to recognize shared libraries
  58054. +*** as such. This will affect the creation of libtool libraries that
  58055. +*** depend on shared libraries, but programs linked with such libtool
  58056. +*** libraries will work regardless of this problem. Nevertheless, you
  58057. +*** may want to report the problem to your system manager and/or to
  58058. +*** bug-libtool@gnu.org
  58059. +
  58060. +_LT_EOF
  58061. + fi ;;
  58062. + esac
  58063. + fi
  58064. + break
  58065. + fi
  58066. + done
  58067. + IFS="$lt_save_ifs"
  58068. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  58069. + ;;
  58070. +esac])
  58071. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  58072. +if test -n "$MAGIC_CMD"; then
  58073. + AC_MSG_RESULT($MAGIC_CMD)
  58074. +else
  58075. + AC_MSG_RESULT(no)
  58076. +fi
  58077. +_LT_DECL([], [MAGIC_CMD], [0],
  58078. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  58079. +])# _LT_PATH_TOOL_PREFIX
  58080. +
  58081. +# Old name:
  58082. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  58083. +dnl aclocal-1.4 backwards compatibility:
  58084. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  58085. +
  58086. +
  58087. +# _LT_PATH_MAGIC
  58088. +# --------------
  58089. +# find a file program which can recognize a shared library
  58090. +m4_defun([_LT_PATH_MAGIC],
  58091. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  58092. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  58093. + if test -n "$ac_tool_prefix"; then
  58094. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  58095. + else
  58096. + MAGIC_CMD=:
  58097. + fi
  58098. +fi
  58099. +])# _LT_PATH_MAGIC
  58100. +
  58101. +
  58102. +# LT_PATH_LD
  58103. +# ----------
  58104. +# find the pathname to the GNU or non-GNU linker
  58105. +AC_DEFUN([LT_PATH_LD],
  58106. +[AC_REQUIRE([AC_PROG_CC])dnl
  58107. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  58108. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  58109. +m4_require([_LT_DECL_SED])dnl
  58110. +m4_require([_LT_DECL_EGREP])dnl
  58111. +
  58112. +AC_ARG_WITH([gnu-ld],
  58113. + [AS_HELP_STRING([--with-gnu-ld],
  58114. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  58115. + [test "$withval" = no || with_gnu_ld=yes],
  58116. + [with_gnu_ld=no])dnl
  58117. +
  58118. +ac_prog=ld
  58119. +if test "$GCC" = yes; then
  58120. + # Check if gcc -print-prog-name=ld gives a path.
  58121. + AC_MSG_CHECKING([for ld used by $CC])
  58122. + case $host in
  58123. + *-*-mingw*)
  58124. + # gcc leaves a trailing carriage return which upsets mingw
  58125. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  58126. + *)
  58127. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  58128. + esac
  58129. + case $ac_prog in
  58130. + # Accept absolute paths.
  58131. + [[\\/]]* | ?:[[\\/]]*)
  58132. + re_direlt='/[[^/]][[^/]]*/\.\./'
  58133. + # Canonicalize the pathname of ld
  58134. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  58135. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  58136. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  58137. + done
  58138. + test -z "$LD" && LD="$ac_prog"
  58139. + ;;
  58140. + "")
  58141. + # If it fails, then pretend we aren't using GCC.
  58142. + ac_prog=ld
  58143. + ;;
  58144. + *)
  58145. + # If it is relative, then search for the first ld in PATH.
  58146. + with_gnu_ld=unknown
  58147. + ;;
  58148. + esac
  58149. +elif test "$with_gnu_ld" = yes; then
  58150. + AC_MSG_CHECKING([for GNU ld])
  58151. +else
  58152. + AC_MSG_CHECKING([for non-GNU ld])
  58153. +fi
  58154. +AC_CACHE_VAL(lt_cv_path_LD,
  58155. +[if test -z "$LD"; then
  58156. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  58157. + for ac_dir in $PATH; do
  58158. + IFS="$lt_save_ifs"
  58159. + test -z "$ac_dir" && ac_dir=.
  58160. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  58161. + lt_cv_path_LD="$ac_dir/$ac_prog"
  58162. + # Check to see if the program is GNU ld. I'd rather use --version,
  58163. + # but apparently some variants of GNU ld only accept -v.
  58164. + # Break only if it was the GNU/non-GNU ld that we prefer.
  58165. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  58166. + *GNU* | *'with BFD'*)
  58167. + test "$with_gnu_ld" != no && break
  58168. + ;;
  58169. + *)
  58170. + test "$with_gnu_ld" != yes && break
  58171. + ;;
  58172. + esac
  58173. + fi
  58174. + done
  58175. + IFS="$lt_save_ifs"
  58176. +else
  58177. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  58178. +fi])
  58179. +LD="$lt_cv_path_LD"
  58180. +if test -n "$LD"; then
  58181. + AC_MSG_RESULT($LD)
  58182. +else
  58183. + AC_MSG_RESULT(no)
  58184. +fi
  58185. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  58186. +_LT_PATH_LD_GNU
  58187. +AC_SUBST([LD])
  58188. +
  58189. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  58190. +])# LT_PATH_LD
  58191. +
  58192. +# Old names:
  58193. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  58194. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  58195. +dnl aclocal-1.4 backwards compatibility:
  58196. +dnl AC_DEFUN([AM_PROG_LD], [])
  58197. +dnl AC_DEFUN([AC_PROG_LD], [])
  58198. +
  58199. +
  58200. +# _LT_PATH_LD_GNU
  58201. +#- --------------
  58202. +m4_defun([_LT_PATH_LD_GNU],
  58203. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  58204. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  58205. +case `$LD -v 2>&1 </dev/null` in
  58206. +*GNU* | *'with BFD'*)
  58207. + lt_cv_prog_gnu_ld=yes
  58208. + ;;
  58209. +*)
  58210. + lt_cv_prog_gnu_ld=no
  58211. + ;;
  58212. +esac])
  58213. +with_gnu_ld=$lt_cv_prog_gnu_ld
  58214. +])# _LT_PATH_LD_GNU
  58215. +
  58216. +
  58217. +# _LT_CMD_RELOAD
  58218. +# --------------
  58219. +# find reload flag for linker
  58220. +# -- PORTME Some linkers may need a different reload flag.
  58221. +m4_defun([_LT_CMD_RELOAD],
  58222. +[AC_CACHE_CHECK([for $LD option to reload object files],
  58223. + lt_cv_ld_reload_flag,
  58224. + [lt_cv_ld_reload_flag='-r'])
  58225. +reload_flag=$lt_cv_ld_reload_flag
  58226. +case $reload_flag in
  58227. +"" | " "*) ;;
  58228. +*) reload_flag=" $reload_flag" ;;
  58229. +esac
  58230. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  58231. +case $host_os in
  58232. + darwin*)
  58233. + if test "$GCC" = yes; then
  58234. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  58235. + else
  58236. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  58237. + fi
  58238. + ;;
  58239. +esac
  58240. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  58241. +_LT_DECL([], [reload_cmds], [2])dnl
  58242. +])# _LT_CMD_RELOAD
  58243. +
  58244. +
  58245. +# _LT_CHECK_MAGIC_METHOD
  58246. +# ----------------------
  58247. +# how to check for library dependencies
  58248. +# -- PORTME fill in with the dynamic library characteristics
  58249. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  58250. +[m4_require([_LT_DECL_EGREP])
  58251. +m4_require([_LT_DECL_OBJDUMP])
  58252. +AC_CACHE_CHECK([how to recognize dependent libraries],
  58253. +lt_cv_deplibs_check_method,
  58254. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  58255. +lt_cv_file_magic_test_file=
  58256. +lt_cv_deplibs_check_method='unknown'
  58257. +# Need to set the preceding variable on all platforms that support
  58258. +# interlibrary dependencies.
  58259. +# 'none' -- dependencies not supported.
  58260. +# `unknown' -- same as none, but documents that we really don't know.
  58261. +# 'pass_all' -- all dependencies passed with no checks.
  58262. +# 'test_compile' -- check by making test program.
  58263. +# 'file_magic [[regex]]' -- check by looking for files in library path
  58264. +# which responds to the $file_magic_cmd with a given extended regex.
  58265. +# If you have `file' or equivalent on your system and you're not sure
  58266. +# whether `pass_all' will *always* work, you probably want this one.
  58267. +
  58268. +case $host_os in
  58269. +aix[[4-9]]*)
  58270. + lt_cv_deplibs_check_method=pass_all
  58271. + ;;
  58272. +
  58273. +beos*)
  58274. + lt_cv_deplibs_check_method=pass_all
  58275. + ;;
  58276. +
  58277. +bsdi[[45]]*)
  58278. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  58279. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  58280. + lt_cv_file_magic_test_file=/shlib/libc.so
  58281. + ;;
  58282. +
  58283. +cygwin*)
  58284. + # func_win32_libid is a shell function defined in ltmain.sh
  58285. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  58286. + lt_cv_file_magic_cmd='func_win32_libid'
  58287. + ;;
  58288. +
  58289. +mingw* | pw32*)
  58290. + # Base MSYS/MinGW do not provide the 'file' command needed by
  58291. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  58292. + # unless we find 'file', for example because we are cross-compiling.
  58293. + if ( file / ) >/dev/null 2>&1; then
  58294. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  58295. + lt_cv_file_magic_cmd='func_win32_libid'
  58296. + else
  58297. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  58298. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  58299. + fi
  58300. + ;;
  58301. +
  58302. +cegcc)
  58303. + # use the weaker test based on 'objdump'. See mingw*.
  58304. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  58305. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  58306. + ;;
  58307. +
  58308. +darwin* | rhapsody*)
  58309. + lt_cv_deplibs_check_method=pass_all
  58310. + ;;
  58311. +
  58312. +freebsd* | dragonfly*)
  58313. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  58314. + case $host_cpu in
  58315. + i*86 )
  58316. + # Not sure whether the presence of OpenBSD here was a mistake.
  58317. + # Let's accept both of them until this is cleared up.
  58318. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  58319. + lt_cv_file_magic_cmd=/usr/bin/file
  58320. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  58321. + ;;
  58322. + esac
  58323. + else
  58324. + lt_cv_deplibs_check_method=pass_all
  58325. + fi
  58326. + ;;
  58327. +
  58328. +gnu*)
  58329. + lt_cv_deplibs_check_method=pass_all
  58330. + ;;
  58331. +
  58332. +hpux10.20* | hpux11*)
  58333. + lt_cv_file_magic_cmd=/usr/bin/file
  58334. + case $host_cpu in
  58335. + ia64*)
  58336. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  58337. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  58338. + ;;
  58339. + hppa*64*)
  58340. + [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]']
  58341. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  58342. + ;;
  58343. + *)
  58344. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  58345. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  58346. + ;;
  58347. + esac
  58348. + ;;
  58349. +
  58350. +interix[[3-9]]*)
  58351. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  58352. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  58353. + ;;
  58354. +
  58355. +irix5* | irix6* | nonstopux*)
  58356. + case $LD in
  58357. + *-32|*"-32 ") libmagic=32-bit;;
  58358. + *-n32|*"-n32 ") libmagic=N32;;
  58359. + *-64|*"-64 ") libmagic=64-bit;;
  58360. + *) libmagic=never-match;;
  58361. + esac
  58362. + lt_cv_deplibs_check_method=pass_all
  58363. + ;;
  58364. +
  58365. +# This must be Linux ELF.
  58366. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  58367. + lt_cv_deplibs_check_method=pass_all
  58368. + ;;
  58369. +
  58370. +netbsd* | netbsdelf*-gnu)
  58371. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  58372. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  58373. + else
  58374. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  58375. + fi
  58376. + ;;
  58377. +
  58378. +newos6*)
  58379. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  58380. + lt_cv_file_magic_cmd=/usr/bin/file
  58381. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  58382. + ;;
  58383. +
  58384. +*nto* | *qnx*)
  58385. + lt_cv_deplibs_check_method=pass_all
  58386. + ;;
  58387. +
  58388. +openbsd*)
  58389. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  58390. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  58391. + else
  58392. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  58393. + fi
  58394. + ;;
  58395. +
  58396. +osf3* | osf4* | osf5*)
  58397. + lt_cv_deplibs_check_method=pass_all
  58398. + ;;
  58399. +
  58400. +rdos*)
  58401. + lt_cv_deplibs_check_method=pass_all
  58402. + ;;
  58403. +
  58404. +solaris*)
  58405. + lt_cv_deplibs_check_method=pass_all
  58406. + ;;
  58407. +
  58408. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  58409. + lt_cv_deplibs_check_method=pass_all
  58410. + ;;
  58411. +
  58412. +sysv4 | sysv4.3*)
  58413. + case $host_vendor in
  58414. + motorola)
  58415. + 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]]'
  58416. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  58417. + ;;
  58418. + ncr)
  58419. + lt_cv_deplibs_check_method=pass_all
  58420. + ;;
  58421. + sequent)
  58422. + lt_cv_file_magic_cmd='/bin/file'
  58423. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  58424. + ;;
  58425. + sni)
  58426. + lt_cv_file_magic_cmd='/bin/file'
  58427. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  58428. + lt_cv_file_magic_test_file=/lib/libc.so
  58429. + ;;
  58430. + siemens)
  58431. + lt_cv_deplibs_check_method=pass_all
  58432. + ;;
  58433. + pc)
  58434. + lt_cv_deplibs_check_method=pass_all
  58435. + ;;
  58436. + esac
  58437. + ;;
  58438. +
  58439. +tpf*)
  58440. + lt_cv_deplibs_check_method=pass_all
  58441. + ;;
  58442. +esac
  58443. +])
  58444. +file_magic_cmd=$lt_cv_file_magic_cmd
  58445. +deplibs_check_method=$lt_cv_deplibs_check_method
  58446. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  58447. +
  58448. +_LT_DECL([], [deplibs_check_method], [1],
  58449. + [Method to check whether dependent libraries are shared objects])
  58450. +_LT_DECL([], [file_magic_cmd], [1],
  58451. + [Command to use when deplibs_check_method == "file_magic"])
  58452. +])# _LT_CHECK_MAGIC_METHOD
  58453. +
  58454. +
  58455. +# LT_PATH_NM
  58456. +# ----------
  58457. +# find the pathname to a BSD- or MS-compatible name lister
  58458. +AC_DEFUN([LT_PATH_NM],
  58459. +[AC_REQUIRE([AC_PROG_CC])dnl
  58460. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  58461. +[if test -n "$NM"; then
  58462. + # Let the user override the test.
  58463. + lt_cv_path_NM="$NM"
  58464. +else
  58465. + lt_nm_to_check="${ac_tool_prefix}nm"
  58466. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  58467. + lt_nm_to_check="$lt_nm_to_check nm"
  58468. + fi
  58469. + for lt_tmp_nm in $lt_nm_to_check; do
  58470. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  58471. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  58472. + IFS="$lt_save_ifs"
  58473. + test -z "$ac_dir" && ac_dir=.
  58474. + tmp_nm="$ac_dir/$lt_tmp_nm"
  58475. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  58476. + # Check to see if the nm accepts a BSD-compat flag.
  58477. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  58478. + # nm: unknown option "B" ignored
  58479. + # Tru64's nm complains that /dev/null is an invalid object file
  58480. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  58481. + */dev/null* | *'Invalid file or object type'*)
  58482. + lt_cv_path_NM="$tmp_nm -B"
  58483. + break
  58484. + ;;
  58485. + *)
  58486. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  58487. + */dev/null*)
  58488. + lt_cv_path_NM="$tmp_nm -p"
  58489. + break
  58490. + ;;
  58491. + *)
  58492. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  58493. + continue # so that we can try to find one that supports BSD flags
  58494. + ;;
  58495. + esac
  58496. + ;;
  58497. + esac
  58498. + fi
  58499. + done
  58500. + IFS="$lt_save_ifs"
  58501. + done
  58502. + : ${lt_cv_path_NM=no}
  58503. +fi])
  58504. +if test "$lt_cv_path_NM" != "no"; then
  58505. + NM="$lt_cv_path_NM"
  58506. +else
  58507. + # Didn't find any BSD compatible name lister, look for dumpbin.
  58508. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  58509. + AC_SUBST([DUMPBIN])
  58510. + if test "$DUMPBIN" != ":"; then
  58511. + NM="$DUMPBIN"
  58512. + fi
  58513. +fi
  58514. +test -z "$NM" && NM=nm
  58515. +AC_SUBST([NM])
  58516. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  58517. +
  58518. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  58519. + [lt_cv_nm_interface="BSD nm"
  58520. + echo "int some_variable = 0;" > conftest.$ac_ext
  58521. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  58522. + (eval "$ac_compile" 2>conftest.err)
  58523. + cat conftest.err >&AS_MESSAGE_LOG_FD
  58524. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  58525. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  58526. + cat conftest.err >&AS_MESSAGE_LOG_FD
  58527. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  58528. + cat conftest.out >&AS_MESSAGE_LOG_FD
  58529. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  58530. + lt_cv_nm_interface="MS dumpbin"
  58531. + fi
  58532. + rm -f conftest*])
  58533. +])# LT_PATH_NM
  58534. +
  58535. +# Old names:
  58536. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  58537. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  58538. +dnl aclocal-1.4 backwards compatibility:
  58539. +dnl AC_DEFUN([AM_PROG_NM], [])
  58540. +dnl AC_DEFUN([AC_PROG_NM], [])
  58541. +
  58542. +
  58543. +# LT_LIB_M
  58544. +# --------
  58545. +# check for math library
  58546. +AC_DEFUN([LT_LIB_M],
  58547. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  58548. +LIBM=
  58549. +case $host in
  58550. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  58551. + # These system don't have libm, or don't need it
  58552. + ;;
  58553. +*-ncr-sysv4.3*)
  58554. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  58555. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  58556. + ;;
  58557. +*)
  58558. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  58559. + ;;
  58560. +esac
  58561. +AC_SUBST([LIBM])
  58562. +])# LT_LIB_M
  58563. +
  58564. +# Old name:
  58565. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  58566. +dnl aclocal-1.4 backwards compatibility:
  58567. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  58568. +
  58569. +
  58570. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  58571. +# -------------------------------
  58572. +m4_defun([_LT_COMPILER_NO_RTTI],
  58573. +[m4_require([_LT_TAG_COMPILER])dnl
  58574. +
  58575. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  58576. +
  58577. +if test "$GCC" = yes; then
  58578. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  58579. +
  58580. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  58581. + lt_cv_prog_compiler_rtti_exceptions,
  58582. + [-fno-rtti -fno-exceptions], [],
  58583. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  58584. +fi
  58585. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  58586. + [Compiler flag to turn off builtin functions])
  58587. +])# _LT_COMPILER_NO_RTTI
  58588. +
  58589. +
  58590. +# _LT_CMD_GLOBAL_SYMBOLS
  58591. +# ----------------------
  58592. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  58593. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  58594. +AC_REQUIRE([AC_PROG_CC])dnl
  58595. +AC_REQUIRE([LT_PATH_NM])dnl
  58596. +AC_REQUIRE([LT_PATH_LD])dnl
  58597. +m4_require([_LT_DECL_SED])dnl
  58598. +m4_require([_LT_DECL_EGREP])dnl
  58599. +m4_require([_LT_TAG_COMPILER])dnl
  58600. +
  58601. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  58602. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  58603. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  58604. +[
  58605. +# These are sane defaults that work on at least a few old systems.
  58606. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  58607. +
  58608. +# Character class describing NM global symbol codes.
  58609. +symcode='[[BCDEGRST]]'
  58610. +
  58611. +# Regexp to match symbols that can be accessed directly from C.
  58612. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  58613. +
  58614. +# Define system-specific variables.
  58615. +case $host_os in
  58616. +aix*)
  58617. + symcode='[[BCDT]]'
  58618. + ;;
  58619. +cygwin* | mingw* | pw32* | cegcc*)
  58620. + symcode='[[ABCDGISTW]]'
  58621. + ;;
  58622. +hpux*)
  58623. + if test "$host_cpu" = ia64; then
  58624. + symcode='[[ABCDEGRST]]'
  58625. + fi
  58626. + ;;
  58627. +irix* | nonstopux*)
  58628. + symcode='[[BCDEGRST]]'
  58629. + ;;
  58630. +osf*)
  58631. + symcode='[[BCDEGQRST]]'
  58632. + ;;
  58633. +solaris*)
  58634. + symcode='[[BDRT]]'
  58635. + ;;
  58636. +sco3.2v5*)
  58637. + symcode='[[DT]]'
  58638. + ;;
  58639. +sysv4.2uw2*)
  58640. + symcode='[[DT]]'
  58641. + ;;
  58642. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  58643. + symcode='[[ABDT]]'
  58644. + ;;
  58645. +sysv4)
  58646. + symcode='[[DFNSTU]]'
  58647. + ;;
  58648. +esac
  58649. +
  58650. +# If we're using GNU nm, then use its standard symbol codes.
  58651. +case `$NM -V 2>&1` in
  58652. +*GNU* | *'with BFD'*)
  58653. + symcode='[[ABCDGIRSTW]]' ;;
  58654. +esac
  58655. +
  58656. +# Transform an extracted symbol line into a proper C declaration.
  58657. +# Some systems (esp. on ia64) link data and code symbols differently,
  58658. +# so use this general approach.
  58659. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  58660. +
  58661. +# Transform an extracted symbol line into symbol name and symbol address
  58662. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  58663. +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'"
  58664. +
  58665. +# Handle CRLF in mingw tool chain
  58666. +opt_cr=
  58667. +case $build_os in
  58668. +mingw*)
  58669. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  58670. + ;;
  58671. +esac
  58672. +
  58673. +# Try without a prefix underscore, then with it.
  58674. +for ac_symprfx in "" "_"; do
  58675. +
  58676. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  58677. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  58678. +
  58679. + # Write the raw and C identifiers.
  58680. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  58681. + # Fake it for dumpbin and say T for any non-static function
  58682. + # and D for any global variable.
  58683. + # Also find C++ and __fastcall symbols from MSVC++,
  58684. + # which start with @ or ?.
  58685. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  58686. +" {last_section=section; section=\$ 3};"\
  58687. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  58688. +" \$ 0!~/External *\|/{next};"\
  58689. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  58690. +" {if(hide[section]) next};"\
  58691. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  58692. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  58693. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  58694. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  58695. +" ' prfx=^$ac_symprfx]"
  58696. + else
  58697. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  58698. + fi
  58699. +
  58700. + # Check to see that the pipe works correctly.
  58701. + pipe_works=no
  58702. +
  58703. + rm -f conftest*
  58704. + cat > conftest.$ac_ext <<_LT_EOF
  58705. +#ifdef __cplusplus
  58706. +extern "C" {
  58707. +#endif
  58708. +char nm_test_var;
  58709. +void nm_test_func(void);
  58710. +void nm_test_func(void){}
  58711. +#ifdef __cplusplus
  58712. +}
  58713. +#endif
  58714. +int main(){nm_test_var='a';nm_test_func();return(0);}
  58715. +_LT_EOF
  58716. +
  58717. + if AC_TRY_EVAL(ac_compile); then
  58718. + # Now try to grab the symbols.
  58719. + nlist=conftest.nm
  58720. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  58721. + # Try sorting and uniquifying the output.
  58722. + if sort "$nlist" | uniq > "$nlist"T; then
  58723. + mv -f "$nlist"T "$nlist"
  58724. + else
  58725. + rm -f "$nlist"T
  58726. + fi
  58727. +
  58728. + # Make sure that we snagged all the symbols we need.
  58729. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  58730. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  58731. + cat <<_LT_EOF > conftest.$ac_ext
  58732. +#ifdef __cplusplus
  58733. +extern "C" {
  58734. +#endif
  58735. +
  58736. +_LT_EOF
  58737. + # Now generate the symbol file.
  58738. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  58739. +
  58740. + cat <<_LT_EOF >> conftest.$ac_ext
  58741. +
  58742. +/* The mapping between symbol names and symbols. */
  58743. +const struct {
  58744. + const char *name;
  58745. + void *address;
  58746. +}
  58747. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  58748. +{
  58749. + { "@PROGRAM@", (void *) 0 },
  58750. +_LT_EOF
  58751. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  58752. + cat <<\_LT_EOF >> conftest.$ac_ext
  58753. + {0, (void *) 0}
  58754. +};
  58755. +
  58756. +/* This works around a problem in FreeBSD linker */
  58757. +#ifdef FREEBSD_WORKAROUND
  58758. +static const void *lt_preloaded_setup() {
  58759. + return lt__PROGRAM__LTX_preloaded_symbols;
  58760. +}
  58761. +#endif
  58762. +
  58763. +#ifdef __cplusplus
  58764. +}
  58765. +#endif
  58766. +_LT_EOF
  58767. + # Now try linking the two files.
  58768. + mv conftest.$ac_objext conftstm.$ac_objext
  58769. + lt_save_LIBS="$LIBS"
  58770. + lt_save_CFLAGS="$CFLAGS"
  58771. + LIBS="conftstm.$ac_objext"
  58772. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  58773. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  58774. + pipe_works=yes
  58775. + fi
  58776. + LIBS="$lt_save_LIBS"
  58777. + CFLAGS="$lt_save_CFLAGS"
  58778. + else
  58779. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  58780. + fi
  58781. + else
  58782. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  58783. + fi
  58784. + else
  58785. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  58786. + fi
  58787. + else
  58788. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  58789. + cat conftest.$ac_ext >&5
  58790. + fi
  58791. + rm -rf conftest* conftst*
  58792. +
  58793. + # Do not use the global_symbol_pipe unless it works.
  58794. + if test "$pipe_works" = yes; then
  58795. + break
  58796. + else
  58797. + lt_cv_sys_global_symbol_pipe=
  58798. + fi
  58799. +done
  58800. +])
  58801. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  58802. + lt_cv_sys_global_symbol_to_cdecl=
  58803. +fi
  58804. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  58805. + AC_MSG_RESULT(failed)
  58806. +else
  58807. + AC_MSG_RESULT(ok)
  58808. +fi
  58809. +
  58810. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  58811. + [Take the output of nm and produce a listing of raw symbols and C names])
  58812. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  58813. + [Transform the output of nm in a proper C declaration])
  58814. +_LT_DECL([global_symbol_to_c_name_address],
  58815. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  58816. + [Transform the output of nm in a C name address pair])
  58817. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  58818. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  58819. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  58820. +]) # _LT_CMD_GLOBAL_SYMBOLS
  58821. +
  58822. +
  58823. +# _LT_COMPILER_PIC([TAGNAME])
  58824. +# ---------------------------
  58825. +m4_defun([_LT_COMPILER_PIC],
  58826. +[m4_require([_LT_TAG_COMPILER])dnl
  58827. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  58828. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  58829. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  58830. +
  58831. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  58832. +m4_if([$1], [CXX], [
  58833. + # C++ specific cases for pic, static, wl, etc.
  58834. + if test "$GXX" = yes; then
  58835. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58836. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  58837. +
  58838. + case $host_os in
  58839. + aix*)
  58840. + # All AIX code is PIC.
  58841. + if test "$host_cpu" = ia64; then
  58842. + # AIX 5 now supports IA64 processor
  58843. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  58844. + fi
  58845. + ;;
  58846. +
  58847. + amigaos*)
  58848. + case $host_cpu in
  58849. + powerpc)
  58850. + # see comment about AmigaOS4 .so support
  58851. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  58852. + ;;
  58853. + m68k)
  58854. + # FIXME: we need at least 68020 code to build shared libraries, but
  58855. + # adding the `-m68020' flag to GCC prevents building anything better,
  58856. + # like `-m68040'.
  58857. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  58858. + ;;
  58859. + esac
  58860. + ;;
  58861. +
  58862. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  58863. + # PIC is the default for these OSes.
  58864. + ;;
  58865. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  58866. + # This hack is so that the source file can tell whether it is being
  58867. + # built for inclusion in a dll (and should export symbols for example).
  58868. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  58869. + # (--disable-auto-import) libraries
  58870. + m4_if([$1], [GCJ], [],
  58871. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  58872. + ;;
  58873. + darwin* | rhapsody*)
  58874. + # PIC is the default on this platform
  58875. + # Common symbols not allowed in MH_DYLIB files
  58876. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  58877. + ;;
  58878. + *djgpp*)
  58879. + # DJGPP does not support shared libraries at all
  58880. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  58881. + ;;
  58882. + interix[[3-9]]*)
  58883. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  58884. + # Instead, we relocate shared libraries at runtime.
  58885. + ;;
  58886. + sysv4*MP*)
  58887. + if test -d /usr/nec; then
  58888. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  58889. + fi
  58890. + ;;
  58891. + hpux*)
  58892. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  58893. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  58894. + # sets the default TLS model and affects inlining.
  58895. + case $host_cpu in
  58896. + hppa*64*)
  58897. + ;;
  58898. + *)
  58899. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  58900. + ;;
  58901. + esac
  58902. + ;;
  58903. + *qnx* | *nto*)
  58904. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  58905. + # it will coredump.
  58906. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  58907. + ;;
  58908. + *)
  58909. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  58910. + ;;
  58911. + esac
  58912. + else
  58913. + case $host_os in
  58914. + aix[[4-9]]*)
  58915. + # All AIX code is PIC.
  58916. + if test "$host_cpu" = ia64; then
  58917. + # AIX 5 now supports IA64 processor
  58918. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  58919. + else
  58920. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  58921. + fi
  58922. + ;;
  58923. + chorus*)
  58924. + case $cc_basename in
  58925. + cxch68*)
  58926. + # Green Hills C++ Compiler
  58927. + # _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"
  58928. + ;;
  58929. + esac
  58930. + ;;
  58931. + dgux*)
  58932. + case $cc_basename in
  58933. + ec++*)
  58934. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  58935. + ;;
  58936. + ghcx*)
  58937. + # Green Hills C++ Compiler
  58938. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  58939. + ;;
  58940. + *)
  58941. + ;;
  58942. + esac
  58943. + ;;
  58944. + freebsd* | dragonfly*)
  58945. + # FreeBSD uses GNU C++
  58946. + ;;
  58947. + hpux9* | hpux10* | hpux11*)
  58948. + case $cc_basename in
  58949. + CC*)
  58950. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58951. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  58952. + if test "$host_cpu" != ia64; then
  58953. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  58954. + fi
  58955. + ;;
  58956. + aCC*)
  58957. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58958. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  58959. + case $host_cpu in
  58960. + hppa*64*|ia64*)
  58961. + # +Z the default
  58962. + ;;
  58963. + *)
  58964. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  58965. + ;;
  58966. + esac
  58967. + ;;
  58968. + *)
  58969. + ;;
  58970. + esac
  58971. + ;;
  58972. + interix*)
  58973. + # This is c89, which is MS Visual C++ (no shared libs)
  58974. + # Anyone wants to do a port?
  58975. + ;;
  58976. + irix5* | irix6* | nonstopux*)
  58977. + case $cc_basename in
  58978. + CC*)
  58979. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58980. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  58981. + # CC pic flag -KPIC is the default.
  58982. + ;;
  58983. + *)
  58984. + ;;
  58985. + esac
  58986. + ;;
  58987. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  58988. + case $cc_basename in
  58989. + KCC*)
  58990. + # KAI C++ Compiler
  58991. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  58992. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  58993. + ;;
  58994. + ecpc* )
  58995. + # old Intel C++ for x86_64 which still supported -KPIC.
  58996. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58997. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  58998. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  58999. + ;;
  59000. + icpc* )
  59001. + # Intel C++, used to be incompatible with GCC.
  59002. + # ICC 10 doesn't accept -KPIC any more.
  59003. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59004. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  59005. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  59006. + ;;
  59007. + pgCC* | pgcpp*)
  59008. + # Portland Group C++ compiler
  59009. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59010. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  59011. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59012. + ;;
  59013. + cxx*)
  59014. + # Compaq C++
  59015. + # Make sure the PIC flag is empty. It appears that all Alpha
  59016. + # Linux and Compaq Tru64 Unix objects are PIC.
  59017. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  59018. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  59019. + ;;
  59020. + xlc* | xlC*)
  59021. + # IBM XL 8.0 on PPC
  59022. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59023. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  59024. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  59025. + ;;
  59026. + *)
  59027. + case `$CC -V 2>&1 | sed 5q` in
  59028. + *Sun\ C*)
  59029. + # Sun C++ 5.9
  59030. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  59031. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59032. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  59033. + ;;
  59034. + esac
  59035. + ;;
  59036. + esac
  59037. + ;;
  59038. + lynxos*)
  59039. + ;;
  59040. + m88k*)
  59041. + ;;
  59042. + mvs*)
  59043. + case $cc_basename in
  59044. + cxx*)
  59045. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  59046. + ;;
  59047. + *)
  59048. + ;;
  59049. + esac
  59050. + ;;
  59051. + netbsd* | netbsdelf*-gnu)
  59052. + ;;
  59053. + *qnx* | *nto*)
  59054. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  59055. + # it will coredump.
  59056. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  59057. + ;;
  59058. + osf3* | osf4* | osf5*)
  59059. + case $cc_basename in
  59060. + KCC*)
  59061. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  59062. + ;;
  59063. + RCC*)
  59064. + # Rational C++ 2.4.1
  59065. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  59066. + ;;
  59067. + cxx*)
  59068. + # Digital/Compaq C++
  59069. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59070. + # Make sure the PIC flag is empty. It appears that all Alpha
  59071. + # Linux and Compaq Tru64 Unix objects are PIC.
  59072. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  59073. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  59074. + ;;
  59075. + *)
  59076. + ;;
  59077. + esac
  59078. + ;;
  59079. + psos*)
  59080. + ;;
  59081. + solaris*)
  59082. + case $cc_basename in
  59083. + CC*)
  59084. + # Sun C++ 4.2, 5.x and Centerline C++
  59085. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  59086. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59087. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  59088. + ;;
  59089. + gcx*)
  59090. + # Green Hills C++ Compiler
  59091. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  59092. + ;;
  59093. + *)
  59094. + ;;
  59095. + esac
  59096. + ;;
  59097. + sunos4*)
  59098. + case $cc_basename in
  59099. + CC*)
  59100. + # Sun C++ 4.x
  59101. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  59102. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59103. + ;;
  59104. + lcc*)
  59105. + # Lucid
  59106. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  59107. + ;;
  59108. + *)
  59109. + ;;
  59110. + esac
  59111. + ;;
  59112. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  59113. + case $cc_basename in
  59114. + CC*)
  59115. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59116. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  59117. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59118. + ;;
  59119. + esac
  59120. + ;;
  59121. + tandem*)
  59122. + case $cc_basename in
  59123. + NCC*)
  59124. + # NonStop-UX NCC 3.20
  59125. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  59126. + ;;
  59127. + *)
  59128. + ;;
  59129. + esac
  59130. + ;;
  59131. + vxworks*)
  59132. + ;;
  59133. + *)
  59134. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  59135. + ;;
  59136. + esac
  59137. + fi
  59138. +],
  59139. +[
  59140. + if test "$GCC" = yes; then
  59141. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59142. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  59143. +
  59144. + case $host_os in
  59145. + aix*)
  59146. + # All AIX code is PIC.
  59147. + if test "$host_cpu" = ia64; then
  59148. + # AIX 5 now supports IA64 processor
  59149. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59150. + fi
  59151. + ;;
  59152. +
  59153. + amigaos*)
  59154. + case $host_cpu in
  59155. + powerpc)
  59156. + # see comment about AmigaOS4 .so support
  59157. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  59158. + ;;
  59159. + m68k)
  59160. + # FIXME: we need at least 68020 code to build shared libraries, but
  59161. + # adding the `-m68020' flag to GCC prevents building anything better,
  59162. + # like `-m68040'.
  59163. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  59164. + ;;
  59165. + esac
  59166. + ;;
  59167. +
  59168. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  59169. + # PIC is the default for these OSes.
  59170. + ;;
  59171. +
  59172. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  59173. + # This hack is so that the source file can tell whether it is being
  59174. + # built for inclusion in a dll (and should export symbols for example).
  59175. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  59176. + # (--disable-auto-import) libraries
  59177. + m4_if([$1], [GCJ], [],
  59178. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  59179. + ;;
  59180. +
  59181. + darwin* | rhapsody*)
  59182. + # PIC is the default on this platform
  59183. + # Common symbols not allowed in MH_DYLIB files
  59184. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  59185. + ;;
  59186. +
  59187. + hpux*)
  59188. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  59189. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  59190. + # sets the default TLS model and affects inlining.
  59191. + case $host_cpu in
  59192. + hppa*64*)
  59193. + # +Z the default
  59194. + ;;
  59195. + *)
  59196. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  59197. + ;;
  59198. + esac
  59199. + ;;
  59200. +
  59201. + interix[[3-9]]*)
  59202. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  59203. + # Instead, we relocate shared libraries at runtime.
  59204. + ;;
  59205. +
  59206. + msdosdjgpp*)
  59207. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  59208. + # on systems that don't support them.
  59209. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  59210. + enable_shared=no
  59211. + ;;
  59212. +
  59213. + *nto* | *qnx*)
  59214. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  59215. + # it will coredump.
  59216. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  59217. + ;;
  59218. +
  59219. + sysv4*MP*)
  59220. + if test -d /usr/nec; then
  59221. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  59222. + fi
  59223. + ;;
  59224. +
  59225. + *)
  59226. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  59227. + ;;
  59228. + esac
  59229. + else
  59230. + # PORTME Check for flag to pass linker flags through the system compiler.
  59231. + case $host_os in
  59232. + aix*)
  59233. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59234. + if test "$host_cpu" = ia64; then
  59235. + # AIX 5 now supports IA64 processor
  59236. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59237. + else
  59238. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  59239. + fi
  59240. + ;;
  59241. +
  59242. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  59243. + # This hack is so that the source file can tell whether it is being
  59244. + # built for inclusion in a dll (and should export symbols for example).
  59245. + m4_if([$1], [GCJ], [],
  59246. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  59247. + ;;
  59248. +
  59249. + hpux9* | hpux10* | hpux11*)
  59250. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59251. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  59252. + # not for PA HP-UX.
  59253. + case $host_cpu in
  59254. + hppa*64*|ia64*)
  59255. + # +Z the default
  59256. + ;;
  59257. + *)
  59258. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  59259. + ;;
  59260. + esac
  59261. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  59262. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  59263. + ;;
  59264. +
  59265. + irix5* | irix6* | nonstopux*)
  59266. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59267. + # PIC (with -KPIC) is the default.
  59268. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  59269. + ;;
  59270. +
  59271. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  59272. + case $cc_basename in
  59273. + # old Intel for x86_64 which still supported -KPIC.
  59274. + ecc*)
  59275. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59276. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  59277. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  59278. + ;;
  59279. + # icc used to be incompatible with GCC.
  59280. + # ICC 10 doesn't accept -KPIC any more.
  59281. + icc* | ifort*)
  59282. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59283. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  59284. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  59285. + ;;
  59286. + # Lahey Fortran 8.1.
  59287. + lf95*)
  59288. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59289. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  59290. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  59291. + ;;
  59292. + pgcc* | pgf77* | pgf90* | pgf95*)
  59293. + # Portland Group compilers (*not* the Pentium gcc compiler,
  59294. + # which looks to be a dead project)
  59295. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59296. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  59297. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59298. + ;;
  59299. + ccc*)
  59300. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59301. + # All Alpha code is PIC.
  59302. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  59303. + ;;
  59304. + xl*)
  59305. + # IBM XL C 8.0/Fortran 10.1 on PPC
  59306. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59307. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  59308. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  59309. + ;;
  59310. + *)
  59311. + case `$CC -V 2>&1 | sed 5q` in
  59312. + *Sun\ C*)
  59313. + # Sun C 5.9
  59314. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  59315. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59316. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59317. + ;;
  59318. + *Sun\ F*)
  59319. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  59320. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  59321. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59322. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  59323. + ;;
  59324. + esac
  59325. + ;;
  59326. + esac
  59327. + ;;
  59328. +
  59329. + newsos6)
  59330. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  59331. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59332. + ;;
  59333. +
  59334. + *nto* | *qnx*)
  59335. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  59336. + # it will coredump.
  59337. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  59338. + ;;
  59339. +
  59340. + osf3* | osf4* | osf5*)
  59341. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59342. + # All OSF/1 code is PIC.
  59343. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  59344. + ;;
  59345. +
  59346. + rdos*)
  59347. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  59348. + ;;
  59349. +
  59350. + solaris*)
  59351. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  59352. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59353. + case $cc_basename in
  59354. + f77* | f90* | f95*)
  59355. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  59356. + *)
  59357. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  59358. + esac
  59359. + ;;
  59360. +
  59361. + sunos4*)
  59362. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  59363. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  59364. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59365. + ;;
  59366. +
  59367. + sysv4 | sysv4.2uw2* | sysv4.3*)
  59368. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59369. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  59370. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59371. + ;;
  59372. +
  59373. + sysv4*MP*)
  59374. + if test -d /usr/nec ;then
  59375. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  59376. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59377. + fi
  59378. + ;;
  59379. +
  59380. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  59381. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59382. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  59383. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59384. + ;;
  59385. +
  59386. + unicos*)
  59387. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  59388. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  59389. + ;;
  59390. +
  59391. + uts4*)
  59392. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  59393. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  59394. + ;;
  59395. +
  59396. + *)
  59397. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  59398. + ;;
  59399. + esac
  59400. + fi
  59401. +])
  59402. +case $host_os in
  59403. + # For platforms which do not support PIC, -DPIC is meaningless:
  59404. + *djgpp*)
  59405. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  59406. + ;;
  59407. + *)
  59408. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  59409. + ;;
  59410. +esac
  59411. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  59412. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  59413. + [How to pass a linker flag through the compiler])
  59414. +
  59415. +#
  59416. +# Check to make sure the PIC flag actually works.
  59417. +#
  59418. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  59419. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  59420. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  59421. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  59422. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  59423. + "" | " "*) ;;
  59424. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  59425. + esac],
  59426. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  59427. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  59428. +fi
  59429. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  59430. + [Additional compiler flags for building library objects])
  59431. +
  59432. +#
  59433. +# Check to make sure the static flag actually works.
  59434. +#
  59435. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  59436. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  59437. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  59438. + $lt_tmp_static_flag,
  59439. + [],
  59440. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  59441. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  59442. + [Compiler flag to prevent dynamic linking])
  59443. +])# _LT_COMPILER_PIC
  59444. +
  59445. +
  59446. +# _LT_LINKER_SHLIBS([TAGNAME])
  59447. +# ----------------------------
  59448. +# See if the linker supports building shared libraries.
  59449. +m4_defun([_LT_LINKER_SHLIBS],
  59450. +[AC_REQUIRE([LT_PATH_LD])dnl
  59451. +AC_REQUIRE([LT_PATH_NM])dnl
  59452. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  59453. +m4_require([_LT_DECL_EGREP])dnl
  59454. +m4_require([_LT_DECL_SED])dnl
  59455. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  59456. +m4_require([_LT_TAG_COMPILER])dnl
  59457. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  59458. +m4_if([$1], [CXX], [
  59459. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  59460. + case $host_os in
  59461. + aix[[4-9]]*)
  59462. + # If we're using GNU nm, then we don't want the "-C" option.
  59463. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  59464. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  59465. + _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'
  59466. + else
  59467. + _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'
  59468. + fi
  59469. + ;;
  59470. + pw32*)
  59471. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  59472. + ;;
  59473. + cygwin* | mingw* | cegcc*)
  59474. + _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'
  59475. + ;;
  59476. + linux* | k*bsd*-gnu)
  59477. + _LT_TAGVAR(link_all_deplibs, $1)=no
  59478. + ;;
  59479. + *)
  59480. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  59481. + ;;
  59482. + esac
  59483. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  59484. +], [
  59485. + runpath_var=
  59486. + _LT_TAGVAR(allow_undefined_flag, $1)=
  59487. + _LT_TAGVAR(always_export_symbols, $1)=no
  59488. + _LT_TAGVAR(archive_cmds, $1)=
  59489. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  59490. + _LT_TAGVAR(compiler_needs_object, $1)=no
  59491. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  59492. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  59493. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  59494. + _LT_TAGVAR(hardcode_automatic, $1)=no
  59495. + _LT_TAGVAR(hardcode_direct, $1)=no
  59496. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  59497. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  59498. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  59499. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  59500. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  59501. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  59502. + _LT_TAGVAR(inherit_rpath, $1)=no
  59503. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  59504. + _LT_TAGVAR(module_cmds, $1)=
  59505. + _LT_TAGVAR(module_expsym_cmds, $1)=
  59506. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  59507. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  59508. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  59509. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  59510. + # include_expsyms should be a list of space-separated symbols to be *always*
  59511. + # included in the symbol list
  59512. + _LT_TAGVAR(include_expsyms, $1)=
  59513. + # exclude_expsyms can be an extended regexp of symbols to exclude
  59514. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  59515. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  59516. + # as well as any symbol that contains `d'.
  59517. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  59518. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  59519. + # platforms (ab)use it in PIC code, but their linkers get confused if
  59520. + # the symbol is explicitly referenced. Since portable code cannot
  59521. + # rely on this symbol name, it's probably fine to never include it in
  59522. + # preloaded symbol tables.
  59523. + # Exclude shared library initialization/finalization symbols.
  59524. +dnl Note also adjust exclude_expsyms for C++ above.
  59525. + extract_expsyms_cmds=
  59526. +
  59527. + case $host_os in
  59528. + cygwin* | mingw* | pw32* | cegcc*)
  59529. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  59530. + # When not using gcc, we currently assume that we are using
  59531. + # Microsoft Visual C++.
  59532. + if test "$GCC" != yes; then
  59533. + with_gnu_ld=no
  59534. + fi
  59535. + ;;
  59536. + interix*)
  59537. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  59538. + with_gnu_ld=yes
  59539. + ;;
  59540. + openbsd*)
  59541. + with_gnu_ld=no
  59542. + ;;
  59543. + linux* | k*bsd*-gnu)
  59544. + _LT_TAGVAR(link_all_deplibs, $1)=no
  59545. + ;;
  59546. + esac
  59547. +
  59548. + _LT_TAGVAR(ld_shlibs, $1)=yes
  59549. + if test "$with_gnu_ld" = yes; then
  59550. + # If archive_cmds runs LD, not CC, wlarc should be empty
  59551. + wlarc='${wl}'
  59552. +
  59553. + # Set some defaults for GNU ld with shared library support. These
  59554. + # are reset later if shared libraries are not supported. Putting them
  59555. + # here allows them to be overridden if necessary.
  59556. + runpath_var=LD_RUN_PATH
  59557. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  59558. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  59559. + # ancient GNU ld didn't support --whole-archive et. al.
  59560. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  59561. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  59562. + else
  59563. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  59564. + fi
  59565. + supports_anon_versioning=no
  59566. + case `$LD -v 2>&1` in
  59567. + *GNU\ gold*) supports_anon_versioning=yes ;;
  59568. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  59569. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  59570. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  59571. + *\ 2.11.*) ;; # other 2.11 versions
  59572. + *) supports_anon_versioning=yes ;;
  59573. + esac
  59574. +
  59575. + # See if GNU ld supports shared libraries.
  59576. + case $host_os in
  59577. + aix[[3-9]]*)
  59578. + # On AIX/PPC, the GNU linker is very broken
  59579. + if test "$host_cpu" != ia64; then
  59580. + _LT_TAGVAR(ld_shlibs, $1)=no
  59581. + cat <<_LT_EOF 1>&2
  59582. +
  59583. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  59584. +*** to be unable to reliably create shared libraries on AIX.
  59585. +*** Therefore, libtool is disabling shared libraries support. If you
  59586. +*** really care for shared libraries, you may want to modify your PATH
  59587. +*** so that a non-GNU linker is found, and then restart.
  59588. +
  59589. +_LT_EOF
  59590. + fi
  59591. + ;;
  59592. +
  59593. + amigaos*)
  59594. + case $host_cpu in
  59595. + powerpc)
  59596. + # see comment about AmigaOS4 .so support
  59597. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  59598. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  59599. + ;;
  59600. + m68k)
  59601. + _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)'
  59602. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  59603. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  59604. + ;;
  59605. + esac
  59606. + ;;
  59607. +
  59608. + beos*)
  59609. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  59610. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  59611. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  59612. + # support --undefined. This deserves some investigation. FIXME
  59613. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  59614. + else
  59615. + _LT_TAGVAR(ld_shlibs, $1)=no
  59616. + fi
  59617. + ;;
  59618. +
  59619. + cygwin* | mingw* | pw32* | cegcc*)
  59620. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  59621. + # as there is no search path for DLLs.
  59622. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  59623. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  59624. + _LT_TAGVAR(always_export_symbols, $1)=no
  59625. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  59626. + _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'
  59627. +
  59628. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  59629. + _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'
  59630. + # If the export-symbols file already is a .def file (1st line
  59631. + # is EXPORTS), use it as is; otherwise, prepend...
  59632. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  59633. + cp $export_symbols $output_objdir/$soname.def;
  59634. + else
  59635. + echo EXPORTS > $output_objdir/$soname.def;
  59636. + cat $export_symbols >> $output_objdir/$soname.def;
  59637. + fi~
  59638. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  59639. + else
  59640. + _LT_TAGVAR(ld_shlibs, $1)=no
  59641. + fi
  59642. + ;;
  59643. +
  59644. + interix[[3-9]]*)
  59645. + _LT_TAGVAR(hardcode_direct, $1)=no
  59646. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  59647. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  59648. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  59649. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  59650. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  59651. + # default) and relocated if they conflict, which is a slow very memory
  59652. + # consuming and fragmenting process. To avoid this, we pick a random,
  59653. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  59654. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  59655. + _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'
  59656. + _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'
  59657. + ;;
  59658. +
  59659. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  59660. + tmp_diet=no
  59661. + if test "$host_os" = linux-dietlibc; then
  59662. + case $cc_basename in
  59663. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  59664. + esac
  59665. + fi
  59666. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  59667. + && test "$tmp_diet" = no
  59668. + then
  59669. + tmp_addflag=
  59670. + tmp_sharedflag='-shared'
  59671. + case $cc_basename,$host_cpu in
  59672. + pgcc*) # Portland Group C compiler
  59673. + _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'
  59674. + tmp_addflag=' $pic_flag'
  59675. + ;;
  59676. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  59677. + _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'
  59678. + tmp_addflag=' $pic_flag -Mnomain' ;;
  59679. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  59680. + tmp_addflag=' -i_dynamic' ;;
  59681. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  59682. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  59683. + ifc* | ifort*) # Intel Fortran compiler
  59684. + tmp_addflag=' -nofor_main' ;;
  59685. + lf95*) # Lahey Fortran 8.1
  59686. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  59687. + tmp_sharedflag='--shared' ;;
  59688. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  59689. + tmp_sharedflag='-qmkshrobj'
  59690. + tmp_addflag= ;;
  59691. + esac
  59692. + case `$CC -V 2>&1 | sed 5q` in
  59693. + *Sun\ C*) # Sun C 5.9
  59694. + _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'
  59695. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  59696. + tmp_sharedflag='-G' ;;
  59697. + *Sun\ F*) # Sun Fortran 8.3
  59698. + tmp_sharedflag='-G' ;;
  59699. + esac
  59700. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  59701. +
  59702. + if test "x$supports_anon_versioning" = xyes; then
  59703. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  59704. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  59705. + echo "local: *; };" >> $output_objdir/$libname.ver~
  59706. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  59707. + fi
  59708. +
  59709. + case $cc_basename in
  59710. + xlf*)
  59711. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  59712. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  59713. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  59714. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  59715. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  59716. + if test "x$supports_anon_versioning" = xyes; then
  59717. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  59718. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  59719. + echo "local: *; };" >> $output_objdir/$libname.ver~
  59720. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  59721. + fi
  59722. + ;;
  59723. + esac
  59724. + else
  59725. + _LT_TAGVAR(ld_shlibs, $1)=no
  59726. + fi
  59727. + ;;
  59728. +
  59729. + netbsd* | netbsdelf*-gnu)
  59730. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  59731. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  59732. + wlarc=
  59733. + else
  59734. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  59735. + _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'
  59736. + fi
  59737. + ;;
  59738. +
  59739. + solaris*)
  59740. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  59741. + _LT_TAGVAR(ld_shlibs, $1)=no
  59742. + cat <<_LT_EOF 1>&2
  59743. +
  59744. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  59745. +*** create shared libraries on Solaris systems. Therefore, libtool
  59746. +*** is disabling shared libraries support. We urge you to upgrade GNU
  59747. +*** binutils to release 2.9.1 or newer. Another option is to modify
  59748. +*** your PATH or compiler configuration so that the native linker is
  59749. +*** used, and then restart.
  59750. +
  59751. +_LT_EOF
  59752. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  59753. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  59754. + _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'
  59755. + else
  59756. + _LT_TAGVAR(ld_shlibs, $1)=no
  59757. + fi
  59758. + ;;
  59759. +
  59760. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  59761. + case `$LD -v 2>&1` in
  59762. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  59763. + _LT_TAGVAR(ld_shlibs, $1)=no
  59764. + cat <<_LT_EOF 1>&2
  59765. +
  59766. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  59767. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  59768. +*** is disabling shared libraries support. We urge you to upgrade GNU
  59769. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  59770. +*** your PATH or compiler configuration so that the native linker is
  59771. +*** used, and then restart.
  59772. +
  59773. +_LT_EOF
  59774. + ;;
  59775. + *)
  59776. + # For security reasons, it is highly recommended that you always
  59777. + # use absolute paths for naming shared libraries, and exclude the
  59778. + # DT_RUNPATH tag from executables and libraries. But doing so
  59779. + # requires that you compile everything twice, which is a pain.
  59780. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  59781. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  59782. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  59783. + _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'
  59784. + else
  59785. + _LT_TAGVAR(ld_shlibs, $1)=no
  59786. + fi
  59787. + ;;
  59788. + esac
  59789. + ;;
  59790. +
  59791. + sunos4*)
  59792. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  59793. + wlarc=
  59794. + _LT_TAGVAR(hardcode_direct, $1)=yes
  59795. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  59796. + ;;
  59797. +
  59798. + *)
  59799. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  59800. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  59801. + _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'
  59802. + else
  59803. + _LT_TAGVAR(ld_shlibs, $1)=no
  59804. + fi
  59805. + ;;
  59806. + esac
  59807. +
  59808. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  59809. + runpath_var=
  59810. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  59811. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  59812. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  59813. + fi
  59814. + else
  59815. + # PORTME fill in a description of your system's linker (not GNU ld)
  59816. + case $host_os in
  59817. + aix3*)
  59818. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  59819. + _LT_TAGVAR(always_export_symbols, $1)=yes
  59820. + _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'
  59821. + # Note: this linker hardcodes the directories in LIBPATH if there
  59822. + # are no directories specified by -L.
  59823. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  59824. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  59825. + # Neither direct hardcoding nor static linking is supported with a
  59826. + # broken collect2.
  59827. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  59828. + fi
  59829. + ;;
  59830. +
  59831. + aix[[4-9]]*)
  59832. + if test "$host_cpu" = ia64; then
  59833. + # On IA64, the linker does run time linking by default, so we don't
  59834. + # have to do anything special.
  59835. + aix_use_runtimelinking=no
  59836. + exp_sym_flag='-Bexport'
  59837. + no_entry_flag=""
  59838. + else
  59839. + # If we're using GNU nm, then we don't want the "-C" option.
  59840. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  59841. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  59842. + _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'
  59843. + else
  59844. + _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'
  59845. + fi
  59846. + aix_use_runtimelinking=no
  59847. +
  59848. + # Test if we are trying to use run time linking or normal
  59849. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  59850. + # need to do runtime linking.
  59851. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  59852. + for ld_flag in $LDFLAGS; do
  59853. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  59854. + aix_use_runtimelinking=yes
  59855. + break
  59856. + fi
  59857. + done
  59858. + ;;
  59859. + esac
  59860. +
  59861. + exp_sym_flag='-bexport'
  59862. + no_entry_flag='-bnoentry'
  59863. + fi
  59864. +
  59865. + # When large executables or shared objects are built, AIX ld can
  59866. + # have problems creating the table of contents. If linking a library
  59867. + # or program results in "error TOC overflow" add -mminimal-toc to
  59868. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  59869. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  59870. +
  59871. + _LT_TAGVAR(archive_cmds, $1)=''
  59872. + _LT_TAGVAR(hardcode_direct, $1)=yes
  59873. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  59874. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  59875. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  59876. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  59877. +
  59878. + if test "$GCC" = yes; then
  59879. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  59880. + # We only want to do this on AIX 4.2 and lower, the check
  59881. + # below for broken collect2 doesn't work under 4.3+
  59882. + collect2name=`${CC} -print-prog-name=collect2`
  59883. + if test -f "$collect2name" &&
  59884. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  59885. + then
  59886. + # We have reworked collect2
  59887. + :
  59888. + else
  59889. + # We have old collect2
  59890. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  59891. + # It fails to find uninstalled libraries when the uninstalled
  59892. + # path is not listed in the libpath. Setting hardcode_minus_L
  59893. + # to unsupported forces relinking
  59894. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  59895. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  59896. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  59897. + fi
  59898. + ;;
  59899. + esac
  59900. + shared_flag='-shared'
  59901. + if test "$aix_use_runtimelinking" = yes; then
  59902. + shared_flag="$shared_flag "'${wl}-G'
  59903. + fi
  59904. + _LT_TAGVAR(link_all_deplibs, $1)=no
  59905. + else
  59906. + # not using gcc
  59907. + if test "$host_cpu" = ia64; then
  59908. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  59909. + # chokes on -Wl,-G. The following line is correct:
  59910. + shared_flag='-G'
  59911. + else
  59912. + if test "$aix_use_runtimelinking" = yes; then
  59913. + shared_flag='${wl}-G'
  59914. + else
  59915. + shared_flag='${wl}-bM:SRE'
  59916. + fi
  59917. + fi
  59918. + fi
  59919. +
  59920. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  59921. + # It seems that -bexpall does not export symbols beginning with
  59922. + # underscore (_), so it is better to generate a list of symbols to export.
  59923. + _LT_TAGVAR(always_export_symbols, $1)=yes
  59924. + if test "$aix_use_runtimelinking" = yes; then
  59925. + # Warning - without using the other runtime loading flags (-brtl),
  59926. + # -berok will link without error, but may produce a broken library.
  59927. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  59928. + # Determine the default libpath from the value encoded in an
  59929. + # empty executable.
  59930. + _LT_SYS_MODULE_PATH_AIX
  59931. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  59932. + _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"
  59933. + else
  59934. + if test "$host_cpu" = ia64; then
  59935. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  59936. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  59937. + _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"
  59938. + else
  59939. + # Determine the default libpath from the value encoded in an
  59940. + # empty executable.
  59941. + _LT_SYS_MODULE_PATH_AIX
  59942. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  59943. + # Warning - without using the other run time loading flags,
  59944. + # -berok will link without error, but may produce a broken library.
  59945. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  59946. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  59947. + # Exported symbols can be pulled into shared objects from archives
  59948. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  59949. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  59950. + # This is similar to how AIX traditionally builds its shared libraries.
  59951. + _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'
  59952. + fi
  59953. + fi
  59954. + ;;
  59955. +
  59956. + amigaos*)
  59957. + case $host_cpu in
  59958. + powerpc)
  59959. + # see comment about AmigaOS4 .so support
  59960. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  59961. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  59962. + ;;
  59963. + m68k)
  59964. + _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)'
  59965. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  59966. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  59967. + ;;
  59968. + esac
  59969. + ;;
  59970. +
  59971. + bsdi[[45]]*)
  59972. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  59973. + ;;
  59974. +
  59975. + cygwin* | mingw* | pw32* | cegcc*)
  59976. + # When not using gcc, we currently assume that we are using
  59977. + # Microsoft Visual C++.
  59978. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  59979. + # no search path for DLLs.
  59980. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  59981. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  59982. + # Tell ltmain to make .lib files, not .a files.
  59983. + libext=lib
  59984. + # Tell ltmain to make .dll files, not .so files.
  59985. + shrext_cmds=".dll"
  59986. + # FIXME: Setting linknames here is a bad hack.
  59987. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  59988. + # The linker will automatically build a .lib file if we build a DLL.
  59989. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  59990. + # FIXME: Should let the user specify the lib program.
  59991. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  59992. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  59993. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  59994. + ;;
  59995. +
  59996. + darwin* | rhapsody*)
  59997. + _LT_DARWIN_LINKER_FEATURES($1)
  59998. + ;;
  59999. +
  60000. + dgux*)
  60001. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  60002. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  60003. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60004. + ;;
  60005. +
  60006. + freebsd1*)
  60007. + _LT_TAGVAR(ld_shlibs, $1)=no
  60008. + ;;
  60009. +
  60010. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  60011. + # support. Future versions do this automatically, but an explicit c++rt0.o
  60012. + # does not break anything, and helps significantly (at the cost of a little
  60013. + # extra space).
  60014. + freebsd2.2*)
  60015. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  60016. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  60017. + _LT_TAGVAR(hardcode_direct, $1)=yes
  60018. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60019. + ;;
  60020. +
  60021. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  60022. + freebsd2*)
  60023. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  60024. + _LT_TAGVAR(hardcode_direct, $1)=yes
  60025. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  60026. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60027. + ;;
  60028. +
  60029. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  60030. + freebsd* | dragonfly*)
  60031. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  60032. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  60033. + _LT_TAGVAR(hardcode_direct, $1)=yes
  60034. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60035. + ;;
  60036. +
  60037. + hpux9*)
  60038. + if test "$GCC" = yes; then
  60039. + _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'
  60040. + else
  60041. + _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'
  60042. + fi
  60043. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  60044. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  60045. + _LT_TAGVAR(hardcode_direct, $1)=yes
  60046. +
  60047. + # hardcode_minus_L: Not really in the search PATH,
  60048. + # but as the default location of the library.
  60049. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  60050. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  60051. + ;;
  60052. +
  60053. + hpux10*)
  60054. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  60055. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  60056. + else
  60057. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  60058. + fi
  60059. + if test "$with_gnu_ld" = no; then
  60060. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  60061. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  60062. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  60063. + _LT_TAGVAR(hardcode_direct, $1)=yes
  60064. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  60065. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  60066. + # hardcode_minus_L: Not really in the search PATH,
  60067. + # but as the default location of the library.
  60068. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  60069. + fi
  60070. + ;;
  60071. +
  60072. + hpux11*)
  60073. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  60074. + case $host_cpu in
  60075. + hppa*64*)
  60076. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  60077. + ;;
  60078. + ia64*)
  60079. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  60080. + ;;
  60081. + *)
  60082. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  60083. + ;;
  60084. + esac
  60085. + else
  60086. + case $host_cpu in
  60087. + hppa*64*)
  60088. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  60089. + ;;
  60090. + ia64*)
  60091. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  60092. + ;;
  60093. + *)
  60094. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  60095. + ;;
  60096. + esac
  60097. + fi
  60098. + if test "$with_gnu_ld" = no; then
  60099. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  60100. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  60101. +
  60102. + case $host_cpu in
  60103. + hppa*64*|ia64*)
  60104. + _LT_TAGVAR(hardcode_direct, $1)=no
  60105. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60106. + ;;
  60107. + *)
  60108. + _LT_TAGVAR(hardcode_direct, $1)=yes
  60109. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  60110. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  60111. +
  60112. + # hardcode_minus_L: Not really in the search PATH,
  60113. + # but as the default location of the library.
  60114. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  60115. + ;;
  60116. + esac
  60117. + fi
  60118. + ;;
  60119. +
  60120. + irix5* | irix6* | nonstopux*)
  60121. + if test "$GCC" = yes; then
  60122. + _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'
  60123. + # Try to use the -exported_symbol ld option, if it does not
  60124. + # work, assume that -exports_file does not work either and
  60125. + # implicitly export all symbols.
  60126. + save_LDFLAGS="$LDFLAGS"
  60127. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  60128. + AC_LINK_IFELSE(int foo(void) {},
  60129. + _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'
  60130. + )
  60131. + LDFLAGS="$save_LDFLAGS"
  60132. + else
  60133. + _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'
  60134. + _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'
  60135. + fi
  60136. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  60137. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  60138. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  60139. + _LT_TAGVAR(inherit_rpath, $1)=yes
  60140. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  60141. + ;;
  60142. +
  60143. + netbsd* | netbsdelf*-gnu)
  60144. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  60145. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  60146. + else
  60147. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  60148. + fi
  60149. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  60150. + _LT_TAGVAR(hardcode_direct, $1)=yes
  60151. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60152. + ;;
  60153. +
  60154. + newsos6)
  60155. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  60156. + _LT_TAGVAR(hardcode_direct, $1)=yes
  60157. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  60158. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  60159. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60160. + ;;
  60161. +
  60162. + *nto* | *qnx*)
  60163. + ;;
  60164. +
  60165. + openbsd*)
  60166. + if test -f /usr/libexec/ld.so; then
  60167. + _LT_TAGVAR(hardcode_direct, $1)=yes
  60168. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60169. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  60170. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  60171. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  60172. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  60173. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  60174. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  60175. + else
  60176. + case $host_os in
  60177. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  60178. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  60179. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  60180. + ;;
  60181. + *)
  60182. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  60183. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  60184. + ;;
  60185. + esac
  60186. + fi
  60187. + else
  60188. + _LT_TAGVAR(ld_shlibs, $1)=no
  60189. + fi
  60190. + ;;
  60191. +
  60192. + os2*)
  60193. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  60194. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  60195. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  60196. + _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'
  60197. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  60198. + ;;
  60199. +
  60200. + osf3*)
  60201. + if test "$GCC" = yes; then
  60202. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  60203. + _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'
  60204. + else
  60205. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  60206. + _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'
  60207. + fi
  60208. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  60209. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  60210. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  60211. + ;;
  60212. +
  60213. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  60214. + if test "$GCC" = yes; then
  60215. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  60216. + _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'
  60217. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  60218. + else
  60219. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  60220. + _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'
  60221. + _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~
  60222. + $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'
  60223. +
  60224. + # Both c and cxx compiler support -rpath directly
  60225. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  60226. + fi
  60227. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  60228. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  60229. + ;;
  60230. +
  60231. + solaris*)
  60232. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  60233. + if test "$GCC" = yes; then
  60234. + wlarc='${wl}'
  60235. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  60236. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  60237. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  60238. + else
  60239. + case `$CC -V 2>&1` in
  60240. + *"Compilers 5.0"*)
  60241. + wlarc=''
  60242. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  60243. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  60244. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  60245. + ;;
  60246. + *)
  60247. + wlarc='${wl}'
  60248. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  60249. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  60250. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  60251. + ;;
  60252. + esac
  60253. + fi
  60254. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  60255. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60256. + case $host_os in
  60257. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  60258. + *)
  60259. + # The compiler driver will combine and reorder linker options,
  60260. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  60261. + # but is careful enough not to reorder.
  60262. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  60263. + if test "$GCC" = yes; then
  60264. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  60265. + else
  60266. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  60267. + fi
  60268. + ;;
  60269. + esac
  60270. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  60271. + ;;
  60272. +
  60273. + sunos4*)
  60274. + if test "x$host_vendor" = xsequent; then
  60275. + # Use $CC to link under sequent, because it throws in some extra .o
  60276. + # files that make .init and .fini sections work.
  60277. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  60278. + else
  60279. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  60280. + fi
  60281. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  60282. + _LT_TAGVAR(hardcode_direct, $1)=yes
  60283. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  60284. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60285. + ;;
  60286. +
  60287. + sysv4)
  60288. + case $host_vendor in
  60289. + sni)
  60290. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  60291. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  60292. + ;;
  60293. + siemens)
  60294. + ## LD is ld it makes a PLAMLIB
  60295. + ## CC just makes a GrossModule.
  60296. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  60297. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  60298. + _LT_TAGVAR(hardcode_direct, $1)=no
  60299. + ;;
  60300. + motorola)
  60301. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  60302. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  60303. + ;;
  60304. + esac
  60305. + runpath_var='LD_RUN_PATH'
  60306. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60307. + ;;
  60308. +
  60309. + sysv4.3*)
  60310. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  60311. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60312. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  60313. + ;;
  60314. +
  60315. + sysv4*MP*)
  60316. + if test -d /usr/nec; then
  60317. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  60318. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60319. + runpath_var=LD_RUN_PATH
  60320. + hardcode_runpath_var=yes
  60321. + _LT_TAGVAR(ld_shlibs, $1)=yes
  60322. + fi
  60323. + ;;
  60324. +
  60325. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  60326. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  60327. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  60328. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60329. + runpath_var='LD_RUN_PATH'
  60330. +
  60331. + if test "$GCC" = yes; then
  60332. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  60333. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  60334. + else
  60335. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  60336. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  60337. + fi
  60338. + ;;
  60339. +
  60340. + sysv5* | sco3.2v5* | sco5v6*)
  60341. + # Note: We can NOT use -z defs as we might desire, because we do not
  60342. + # link with -lc, and that would cause any symbols used from libc to
  60343. + # always be unresolved, which means just about no library would
  60344. + # ever link correctly. If we're not using GNU ld we use -z text
  60345. + # though, which does catch some bad symbols but isn't as heavy-handed
  60346. + # as -z defs.
  60347. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  60348. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  60349. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  60350. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60351. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  60352. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  60353. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  60354. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  60355. + runpath_var='LD_RUN_PATH'
  60356. +
  60357. + if test "$GCC" = yes; then
  60358. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  60359. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  60360. + else
  60361. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  60362. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  60363. + fi
  60364. + ;;
  60365. +
  60366. + uts4*)
  60367. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  60368. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  60369. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  60370. + ;;
  60371. +
  60372. + *)
  60373. + _LT_TAGVAR(ld_shlibs, $1)=no
  60374. + ;;
  60375. + esac
  60376. +
  60377. + if test x$host_vendor = xsni; then
  60378. + case $host in
  60379. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  60380. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  60381. + ;;
  60382. + esac
  60383. + fi
  60384. + fi
  60385. +])
  60386. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  60387. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  60388. +
  60389. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  60390. +
  60391. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  60392. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  60393. +_LT_DECL([], [extract_expsyms_cmds], [2],
  60394. + [The commands to extract the exported symbol list from a shared archive])
  60395. +
  60396. +#
  60397. +# Do we need to explicitly link libc?
  60398. +#
  60399. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  60400. +x|xyes)
  60401. + # Assume -lc should be added
  60402. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  60403. +
  60404. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  60405. + case $_LT_TAGVAR(archive_cmds, $1) in
  60406. + *'~'*)
  60407. + # FIXME: we may have to deal with multi-command sequences.
  60408. + ;;
  60409. + '$CC '*)
  60410. + # Test whether the compiler implicitly links with -lc since on some
  60411. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  60412. + # to ld, don't add -lc before -lgcc.
  60413. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  60414. + $RM conftest*
  60415. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  60416. +
  60417. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  60418. + soname=conftest
  60419. + lib=conftest
  60420. + libobjs=conftest.$ac_objext
  60421. + deplibs=
  60422. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  60423. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  60424. + compiler_flags=-v
  60425. + linker_flags=-v
  60426. + verstring=
  60427. + output_objdir=.
  60428. + libname=conftest
  60429. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  60430. + _LT_TAGVAR(allow_undefined_flag, $1)=
  60431. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  60432. + then
  60433. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  60434. + else
  60435. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  60436. + fi
  60437. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  60438. + else
  60439. + cat conftest.err 1>&5
  60440. + fi
  60441. + $RM conftest*
  60442. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  60443. + ;;
  60444. + esac
  60445. + fi
  60446. + ;;
  60447. +esac
  60448. +
  60449. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  60450. + [Whether or not to add -lc for building shared libraries])
  60451. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  60452. + [enable_shared_with_static_runtimes], [0],
  60453. + [Whether or not to disallow shared libs when runtime libs are static])
  60454. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  60455. + [Compiler flag to allow reflexive dlopens])
  60456. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  60457. + [Compiler flag to generate shared objects directly from archives])
  60458. +_LT_TAGDECL([], [compiler_needs_object], [1],
  60459. + [Whether the compiler copes with passing no objects directly])
  60460. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  60461. + [Create an old-style archive from a shared archive])
  60462. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  60463. + [Create a temporary old-style archive to link instead of a shared archive])
  60464. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  60465. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  60466. +_LT_TAGDECL([], [module_cmds], [2],
  60467. + [Commands used to build a loadable module if different from building
  60468. + a shared archive.])
  60469. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  60470. +_LT_TAGDECL([], [with_gnu_ld], [1],
  60471. + [Whether we are building with GNU ld or not])
  60472. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  60473. + [Flag that allows shared libraries with undefined symbols to be built])
  60474. +_LT_TAGDECL([], [no_undefined_flag], [1],
  60475. + [Flag that enforces no undefined symbols])
  60476. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  60477. + [Flag to hardcode $libdir into a binary during linking.
  60478. + This must work even if $libdir does not exist])
  60479. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  60480. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  60481. + during linking. This must work even if $libdir does not exist]])
  60482. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  60483. + [Whether we need a single "-rpath" flag with a separated argument])
  60484. +_LT_TAGDECL([], [hardcode_direct], [0],
  60485. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  60486. + DIR into the resulting binary])
  60487. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  60488. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  60489. + DIR into the resulting binary and the resulting library dependency is
  60490. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  60491. + library is relocated])
  60492. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  60493. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  60494. + into the resulting binary])
  60495. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  60496. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  60497. + into the resulting binary])
  60498. +_LT_TAGDECL([], [hardcode_automatic], [0],
  60499. + [Set to "yes" if building a shared library automatically hardcodes DIR
  60500. + into the library and all subsequent libraries and executables linked
  60501. + against it])
  60502. +_LT_TAGDECL([], [inherit_rpath], [0],
  60503. + [Set to yes if linker adds runtime paths of dependent libraries
  60504. + to runtime path list])
  60505. +_LT_TAGDECL([], [link_all_deplibs], [0],
  60506. + [Whether libtool must link a program against all its dependency libraries])
  60507. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  60508. + [Fix the shell variable $srcfile for the compiler])
  60509. +_LT_TAGDECL([], [always_export_symbols], [0],
  60510. + [Set to "yes" if exported symbols are required])
  60511. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  60512. + [The commands to list exported symbols])
  60513. +_LT_TAGDECL([], [exclude_expsyms], [1],
  60514. + [Symbols that should not be listed in the preloaded symbols])
  60515. +_LT_TAGDECL([], [include_expsyms], [1],
  60516. + [Symbols that must always be exported])
  60517. +_LT_TAGDECL([], [prelink_cmds], [2],
  60518. + [Commands necessary for linking programs (against libraries) with templates])
  60519. +_LT_TAGDECL([], [file_list_spec], [1],
  60520. + [Specify filename containing input files])
  60521. +dnl FIXME: Not yet implemented
  60522. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  60523. +dnl [Compiler flag to generate thread safe objects])
  60524. +])# _LT_LINKER_SHLIBS
  60525. +
  60526. +
  60527. +# _LT_LANG_C_CONFIG([TAG])
  60528. +# ------------------------
  60529. +# Ensure that the configuration variables for a C compiler are suitably
  60530. +# defined. These variables are subsequently used by _LT_CONFIG to write
  60531. +# the compiler configuration to `libtool'.
  60532. +m4_defun([_LT_LANG_C_CONFIG],
  60533. +[m4_require([_LT_DECL_EGREP])dnl
  60534. +lt_save_CC="$CC"
  60535. +AC_LANG_PUSH(C)
  60536. +
  60537. +# Source file extension for C test sources.
  60538. +ac_ext=c
  60539. +
  60540. +# Object file extension for compiled C test sources.
  60541. +objext=o
  60542. +_LT_TAGVAR(objext, $1)=$objext
  60543. +
  60544. +# Code to be used in simple compile tests
  60545. +lt_simple_compile_test_code="int some_variable = 0;"
  60546. +
  60547. +# Code to be used in simple link tests
  60548. +lt_simple_link_test_code='int main(){return(0);}'
  60549. +
  60550. +_LT_TAG_COMPILER
  60551. +# Save the default compiler, since it gets overwritten when the other
  60552. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  60553. +compiler_DEFAULT=$CC
  60554. +
  60555. +# save warnings/boilerplate of simple test code
  60556. +_LT_COMPILER_BOILERPLATE
  60557. +_LT_LINKER_BOILERPLATE
  60558. +
  60559. +## CAVEAT EMPTOR:
  60560. +## There is no encapsulation within the following macros, do not change
  60561. +## the running order or otherwise move them around unless you know exactly
  60562. +## what you are doing...
  60563. +if test -n "$compiler"; then
  60564. + _LT_COMPILER_NO_RTTI($1)
  60565. + _LT_COMPILER_PIC($1)
  60566. + _LT_COMPILER_C_O($1)
  60567. + _LT_COMPILER_FILE_LOCKS($1)
  60568. + _LT_LINKER_SHLIBS($1)
  60569. + _LT_SYS_DYNAMIC_LINKER($1)
  60570. + _LT_LINKER_HARDCODE_LIBPATH($1)
  60571. + LT_SYS_DLOPEN_SELF
  60572. + _LT_CMD_STRIPLIB
  60573. +
  60574. + # Report which library types will actually be built
  60575. + AC_MSG_CHECKING([if libtool supports shared libraries])
  60576. + AC_MSG_RESULT([$can_build_shared])
  60577. +
  60578. + AC_MSG_CHECKING([whether to build shared libraries])
  60579. + test "$can_build_shared" = "no" && enable_shared=no
  60580. +
  60581. + # On AIX, shared libraries and static libraries use the same namespace, and
  60582. + # are all built from PIC.
  60583. + case $host_os in
  60584. + aix3*)
  60585. + test "$enable_shared" = yes && enable_static=no
  60586. + if test -n "$RANLIB"; then
  60587. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  60588. + postinstall_cmds='$RANLIB $lib'
  60589. + fi
  60590. + ;;
  60591. +
  60592. + aix[[4-9]]*)
  60593. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  60594. + test "$enable_shared" = yes && enable_static=no
  60595. + fi
  60596. + ;;
  60597. + esac
  60598. + AC_MSG_RESULT([$enable_shared])
  60599. +
  60600. + AC_MSG_CHECKING([whether to build static libraries])
  60601. + # Make sure either enable_shared or enable_static is yes.
  60602. + test "$enable_shared" = yes || enable_static=yes
  60603. + AC_MSG_RESULT([$enable_static])
  60604. +
  60605. + _LT_CONFIG($1)
  60606. +fi
  60607. +AC_LANG_POP
  60608. +CC="$lt_save_CC"
  60609. +])# _LT_LANG_C_CONFIG
  60610. +
  60611. +
  60612. +# _LT_PROG_CXX
  60613. +# ------------
  60614. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  60615. +# compiler, we have our own version here.
  60616. +m4_defun([_LT_PROG_CXX],
  60617. +[
  60618. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  60619. +AC_PROG_CXX
  60620. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  60621. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  60622. + (test "X$CXX" != "Xg++"))) ; then
  60623. + AC_PROG_CXXCPP
  60624. +else
  60625. + _lt_caught_CXX_error=yes
  60626. +fi
  60627. +popdef([AC_MSG_ERROR])
  60628. +])# _LT_PROG_CXX
  60629. +
  60630. +dnl aclocal-1.4 backwards compatibility:
  60631. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  60632. +
  60633. +
  60634. +# _LT_LANG_CXX_CONFIG([TAG])
  60635. +# --------------------------
  60636. +# Ensure that the configuration variables for a C++ compiler are suitably
  60637. +# defined. These variables are subsequently used by _LT_CONFIG to write
  60638. +# the compiler configuration to `libtool'.
  60639. +m4_defun([_LT_LANG_CXX_CONFIG],
  60640. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  60641. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  60642. +m4_require([_LT_DECL_EGREP])dnl
  60643. +
  60644. +AC_LANG_PUSH(C++)
  60645. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  60646. +_LT_TAGVAR(allow_undefined_flag, $1)=
  60647. +_LT_TAGVAR(always_export_symbols, $1)=no
  60648. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  60649. +_LT_TAGVAR(compiler_needs_object, $1)=no
  60650. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  60651. +_LT_TAGVAR(hardcode_direct, $1)=no
  60652. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  60653. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  60654. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  60655. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  60656. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  60657. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  60658. +_LT_TAGVAR(hardcode_automatic, $1)=no
  60659. +_LT_TAGVAR(inherit_rpath, $1)=no
  60660. +_LT_TAGVAR(module_cmds, $1)=
  60661. +_LT_TAGVAR(module_expsym_cmds, $1)=
  60662. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  60663. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  60664. +_LT_TAGVAR(no_undefined_flag, $1)=
  60665. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  60666. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  60667. +
  60668. +# Source file extension for C++ test sources.
  60669. +ac_ext=cpp
  60670. +
  60671. +# Object file extension for compiled C++ test sources.
  60672. +objext=o
  60673. +_LT_TAGVAR(objext, $1)=$objext
  60674. +
  60675. +# No sense in running all these tests if we already determined that
  60676. +# the CXX compiler isn't working. Some variables (like enable_shared)
  60677. +# are currently assumed to apply to all compilers on this platform,
  60678. +# and will be corrupted by setting them based on a non-working compiler.
  60679. +if test "$_lt_caught_CXX_error" != yes; then
  60680. + # Code to be used in simple compile tests
  60681. + lt_simple_compile_test_code="int some_variable = 0;"
  60682. +
  60683. + # Code to be used in simple link tests
  60684. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  60685. +
  60686. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  60687. + _LT_TAG_COMPILER
  60688. +
  60689. + # save warnings/boilerplate of simple test code
  60690. + _LT_COMPILER_BOILERPLATE
  60691. + _LT_LINKER_BOILERPLATE
  60692. +
  60693. + # Allow CC to be a program name with arguments.
  60694. + lt_save_CC=$CC
  60695. + lt_save_LD=$LD
  60696. + lt_save_GCC=$GCC
  60697. + GCC=$GXX
  60698. + lt_save_with_gnu_ld=$with_gnu_ld
  60699. + lt_save_path_LD=$lt_cv_path_LD
  60700. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  60701. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  60702. + else
  60703. + $as_unset lt_cv_prog_gnu_ld
  60704. + fi
  60705. + if test -n "${lt_cv_path_LDCXX+set}"; then
  60706. + lt_cv_path_LD=$lt_cv_path_LDCXX
  60707. + else
  60708. + $as_unset lt_cv_path_LD
  60709. + fi
  60710. + test -z "${LDCXX+set}" || LD=$LDCXX
  60711. + CC=${CXX-"c++"}
  60712. + compiler=$CC
  60713. + _LT_TAGVAR(compiler, $1)=$CC
  60714. + _LT_CC_BASENAME([$compiler])
  60715. +
  60716. + if test -n "$compiler"; then
  60717. + # We don't want -fno-exception when compiling C++ code, so set the
  60718. + # no_builtin_flag separately
  60719. + if test "$GXX" = yes; then
  60720. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  60721. + else
  60722. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  60723. + fi
  60724. +
  60725. + if test "$GXX" = yes; then
  60726. + # Set up default GNU C++ configuration
  60727. +
  60728. + LT_PATH_LD
  60729. +
  60730. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  60731. + # archiving commands below assume that GNU ld is being used.
  60732. + if test "$with_gnu_ld" = yes; then
  60733. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  60734. + _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'
  60735. +
  60736. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  60737. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  60738. +
  60739. + # If archive_cmds runs LD, not CC, wlarc should be empty
  60740. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  60741. + # investigate it a little bit more. (MM)
  60742. + wlarc='${wl}'
  60743. +
  60744. + # ancient GNU ld didn't support --whole-archive et. al.
  60745. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  60746. + $GREP 'no-whole-archive' > /dev/null; then
  60747. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  60748. + else
  60749. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  60750. + fi
  60751. + else
  60752. + with_gnu_ld=no
  60753. + wlarc=
  60754. +
  60755. + # A generic and very simple default shared library creation
  60756. + # command for GNU C++ for the case where it uses the native
  60757. + # linker, instead of GNU ld. If possible, this setting should
  60758. + # overridden to take advantage of the native linker features on
  60759. + # the platform it is being used on.
  60760. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  60761. + fi
  60762. +
  60763. + # Commands to make compiler produce verbose output that lists
  60764. + # what "hidden" libraries, object files and flags are used when
  60765. + # linking a shared library.
  60766. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  60767. +
  60768. + else
  60769. + GXX=no
  60770. + with_gnu_ld=no
  60771. + wlarc=
  60772. + fi
  60773. +
  60774. + # PORTME: fill in a description of your system's C++ link characteristics
  60775. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  60776. + _LT_TAGVAR(ld_shlibs, $1)=yes
  60777. + case $host_os in
  60778. + aix3*)
  60779. + # FIXME: insert proper C++ library support
  60780. + _LT_TAGVAR(ld_shlibs, $1)=no
  60781. + ;;
  60782. + aix[[4-9]]*)
  60783. + if test "$host_cpu" = ia64; then
  60784. + # On IA64, the linker does run time linking by default, so we don't
  60785. + # have to do anything special.
  60786. + aix_use_runtimelinking=no
  60787. + exp_sym_flag='-Bexport'
  60788. + no_entry_flag=""
  60789. + else
  60790. + aix_use_runtimelinking=no
  60791. +
  60792. + # Test if we are trying to use run time linking or normal
  60793. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  60794. + # need to do runtime linking.
  60795. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  60796. + for ld_flag in $LDFLAGS; do
  60797. + case $ld_flag in
  60798. + *-brtl*)
  60799. + aix_use_runtimelinking=yes
  60800. + break
  60801. + ;;
  60802. + esac
  60803. + done
  60804. + ;;
  60805. + esac
  60806. +
  60807. + exp_sym_flag='-bexport'
  60808. + no_entry_flag='-bnoentry'
  60809. + fi
  60810. +
  60811. + # When large executables or shared objects are built, AIX ld can
  60812. + # have problems creating the table of contents. If linking a library
  60813. + # or program results in "error TOC overflow" add -mminimal-toc to
  60814. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  60815. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  60816. +
  60817. + _LT_TAGVAR(archive_cmds, $1)=''
  60818. + _LT_TAGVAR(hardcode_direct, $1)=yes
  60819. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  60820. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  60821. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  60822. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  60823. +
  60824. + if test "$GXX" = yes; then
  60825. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  60826. + # We only want to do this on AIX 4.2 and lower, the check
  60827. + # below for broken collect2 doesn't work under 4.3+
  60828. + collect2name=`${CC} -print-prog-name=collect2`
  60829. + if test -f "$collect2name" &&
  60830. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  60831. + then
  60832. + # We have reworked collect2
  60833. + :
  60834. + else
  60835. + # We have old collect2
  60836. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  60837. + # It fails to find uninstalled libraries when the uninstalled
  60838. + # path is not listed in the libpath. Setting hardcode_minus_L
  60839. + # to unsupported forces relinking
  60840. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  60841. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  60842. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  60843. + fi
  60844. + esac
  60845. + shared_flag='-shared'
  60846. + if test "$aix_use_runtimelinking" = yes; then
  60847. + shared_flag="$shared_flag "'${wl}-G'
  60848. + fi
  60849. + else
  60850. + # not using gcc
  60851. + if test "$host_cpu" = ia64; then
  60852. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  60853. + # chokes on -Wl,-G. The following line is correct:
  60854. + shared_flag='-G'
  60855. + else
  60856. + if test "$aix_use_runtimelinking" = yes; then
  60857. + shared_flag='${wl}-G'
  60858. + else
  60859. + shared_flag='${wl}-bM:SRE'
  60860. + fi
  60861. + fi
  60862. + fi
  60863. +
  60864. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  60865. + # It seems that -bexpall does not export symbols beginning with
  60866. + # underscore (_), so it is better to generate a list of symbols to
  60867. + # export.
  60868. + _LT_TAGVAR(always_export_symbols, $1)=yes
  60869. + if test "$aix_use_runtimelinking" = yes; then
  60870. + # Warning - without using the other runtime loading flags (-brtl),
  60871. + # -berok will link without error, but may produce a broken library.
  60872. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  60873. + # Determine the default libpath from the value encoded in an empty
  60874. + # executable.
  60875. + _LT_SYS_MODULE_PATH_AIX
  60876. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  60877. +
  60878. + _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"
  60879. + else
  60880. + if test "$host_cpu" = ia64; then
  60881. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  60882. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  60883. + _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"
  60884. + else
  60885. + # Determine the default libpath from the value encoded in an
  60886. + # empty executable.
  60887. + _LT_SYS_MODULE_PATH_AIX
  60888. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  60889. + # Warning - without using the other run time loading flags,
  60890. + # -berok will link without error, but may produce a broken library.
  60891. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  60892. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  60893. + # Exported symbols can be pulled into shared objects from archives
  60894. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  60895. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  60896. + # This is similar to how AIX traditionally builds its shared
  60897. + # libraries.
  60898. + _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'
  60899. + fi
  60900. + fi
  60901. + ;;
  60902. +
  60903. + beos*)
  60904. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  60905. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  60906. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  60907. + # support --undefined. This deserves some investigation. FIXME
  60908. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  60909. + else
  60910. + _LT_TAGVAR(ld_shlibs, $1)=no
  60911. + fi
  60912. + ;;
  60913. +
  60914. + chorus*)
  60915. + case $cc_basename in
  60916. + *)
  60917. + # FIXME: insert proper C++ library support
  60918. + _LT_TAGVAR(ld_shlibs, $1)=no
  60919. + ;;
  60920. + esac
  60921. + ;;
  60922. +
  60923. + cygwin* | mingw* | pw32* | cegcc*)
  60924. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  60925. + # as there is no search path for DLLs.
  60926. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  60927. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  60928. + _LT_TAGVAR(always_export_symbols, $1)=no
  60929. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  60930. +
  60931. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  60932. + _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'
  60933. + # If the export-symbols file already is a .def file (1st line
  60934. + # is EXPORTS), use it as is; otherwise, prepend...
  60935. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  60936. + cp $export_symbols $output_objdir/$soname.def;
  60937. + else
  60938. + echo EXPORTS > $output_objdir/$soname.def;
  60939. + cat $export_symbols >> $output_objdir/$soname.def;
  60940. + fi~
  60941. + $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'
  60942. + else
  60943. + _LT_TAGVAR(ld_shlibs, $1)=no
  60944. + fi
  60945. + ;;
  60946. + darwin* | rhapsody*)
  60947. + _LT_DARWIN_LINKER_FEATURES($1)
  60948. + ;;
  60949. +
  60950. + dgux*)
  60951. + case $cc_basename in
  60952. + ec++*)
  60953. + # FIXME: insert proper C++ library support
  60954. + _LT_TAGVAR(ld_shlibs, $1)=no
  60955. + ;;
  60956. + ghcx*)
  60957. + # Green Hills C++ Compiler
  60958. + # FIXME: insert proper C++ library support
  60959. + _LT_TAGVAR(ld_shlibs, $1)=no
  60960. + ;;
  60961. + *)
  60962. + # FIXME: insert proper C++ library support
  60963. + _LT_TAGVAR(ld_shlibs, $1)=no
  60964. + ;;
  60965. + esac
  60966. + ;;
  60967. +
  60968. + freebsd[[12]]*)
  60969. + # C++ shared libraries reported to be fairly broken before
  60970. + # switch to ELF
  60971. + _LT_TAGVAR(ld_shlibs, $1)=no
  60972. + ;;
  60973. +
  60974. + freebsd-elf*)
  60975. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  60976. + ;;
  60977. +
  60978. + freebsd* | dragonfly*)
  60979. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  60980. + # conventions
  60981. + _LT_TAGVAR(ld_shlibs, $1)=yes
  60982. + ;;
  60983. +
  60984. + gnu*)
  60985. + ;;
  60986. +
  60987. + hpux9*)
  60988. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  60989. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  60990. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  60991. + _LT_TAGVAR(hardcode_direct, $1)=yes
  60992. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  60993. + # but as the default
  60994. + # location of the library.
  60995. +
  60996. + case $cc_basename in
  60997. + CC*)
  60998. + # FIXME: insert proper C++ library support
  60999. + _LT_TAGVAR(ld_shlibs, $1)=no
  61000. + ;;
  61001. + aCC*)
  61002. + _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'
  61003. + # Commands to make compiler produce verbose output that lists
  61004. + # what "hidden" libraries, object files and flags are used when
  61005. + # linking a shared library.
  61006. + #
  61007. + # There doesn't appear to be a way to prevent this compiler from
  61008. + # explicitly linking system object files so we need to strip them
  61009. + # from the output so that they don't get included in the library
  61010. + # dependencies.
  61011. + 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'
  61012. + ;;
  61013. + *)
  61014. + if test "$GXX" = yes; then
  61015. + _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'
  61016. + else
  61017. + # FIXME: insert proper C++ library support
  61018. + _LT_TAGVAR(ld_shlibs, $1)=no
  61019. + fi
  61020. + ;;
  61021. + esac
  61022. + ;;
  61023. +
  61024. + hpux10*|hpux11*)
  61025. + if test $with_gnu_ld = no; then
  61026. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  61027. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  61028. +
  61029. + case $host_cpu in
  61030. + hppa*64*|ia64*)
  61031. + ;;
  61032. + *)
  61033. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  61034. + ;;
  61035. + esac
  61036. + fi
  61037. + case $host_cpu in
  61038. + hppa*64*|ia64*)
  61039. + _LT_TAGVAR(hardcode_direct, $1)=no
  61040. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  61041. + ;;
  61042. + *)
  61043. + _LT_TAGVAR(hardcode_direct, $1)=yes
  61044. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  61045. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  61046. + # but as the default
  61047. + # location of the library.
  61048. + ;;
  61049. + esac
  61050. +
  61051. + case $cc_basename in
  61052. + CC*)
  61053. + # FIXME: insert proper C++ library support
  61054. + _LT_TAGVAR(ld_shlibs, $1)=no
  61055. + ;;
  61056. + aCC*)
  61057. + case $host_cpu in
  61058. + hppa*64*)
  61059. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  61060. + ;;
  61061. + ia64*)
  61062. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  61063. + ;;
  61064. + *)
  61065. + _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'
  61066. + ;;
  61067. + esac
  61068. + # Commands to make compiler produce verbose output that lists
  61069. + # what "hidden" libraries, object files and flags are used when
  61070. + # linking a shared library.
  61071. + #
  61072. + # There doesn't appear to be a way to prevent this compiler from
  61073. + # explicitly linking system object files so we need to strip them
  61074. + # from the output so that they don't get included in the library
  61075. + # dependencies.
  61076. + 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'
  61077. + ;;
  61078. + *)
  61079. + if test "$GXX" = yes; then
  61080. + if test $with_gnu_ld = no; then
  61081. + case $host_cpu in
  61082. + hppa*64*)
  61083. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  61084. + ;;
  61085. + ia64*)
  61086. + _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'
  61087. + ;;
  61088. + *)
  61089. + _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'
  61090. + ;;
  61091. + esac
  61092. + fi
  61093. + else
  61094. + # FIXME: insert proper C++ library support
  61095. + _LT_TAGVAR(ld_shlibs, $1)=no
  61096. + fi
  61097. + ;;
  61098. + esac
  61099. + ;;
  61100. +
  61101. + interix[[3-9]]*)
  61102. + _LT_TAGVAR(hardcode_direct, $1)=no
  61103. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  61104. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  61105. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  61106. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  61107. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  61108. + # default) and relocated if they conflict, which is a slow very memory
  61109. + # consuming and fragmenting process. To avoid this, we pick a random,
  61110. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  61111. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  61112. + _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'
  61113. + _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'
  61114. + ;;
  61115. + irix5* | irix6*)
  61116. + case $cc_basename in
  61117. + CC*)
  61118. + # SGI C++
  61119. + _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'
  61120. +
  61121. + # Archives containing C++ object files must be created using
  61122. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  61123. + # necessary to make sure instantiated templates are included
  61124. + # in the archive.
  61125. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  61126. + ;;
  61127. + *)
  61128. + if test "$GXX" = yes; then
  61129. + if test "$with_gnu_ld" = no; then
  61130. + _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'
  61131. + else
  61132. + _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'
  61133. + fi
  61134. + fi
  61135. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  61136. + ;;
  61137. + esac
  61138. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  61139. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  61140. + _LT_TAGVAR(inherit_rpath, $1)=yes
  61141. + ;;
  61142. +
  61143. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  61144. + case $cc_basename in
  61145. + KCC*)
  61146. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  61147. +
  61148. + # KCC will only create a shared library if the output file
  61149. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  61150. + # to its proper name (with version) after linking.
  61151. + _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'
  61152. + _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'
  61153. + # Commands to make compiler produce verbose output that lists
  61154. + # what "hidden" libraries, object files and flags are used when
  61155. + # linking a shared library.
  61156. + #
  61157. + # There doesn't appear to be a way to prevent this compiler from
  61158. + # explicitly linking system object files so we need to strip them
  61159. + # from the output so that they don't get included in the library
  61160. + # dependencies.
  61161. + 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'
  61162. +
  61163. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  61164. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  61165. +
  61166. + # Archives containing C++ object files must be created using
  61167. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  61168. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  61169. + ;;
  61170. + icpc* | ecpc* )
  61171. + # Intel C++
  61172. + with_gnu_ld=yes
  61173. + # version 8.0 and above of icpc choke on multiply defined symbols
  61174. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  61175. + # earlier do not add the objects themselves.
  61176. + case `$CC -V 2>&1` in
  61177. + *"Version 7."*)
  61178. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  61179. + _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'
  61180. + ;;
  61181. + *) # Version 8.0 or newer
  61182. + tmp_idyn=
  61183. + case $host_cpu in
  61184. + ia64*) tmp_idyn=' -i_dynamic';;
  61185. + esac
  61186. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  61187. + _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'
  61188. + ;;
  61189. + esac
  61190. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  61191. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  61192. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  61193. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  61194. + ;;
  61195. + pgCC* | pgcpp*)
  61196. + # Portland Group C++ compiler
  61197. + case `$CC -V` in
  61198. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  61199. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  61200. + rm -rf $tpldir~
  61201. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  61202. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  61203. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  61204. + rm -rf $tpldir~
  61205. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  61206. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  61207. + $RANLIB $oldlib'
  61208. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  61209. + rm -rf $tpldir~
  61210. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  61211. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  61212. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  61213. + rm -rf $tpldir~
  61214. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  61215. + $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'
  61216. + ;;
  61217. + *) # Version 6 will use weak symbols
  61218. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  61219. + _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'
  61220. + ;;
  61221. + esac
  61222. +
  61223. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  61224. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  61225. + _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'
  61226. + ;;
  61227. + cxx*)
  61228. + # Compaq C++
  61229. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  61230. + _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'
  61231. +
  61232. + runpath_var=LD_RUN_PATH
  61233. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  61234. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  61235. +
  61236. + # Commands to make compiler produce verbose output that lists
  61237. + # what "hidden" libraries, object files and flags are used when
  61238. + # linking a shared library.
  61239. + #
  61240. + # There doesn't appear to be a way to prevent this compiler from
  61241. + # explicitly linking system object files so we need to strip them
  61242. + # from the output so that they don't get included in the library
  61243. + # dependencies.
  61244. + 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'
  61245. + ;;
  61246. + xl*)
  61247. + # IBM XL 8.0 on PPC, with GNU ld
  61248. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  61249. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  61250. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  61251. + if test "x$supports_anon_versioning" = xyes; then
  61252. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  61253. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  61254. + echo "local: *; };" >> $output_objdir/$libname.ver~
  61255. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  61256. + fi
  61257. + ;;
  61258. + *)
  61259. + case `$CC -V 2>&1 | sed 5q` in
  61260. + *Sun\ C*)
  61261. + # Sun C++ 5.9
  61262. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  61263. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  61264. + _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'
  61265. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  61266. + _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'
  61267. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  61268. +
  61269. + # Not sure whether something based on
  61270. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  61271. + # would be better.
  61272. + output_verbose_link_cmd='echo'
  61273. +
  61274. + # Archives containing C++ object files must be created using
  61275. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  61276. + # necessary to make sure instantiated templates are included
  61277. + # in the archive.
  61278. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  61279. + ;;
  61280. + esac
  61281. + ;;
  61282. + esac
  61283. + ;;
  61284. +
  61285. + lynxos*)
  61286. + # FIXME: insert proper C++ library support
  61287. + _LT_TAGVAR(ld_shlibs, $1)=no
  61288. + ;;
  61289. +
  61290. + m88k*)
  61291. + # FIXME: insert proper C++ library support
  61292. + _LT_TAGVAR(ld_shlibs, $1)=no
  61293. + ;;
  61294. +
  61295. + mvs*)
  61296. + case $cc_basename in
  61297. + cxx*)
  61298. + # FIXME: insert proper C++ library support
  61299. + _LT_TAGVAR(ld_shlibs, $1)=no
  61300. + ;;
  61301. + *)
  61302. + # FIXME: insert proper C++ library support
  61303. + _LT_TAGVAR(ld_shlibs, $1)=no
  61304. + ;;
  61305. + esac
  61306. + ;;
  61307. +
  61308. + netbsd*)
  61309. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  61310. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  61311. + wlarc=
  61312. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  61313. + _LT_TAGVAR(hardcode_direct, $1)=yes
  61314. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  61315. + fi
  61316. + # Workaround some broken pre-1.5 toolchains
  61317. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  61318. + ;;
  61319. +
  61320. + *nto* | *qnx*)
  61321. + _LT_TAGVAR(ld_shlibs, $1)=yes
  61322. + ;;
  61323. +
  61324. + openbsd2*)
  61325. + # C++ shared libraries are fairly broken
  61326. + _LT_TAGVAR(ld_shlibs, $1)=no
  61327. + ;;
  61328. +
  61329. + openbsd*)
  61330. + if test -f /usr/libexec/ld.so; then
  61331. + _LT_TAGVAR(hardcode_direct, $1)=yes
  61332. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  61333. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  61334. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  61335. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  61336. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  61337. + _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'
  61338. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  61339. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  61340. + fi
  61341. + output_verbose_link_cmd=echo
  61342. + else
  61343. + _LT_TAGVAR(ld_shlibs, $1)=no
  61344. + fi
  61345. + ;;
  61346. +
  61347. + osf3* | osf4* | osf5*)
  61348. + case $cc_basename in
  61349. + KCC*)
  61350. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  61351. +
  61352. + # KCC will only create a shared library if the output file
  61353. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  61354. + # to its proper name (with version) after linking.
  61355. + _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'
  61356. +
  61357. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  61358. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  61359. +
  61360. + # Archives containing C++ object files must be created using
  61361. + # the KAI C++ compiler.
  61362. + case $host in
  61363. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  61364. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  61365. + esac
  61366. + ;;
  61367. + RCC*)
  61368. + # Rational C++ 2.4.1
  61369. + # FIXME: insert proper C++ library support
  61370. + _LT_TAGVAR(ld_shlibs, $1)=no
  61371. + ;;
  61372. + cxx*)
  61373. + case $host in
  61374. + osf3*)
  61375. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  61376. + _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'
  61377. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  61378. + ;;
  61379. + *)
  61380. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  61381. + _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'
  61382. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  61383. + echo "-hidden">> $lib.exp~
  61384. + $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~
  61385. + $RM $lib.exp'
  61386. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  61387. + ;;
  61388. + esac
  61389. +
  61390. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  61391. +
  61392. + # Commands to make compiler produce verbose output that lists
  61393. + # what "hidden" libraries, object files and flags are used when
  61394. + # linking a shared library.
  61395. + #
  61396. + # There doesn't appear to be a way to prevent this compiler from
  61397. + # explicitly linking system object files so we need to strip them
  61398. + # from the output so that they don't get included in the library
  61399. + # dependencies.
  61400. + 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'
  61401. + ;;
  61402. + *)
  61403. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  61404. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  61405. + case $host in
  61406. + osf3*)
  61407. + _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'
  61408. + ;;
  61409. + *)
  61410. + _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'
  61411. + ;;
  61412. + esac
  61413. +
  61414. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  61415. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  61416. +
  61417. + # Commands to make compiler produce verbose output that lists
  61418. + # what "hidden" libraries, object files and flags are used when
  61419. + # linking a shared library.
  61420. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  61421. +
  61422. + else
  61423. + # FIXME: insert proper C++ library support
  61424. + _LT_TAGVAR(ld_shlibs, $1)=no
  61425. + fi
  61426. + ;;
  61427. + esac
  61428. + ;;
  61429. +
  61430. + psos*)
  61431. + # FIXME: insert proper C++ library support
  61432. + _LT_TAGVAR(ld_shlibs, $1)=no
  61433. + ;;
  61434. +
  61435. + sunos4*)
  61436. + case $cc_basename in
  61437. + CC*)
  61438. + # Sun C++ 4.x
  61439. + # FIXME: insert proper C++ library support
  61440. + _LT_TAGVAR(ld_shlibs, $1)=no
  61441. + ;;
  61442. + lcc*)
  61443. + # Lucid
  61444. + # FIXME: insert proper C++ library support
  61445. + _LT_TAGVAR(ld_shlibs, $1)=no
  61446. + ;;
  61447. + *)
  61448. + # FIXME: insert proper C++ library support
  61449. + _LT_TAGVAR(ld_shlibs, $1)=no
  61450. + ;;
  61451. + esac
  61452. + ;;
  61453. +
  61454. + solaris*)
  61455. + case $cc_basename in
  61456. + CC*)
  61457. + # Sun C++ 4.2, 5.x and Centerline C++
  61458. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  61459. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  61460. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  61461. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  61462. + $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'
  61463. +
  61464. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  61465. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  61466. + case $host_os in
  61467. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  61468. + *)
  61469. + # The compiler driver will combine and reorder linker options,
  61470. + # but understands `-z linker_flag'.
  61471. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  61472. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  61473. + ;;
  61474. + esac
  61475. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  61476. +
  61477. + output_verbose_link_cmd='echo'
  61478. +
  61479. + # Archives containing C++ object files must be created using
  61480. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  61481. + # necessary to make sure instantiated templates are included
  61482. + # in the archive.
  61483. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  61484. + ;;
  61485. + gcx*)
  61486. + # Green Hills C++ Compiler
  61487. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  61488. +
  61489. + # The C++ compiler must be used to create the archive.
  61490. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  61491. + ;;
  61492. + *)
  61493. + # GNU C++ compiler with Solaris linker
  61494. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  61495. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  61496. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  61497. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  61498. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  61499. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  61500. +
  61501. + # Commands to make compiler produce verbose output that lists
  61502. + # what "hidden" libraries, object files and flags are used when
  61503. + # linking a shared library.
  61504. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  61505. + else
  61506. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  61507. + # platform.
  61508. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  61509. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  61510. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  61511. +
  61512. + # Commands to make compiler produce verbose output that lists
  61513. + # what "hidden" libraries, object files and flags are used when
  61514. + # linking a shared library.
  61515. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  61516. + fi
  61517. +
  61518. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  61519. + case $host_os in
  61520. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  61521. + *)
  61522. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  61523. + ;;
  61524. + esac
  61525. + fi
  61526. + ;;
  61527. + esac
  61528. + ;;
  61529. +
  61530. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  61531. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  61532. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  61533. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  61534. + runpath_var='LD_RUN_PATH'
  61535. +
  61536. + case $cc_basename in
  61537. + CC*)
  61538. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  61539. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  61540. + ;;
  61541. + *)
  61542. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  61543. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  61544. + ;;
  61545. + esac
  61546. + ;;
  61547. +
  61548. + sysv5* | sco3.2v5* | sco5v6*)
  61549. + # Note: We can NOT use -z defs as we might desire, because we do not
  61550. + # link with -lc, and that would cause any symbols used from libc to
  61551. + # always be unresolved, which means just about no library would
  61552. + # ever link correctly. If we're not using GNU ld we use -z text
  61553. + # though, which does catch some bad symbols but isn't as heavy-handed
  61554. + # as -z defs.
  61555. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  61556. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  61557. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  61558. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  61559. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  61560. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  61561. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  61562. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  61563. + runpath_var='LD_RUN_PATH'
  61564. +
  61565. + case $cc_basename in
  61566. + CC*)
  61567. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  61568. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  61569. + ;;
  61570. + *)
  61571. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  61572. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  61573. + ;;
  61574. + esac
  61575. + ;;
  61576. +
  61577. + tandem*)
  61578. + case $cc_basename in
  61579. + NCC*)
  61580. + # NonStop-UX NCC 3.20
  61581. + # FIXME: insert proper C++ library support
  61582. + _LT_TAGVAR(ld_shlibs, $1)=no
  61583. + ;;
  61584. + *)
  61585. + # FIXME: insert proper C++ library support
  61586. + _LT_TAGVAR(ld_shlibs, $1)=no
  61587. + ;;
  61588. + esac
  61589. + ;;
  61590. +
  61591. + vxworks*)
  61592. + # FIXME: insert proper C++ library support
  61593. + _LT_TAGVAR(ld_shlibs, $1)=no
  61594. + ;;
  61595. +
  61596. + *)
  61597. + # FIXME: insert proper C++ library support
  61598. + _LT_TAGVAR(ld_shlibs, $1)=no
  61599. + ;;
  61600. + esac
  61601. +
  61602. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  61603. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  61604. +
  61605. + _LT_TAGVAR(GCC, $1)="$GXX"
  61606. + _LT_TAGVAR(LD, $1)="$LD"
  61607. +
  61608. + ## CAVEAT EMPTOR:
  61609. + ## There is no encapsulation within the following macros, do not change
  61610. + ## the running order or otherwise move them around unless you know exactly
  61611. + ## what you are doing...
  61612. + _LT_SYS_HIDDEN_LIBDEPS($1)
  61613. + _LT_COMPILER_PIC($1)
  61614. + _LT_COMPILER_C_O($1)
  61615. + _LT_COMPILER_FILE_LOCKS($1)
  61616. + _LT_LINKER_SHLIBS($1)
  61617. + _LT_SYS_DYNAMIC_LINKER($1)
  61618. + _LT_LINKER_HARDCODE_LIBPATH($1)
  61619. +
  61620. + _LT_CONFIG($1)
  61621. + fi # test -n "$compiler"
  61622. +
  61623. + CC=$lt_save_CC
  61624. + LDCXX=$LD
  61625. + LD=$lt_save_LD
  61626. + GCC=$lt_save_GCC
  61627. + with_gnu_ld=$lt_save_with_gnu_ld
  61628. + lt_cv_path_LDCXX=$lt_cv_path_LD
  61629. + lt_cv_path_LD=$lt_save_path_LD
  61630. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  61631. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  61632. +fi # test "$_lt_caught_CXX_error" != yes
  61633. +
  61634. +AC_LANG_POP
  61635. +])# _LT_LANG_CXX_CONFIG
  61636. +
  61637. +
  61638. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  61639. +# ---------------------------------
  61640. +# Figure out "hidden" library dependencies from verbose
  61641. +# compiler output when linking a shared library.
  61642. +# Parse the compiler output and extract the necessary
  61643. +# objects, libraries and library flags.
  61644. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  61645. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  61646. +# Dependencies to place before and after the object being linked:
  61647. +_LT_TAGVAR(predep_objects, $1)=
  61648. +_LT_TAGVAR(postdep_objects, $1)=
  61649. +_LT_TAGVAR(predeps, $1)=
  61650. +_LT_TAGVAR(postdeps, $1)=
  61651. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  61652. +
  61653. +dnl we can't use the lt_simple_compile_test_code here,
  61654. +dnl because it contains code intended for an executable,
  61655. +dnl not a library. It's possible we should let each
  61656. +dnl tag define a new lt_????_link_test_code variable,
  61657. +dnl but it's only used here...
  61658. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  61659. +int a;
  61660. +void foo (void) { a = 0; }
  61661. +_LT_EOF
  61662. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  61663. +class Foo
  61664. +{
  61665. +public:
  61666. + Foo (void) { a = 0; }
  61667. +private:
  61668. + int a;
  61669. +};
  61670. +_LT_EOF
  61671. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  61672. + subroutine foo
  61673. + implicit none
  61674. + integer*4 a
  61675. + a=0
  61676. + return
  61677. + end
  61678. +_LT_EOF
  61679. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  61680. + subroutine foo
  61681. + implicit none
  61682. + integer a
  61683. + a=0
  61684. + return
  61685. + end
  61686. +_LT_EOF
  61687. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  61688. +public class foo {
  61689. + private int a;
  61690. + public void bar (void) {
  61691. + a = 0;
  61692. + }
  61693. +};
  61694. +_LT_EOF
  61695. +])
  61696. +dnl Parse the compiler output and extract the necessary
  61697. +dnl objects, libraries and library flags.
  61698. +if AC_TRY_EVAL(ac_compile); then
  61699. + # Parse the compiler output and extract the necessary
  61700. + # objects, libraries and library flags.
  61701. +
  61702. + # Sentinel used to keep track of whether or not we are before
  61703. + # the conftest object file.
  61704. + pre_test_object_deps_done=no
  61705. +
  61706. + for p in `eval "$output_verbose_link_cmd"`; do
  61707. + case $p in
  61708. +
  61709. + -L* | -R* | -l*)
  61710. + # Some compilers place space between "-{L,R}" and the path.
  61711. + # Remove the space.
  61712. + if test $p = "-L" ||
  61713. + test $p = "-R"; then
  61714. + prev=$p
  61715. + continue
  61716. + else
  61717. + prev=
  61718. + fi
  61719. +
  61720. + if test "$pre_test_object_deps_done" = no; then
  61721. + case $p in
  61722. + -L* | -R*)
  61723. + # Internal compiler library paths should come after those
  61724. + # provided the user. The postdeps already come after the
  61725. + # user supplied libs so there is no need to process them.
  61726. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  61727. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  61728. + else
  61729. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  61730. + fi
  61731. + ;;
  61732. + # The "-l" case would never come before the object being
  61733. + # linked, so don't bother handling this case.
  61734. + esac
  61735. + else
  61736. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  61737. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  61738. + else
  61739. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  61740. + fi
  61741. + fi
  61742. + ;;
  61743. +
  61744. + *.$objext)
  61745. + # This assumes that the test object file only shows up
  61746. + # once in the compiler output.
  61747. + if test "$p" = "conftest.$objext"; then
  61748. + pre_test_object_deps_done=yes
  61749. + continue
  61750. + fi
  61751. +
  61752. + if test "$pre_test_object_deps_done" = no; then
  61753. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  61754. + _LT_TAGVAR(predep_objects, $1)="$p"
  61755. + else
  61756. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  61757. + fi
  61758. + else
  61759. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  61760. + _LT_TAGVAR(postdep_objects, $1)="$p"
  61761. + else
  61762. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  61763. + fi
  61764. + fi
  61765. + ;;
  61766. +
  61767. + *) ;; # Ignore the rest.
  61768. +
  61769. + esac
  61770. + done
  61771. +
  61772. + # Clean up.
  61773. + rm -f a.out a.exe
  61774. +else
  61775. + echo "libtool.m4: error: problem compiling $1 test program"
  61776. +fi
  61777. +
  61778. +$RM -f confest.$objext
  61779. +
  61780. +# PORTME: override above test on systems where it is broken
  61781. +m4_if([$1], [CXX],
  61782. +[case $host_os in
  61783. +interix[[3-9]]*)
  61784. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  61785. + # hack all around it, let's just trust "g++" to DTRT.
  61786. + _LT_TAGVAR(predep_objects,$1)=
  61787. + _LT_TAGVAR(postdep_objects,$1)=
  61788. + _LT_TAGVAR(postdeps,$1)=
  61789. + ;;
  61790. +
  61791. +linux*)
  61792. + case `$CC -V 2>&1 | sed 5q` in
  61793. + *Sun\ C*)
  61794. + # Sun C++ 5.9
  61795. +
  61796. + # The more standards-conforming stlport4 library is
  61797. + # incompatible with the Cstd library. Avoid specifying
  61798. + # it if it's in CXXFLAGS. Ignore libCrun as
  61799. + # -library=stlport4 depends on it.
  61800. + case " $CXX $CXXFLAGS " in
  61801. + *" -library=stlport4 "*)
  61802. + solaris_use_stlport4=yes
  61803. + ;;
  61804. + esac
  61805. +
  61806. + if test "$solaris_use_stlport4" != yes; then
  61807. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  61808. + fi
  61809. + ;;
  61810. + esac
  61811. + ;;
  61812. +
  61813. +solaris*)
  61814. + case $cc_basename in
  61815. + CC*)
  61816. + # The more standards-conforming stlport4 library is
  61817. + # incompatible with the Cstd library. Avoid specifying
  61818. + # it if it's in CXXFLAGS. Ignore libCrun as
  61819. + # -library=stlport4 depends on it.
  61820. + case " $CXX $CXXFLAGS " in
  61821. + *" -library=stlport4 "*)
  61822. + solaris_use_stlport4=yes
  61823. + ;;
  61824. + esac
  61825. +
  61826. + # Adding this requires a known-good setup of shared libraries for
  61827. + # Sun compiler versions before 5.6, else PIC objects from an old
  61828. + # archive will be linked into the output, leading to subtle bugs.
  61829. + if test "$solaris_use_stlport4" != yes; then
  61830. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  61831. + fi
  61832. + ;;
  61833. + esac
  61834. + ;;
  61835. +esac
  61836. +])
  61837. +
  61838. +case " $_LT_TAGVAR(postdeps, $1) " in
  61839. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  61840. +esac
  61841. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  61842. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  61843. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  61844. +fi
  61845. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  61846. + [The directories searched by this compiler when creating a shared library])
  61847. +_LT_TAGDECL([], [predep_objects], [1],
  61848. + [Dependencies to place before and after the objects being linked to
  61849. + create a shared library])
  61850. +_LT_TAGDECL([], [postdep_objects], [1])
  61851. +_LT_TAGDECL([], [predeps], [1])
  61852. +_LT_TAGDECL([], [postdeps], [1])
  61853. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  61854. + [The library search path used internally by the compiler when linking
  61855. + a shared library])
  61856. +])# _LT_SYS_HIDDEN_LIBDEPS
  61857. +
  61858. +
  61859. +# _LT_PROG_F77
  61860. +# ------------
  61861. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  61862. +# if there is no fortran compiler, we have our own version here.
  61863. +m4_defun([_LT_PROG_F77],
  61864. +[
  61865. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  61866. +AC_PROG_F77
  61867. +if test -z "$F77" || test "X$F77" = "Xno"; then
  61868. + _lt_disable_F77=yes
  61869. +fi
  61870. +popdef([AC_MSG_ERROR])
  61871. +])# _LT_PROG_F77
  61872. +
  61873. +dnl aclocal-1.4 backwards compatibility:
  61874. +dnl AC_DEFUN([_LT_PROG_F77], [])
  61875. +
  61876. +
  61877. +# _LT_LANG_F77_CONFIG([TAG])
  61878. +# --------------------------
  61879. +# Ensure that the configuration variables for a Fortran 77 compiler are
  61880. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  61881. +# to write the compiler configuration to `libtool'.
  61882. +m4_defun([_LT_LANG_F77_CONFIG],
  61883. +[AC_REQUIRE([_LT_PROG_F77])dnl
  61884. +AC_LANG_PUSH(Fortran 77)
  61885. +
  61886. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  61887. +_LT_TAGVAR(allow_undefined_flag, $1)=
  61888. +_LT_TAGVAR(always_export_symbols, $1)=no
  61889. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  61890. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  61891. +_LT_TAGVAR(hardcode_direct, $1)=no
  61892. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  61893. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  61894. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  61895. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  61896. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  61897. +_LT_TAGVAR(hardcode_automatic, $1)=no
  61898. +_LT_TAGVAR(inherit_rpath, $1)=no
  61899. +_LT_TAGVAR(module_cmds, $1)=
  61900. +_LT_TAGVAR(module_expsym_cmds, $1)=
  61901. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  61902. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  61903. +_LT_TAGVAR(no_undefined_flag, $1)=
  61904. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  61905. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  61906. +
  61907. +# Source file extension for f77 test sources.
  61908. +ac_ext=f
  61909. +
  61910. +# Object file extension for compiled f77 test sources.
  61911. +objext=o
  61912. +_LT_TAGVAR(objext, $1)=$objext
  61913. +
  61914. +# No sense in running all these tests if we already determined that
  61915. +# the F77 compiler isn't working. Some variables (like enable_shared)
  61916. +# are currently assumed to apply to all compilers on this platform,
  61917. +# and will be corrupted by setting them based on a non-working compiler.
  61918. +if test "$_lt_disable_F77" != yes; then
  61919. + # Code to be used in simple compile tests
  61920. + lt_simple_compile_test_code="\
  61921. + subroutine t
  61922. + return
  61923. + end
  61924. +"
  61925. +
  61926. + # Code to be used in simple link tests
  61927. + lt_simple_link_test_code="\
  61928. + program t
  61929. + end
  61930. +"
  61931. +
  61932. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  61933. + _LT_TAG_COMPILER
  61934. +
  61935. + # save warnings/boilerplate of simple test code
  61936. + _LT_COMPILER_BOILERPLATE
  61937. + _LT_LINKER_BOILERPLATE
  61938. +
  61939. + # Allow CC to be a program name with arguments.
  61940. + lt_save_CC="$CC"
  61941. + lt_save_GCC=$GCC
  61942. + CC=${F77-"f77"}
  61943. + compiler=$CC
  61944. + _LT_TAGVAR(compiler, $1)=$CC
  61945. + _LT_CC_BASENAME([$compiler])
  61946. + GCC=$G77
  61947. + if test -n "$compiler"; then
  61948. + AC_MSG_CHECKING([if libtool supports shared libraries])
  61949. + AC_MSG_RESULT([$can_build_shared])
  61950. +
  61951. + AC_MSG_CHECKING([whether to build shared libraries])
  61952. + test "$can_build_shared" = "no" && enable_shared=no
  61953. +
  61954. + # On AIX, shared libraries and static libraries use the same namespace, and
  61955. + # are all built from PIC.
  61956. + case $host_os in
  61957. + aix3*)
  61958. + test "$enable_shared" = yes && enable_static=no
  61959. + if test -n "$RANLIB"; then
  61960. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  61961. + postinstall_cmds='$RANLIB $lib'
  61962. + fi
  61963. + ;;
  61964. + aix[[4-9]]*)
  61965. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  61966. + test "$enable_shared" = yes && enable_static=no
  61967. + fi
  61968. + ;;
  61969. + esac
  61970. + AC_MSG_RESULT([$enable_shared])
  61971. +
  61972. + AC_MSG_CHECKING([whether to build static libraries])
  61973. + # Make sure either enable_shared or enable_static is yes.
  61974. + test "$enable_shared" = yes || enable_static=yes
  61975. + AC_MSG_RESULT([$enable_static])
  61976. +
  61977. + _LT_TAGVAR(GCC, $1)="$G77"
  61978. + _LT_TAGVAR(LD, $1)="$LD"
  61979. +
  61980. + ## CAVEAT EMPTOR:
  61981. + ## There is no encapsulation within the following macros, do not change
  61982. + ## the running order or otherwise move them around unless you know exactly
  61983. + ## what you are doing...
  61984. + _LT_COMPILER_PIC($1)
  61985. + _LT_COMPILER_C_O($1)
  61986. + _LT_COMPILER_FILE_LOCKS($1)
  61987. + _LT_LINKER_SHLIBS($1)
  61988. + _LT_SYS_DYNAMIC_LINKER($1)
  61989. + _LT_LINKER_HARDCODE_LIBPATH($1)
  61990. +
  61991. + _LT_CONFIG($1)
  61992. + fi # test -n "$compiler"
  61993. +
  61994. + GCC=$lt_save_GCC
  61995. + CC="$lt_save_CC"
  61996. +fi # test "$_lt_disable_F77" != yes
  61997. +
  61998. +AC_LANG_POP
  61999. +])# _LT_LANG_F77_CONFIG
  62000. +
  62001. +
  62002. +# _LT_PROG_FC
  62003. +# -----------
  62004. +# Since AC_PROG_FC is broken, in that it returns the empty string
  62005. +# if there is no fortran compiler, we have our own version here.
  62006. +m4_defun([_LT_PROG_FC],
  62007. +[
  62008. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  62009. +AC_PROG_FC
  62010. +if test -z "$FC" || test "X$FC" = "Xno"; then
  62011. + _lt_disable_FC=yes
  62012. +fi
  62013. +popdef([AC_MSG_ERROR])
  62014. +])# _LT_PROG_FC
  62015. +
  62016. +dnl aclocal-1.4 backwards compatibility:
  62017. +dnl AC_DEFUN([_LT_PROG_FC], [])
  62018. +
  62019. +
  62020. +# _LT_LANG_FC_CONFIG([TAG])
  62021. +# -------------------------
  62022. +# Ensure that the configuration variables for a Fortran compiler are
  62023. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  62024. +# to write the compiler configuration to `libtool'.
  62025. +m4_defun([_LT_LANG_FC_CONFIG],
  62026. +[AC_REQUIRE([_LT_PROG_FC])dnl
  62027. +AC_LANG_PUSH(Fortran)
  62028. +
  62029. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  62030. +_LT_TAGVAR(allow_undefined_flag, $1)=
  62031. +_LT_TAGVAR(always_export_symbols, $1)=no
  62032. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  62033. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  62034. +_LT_TAGVAR(hardcode_direct, $1)=no
  62035. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  62036. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  62037. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  62038. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  62039. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  62040. +_LT_TAGVAR(hardcode_automatic, $1)=no
  62041. +_LT_TAGVAR(inherit_rpath, $1)=no
  62042. +_LT_TAGVAR(module_cmds, $1)=
  62043. +_LT_TAGVAR(module_expsym_cmds, $1)=
  62044. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  62045. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  62046. +_LT_TAGVAR(no_undefined_flag, $1)=
  62047. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  62048. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  62049. +
  62050. +# Source file extension for fc test sources.
  62051. +ac_ext=${ac_fc_srcext-f}
  62052. +
  62053. +# Object file extension for compiled fc test sources.
  62054. +objext=o
  62055. +_LT_TAGVAR(objext, $1)=$objext
  62056. +
  62057. +# No sense in running all these tests if we already determined that
  62058. +# the FC compiler isn't working. Some variables (like enable_shared)
  62059. +# are currently assumed to apply to all compilers on this platform,
  62060. +# and will be corrupted by setting them based on a non-working compiler.
  62061. +if test "$_lt_disable_FC" != yes; then
  62062. + # Code to be used in simple compile tests
  62063. + lt_simple_compile_test_code="\
  62064. + subroutine t
  62065. + return
  62066. + end
  62067. +"
  62068. +
  62069. + # Code to be used in simple link tests
  62070. + lt_simple_link_test_code="\
  62071. + program t
  62072. + end
  62073. +"
  62074. +
  62075. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  62076. + _LT_TAG_COMPILER
  62077. +
  62078. + # save warnings/boilerplate of simple test code
  62079. + _LT_COMPILER_BOILERPLATE
  62080. + _LT_LINKER_BOILERPLATE
  62081. +
  62082. + # Allow CC to be a program name with arguments.
  62083. + lt_save_CC="$CC"
  62084. + lt_save_GCC=$GCC
  62085. + CC=${FC-"f95"}
  62086. + compiler=$CC
  62087. + GCC=$ac_cv_fc_compiler_gnu
  62088. +
  62089. + _LT_TAGVAR(compiler, $1)=$CC
  62090. + _LT_CC_BASENAME([$compiler])
  62091. +
  62092. + if test -n "$compiler"; then
  62093. + AC_MSG_CHECKING([if libtool supports shared libraries])
  62094. + AC_MSG_RESULT([$can_build_shared])
  62095. +
  62096. + AC_MSG_CHECKING([whether to build shared libraries])
  62097. + test "$can_build_shared" = "no" && enable_shared=no
  62098. +
  62099. + # On AIX, shared libraries and static libraries use the same namespace, and
  62100. + # are all built from PIC.
  62101. + case $host_os in
  62102. + aix3*)
  62103. + test "$enable_shared" = yes && enable_static=no
  62104. + if test -n "$RANLIB"; then
  62105. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  62106. + postinstall_cmds='$RANLIB $lib'
  62107. + fi
  62108. + ;;
  62109. + aix[[4-9]]*)
  62110. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  62111. + test "$enable_shared" = yes && enable_static=no
  62112. + fi
  62113. + ;;
  62114. + esac
  62115. + AC_MSG_RESULT([$enable_shared])
  62116. +
  62117. + AC_MSG_CHECKING([whether to build static libraries])
  62118. + # Make sure either enable_shared or enable_static is yes.
  62119. + test "$enable_shared" = yes || enable_static=yes
  62120. + AC_MSG_RESULT([$enable_static])
  62121. +
  62122. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  62123. + _LT_TAGVAR(LD, $1)="$LD"
  62124. +
  62125. + ## CAVEAT EMPTOR:
  62126. + ## There is no encapsulation within the following macros, do not change
  62127. + ## the running order or otherwise move them around unless you know exactly
  62128. + ## what you are doing...
  62129. + _LT_SYS_HIDDEN_LIBDEPS($1)
  62130. + _LT_COMPILER_PIC($1)
  62131. + _LT_COMPILER_C_O($1)
  62132. + _LT_COMPILER_FILE_LOCKS($1)
  62133. + _LT_LINKER_SHLIBS($1)
  62134. + _LT_SYS_DYNAMIC_LINKER($1)
  62135. + _LT_LINKER_HARDCODE_LIBPATH($1)
  62136. +
  62137. + _LT_CONFIG($1)
  62138. + fi # test -n "$compiler"
  62139. +
  62140. + GCC=$lt_save_GCC
  62141. + CC="$lt_save_CC"
  62142. +fi # test "$_lt_disable_FC" != yes
  62143. +
  62144. +AC_LANG_POP
  62145. +])# _LT_LANG_FC_CONFIG
  62146. +
  62147. +
  62148. +# _LT_LANG_GCJ_CONFIG([TAG])
  62149. +# --------------------------
  62150. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  62151. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  62152. +# to write the compiler configuration to `libtool'.
  62153. +m4_defun([_LT_LANG_GCJ_CONFIG],
  62154. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  62155. +AC_LANG_SAVE
  62156. +
  62157. +# Source file extension for Java test sources.
  62158. +ac_ext=java
  62159. +
  62160. +# Object file extension for compiled Java test sources.
  62161. +objext=o
  62162. +_LT_TAGVAR(objext, $1)=$objext
  62163. +
  62164. +# Code to be used in simple compile tests
  62165. +lt_simple_compile_test_code="class foo {}"
  62166. +
  62167. +# Code to be used in simple link tests
  62168. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  62169. +
  62170. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  62171. +_LT_TAG_COMPILER
  62172. +
  62173. +# save warnings/boilerplate of simple test code
  62174. +_LT_COMPILER_BOILERPLATE
  62175. +_LT_LINKER_BOILERPLATE
  62176. +
  62177. +# Allow CC to be a program name with arguments.
  62178. +lt_save_CC="$CC"
  62179. +lt_save_GCC=$GCC
  62180. +GCC=yes
  62181. +CC=${GCJ-"gcj"}
  62182. +compiler=$CC
  62183. +_LT_TAGVAR(compiler, $1)=$CC
  62184. +_LT_TAGVAR(LD, $1)="$LD"
  62185. +_LT_CC_BASENAME([$compiler])
  62186. +
  62187. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  62188. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  62189. +
  62190. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  62191. +
  62192. +## CAVEAT EMPTOR:
  62193. +## There is no encapsulation within the following macros, do not change
  62194. +## the running order or otherwise move them around unless you know exactly
  62195. +## what you are doing...
  62196. +if test -n "$compiler"; then
  62197. + _LT_COMPILER_NO_RTTI($1)
  62198. + _LT_COMPILER_PIC($1)
  62199. + _LT_COMPILER_C_O($1)
  62200. + _LT_COMPILER_FILE_LOCKS($1)
  62201. + _LT_LINKER_SHLIBS($1)
  62202. + _LT_LINKER_HARDCODE_LIBPATH($1)
  62203. +
  62204. + _LT_CONFIG($1)
  62205. +fi
  62206. +
  62207. +AC_LANG_RESTORE
  62208. +
  62209. +GCC=$lt_save_GCC
  62210. +CC="$lt_save_CC"
  62211. +])# _LT_LANG_GCJ_CONFIG
  62212. +
  62213. +
  62214. +# _LT_LANG_RC_CONFIG([TAG])
  62215. +# -------------------------
  62216. +# Ensure that the configuration variables for the Windows resource compiler
  62217. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  62218. +# to write the compiler configuration to `libtool'.
  62219. +m4_defun([_LT_LANG_RC_CONFIG],
  62220. +[AC_REQUIRE([LT_PROG_RC])dnl
  62221. +AC_LANG_SAVE
  62222. +
  62223. +# Source file extension for RC test sources.
  62224. +ac_ext=rc
  62225. +
  62226. +# Object file extension for compiled RC test sources.
  62227. +objext=o
  62228. +_LT_TAGVAR(objext, $1)=$objext
  62229. +
  62230. +# Code to be used in simple compile tests
  62231. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  62232. +
  62233. +# Code to be used in simple link tests
  62234. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  62235. +
  62236. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  62237. +_LT_TAG_COMPILER
  62238. +
  62239. +# save warnings/boilerplate of simple test code
  62240. +_LT_COMPILER_BOILERPLATE
  62241. +_LT_LINKER_BOILERPLATE
  62242. +
  62243. +# Allow CC to be a program name with arguments.
  62244. +lt_save_CC="$CC"
  62245. +lt_save_GCC=$GCC
  62246. +GCC=
  62247. +CC=${RC-"windres"}
  62248. +compiler=$CC
  62249. +_LT_TAGVAR(compiler, $1)=$CC
  62250. +_LT_CC_BASENAME([$compiler])
  62251. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  62252. +
  62253. +if test -n "$compiler"; then
  62254. + :
  62255. + _LT_CONFIG($1)
  62256. +fi
  62257. +
  62258. +GCC=$lt_save_GCC
  62259. +AC_LANG_RESTORE
  62260. +CC="$lt_save_CC"
  62261. +])# _LT_LANG_RC_CONFIG
  62262. +
  62263. +
  62264. +# LT_PROG_GCJ
  62265. +# -----------
  62266. +AC_DEFUN([LT_PROG_GCJ],
  62267. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  62268. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  62269. + [AC_CHECK_TOOL(GCJ, gcj,)
  62270. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  62271. + AC_SUBST(GCJFLAGS)])])[]dnl
  62272. +])
  62273. +
  62274. +# Old name:
  62275. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  62276. +dnl aclocal-1.4 backwards compatibility:
  62277. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  62278. +
  62279. +
  62280. +# LT_PROG_RC
  62281. +# ----------
  62282. +AC_DEFUN([LT_PROG_RC],
  62283. +[AC_CHECK_TOOL(RC, windres,)
  62284. +])
  62285. +
  62286. +# Old name:
  62287. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  62288. +dnl aclocal-1.4 backwards compatibility:
  62289. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  62290. +
  62291. +
  62292. +# _LT_DECL_EGREP
  62293. +# --------------
  62294. +# If we don't have a new enough Autoconf to choose the best grep
  62295. +# available, choose the one first in the user's PATH.
  62296. +m4_defun([_LT_DECL_EGREP],
  62297. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  62298. +AC_REQUIRE([AC_PROG_FGREP])dnl
  62299. +test -z "$GREP" && GREP=grep
  62300. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  62301. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  62302. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  62303. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  62304. +AC_SUBST([GREP])
  62305. +])
  62306. +
  62307. +
  62308. +# _LT_DECL_OBJDUMP
  62309. +# --------------
  62310. +# If we don't have a new enough Autoconf to choose the best objdump
  62311. +# available, choose the one first in the user's PATH.
  62312. +m4_defun([_LT_DECL_OBJDUMP],
  62313. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  62314. +test -z "$OBJDUMP" && OBJDUMP=objdump
  62315. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  62316. +AC_SUBST([OBJDUMP])
  62317. +])
  62318. +
  62319. +
  62320. +# _LT_DECL_SED
  62321. +# ------------
  62322. +# Check for a fully-functional sed program, that truncates
  62323. +# as few characters as possible. Prefer GNU sed if found.
  62324. +m4_defun([_LT_DECL_SED],
  62325. +[AC_PROG_SED
  62326. +test -z "$SED" && SED=sed
  62327. +Xsed="$SED -e 1s/^X//"
  62328. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  62329. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  62330. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  62331. +])# _LT_DECL_SED
  62332. +
  62333. +m4_ifndef([AC_PROG_SED], [
  62334. +############################################################
  62335. +# NOTE: This macro has been submitted for inclusion into #
  62336. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  62337. +# a released version of Autoconf we should remove this #
  62338. +# macro and use it instead. #
  62339. +############################################################
  62340. +
  62341. +m4_defun([AC_PROG_SED],
  62342. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  62343. +AC_CACHE_VAL(lt_cv_path_SED,
  62344. +[# Loop through the user's path and test for sed and gsed.
  62345. +# Then use that list of sed's as ones to test for truncation.
  62346. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  62347. +for as_dir in $PATH
  62348. +do
  62349. + IFS=$as_save_IFS
  62350. + test -z "$as_dir" && as_dir=.
  62351. + for lt_ac_prog in sed gsed; do
  62352. + for ac_exec_ext in '' $ac_executable_extensions; do
  62353. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  62354. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  62355. + fi
  62356. + done
  62357. + done
  62358. +done
  62359. +IFS=$as_save_IFS
  62360. +lt_ac_max=0
  62361. +lt_ac_count=0
  62362. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  62363. +# along with /bin/sed that truncates output.
  62364. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  62365. + test ! -f $lt_ac_sed && continue
  62366. + cat /dev/null > conftest.in
  62367. + lt_ac_count=0
  62368. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  62369. + # Check for GNU sed and select it if it is found.
  62370. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  62371. + lt_cv_path_SED=$lt_ac_sed
  62372. + break
  62373. + fi
  62374. + while true; do
  62375. + cat conftest.in conftest.in >conftest.tmp
  62376. + mv conftest.tmp conftest.in
  62377. + cp conftest.in conftest.nl
  62378. + echo >>conftest.nl
  62379. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  62380. + cmp -s conftest.out conftest.nl || break
  62381. + # 10000 chars as input seems more than enough
  62382. + test $lt_ac_count -gt 10 && break
  62383. + lt_ac_count=`expr $lt_ac_count + 1`
  62384. + if test $lt_ac_count -gt $lt_ac_max; then
  62385. + lt_ac_max=$lt_ac_count
  62386. + lt_cv_path_SED=$lt_ac_sed
  62387. + fi
  62388. + done
  62389. +done
  62390. +])
  62391. +SED=$lt_cv_path_SED
  62392. +AC_SUBST([SED])
  62393. +AC_MSG_RESULT([$SED])
  62394. +])#AC_PROG_SED
  62395. +])#m4_ifndef
  62396. +
  62397. +# Old name:
  62398. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  62399. +dnl aclocal-1.4 backwards compatibility:
  62400. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  62401. +
  62402. +
  62403. +# _LT_CHECK_SHELL_FEATURES
  62404. +# ------------------------
  62405. +# Find out whether the shell is Bourne or XSI compatible,
  62406. +# or has some other useful features.
  62407. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  62408. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  62409. +# Try some XSI features
  62410. +xsi_shell=no
  62411. +( _lt_dummy="a/b/c"
  62412. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  62413. + = c,a/b,, \
  62414. + && eval 'test $(( 1 + 1 )) -eq 2 \
  62415. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  62416. + && xsi_shell=yes
  62417. +AC_MSG_RESULT([$xsi_shell])
  62418. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  62419. +
  62420. +AC_MSG_CHECKING([whether the shell understands "+="])
  62421. +lt_shell_append=no
  62422. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  62423. + >/dev/null 2>&1 \
  62424. + && lt_shell_append=yes
  62425. +AC_MSG_RESULT([$lt_shell_append])
  62426. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  62427. +
  62428. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  62429. + lt_unset=unset
  62430. +else
  62431. + lt_unset=false
  62432. +fi
  62433. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  62434. +
  62435. +# test EBCDIC or ASCII
  62436. +case `echo X|tr X '\101'` in
  62437. + A) # ASCII based system
  62438. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  62439. + lt_SP2NL='tr \040 \012'
  62440. + lt_NL2SP='tr \015\012 \040\040'
  62441. + ;;
  62442. + *) # EBCDIC based system
  62443. + lt_SP2NL='tr \100 \n'
  62444. + lt_NL2SP='tr \r\n \100\100'
  62445. + ;;
  62446. +esac
  62447. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  62448. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  62449. +])# _LT_CHECK_SHELL_FEATURES
  62450. +
  62451. +
  62452. +# _LT_PROG_XSI_SHELLFNS
  62453. +# ---------------------
  62454. +# Bourne and XSI compatible variants of some useful shell functions.
  62455. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  62456. +[case $xsi_shell in
  62457. + yes)
  62458. + cat << \_LT_EOF >> "$cfgfile"
  62459. +
  62460. +# func_dirname file append nondir_replacement
  62461. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  62462. +# otherwise set result to NONDIR_REPLACEMENT.
  62463. +func_dirname ()
  62464. +{
  62465. + case ${1} in
  62466. + */*) func_dirname_result="${1%/*}${2}" ;;
  62467. + * ) func_dirname_result="${3}" ;;
  62468. + esac
  62469. +}
  62470. +
  62471. +# func_basename file
  62472. +func_basename ()
  62473. +{
  62474. + func_basename_result="${1##*/}"
  62475. +}
  62476. +
  62477. +# func_dirname_and_basename file append nondir_replacement
  62478. +# perform func_basename and func_dirname in a single function
  62479. +# call:
  62480. +# dirname: Compute the dirname of FILE. If nonempty,
  62481. +# add APPEND to the result, otherwise set result
  62482. +# to NONDIR_REPLACEMENT.
  62483. +# value returned in "$func_dirname_result"
  62484. +# basename: Compute filename of FILE.
  62485. +# value retuned in "$func_basename_result"
  62486. +# Implementation must be kept synchronized with func_dirname
  62487. +# and func_basename. For efficiency, we do not delegate to
  62488. +# those functions but instead duplicate the functionality here.
  62489. +func_dirname_and_basename ()
  62490. +{
  62491. + case ${1} in
  62492. + */*) func_dirname_result="${1%/*}${2}" ;;
  62493. + * ) func_dirname_result="${3}" ;;
  62494. + esac
  62495. + func_basename_result="${1##*/}"
  62496. +}
  62497. +
  62498. +# func_stripname prefix suffix name
  62499. +# strip PREFIX and SUFFIX off of NAME.
  62500. +# PREFIX and SUFFIX must not contain globbing or regex special
  62501. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  62502. +# dot (in which case that matches only a dot).
  62503. +func_stripname ()
  62504. +{
  62505. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  62506. + # positional parameters, so assign one to ordinary parameter first.
  62507. + func_stripname_result=${3}
  62508. + func_stripname_result=${func_stripname_result#"${1}"}
  62509. + func_stripname_result=${func_stripname_result%"${2}"}
  62510. +}
  62511. +
  62512. +# func_opt_split
  62513. +func_opt_split ()
  62514. +{
  62515. + func_opt_split_opt=${1%%=*}
  62516. + func_opt_split_arg=${1#*=}
  62517. +}
  62518. +
  62519. +# func_lo2o object
  62520. +func_lo2o ()
  62521. +{
  62522. + case ${1} in
  62523. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  62524. + *) func_lo2o_result=${1} ;;
  62525. + esac
  62526. +}
  62527. +
  62528. +# func_xform libobj-or-source
  62529. +func_xform ()
  62530. +{
  62531. + func_xform_result=${1%.*}.lo
  62532. +}
  62533. +
  62534. +# func_arith arithmetic-term...
  62535. +func_arith ()
  62536. +{
  62537. + func_arith_result=$(( $[*] ))
  62538. +}
  62539. +
  62540. +# func_len string
  62541. +# STRING may not start with a hyphen.
  62542. +func_len ()
  62543. +{
  62544. + func_len_result=${#1}
  62545. +}
  62546. +
  62547. +_LT_EOF
  62548. + ;;
  62549. + *) # Bourne compatible functions.
  62550. + cat << \_LT_EOF >> "$cfgfile"
  62551. +
  62552. +# func_dirname file append nondir_replacement
  62553. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  62554. +# otherwise set result to NONDIR_REPLACEMENT.
  62555. +func_dirname ()
  62556. +{
  62557. + # Extract subdirectory from the argument.
  62558. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  62559. + if test "X$func_dirname_result" = "X${1}"; then
  62560. + func_dirname_result="${3}"
  62561. + else
  62562. + func_dirname_result="$func_dirname_result${2}"
  62563. + fi
  62564. +}
  62565. +
  62566. +# func_basename file
  62567. +func_basename ()
  62568. +{
  62569. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  62570. +}
  62571. +
  62572. +dnl func_dirname_and_basename
  62573. +dnl A portable version of this function is already defined in general.m4sh
  62574. +dnl so there is no need for it here.
  62575. +
  62576. +# func_stripname prefix suffix name
  62577. +# strip PREFIX and SUFFIX off of NAME.
  62578. +# PREFIX and SUFFIX must not contain globbing or regex special
  62579. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  62580. +# dot (in which case that matches only a dot).
  62581. +# func_strip_suffix prefix name
  62582. +func_stripname ()
  62583. +{
  62584. + case ${2} in
  62585. + .*) func_stripname_result=`$ECHO "X${3}" \
  62586. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  62587. + *) func_stripname_result=`$ECHO "X${3}" \
  62588. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  62589. + esac
  62590. +}
  62591. +
  62592. +# sed scripts:
  62593. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  62594. +my_sed_long_arg='1s/^-[[^=]]*=//'
  62595. +
  62596. +# func_opt_split
  62597. +func_opt_split ()
  62598. +{
  62599. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  62600. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  62601. +}
  62602. +
  62603. +# func_lo2o object
  62604. +func_lo2o ()
  62605. +{
  62606. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  62607. +}
  62608. +
  62609. +# func_xform libobj-or-source
  62610. +func_xform ()
  62611. +{
  62612. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  62613. +}
  62614. +
  62615. +# func_arith arithmetic-term...
  62616. +func_arith ()
  62617. +{
  62618. + func_arith_result=`expr "$[@]"`
  62619. +}
  62620. +
  62621. +# func_len string
  62622. +# STRING may not start with a hyphen.
  62623. +func_len ()
  62624. +{
  62625. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  62626. +}
  62627. +
  62628. +_LT_EOF
  62629. +esac
  62630. +
  62631. +case $lt_shell_append in
  62632. + yes)
  62633. + cat << \_LT_EOF >> "$cfgfile"
  62634. +
  62635. +# func_append var value
  62636. +# Append VALUE to the end of shell variable VAR.
  62637. +func_append ()
  62638. +{
  62639. + eval "$[1]+=\$[2]"
  62640. +}
  62641. +_LT_EOF
  62642. + ;;
  62643. + *)
  62644. + cat << \_LT_EOF >> "$cfgfile"
  62645. +
  62646. +# func_append var value
  62647. +# Append VALUE to the end of shell variable VAR.
  62648. +func_append ()
  62649. +{
  62650. + eval "$[1]=\$$[1]\$[2]"
  62651. +}
  62652. +
  62653. +_LT_EOF
  62654. + ;;
  62655. + esac
  62656. +])
  62657. diff -Nur icecast-2.3.2.orig/m4/lt~obsolete.m4 icecast-2.3.2/m4/lt~obsolete.m4
  62658. --- icecast-2.3.2.orig/m4/lt~obsolete.m4 1970-01-01 01:00:00.000000000 +0100
  62659. +++ icecast-2.3.2/m4/lt~obsolete.m4 2010-02-18 21:27:29.996853947 +0100
  62660. @@ -0,0 +1,92 @@
  62661. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  62662. +#
  62663. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  62664. +# Written by Scott James Remnant, 2004.
  62665. +#
  62666. +# This file is free software; the Free Software Foundation gives
  62667. +# unlimited permission to copy and/or distribute it, with or without
  62668. +# modifications, as long as this notice is preserved.
  62669. +
  62670. +# serial 4 lt~obsolete.m4
  62671. +
  62672. +# These exist entirely to fool aclocal when bootstrapping libtool.
  62673. +#
  62674. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  62675. +# which have later been changed to m4_define as they aren't part of the
  62676. +# exported API, or moved to Autoconf or Automake where they belong.
  62677. +#
  62678. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  62679. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  62680. +# using a macro with the same name in our local m4/libtool.m4 it'll
  62681. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  62682. +# and doesn't know about Autoconf macros at all.)
  62683. +#
  62684. +# So we provide this file, which has a silly filename so it's always
  62685. +# included after everything else. This provides aclocal with the
  62686. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  62687. +# because those macros already exist, or will be overwritten later.
  62688. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  62689. +#
  62690. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  62691. +# Yes, that means every name once taken will need to remain here until
  62692. +# we give up compatibility with versions before 1.7, at which point
  62693. +# we need to keep only those names which we still refer to.
  62694. +
  62695. +# This is to help aclocal find these macros, as it can't see m4_define.
  62696. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  62697. +
  62698. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  62699. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  62700. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  62701. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  62702. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  62703. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  62704. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  62705. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  62706. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  62707. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  62708. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  62709. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  62710. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  62711. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  62712. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  62713. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  62714. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  62715. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  62716. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  62717. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  62718. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  62719. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  62720. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  62721. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  62722. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  62723. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  62724. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  62725. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  62726. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  62727. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  62728. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  62729. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  62730. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  62731. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  62732. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  62733. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  62734. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  62735. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  62736. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  62737. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  62738. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  62739. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  62740. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  62741. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  62742. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  62743. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  62744. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  62745. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  62746. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  62747. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  62748. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  62749. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  62750. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  62751. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  62752. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  62753. diff -Nur icecast-2.3.2.orig/m4/ltoptions.m4 icecast-2.3.2/m4/ltoptions.m4
  62754. --- icecast-2.3.2.orig/m4/ltoptions.m4 1970-01-01 01:00:00.000000000 +0100
  62755. +++ icecast-2.3.2/m4/ltoptions.m4 2010-02-18 21:27:29.720856211 +0100
  62756. @@ -0,0 +1,368 @@
  62757. +# Helper functions for option handling. -*- Autoconf -*-
  62758. +#
  62759. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  62760. +# Written by Gary V. Vaughan, 2004
  62761. +#
  62762. +# This file is free software; the Free Software Foundation gives
  62763. +# unlimited permission to copy and/or distribute it, with or without
  62764. +# modifications, as long as this notice is preserved.
  62765. +
  62766. +# serial 6 ltoptions.m4
  62767. +
  62768. +# This is to help aclocal find these macros, as it can't see m4_define.
  62769. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  62770. +
  62771. +
  62772. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  62773. +# ------------------------------------------
  62774. +m4_define([_LT_MANGLE_OPTION],
  62775. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  62776. +
  62777. +
  62778. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  62779. +# ---------------------------------------
  62780. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  62781. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  62782. +# saved as a flag.
  62783. +m4_define([_LT_SET_OPTION],
  62784. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  62785. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  62786. + _LT_MANGLE_DEFUN([$1], [$2]),
  62787. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  62788. +])
  62789. +
  62790. +
  62791. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  62792. +# ------------------------------------------------------------
  62793. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  62794. +m4_define([_LT_IF_OPTION],
  62795. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  62796. +
  62797. +
  62798. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  62799. +# -------------------------------------------------------
  62800. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  62801. +# are set.
  62802. +m4_define([_LT_UNLESS_OPTIONS],
  62803. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  62804. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  62805. + [m4_define([$0_found])])])[]dnl
  62806. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  62807. +])[]dnl
  62808. +])
  62809. +
  62810. +
  62811. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  62812. +# ----------------------------------------
  62813. +# OPTION-LIST is a space-separated list of Libtool options associated
  62814. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  62815. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  62816. +# the unknown option and exit.
  62817. +m4_defun([_LT_SET_OPTIONS],
  62818. +[# Set options
  62819. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  62820. + [_LT_SET_OPTION([$1], _LT_Option)])
  62821. +
  62822. +m4_if([$1],[LT_INIT],[
  62823. + dnl
  62824. + dnl Simply set some default values (i.e off) if boolean options were not
  62825. + dnl specified:
  62826. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  62827. + ])
  62828. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  62829. + ])
  62830. + dnl
  62831. + dnl If no reference was made to various pairs of opposing options, then
  62832. + dnl we run the default mode handler for the pair. For example, if neither
  62833. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  62834. + dnl archives by default:
  62835. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  62836. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  62837. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  62838. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  62839. + [_LT_ENABLE_FAST_INSTALL])
  62840. + ])
  62841. +])# _LT_SET_OPTIONS
  62842. +
  62843. +
  62844. +## --------------------------------- ##
  62845. +## Macros to handle LT_INIT options. ##
  62846. +## --------------------------------- ##
  62847. +
  62848. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  62849. +# -----------------------------------------
  62850. +m4_define([_LT_MANGLE_DEFUN],
  62851. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  62852. +
  62853. +
  62854. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  62855. +# -----------------------------------------------
  62856. +m4_define([LT_OPTION_DEFINE],
  62857. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  62858. +])# LT_OPTION_DEFINE
  62859. +
  62860. +
  62861. +# dlopen
  62862. +# ------
  62863. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  62864. +])
  62865. +
  62866. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  62867. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  62868. +AC_DIAGNOSE([obsolete],
  62869. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  62870. +put the `dlopen' option into LT_INIT's first parameter.])
  62871. +])
  62872. +
  62873. +dnl aclocal-1.4 backwards compatibility:
  62874. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  62875. +
  62876. +
  62877. +# win32-dll
  62878. +# ---------
  62879. +# Declare package support for building win32 dll's.
  62880. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  62881. +[enable_win32_dll=yes
  62882. +
  62883. +case $host in
  62884. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  62885. + AC_CHECK_TOOL(AS, as, false)
  62886. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  62887. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  62888. + ;;
  62889. +esac
  62890. +
  62891. +test -z "$AS" && AS=as
  62892. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  62893. +
  62894. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  62895. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  62896. +
  62897. +test -z "$OBJDUMP" && OBJDUMP=objdump
  62898. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  62899. +])# win32-dll
  62900. +
  62901. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  62902. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  62903. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  62904. +AC_DIAGNOSE([obsolete],
  62905. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  62906. +put the `win32-dll' option into LT_INIT's first parameter.])
  62907. +])
  62908. +
  62909. +dnl aclocal-1.4 backwards compatibility:
  62910. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  62911. +
  62912. +
  62913. +# _LT_ENABLE_SHARED([DEFAULT])
  62914. +# ----------------------------
  62915. +# implement the --enable-shared flag, and supports the `shared' and
  62916. +# `disable-shared' LT_INIT options.
  62917. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  62918. +m4_define([_LT_ENABLE_SHARED],
  62919. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  62920. +AC_ARG_ENABLE([shared],
  62921. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  62922. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  62923. + [p=${PACKAGE-default}
  62924. + case $enableval in
  62925. + yes) enable_shared=yes ;;
  62926. + no) enable_shared=no ;;
  62927. + *)
  62928. + enable_shared=no
  62929. + # Look at the argument we got. We use all the common list separators.
  62930. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  62931. + for pkg in $enableval; do
  62932. + IFS="$lt_save_ifs"
  62933. + if test "X$pkg" = "X$p"; then
  62934. + enable_shared=yes
  62935. + fi
  62936. + done
  62937. + IFS="$lt_save_ifs"
  62938. + ;;
  62939. + esac],
  62940. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  62941. +
  62942. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  62943. + [Whether or not to build shared libraries])
  62944. +])# _LT_ENABLE_SHARED
  62945. +
  62946. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  62947. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  62948. +
  62949. +# Old names:
  62950. +AC_DEFUN([AC_ENABLE_SHARED],
  62951. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  62952. +])
  62953. +
  62954. +AC_DEFUN([AC_DISABLE_SHARED],
  62955. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  62956. +])
  62957. +
  62958. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  62959. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  62960. +
  62961. +dnl aclocal-1.4 backwards compatibility:
  62962. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  62963. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  62964. +
  62965. +
  62966. +
  62967. +# _LT_ENABLE_STATIC([DEFAULT])
  62968. +# ----------------------------
  62969. +# implement the --enable-static flag, and support the `static' and
  62970. +# `disable-static' LT_INIT options.
  62971. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  62972. +m4_define([_LT_ENABLE_STATIC],
  62973. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  62974. +AC_ARG_ENABLE([static],
  62975. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  62976. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  62977. + [p=${PACKAGE-default}
  62978. + case $enableval in
  62979. + yes) enable_static=yes ;;
  62980. + no) enable_static=no ;;
  62981. + *)
  62982. + enable_static=no
  62983. + # Look at the argument we got. We use all the common list separators.
  62984. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  62985. + for pkg in $enableval; do
  62986. + IFS="$lt_save_ifs"
  62987. + if test "X$pkg" = "X$p"; then
  62988. + enable_static=yes
  62989. + fi
  62990. + done
  62991. + IFS="$lt_save_ifs"
  62992. + ;;
  62993. + esac],
  62994. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  62995. +
  62996. + _LT_DECL([build_old_libs], [enable_static], [0],
  62997. + [Whether or not to build static libraries])
  62998. +])# _LT_ENABLE_STATIC
  62999. +
  63000. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  63001. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  63002. +
  63003. +# Old names:
  63004. +AC_DEFUN([AC_ENABLE_STATIC],
  63005. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  63006. +])
  63007. +
  63008. +AC_DEFUN([AC_DISABLE_STATIC],
  63009. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  63010. +])
  63011. +
  63012. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  63013. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  63014. +
  63015. +dnl aclocal-1.4 backwards compatibility:
  63016. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  63017. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  63018. +
  63019. +
  63020. +
  63021. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  63022. +# ----------------------------------
  63023. +# implement the --enable-fast-install flag, and support the `fast-install'
  63024. +# and `disable-fast-install' LT_INIT options.
  63025. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  63026. +m4_define([_LT_ENABLE_FAST_INSTALL],
  63027. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  63028. +AC_ARG_ENABLE([fast-install],
  63029. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  63030. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  63031. + [p=${PACKAGE-default}
  63032. + case $enableval in
  63033. + yes) enable_fast_install=yes ;;
  63034. + no) enable_fast_install=no ;;
  63035. + *)
  63036. + enable_fast_install=no
  63037. + # Look at the argument we got. We use all the common list separators.
  63038. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  63039. + for pkg in $enableval; do
  63040. + IFS="$lt_save_ifs"
  63041. + if test "X$pkg" = "X$p"; then
  63042. + enable_fast_install=yes
  63043. + fi
  63044. + done
  63045. + IFS="$lt_save_ifs"
  63046. + ;;
  63047. + esac],
  63048. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  63049. +
  63050. +_LT_DECL([fast_install], [enable_fast_install], [0],
  63051. + [Whether or not to optimize for fast installation])dnl
  63052. +])# _LT_ENABLE_FAST_INSTALL
  63053. +
  63054. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  63055. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  63056. +
  63057. +# Old names:
  63058. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  63059. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  63060. +AC_DIAGNOSE([obsolete],
  63061. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  63062. +the `fast-install' option into LT_INIT's first parameter.])
  63063. +])
  63064. +
  63065. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  63066. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  63067. +AC_DIAGNOSE([obsolete],
  63068. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  63069. +the `disable-fast-install' option into LT_INIT's first parameter.])
  63070. +])
  63071. +
  63072. +dnl aclocal-1.4 backwards compatibility:
  63073. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  63074. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  63075. +
  63076. +
  63077. +# _LT_WITH_PIC([MODE])
  63078. +# --------------------
  63079. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  63080. +# LT_INIT options.
  63081. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  63082. +m4_define([_LT_WITH_PIC],
  63083. +[AC_ARG_WITH([pic],
  63084. + [AS_HELP_STRING([--with-pic],
  63085. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  63086. + [pic_mode="$withval"],
  63087. + [pic_mode=default])
  63088. +
  63089. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  63090. +
  63091. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  63092. +])# _LT_WITH_PIC
  63093. +
  63094. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  63095. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  63096. +
  63097. +# Old name:
  63098. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  63099. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  63100. +AC_DIAGNOSE([obsolete],
  63101. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  63102. +put the `pic-only' option into LT_INIT's first parameter.])
  63103. +])
  63104. +
  63105. +dnl aclocal-1.4 backwards compatibility:
  63106. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  63107. +
  63108. +## ----------------- ##
  63109. +## LTDL_INIT Options ##
  63110. +## ----------------- ##
  63111. +
  63112. +m4_define([_LTDL_MODE], [])
  63113. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  63114. + [m4_define([_LTDL_MODE], [nonrecursive])])
  63115. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  63116. + [m4_define([_LTDL_MODE], [recursive])])
  63117. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  63118. + [m4_define([_LTDL_MODE], [subproject])])
  63119. +
  63120. +m4_define([_LTDL_TYPE], [])
  63121. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  63122. + [m4_define([_LTDL_TYPE], [installable])])
  63123. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  63124. + [m4_define([_LTDL_TYPE], [convenience])])
  63125. diff -Nur icecast-2.3.2.orig/m4/ltsugar.m4 icecast-2.3.2/m4/ltsugar.m4
  63126. --- icecast-2.3.2.orig/m4/ltsugar.m4 1970-01-01 01:00:00.000000000 +0100
  63127. +++ icecast-2.3.2/m4/ltsugar.m4 2010-02-18 21:27:29.812854518 +0100
  63128. @@ -0,0 +1,123 @@
  63129. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  63130. +#
  63131. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  63132. +# Written by Gary V. Vaughan, 2004
  63133. +#
  63134. +# This file is free software; the Free Software Foundation gives
  63135. +# unlimited permission to copy and/or distribute it, with or without
  63136. +# modifications, as long as this notice is preserved.
  63137. +
  63138. +# serial 6 ltsugar.m4
  63139. +
  63140. +# This is to help aclocal find these macros, as it can't see m4_define.
  63141. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  63142. +
  63143. +
  63144. +# lt_join(SEP, ARG1, [ARG2...])
  63145. +# -----------------------------
  63146. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  63147. +# associated separator.
  63148. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  63149. +# versions in m4sugar had bugs.
  63150. +m4_define([lt_join],
  63151. +[m4_if([$#], [1], [],
  63152. + [$#], [2], [[$2]],
  63153. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  63154. +m4_define([_lt_join],
  63155. +[m4_if([$#$2], [2], [],
  63156. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  63157. +
  63158. +
  63159. +# lt_car(LIST)
  63160. +# lt_cdr(LIST)
  63161. +# ------------
  63162. +# Manipulate m4 lists.
  63163. +# These macros are necessary as long as will still need to support
  63164. +# Autoconf-2.59 which quotes differently.
  63165. +m4_define([lt_car], [[$1]])
  63166. +m4_define([lt_cdr],
  63167. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  63168. + [$#], 1, [],
  63169. + [m4_dquote(m4_shift($@))])])
  63170. +m4_define([lt_unquote], $1)
  63171. +
  63172. +
  63173. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  63174. +# ------------------------------------------
  63175. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  63176. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  63177. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  63178. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  63179. +# than defined and empty).
  63180. +#
  63181. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  63182. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  63183. +m4_define([lt_append],
  63184. +[m4_define([$1],
  63185. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  63186. +
  63187. +
  63188. +
  63189. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  63190. +# ----------------------------------------------------------
  63191. +# Produce a SEP delimited list of all paired combinations of elements of
  63192. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  63193. +# has the form PREFIXmINFIXSUFFIXn.
  63194. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  63195. +m4_define([lt_combine],
  63196. +[m4_if(m4_eval([$# > 3]), [1],
  63197. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  63198. +[[m4_foreach([_Lt_prefix], [$2],
  63199. + [m4_foreach([_Lt_suffix],
  63200. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  63201. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  63202. +
  63203. +
  63204. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  63205. +# -----------------------------------------------------------------------
  63206. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  63207. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  63208. +m4_define([lt_if_append_uniq],
  63209. +[m4_ifdef([$1],
  63210. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  63211. + [lt_append([$1], [$2], [$3])$4],
  63212. + [$5])],
  63213. + [lt_append([$1], [$2], [$3])$4])])
  63214. +
  63215. +
  63216. +# lt_dict_add(DICT, KEY, VALUE)
  63217. +# -----------------------------
  63218. +m4_define([lt_dict_add],
  63219. +[m4_define([$1($2)], [$3])])
  63220. +
  63221. +
  63222. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  63223. +# --------------------------------------------
  63224. +m4_define([lt_dict_add_subkey],
  63225. +[m4_define([$1($2:$3)], [$4])])
  63226. +
  63227. +
  63228. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  63229. +# ----------------------------------
  63230. +m4_define([lt_dict_fetch],
  63231. +[m4_ifval([$3],
  63232. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  63233. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  63234. +
  63235. +
  63236. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  63237. +# -----------------------------------------------------------------
  63238. +m4_define([lt_if_dict_fetch],
  63239. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  63240. + [$5],
  63241. + [$6])])
  63242. +
  63243. +
  63244. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  63245. +# --------------------------------------------------------------
  63246. +m4_define([lt_dict_filter],
  63247. +[m4_if([$5], [], [],
  63248. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  63249. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  63250. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  63251. +])
  63252. diff -Nur icecast-2.3.2.orig/m4/ltversion.m4 icecast-2.3.2/m4/ltversion.m4
  63253. --- icecast-2.3.2.orig/m4/ltversion.m4 1970-01-01 01:00:00.000000000 +0100
  63254. +++ icecast-2.3.2/m4/ltversion.m4 2010-02-18 21:27:29.900855680 +0100
  63255. @@ -0,0 +1,23 @@
  63256. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  63257. +#
  63258. +# Copyright (C) 2004 Free Software Foundation, Inc.
  63259. +# Written by Scott James Remnant, 2004
  63260. +#
  63261. +# This file is free software; the Free Software Foundation gives
  63262. +# unlimited permission to copy and/or distribute it, with or without
  63263. +# modifications, as long as this notice is preserved.
  63264. +
  63265. +# Generated from ltversion.in.
  63266. +
  63267. +# serial 3017 ltversion.m4
  63268. +# This file is part of GNU Libtool
  63269. +
  63270. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  63271. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  63272. +
  63273. +AC_DEFUN([LTVERSION_VERSION],
  63274. +[macro_version='2.2.6b'
  63275. +macro_revision='1.3017'
  63276. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  63277. +_LT_DECL(, macro_revision, 0)
  63278. +])
  63279. diff -Nur icecast-2.3.2.orig/m4/xiph_curl.m4 icecast-2.3.2/m4/xiph_curl.m4
  63280. --- icecast-2.3.2.orig/m4/xiph_curl.m4 2008-04-19 03:54:26.000000000 +0200
  63281. +++ icecast-2.3.2/m4/xiph_curl.m4 2010-02-18 21:27:17.216857590 +0100
  63282. @@ -52,7 +52,7 @@
  63283. AC_MSG_CHECKING(for libcurl)
  63284. if test "$curl_ok" = "yes"
  63285. then
  63286. - AC_RUN_IFELSE(AC_LANG_SOURCE([
  63287. + AC_LINK_IFELSE(AC_LANG_SOURCE([
  63288. #include <curl/curl.h>
  63289. int main()
  63290. {
  63291. diff -Nur icecast-2.3.2.orig/Makefile.in icecast-2.3.2/Makefile.in
  63292. --- icecast-2.3.2.orig/Makefile.in 2008-05-30 01:58:59.000000000 +0200
  63293. +++ icecast-2.3.2/Makefile.in 2010-02-18 21:27:43.484852142 +0100
  63294. @@ -1,8 +1,9 @@
  63295. -# Makefile.in generated by automake 1.10 from Makefile.am.
  63296. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  63297. # @configure_input@
  63298. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  63299. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  63300. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  63301. +# Inc.
  63302. # This Makefile.in is free software; the Free Software Foundation
  63303. # gives unlimited permission to copy and/or distribute it,
  63304. # with or without modifications, as long as this notice is preserved.
  63305. @@ -16,8 +17,9 @@
  63306. VPATH = @srcdir@
  63307. pkgdatadir = $(datadir)/@PACKAGE@
  63308. -pkglibdir = $(libdir)/@PACKAGE@
  63309. pkgincludedir = $(includedir)/@PACKAGE@
  63310. +pkglibdir = $(libdir)/@PACKAGE@
  63311. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  63312. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  63313. install_sh_DATA = $(install_sh) -c -m 644
  63314. install_sh_PROGRAM = $(install_sh) -c
  63315. @@ -40,9 +42,11 @@
  63316. missing mkinstalldirs
  63317. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  63318. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  63319. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  63320. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  63321. - $(top_srcdir)/m4/xiph_compiler.m4 \
  63322. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  63323. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  63324. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  63325. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  63326. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  63327. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  63328. $(top_srcdir)/m4/xiph_openssl.m4 \
  63329. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  63330. @@ -54,6 +58,7 @@
  63331. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  63332. CONFIG_HEADER = config.h
  63333. CONFIG_CLEAN_FILES =
  63334. +CONFIG_CLEAN_VPATH_FILES =
  63335. SOURCES =
  63336. DIST_SOURCES =
  63337. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  63338. @@ -68,12 +73,29 @@
  63339. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  63340. *) f=$$p;; \
  63341. esac;
  63342. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  63343. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  63344. +am__install_max = 40
  63345. +am__nobase_strip_setup = \
  63346. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  63347. +am__nobase_strip = \
  63348. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  63349. +am__nobase_list = $(am__nobase_strip_setup); \
  63350. + for p in $$list; do echo "$$p $$p"; done | \
  63351. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  63352. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  63353. + if (++n[$$2] == $(am__install_max)) \
  63354. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  63355. + END { for (dir in files) print dir, files[dir] }'
  63356. +am__base_list = \
  63357. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  63358. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  63359. am__installdirs = "$(DESTDIR)$(docdir)"
  63360. -docDATA_INSTALL = $(INSTALL_DATA)
  63361. DATA = $(doc_DATA)
  63362. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  63363. distclean-recursive maintainer-clean-recursive
  63364. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  63365. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  63366. + distdir dist dist-all distcheck
  63367. ETAGS = etags
  63368. CTAGS = ctags
  63369. DIST_SUBDIRS = $(SUBDIRS)
  63370. @@ -81,9 +103,34 @@
  63371. distdir = $(PACKAGE)-$(VERSION)
  63372. top_distdir = $(distdir)
  63373. am__remove_distdir = \
  63374. - { test ! -d $(distdir) \
  63375. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  63376. - && rm -fr $(distdir); }; }
  63377. + { test ! -d "$(distdir)" \
  63378. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  63379. + && rm -fr "$(distdir)"; }; }
  63380. +am__relativize = \
  63381. + dir0=`pwd`; \
  63382. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  63383. + sed_rest='s,^[^/]*/*,,'; \
  63384. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  63385. + sed_butlast='s,/*[^/]*$$,,'; \
  63386. + while test -n "$$dir1"; do \
  63387. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  63388. + if test "$$first" != "."; then \
  63389. + if test "$$first" = ".."; then \
  63390. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  63391. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  63392. + else \
  63393. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  63394. + if test "$$first2" = "$$first"; then \
  63395. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  63396. + else \
  63397. + dir2="../$$dir2"; \
  63398. + fi; \
  63399. + dir0="$$dir0"/"$$first"; \
  63400. + fi; \
  63401. + fi; \
  63402. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  63403. + done; \
  63404. + reldir="$$dir2"
  63405. DIST_ARCHIVES = $(distdir).tar.gz $(distdir).zip
  63406. GZIP_ENV = --best
  63407. distuninstallcheck_listfiles = find . -type f -print
  63408. @@ -103,22 +150,17 @@
  63409. CURL_CFLAGS = @CURL_CFLAGS@
  63410. CURL_CONFIG = @CURL_CONFIG@
  63411. CURL_LIBS = @CURL_LIBS@
  63412. -CXX = @CXX@
  63413. -CXXCPP = @CXXCPP@
  63414. -CXXDEPMODE = @CXXDEPMODE@
  63415. -CXXFLAGS = @CXXFLAGS@
  63416. CYGPATH_W = @CYGPATH_W@
  63417. DEBUG = @DEBUG@
  63418. DEFS = @DEFS@
  63419. DEPDIR = @DEPDIR@
  63420. -ECHO = @ECHO@
  63421. +DSYMUTIL = @DSYMUTIL@
  63422. +DUMPBIN = @DUMPBIN@
  63423. ECHO_C = @ECHO_C@
  63424. ECHO_N = @ECHO_N@
  63425. ECHO_T = @ECHO_T@
  63426. EGREP = @EGREP@
  63427. EXEEXT = @EXEEXT@
  63428. -F77 = @F77@
  63429. -FFLAGS = @FFLAGS@
  63430. FGREP = @FGREP@
  63431. GREP = @GREP@
  63432. HAVE_KATE = @HAVE_KATE@
  63433. @@ -129,26 +171,34 @@
  63434. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  63435. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  63436. KATE_LIBS = @KATE_LIBS@
  63437. +LD = @LD@
  63438. LDFLAGS = @LDFLAGS@
  63439. LIBOBJS = @LIBOBJS@
  63440. LIBS = @LIBS@
  63441. LIBTOOL = @LIBTOOL@
  63442. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  63443. +LIPO = @LIPO@
  63444. LN_S = @LN_S@
  63445. LTLIBOBJS = @LTLIBOBJS@
  63446. MAINT = @MAINT@
  63447. MAKEINFO = @MAKEINFO@
  63448. MKDIR_P = @MKDIR_P@
  63449. +NM = @NM@
  63450. +NMEDIT = @NMEDIT@
  63451. +OBJDUMP = @OBJDUMP@
  63452. OBJEXT = @OBJEXT@
  63453. OGG_CFLAGS = @OGG_CFLAGS@
  63454. OGG_LDFLAGS = @OGG_LDFLAGS@
  63455. OGG_LIBS = @OGG_LIBS@
  63456. OGG_PREFIX = @OGG_PREFIX@
  63457. +OTOOL = @OTOOL@
  63458. +OTOOL64 = @OTOOL64@
  63459. PACKAGE = @PACKAGE@
  63460. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  63461. PACKAGE_NAME = @PACKAGE_NAME@
  63462. PACKAGE_STRING = @PACKAGE_STRING@
  63463. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  63464. +PACKAGE_URL = @PACKAGE_URL@
  63465. PACKAGE_VERSION = @PACKAGE_VERSION@
  63466. PATH_SEPARATOR = @PATH_SEPARATOR@
  63467. PKGCONFIG = @PKGCONFIG@
  63468. @@ -187,8 +237,7 @@
  63469. abs_top_builddir = @abs_top_builddir@
  63470. abs_top_srcdir = @abs_top_srcdir@
  63471. ac_ct_CC = @ac_ct_CC@
  63472. -ac_ct_CXX = @ac_ct_CXX@
  63473. -ac_ct_F77 = @ac_ct_F77@
  63474. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  63475. acx_pthread_config = @acx_pthread_config@
  63476. am__include = @am__include@
  63477. am__leading_dot = @am__leading_dot@
  63478. @@ -220,6 +269,7 @@
  63479. libexecdir = @libexecdir@
  63480. localedir = @localedir@
  63481. localstatedir = @localstatedir@
  63482. +lt_ECHO = @lt_ECHO@
  63483. mandir = @mandir@
  63484. mkdir_p = @mkdir_p@
  63485. oldincludedir = @oldincludedir@
  63486. @@ -232,6 +282,7 @@
  63487. srcdir = @srcdir@
  63488. sysconfdir = @sysconfdir@
  63489. target_alias = @target_alias@
  63490. +top_build_prefix = @top_build_prefix@
  63491. top_builddir = @top_builddir@
  63492. top_srcdir = @top_srcdir@
  63493. AUTOMAKE_OPTIONS = foreign dist-zip
  63494. @@ -253,15 +304,15 @@
  63495. @for dep in $?; do \
  63496. case '$(am__configure_deps)' in \
  63497. *$$dep*) \
  63498. - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
  63499. - cd $(srcdir) && $(AUTOMAKE) --foreign \
  63500. + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
  63501. + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
  63502. && exit 0; \
  63503. exit 1;; \
  63504. esac; \
  63505. done; \
  63506. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  63507. - cd $(top_srcdir) && \
  63508. - $(AUTOMAKE) --foreign Makefile
  63509. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  63510. + $(am__cd) $(top_srcdir) && \
  63511. + $(AUTOMAKE) --foreign Makefile
  63512. .PRECIOUS: Makefile
  63513. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  63514. @case '$?' in \
  63515. @@ -277,9 +328,10 @@
  63516. $(SHELL) ./config.status --recheck
  63517. $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  63518. - cd $(srcdir) && $(AUTOCONF)
  63519. + $(am__cd) $(srcdir) && $(AUTOCONF)
  63520. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  63521. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  63522. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  63523. +$(am__aclocal_m4_deps):
  63524. config.h: stamp-h1
  63525. @if test ! -f $@; then \
  63526. @@ -291,7 +343,7 @@
  63527. @rm -f stamp-h1
  63528. cd $(top_builddir) && $(SHELL) ./config.status config.h
  63529. $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  63530. - cd $(top_srcdir) && $(AUTOHEADER)
  63531. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  63532. rm -f stamp-h1
  63533. touch $@
  63534. @@ -305,24 +357,27 @@
  63535. -rm -rf .libs _libs
  63536. distclean-libtool:
  63537. - -rm -f libtool
  63538. + -rm -f libtool config.lt
  63539. install-docDATA: $(doc_DATA)
  63540. @$(NORMAL_INSTALL)
  63541. test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)"
  63542. - @list='$(doc_DATA)'; for p in $$list; do \
  63543. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  63544. + for p in $$list; do \
  63545. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  63546. - f=$(am__strip_dir) \
  63547. - echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \
  63548. - $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
  63549. + echo "$$d$$p"; \
  63550. + done | $(am__base_list) | \
  63551. + while read files; do \
  63552. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \
  63553. + $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \
  63554. done
  63555. uninstall-docDATA:
  63556. @$(NORMAL_UNINSTALL)
  63557. - @list='$(doc_DATA)'; for p in $$list; do \
  63558. - f=$(am__strip_dir) \
  63559. - echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \
  63560. - rm -f "$(DESTDIR)$(docdir)/$$f"; \
  63561. - done
  63562. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  63563. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  63564. + test -n "$$files" || exit 0; \
  63565. + echo " ( cd '$(DESTDIR)$(docdir)' && rm -f" $$files ")"; \
  63566. + cd "$(DESTDIR)$(docdir)" && rm -f $$files
  63567. # This directory's subdirectories are mostly independent; you can cd
  63568. # into them and run `make' without going through this Makefile.
  63569. @@ -331,7 +386,7 @@
  63570. # (which will cause the Makefiles to be regenerated when you run `make');
  63571. # (2) otherwise, pass the desired values on the `make' command line.
  63572. $(RECURSIVE_TARGETS):
  63573. - @failcom='exit 1'; \
  63574. + @fail= failcom='exit 1'; \
  63575. for f in x $$MAKEFLAGS; do \
  63576. case $$f in \
  63577. *=* | --[!k]*);; \
  63578. @@ -348,7 +403,7 @@
  63579. else \
  63580. local_target="$$target"; \
  63581. fi; \
  63582. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  63583. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  63584. || eval $$failcom; \
  63585. done; \
  63586. if test "$$dot_seen" = "no"; then \
  63587. @@ -356,7 +411,7 @@
  63588. fi; test -z "$$fail"
  63589. $(RECURSIVE_CLEAN_TARGETS):
  63590. - @failcom='exit 1'; \
  63591. + @fail= failcom='exit 1'; \
  63592. for f in x $$MAKEFLAGS; do \
  63593. case $$f in \
  63594. *=* | --[!k]*);; \
  63595. @@ -382,16 +437,16 @@
  63596. else \
  63597. local_target="$$target"; \
  63598. fi; \
  63599. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  63600. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  63601. || eval $$failcom; \
  63602. done && test -z "$$fail"
  63603. tags-recursive:
  63604. list='$(SUBDIRS)'; for subdir in $$list; do \
  63605. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  63606. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  63607. done
  63608. ctags-recursive:
  63609. list='$(SUBDIRS)'; for subdir in $$list; do \
  63610. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  63611. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  63612. done
  63613. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  63614. @@ -399,14 +454,14 @@
  63615. unique=`for i in $$list; do \
  63616. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63617. done | \
  63618. - $(AWK) ' { files[$$0] = 1; } \
  63619. - END { for (i in files) print i; }'`; \
  63620. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63621. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  63622. mkid -fID $$unique
  63623. tags: TAGS
  63624. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  63625. $(TAGS_FILES) $(LISP)
  63626. - tags=; \
  63627. + set x; \
  63628. here=`pwd`; \
  63629. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  63630. include_option=--etags-include; \
  63631. @@ -418,46 +473,50 @@
  63632. list='$(SUBDIRS)'; for subdir in $$list; do \
  63633. if test "$$subdir" = .; then :; else \
  63634. test ! -f $$subdir/TAGS || \
  63635. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  63636. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  63637. fi; \
  63638. done; \
  63639. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  63640. unique=`for i in $$list; do \
  63641. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63642. done | \
  63643. - $(AWK) ' { files[$$0] = 1; } \
  63644. - END { for (i in files) print i; }'`; \
  63645. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  63646. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63647. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  63648. + shift; \
  63649. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  63650. test -n "$$unique" || unique=$$empty_fix; \
  63651. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63652. - $$tags $$unique; \
  63653. + if test $$# -gt 0; then \
  63654. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63655. + "$$@" $$unique; \
  63656. + else \
  63657. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63658. + $$unique; \
  63659. + fi; \
  63660. fi
  63661. ctags: CTAGS
  63662. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  63663. $(TAGS_FILES) $(LISP)
  63664. - tags=; \
  63665. - here=`pwd`; \
  63666. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  63667. unique=`for i in $$list; do \
  63668. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63669. done | \
  63670. - $(AWK) ' { files[$$0] = 1; } \
  63671. - END { for (i in files) print i; }'`; \
  63672. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  63673. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63674. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  63675. + test -z "$(CTAGS_ARGS)$$unique" \
  63676. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  63677. - $$tags $$unique
  63678. + $$unique
  63679. GTAGS:
  63680. here=`$(am__cd) $(top_builddir) && pwd` \
  63681. - && cd $(top_srcdir) \
  63682. - && gtags -i $(GTAGS_ARGS) $$here
  63683. + && $(am__cd) $(top_srcdir) \
  63684. + && gtags -i $(GTAGS_ARGS) "$$here"
  63685. distclean-tags:
  63686. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  63687. distdir: $(DISTFILES)
  63688. $(am__remove_distdir)
  63689. - test -d $(distdir) || mkdir $(distdir)
  63690. + test -d "$(distdir)" || mkdir "$(distdir)"
  63691. @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  63692. topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  63693. list='$(DISTFILES)'; \
  63694. @@ -473,38 +532,55 @@
  63695. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  63696. if test -d $$d/$$file; then \
  63697. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  63698. + if test -d "$(distdir)/$$file"; then \
  63699. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  63700. + fi; \
  63701. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  63702. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  63703. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  63704. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  63705. fi; \
  63706. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  63707. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  63708. else \
  63709. - test -f $(distdir)/$$file \
  63710. - || cp -p $$d/$$file $(distdir)/$$file \
  63711. + test -f "$(distdir)/$$file" \
  63712. + || cp -p $$d/$$file "$(distdir)/$$file" \
  63713. || exit 1; \
  63714. fi; \
  63715. done
  63716. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  63717. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  63718. if test "$$subdir" = .; then :; else \
  63719. test -d "$(distdir)/$$subdir" \
  63720. || $(MKDIR_P) "$(distdir)/$$subdir" \
  63721. || exit 1; \
  63722. - distdir=`$(am__cd) $(distdir) && pwd`; \
  63723. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  63724. - (cd $$subdir && \
  63725. + fi; \
  63726. + done
  63727. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  63728. + if test "$$subdir" = .; then :; else \
  63729. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  63730. + $(am__relativize); \
  63731. + new_distdir=$$reldir; \
  63732. + dir1=$$subdir; dir2="$(top_distdir)"; \
  63733. + $(am__relativize); \
  63734. + new_top_distdir=$$reldir; \
  63735. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  63736. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  63737. + ($(am__cd) $$subdir && \
  63738. $(MAKE) $(AM_MAKEFLAGS) \
  63739. - top_distdir="$$top_distdir" \
  63740. - distdir="$$distdir/$$subdir" \
  63741. + top_distdir="$$new_top_distdir" \
  63742. + distdir="$$new_distdir" \
  63743. am__remove_distdir=: \
  63744. am__skip_length_check=: \
  63745. + am__skip_mode_fix=: \
  63746. distdir) \
  63747. || exit 1; \
  63748. fi; \
  63749. done
  63750. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  63751. + -test -n "$(am__skip_mode_fix)" \
  63752. + || find "$(distdir)" -type d ! -perm -755 \
  63753. + -exec chmod u+rwx,go+rx {} \; -o \
  63754. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  63755. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  63756. ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  63757. - || chmod -R a+r $(distdir)
  63758. + || chmod -R a+r "$(distdir)"
  63759. dist-gzip: distdir
  63760. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  63761. $(am__remove_distdir)
  63762. @@ -513,6 +589,14 @@
  63763. tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  63764. $(am__remove_distdir)
  63765. +dist-lzma: distdir
  63766. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  63767. + $(am__remove_distdir)
  63768. +
  63769. +dist-xz: distdir
  63770. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  63771. + $(am__remove_distdir)
  63772. +
  63773. dist-tarZ: distdir
  63774. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  63775. $(am__remove_distdir)
  63776. @@ -537,13 +621,17 @@
  63777. distcheck: dist
  63778. case '$(DIST_ARCHIVES)' in \
  63779. *.tar.gz*) \
  63780. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  63781. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  63782. *.tar.bz2*) \
  63783. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  63784. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  63785. + *.tar.lzma*) \
  63786. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  63787. + *.tar.xz*) \
  63788. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  63789. *.tar.Z*) \
  63790. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  63791. *.shar.gz*) \
  63792. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  63793. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  63794. *.zip*) \
  63795. unzip $(distdir).zip ;;\
  63796. esac
  63797. @@ -551,9 +639,11 @@
  63798. mkdir $(distdir)/_build
  63799. mkdir $(distdir)/_inst
  63800. chmod a-w $(distdir)
  63801. + test -d $(distdir)/_build || exit 0; \
  63802. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  63803. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  63804. - && cd $(distdir)/_build \
  63805. + && am__cwd=`pwd` \
  63806. + && $(am__cd) $(distdir)/_build \
  63807. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  63808. $(DISTCHECK_CONFIGURE_FLAGS) \
  63809. && $(MAKE) $(AM_MAKEFLAGS) \
  63810. @@ -575,13 +665,15 @@
  63811. && rm -rf "$$dc_destdir" \
  63812. && $(MAKE) $(AM_MAKEFLAGS) dist \
  63813. && rm -rf $(DIST_ARCHIVES) \
  63814. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  63815. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  63816. + && cd "$$am__cwd" \
  63817. + || exit 1
  63818. $(am__remove_distdir)
  63819. @(echo "$(distdir) archives ready for distribution: "; \
  63820. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  63821. sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  63822. distuninstallcheck:
  63823. - @cd $(distuninstallcheck_dir) \
  63824. + @$(am__cd) '$(distuninstallcheck_dir)' \
  63825. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  63826. || { echo "ERROR: files left after uninstall:" ; \
  63827. if test -n "$(DESTDIR)"; then \
  63828. @@ -626,6 +718,7 @@
  63829. distclean-generic:
  63830. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  63831. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  63832. maintainer-clean-generic:
  63833. @echo "This command is intended for maintainers to use"
  63834. @@ -646,6 +739,8 @@
  63835. html: html-recursive
  63836. +html-am:
  63837. +
  63838. info: info-recursive
  63839. info-am:
  63840. @@ -654,18 +749,28 @@
  63841. install-dvi: install-dvi-recursive
  63842. +install-dvi-am:
  63843. +
  63844. install-exec-am:
  63845. install-html: install-html-recursive
  63846. +install-html-am:
  63847. +
  63848. install-info: install-info-recursive
  63849. +install-info-am:
  63850. +
  63851. install-man:
  63852. install-pdf: install-pdf-recursive
  63853. +install-pdf-am:
  63854. +
  63855. install-ps: install-ps-recursive
  63856. +install-ps-am:
  63857. +
  63858. installcheck-am:
  63859. maintainer-clean: maintainer-clean-recursive
  63860. @@ -688,25 +793,25 @@
  63861. uninstall-am: uninstall-docDATA
  63862. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  63863. - install-strip
  63864. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  63865. + ctags-recursive install-am install-strip tags-recursive
  63866. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  63867. all all-am am--refresh check check-am clean clean-generic \
  63868. clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  63869. - dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
  63870. - distclean-generic distclean-hdr distclean-libtool \
  63871. - distclean-tags distcleancheck distdir distuninstallcheck dvi \
  63872. - dvi-am html html-am info info-am install install-am \
  63873. - install-data install-data-am install-docDATA install-dvi \
  63874. - install-dvi-am install-exec install-exec-am install-html \
  63875. - install-html-am install-info install-info-am install-man \
  63876. - install-pdf install-pdf-am install-ps install-ps-am \
  63877. - install-strip installcheck installcheck-am installdirs \
  63878. - installdirs-am maintainer-clean maintainer-clean-generic \
  63879. - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
  63880. - ps ps-am tags tags-recursive uninstall uninstall-am \
  63881. - uninstall-docDATA
  63882. + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
  63883. + distcheck distclean distclean-generic distclean-hdr \
  63884. + distclean-libtool distclean-tags distcleancheck distdir \
  63885. + distuninstallcheck dvi dvi-am html html-am info info-am \
  63886. + install install-am install-data install-data-am \
  63887. + install-docDATA install-dvi install-dvi-am install-exec \
  63888. + install-exec-am install-html install-html-am install-info \
  63889. + install-info-am install-man install-pdf install-pdf-am \
  63890. + install-ps install-ps-am install-strip installcheck \
  63891. + installcheck-am installdirs installdirs-am maintainer-clean \
  63892. + maintainer-clean-generic mostlyclean mostlyclean-generic \
  63893. + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  63894. + uninstall uninstall-am uninstall-docDATA
  63895. debug:
  63896. @@ -717,6 +822,7 @@
  63897. static:
  63898. $(MAKE) all LDFLAGS="${LDFLAGS} -all-static"
  63899. +
  63900. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  63901. # Otherwise a system limit (for SysV at least) may be exceeded.
  63902. .NOEXPORT:
  63903. diff -Nur icecast-2.3.2.orig/src/avl/Makefile.in icecast-2.3.2/src/avl/Makefile.in
  63904. --- icecast-2.3.2.orig/src/avl/Makefile.in 2008-05-30 01:58:58.000000000 +0200
  63905. +++ icecast-2.3.2/src/avl/Makefile.in 2010-02-18 21:27:42.448854807 +0100
  63906. @@ -1,8 +1,9 @@
  63907. -# Makefile.in generated by automake 1.10 from Makefile.am.
  63908. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  63909. # @configure_input@
  63910. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  63911. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  63912. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  63913. +# Inc.
  63914. # This Makefile.in is free software; the Free Software Foundation
  63915. # gives unlimited permission to copy and/or distribute it,
  63916. # with or without modifications, as long as this notice is preserved.
  63917. @@ -17,8 +18,9 @@
  63918. VPATH = @srcdir@
  63919. pkgdatadir = $(datadir)/@PACKAGE@
  63920. -pkglibdir = $(libdir)/@PACKAGE@
  63921. pkgincludedir = $(includedir)/@PACKAGE@
  63922. +pkglibdir = $(libdir)/@PACKAGE@
  63923. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  63924. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  63925. install_sh_DATA = $(install_sh) -c -m 644
  63926. install_sh_PROGRAM = $(install_sh) -c
  63927. @@ -38,9 +40,11 @@
  63928. $(srcdir)/Makefile.in COPYING TODO
  63929. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  63930. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  63931. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  63932. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  63933. - $(top_srcdir)/m4/xiph_compiler.m4 \
  63934. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  63935. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  63936. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  63937. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  63938. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  63939. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  63940. $(top_srcdir)/m4/xiph_openssl.m4 \
  63941. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  63942. @@ -50,6 +54,7 @@
  63943. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  63944. CONFIG_HEADER = $(top_builddir)/config.h
  63945. CONFIG_CLEAN_FILES =
  63946. +CONFIG_CLEAN_VPATH_FILES =
  63947. LTLIBRARIES = $(noinst_LTLIBRARIES)
  63948. libiceavl_la_LIBADD =
  63949. am_libiceavl_la_OBJECTS = libiceavl_la-avl.lo
  63950. @@ -57,9 +62,10 @@
  63951. libiceavl_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  63952. $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libiceavl_la_CFLAGS) \
  63953. $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
  63954. -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
  63955. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  63956. depcomp = $(SHELL) $(top_srcdir)/depcomp
  63957. am__depfiles_maybe = depfiles
  63958. +am__mv = mv -f
  63959. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  63960. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  63961. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  63962. @@ -90,22 +96,17 @@
  63963. CURL_CFLAGS = @CURL_CFLAGS@
  63964. CURL_CONFIG = @CURL_CONFIG@
  63965. CURL_LIBS = @CURL_LIBS@
  63966. -CXX = @CXX@
  63967. -CXXCPP = @CXXCPP@
  63968. -CXXDEPMODE = @CXXDEPMODE@
  63969. -CXXFLAGS = @CXXFLAGS@
  63970. CYGPATH_W = @CYGPATH_W@
  63971. DEBUG = @DEBUG@
  63972. DEFS = @DEFS@
  63973. DEPDIR = @DEPDIR@
  63974. -ECHO = @ECHO@
  63975. +DSYMUTIL = @DSYMUTIL@
  63976. +DUMPBIN = @DUMPBIN@
  63977. ECHO_C = @ECHO_C@
  63978. ECHO_N = @ECHO_N@
  63979. ECHO_T = @ECHO_T@
  63980. EGREP = @EGREP@
  63981. EXEEXT = @EXEEXT@
  63982. -F77 = @F77@
  63983. -FFLAGS = @FFLAGS@
  63984. FGREP = @FGREP@
  63985. GREP = @GREP@
  63986. HAVE_KATE = @HAVE_KATE@
  63987. @@ -116,26 +117,34 @@
  63988. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  63989. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  63990. KATE_LIBS = @KATE_LIBS@
  63991. +LD = @LD@
  63992. LDFLAGS = @LDFLAGS@
  63993. LIBOBJS = @LIBOBJS@
  63994. LIBS = @LIBS@
  63995. LIBTOOL = @LIBTOOL@
  63996. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  63997. +LIPO = @LIPO@
  63998. LN_S = @LN_S@
  63999. LTLIBOBJS = @LTLIBOBJS@
  64000. MAINT = @MAINT@
  64001. MAKEINFO = @MAKEINFO@
  64002. MKDIR_P = @MKDIR_P@
  64003. +NM = @NM@
  64004. +NMEDIT = @NMEDIT@
  64005. +OBJDUMP = @OBJDUMP@
  64006. OBJEXT = @OBJEXT@
  64007. OGG_CFLAGS = @OGG_CFLAGS@
  64008. OGG_LDFLAGS = @OGG_LDFLAGS@
  64009. OGG_LIBS = @OGG_LIBS@
  64010. OGG_PREFIX = @OGG_PREFIX@
  64011. +OTOOL = @OTOOL@
  64012. +OTOOL64 = @OTOOL64@
  64013. PACKAGE = @PACKAGE@
  64014. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  64015. PACKAGE_NAME = @PACKAGE_NAME@
  64016. PACKAGE_STRING = @PACKAGE_STRING@
  64017. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  64018. +PACKAGE_URL = @PACKAGE_URL@
  64019. PACKAGE_VERSION = @PACKAGE_VERSION@
  64020. PATH_SEPARATOR = @PATH_SEPARATOR@
  64021. PKGCONFIG = @PKGCONFIG@
  64022. @@ -174,8 +183,7 @@
  64023. abs_top_builddir = @abs_top_builddir@
  64024. abs_top_srcdir = @abs_top_srcdir@
  64025. ac_ct_CC = @ac_ct_CC@
  64026. -ac_ct_CXX = @ac_ct_CXX@
  64027. -ac_ct_F77 = @ac_ct_F77@
  64028. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  64029. acx_pthread_config = @acx_pthread_config@
  64030. am__include = @am__include@
  64031. am__leading_dot = @am__leading_dot@
  64032. @@ -207,6 +215,7 @@
  64033. libexecdir = @libexecdir@
  64034. localedir = @localedir@
  64035. localstatedir = @localstatedir@
  64036. +lt_ECHO = @lt_ECHO@
  64037. mandir = @mandir@
  64038. mkdir_p = @mkdir_p@
  64039. oldincludedir = @oldincludedir@
  64040. @@ -219,6 +228,7 @@
  64041. srcdir = @srcdir@
  64042. sysconfdir = @sysconfdir@
  64043. target_alias = @target_alias@
  64044. +top_build_prefix = @top_build_prefix@
  64045. top_builddir = @top_builddir@
  64046. top_srcdir = @top_srcdir@
  64047. AUTOMAKE_OPTIONS = foreign
  64048. @@ -236,14 +246,14 @@
  64049. @for dep in $?; do \
  64050. case '$(am__configure_deps)' in \
  64051. *$$dep*) \
  64052. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  64053. - && exit 0; \
  64054. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  64055. + && { if test -f $@; then exit 0; else break; fi; }; \
  64056. exit 1;; \
  64057. esac; \
  64058. done; \
  64059. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/avl/Makefile'; \
  64060. - cd $(top_srcdir) && \
  64061. - $(AUTOMAKE) --foreign src/avl/Makefile
  64062. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/avl/Makefile'; \
  64063. + $(am__cd) $(top_srcdir) && \
  64064. + $(AUTOMAKE) --foreign src/avl/Makefile
  64065. .PRECIOUS: Makefile
  64066. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  64067. @case '$?' in \
  64068. @@ -261,6 +271,7 @@
  64069. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  64070. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  64071. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  64072. +$(am__aclocal_m4_deps):
  64073. clean-noinstLTLIBRARIES:
  64074. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  64075. @@ -283,31 +294,31 @@
  64076. .c.o:
  64077. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  64078. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  64079. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  64080. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  64081. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64082. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  64083. .c.obj:
  64084. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  64085. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  64086. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  64087. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  64088. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64089. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  64090. .c.lo:
  64091. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  64092. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  64093. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  64094. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  64095. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64096. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  64097. libiceavl_la-avl.lo: avl.c
  64098. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libiceavl_la_CFLAGS) $(CFLAGS) -MT libiceavl_la-avl.lo -MD -MP -MF $(DEPDIR)/libiceavl_la-avl.Tpo -c -o libiceavl_la-avl.lo `test -f 'avl.c' || echo '$(srcdir)/'`avl.c
  64099. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libiceavl_la-avl.Tpo $(DEPDIR)/libiceavl_la-avl.Plo
  64100. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libiceavl_la_CFLAGS) $(CFLAGS) -MT libiceavl_la-avl.lo -MD -MP -MF $(DEPDIR)/libiceavl_la-avl.Tpo -c -o libiceavl_la-avl.lo `test -f 'avl.c' || echo '$(srcdir)/'`avl.c
  64101. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libiceavl_la-avl.Tpo $(DEPDIR)/libiceavl_la-avl.Plo
  64102. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='avl.c' object='libiceavl_la-avl.lo' libtool=yes @AMDEPBACKSLASH@
  64103. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64104. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libiceavl_la_CFLAGS) $(CFLAGS) -c -o libiceavl_la-avl.lo `test -f 'avl.c' || echo '$(srcdir)/'`avl.c
  64105. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libiceavl_la_CFLAGS) $(CFLAGS) -c -o libiceavl_la-avl.lo `test -f 'avl.c' || echo '$(srcdir)/'`avl.c
  64106. mostlyclean-libtool:
  64107. -rm -f *.lo
  64108. @@ -320,45 +331,49 @@
  64109. unique=`for i in $$list; do \
  64110. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64111. done | \
  64112. - $(AWK) ' { files[$$0] = 1; } \
  64113. - END { for (i in files) print i; }'`; \
  64114. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64115. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64116. mkid -fID $$unique
  64117. tags: TAGS
  64118. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  64119. $(TAGS_FILES) $(LISP)
  64120. - tags=; \
  64121. + set x; \
  64122. here=`pwd`; \
  64123. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  64124. unique=`for i in $$list; do \
  64125. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64126. done | \
  64127. - $(AWK) ' { files[$$0] = 1; } \
  64128. - END { for (i in files) print i; }'`; \
  64129. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  64130. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64131. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64132. + shift; \
  64133. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  64134. test -n "$$unique" || unique=$$empty_fix; \
  64135. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64136. - $$tags $$unique; \
  64137. + if test $$# -gt 0; then \
  64138. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64139. + "$$@" $$unique; \
  64140. + else \
  64141. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64142. + $$unique; \
  64143. + fi; \
  64144. fi
  64145. ctags: CTAGS
  64146. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  64147. $(TAGS_FILES) $(LISP)
  64148. - tags=; \
  64149. - here=`pwd`; \
  64150. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  64151. unique=`for i in $$list; do \
  64152. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64153. done | \
  64154. - $(AWK) ' { files[$$0] = 1; } \
  64155. - END { for (i in files) print i; }'`; \
  64156. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  64157. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64158. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64159. + test -z "$(CTAGS_ARGS)$$unique" \
  64160. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  64161. - $$tags $$unique
  64162. + $$unique
  64163. GTAGS:
  64164. here=`$(am__cd) $(top_builddir) && pwd` \
  64165. - && cd $(top_srcdir) \
  64166. - && gtags -i $(GTAGS_ARGS) $$here
  64167. + && $(am__cd) $(top_srcdir) \
  64168. + && gtags -i $(GTAGS_ARGS) "$$here"
  64169. distclean-tags:
  64170. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  64171. @@ -379,13 +394,17 @@
  64172. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  64173. if test -d $$d/$$file; then \
  64174. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  64175. + if test -d "$(distdir)/$$file"; then \
  64176. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  64177. + fi; \
  64178. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  64179. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  64180. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  64181. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  64182. fi; \
  64183. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  64184. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  64185. else \
  64186. - test -f $(distdir)/$$file \
  64187. - || cp -p $$d/$$file $(distdir)/$$file \
  64188. + test -f "$(distdir)/$$file" \
  64189. + || cp -p $$d/$$file "$(distdir)/$$file" \
  64190. || exit 1; \
  64191. fi; \
  64192. done
  64193. @@ -413,6 +432,7 @@
  64194. distclean-generic:
  64195. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  64196. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  64197. maintainer-clean-generic:
  64198. @echo "This command is intended for maintainers to use"
  64199. @@ -434,6 +454,8 @@
  64200. html: html-am
  64201. +html-am:
  64202. +
  64203. info: info-am
  64204. info-am:
  64205. @@ -442,18 +464,28 @@
  64206. install-dvi: install-dvi-am
  64207. +install-dvi-am:
  64208. +
  64209. install-exec-am:
  64210. install-html: install-html-am
  64211. +install-html-am:
  64212. +
  64213. install-info: install-info-am
  64214. +install-info-am:
  64215. +
  64216. install-man:
  64217. install-pdf: install-pdf-am
  64218. +install-pdf-am:
  64219. +
  64220. install-ps: install-ps-am
  64221. +install-ps-am:
  64222. +
  64223. installcheck-am:
  64224. maintainer-clean: maintainer-clean-am
  64225. @@ -497,6 +529,7 @@
  64226. profile:
  64227. $(MAKE) all CFLAGS="@PROFILE@"
  64228. +
  64229. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  64230. # Otherwise a system limit (for SysV at least) may be exceeded.
  64231. .NOEXPORT:
  64232. diff -Nur icecast-2.3.2.orig/src/httpp/Makefile.in icecast-2.3.2/src/httpp/Makefile.in
  64233. --- icecast-2.3.2.orig/src/httpp/Makefile.in 2008-05-30 01:58:58.000000000 +0200
  64234. +++ icecast-2.3.2/src/httpp/Makefile.in 2010-02-18 21:27:42.572851611 +0100
  64235. @@ -1,8 +1,9 @@
  64236. -# Makefile.in generated by automake 1.10 from Makefile.am.
  64237. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  64238. # @configure_input@
  64239. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  64240. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  64241. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  64242. +# Inc.
  64243. # This Makefile.in is free software; the Free Software Foundation
  64244. # gives unlimited permission to copy and/or distribute it,
  64245. # with or without modifications, as long as this notice is preserved.
  64246. @@ -17,8 +18,9 @@
  64247. VPATH = @srcdir@
  64248. pkgdatadir = $(datadir)/@PACKAGE@
  64249. -pkglibdir = $(libdir)/@PACKAGE@
  64250. pkgincludedir = $(includedir)/@PACKAGE@
  64251. +pkglibdir = $(libdir)/@PACKAGE@
  64252. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  64253. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  64254. install_sh_DATA = $(install_sh) -c -m 644
  64255. install_sh_PROGRAM = $(install_sh) -c
  64256. @@ -38,9 +40,11 @@
  64257. $(srcdir)/Makefile.in COPYING TODO
  64258. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  64259. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  64260. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  64261. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  64262. - $(top_srcdir)/m4/xiph_compiler.m4 \
  64263. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  64264. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  64265. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  64266. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  64267. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  64268. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  64269. $(top_srcdir)/m4/xiph_openssl.m4 \
  64270. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  64271. @@ -50,6 +54,7 @@
  64272. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  64273. CONFIG_HEADER = $(top_builddir)/config.h
  64274. CONFIG_CLEAN_FILES =
  64275. +CONFIG_CLEAN_VPATH_FILES =
  64276. LTLIBRARIES = $(noinst_LTLIBRARIES)
  64277. libicehttpp_la_LIBADD =
  64278. am_libicehttpp_la_OBJECTS = libicehttpp_la-httpp.lo
  64279. @@ -57,9 +62,10 @@
  64280. libicehttpp_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  64281. $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libicehttpp_la_CFLAGS) \
  64282. $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
  64283. -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
  64284. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  64285. depcomp = $(SHELL) $(top_srcdir)/depcomp
  64286. am__depfiles_maybe = depfiles
  64287. +am__mv = mv -f
  64288. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  64289. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  64290. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  64291. @@ -90,22 +96,17 @@
  64292. CURL_CFLAGS = @CURL_CFLAGS@
  64293. CURL_CONFIG = @CURL_CONFIG@
  64294. CURL_LIBS = @CURL_LIBS@
  64295. -CXX = @CXX@
  64296. -CXXCPP = @CXXCPP@
  64297. -CXXDEPMODE = @CXXDEPMODE@
  64298. -CXXFLAGS = @CXXFLAGS@
  64299. CYGPATH_W = @CYGPATH_W@
  64300. DEBUG = @DEBUG@
  64301. DEFS = @DEFS@
  64302. DEPDIR = @DEPDIR@
  64303. -ECHO = @ECHO@
  64304. +DSYMUTIL = @DSYMUTIL@
  64305. +DUMPBIN = @DUMPBIN@
  64306. ECHO_C = @ECHO_C@
  64307. ECHO_N = @ECHO_N@
  64308. ECHO_T = @ECHO_T@
  64309. EGREP = @EGREP@
  64310. EXEEXT = @EXEEXT@
  64311. -F77 = @F77@
  64312. -FFLAGS = @FFLAGS@
  64313. FGREP = @FGREP@
  64314. GREP = @GREP@
  64315. HAVE_KATE = @HAVE_KATE@
  64316. @@ -116,26 +117,34 @@
  64317. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  64318. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  64319. KATE_LIBS = @KATE_LIBS@
  64320. +LD = @LD@
  64321. LDFLAGS = @LDFLAGS@
  64322. LIBOBJS = @LIBOBJS@
  64323. LIBS = @LIBS@
  64324. LIBTOOL = @LIBTOOL@
  64325. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  64326. +LIPO = @LIPO@
  64327. LN_S = @LN_S@
  64328. LTLIBOBJS = @LTLIBOBJS@
  64329. MAINT = @MAINT@
  64330. MAKEINFO = @MAKEINFO@
  64331. MKDIR_P = @MKDIR_P@
  64332. +NM = @NM@
  64333. +NMEDIT = @NMEDIT@
  64334. +OBJDUMP = @OBJDUMP@
  64335. OBJEXT = @OBJEXT@
  64336. OGG_CFLAGS = @OGG_CFLAGS@
  64337. OGG_LDFLAGS = @OGG_LDFLAGS@
  64338. OGG_LIBS = @OGG_LIBS@
  64339. OGG_PREFIX = @OGG_PREFIX@
  64340. +OTOOL = @OTOOL@
  64341. +OTOOL64 = @OTOOL64@
  64342. PACKAGE = @PACKAGE@
  64343. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  64344. PACKAGE_NAME = @PACKAGE_NAME@
  64345. PACKAGE_STRING = @PACKAGE_STRING@
  64346. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  64347. +PACKAGE_URL = @PACKAGE_URL@
  64348. PACKAGE_VERSION = @PACKAGE_VERSION@
  64349. PATH_SEPARATOR = @PATH_SEPARATOR@
  64350. PKGCONFIG = @PKGCONFIG@
  64351. @@ -174,8 +183,7 @@
  64352. abs_top_builddir = @abs_top_builddir@
  64353. abs_top_srcdir = @abs_top_srcdir@
  64354. ac_ct_CC = @ac_ct_CC@
  64355. -ac_ct_CXX = @ac_ct_CXX@
  64356. -ac_ct_F77 = @ac_ct_F77@
  64357. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  64358. acx_pthread_config = @acx_pthread_config@
  64359. am__include = @am__include@
  64360. am__leading_dot = @am__leading_dot@
  64361. @@ -207,6 +215,7 @@
  64362. libexecdir = @libexecdir@
  64363. localedir = @localedir@
  64364. localstatedir = @localstatedir@
  64365. +lt_ECHO = @lt_ECHO@
  64366. mandir = @mandir@
  64367. mkdir_p = @mkdir_p@
  64368. oldincludedir = @oldincludedir@
  64369. @@ -219,6 +228,7 @@
  64370. srcdir = @srcdir@
  64371. sysconfdir = @sysconfdir@
  64372. target_alias = @target_alias@
  64373. +top_build_prefix = @top_build_prefix@
  64374. top_builddir = @top_builddir@
  64375. top_srcdir = @top_srcdir@
  64376. AUTOMAKE_OPTIONS = foreign
  64377. @@ -239,14 +249,14 @@
  64378. @for dep in $?; do \
  64379. case '$(am__configure_deps)' in \
  64380. *$$dep*) \
  64381. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  64382. - && exit 0; \
  64383. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  64384. + && { if test -f $@; then exit 0; else break; fi; }; \
  64385. exit 1;; \
  64386. esac; \
  64387. done; \
  64388. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/httpp/Makefile'; \
  64389. - cd $(top_srcdir) && \
  64390. - $(AUTOMAKE) --foreign src/httpp/Makefile
  64391. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/httpp/Makefile'; \
  64392. + $(am__cd) $(top_srcdir) && \
  64393. + $(AUTOMAKE) --foreign src/httpp/Makefile
  64394. .PRECIOUS: Makefile
  64395. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  64396. @case '$?' in \
  64397. @@ -264,6 +274,7 @@
  64398. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  64399. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  64400. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  64401. +$(am__aclocal_m4_deps):
  64402. clean-noinstLTLIBRARIES:
  64403. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  64404. @@ -286,31 +297,31 @@
  64405. .c.o:
  64406. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  64407. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  64408. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  64409. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  64410. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64411. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  64412. .c.obj:
  64413. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  64414. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  64415. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  64416. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  64417. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64418. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  64419. .c.lo:
  64420. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  64421. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  64422. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  64423. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  64424. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64425. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  64426. libicehttpp_la-httpp.lo: httpp.c
  64427. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicehttpp_la_CFLAGS) $(CFLAGS) -MT libicehttpp_la-httpp.lo -MD -MP -MF $(DEPDIR)/libicehttpp_la-httpp.Tpo -c -o libicehttpp_la-httpp.lo `test -f 'httpp.c' || echo '$(srcdir)/'`httpp.c
  64428. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libicehttpp_la-httpp.Tpo $(DEPDIR)/libicehttpp_la-httpp.Plo
  64429. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicehttpp_la_CFLAGS) $(CFLAGS) -MT libicehttpp_la-httpp.lo -MD -MP -MF $(DEPDIR)/libicehttpp_la-httpp.Tpo -c -o libicehttpp_la-httpp.lo `test -f 'httpp.c' || echo '$(srcdir)/'`httpp.c
  64430. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libicehttpp_la-httpp.Tpo $(DEPDIR)/libicehttpp_la-httpp.Plo
  64431. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='httpp.c' object='libicehttpp_la-httpp.lo' libtool=yes @AMDEPBACKSLASH@
  64432. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64433. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicehttpp_la_CFLAGS) $(CFLAGS) -c -o libicehttpp_la-httpp.lo `test -f 'httpp.c' || echo '$(srcdir)/'`httpp.c
  64434. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicehttpp_la_CFLAGS) $(CFLAGS) -c -o libicehttpp_la-httpp.lo `test -f 'httpp.c' || echo '$(srcdir)/'`httpp.c
  64435. mostlyclean-libtool:
  64436. -rm -f *.lo
  64437. @@ -323,45 +334,49 @@
  64438. unique=`for i in $$list; do \
  64439. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64440. done | \
  64441. - $(AWK) ' { files[$$0] = 1; } \
  64442. - END { for (i in files) print i; }'`; \
  64443. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64444. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64445. mkid -fID $$unique
  64446. tags: TAGS
  64447. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  64448. $(TAGS_FILES) $(LISP)
  64449. - tags=; \
  64450. + set x; \
  64451. here=`pwd`; \
  64452. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  64453. unique=`for i in $$list; do \
  64454. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64455. done | \
  64456. - $(AWK) ' { files[$$0] = 1; } \
  64457. - END { for (i in files) print i; }'`; \
  64458. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  64459. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64460. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64461. + shift; \
  64462. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  64463. test -n "$$unique" || unique=$$empty_fix; \
  64464. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64465. - $$tags $$unique; \
  64466. + if test $$# -gt 0; then \
  64467. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64468. + "$$@" $$unique; \
  64469. + else \
  64470. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64471. + $$unique; \
  64472. + fi; \
  64473. fi
  64474. ctags: CTAGS
  64475. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  64476. $(TAGS_FILES) $(LISP)
  64477. - tags=; \
  64478. - here=`pwd`; \
  64479. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  64480. unique=`for i in $$list; do \
  64481. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64482. done | \
  64483. - $(AWK) ' { files[$$0] = 1; } \
  64484. - END { for (i in files) print i; }'`; \
  64485. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  64486. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64487. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64488. + test -z "$(CTAGS_ARGS)$$unique" \
  64489. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  64490. - $$tags $$unique
  64491. + $$unique
  64492. GTAGS:
  64493. here=`$(am__cd) $(top_builddir) && pwd` \
  64494. - && cd $(top_srcdir) \
  64495. - && gtags -i $(GTAGS_ARGS) $$here
  64496. + && $(am__cd) $(top_srcdir) \
  64497. + && gtags -i $(GTAGS_ARGS) "$$here"
  64498. distclean-tags:
  64499. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  64500. @@ -382,13 +397,17 @@
  64501. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  64502. if test -d $$d/$$file; then \
  64503. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  64504. + if test -d "$(distdir)/$$file"; then \
  64505. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  64506. + fi; \
  64507. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  64508. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  64509. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  64510. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  64511. fi; \
  64512. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  64513. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  64514. else \
  64515. - test -f $(distdir)/$$file \
  64516. - || cp -p $$d/$$file $(distdir)/$$file \
  64517. + test -f "$(distdir)/$$file" \
  64518. + || cp -p $$d/$$file "$(distdir)/$$file" \
  64519. || exit 1; \
  64520. fi; \
  64521. done
  64522. @@ -416,6 +435,7 @@
  64523. distclean-generic:
  64524. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  64525. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  64526. maintainer-clean-generic:
  64527. @echo "This command is intended for maintainers to use"
  64528. @@ -437,6 +457,8 @@
  64529. html: html-am
  64530. +html-am:
  64531. +
  64532. info: info-am
  64533. info-am:
  64534. @@ -445,18 +467,28 @@
  64535. install-dvi: install-dvi-am
  64536. +install-dvi-am:
  64537. +
  64538. install-exec-am:
  64539. install-html: install-html-am
  64540. +install-html-am:
  64541. +
  64542. install-info: install-info-am
  64543. +install-info-am:
  64544. +
  64545. install-man:
  64546. install-pdf: install-pdf-am
  64547. +install-pdf-am:
  64548. +
  64549. install-ps: install-ps-am
  64550. +install-ps-am:
  64551. +
  64552. installcheck-am:
  64553. maintainer-clean: maintainer-clean-am
  64554. @@ -500,6 +532,7 @@
  64555. profile:
  64556. $(MAKE) all CFLAGS="@PROFILE@"
  64557. +
  64558. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  64559. # Otherwise a system limit (for SysV at least) may be exceeded.
  64560. .NOEXPORT:
  64561. diff -Nur icecast-2.3.2.orig/src/log/Makefile.in icecast-2.3.2/src/log/Makefile.in
  64562. --- icecast-2.3.2.orig/src/log/Makefile.in 2008-05-30 01:58:58.000000000 +0200
  64563. +++ icecast-2.3.2/src/log/Makefile.in 2010-02-18 21:27:42.692851808 +0100
  64564. @@ -1,8 +1,9 @@
  64565. -# Makefile.in generated by automake 1.10 from Makefile.am.
  64566. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  64567. # @configure_input@
  64568. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  64569. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  64570. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  64571. +# Inc.
  64572. # This Makefile.in is free software; the Free Software Foundation
  64573. # gives unlimited permission to copy and/or distribute it,
  64574. # with or without modifications, as long as this notice is preserved.
  64575. @@ -17,8 +18,9 @@
  64576. VPATH = @srcdir@
  64577. pkgdatadir = $(datadir)/@PACKAGE@
  64578. -pkglibdir = $(libdir)/@PACKAGE@
  64579. pkgincludedir = $(includedir)/@PACKAGE@
  64580. +pkglibdir = $(libdir)/@PACKAGE@
  64581. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  64582. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  64583. install_sh_DATA = $(install_sh) -c -m 644
  64584. install_sh_PROGRAM = $(install_sh) -c
  64585. @@ -38,9 +40,11 @@
  64586. $(srcdir)/Makefile.in
  64587. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  64588. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  64589. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  64590. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  64591. - $(top_srcdir)/m4/xiph_compiler.m4 \
  64592. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  64593. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  64594. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  64595. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  64596. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  64597. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  64598. $(top_srcdir)/m4/xiph_openssl.m4 \
  64599. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  64600. @@ -50,13 +54,15 @@
  64601. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  64602. CONFIG_HEADER = $(top_builddir)/config.h
  64603. CONFIG_CLEAN_FILES =
  64604. +CONFIG_CLEAN_VPATH_FILES =
  64605. LTLIBRARIES = $(noinst_LTLIBRARIES)
  64606. libicelog_la_LIBADD =
  64607. am_libicelog_la_OBJECTS = log.lo
  64608. libicelog_la_OBJECTS = $(am_libicelog_la_OBJECTS)
  64609. -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
  64610. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  64611. depcomp = $(SHELL) $(top_srcdir)/depcomp
  64612. am__depfiles_maybe = depfiles
  64613. +am__mv = mv -f
  64614. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  64615. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  64616. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  64617. @@ -87,22 +93,17 @@
  64618. CURL_CFLAGS = @CURL_CFLAGS@
  64619. CURL_CONFIG = @CURL_CONFIG@
  64620. CURL_LIBS = @CURL_LIBS@
  64621. -CXX = @CXX@
  64622. -CXXCPP = @CXXCPP@
  64623. -CXXDEPMODE = @CXXDEPMODE@
  64624. -CXXFLAGS = @CXXFLAGS@
  64625. CYGPATH_W = @CYGPATH_W@
  64626. DEBUG = @DEBUG@
  64627. DEFS = @DEFS@
  64628. DEPDIR = @DEPDIR@
  64629. -ECHO = @ECHO@
  64630. +DSYMUTIL = @DSYMUTIL@
  64631. +DUMPBIN = @DUMPBIN@
  64632. ECHO_C = @ECHO_C@
  64633. ECHO_N = @ECHO_N@
  64634. ECHO_T = @ECHO_T@
  64635. EGREP = @EGREP@
  64636. EXEEXT = @EXEEXT@
  64637. -F77 = @F77@
  64638. -FFLAGS = @FFLAGS@
  64639. FGREP = @FGREP@
  64640. GREP = @GREP@
  64641. HAVE_KATE = @HAVE_KATE@
  64642. @@ -113,26 +114,34 @@
  64643. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  64644. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  64645. KATE_LIBS = @KATE_LIBS@
  64646. +LD = @LD@
  64647. LDFLAGS = @LDFLAGS@
  64648. LIBOBJS = @LIBOBJS@
  64649. LIBS = @LIBS@
  64650. LIBTOOL = @LIBTOOL@
  64651. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  64652. +LIPO = @LIPO@
  64653. LN_S = @LN_S@
  64654. LTLIBOBJS = @LTLIBOBJS@
  64655. MAINT = @MAINT@
  64656. MAKEINFO = @MAKEINFO@
  64657. MKDIR_P = @MKDIR_P@
  64658. +NM = @NM@
  64659. +NMEDIT = @NMEDIT@
  64660. +OBJDUMP = @OBJDUMP@
  64661. OBJEXT = @OBJEXT@
  64662. OGG_CFLAGS = @OGG_CFLAGS@
  64663. OGG_LDFLAGS = @OGG_LDFLAGS@
  64664. OGG_LIBS = @OGG_LIBS@
  64665. OGG_PREFIX = @OGG_PREFIX@
  64666. +OTOOL = @OTOOL@
  64667. +OTOOL64 = @OTOOL64@
  64668. PACKAGE = @PACKAGE@
  64669. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  64670. PACKAGE_NAME = @PACKAGE_NAME@
  64671. PACKAGE_STRING = @PACKAGE_STRING@
  64672. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  64673. +PACKAGE_URL = @PACKAGE_URL@
  64674. PACKAGE_VERSION = @PACKAGE_VERSION@
  64675. PATH_SEPARATOR = @PATH_SEPARATOR@
  64676. PKGCONFIG = @PKGCONFIG@
  64677. @@ -171,8 +180,7 @@
  64678. abs_top_builddir = @abs_top_builddir@
  64679. abs_top_srcdir = @abs_top_srcdir@
  64680. ac_ct_CC = @ac_ct_CC@
  64681. -ac_ct_CXX = @ac_ct_CXX@
  64682. -ac_ct_F77 = @ac_ct_F77@
  64683. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  64684. acx_pthread_config = @acx_pthread_config@
  64685. am__include = @am__include@
  64686. am__leading_dot = @am__leading_dot@
  64687. @@ -204,6 +212,7 @@
  64688. libexecdir = @libexecdir@
  64689. localedir = @localedir@
  64690. localstatedir = @localstatedir@
  64691. +lt_ECHO = @lt_ECHO@
  64692. mandir = @mandir@
  64693. mkdir_p = @mkdir_p@
  64694. oldincludedir = @oldincludedir@
  64695. @@ -216,6 +225,7 @@
  64696. srcdir = @srcdir@
  64697. sysconfdir = @sysconfdir@
  64698. target_alias = @target_alias@
  64699. +top_build_prefix = @top_build_prefix@
  64700. top_builddir = @top_builddir@
  64701. top_srcdir = @top_srcdir@
  64702. AUTOMAKE_OPTIONS = foreign
  64703. @@ -232,14 +242,14 @@
  64704. @for dep in $?; do \
  64705. case '$(am__configure_deps)' in \
  64706. *$$dep*) \
  64707. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  64708. - && exit 0; \
  64709. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  64710. + && { if test -f $@; then exit 0; else break; fi; }; \
  64711. exit 1;; \
  64712. esac; \
  64713. done; \
  64714. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/log/Makefile'; \
  64715. - cd $(top_srcdir) && \
  64716. - $(AUTOMAKE) --foreign src/log/Makefile
  64717. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/log/Makefile'; \
  64718. + $(am__cd) $(top_srcdir) && \
  64719. + $(AUTOMAKE) --foreign src/log/Makefile
  64720. .PRECIOUS: Makefile
  64721. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  64722. @case '$?' in \
  64723. @@ -257,6 +267,7 @@
  64724. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  64725. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  64726. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  64727. +$(am__aclocal_m4_deps):
  64728. clean-noinstLTLIBRARIES:
  64729. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  64730. @@ -279,21 +290,21 @@
  64731. .c.o:
  64732. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  64733. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  64734. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  64735. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  64736. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64737. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  64738. .c.obj:
  64739. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  64740. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  64741. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  64742. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  64743. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64744. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  64745. .c.lo:
  64746. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  64747. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  64748. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  64749. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  64750. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  64751. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  64752. @@ -309,45 +320,49 @@
  64753. unique=`for i in $$list; do \
  64754. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64755. done | \
  64756. - $(AWK) ' { files[$$0] = 1; } \
  64757. - END { for (i in files) print i; }'`; \
  64758. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64759. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64760. mkid -fID $$unique
  64761. tags: TAGS
  64762. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  64763. $(TAGS_FILES) $(LISP)
  64764. - tags=; \
  64765. + set x; \
  64766. here=`pwd`; \
  64767. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  64768. unique=`for i in $$list; do \
  64769. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64770. done | \
  64771. - $(AWK) ' { files[$$0] = 1; } \
  64772. - END { for (i in files) print i; }'`; \
  64773. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  64774. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64775. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64776. + shift; \
  64777. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  64778. test -n "$$unique" || unique=$$empty_fix; \
  64779. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64780. - $$tags $$unique; \
  64781. + if test $$# -gt 0; then \
  64782. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64783. + "$$@" $$unique; \
  64784. + else \
  64785. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  64786. + $$unique; \
  64787. + fi; \
  64788. fi
  64789. ctags: CTAGS
  64790. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  64791. $(TAGS_FILES) $(LISP)
  64792. - tags=; \
  64793. - here=`pwd`; \
  64794. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  64795. unique=`for i in $$list; do \
  64796. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  64797. done | \
  64798. - $(AWK) ' { files[$$0] = 1; } \
  64799. - END { for (i in files) print i; }'`; \
  64800. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  64801. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  64802. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  64803. + test -z "$(CTAGS_ARGS)$$unique" \
  64804. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  64805. - $$tags $$unique
  64806. + $$unique
  64807. GTAGS:
  64808. here=`$(am__cd) $(top_builddir) && pwd` \
  64809. - && cd $(top_srcdir) \
  64810. - && gtags -i $(GTAGS_ARGS) $$here
  64811. + && $(am__cd) $(top_srcdir) \
  64812. + && gtags -i $(GTAGS_ARGS) "$$here"
  64813. distclean-tags:
  64814. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  64815. @@ -368,13 +383,17 @@
  64816. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  64817. if test -d $$d/$$file; then \
  64818. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  64819. + if test -d "$(distdir)/$$file"; then \
  64820. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  64821. + fi; \
  64822. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  64823. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  64824. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  64825. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  64826. fi; \
  64827. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  64828. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  64829. else \
  64830. - test -f $(distdir)/$$file \
  64831. - || cp -p $$d/$$file $(distdir)/$$file \
  64832. + test -f "$(distdir)/$$file" \
  64833. + || cp -p $$d/$$file "$(distdir)/$$file" \
  64834. || exit 1; \
  64835. fi; \
  64836. done
  64837. @@ -402,6 +421,7 @@
  64838. distclean-generic:
  64839. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  64840. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  64841. maintainer-clean-generic:
  64842. @echo "This command is intended for maintainers to use"
  64843. @@ -423,6 +443,8 @@
  64844. html: html-am
  64845. +html-am:
  64846. +
  64847. info: info-am
  64848. info-am:
  64849. @@ -431,18 +453,28 @@
  64850. install-dvi: install-dvi-am
  64851. +install-dvi-am:
  64852. +
  64853. install-exec-am:
  64854. install-html: install-html-am
  64855. +install-html-am:
  64856. +
  64857. install-info: install-info-am
  64858. +install-info-am:
  64859. +
  64860. install-man:
  64861. install-pdf: install-pdf-am
  64862. +install-pdf-am:
  64863. +
  64864. install-ps: install-ps-am
  64865. +install-ps-am:
  64866. +
  64867. installcheck-am:
  64868. maintainer-clean: maintainer-clean-am
  64869. @@ -486,6 +518,7 @@
  64870. profile:
  64871. $(MAKE) all CFLAGS="@PROFILE@"
  64872. +
  64873. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  64874. # Otherwise a system limit (for SysV at least) may be exceeded.
  64875. .NOEXPORT:
  64876. diff -Nur icecast-2.3.2.orig/src/Makefile.in icecast-2.3.2/src/Makefile.in
  64877. --- icecast-2.3.2.orig/src/Makefile.in 2008-05-30 01:58:58.000000000 +0200
  64878. +++ icecast-2.3.2/src/Makefile.in 2010-02-18 21:27:42.308853999 +0100
  64879. @@ -1,8 +1,9 @@
  64880. -# Makefile.in generated by automake 1.10 from Makefile.am.
  64881. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  64882. # @configure_input@
  64883. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  64884. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  64885. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  64886. +# Inc.
  64887. # This Makefile.in is free software; the Free Software Foundation
  64888. # gives unlimited permission to copy and/or distribute it,
  64889. # with or without modifications, as long as this notice is preserved.
  64890. @@ -17,8 +18,9 @@
  64891. VPATH = @srcdir@
  64892. pkgdatadir = $(datadir)/@PACKAGE@
  64893. -pkglibdir = $(libdir)/@PACKAGE@
  64894. pkgincludedir = $(includedir)/@PACKAGE@
  64895. +pkglibdir = $(libdir)/@PACKAGE@
  64896. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  64897. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  64898. install_sh_DATA = $(install_sh) -c -m 644
  64899. install_sh_PROGRAM = $(install_sh) -c
  64900. @@ -39,9 +41,11 @@
  64901. $(srcdir)/Makefile.in TODO
  64902. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  64903. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  64904. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  64905. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  64906. - $(top_srcdir)/m4/xiph_compiler.m4 \
  64907. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  64908. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  64909. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  64910. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  64911. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  64912. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  64913. $(top_srcdir)/m4/xiph_openssl.m4 \
  64914. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  64915. @@ -51,8 +55,8 @@
  64916. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  64917. CONFIG_HEADER = $(top_builddir)/config.h
  64918. CONFIG_CLEAN_FILES =
  64919. +CONFIG_CLEAN_VPATH_FILES =
  64920. am__installdirs = "$(DESTDIR)$(bindir)"
  64921. -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
  64922. PROGRAMS = $(bin_PROGRAMS)
  64923. am_icecast_OBJECTS = cfgfile.$(OBJEXT) main.$(OBJEXT) \
  64924. logging.$(OBJEXT) sighandler.$(OBJEXT) connection.$(OBJEXT) \
  64925. @@ -68,9 +72,10 @@
  64926. am__DEPENDENCIES_1 = net/libicenet.la thread/libicethread.la \
  64927. httpp/libicehttpp.la log/libicelog.la avl/libiceavl.la \
  64928. timing/libicetiming.la
  64929. -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
  64930. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  64931. depcomp = $(SHELL) $(top_srcdir)/depcomp
  64932. am__depfiles_maybe = depfiles
  64933. +am__mv = mv -f
  64934. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  64935. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  64936. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  64937. @@ -92,10 +97,38 @@
  64938. HEADERS = $(noinst_HEADERS)
  64939. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  64940. distclean-recursive maintainer-clean-recursive
  64941. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  64942. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  64943. + distdir
  64944. ETAGS = etags
  64945. CTAGS = ctags
  64946. DIST_SUBDIRS = $(SUBDIRS)
  64947. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  64948. +am__relativize = \
  64949. + dir0=`pwd`; \
  64950. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  64951. + sed_rest='s,^[^/]*/*,,'; \
  64952. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  64953. + sed_butlast='s,/*[^/]*$$,,'; \
  64954. + while test -n "$$dir1"; do \
  64955. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  64956. + if test "$$first" != "."; then \
  64957. + if test "$$first" = ".."; then \
  64958. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  64959. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  64960. + else \
  64961. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  64962. + if test "$$first2" = "$$first"; then \
  64963. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  64964. + else \
  64965. + dir2="../$$dir2"; \
  64966. + fi; \
  64967. + dir0="$$dir0"/"$$first"; \
  64968. + fi; \
  64969. + fi; \
  64970. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  64971. + done; \
  64972. + reldir="$$dir2"
  64973. ACLOCAL = @ACLOCAL@
  64974. AMTAR = @AMTAR@
  64975. AR = @AR@
  64976. @@ -111,22 +144,17 @@
  64977. CURL_CFLAGS = @CURL_CFLAGS@
  64978. CURL_CONFIG = @CURL_CONFIG@
  64979. CURL_LIBS = @CURL_LIBS@
  64980. -CXX = @CXX@
  64981. -CXXCPP = @CXXCPP@
  64982. -CXXDEPMODE = @CXXDEPMODE@
  64983. -CXXFLAGS = @CXXFLAGS@
  64984. CYGPATH_W = @CYGPATH_W@
  64985. DEBUG = @DEBUG@
  64986. DEFS = @DEFS@
  64987. DEPDIR = @DEPDIR@
  64988. -ECHO = @ECHO@
  64989. +DSYMUTIL = @DSYMUTIL@
  64990. +DUMPBIN = @DUMPBIN@
  64991. ECHO_C = @ECHO_C@
  64992. ECHO_N = @ECHO_N@
  64993. ECHO_T = @ECHO_T@
  64994. EGREP = @EGREP@
  64995. EXEEXT = @EXEEXT@
  64996. -F77 = @F77@
  64997. -FFLAGS = @FFLAGS@
  64998. FGREP = @FGREP@
  64999. GREP = @GREP@
  65000. HAVE_KATE = @HAVE_KATE@
  65001. @@ -137,26 +165,34 @@
  65002. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  65003. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  65004. KATE_LIBS = @KATE_LIBS@
  65005. +LD = @LD@
  65006. LDFLAGS = @LDFLAGS@
  65007. LIBOBJS = @LIBOBJS@
  65008. LIBS = @LIBS@
  65009. LIBTOOL = @LIBTOOL@
  65010. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  65011. +LIPO = @LIPO@
  65012. LN_S = @LN_S@
  65013. LTLIBOBJS = @LTLIBOBJS@
  65014. MAINT = @MAINT@
  65015. MAKEINFO = @MAKEINFO@
  65016. MKDIR_P = @MKDIR_P@
  65017. +NM = @NM@
  65018. +NMEDIT = @NMEDIT@
  65019. +OBJDUMP = @OBJDUMP@
  65020. OBJEXT = @OBJEXT@
  65021. OGG_CFLAGS = @OGG_CFLAGS@
  65022. OGG_LDFLAGS = @OGG_LDFLAGS@
  65023. OGG_LIBS = @OGG_LIBS@
  65024. OGG_PREFIX = @OGG_PREFIX@
  65025. +OTOOL = @OTOOL@
  65026. +OTOOL64 = @OTOOL64@
  65027. PACKAGE = @PACKAGE@
  65028. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  65029. PACKAGE_NAME = @PACKAGE_NAME@
  65030. PACKAGE_STRING = @PACKAGE_STRING@
  65031. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  65032. +PACKAGE_URL = @PACKAGE_URL@
  65033. PACKAGE_VERSION = @PACKAGE_VERSION@
  65034. PATH_SEPARATOR = @PATH_SEPARATOR@
  65035. PKGCONFIG = @PKGCONFIG@
  65036. @@ -195,8 +231,7 @@
  65037. abs_top_builddir = @abs_top_builddir@
  65038. abs_top_srcdir = @abs_top_srcdir@
  65039. ac_ct_CC = @ac_ct_CC@
  65040. -ac_ct_CXX = @ac_ct_CXX@
  65041. -ac_ct_F77 = @ac_ct_F77@
  65042. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  65043. acx_pthread_config = @acx_pthread_config@
  65044. am__include = @am__include@
  65045. am__leading_dot = @am__leading_dot@
  65046. @@ -228,6 +263,7 @@
  65047. libexecdir = @libexecdir@
  65048. localedir = @localedir@
  65049. localstatedir = @localstatedir@
  65050. +lt_ECHO = @lt_ECHO@
  65051. mandir = @mandir@
  65052. mkdir_p = @mkdir_p@
  65053. oldincludedir = @oldincludedir@
  65054. @@ -240,6 +276,7 @@
  65055. srcdir = @srcdir@
  65056. sysconfdir = @sysconfdir@
  65057. target_alias = @target_alias@
  65058. +top_build_prefix = @top_build_prefix@
  65059. top_builddir = @top_builddir@
  65060. top_srcdir = @top_srcdir@
  65061. AUTOMAKE_OPTIONS = foreign
  65062. @@ -277,14 +314,14 @@
  65063. @for dep in $?; do \
  65064. case '$(am__configure_deps)' in \
  65065. *$$dep*) \
  65066. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  65067. - && exit 0; \
  65068. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  65069. + && { if test -f $@; then exit 0; else break; fi; }; \
  65070. exit 1;; \
  65071. esac; \
  65072. done; \
  65073. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
  65074. - cd $(top_srcdir) && \
  65075. - $(AUTOMAKE) --foreign src/Makefile
  65076. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
  65077. + $(am__cd) $(top_srcdir) && \
  65078. + $(AUTOMAKE) --foreign src/Makefile
  65079. .PRECIOUS: Makefile
  65080. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  65081. @case '$?' in \
  65082. @@ -302,34 +339,50 @@
  65083. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  65084. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  65085. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  65086. +$(am__aclocal_m4_deps):
  65087. install-binPROGRAMS: $(bin_PROGRAMS)
  65088. @$(NORMAL_INSTALL)
  65089. test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  65090. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  65091. - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  65092. - if test -f $$p \
  65093. - || test -f $$p1 \
  65094. - ; then \
  65095. - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
  65096. - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  65097. - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
  65098. - else :; fi; \
  65099. - done
  65100. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  65101. + for p in $$list; do echo "$$p $$p"; done | \
  65102. + sed 's/$(EXEEXT)$$//' | \
  65103. + while read p p1; do if test -f $$p || test -f $$p1; \
  65104. + then echo "$$p"; echo "$$p"; else :; fi; \
  65105. + done | \
  65106. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  65107. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  65108. + sed 'N;N;N;s,\n, ,g' | \
  65109. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  65110. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  65111. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  65112. + else { print "f", $$3 "/" $$4, $$1; } } \
  65113. + END { for (d in files) print "f", d, files[d] }' | \
  65114. + while read type dir files; do \
  65115. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  65116. + test -z "$$files" || { \
  65117. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  65118. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  65119. + } \
  65120. + ; done
  65121. uninstall-binPROGRAMS:
  65122. @$(NORMAL_UNINSTALL)
  65123. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  65124. - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
  65125. - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  65126. - rm -f "$(DESTDIR)$(bindir)/$$f"; \
  65127. - done
  65128. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  65129. + files=`for p in $$list; do echo "$$p"; done | \
  65130. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  65131. + -e 's/$$/$(EXEEXT)/' `; \
  65132. + test -n "$$list" || exit 0; \
  65133. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  65134. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  65135. clean-binPROGRAMS:
  65136. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  65137. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  65138. - echo " rm -f $$p $$f"; \
  65139. - rm -f $$p $$f ; \
  65140. - done
  65141. + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
  65142. + echo " rm -f" $$list; \
  65143. + rm -f $$list || exit $$?; \
  65144. + test -n "$(EXEEXT)" || exit 0; \
  65145. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  65146. + echo " rm -f" $$list; \
  65147. + rm -f $$list
  65148. icecast$(EXEEXT): $(icecast_OBJECTS) $(icecast_DEPENDENCIES)
  65149. @rm -f icecast$(EXEEXT)
  65150. $(LINK) $(icecast_OBJECTS) $(icecast_LDADD) $(LIBS)
  65151. @@ -374,21 +427,21 @@
  65152. .c.o:
  65153. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  65154. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  65155. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  65156. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  65157. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  65158. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  65159. .c.obj:
  65160. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  65161. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  65162. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  65163. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  65164. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  65165. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  65166. .c.lo:
  65167. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  65168. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  65169. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  65170. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  65171. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  65172. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  65173. @@ -406,7 +459,7 @@
  65174. # (which will cause the Makefiles to be regenerated when you run `make');
  65175. # (2) otherwise, pass the desired values on the `make' command line.
  65176. $(RECURSIVE_TARGETS):
  65177. - @failcom='exit 1'; \
  65178. + @fail= failcom='exit 1'; \
  65179. for f in x $$MAKEFLAGS; do \
  65180. case $$f in \
  65181. *=* | --[!k]*);; \
  65182. @@ -423,7 +476,7 @@
  65183. else \
  65184. local_target="$$target"; \
  65185. fi; \
  65186. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  65187. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  65188. || eval $$failcom; \
  65189. done; \
  65190. if test "$$dot_seen" = "no"; then \
  65191. @@ -431,7 +484,7 @@
  65192. fi; test -z "$$fail"
  65193. $(RECURSIVE_CLEAN_TARGETS):
  65194. - @failcom='exit 1'; \
  65195. + @fail= failcom='exit 1'; \
  65196. for f in x $$MAKEFLAGS; do \
  65197. case $$f in \
  65198. *=* | --[!k]*);; \
  65199. @@ -457,16 +510,16 @@
  65200. else \
  65201. local_target="$$target"; \
  65202. fi; \
  65203. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  65204. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  65205. || eval $$failcom; \
  65206. done && test -z "$$fail"
  65207. tags-recursive:
  65208. list='$(SUBDIRS)'; for subdir in $$list; do \
  65209. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  65210. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  65211. done
  65212. ctags-recursive:
  65213. list='$(SUBDIRS)'; for subdir in $$list; do \
  65214. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  65215. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  65216. done
  65217. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  65218. @@ -474,14 +527,14 @@
  65219. unique=`for i in $$list; do \
  65220. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  65221. done | \
  65222. - $(AWK) ' { files[$$0] = 1; } \
  65223. - END { for (i in files) print i; }'`; \
  65224. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  65225. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  65226. mkid -fID $$unique
  65227. tags: TAGS
  65228. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  65229. $(TAGS_FILES) $(LISP)
  65230. - tags=; \
  65231. + set x; \
  65232. here=`pwd`; \
  65233. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  65234. include_option=--etags-include; \
  65235. @@ -493,39 +546,43 @@
  65236. list='$(SUBDIRS)'; for subdir in $$list; do \
  65237. if test "$$subdir" = .; then :; else \
  65238. test ! -f $$subdir/TAGS || \
  65239. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  65240. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  65241. fi; \
  65242. done; \
  65243. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  65244. unique=`for i in $$list; do \
  65245. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  65246. done | \
  65247. - $(AWK) ' { files[$$0] = 1; } \
  65248. - END { for (i in files) print i; }'`; \
  65249. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  65250. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  65251. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  65252. + shift; \
  65253. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  65254. test -n "$$unique" || unique=$$empty_fix; \
  65255. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  65256. - $$tags $$unique; \
  65257. + if test $$# -gt 0; then \
  65258. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  65259. + "$$@" $$unique; \
  65260. + else \
  65261. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  65262. + $$unique; \
  65263. + fi; \
  65264. fi
  65265. ctags: CTAGS
  65266. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  65267. $(TAGS_FILES) $(LISP)
  65268. - tags=; \
  65269. - here=`pwd`; \
  65270. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  65271. unique=`for i in $$list; do \
  65272. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  65273. done | \
  65274. - $(AWK) ' { files[$$0] = 1; } \
  65275. - END { for (i in files) print i; }'`; \
  65276. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  65277. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  65278. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  65279. + test -z "$(CTAGS_ARGS)$$unique" \
  65280. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  65281. - $$tags $$unique
  65282. + $$unique
  65283. GTAGS:
  65284. here=`$(am__cd) $(top_builddir) && pwd` \
  65285. - && cd $(top_srcdir) \
  65286. - && gtags -i $(GTAGS_ARGS) $$here
  65287. + && $(am__cd) $(top_srcdir) \
  65288. + && gtags -i $(GTAGS_ARGS) "$$here"
  65289. distclean-tags:
  65290. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  65291. @@ -546,29 +603,44 @@
  65292. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  65293. if test -d $$d/$$file; then \
  65294. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  65295. + if test -d "$(distdir)/$$file"; then \
  65296. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  65297. + fi; \
  65298. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  65299. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  65300. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  65301. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  65302. fi; \
  65303. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  65304. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  65305. else \
  65306. - test -f $(distdir)/$$file \
  65307. - || cp -p $$d/$$file $(distdir)/$$file \
  65308. + test -f "$(distdir)/$$file" \
  65309. + || cp -p $$d/$$file "$(distdir)/$$file" \
  65310. || exit 1; \
  65311. fi; \
  65312. done
  65313. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  65314. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  65315. if test "$$subdir" = .; then :; else \
  65316. test -d "$(distdir)/$$subdir" \
  65317. || $(MKDIR_P) "$(distdir)/$$subdir" \
  65318. || exit 1; \
  65319. - distdir=`$(am__cd) $(distdir) && pwd`; \
  65320. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  65321. - (cd $$subdir && \
  65322. + fi; \
  65323. + done
  65324. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  65325. + if test "$$subdir" = .; then :; else \
  65326. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  65327. + $(am__relativize); \
  65328. + new_distdir=$$reldir; \
  65329. + dir1=$$subdir; dir2="$(top_distdir)"; \
  65330. + $(am__relativize); \
  65331. + new_top_distdir=$$reldir; \
  65332. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  65333. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  65334. + ($(am__cd) $$subdir && \
  65335. $(MAKE) $(AM_MAKEFLAGS) \
  65336. - top_distdir="$$top_distdir" \
  65337. - distdir="$$distdir/$$subdir" \
  65338. + top_distdir="$$new_top_distdir" \
  65339. + distdir="$$new_distdir" \
  65340. am__remove_distdir=: \
  65341. am__skip_length_check=: \
  65342. + am__skip_mode_fix=: \
  65343. distdir) \
  65344. || exit 1; \
  65345. fi; \
  65346. @@ -601,6 +673,7 @@
  65347. distclean-generic:
  65348. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  65349. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  65350. maintainer-clean-generic:
  65351. @echo "This command is intended for maintainers to use"
  65352. @@ -621,6 +694,8 @@
  65353. html: html-recursive
  65354. +html-am:
  65355. +
  65356. info: info-recursive
  65357. info-am:
  65358. @@ -629,18 +704,28 @@
  65359. install-dvi: install-dvi-recursive
  65360. +install-dvi-am:
  65361. +
  65362. install-exec-am: install-binPROGRAMS
  65363. install-html: install-html-recursive
  65364. +install-html-am:
  65365. +
  65366. install-info: install-info-recursive
  65367. +install-info-am:
  65368. +
  65369. install-man:
  65370. install-pdf: install-pdf-recursive
  65371. +install-pdf-am:
  65372. +
  65373. install-ps: install-ps-recursive
  65374. +install-ps-am:
  65375. +
  65376. installcheck-am:
  65377. maintainer-clean: maintainer-clean-recursive
  65378. @@ -663,8 +748,8 @@
  65379. uninstall-am: uninstall-binPROGRAMS
  65380. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  65381. - install-strip
  65382. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  65383. + install-am install-strip tags-recursive
  65384. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  65385. all all-am check check-am clean clean-binPROGRAMS \
  65386. @@ -688,6 +773,7 @@
  65387. profile:
  65388. $(MAKE) all CFLAGS="@PROFILE@"
  65389. +
  65390. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  65391. # Otherwise a system limit (for SysV at least) may be exceeded.
  65392. .NOEXPORT:
  65393. diff -Nur icecast-2.3.2.orig/src/net/Makefile.in icecast-2.3.2/src/net/Makefile.in
  65394. --- icecast-2.3.2.orig/src/net/Makefile.in 2008-05-30 01:58:58.000000000 +0200
  65395. +++ icecast-2.3.2/src/net/Makefile.in 2010-02-18 21:27:42.832852040 +0100
  65396. @@ -1,8 +1,9 @@
  65397. -# Makefile.in generated by automake 1.10 from Makefile.am.
  65398. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  65399. # @configure_input@
  65400. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  65401. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  65402. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  65403. +# Inc.
  65404. # This Makefile.in is free software; the Free Software Foundation
  65405. # gives unlimited permission to copy and/or distribute it,
  65406. # with or without modifications, as long as this notice is preserved.
  65407. @@ -17,8 +18,9 @@
  65408. VPATH = @srcdir@
  65409. pkgdatadir = $(datadir)/@PACKAGE@
  65410. -pkglibdir = $(libdir)/@PACKAGE@
  65411. pkgincludedir = $(includedir)/@PACKAGE@
  65412. +pkglibdir = $(libdir)/@PACKAGE@
  65413. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  65414. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  65415. install_sh_DATA = $(install_sh) -c -m 644
  65416. install_sh_PROGRAM = $(install_sh) -c
  65417. @@ -38,9 +40,11 @@
  65418. $(srcdir)/Makefile.in COPYING TODO
  65419. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  65420. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  65421. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  65422. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  65423. - $(top_srcdir)/m4/xiph_compiler.m4 \
  65424. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  65425. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  65426. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  65427. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  65428. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  65429. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  65430. $(top_srcdir)/m4/xiph_openssl.m4 \
  65431. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  65432. @@ -50,6 +54,7 @@
  65433. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  65434. CONFIG_HEADER = $(top_builddir)/config.h
  65435. CONFIG_CLEAN_FILES =
  65436. +CONFIG_CLEAN_VPATH_FILES =
  65437. LTLIBRARIES = $(noinst_LTLIBRARIES)
  65438. libicenet_la_LIBADD =
  65439. am_libicenet_la_OBJECTS = libicenet_la-sock.lo \
  65440. @@ -58,9 +63,10 @@
  65441. libicenet_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  65442. $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libicenet_la_CFLAGS) \
  65443. $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
  65444. -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
  65445. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  65446. depcomp = $(SHELL) $(top_srcdir)/depcomp
  65447. am__depfiles_maybe = depfiles
  65448. +am__mv = mv -f
  65449. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  65450. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  65451. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  65452. @@ -91,22 +97,17 @@
  65453. CURL_CFLAGS = @CURL_CFLAGS@
  65454. CURL_CONFIG = @CURL_CONFIG@
  65455. CURL_LIBS = @CURL_LIBS@
  65456. -CXX = @CXX@
  65457. -CXXCPP = @CXXCPP@
  65458. -CXXDEPMODE = @CXXDEPMODE@
  65459. -CXXFLAGS = @CXXFLAGS@
  65460. CYGPATH_W = @CYGPATH_W@
  65461. DEBUG = @DEBUG@
  65462. DEFS = @DEFS@
  65463. DEPDIR = @DEPDIR@
  65464. -ECHO = @ECHO@
  65465. +DSYMUTIL = @DSYMUTIL@
  65466. +DUMPBIN = @DUMPBIN@
  65467. ECHO_C = @ECHO_C@
  65468. ECHO_N = @ECHO_N@
  65469. ECHO_T = @ECHO_T@
  65470. EGREP = @EGREP@
  65471. EXEEXT = @EXEEXT@
  65472. -F77 = @F77@
  65473. -FFLAGS = @FFLAGS@
  65474. FGREP = @FGREP@
  65475. GREP = @GREP@
  65476. HAVE_KATE = @HAVE_KATE@
  65477. @@ -117,26 +118,34 @@
  65478. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  65479. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  65480. KATE_LIBS = @KATE_LIBS@
  65481. +LD = @LD@
  65482. LDFLAGS = @LDFLAGS@
  65483. LIBOBJS = @LIBOBJS@
  65484. LIBS = @LIBS@
  65485. LIBTOOL = @LIBTOOL@
  65486. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  65487. +LIPO = @LIPO@
  65488. LN_S = @LN_S@
  65489. LTLIBOBJS = @LTLIBOBJS@
  65490. MAINT = @MAINT@
  65491. MAKEINFO = @MAKEINFO@
  65492. MKDIR_P = @MKDIR_P@
  65493. +NM = @NM@
  65494. +NMEDIT = @NMEDIT@
  65495. +OBJDUMP = @OBJDUMP@
  65496. OBJEXT = @OBJEXT@
  65497. OGG_CFLAGS = @OGG_CFLAGS@
  65498. OGG_LDFLAGS = @OGG_LDFLAGS@
  65499. OGG_LIBS = @OGG_LIBS@
  65500. OGG_PREFIX = @OGG_PREFIX@
  65501. +OTOOL = @OTOOL@
  65502. +OTOOL64 = @OTOOL64@
  65503. PACKAGE = @PACKAGE@
  65504. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  65505. PACKAGE_NAME = @PACKAGE_NAME@
  65506. PACKAGE_STRING = @PACKAGE_STRING@
  65507. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  65508. +PACKAGE_URL = @PACKAGE_URL@
  65509. PACKAGE_VERSION = @PACKAGE_VERSION@
  65510. PATH_SEPARATOR = @PATH_SEPARATOR@
  65511. PKGCONFIG = @PKGCONFIG@
  65512. @@ -175,8 +184,7 @@
  65513. abs_top_builddir = @abs_top_builddir@
  65514. abs_top_srcdir = @abs_top_srcdir@
  65515. ac_ct_CC = @ac_ct_CC@
  65516. -ac_ct_CXX = @ac_ct_CXX@
  65517. -ac_ct_F77 = @ac_ct_F77@
  65518. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  65519. acx_pthread_config = @acx_pthread_config@
  65520. am__include = @am__include@
  65521. am__leading_dot = @am__leading_dot@
  65522. @@ -208,6 +216,7 @@
  65523. libexecdir = @libexecdir@
  65524. localedir = @localedir@
  65525. localstatedir = @localstatedir@
  65526. +lt_ECHO = @lt_ECHO@
  65527. mandir = @mandir@
  65528. mkdir_p = @mkdir_p@
  65529. oldincludedir = @oldincludedir@
  65530. @@ -220,6 +229,7 @@
  65531. srcdir = @srcdir@
  65532. sysconfdir = @sysconfdir@
  65533. target_alias = @target_alias@
  65534. +top_build_prefix = @top_build_prefix@
  65535. top_builddir = @top_builddir@
  65536. top_srcdir = @top_srcdir@
  65537. AUTOMAKE_OPTIONS = foreign
  65538. @@ -237,14 +247,14 @@
  65539. @for dep in $?; do \
  65540. case '$(am__configure_deps)' in \
  65541. *$$dep*) \
  65542. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  65543. - && exit 0; \
  65544. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  65545. + && { if test -f $@; then exit 0; else break; fi; }; \
  65546. exit 1;; \
  65547. esac; \
  65548. done; \
  65549. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/net/Makefile'; \
  65550. - cd $(top_srcdir) && \
  65551. - $(AUTOMAKE) --foreign src/net/Makefile
  65552. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/net/Makefile'; \
  65553. + $(am__cd) $(top_srcdir) && \
  65554. + $(AUTOMAKE) --foreign src/net/Makefile
  65555. .PRECIOUS: Makefile
  65556. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  65557. @case '$?' in \
  65558. @@ -262,6 +272,7 @@
  65559. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  65560. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  65561. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  65562. +$(am__aclocal_m4_deps):
  65563. clean-noinstLTLIBRARIES:
  65564. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  65565. @@ -285,38 +296,38 @@
  65566. .c.o:
  65567. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  65568. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  65569. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  65570. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  65571. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  65572. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  65573. .c.obj:
  65574. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  65575. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  65576. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  65577. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  65578. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  65579. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  65580. .c.lo:
  65581. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  65582. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  65583. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  65584. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  65585. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  65586. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  65587. libicenet_la-sock.lo: sock.c
  65588. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicenet_la_CFLAGS) $(CFLAGS) -MT libicenet_la-sock.lo -MD -MP -MF $(DEPDIR)/libicenet_la-sock.Tpo -c -o libicenet_la-sock.lo `test -f 'sock.c' || echo '$(srcdir)/'`sock.c
  65589. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libicenet_la-sock.Tpo $(DEPDIR)/libicenet_la-sock.Plo
  65590. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicenet_la_CFLAGS) $(CFLAGS) -MT libicenet_la-sock.lo -MD -MP -MF $(DEPDIR)/libicenet_la-sock.Tpo -c -o libicenet_la-sock.lo `test -f 'sock.c' || echo '$(srcdir)/'`sock.c
  65591. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libicenet_la-sock.Tpo $(DEPDIR)/libicenet_la-sock.Plo
  65592. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sock.c' object='libicenet_la-sock.lo' libtool=yes @AMDEPBACKSLASH@
  65593. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  65594. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicenet_la_CFLAGS) $(CFLAGS) -c -o libicenet_la-sock.lo `test -f 'sock.c' || echo '$(srcdir)/'`sock.c
  65595. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicenet_la_CFLAGS) $(CFLAGS) -c -o libicenet_la-sock.lo `test -f 'sock.c' || echo '$(srcdir)/'`sock.c
  65596. libicenet_la-resolver.lo: resolver.c
  65597. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicenet_la_CFLAGS) $(CFLAGS) -MT libicenet_la-resolver.lo -MD -MP -MF $(DEPDIR)/libicenet_la-resolver.Tpo -c -o libicenet_la-resolver.lo `test -f 'resolver.c' || echo '$(srcdir)/'`resolver.c
  65598. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libicenet_la-resolver.Tpo $(DEPDIR)/libicenet_la-resolver.Plo
  65599. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicenet_la_CFLAGS) $(CFLAGS) -MT libicenet_la-resolver.lo -MD -MP -MF $(DEPDIR)/libicenet_la-resolver.Tpo -c -o libicenet_la-resolver.lo `test -f 'resolver.c' || echo '$(srcdir)/'`resolver.c
  65600. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libicenet_la-resolver.Tpo $(DEPDIR)/libicenet_la-resolver.Plo
  65601. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='resolver.c' object='libicenet_la-resolver.lo' libtool=yes @AMDEPBACKSLASH@
  65602. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  65603. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicenet_la_CFLAGS) $(CFLAGS) -c -o libicenet_la-resolver.lo `test -f 'resolver.c' || echo '$(srcdir)/'`resolver.c
  65604. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicenet_la_CFLAGS) $(CFLAGS) -c -o libicenet_la-resolver.lo `test -f 'resolver.c' || echo '$(srcdir)/'`resolver.c
  65605. mostlyclean-libtool:
  65606. -rm -f *.lo
  65607. @@ -329,45 +340,49 @@
  65608. unique=`for i in $$list; do \
  65609. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  65610. done | \
  65611. - $(AWK) ' { files[$$0] = 1; } \
  65612. - END { for (i in files) print i; }'`; \
  65613. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  65614. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  65615. mkid -fID $$unique
  65616. tags: TAGS
  65617. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  65618. $(TAGS_FILES) $(LISP)
  65619. - tags=; \
  65620. + set x; \
  65621. here=`pwd`; \
  65622. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  65623. unique=`for i in $$list; do \
  65624. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  65625. done | \
  65626. - $(AWK) ' { files[$$0] = 1; } \
  65627. - END { for (i in files) print i; }'`; \
  65628. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  65629. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  65630. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  65631. + shift; \
  65632. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  65633. test -n "$$unique" || unique=$$empty_fix; \
  65634. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  65635. - $$tags $$unique; \
  65636. + if test $$# -gt 0; then \
  65637. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  65638. + "$$@" $$unique; \
  65639. + else \
  65640. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  65641. + $$unique; \
  65642. + fi; \
  65643. fi
  65644. ctags: CTAGS
  65645. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  65646. $(TAGS_FILES) $(LISP)
  65647. - tags=; \
  65648. - here=`pwd`; \
  65649. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  65650. unique=`for i in $$list; do \
  65651. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  65652. done | \
  65653. - $(AWK) ' { files[$$0] = 1; } \
  65654. - END { for (i in files) print i; }'`; \
  65655. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  65656. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  65657. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  65658. + test -z "$(CTAGS_ARGS)$$unique" \
  65659. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  65660. - $$tags $$unique
  65661. + $$unique
  65662. GTAGS:
  65663. here=`$(am__cd) $(top_builddir) && pwd` \
  65664. - && cd $(top_srcdir) \
  65665. - && gtags -i $(GTAGS_ARGS) $$here
  65666. + && $(am__cd) $(top_srcdir) \
  65667. + && gtags -i $(GTAGS_ARGS) "$$here"
  65668. distclean-tags:
  65669. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  65670. @@ -388,13 +403,17 @@
  65671. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  65672. if test -d $$d/$$file; then \
  65673. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  65674. + if test -d "$(distdir)/$$file"; then \
  65675. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  65676. + fi; \
  65677. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  65678. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  65679. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  65680. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  65681. fi; \
  65682. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  65683. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  65684. else \
  65685. - test -f $(distdir)/$$file \
  65686. - || cp -p $$d/$$file $(distdir)/$$file \
  65687. + test -f "$(distdir)/$$file" \
  65688. + || cp -p $$d/$$file "$(distdir)/$$file" \
  65689. || exit 1; \
  65690. fi; \
  65691. done
  65692. @@ -422,6 +441,7 @@
  65693. distclean-generic:
  65694. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  65695. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  65696. maintainer-clean-generic:
  65697. @echo "This command is intended for maintainers to use"
  65698. @@ -443,6 +463,8 @@
  65699. html: html-am
  65700. +html-am:
  65701. +
  65702. info: info-am
  65703. info-am:
  65704. @@ -451,18 +473,28 @@
  65705. install-dvi: install-dvi-am
  65706. +install-dvi-am:
  65707. +
  65708. install-exec-am:
  65709. install-html: install-html-am
  65710. +install-html-am:
  65711. +
  65712. install-info: install-info-am
  65713. +install-info-am:
  65714. +
  65715. install-man:
  65716. install-pdf: install-pdf-am
  65717. +install-pdf-am:
  65718. +
  65719. install-ps: install-ps-am
  65720. +install-ps-am:
  65721. +
  65722. installcheck-am:
  65723. maintainer-clean: maintainer-clean-am
  65724. @@ -506,6 +538,7 @@
  65725. profile:
  65726. $(MAKE) all CFLAGS="@PROFILE@
  65727. +
  65728. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  65729. # Otherwise a system limit (for SysV at least) may be exceeded.
  65730. .NOEXPORT:
  65731. diff -Nur icecast-2.3.2.orig/src/thread/Makefile.in icecast-2.3.2/src/thread/Makefile.in
  65732. --- icecast-2.3.2.orig/src/thread/Makefile.in 2008-05-30 01:58:58.000000000 +0200
  65733. +++ icecast-2.3.2/src/thread/Makefile.in 2010-02-18 21:27:42.960855785 +0100
  65734. @@ -1,8 +1,9 @@
  65735. -# Makefile.in generated by automake 1.10 from Makefile.am.
  65736. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  65737. # @configure_input@
  65738. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  65739. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  65740. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  65741. +# Inc.
  65742. # This Makefile.in is free software; the Free Software Foundation
  65743. # gives unlimited permission to copy and/or distribute it,
  65744. # with or without modifications, as long as this notice is preserved.
  65745. @@ -17,8 +18,9 @@
  65746. VPATH = @srcdir@
  65747. pkgdatadir = $(datadir)/@PACKAGE@
  65748. -pkglibdir = $(libdir)/@PACKAGE@
  65749. pkgincludedir = $(includedir)/@PACKAGE@
  65750. +pkglibdir = $(libdir)/@PACKAGE@
  65751. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  65752. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  65753. install_sh_DATA = $(install_sh) -c -m 644
  65754. install_sh_PROGRAM = $(install_sh) -c
  65755. @@ -38,9 +40,11 @@
  65756. $(srcdir)/Makefile.in COPYING TODO
  65757. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  65758. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  65759. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  65760. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  65761. - $(top_srcdir)/m4/xiph_compiler.m4 \
  65762. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  65763. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  65764. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  65765. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  65766. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  65767. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  65768. $(top_srcdir)/m4/xiph_openssl.m4 \
  65769. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  65770. @@ -50,6 +54,7 @@
  65771. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  65772. CONFIG_HEADER = $(top_builddir)/config.h
  65773. CONFIG_CLEAN_FILES =
  65774. +CONFIG_CLEAN_VPATH_FILES =
  65775. LTLIBRARIES = $(noinst_LTLIBRARIES)
  65776. libicethread_la_LIBADD =
  65777. am_libicethread_la_OBJECTS = libicethread_la-thread.lo
  65778. @@ -57,9 +62,10 @@
  65779. libicethread_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  65780. $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libicethread_la_CFLAGS) \
  65781. $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
  65782. -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
  65783. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  65784. depcomp = $(SHELL) $(top_srcdir)/depcomp
  65785. am__depfiles_maybe = depfiles
  65786. +am__mv = mv -f
  65787. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  65788. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  65789. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  65790. @@ -90,22 +96,17 @@
  65791. CURL_CFLAGS = @CURL_CFLAGS@
  65792. CURL_CONFIG = @CURL_CONFIG@
  65793. CURL_LIBS = @CURL_LIBS@
  65794. -CXX = @CXX@
  65795. -CXXCPP = @CXXCPP@
  65796. -CXXDEPMODE = @CXXDEPMODE@
  65797. -CXXFLAGS = @CXXFLAGS@
  65798. CYGPATH_W = @CYGPATH_W@
  65799. DEBUG = @DEBUG@
  65800. DEFS = @DEFS@
  65801. DEPDIR = @DEPDIR@
  65802. -ECHO = @ECHO@
  65803. +DSYMUTIL = @DSYMUTIL@
  65804. +DUMPBIN = @DUMPBIN@
  65805. ECHO_C = @ECHO_C@
  65806. ECHO_N = @ECHO_N@
  65807. ECHO_T = @ECHO_T@
  65808. EGREP = @EGREP@
  65809. EXEEXT = @EXEEXT@
  65810. -F77 = @F77@
  65811. -FFLAGS = @FFLAGS@
  65812. FGREP = @FGREP@
  65813. GREP = @GREP@
  65814. HAVE_KATE = @HAVE_KATE@
  65815. @@ -116,26 +117,34 @@
  65816. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  65817. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  65818. KATE_LIBS = @KATE_LIBS@
  65819. +LD = @LD@
  65820. LDFLAGS = @LDFLAGS@
  65821. LIBOBJS = @LIBOBJS@
  65822. LIBS = @LIBS@
  65823. LIBTOOL = @LIBTOOL@
  65824. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  65825. +LIPO = @LIPO@
  65826. LN_S = @LN_S@
  65827. LTLIBOBJS = @LTLIBOBJS@
  65828. MAINT = @MAINT@
  65829. MAKEINFO = @MAKEINFO@
  65830. MKDIR_P = @MKDIR_P@
  65831. +NM = @NM@
  65832. +NMEDIT = @NMEDIT@
  65833. +OBJDUMP = @OBJDUMP@
  65834. OBJEXT = @OBJEXT@
  65835. OGG_CFLAGS = @OGG_CFLAGS@
  65836. OGG_LDFLAGS = @OGG_LDFLAGS@
  65837. OGG_LIBS = @OGG_LIBS@
  65838. OGG_PREFIX = @OGG_PREFIX@
  65839. +OTOOL = @OTOOL@
  65840. +OTOOL64 = @OTOOL64@
  65841. PACKAGE = @PACKAGE@
  65842. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  65843. PACKAGE_NAME = @PACKAGE_NAME@
  65844. PACKAGE_STRING = @PACKAGE_STRING@
  65845. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  65846. +PACKAGE_URL = @PACKAGE_URL@
  65847. PACKAGE_VERSION = @PACKAGE_VERSION@
  65848. PATH_SEPARATOR = @PATH_SEPARATOR@
  65849. PKGCONFIG = @PKGCONFIG@
  65850. @@ -174,8 +183,7 @@
  65851. abs_top_builddir = @abs_top_builddir@
  65852. abs_top_srcdir = @abs_top_srcdir@
  65853. ac_ct_CC = @ac_ct_CC@
  65854. -ac_ct_CXX = @ac_ct_CXX@
  65855. -ac_ct_F77 = @ac_ct_F77@
  65856. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  65857. acx_pthread_config = @acx_pthread_config@
  65858. am__include = @am__include@
  65859. am__leading_dot = @am__leading_dot@
  65860. @@ -207,6 +215,7 @@
  65861. libexecdir = @libexecdir@
  65862. localedir = @localedir@
  65863. localstatedir = @localstatedir@
  65864. +lt_ECHO = @lt_ECHO@
  65865. mandir = @mandir@
  65866. mkdir_p = @mkdir_p@
  65867. oldincludedir = @oldincludedir@
  65868. @@ -219,6 +228,7 @@
  65869. srcdir = @srcdir@
  65870. sysconfdir = @sysconfdir@
  65871. target_alias = @target_alias@
  65872. +top_build_prefix = @top_build_prefix@
  65873. top_builddir = @top_builddir@
  65874. top_srcdir = @top_srcdir@
  65875. AUTOMAKE_OPTIONS = foreign
  65876. @@ -236,14 +246,14 @@
  65877. @for dep in $?; do \
  65878. case '$(am__configure_deps)' in \
  65879. *$$dep*) \
  65880. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  65881. - && exit 0; \
  65882. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  65883. + && { if test -f $@; then exit 0; else break; fi; }; \
  65884. exit 1;; \
  65885. esac; \
  65886. done; \
  65887. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/thread/Makefile'; \
  65888. - cd $(top_srcdir) && \
  65889. - $(AUTOMAKE) --foreign src/thread/Makefile
  65890. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/thread/Makefile'; \
  65891. + $(am__cd) $(top_srcdir) && \
  65892. + $(AUTOMAKE) --foreign src/thread/Makefile
  65893. .PRECIOUS: Makefile
  65894. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  65895. @case '$?' in \
  65896. @@ -261,6 +271,7 @@
  65897. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  65898. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  65899. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  65900. +$(am__aclocal_m4_deps):
  65901. clean-noinstLTLIBRARIES:
  65902. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  65903. @@ -283,31 +294,31 @@
  65904. .c.o:
  65905. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  65906. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  65907. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  65908. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  65909. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  65910. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  65911. .c.obj:
  65912. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  65913. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  65914. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  65915. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  65916. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  65917. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  65918. .c.lo:
  65919. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  65920. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  65921. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  65922. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  65923. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  65924. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  65925. libicethread_la-thread.lo: thread.c
  65926. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicethread_la_CFLAGS) $(CFLAGS) -MT libicethread_la-thread.lo -MD -MP -MF $(DEPDIR)/libicethread_la-thread.Tpo -c -o libicethread_la-thread.lo `test -f 'thread.c' || echo '$(srcdir)/'`thread.c
  65927. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libicethread_la-thread.Tpo $(DEPDIR)/libicethread_la-thread.Plo
  65928. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicethread_la_CFLAGS) $(CFLAGS) -MT libicethread_la-thread.lo -MD -MP -MF $(DEPDIR)/libicethread_la-thread.Tpo -c -o libicethread_la-thread.lo `test -f 'thread.c' || echo '$(srcdir)/'`thread.c
  65929. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libicethread_la-thread.Tpo $(DEPDIR)/libicethread_la-thread.Plo
  65930. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='thread.c' object='libicethread_la-thread.lo' libtool=yes @AMDEPBACKSLASH@
  65931. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  65932. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicethread_la_CFLAGS) $(CFLAGS) -c -o libicethread_la-thread.lo `test -f 'thread.c' || echo '$(srcdir)/'`thread.c
  65933. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicethread_la_CFLAGS) $(CFLAGS) -c -o libicethread_la-thread.lo `test -f 'thread.c' || echo '$(srcdir)/'`thread.c
  65934. mostlyclean-libtool:
  65935. -rm -f *.lo
  65936. @@ -320,45 +331,49 @@
  65937. unique=`for i in $$list; do \
  65938. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  65939. done | \
  65940. - $(AWK) ' { files[$$0] = 1; } \
  65941. - END { for (i in files) print i; }'`; \
  65942. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  65943. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  65944. mkid -fID $$unique
  65945. tags: TAGS
  65946. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  65947. $(TAGS_FILES) $(LISP)
  65948. - tags=; \
  65949. + set x; \
  65950. here=`pwd`; \
  65951. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  65952. unique=`for i in $$list; do \
  65953. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  65954. done | \
  65955. - $(AWK) ' { files[$$0] = 1; } \
  65956. - END { for (i in files) print i; }'`; \
  65957. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  65958. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  65959. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  65960. + shift; \
  65961. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  65962. test -n "$$unique" || unique=$$empty_fix; \
  65963. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  65964. - $$tags $$unique; \
  65965. + if test $$# -gt 0; then \
  65966. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  65967. + "$$@" $$unique; \
  65968. + else \
  65969. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  65970. + $$unique; \
  65971. + fi; \
  65972. fi
  65973. ctags: CTAGS
  65974. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  65975. $(TAGS_FILES) $(LISP)
  65976. - tags=; \
  65977. - here=`pwd`; \
  65978. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  65979. unique=`for i in $$list; do \
  65980. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  65981. done | \
  65982. - $(AWK) ' { files[$$0] = 1; } \
  65983. - END { for (i in files) print i; }'`; \
  65984. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  65985. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  65986. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  65987. + test -z "$(CTAGS_ARGS)$$unique" \
  65988. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  65989. - $$tags $$unique
  65990. + $$unique
  65991. GTAGS:
  65992. here=`$(am__cd) $(top_builddir) && pwd` \
  65993. - && cd $(top_srcdir) \
  65994. - && gtags -i $(GTAGS_ARGS) $$here
  65995. + && $(am__cd) $(top_srcdir) \
  65996. + && gtags -i $(GTAGS_ARGS) "$$here"
  65997. distclean-tags:
  65998. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  65999. @@ -379,13 +394,17 @@
  66000. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  66001. if test -d $$d/$$file; then \
  66002. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  66003. + if test -d "$(distdir)/$$file"; then \
  66004. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  66005. + fi; \
  66006. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  66007. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  66008. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  66009. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  66010. fi; \
  66011. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  66012. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  66013. else \
  66014. - test -f $(distdir)/$$file \
  66015. - || cp -p $$d/$$file $(distdir)/$$file \
  66016. + test -f "$(distdir)/$$file" \
  66017. + || cp -p $$d/$$file "$(distdir)/$$file" \
  66018. || exit 1; \
  66019. fi; \
  66020. done
  66021. @@ -413,6 +432,7 @@
  66022. distclean-generic:
  66023. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  66024. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  66025. maintainer-clean-generic:
  66026. @echo "This command is intended for maintainers to use"
  66027. @@ -434,6 +454,8 @@
  66028. html: html-am
  66029. +html-am:
  66030. +
  66031. info: info-am
  66032. info-am:
  66033. @@ -442,18 +464,28 @@
  66034. install-dvi: install-dvi-am
  66035. +install-dvi-am:
  66036. +
  66037. install-exec-am:
  66038. install-html: install-html-am
  66039. +install-html-am:
  66040. +
  66041. install-info: install-info-am
  66042. +install-info-am:
  66043. +
  66044. install-man:
  66045. install-pdf: install-pdf-am
  66046. +install-pdf-am:
  66047. +
  66048. install-ps: install-ps-am
  66049. +install-ps-am:
  66050. +
  66051. installcheck-am:
  66052. maintainer-clean: maintainer-clean-am
  66053. @@ -497,6 +529,7 @@
  66054. profile:
  66055. $(MAKE) all CFLAGS="@PROFILE@"
  66056. +
  66057. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  66058. # Otherwise a system limit (for SysV at least) may be exceeded.
  66059. .NOEXPORT:
  66060. diff -Nur icecast-2.3.2.orig/src/timing/Makefile.in icecast-2.3.2/src/timing/Makefile.in
  66061. --- icecast-2.3.2.orig/src/timing/Makefile.in 2008-05-30 01:58:58.000000000 +0200
  66062. +++ icecast-2.3.2/src/timing/Makefile.in 2010-02-18 21:27:43.088853096 +0100
  66063. @@ -1,8 +1,9 @@
  66064. -# Makefile.in generated by automake 1.10 from Makefile.am.
  66065. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  66066. # @configure_input@
  66067. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  66068. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  66069. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  66070. +# Inc.
  66071. # This Makefile.in is free software; the Free Software Foundation
  66072. # gives unlimited permission to copy and/or distribute it,
  66073. # with or without modifications, as long as this notice is preserved.
  66074. @@ -17,8 +18,9 @@
  66075. VPATH = @srcdir@
  66076. pkgdatadir = $(datadir)/@PACKAGE@
  66077. -pkglibdir = $(libdir)/@PACKAGE@
  66078. pkgincludedir = $(includedir)/@PACKAGE@
  66079. +pkglibdir = $(libdir)/@PACKAGE@
  66080. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  66081. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  66082. install_sh_DATA = $(install_sh) -c -m 644
  66083. install_sh_PROGRAM = $(install_sh) -c
  66084. @@ -38,9 +40,11 @@
  66085. $(srcdir)/Makefile.in COPYING TODO
  66086. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  66087. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  66088. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  66089. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  66090. - $(top_srcdir)/m4/xiph_compiler.m4 \
  66091. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  66092. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  66093. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  66094. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  66095. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  66096. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  66097. $(top_srcdir)/m4/xiph_openssl.m4 \
  66098. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  66099. @@ -50,6 +54,7 @@
  66100. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  66101. CONFIG_HEADER = $(top_builddir)/config.h
  66102. CONFIG_CLEAN_FILES =
  66103. +CONFIG_CLEAN_VPATH_FILES =
  66104. LTLIBRARIES = $(noinst_LTLIBRARIES)
  66105. libicetiming_la_LIBADD =
  66106. am_libicetiming_la_OBJECTS = libicetiming_la-timing.lo
  66107. @@ -57,9 +62,10 @@
  66108. libicetiming_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  66109. $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libicetiming_la_CFLAGS) \
  66110. $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
  66111. -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
  66112. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  66113. depcomp = $(SHELL) $(top_srcdir)/depcomp
  66114. am__depfiles_maybe = depfiles
  66115. +am__mv = mv -f
  66116. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  66117. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  66118. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  66119. @@ -90,22 +96,17 @@
  66120. CURL_CFLAGS = @CURL_CFLAGS@
  66121. CURL_CONFIG = @CURL_CONFIG@
  66122. CURL_LIBS = @CURL_LIBS@
  66123. -CXX = @CXX@
  66124. -CXXCPP = @CXXCPP@
  66125. -CXXDEPMODE = @CXXDEPMODE@
  66126. -CXXFLAGS = @CXXFLAGS@
  66127. CYGPATH_W = @CYGPATH_W@
  66128. DEBUG = @DEBUG@
  66129. DEFS = @DEFS@
  66130. DEPDIR = @DEPDIR@
  66131. -ECHO = @ECHO@
  66132. +DSYMUTIL = @DSYMUTIL@
  66133. +DUMPBIN = @DUMPBIN@
  66134. ECHO_C = @ECHO_C@
  66135. ECHO_N = @ECHO_N@
  66136. ECHO_T = @ECHO_T@
  66137. EGREP = @EGREP@
  66138. EXEEXT = @EXEEXT@
  66139. -F77 = @F77@
  66140. -FFLAGS = @FFLAGS@
  66141. FGREP = @FGREP@
  66142. GREP = @GREP@
  66143. HAVE_KATE = @HAVE_KATE@
  66144. @@ -116,26 +117,34 @@
  66145. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  66146. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  66147. KATE_LIBS = @KATE_LIBS@
  66148. +LD = @LD@
  66149. LDFLAGS = @LDFLAGS@
  66150. LIBOBJS = @LIBOBJS@
  66151. LIBS = @LIBS@
  66152. LIBTOOL = @LIBTOOL@
  66153. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  66154. +LIPO = @LIPO@
  66155. LN_S = @LN_S@
  66156. LTLIBOBJS = @LTLIBOBJS@
  66157. MAINT = @MAINT@
  66158. MAKEINFO = @MAKEINFO@
  66159. MKDIR_P = @MKDIR_P@
  66160. +NM = @NM@
  66161. +NMEDIT = @NMEDIT@
  66162. +OBJDUMP = @OBJDUMP@
  66163. OBJEXT = @OBJEXT@
  66164. OGG_CFLAGS = @OGG_CFLAGS@
  66165. OGG_LDFLAGS = @OGG_LDFLAGS@
  66166. OGG_LIBS = @OGG_LIBS@
  66167. OGG_PREFIX = @OGG_PREFIX@
  66168. +OTOOL = @OTOOL@
  66169. +OTOOL64 = @OTOOL64@
  66170. PACKAGE = @PACKAGE@
  66171. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  66172. PACKAGE_NAME = @PACKAGE_NAME@
  66173. PACKAGE_STRING = @PACKAGE_STRING@
  66174. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  66175. +PACKAGE_URL = @PACKAGE_URL@
  66176. PACKAGE_VERSION = @PACKAGE_VERSION@
  66177. PATH_SEPARATOR = @PATH_SEPARATOR@
  66178. PKGCONFIG = @PKGCONFIG@
  66179. @@ -174,8 +183,7 @@
  66180. abs_top_builddir = @abs_top_builddir@
  66181. abs_top_srcdir = @abs_top_srcdir@
  66182. ac_ct_CC = @ac_ct_CC@
  66183. -ac_ct_CXX = @ac_ct_CXX@
  66184. -ac_ct_F77 = @ac_ct_F77@
  66185. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  66186. acx_pthread_config = @acx_pthread_config@
  66187. am__include = @am__include@
  66188. am__leading_dot = @am__leading_dot@
  66189. @@ -207,6 +215,7 @@
  66190. libexecdir = @libexecdir@
  66191. localedir = @localedir@
  66192. localstatedir = @localstatedir@
  66193. +lt_ECHO = @lt_ECHO@
  66194. mandir = @mandir@
  66195. mkdir_p = @mkdir_p@
  66196. oldincludedir = @oldincludedir@
  66197. @@ -219,6 +228,7 @@
  66198. srcdir = @srcdir@
  66199. sysconfdir = @sysconfdir@
  66200. target_alias = @target_alias@
  66201. +top_build_prefix = @top_build_prefix@
  66202. top_builddir = @top_builddir@
  66203. top_srcdir = @top_srcdir@
  66204. AUTOMAKE_OPTIONS = foreign
  66205. @@ -235,14 +245,14 @@
  66206. @for dep in $?; do \
  66207. case '$(am__configure_deps)' in \
  66208. *$$dep*) \
  66209. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  66210. - && exit 0; \
  66211. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  66212. + && { if test -f $@; then exit 0; else break; fi; }; \
  66213. exit 1;; \
  66214. esac; \
  66215. done; \
  66216. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/timing/Makefile'; \
  66217. - cd $(top_srcdir) && \
  66218. - $(AUTOMAKE) --foreign src/timing/Makefile
  66219. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/timing/Makefile'; \
  66220. + $(am__cd) $(top_srcdir) && \
  66221. + $(AUTOMAKE) --foreign src/timing/Makefile
  66222. .PRECIOUS: Makefile
  66223. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  66224. @case '$?' in \
  66225. @@ -260,6 +270,7 @@
  66226. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  66227. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  66228. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  66229. +$(am__aclocal_m4_deps):
  66230. clean-noinstLTLIBRARIES:
  66231. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  66232. @@ -282,31 +293,31 @@
  66233. .c.o:
  66234. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  66235. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  66236. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  66237. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  66238. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  66239. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  66240. .c.obj:
  66241. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  66242. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  66243. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  66244. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  66245. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  66246. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  66247. .c.lo:
  66248. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  66249. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  66250. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  66251. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  66252. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  66253. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  66254. libicetiming_la-timing.lo: timing.c
  66255. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicetiming_la_CFLAGS) $(CFLAGS) -MT libicetiming_la-timing.lo -MD -MP -MF $(DEPDIR)/libicetiming_la-timing.Tpo -c -o libicetiming_la-timing.lo `test -f 'timing.c' || echo '$(srcdir)/'`timing.c
  66256. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libicetiming_la-timing.Tpo $(DEPDIR)/libicetiming_la-timing.Plo
  66257. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicetiming_la_CFLAGS) $(CFLAGS) -MT libicetiming_la-timing.lo -MD -MP -MF $(DEPDIR)/libicetiming_la-timing.Tpo -c -o libicetiming_la-timing.lo `test -f 'timing.c' || echo '$(srcdir)/'`timing.c
  66258. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libicetiming_la-timing.Tpo $(DEPDIR)/libicetiming_la-timing.Plo
  66259. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='timing.c' object='libicetiming_la-timing.lo' libtool=yes @AMDEPBACKSLASH@
  66260. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  66261. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicetiming_la_CFLAGS) $(CFLAGS) -c -o libicetiming_la-timing.lo `test -f 'timing.c' || echo '$(srcdir)/'`timing.c
  66262. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libicetiming_la_CFLAGS) $(CFLAGS) -c -o libicetiming_la-timing.lo `test -f 'timing.c' || echo '$(srcdir)/'`timing.c
  66263. mostlyclean-libtool:
  66264. -rm -f *.lo
  66265. @@ -319,45 +330,49 @@
  66266. unique=`for i in $$list; do \
  66267. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  66268. done | \
  66269. - $(AWK) ' { files[$$0] = 1; } \
  66270. - END { for (i in files) print i; }'`; \
  66271. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  66272. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  66273. mkid -fID $$unique
  66274. tags: TAGS
  66275. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  66276. $(TAGS_FILES) $(LISP)
  66277. - tags=; \
  66278. + set x; \
  66279. here=`pwd`; \
  66280. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  66281. unique=`for i in $$list; do \
  66282. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  66283. done | \
  66284. - $(AWK) ' { files[$$0] = 1; } \
  66285. - END { for (i in files) print i; }'`; \
  66286. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  66287. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  66288. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  66289. + shift; \
  66290. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  66291. test -n "$$unique" || unique=$$empty_fix; \
  66292. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  66293. - $$tags $$unique; \
  66294. + if test $$# -gt 0; then \
  66295. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  66296. + "$$@" $$unique; \
  66297. + else \
  66298. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  66299. + $$unique; \
  66300. + fi; \
  66301. fi
  66302. ctags: CTAGS
  66303. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  66304. $(TAGS_FILES) $(LISP)
  66305. - tags=; \
  66306. - here=`pwd`; \
  66307. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  66308. unique=`for i in $$list; do \
  66309. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  66310. done | \
  66311. - $(AWK) ' { files[$$0] = 1; } \
  66312. - END { for (i in files) print i; }'`; \
  66313. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  66314. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  66315. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  66316. + test -z "$(CTAGS_ARGS)$$unique" \
  66317. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  66318. - $$tags $$unique
  66319. + $$unique
  66320. GTAGS:
  66321. here=`$(am__cd) $(top_builddir) && pwd` \
  66322. - && cd $(top_srcdir) \
  66323. - && gtags -i $(GTAGS_ARGS) $$here
  66324. + && $(am__cd) $(top_srcdir) \
  66325. + && gtags -i $(GTAGS_ARGS) "$$here"
  66326. distclean-tags:
  66327. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  66328. @@ -378,13 +393,17 @@
  66329. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  66330. if test -d $$d/$$file; then \
  66331. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  66332. + if test -d "$(distdir)/$$file"; then \
  66333. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  66334. + fi; \
  66335. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  66336. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  66337. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  66338. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  66339. fi; \
  66340. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  66341. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  66342. else \
  66343. - test -f $(distdir)/$$file \
  66344. - || cp -p $$d/$$file $(distdir)/$$file \
  66345. + test -f "$(distdir)/$$file" \
  66346. + || cp -p $$d/$$file "$(distdir)/$$file" \
  66347. || exit 1; \
  66348. fi; \
  66349. done
  66350. @@ -412,6 +431,7 @@
  66351. distclean-generic:
  66352. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  66353. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  66354. maintainer-clean-generic:
  66355. @echo "This command is intended for maintainers to use"
  66356. @@ -433,6 +453,8 @@
  66357. html: html-am
  66358. +html-am:
  66359. +
  66360. info: info-am
  66361. info-am:
  66362. @@ -441,18 +463,28 @@
  66363. install-dvi: install-dvi-am
  66364. +install-dvi-am:
  66365. +
  66366. install-exec-am:
  66367. install-html: install-html-am
  66368. +install-html-am:
  66369. +
  66370. install-info: install-info-am
  66371. +install-info-am:
  66372. +
  66373. install-man:
  66374. install-pdf: install-pdf-am
  66375. +install-pdf-am:
  66376. +
  66377. install-ps: install-ps-am
  66378. +install-ps-am:
  66379. +
  66380. installcheck-am:
  66381. maintainer-clean: maintainer-clean-am
  66382. @@ -496,6 +528,7 @@
  66383. profile:
  66384. $(MAKE) all CFLAGS="@PROFILE@"
  66385. +
  66386. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  66387. # Otherwise a system limit (for SysV at least) may be exceeded.
  66388. .NOEXPORT:
  66389. diff -Nur icecast-2.3.2.orig/web/Makefile.in icecast-2.3.2/web/Makefile.in
  66390. --- icecast-2.3.2.orig/web/Makefile.in 2008-05-30 01:58:59.000000000 +0200
  66391. +++ icecast-2.3.2/web/Makefile.in 2010-02-18 21:27:43.184852192 +0100
  66392. @@ -1,8 +1,9 @@
  66393. -# Makefile.in generated by automake 1.10 from Makefile.am.
  66394. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  66395. # @configure_input@
  66396. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  66397. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  66398. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  66399. +# Inc.
  66400. # This Makefile.in is free software; the Free Software Foundation
  66401. # gives unlimited permission to copy and/or distribute it,
  66402. # with or without modifications, as long as this notice is preserved.
  66403. @@ -16,8 +17,9 @@
  66404. VPATH = @srcdir@
  66405. pkgdatadir = $(datadir)/@PACKAGE@
  66406. -pkglibdir = $(libdir)/@PACKAGE@
  66407. pkgincludedir = $(includedir)/@PACKAGE@
  66408. +pkglibdir = $(libdir)/@PACKAGE@
  66409. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  66410. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  66411. install_sh_DATA = $(install_sh) -c -m 644
  66412. install_sh_PROGRAM = $(install_sh) -c
  66413. @@ -37,9 +39,11 @@
  66414. $(srcdir)/Makefile.in
  66415. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  66416. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  66417. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  66418. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  66419. - $(top_srcdir)/m4/xiph_compiler.m4 \
  66420. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  66421. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  66422. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  66423. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  66424. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  66425. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  66426. $(top_srcdir)/m4/xiph_openssl.m4 \
  66427. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  66428. @@ -49,6 +53,7 @@
  66429. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  66430. CONFIG_HEADER = $(top_builddir)/config.h
  66431. CONFIG_CLEAN_FILES =
  66432. +CONFIG_CLEAN_VPATH_FILES =
  66433. SOURCES =
  66434. DIST_SOURCES =
  66435. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  66436. @@ -56,9 +61,23 @@
  66437. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  66438. *) f=$$p;; \
  66439. esac;
  66440. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  66441. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  66442. +am__install_max = 40
  66443. +am__nobase_strip_setup = \
  66444. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  66445. +am__nobase_strip = \
  66446. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  66447. +am__nobase_list = $(am__nobase_strip_setup); \
  66448. + for p in $$list; do echo "$$p $$p"; done | \
  66449. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  66450. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  66451. + if (++n[$$2] == $(am__install_max)) \
  66452. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  66453. + END { for (dir in files) print dir, files[dir] }'
  66454. +am__base_list = \
  66455. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  66456. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  66457. am__installdirs = "$(DESTDIR)$(webdir)"
  66458. -dist_webDATA_INSTALL = $(INSTALL_DATA)
  66459. DATA = $(dist_web_DATA)
  66460. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  66461. ACLOCAL = @ACLOCAL@
  66462. @@ -76,22 +95,17 @@
  66463. CURL_CFLAGS = @CURL_CFLAGS@
  66464. CURL_CONFIG = @CURL_CONFIG@
  66465. CURL_LIBS = @CURL_LIBS@
  66466. -CXX = @CXX@
  66467. -CXXCPP = @CXXCPP@
  66468. -CXXDEPMODE = @CXXDEPMODE@
  66469. -CXXFLAGS = @CXXFLAGS@
  66470. CYGPATH_W = @CYGPATH_W@
  66471. DEBUG = @DEBUG@
  66472. DEFS = @DEFS@
  66473. DEPDIR = @DEPDIR@
  66474. -ECHO = @ECHO@
  66475. +DSYMUTIL = @DSYMUTIL@
  66476. +DUMPBIN = @DUMPBIN@
  66477. ECHO_C = @ECHO_C@
  66478. ECHO_N = @ECHO_N@
  66479. ECHO_T = @ECHO_T@
  66480. EGREP = @EGREP@
  66481. EXEEXT = @EXEEXT@
  66482. -F77 = @F77@
  66483. -FFLAGS = @FFLAGS@
  66484. FGREP = @FGREP@
  66485. GREP = @GREP@
  66486. HAVE_KATE = @HAVE_KATE@
  66487. @@ -102,26 +116,34 @@
  66488. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  66489. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  66490. KATE_LIBS = @KATE_LIBS@
  66491. +LD = @LD@
  66492. LDFLAGS = @LDFLAGS@
  66493. LIBOBJS = @LIBOBJS@
  66494. LIBS = @LIBS@
  66495. LIBTOOL = @LIBTOOL@
  66496. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  66497. +LIPO = @LIPO@
  66498. LN_S = @LN_S@
  66499. LTLIBOBJS = @LTLIBOBJS@
  66500. MAINT = @MAINT@
  66501. MAKEINFO = @MAKEINFO@
  66502. MKDIR_P = @MKDIR_P@
  66503. +NM = @NM@
  66504. +NMEDIT = @NMEDIT@
  66505. +OBJDUMP = @OBJDUMP@
  66506. OBJEXT = @OBJEXT@
  66507. OGG_CFLAGS = @OGG_CFLAGS@
  66508. OGG_LDFLAGS = @OGG_LDFLAGS@
  66509. OGG_LIBS = @OGG_LIBS@
  66510. OGG_PREFIX = @OGG_PREFIX@
  66511. +OTOOL = @OTOOL@
  66512. +OTOOL64 = @OTOOL64@
  66513. PACKAGE = @PACKAGE@
  66514. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  66515. PACKAGE_NAME = @PACKAGE_NAME@
  66516. PACKAGE_STRING = @PACKAGE_STRING@
  66517. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  66518. +PACKAGE_URL = @PACKAGE_URL@
  66519. PACKAGE_VERSION = @PACKAGE_VERSION@
  66520. PATH_SEPARATOR = @PATH_SEPARATOR@
  66521. PKGCONFIG = @PKGCONFIG@
  66522. @@ -160,8 +182,7 @@
  66523. abs_top_builddir = @abs_top_builddir@
  66524. abs_top_srcdir = @abs_top_srcdir@
  66525. ac_ct_CC = @ac_ct_CC@
  66526. -ac_ct_CXX = @ac_ct_CXX@
  66527. -ac_ct_F77 = @ac_ct_F77@
  66528. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  66529. acx_pthread_config = @acx_pthread_config@
  66530. am__include = @am__include@
  66531. am__leading_dot = @am__leading_dot@
  66532. @@ -193,6 +214,7 @@
  66533. libexecdir = @libexecdir@
  66534. localedir = @localedir@
  66535. localstatedir = @localstatedir@
  66536. +lt_ECHO = @lt_ECHO@
  66537. mandir = @mandir@
  66538. mkdir_p = @mkdir_p@
  66539. oldincludedir = @oldincludedir@
  66540. @@ -205,6 +227,7 @@
  66541. srcdir = @srcdir@
  66542. sysconfdir = @sysconfdir@
  66543. target_alias = @target_alias@
  66544. +top_build_prefix = @top_build_prefix@
  66545. top_builddir = @top_builddir@
  66546. top_srcdir = @top_srcdir@
  66547. AUTOMAKE_OPTIONS = foreign
  66548. @@ -230,14 +253,14 @@
  66549. @for dep in $?; do \
  66550. case '$(am__configure_deps)' in \
  66551. *$$dep*) \
  66552. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  66553. - && exit 0; \
  66554. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  66555. + && { if test -f $@; then exit 0; else break; fi; }; \
  66556. exit 1;; \
  66557. esac; \
  66558. done; \
  66559. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign web/Makefile'; \
  66560. - cd $(top_srcdir) && \
  66561. - $(AUTOMAKE) --foreign web/Makefile
  66562. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign web/Makefile'; \
  66563. + $(am__cd) $(top_srcdir) && \
  66564. + $(AUTOMAKE) --foreign web/Makefile
  66565. .PRECIOUS: Makefile
  66566. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  66567. @case '$?' in \
  66568. @@ -255,6 +278,7 @@
  66569. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  66570. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  66571. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  66572. +$(am__aclocal_m4_deps):
  66573. mostlyclean-libtool:
  66574. -rm -f *.lo
  66575. @@ -264,20 +288,23 @@
  66576. install-dist_webDATA: $(dist_web_DATA)
  66577. @$(NORMAL_INSTALL)
  66578. test -z "$(webdir)" || $(MKDIR_P) "$(DESTDIR)$(webdir)"
  66579. - @list='$(dist_web_DATA)'; for p in $$list; do \
  66580. + @list='$(dist_web_DATA)'; test -n "$(webdir)" || list=; \
  66581. + for p in $$list; do \
  66582. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  66583. - f=$(am__strip_dir) \
  66584. - echo " $(dist_webDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(webdir)/$$f'"; \
  66585. - $(dist_webDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(webdir)/$$f"; \
  66586. + echo "$$d$$p"; \
  66587. + done | $(am__base_list) | \
  66588. + while read files; do \
  66589. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(webdir)'"; \
  66590. + $(INSTALL_DATA) $$files "$(DESTDIR)$(webdir)" || exit $$?; \
  66591. done
  66592. uninstall-dist_webDATA:
  66593. @$(NORMAL_UNINSTALL)
  66594. - @list='$(dist_web_DATA)'; for p in $$list; do \
  66595. - f=$(am__strip_dir) \
  66596. - echo " rm -f '$(DESTDIR)$(webdir)/$$f'"; \
  66597. - rm -f "$(DESTDIR)$(webdir)/$$f"; \
  66598. - done
  66599. + @list='$(dist_web_DATA)'; test -n "$(webdir)" || list=; \
  66600. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  66601. + test -n "$$files" || exit 0; \
  66602. + echo " ( cd '$(DESTDIR)$(webdir)' && rm -f" $$files ")"; \
  66603. + cd "$(DESTDIR)$(webdir)" && rm -f $$files
  66604. tags: TAGS
  66605. TAGS:
  66606. @@ -301,13 +328,17 @@
  66607. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  66608. if test -d $$d/$$file; then \
  66609. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  66610. + if test -d "$(distdir)/$$file"; then \
  66611. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  66612. + fi; \
  66613. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  66614. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  66615. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  66616. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  66617. fi; \
  66618. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  66619. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  66620. else \
  66621. - test -f $(distdir)/$$file \
  66622. - || cp -p $$d/$$file $(distdir)/$$file \
  66623. + test -f "$(distdir)/$$file" \
  66624. + || cp -p $$d/$$file "$(distdir)/$$file" \
  66625. || exit 1; \
  66626. fi; \
  66627. done
  66628. @@ -338,6 +369,7 @@
  66629. distclean-generic:
  66630. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  66631. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  66632. maintainer-clean-generic:
  66633. @echo "This command is intended for maintainers to use"
  66634. @@ -356,6 +388,8 @@
  66635. html: html-am
  66636. +html-am:
  66637. +
  66638. info: info-am
  66639. info-am:
  66640. @@ -364,18 +398,28 @@
  66641. install-dvi: install-dvi-am
  66642. +install-dvi-am:
  66643. +
  66644. install-exec-am:
  66645. install-html: install-html-am
  66646. +install-html-am:
  66647. +
  66648. install-info: install-info-am
  66649. +install-info-am:
  66650. +
  66651. install-man:
  66652. install-pdf: install-pdf-am
  66653. +install-pdf-am:
  66654. +
  66655. install-ps: install-ps-am
  66656. +install-ps-am:
  66657. +
  66658. installcheck-am:
  66659. maintainer-clean: maintainer-clean-am
  66660. @@ -410,6 +454,7 @@
  66661. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  66662. uninstall uninstall-am uninstall-dist_webDATA
  66663. +
  66664. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  66665. # Otherwise a system limit (for SysV at least) may be exceeded.
  66666. .NOEXPORT:
  66667. diff -Nur icecast-2.3.2.orig/win32/Makefile.in icecast-2.3.2/win32/Makefile.in
  66668. --- icecast-2.3.2.orig/win32/Makefile.in 2008-05-30 01:58:59.000000000 +0200
  66669. +++ icecast-2.3.2/win32/Makefile.in 2010-02-18 21:27:43.280852401 +0100
  66670. @@ -1,8 +1,9 @@
  66671. -# Makefile.in generated by automake 1.10 from Makefile.am.
  66672. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  66673. # @configure_input@
  66674. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  66675. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  66676. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  66677. +# Inc.
  66678. # This Makefile.in is free software; the Free Software Foundation
  66679. # gives unlimited permission to copy and/or distribute it,
  66680. # with or without modifications, as long as this notice is preserved.
  66681. @@ -15,8 +16,9 @@
  66682. @SET_MAKE@
  66683. VPATH = @srcdir@
  66684. pkgdatadir = $(datadir)/@PACKAGE@
  66685. -pkglibdir = $(libdir)/@PACKAGE@
  66686. pkgincludedir = $(includedir)/@PACKAGE@
  66687. +pkglibdir = $(libdir)/@PACKAGE@
  66688. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  66689. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  66690. install_sh_DATA = $(install_sh) -c -m 644
  66691. install_sh_PROGRAM = $(install_sh) -c
  66692. @@ -35,9 +37,11 @@
  66693. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  66694. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  66695. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  66696. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  66697. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  66698. - $(top_srcdir)/m4/xiph_compiler.m4 \
  66699. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  66700. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  66701. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  66702. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  66703. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  66704. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  66705. $(top_srcdir)/m4/xiph_openssl.m4 \
  66706. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  66707. @@ -47,6 +51,7 @@
  66708. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  66709. CONFIG_HEADER = $(top_builddir)/config.h
  66710. CONFIG_CLEAN_FILES =
  66711. +CONFIG_CLEAN_VPATH_FILES =
  66712. SOURCES =
  66713. DIST_SOURCES =
  66714. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  66715. @@ -58,10 +63,38 @@
  66716. ps-recursive uninstall-recursive
  66717. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  66718. distclean-recursive maintainer-clean-recursive
  66719. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  66720. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  66721. + distdir
  66722. ETAGS = etags
  66723. CTAGS = ctags
  66724. DIST_SUBDIRS = $(SUBDIRS)
  66725. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  66726. +am__relativize = \
  66727. + dir0=`pwd`; \
  66728. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  66729. + sed_rest='s,^[^/]*/*,,'; \
  66730. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  66731. + sed_butlast='s,/*[^/]*$$,,'; \
  66732. + while test -n "$$dir1"; do \
  66733. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  66734. + if test "$$first" != "."; then \
  66735. + if test "$$first" = ".."; then \
  66736. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  66737. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  66738. + else \
  66739. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  66740. + if test "$$first2" = "$$first"; then \
  66741. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  66742. + else \
  66743. + dir2="../$$dir2"; \
  66744. + fi; \
  66745. + dir0="$$dir0"/"$$first"; \
  66746. + fi; \
  66747. + fi; \
  66748. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  66749. + done; \
  66750. + reldir="$$dir2"
  66751. ACLOCAL = @ACLOCAL@
  66752. AMTAR = @AMTAR@
  66753. AR = @AR@
  66754. @@ -77,22 +110,17 @@
  66755. CURL_CFLAGS = @CURL_CFLAGS@
  66756. CURL_CONFIG = @CURL_CONFIG@
  66757. CURL_LIBS = @CURL_LIBS@
  66758. -CXX = @CXX@
  66759. -CXXCPP = @CXXCPP@
  66760. -CXXDEPMODE = @CXXDEPMODE@
  66761. -CXXFLAGS = @CXXFLAGS@
  66762. CYGPATH_W = @CYGPATH_W@
  66763. DEBUG = @DEBUG@
  66764. DEFS = @DEFS@
  66765. DEPDIR = @DEPDIR@
  66766. -ECHO = @ECHO@
  66767. +DSYMUTIL = @DSYMUTIL@
  66768. +DUMPBIN = @DUMPBIN@
  66769. ECHO_C = @ECHO_C@
  66770. ECHO_N = @ECHO_N@
  66771. ECHO_T = @ECHO_T@
  66772. EGREP = @EGREP@
  66773. EXEEXT = @EXEEXT@
  66774. -F77 = @F77@
  66775. -FFLAGS = @FFLAGS@
  66776. FGREP = @FGREP@
  66777. GREP = @GREP@
  66778. HAVE_KATE = @HAVE_KATE@
  66779. @@ -103,26 +131,34 @@
  66780. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  66781. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  66782. KATE_LIBS = @KATE_LIBS@
  66783. +LD = @LD@
  66784. LDFLAGS = @LDFLAGS@
  66785. LIBOBJS = @LIBOBJS@
  66786. LIBS = @LIBS@
  66787. LIBTOOL = @LIBTOOL@
  66788. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  66789. +LIPO = @LIPO@
  66790. LN_S = @LN_S@
  66791. LTLIBOBJS = @LTLIBOBJS@
  66792. MAINT = @MAINT@
  66793. MAKEINFO = @MAKEINFO@
  66794. MKDIR_P = @MKDIR_P@
  66795. +NM = @NM@
  66796. +NMEDIT = @NMEDIT@
  66797. +OBJDUMP = @OBJDUMP@
  66798. OBJEXT = @OBJEXT@
  66799. OGG_CFLAGS = @OGG_CFLAGS@
  66800. OGG_LDFLAGS = @OGG_LDFLAGS@
  66801. OGG_LIBS = @OGG_LIBS@
  66802. OGG_PREFIX = @OGG_PREFIX@
  66803. +OTOOL = @OTOOL@
  66804. +OTOOL64 = @OTOOL64@
  66805. PACKAGE = @PACKAGE@
  66806. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  66807. PACKAGE_NAME = @PACKAGE_NAME@
  66808. PACKAGE_STRING = @PACKAGE_STRING@
  66809. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  66810. +PACKAGE_URL = @PACKAGE_URL@
  66811. PACKAGE_VERSION = @PACKAGE_VERSION@
  66812. PATH_SEPARATOR = @PATH_SEPARATOR@
  66813. PKGCONFIG = @PKGCONFIG@
  66814. @@ -161,8 +197,7 @@
  66815. abs_top_builddir = @abs_top_builddir@
  66816. abs_top_srcdir = @abs_top_srcdir@
  66817. ac_ct_CC = @ac_ct_CC@
  66818. -ac_ct_CXX = @ac_ct_CXX@
  66819. -ac_ct_F77 = @ac_ct_F77@
  66820. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  66821. acx_pthread_config = @acx_pthread_config@
  66822. am__include = @am__include@
  66823. am__leading_dot = @am__leading_dot@
  66824. @@ -194,6 +229,7 @@
  66825. libexecdir = @libexecdir@
  66826. localedir = @localedir@
  66827. localstatedir = @localstatedir@
  66828. +lt_ECHO = @lt_ECHO@
  66829. mandir = @mandir@
  66830. mkdir_p = @mkdir_p@
  66831. oldincludedir = @oldincludedir@
  66832. @@ -206,6 +242,7 @@
  66833. srcdir = @srcdir@
  66834. sysconfdir = @sysconfdir@
  66835. target_alias = @target_alias@
  66836. +top_build_prefix = @top_build_prefix@
  66837. top_builddir = @top_builddir@
  66838. top_srcdir = @top_srcdir@
  66839. AUTOMAKE_OPTIONS = foreign
  66840. @@ -227,14 +264,14 @@
  66841. @for dep in $?; do \
  66842. case '$(am__configure_deps)' in \
  66843. *$$dep*) \
  66844. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  66845. - && exit 0; \
  66846. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  66847. + && { if test -f $@; then exit 0; else break; fi; }; \
  66848. exit 1;; \
  66849. esac; \
  66850. done; \
  66851. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign win32/Makefile'; \
  66852. - cd $(top_srcdir) && \
  66853. - $(AUTOMAKE) --foreign win32/Makefile
  66854. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign win32/Makefile'; \
  66855. + $(am__cd) $(top_srcdir) && \
  66856. + $(AUTOMAKE) --foreign win32/Makefile
  66857. .PRECIOUS: Makefile
  66858. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  66859. @case '$?' in \
  66860. @@ -252,6 +289,7 @@
  66861. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  66862. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  66863. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  66864. +$(am__aclocal_m4_deps):
  66865. mostlyclean-libtool:
  66866. -rm -f *.lo
  66867. @@ -266,7 +304,7 @@
  66868. # (which will cause the Makefiles to be regenerated when you run `make');
  66869. # (2) otherwise, pass the desired values on the `make' command line.
  66870. $(RECURSIVE_TARGETS):
  66871. - @failcom='exit 1'; \
  66872. + @fail= failcom='exit 1'; \
  66873. for f in x $$MAKEFLAGS; do \
  66874. case $$f in \
  66875. *=* | --[!k]*);; \
  66876. @@ -283,7 +321,7 @@
  66877. else \
  66878. local_target="$$target"; \
  66879. fi; \
  66880. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  66881. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  66882. || eval $$failcom; \
  66883. done; \
  66884. if test "$$dot_seen" = "no"; then \
  66885. @@ -291,7 +329,7 @@
  66886. fi; test -z "$$fail"
  66887. $(RECURSIVE_CLEAN_TARGETS):
  66888. - @failcom='exit 1'; \
  66889. + @fail= failcom='exit 1'; \
  66890. for f in x $$MAKEFLAGS; do \
  66891. case $$f in \
  66892. *=* | --[!k]*);; \
  66893. @@ -317,16 +355,16 @@
  66894. else \
  66895. local_target="$$target"; \
  66896. fi; \
  66897. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  66898. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  66899. || eval $$failcom; \
  66900. done && test -z "$$fail"
  66901. tags-recursive:
  66902. list='$(SUBDIRS)'; for subdir in $$list; do \
  66903. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  66904. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  66905. done
  66906. ctags-recursive:
  66907. list='$(SUBDIRS)'; for subdir in $$list; do \
  66908. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  66909. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  66910. done
  66911. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  66912. @@ -334,14 +372,14 @@
  66913. unique=`for i in $$list; do \
  66914. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  66915. done | \
  66916. - $(AWK) ' { files[$$0] = 1; } \
  66917. - END { for (i in files) print i; }'`; \
  66918. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  66919. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  66920. mkid -fID $$unique
  66921. tags: TAGS
  66922. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  66923. $(TAGS_FILES) $(LISP)
  66924. - tags=; \
  66925. + set x; \
  66926. here=`pwd`; \
  66927. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  66928. include_option=--etags-include; \
  66929. @@ -353,39 +391,43 @@
  66930. list='$(SUBDIRS)'; for subdir in $$list; do \
  66931. if test "$$subdir" = .; then :; else \
  66932. test ! -f $$subdir/TAGS || \
  66933. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  66934. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  66935. fi; \
  66936. done; \
  66937. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  66938. unique=`for i in $$list; do \
  66939. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  66940. done | \
  66941. - $(AWK) ' { files[$$0] = 1; } \
  66942. - END { for (i in files) print i; }'`; \
  66943. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  66944. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  66945. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  66946. + shift; \
  66947. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  66948. test -n "$$unique" || unique=$$empty_fix; \
  66949. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  66950. - $$tags $$unique; \
  66951. + if test $$# -gt 0; then \
  66952. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  66953. + "$$@" $$unique; \
  66954. + else \
  66955. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  66956. + $$unique; \
  66957. + fi; \
  66958. fi
  66959. ctags: CTAGS
  66960. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  66961. $(TAGS_FILES) $(LISP)
  66962. - tags=; \
  66963. - here=`pwd`; \
  66964. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  66965. unique=`for i in $$list; do \
  66966. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  66967. done | \
  66968. - $(AWK) ' { files[$$0] = 1; } \
  66969. - END { for (i in files) print i; }'`; \
  66970. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  66971. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  66972. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  66973. + test -z "$(CTAGS_ARGS)$$unique" \
  66974. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  66975. - $$tags $$unique
  66976. + $$unique
  66977. GTAGS:
  66978. here=`$(am__cd) $(top_builddir) && pwd` \
  66979. - && cd $(top_srcdir) \
  66980. - && gtags -i $(GTAGS_ARGS) $$here
  66981. + && $(am__cd) $(top_srcdir) \
  66982. + && gtags -i $(GTAGS_ARGS) "$$here"
  66983. distclean-tags:
  66984. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  66985. @@ -406,29 +448,44 @@
  66986. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  66987. if test -d $$d/$$file; then \
  66988. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  66989. + if test -d "$(distdir)/$$file"; then \
  66990. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  66991. + fi; \
  66992. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  66993. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  66994. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  66995. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  66996. fi; \
  66997. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  66998. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  66999. else \
  67000. - test -f $(distdir)/$$file \
  67001. - || cp -p $$d/$$file $(distdir)/$$file \
  67002. + test -f "$(distdir)/$$file" \
  67003. + || cp -p $$d/$$file "$(distdir)/$$file" \
  67004. || exit 1; \
  67005. fi; \
  67006. done
  67007. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  67008. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  67009. if test "$$subdir" = .; then :; else \
  67010. test -d "$(distdir)/$$subdir" \
  67011. || $(MKDIR_P) "$(distdir)/$$subdir" \
  67012. || exit 1; \
  67013. - distdir=`$(am__cd) $(distdir) && pwd`; \
  67014. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  67015. - (cd $$subdir && \
  67016. + fi; \
  67017. + done
  67018. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  67019. + if test "$$subdir" = .; then :; else \
  67020. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  67021. + $(am__relativize); \
  67022. + new_distdir=$$reldir; \
  67023. + dir1=$$subdir; dir2="$(top_distdir)"; \
  67024. + $(am__relativize); \
  67025. + new_top_distdir=$$reldir; \
  67026. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  67027. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  67028. + ($(am__cd) $$subdir && \
  67029. $(MAKE) $(AM_MAKEFLAGS) \
  67030. - top_distdir="$$top_distdir" \
  67031. - distdir="$$distdir/$$subdir" \
  67032. + top_distdir="$$new_top_distdir" \
  67033. + distdir="$$new_distdir" \
  67034. am__remove_distdir=: \
  67035. am__skip_length_check=: \
  67036. + am__skip_mode_fix=: \
  67037. distdir) \
  67038. || exit 1; \
  67039. fi; \
  67040. @@ -458,6 +515,7 @@
  67041. distclean-generic:
  67042. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  67043. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  67044. maintainer-clean-generic:
  67045. @echo "This command is intended for maintainers to use"
  67046. @@ -476,6 +534,8 @@
  67047. html: html-recursive
  67048. +html-am:
  67049. +
  67050. info: info-recursive
  67051. info-am:
  67052. @@ -484,18 +544,28 @@
  67053. install-dvi: install-dvi-recursive
  67054. +install-dvi-am:
  67055. +
  67056. install-exec-am:
  67057. install-html: install-html-recursive
  67058. +install-html-am:
  67059. +
  67060. install-info: install-info-recursive
  67061. +install-info-am:
  67062. +
  67063. install-man:
  67064. install-pdf: install-pdf-recursive
  67065. +install-pdf-am:
  67066. +
  67067. install-ps: install-ps-recursive
  67068. +install-ps-am:
  67069. +
  67070. installcheck-am:
  67071. maintainer-clean: maintainer-clean-recursive
  67072. @@ -516,8 +586,8 @@
  67073. uninstall-am:
  67074. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  67075. - install-strip
  67076. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  67077. + install-am install-strip tags-recursive
  67078. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  67079. all all-am check check-am clean clean-generic clean-libtool \
  67080. @@ -533,6 +603,7 @@
  67081. mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  67082. uninstall uninstall-am
  67083. +
  67084. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  67085. # Otherwise a system limit (for SysV at least) may be exceeded.
  67086. .NOEXPORT:
  67087. diff -Nur icecast-2.3.2.orig/win32/res/Makefile.in icecast-2.3.2/win32/res/Makefile.in
  67088. --- icecast-2.3.2.orig/win32/res/Makefile.in 2008-05-30 01:58:59.000000000 +0200
  67089. +++ icecast-2.3.2/win32/res/Makefile.in 2010-02-18 21:27:43.368851884 +0100
  67090. @@ -1,8 +1,9 @@
  67091. -# Makefile.in generated by automake 1.10 from Makefile.am.
  67092. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  67093. # @configure_input@
  67094. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  67095. -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  67096. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  67097. +# Inc.
  67098. # This Makefile.in is free software; the Free Software Foundation
  67099. # gives unlimited permission to copy and/or distribute it,
  67100. # with or without modifications, as long as this notice is preserved.
  67101. @@ -15,8 +16,9 @@
  67102. @SET_MAKE@
  67103. VPATH = @srcdir@
  67104. pkgdatadir = $(datadir)/@PACKAGE@
  67105. -pkglibdir = $(libdir)/@PACKAGE@
  67106. pkgincludedir = $(includedir)/@PACKAGE@
  67107. +pkglibdir = $(libdir)/@PACKAGE@
  67108. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  67109. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  67110. install_sh_DATA = $(install_sh) -c -m 644
  67111. install_sh_PROGRAM = $(install_sh) -c
  67112. @@ -35,9 +37,11 @@
  67113. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  67114. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  67115. am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
  67116. - $(top_srcdir)/m4/ogg.m4 $(top_srcdir)/m4/speex.m4 \
  67117. - $(top_srcdir)/m4/theora.m4 $(top_srcdir)/m4/vorbis.m4 \
  67118. - $(top_srcdir)/m4/xiph_compiler.m4 \
  67119. + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
  67120. + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
  67121. + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/ogg.m4 \
  67122. + $(top_srcdir)/m4/speex.m4 $(top_srcdir)/m4/theora.m4 \
  67123. + $(top_srcdir)/m4/vorbis.m4 $(top_srcdir)/m4/xiph_compiler.m4 \
  67124. $(top_srcdir)/m4/xiph_curl.m4 $(top_srcdir)/m4/xiph_net.m4 \
  67125. $(top_srcdir)/m4/xiph_openssl.m4 \
  67126. $(top_srcdir)/m4/xiph_types.m4 $(top_srcdir)/m4/xiph_xml2.m4 \
  67127. @@ -47,6 +51,7 @@
  67128. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  67129. CONFIG_HEADER = $(top_builddir)/config.h
  67130. CONFIG_CLEAN_FILES =
  67131. +CONFIG_CLEAN_VPATH_FILES =
  67132. SOURCES =
  67133. DIST_SOURCES =
  67134. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  67135. @@ -65,22 +70,17 @@
  67136. CURL_CFLAGS = @CURL_CFLAGS@
  67137. CURL_CONFIG = @CURL_CONFIG@
  67138. CURL_LIBS = @CURL_LIBS@
  67139. -CXX = @CXX@
  67140. -CXXCPP = @CXXCPP@
  67141. -CXXDEPMODE = @CXXDEPMODE@
  67142. -CXXFLAGS = @CXXFLAGS@
  67143. CYGPATH_W = @CYGPATH_W@
  67144. DEBUG = @DEBUG@
  67145. DEFS = @DEFS@
  67146. DEPDIR = @DEPDIR@
  67147. -ECHO = @ECHO@
  67148. +DSYMUTIL = @DSYMUTIL@
  67149. +DUMPBIN = @DUMPBIN@
  67150. ECHO_C = @ECHO_C@
  67151. ECHO_N = @ECHO_N@
  67152. ECHO_T = @ECHO_T@
  67153. EGREP = @EGREP@
  67154. EXEEXT = @EXEEXT@
  67155. -F77 = @F77@
  67156. -FFLAGS = @FFLAGS@
  67157. FGREP = @FGREP@
  67158. GREP = @GREP@
  67159. HAVE_KATE = @HAVE_KATE@
  67160. @@ -91,26 +91,34 @@
  67161. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  67162. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  67163. KATE_LIBS = @KATE_LIBS@
  67164. +LD = @LD@
  67165. LDFLAGS = @LDFLAGS@
  67166. LIBOBJS = @LIBOBJS@
  67167. LIBS = @LIBS@
  67168. LIBTOOL = @LIBTOOL@
  67169. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  67170. +LIPO = @LIPO@
  67171. LN_S = @LN_S@
  67172. LTLIBOBJS = @LTLIBOBJS@
  67173. MAINT = @MAINT@
  67174. MAKEINFO = @MAKEINFO@
  67175. MKDIR_P = @MKDIR_P@
  67176. +NM = @NM@
  67177. +NMEDIT = @NMEDIT@
  67178. +OBJDUMP = @OBJDUMP@
  67179. OBJEXT = @OBJEXT@
  67180. OGG_CFLAGS = @OGG_CFLAGS@
  67181. OGG_LDFLAGS = @OGG_LDFLAGS@
  67182. OGG_LIBS = @OGG_LIBS@
  67183. OGG_PREFIX = @OGG_PREFIX@
  67184. +OTOOL = @OTOOL@
  67185. +OTOOL64 = @OTOOL64@
  67186. PACKAGE = @PACKAGE@
  67187. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  67188. PACKAGE_NAME = @PACKAGE_NAME@
  67189. PACKAGE_STRING = @PACKAGE_STRING@
  67190. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  67191. +PACKAGE_URL = @PACKAGE_URL@
  67192. PACKAGE_VERSION = @PACKAGE_VERSION@
  67193. PATH_SEPARATOR = @PATH_SEPARATOR@
  67194. PKGCONFIG = @PKGCONFIG@
  67195. @@ -149,8 +157,7 @@
  67196. abs_top_builddir = @abs_top_builddir@
  67197. abs_top_srcdir = @abs_top_srcdir@
  67198. ac_ct_CC = @ac_ct_CC@
  67199. -ac_ct_CXX = @ac_ct_CXX@
  67200. -ac_ct_F77 = @ac_ct_F77@
  67201. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  67202. acx_pthread_config = @acx_pthread_config@
  67203. am__include = @am__include@
  67204. am__leading_dot = @am__leading_dot@
  67205. @@ -182,6 +189,7 @@
  67206. libexecdir = @libexecdir@
  67207. localedir = @localedir@
  67208. localstatedir = @localstatedir@
  67209. +lt_ECHO = @lt_ECHO@
  67210. mandir = @mandir@
  67211. mkdir_p = @mkdir_p@
  67212. oldincludedir = @oldincludedir@
  67213. @@ -194,6 +202,7 @@
  67214. srcdir = @srcdir@
  67215. sysconfdir = @sysconfdir@
  67216. target_alias = @target_alias@
  67217. +top_build_prefix = @top_build_prefix@
  67218. top_builddir = @top_builddir@
  67219. top_srcdir = @top_srcdir@
  67220. AUTOMAKE_OPTIONS = foreign
  67221. @@ -205,14 +214,14 @@
  67222. @for dep in $?; do \
  67223. case '$(am__configure_deps)' in \
  67224. *$$dep*) \
  67225. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  67226. - && exit 0; \
  67227. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  67228. + && { if test -f $@; then exit 0; else break; fi; }; \
  67229. exit 1;; \
  67230. esac; \
  67231. done; \
  67232. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign win32/res/Makefile'; \
  67233. - cd $(top_srcdir) && \
  67234. - $(AUTOMAKE) --foreign win32/res/Makefile
  67235. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign win32/res/Makefile'; \
  67236. + $(am__cd) $(top_srcdir) && \
  67237. + $(AUTOMAKE) --foreign win32/res/Makefile
  67238. .PRECIOUS: Makefile
  67239. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  67240. @case '$?' in \
  67241. @@ -230,6 +239,7 @@
  67242. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  67243. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  67244. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  67245. +$(am__aclocal_m4_deps):
  67246. mostlyclean-libtool:
  67247. -rm -f *.lo
  67248. @@ -259,13 +269,17 @@
  67249. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  67250. if test -d $$d/$$file; then \
  67251. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  67252. + if test -d "$(distdir)/$$file"; then \
  67253. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  67254. + fi; \
  67255. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  67256. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  67257. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  67258. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  67259. fi; \
  67260. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  67261. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  67262. else \
  67263. - test -f $(distdir)/$$file \
  67264. - || cp -p $$d/$$file $(distdir)/$$file \
  67265. + test -f "$(distdir)/$$file" \
  67266. + || cp -p $$d/$$file "$(distdir)/$$file" \
  67267. || exit 1; \
  67268. fi; \
  67269. done
  67270. @@ -293,6 +307,7 @@
  67271. distclean-generic:
  67272. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  67273. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  67274. maintainer-clean-generic:
  67275. @echo "This command is intended for maintainers to use"
  67276. @@ -311,6 +326,8 @@
  67277. html: html-am
  67278. +html-am:
  67279. +
  67280. info: info-am
  67281. info-am:
  67282. @@ -319,18 +336,28 @@
  67283. install-dvi: install-dvi-am
  67284. +install-dvi-am:
  67285. +
  67286. install-exec-am:
  67287. install-html: install-html-am
  67288. +install-html-am:
  67289. +
  67290. install-info: install-info-am
  67291. +install-info-am:
  67292. +
  67293. install-man:
  67294. install-pdf: install-pdf-am
  67295. +install-pdf-am:
  67296. +
  67297. install-ps: install-ps-am
  67298. +install-ps-am:
  67299. +
  67300. installcheck-am:
  67301. maintainer-clean: maintainer-clean-am
  67302. @@ -364,6 +391,7 @@
  67303. maintainer-clean-generic mostlyclean mostlyclean-generic \
  67304. mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  67305. +
  67306. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  67307. # Otherwise a system limit (for SysV at least) may be exceeded.
  67308. .NOEXPORT: