1
0

autotool.patch 1.4 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531
  1. diff -Nur tslib-1.0.orig/INSTALL tslib-1.0/INSTALL
  2. --- tslib-1.0.orig/INSTALL 2006-08-24 23:02:55.000000000 +0200
  3. +++ tslib-1.0/INSTALL 2010-07-29 13:39:15.000000000 +0200
  4. @@ -1,16 +1,25 @@
  5. Installation Instructions
  6. *************************
  7. -Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004 Free
  8. -Software Foundation, Inc.
  9. +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  10. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  11. -This file is free documentation; the Free Software Foundation gives
  12. -unlimited permission to copy, distribute and modify it.
  13. + Copying and distribution of this file, with or without modification,
  14. +are permitted in any medium without royalty provided the copyright
  15. +notice and this notice are preserved. This file is offered as-is,
  16. +without warranty of any kind.
  17. Basic Installation
  18. ==================
  19. -These are generic installation instructions.
  20. + Briefly, the shell commands `./configure; make; make install' should
  21. +configure, build, and install this package. The following
  22. +more-detailed instructions are generic; see the `README' file for
  23. +instructions specific to this package. Some packages provide this
  24. +`INSTALL' file but do not implement all of the features documented
  25. +below. The lack of an optional feature in a given package is not
  26. +necessarily a bug. More recommendations for GNU packages can be found
  27. +in *note Makefile Conventions: (standards)Makefile Conventions.
  28. The `configure' shell script attempts to guess correct values for
  29. various system-dependent variables used during compilation. It uses
  30. @@ -23,9 +32,9 @@
  31. It can also use an optional file (typically called `config.cache'
  32. and enabled with `--cache-file=config.cache' or simply `-C') that saves
  33. -the results of its tests to speed up reconfiguring. (Caching is
  34. +the results of its tests to speed up reconfiguring. Caching is
  35. disabled by default to prevent problems with accidental use of stale
  36. -cache files.)
  37. +cache files.
  38. If you need to do unusual things to compile the package, please try
  39. to figure out how `configure' could check whether to do them, and mail
  40. @@ -35,30 +44,37 @@
  41. may remove or edit it.
  42. The file `configure.ac' (or `configure.in') is used to create
  43. -`configure' by a program called `autoconf'. You only need
  44. -`configure.ac' if you want to change it or regenerate `configure' using
  45. -a newer version of `autoconf'.
  46. +`configure' by a program called `autoconf'. You need `configure.ac' if
  47. +you want to change it or regenerate `configure' using a newer version
  48. +of `autoconf'.
  49. -The simplest way to compile this package is:
  50. + The simplest way to compile this package is:
  51. 1. `cd' to the directory containing the package's source code and type
  52. - `./configure' to configure the package for your system. If you're
  53. - using `csh' on an old version of System V, you might need to type
  54. - `sh ./configure' instead to prevent `csh' from trying to execute
  55. - `configure' itself.
  56. + `./configure' to configure the package for your system.
  57. - Running `configure' takes awhile. While running, it prints some
  58. - messages telling which features it is checking for.
  59. + Running `configure' might take a while. While running, it prints
  60. + some messages telling which features it is checking for.
  61. 2. Type `make' to compile the package.
  62. 3. Optionally, type `make check' to run any self-tests that come with
  63. - the package.
  64. + the package, generally using the just-built uninstalled binaries.
  65. 4. Type `make install' to install the programs and any data files and
  66. - documentation.
  67. + documentation. When installing into a prefix owned by root, it is
  68. + recommended that the package be configured and built as a regular
  69. + user, and only the `make install' phase executed with root
  70. + privileges.
  71. +
  72. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  73. + this time using the binaries in their final installed location.
  74. + This target does not install anything. Running this target as a
  75. + regular user, particularly if the prior `make install' required
  76. + root privileges, verifies that the installation completed
  77. + correctly.
  78. - 5. You can remove the program binaries and object files from the
  79. + 6. You can remove the program binaries and object files from the
  80. source code directory by typing `make clean'. To also remove the
  81. files that `configure' created (so you can compile the package for
  82. a different kind of computer), type `make distclean'. There is
  83. @@ -67,65 +83,120 @@
  84. all sorts of other programs in order to regenerate files that came
  85. with the distribution.
  86. + 7. Often, you can also type `make uninstall' to remove the installed
  87. + files again. In practice, not all packages have tested that
  88. + uninstallation works correctly, even though it is required by the
  89. + GNU Coding Standards.
  90. +
  91. + 8. Some packages, particularly those that use Automake, provide `make
  92. + distcheck', which can by used by developers to test that all other
  93. + targets like `make install' and `make uninstall' work correctly.
  94. + This target is generally not run by end users.
  95. +
  96. Compilers and Options
  97. =====================
  98. -Some systems require unusual options for compilation or linking that the
  99. -`configure' script does not know about. Run `./configure --help' for
  100. -details on some of the pertinent environment variables.
  101. + Some systems require unusual options for compilation or linking that
  102. +the `configure' script does not know about. Run `./configure --help'
  103. +for details on some of the pertinent environment variables.
  104. You can give `configure' initial values for configuration parameters
  105. by setting variables in the command line or in the environment. Here
  106. is an example:
  107. - ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
  108. + ./configure CC=c99 CFLAGS=-g LIBS=-lposix
  109. *Note Defining Variables::, for more details.
  110. Compiling For Multiple Architectures
  111. ====================================
  112. -You can compile the package for more than one kind of computer at the
  113. + You can compile the package for more than one kind of computer at the
  114. same time, by placing the object files for each architecture in their
  115. -own directory. To do this, you must use a version of `make' that
  116. -supports the `VPATH' variable, such as GNU `make'. `cd' to the
  117. +own directory. To do this, you can use GNU `make'. `cd' to the
  118. directory where you want the object files and executables to go and run
  119. the `configure' script. `configure' automatically checks for the
  120. -source code in the directory that `configure' is in and in `..'.
  121. +source code in the directory that `configure' is in and in `..'. This
  122. +is known as a "VPATH" build.
  123. - If you have to use a `make' that does not support the `VPATH'
  124. -variable, you have to compile the package for one architecture at a
  125. -time in the source code directory. After you have installed the
  126. -package for one architecture, use `make distclean' before reconfiguring
  127. -for another architecture.
  128. + With a non-GNU `make', it is safer to compile the package for one
  129. +architecture at a time in the source code directory. After you have
  130. +installed the package for one architecture, use `make distclean' before
  131. +reconfiguring for another architecture.
  132. +
  133. + On MacOS X 10.5 and later systems, you can create libraries and
  134. +executables that work on multiple system types--known as "fat" or
  135. +"universal" binaries--by specifying multiple `-arch' options to the
  136. +compiler but only a single `-arch' option to the preprocessor. Like
  137. +this:
  138. +
  139. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  140. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  141. + CPP="gcc -E" CXXCPP="g++ -E"
  142. +
  143. + This is not guaranteed to produce working output in all cases, you
  144. +may have to build one architecture at a time and combine the results
  145. +using the `lipo' tool if you have problems.
  146. Installation Names
  147. ==================
  148. -By default, `make install' will install the package's files in
  149. -`/usr/local/bin', `/usr/local/man', etc. You can specify an
  150. -installation prefix other than `/usr/local' by giving `configure' the
  151. -option `--prefix=PREFIX'.
  152. + By default, `make install' installs the package's commands under
  153. +`/usr/local/bin', include files under `/usr/local/include', etc. You
  154. +can specify an installation prefix other than `/usr/local' by giving
  155. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  156. +absolute file name.
  157. You can specify separate installation prefixes for
  158. architecture-specific files and architecture-independent files. If you
  159. -give `configure' the option `--exec-prefix=PREFIX', the package will
  160. -use PREFIX as the prefix for installing programs and libraries.
  161. -Documentation and other data files will still use the regular prefix.
  162. +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
  163. +PREFIX as the prefix for installing programs and libraries.
  164. +Documentation and other data files still use the regular prefix.
  165. In addition, if you use an unusual directory layout you can give
  166. options like `--bindir=DIR' to specify different values for particular
  167. kinds of files. Run `configure --help' for a list of the directories
  168. -you can set and what kinds of files go in them.
  169. +you can set and what kinds of files go in them. In general, the
  170. +default for these options is expressed in terms of `${prefix}', so that
  171. +specifying just `--prefix' will affect all of the other directory
  172. +specifications that were not explicitly provided.
  173. +
  174. + The most portable way to affect installation locations is to pass the
  175. +correct locations to `configure'; however, many packages provide one or
  176. +both of the following shortcuts of passing variable assignments to the
  177. +`make install' command line to change installation locations without
  178. +having to reconfigure or recompile.
  179. +
  180. + The first method involves providing an override variable for each
  181. +affected directory. For example, `make install
  182. +prefix=/alternate/directory' will choose an alternate location for all
  183. +directory configuration variables that were expressed in terms of
  184. +`${prefix}'. Any directories that were specified during `configure',
  185. +but not in terms of `${prefix}', must each be overridden at install
  186. +time for the entire installation to be relocated. The approach of
  187. +makefile variable overrides for each directory variable is required by
  188. +the GNU Coding Standards, and ideally causes no recompilation.
  189. +However, some platforms have known limitations with the semantics of
  190. +shared libraries that end up requiring recompilation when using this
  191. +method, particularly noticeable in packages that use GNU Libtool.
  192. +
  193. + The second method involves providing the `DESTDIR' variable. For
  194. +example, `make install DESTDIR=/alternate/directory' will prepend
  195. +`/alternate/directory' before all installation names. The approach of
  196. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  197. +does not work on platforms that have drive letters. On the other hand,
  198. +it does better at avoiding recompilation issues, and works well even
  199. +when some directory options were not specified in terms of `${prefix}'
  200. +at `configure' time.
  201. +
  202. +Optional Features
  203. +=================
  204. If the package supports it, you can cause programs to be installed
  205. with an extra prefix or suffix on their names by giving `configure' the
  206. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  207. -Optional Features
  208. -=================
  209. -
  210. -Some packages pay attention to `--enable-FEATURE' options to
  211. + Some packages pay attention to `--enable-FEATURE' options to
  212. `configure', where FEATURE indicates an optional part of the package.
  213. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  214. is something like `gnu-as' or `x' (for the X Window System). The
  215. @@ -137,14 +208,53 @@
  216. you can use the `configure' options `--x-includes=DIR' and
  217. `--x-libraries=DIR' to specify their locations.
  218. + Some packages offer the ability to configure how verbose the
  219. +execution of `make' will be. For these packages, running `./configure
  220. +--enable-silent-rules' sets the default to minimal output, which can be
  221. +overridden with `make V=1'; while running `./configure
  222. +--disable-silent-rules' sets the default to verbose, which can be
  223. +overridden with `make V=0'.
  224. +
  225. +Particular systems
  226. +==================
  227. +
  228. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  229. +CC is not installed, it is recommended to use the following options in
  230. +order to use an ANSI C compiler:
  231. +
  232. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  233. +
  234. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  235. +
  236. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  237. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  238. +a workaround. If GNU CC is not installed, it is therefore recommended
  239. +to try
  240. +
  241. + ./configure CC="cc"
  242. +
  243. +and if that doesn't work, try
  244. +
  245. + ./configure CC="cc -nodtk"
  246. +
  247. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  248. +directory contains several dysfunctional programs; working variants of
  249. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  250. +in your `PATH', put it _after_ `/usr/bin'.
  251. +
  252. + On Haiku, software installed for all users goes in `/boot/common',
  253. +not `/usr/local'. It is recommended to use the following options:
  254. +
  255. + ./configure --prefix=/boot/common
  256. +
  257. Specifying the System Type
  258. ==========================
  259. -There may be some features `configure' cannot figure out automatically,
  260. -but needs to determine by the type of machine the package will run on.
  261. -Usually, assuming the package is built to be run on the _same_
  262. -architectures, `configure' can figure that out, but if it prints a
  263. -message saying it cannot guess the machine type, give it the
  264. + There may be some features `configure' cannot figure out
  265. +automatically, but needs to determine by the type of machine the package
  266. +will run on. Usually, assuming the package is built to be run on the
  267. +_same_ architectures, `configure' can figure that out, but if it prints
  268. +a message saying it cannot guess the machine type, give it the
  269. `--build=TYPE' option. TYPE can either be a short name for the system
  270. type, such as `sun4', or a canonical name which has the form:
  271. @@ -152,14 +262,15 @@
  272. where SYSTEM can have one of these forms:
  273. - OS KERNEL-OS
  274. + OS
  275. + KERNEL-OS
  276. See the file `config.sub' for the possible values of each field. If
  277. `config.sub' isn't included in this package, then this package doesn't
  278. need to know the machine type.
  279. If you are _building_ compiler tools for cross-compiling, you should
  280. -use the `--target=TYPE' option to select the type of system they will
  281. +use the option `--target=TYPE' to select the type of system they will
  282. produce code for.
  283. If you want to _use_ a cross compiler, that generates code for a
  284. @@ -170,9 +281,9 @@
  285. Sharing Defaults
  286. ================
  287. -If you want to set default values for `configure' scripts to share, you
  288. -can create a site shell script called `config.site' that gives default
  289. -values for variables like `CC', `cache_file', and `prefix'.
  290. + If you want to set default values for `configure' scripts to share,
  291. +you can create a site shell script called `config.site' that gives
  292. +default values for variables like `CC', `cache_file', and `prefix'.
  293. `configure' looks for `PREFIX/share/config.site' if it exists, then
  294. `PREFIX/etc/config.site' if it exists. Or, you can set the
  295. `CONFIG_SITE' environment variable to the location of the site script.
  296. @@ -181,7 +292,7 @@
  297. Defining Variables
  298. ==================
  299. -Variables not defined in a site shell script can be set in the
  300. + Variables not defined in a site shell script can be set in the
  301. environment passed to `configure'. However, some packages may run
  302. configure again during the build, and the customized values of these
  303. variables may be lost. In order to avoid this problem, you should set
  304. @@ -189,17 +300,30 @@
  305. ./configure CC=/usr/local2/bin/gcc
  306. -will cause the specified gcc to be used as the C compiler (unless it is
  307. +causes the specified `gcc' to be used as the C compiler (unless it is
  308. overridden in the site shell script).
  309. +Unfortunately, this technique does not work for `CONFIG_SHELL' due to
  310. +an Autoconf bug. Until the bug is fixed you can use this workaround:
  311. +
  312. + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
  313. +
  314. `configure' Invocation
  315. ======================
  316. -`configure' recognizes the following options to control how it operates.
  317. + `configure' recognizes the following options to control how it
  318. +operates.
  319. `--help'
  320. `-h'
  321. - Print a summary of the options to `configure', and exit.
  322. + Print a summary of all of the options to `configure', and exit.
  323. +
  324. +`--help=short'
  325. +`--help=recursive'
  326. + Print a summary of the options unique to this package's
  327. + `configure', and exit. The `short' variant lists options used
  328. + only in the top level, while the `recursive' variant lists options
  329. + also present in any nested packages.
  330. `--version'
  331. `-V'
  332. @@ -226,6 +350,16 @@
  333. Look for the package's source code in directory DIR. Usually
  334. `configure' can determine that directory automatically.
  335. +`--prefix=DIR'
  336. + Use DIR as the installation prefix. *note Installation Names::
  337. + for more details, including other options available for fine-tuning
  338. + the installation locations.
  339. +
  340. +`--no-create'
  341. +`-n'
  342. + Run the configure checks, but stop before creating any output
  343. + files.
  344. +
  345. `configure' also accepts some other, not widely useful, options. Run
  346. `configure --help' for more details.
  347. diff -Nur tslib-1.0.orig/Makefile.in tslib-1.0/Makefile.in
  348. --- tslib-1.0.orig/Makefile.in 1970-01-01 01:00:00.000000000 +0100
  349. +++ tslib-1.0/Makefile.in 2010-07-29 13:39:16.000000000 +0200
  350. @@ -0,0 +1,800 @@
  351. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  352. +# @configure_input@
  353. +
  354. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  355. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  356. +# Inc.
  357. +# This Makefile.in is free software; the Free Software Foundation
  358. +# gives unlimited permission to copy and/or distribute it,
  359. +# with or without modifications, as long as this notice is preserved.
  360. +
  361. +# This program is distributed in the hope that it will be useful,
  362. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  363. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  364. +# PARTICULAR PURPOSE.
  365. +
  366. +@SET_MAKE@
  367. +
  368. +#
  369. +# tslib/Makefile.am
  370. +#
  371. +# Copyright (C) 2001 Russell King.
  372. +#
  373. +# This file is placed under the LGPL. Please see the file
  374. +# COPYING for more details.
  375. +#
  376. +# $Id: Makefile.am,v 1.3 2005/02/28 18:56:09 kergoth Exp $
  377. +#
  378. +
  379. +VPATH = @srcdir@
  380. +pkgdatadir = $(datadir)/@PACKAGE@
  381. +pkgincludedir = $(includedir)/@PACKAGE@
  382. +pkglibdir = $(libdir)/@PACKAGE@
  383. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  384. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  385. +install_sh_DATA = $(install_sh) -c -m 644
  386. +install_sh_PROGRAM = $(install_sh) -c
  387. +install_sh_SCRIPT = $(install_sh) -c
  388. +INSTALL_HEADER = $(INSTALL_DATA)
  389. +transform = $(program_transform_name)
  390. +NORMAL_INSTALL = :
  391. +PRE_INSTALL = :
  392. +POST_INSTALL = :
  393. +NORMAL_UNINSTALL = :
  394. +PRE_UNINSTALL = :
  395. +POST_UNINSTALL = :
  396. +build_triplet = @build@
  397. +host_triplet = @host@
  398. +subdir = .
  399. +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
  400. + $(srcdir)/Makefile.in $(srcdir)/config.h.in \
  401. + $(srcdir)/tslib.pc.in $(top_srcdir)/configure AUTHORS COPYING \
  402. + ChangeLog INSTALL NEWS config.guess config.sub depcomp \
  403. + install-sh ltmain.sh missing
  404. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  405. +am__aclocal_m4_deps = $(top_srcdir)/m4/internal/libtool.m4 \
  406. + $(top_srcdir)/m4/internal/ltoptions.m4 \
  407. + $(top_srcdir)/m4/internal/ltsugar.m4 \
  408. + $(top_srcdir)/m4/internal/ltversion.m4 \
  409. + $(top_srcdir)/m4/internal/lt~obsolete.m4 \
  410. + $(top_srcdir)/m4/internal/visibility.m4 \
  411. + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  412. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  413. + $(ACLOCAL_M4)
  414. +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  415. + configure.lineno config.status.lineno
  416. +mkinstalldirs = $(install_sh) -d
  417. +CONFIG_HEADER = config.h
  418. +CONFIG_CLEAN_FILES =
  419. +CONFIG_CLEAN_VPATH_FILES =
  420. +SOURCES =
  421. +DIST_SOURCES =
  422. +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  423. + html-recursive info-recursive install-data-recursive \
  424. + install-dvi-recursive install-exec-recursive \
  425. + install-html-recursive install-info-recursive \
  426. + install-pdf-recursive install-ps-recursive install-recursive \
  427. + installcheck-recursive installdirs-recursive pdf-recursive \
  428. + ps-recursive uninstall-recursive
  429. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  430. +am__vpath_adj = case $$p in \
  431. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  432. + *) f=$$p;; \
  433. + esac;
  434. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  435. +am__install_max = 40
  436. +am__nobase_strip_setup = \
  437. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  438. +am__nobase_strip = \
  439. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  440. +am__nobase_list = $(am__nobase_strip_setup); \
  441. + for p in $$list; do echo "$$p $$p"; done | \
  442. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  443. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  444. + if (++n[$$2] == $(am__install_max)) \
  445. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  446. + END { for (dir in files) print dir, files[dir] }'
  447. +am__base_list = \
  448. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  449. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  450. +am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
  451. +DATA = $(pkgconfig_DATA)
  452. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  453. + distclean-recursive maintainer-clean-recursive
  454. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  455. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  456. + distdir dist dist-all distcheck
  457. +ETAGS = etags
  458. +CTAGS = ctags
  459. +DIST_SUBDIRS = $(SUBDIRS)
  460. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  461. +distdir = $(PACKAGE)-$(VERSION)
  462. +top_distdir = $(distdir)
  463. +am__remove_distdir = \
  464. + { test ! -d "$(distdir)" \
  465. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  466. + && rm -fr "$(distdir)"; }; }
  467. +am__relativize = \
  468. + dir0=`pwd`; \
  469. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  470. + sed_rest='s,^[^/]*/*,,'; \
  471. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  472. + sed_butlast='s,/*[^/]*$$,,'; \
  473. + while test -n "$$dir1"; do \
  474. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  475. + if test "$$first" != "."; then \
  476. + if test "$$first" = ".."; then \
  477. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  478. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  479. + else \
  480. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  481. + if test "$$first2" = "$$first"; then \
  482. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  483. + else \
  484. + dir2="../$$dir2"; \
  485. + fi; \
  486. + dir0="$$dir0"/"$$first"; \
  487. + fi; \
  488. + fi; \
  489. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  490. + done; \
  491. + reldir="$$dir2"
  492. +DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
  493. +GZIP_ENV = --best
  494. +distuninstallcheck_listfiles = find . -type f -print
  495. +distcleancheck_listfiles = find . -type f -print
  496. +ACLOCAL = @ACLOCAL@
  497. +ALLOCA = @ALLOCA@
  498. +AMTAR = @AMTAR@
  499. +AR = @AR@
  500. +AUTOCONF = @AUTOCONF@
  501. +AUTOHEADER = @AUTOHEADER@
  502. +AUTOMAKE = @AUTOMAKE@
  503. +AWK = @AWK@
  504. +CC = @CC@
  505. +CCDEPMODE = @CCDEPMODE@
  506. +CFLAGS = @CFLAGS@
  507. +CPP = @CPP@
  508. +CPPFLAGS = @CPPFLAGS@
  509. +CXX = @CXX@
  510. +CXXCPP = @CXXCPP@
  511. +CXXDEPMODE = @CXXDEPMODE@
  512. +CXXFLAGS = @CXXFLAGS@
  513. +CYGPATH_W = @CYGPATH_W@
  514. +DEBUGFLAGS = @DEBUGFLAGS@
  515. +DEFS = @DEFS@
  516. +DEPDIR = @DEPDIR@
  517. +DSYMUTIL = @DSYMUTIL@
  518. +DUMPBIN = @DUMPBIN@
  519. +ECHO_C = @ECHO_C@
  520. +ECHO_N = @ECHO_N@
  521. +ECHO_T = @ECHO_T@
  522. +EGREP = @EGREP@
  523. +EXEEXT = @EXEEXT@
  524. +FGREP = @FGREP@
  525. +GREP = @GREP@
  526. +INSTALL = @INSTALL@
  527. +INSTALL_DATA = @INSTALL_DATA@
  528. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  529. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  530. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  531. +LD = @LD@
  532. +LDFLAGS = @LDFLAGS@
  533. +LIBFLAGS = @LIBFLAGS@
  534. +LIBOBJS = @LIBOBJS@
  535. +LIBS = @LIBS@
  536. +LIBTOOL = @LIBTOOL@
  537. +LIPO = @LIPO@
  538. +LN_S = @LN_S@
  539. +LTLIBOBJS = @LTLIBOBJS@
  540. +LT_AGE = @LT_AGE@
  541. +LT_CURRENT = @LT_CURRENT@
  542. +LT_RELEASE = @LT_RELEASE@
  543. +LT_REVISION = @LT_REVISION@
  544. +MAKEINFO = @MAKEINFO@
  545. +MKDIR_P = @MKDIR_P@
  546. +NM = @NM@
  547. +NMEDIT = @NMEDIT@
  548. +OBJDUMP = @OBJDUMP@
  549. +OBJEXT = @OBJEXT@
  550. +OTOOL = @OTOOL@
  551. +OTOOL64 = @OTOOL64@
  552. +PACKAGE = @PACKAGE@
  553. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  554. +PACKAGE_DESCRIPTION = @PACKAGE_DESCRIPTION@
  555. +PACKAGE_NAME = @PACKAGE_NAME@
  556. +PACKAGE_STRING = @PACKAGE_STRING@
  557. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  558. +PACKAGE_URL = @PACKAGE_URL@
  559. +PACKAGE_VERSION = @PACKAGE_VERSION@
  560. +PATH_SEPARATOR = @PATH_SEPARATOR@
  561. +PLUGIN_DIR = @PLUGIN_DIR@
  562. +RANLIB = @RANLIB@
  563. +SED = @SED@
  564. +SET_MAKE = @SET_MAKE@
  565. +SHELL = @SHELL@
  566. +STRIP = @STRIP@
  567. +TS_CONF = @TS_CONF@
  568. +VERSION = @VERSION@
  569. +VIS_CFLAGS = @VIS_CFLAGS@
  570. +abs_builddir = @abs_builddir@
  571. +abs_srcdir = @abs_srcdir@
  572. +abs_top_builddir = @abs_top_builddir@
  573. +abs_top_srcdir = @abs_top_srcdir@
  574. +ac_ct_CC = @ac_ct_CC@
  575. +ac_ct_CXX = @ac_ct_CXX@
  576. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  577. +am__include = @am__include@
  578. +am__leading_dot = @am__leading_dot@
  579. +am__quote = @am__quote@
  580. +am__tar = @am__tar@
  581. +am__untar = @am__untar@
  582. +bindir = @bindir@
  583. +build = @build@
  584. +build_alias = @build_alias@
  585. +build_cpu = @build_cpu@
  586. +build_os = @build_os@
  587. +build_vendor = @build_vendor@
  588. +builddir = @builddir@
  589. +datadir = @datadir@
  590. +datarootdir = @datarootdir@
  591. +docdir = @docdir@
  592. +dvidir = @dvidir@
  593. +exec_prefix = @exec_prefix@
  594. +host = @host@
  595. +host_alias = @host_alias@
  596. +host_cpu = @host_cpu@
  597. +host_os = @host_os@
  598. +host_vendor = @host_vendor@
  599. +htmldir = @htmldir@
  600. +includedir = @includedir@
  601. +infodir = @infodir@
  602. +install_sh = @install_sh@
  603. +libdir = @libdir@
  604. +libexecdir = @libexecdir@
  605. +localedir = @localedir@
  606. +localstatedir = @localstatedir@
  607. +lt_ECHO = @lt_ECHO@
  608. +mandir = @mandir@
  609. +mkdir_p = @mkdir_p@
  610. +oldincludedir = @oldincludedir@
  611. +pdfdir = @pdfdir@
  612. +prefix = @prefix@
  613. +program_transform_name = @program_transform_name@
  614. +psdir = @psdir@
  615. +sbindir = @sbindir@
  616. +sharedstatedir = @sharedstatedir@
  617. +srcdir = @srcdir@
  618. +sysconfdir = @sysconfdir@
  619. +target_alias = @target_alias@
  620. +top_build_prefix = @top_build_prefix@
  621. +top_builddir = @top_builddir@
  622. +top_srcdir = @top_srcdir@
  623. +SUBDIRS = etc src plugins tests
  624. +EXTRA_DIST = autogen.sh
  625. +ACLOCAL_AMFLAGS = -I m4/internal -I m4/external
  626. +AUTOMAKE_OPTIONS = 1.6
  627. +pkgconfigdir = $(libdir)/pkgconfig
  628. +pkgconfig_DATA = $(PACKAGE)-$(LT_RELEASE).pc
  629. +all: config.h
  630. + $(MAKE) $(AM_MAKEFLAGS) all-recursive
  631. +
  632. +.SUFFIXES:
  633. +am--refresh:
  634. + @:
  635. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  636. + @for dep in $?; do \
  637. + case '$(am__configure_deps)' in \
  638. + *$$dep*) \
  639. + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
  640. + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
  641. + && exit 0; \
  642. + exit 1;; \
  643. + esac; \
  644. + done; \
  645. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  646. + $(am__cd) $(top_srcdir) && \
  647. + $(AUTOMAKE) --gnu Makefile
  648. +.PRECIOUS: Makefile
  649. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  650. + @case '$?' in \
  651. + *config.status*) \
  652. + echo ' $(SHELL) ./config.status'; \
  653. + $(SHELL) ./config.status;; \
  654. + *) \
  655. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
  656. + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
  657. + esac;
  658. +
  659. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  660. + $(SHELL) ./config.status --recheck
  661. +
  662. +$(top_srcdir)/configure: $(am__configure_deps)
  663. + $(am__cd) $(srcdir) && $(AUTOCONF)
  664. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  665. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  666. +$(am__aclocal_m4_deps):
  667. +
  668. +config.h: stamp-h1
  669. + @if test ! -f $@; then \
  670. + rm -f stamp-h1; \
  671. + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
  672. + else :; fi
  673. +
  674. +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
  675. + @rm -f stamp-h1
  676. + cd $(top_builddir) && $(SHELL) ./config.status config.h
  677. +$(srcdir)/config.h.in: $(am__configure_deps)
  678. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  679. + rm -f stamp-h1
  680. + touch $@
  681. +
  682. +distclean-hdr:
  683. + -rm -f config.h stamp-h1
  684. +
  685. +mostlyclean-libtool:
  686. + -rm -f *.lo
  687. +
  688. +clean-libtool:
  689. + -rm -rf .libs _libs
  690. +
  691. +distclean-libtool:
  692. + -rm -f libtool config.lt
  693. +install-pkgconfigDATA: $(pkgconfig_DATA)
  694. + @$(NORMAL_INSTALL)
  695. + test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
  696. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  697. + for p in $$list; do \
  698. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  699. + echo "$$d$$p"; \
  700. + done | $(am__base_list) | \
  701. + while read files; do \
  702. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
  703. + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
  704. + done
  705. +
  706. +uninstall-pkgconfigDATA:
  707. + @$(NORMAL_UNINSTALL)
  708. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  709. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  710. + test -n "$$files" || exit 0; \
  711. + echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
  712. + cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
  713. +
  714. +# This directory's subdirectories are mostly independent; you can cd
  715. +# into them and run `make' without going through this Makefile.
  716. +# To change the values of `make' variables: instead of editing Makefiles,
  717. +# (1) if the variable is set in `config.status', edit `config.status'
  718. +# (which will cause the Makefiles to be regenerated when you run `make');
  719. +# (2) otherwise, pass the desired values on the `make' command line.
  720. +$(RECURSIVE_TARGETS):
  721. + @fail= failcom='exit 1'; \
  722. + for f in x $$MAKEFLAGS; do \
  723. + case $$f in \
  724. + *=* | --[!k]*);; \
  725. + *k*) failcom='fail=yes';; \
  726. + esac; \
  727. + done; \
  728. + dot_seen=no; \
  729. + target=`echo $@ | sed s/-recursive//`; \
  730. + list='$(SUBDIRS)'; for subdir in $$list; do \
  731. + echo "Making $$target in $$subdir"; \
  732. + if test "$$subdir" = "."; then \
  733. + dot_seen=yes; \
  734. + local_target="$$target-am"; \
  735. + else \
  736. + local_target="$$target"; \
  737. + fi; \
  738. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  739. + || eval $$failcom; \
  740. + done; \
  741. + if test "$$dot_seen" = "no"; then \
  742. + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  743. + fi; test -z "$$fail"
  744. +
  745. +$(RECURSIVE_CLEAN_TARGETS):
  746. + @fail= failcom='exit 1'; \
  747. + for f in x $$MAKEFLAGS; do \
  748. + case $$f in \
  749. + *=* | --[!k]*);; \
  750. + *k*) failcom='fail=yes';; \
  751. + esac; \
  752. + done; \
  753. + dot_seen=no; \
  754. + case "$@" in \
  755. + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  756. + *) list='$(SUBDIRS)' ;; \
  757. + esac; \
  758. + rev=''; for subdir in $$list; do \
  759. + if test "$$subdir" = "."; then :; else \
  760. + rev="$$subdir $$rev"; \
  761. + fi; \
  762. + done; \
  763. + rev="$$rev ."; \
  764. + target=`echo $@ | sed s/-recursive//`; \
  765. + for subdir in $$rev; do \
  766. + echo "Making $$target in $$subdir"; \
  767. + if test "$$subdir" = "."; then \
  768. + local_target="$$target-am"; \
  769. + else \
  770. + local_target="$$target"; \
  771. + fi; \
  772. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  773. + || eval $$failcom; \
  774. + done && test -z "$$fail"
  775. +tags-recursive:
  776. + list='$(SUBDIRS)'; for subdir in $$list; do \
  777. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  778. + done
  779. +ctags-recursive:
  780. + list='$(SUBDIRS)'; for subdir in $$list; do \
  781. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  782. + done
  783. +
  784. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  785. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  786. + unique=`for i in $$list; do \
  787. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  788. + done | \
  789. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  790. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  791. + mkid -fID $$unique
  792. +tags: TAGS
  793. +
  794. +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  795. + $(TAGS_FILES) $(LISP)
  796. + set x; \
  797. + here=`pwd`; \
  798. + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  799. + include_option=--etags-include; \
  800. + empty_fix=.; \
  801. + else \
  802. + include_option=--include; \
  803. + empty_fix=; \
  804. + fi; \
  805. + list='$(SUBDIRS)'; for subdir in $$list; do \
  806. + if test "$$subdir" = .; then :; else \
  807. + test ! -f $$subdir/TAGS || \
  808. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  809. + fi; \
  810. + done; \
  811. + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  812. + unique=`for i in $$list; do \
  813. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  814. + done | \
  815. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  816. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  817. + shift; \
  818. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  819. + test -n "$$unique" || unique=$$empty_fix; \
  820. + if test $$# -gt 0; then \
  821. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  822. + "$$@" $$unique; \
  823. + else \
  824. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  825. + $$unique; \
  826. + fi; \
  827. + fi
  828. +ctags: CTAGS
  829. +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  830. + $(TAGS_FILES) $(LISP)
  831. + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  832. + unique=`for i in $$list; do \
  833. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  834. + done | \
  835. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  836. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  837. + test -z "$(CTAGS_ARGS)$$unique" \
  838. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  839. + $$unique
  840. +
  841. +GTAGS:
  842. + here=`$(am__cd) $(top_builddir) && pwd` \
  843. + && $(am__cd) $(top_srcdir) \
  844. + && gtags -i $(GTAGS_ARGS) "$$here"
  845. +
  846. +distclean-tags:
  847. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  848. +
  849. +distdir: $(DISTFILES)
  850. + $(am__remove_distdir)
  851. + test -d "$(distdir)" || mkdir "$(distdir)"
  852. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  853. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  854. + list='$(DISTFILES)'; \
  855. + dist_files=`for file in $$list; do echo $$file; done | \
  856. + sed -e "s|^$$srcdirstrip/||;t" \
  857. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  858. + case $$dist_files in \
  859. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  860. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  861. + sort -u` ;; \
  862. + esac; \
  863. + for file in $$dist_files; do \
  864. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  865. + if test -d $$d/$$file; then \
  866. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  867. + if test -d "$(distdir)/$$file"; then \
  868. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  869. + fi; \
  870. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  871. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  872. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  873. + fi; \
  874. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  875. + else \
  876. + test -f "$(distdir)/$$file" \
  877. + || cp -p $$d/$$file "$(distdir)/$$file" \
  878. + || exit 1; \
  879. + fi; \
  880. + done
  881. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  882. + if test "$$subdir" = .; then :; else \
  883. + test -d "$(distdir)/$$subdir" \
  884. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  885. + || exit 1; \
  886. + fi; \
  887. + done
  888. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  889. + if test "$$subdir" = .; then :; else \
  890. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  891. + $(am__relativize); \
  892. + new_distdir=$$reldir; \
  893. + dir1=$$subdir; dir2="$(top_distdir)"; \
  894. + $(am__relativize); \
  895. + new_top_distdir=$$reldir; \
  896. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  897. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  898. + ($(am__cd) $$subdir && \
  899. + $(MAKE) $(AM_MAKEFLAGS) \
  900. + top_distdir="$$new_top_distdir" \
  901. + distdir="$$new_distdir" \
  902. + am__remove_distdir=: \
  903. + am__skip_length_check=: \
  904. + am__skip_mode_fix=: \
  905. + distdir) \
  906. + || exit 1; \
  907. + fi; \
  908. + done
  909. + -test -n "$(am__skip_mode_fix)" \
  910. + || find "$(distdir)" -type d ! -perm -755 \
  911. + -exec chmod u+rwx,go+rx {} \; -o \
  912. + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  913. + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  914. + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  915. + || chmod -R a+r "$(distdir)"
  916. +dist-gzip: distdir
  917. + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  918. + $(am__remove_distdir)
  919. +dist-bzip2: distdir
  920. + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  921. + $(am__remove_distdir)
  922. +
  923. +dist-lzma: distdir
  924. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  925. + $(am__remove_distdir)
  926. +
  927. +dist-xz: distdir
  928. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  929. + $(am__remove_distdir)
  930. +
  931. +dist-tarZ: distdir
  932. + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  933. + $(am__remove_distdir)
  934. +
  935. +dist-shar: distdir
  936. + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
  937. + $(am__remove_distdir)
  938. +
  939. +dist-zip: distdir
  940. + -rm -f $(distdir).zip
  941. + zip -rq $(distdir).zip $(distdir)
  942. + $(am__remove_distdir)
  943. +
  944. +dist dist-all: distdir
  945. + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  946. + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  947. + $(am__remove_distdir)
  948. +
  949. +# This target untars the dist file and tries a VPATH configuration. Then
  950. +# it guarantees that the distribution is self-contained by making another
  951. +# tarfile.
  952. +distcheck: dist
  953. + case '$(DIST_ARCHIVES)' in \
  954. + *.tar.gz*) \
  955. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  956. + *.tar.bz2*) \
  957. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  958. + *.tar.lzma*) \
  959. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  960. + *.tar.xz*) \
  961. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  962. + *.tar.Z*) \
  963. + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  964. + *.shar.gz*) \
  965. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  966. + *.zip*) \
  967. + unzip $(distdir).zip ;;\
  968. + esac
  969. + chmod -R a-w $(distdir); chmod a+w $(distdir)
  970. + mkdir $(distdir)/_build
  971. + mkdir $(distdir)/_inst
  972. + chmod a-w $(distdir)
  973. + test -d $(distdir)/_build || exit 0; \
  974. + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  975. + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  976. + && am__cwd=`pwd` \
  977. + && $(am__cd) $(distdir)/_build \
  978. + && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  979. + $(DISTCHECK_CONFIGURE_FLAGS) \
  980. + && $(MAKE) $(AM_MAKEFLAGS) \
  981. + && $(MAKE) $(AM_MAKEFLAGS) dvi \
  982. + && $(MAKE) $(AM_MAKEFLAGS) check \
  983. + && $(MAKE) $(AM_MAKEFLAGS) install \
  984. + && $(MAKE) $(AM_MAKEFLAGS) installcheck \
  985. + && $(MAKE) $(AM_MAKEFLAGS) uninstall \
  986. + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
  987. + distuninstallcheck \
  988. + && chmod -R a-w "$$dc_install_base" \
  989. + && ({ \
  990. + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
  991. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
  992. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
  993. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
  994. + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
  995. + } || { rm -rf "$$dc_destdir"; exit 1; }) \
  996. + && rm -rf "$$dc_destdir" \
  997. + && $(MAKE) $(AM_MAKEFLAGS) dist \
  998. + && rm -rf $(DIST_ARCHIVES) \
  999. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  1000. + && cd "$$am__cwd" \
  1001. + || exit 1
  1002. + $(am__remove_distdir)
  1003. + @(echo "$(distdir) archives ready for distribution: "; \
  1004. + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  1005. + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  1006. +distuninstallcheck:
  1007. + @$(am__cd) '$(distuninstallcheck_dir)' \
  1008. + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  1009. + || { echo "ERROR: files left after uninstall:" ; \
  1010. + if test -n "$(DESTDIR)"; then \
  1011. + echo " (check DESTDIR support)"; \
  1012. + fi ; \
  1013. + $(distuninstallcheck_listfiles) ; \
  1014. + exit 1; } >&2
  1015. +distcleancheck: distclean
  1016. + @if test '$(srcdir)' = . ; then \
  1017. + echo "ERROR: distcleancheck can only run from a VPATH build" ; \
  1018. + exit 1 ; \
  1019. + fi
  1020. + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
  1021. + || { echo "ERROR: files left in build directory after distclean:" ; \
  1022. + $(distcleancheck_listfiles) ; \
  1023. + exit 1; } >&2
  1024. +check-am: all-am
  1025. +check: check-recursive
  1026. +all-am: Makefile $(DATA) config.h
  1027. +installdirs: installdirs-recursive
  1028. +installdirs-am:
  1029. + for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
  1030. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  1031. + done
  1032. +install: install-recursive
  1033. +install-exec: install-exec-recursive
  1034. +install-data: install-data-recursive
  1035. +uninstall: uninstall-recursive
  1036. +
  1037. +install-am: all-am
  1038. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  1039. +
  1040. +installcheck: installcheck-recursive
  1041. +install-strip:
  1042. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  1043. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  1044. + `test -z '$(STRIP)' || \
  1045. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  1046. +mostlyclean-generic:
  1047. +
  1048. +clean-generic:
  1049. +
  1050. +distclean-generic:
  1051. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  1052. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  1053. +
  1054. +maintainer-clean-generic:
  1055. + @echo "This command is intended for maintainers to use"
  1056. + @echo "it deletes files that may require special tools to rebuild."
  1057. +clean: clean-recursive
  1058. +
  1059. +clean-am: clean-generic clean-libtool mostlyclean-am
  1060. +
  1061. +distclean: distclean-recursive
  1062. + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
  1063. + -rm -f Makefile
  1064. +distclean-am: clean-am distclean-generic distclean-hdr \
  1065. + distclean-libtool distclean-tags
  1066. +
  1067. +dvi: dvi-recursive
  1068. +
  1069. +dvi-am:
  1070. +
  1071. +html: html-recursive
  1072. +
  1073. +html-am:
  1074. +
  1075. +info: info-recursive
  1076. +
  1077. +info-am:
  1078. +
  1079. +install-data-am: install-pkgconfigDATA
  1080. +
  1081. +install-dvi: install-dvi-recursive
  1082. +
  1083. +install-dvi-am:
  1084. +
  1085. +install-exec-am:
  1086. +
  1087. +install-html: install-html-recursive
  1088. +
  1089. +install-html-am:
  1090. +
  1091. +install-info: install-info-recursive
  1092. +
  1093. +install-info-am:
  1094. +
  1095. +install-man:
  1096. +
  1097. +install-pdf: install-pdf-recursive
  1098. +
  1099. +install-pdf-am:
  1100. +
  1101. +install-ps: install-ps-recursive
  1102. +
  1103. +install-ps-am:
  1104. +
  1105. +installcheck-am:
  1106. +
  1107. +maintainer-clean: maintainer-clean-recursive
  1108. + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
  1109. + -rm -rf $(top_srcdir)/autom4te.cache
  1110. + -rm -f Makefile
  1111. +maintainer-clean-am: distclean-am maintainer-clean-generic
  1112. +
  1113. +mostlyclean: mostlyclean-recursive
  1114. +
  1115. +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  1116. +
  1117. +pdf: pdf-recursive
  1118. +
  1119. +pdf-am:
  1120. +
  1121. +ps: ps-recursive
  1122. +
  1123. +ps-am:
  1124. +
  1125. +uninstall-am: uninstall-pkgconfigDATA
  1126. +
  1127. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  1128. + ctags-recursive install-am install-strip tags-recursive
  1129. +
  1130. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  1131. + all all-am am--refresh check check-am clean clean-generic \
  1132. + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  1133. + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
  1134. + distcheck distclean distclean-generic distclean-hdr \
  1135. + distclean-libtool distclean-tags distcleancheck distdir \
  1136. + distuninstallcheck dvi dvi-am html html-am info info-am \
  1137. + install install-am install-data install-data-am install-dvi \
  1138. + install-dvi-am install-exec install-exec-am install-html \
  1139. + install-html-am install-info install-info-am install-man \
  1140. + install-pdf install-pdf-am install-pkgconfigDATA install-ps \
  1141. + install-ps-am install-strip installcheck installcheck-am \
  1142. + installdirs installdirs-am maintainer-clean \
  1143. + maintainer-clean-generic mostlyclean mostlyclean-generic \
  1144. + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  1145. + uninstall uninstall-am uninstall-pkgconfigDATA
  1146. +
  1147. +
  1148. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  1149. +# Otherwise a system limit (for SysV at least) may be exceeded.
  1150. +.NOEXPORT:
  1151. diff -Nur tslib-1.0.orig/aclocal.m4 tslib-1.0/aclocal.m4
  1152. --- tslib-1.0.orig/aclocal.m4 1970-01-01 01:00:00.000000000 +0100
  1153. +++ tslib-1.0/aclocal.m4 2010-07-29 13:39:11.000000000 +0200
  1154. @@ -0,0 +1,970 @@
  1155. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  1156. +
  1157. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  1158. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  1159. +# This file is free software; the Free Software Foundation
  1160. +# gives unlimited permission to copy and/or distribute it,
  1161. +# with or without modifications, as long as this notice is preserved.
  1162. +
  1163. +# This program is distributed in the hope that it will be useful,
  1164. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  1165. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  1166. +# PARTICULAR PURPOSE.
  1167. +
  1168. +m4_ifndef([AC_AUTOCONF_VERSION],
  1169. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  1170. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  1171. +[m4_warning([this file was generated for autoconf 2.65.
  1172. +You have another version of autoconf. It may work, but is not guaranteed to.
  1173. +If you have problems, you may need to regenerate the build system entirely.
  1174. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  1175. +
  1176. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1177. +#
  1178. +# This file is free software; the Free Software Foundation
  1179. +# gives unlimited permission to copy and/or distribute it,
  1180. +# with or without modifications, as long as this notice is preserved.
  1181. +
  1182. +# AM_AUTOMAKE_VERSION(VERSION)
  1183. +# ----------------------------
  1184. +# Automake X.Y traces this macro to ensure aclocal.m4 has been
  1185. +# generated from the m4 files accompanying Automake X.Y.
  1186. +# (This private macro should not be called outside this file.)
  1187. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  1188. +[am__api_version='1.11'
  1189. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  1190. +dnl require some minimum version. Point them to the right macro.
  1191. +m4_if([$1], [1.11.1], [],
  1192. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  1193. +])
  1194. +
  1195. +# _AM_AUTOCONF_VERSION(VERSION)
  1196. +# -----------------------------
  1197. +# aclocal traces this macro to find the Autoconf version.
  1198. +# This is a private macro too. Using m4_define simplifies
  1199. +# the logic in aclocal, which can simply ignore this definition.
  1200. +m4_define([_AM_AUTOCONF_VERSION], [])
  1201. +
  1202. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  1203. +# -------------------------------
  1204. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  1205. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  1206. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  1207. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  1208. +m4_ifndef([AC_AUTOCONF_VERSION],
  1209. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  1210. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  1211. +
  1212. +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
  1213. +
  1214. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  1215. +#
  1216. +# This file is free software; the Free Software Foundation
  1217. +# gives unlimited permission to copy and/or distribute it,
  1218. +# with or without modifications, as long as this notice is preserved.
  1219. +
  1220. +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  1221. +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  1222. +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  1223. +#
  1224. +# Of course, Automake must honor this variable whenever it calls a
  1225. +# tool from the auxiliary directory. The problem is that $srcdir (and
  1226. +# therefore $ac_aux_dir as well) can be either absolute or relative,
  1227. +# depending on how configure is run. This is pretty annoying, since
  1228. +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
  1229. +# source directory, any form will work fine, but in subdirectories a
  1230. +# relative path needs to be adjusted first.
  1231. +#
  1232. +# $ac_aux_dir/missing
  1233. +# fails when called from a subdirectory if $ac_aux_dir is relative
  1234. +# $top_srcdir/$ac_aux_dir/missing
  1235. +# fails if $ac_aux_dir is absolute,
  1236. +# fails when called from a subdirectory in a VPATH build with
  1237. +# a relative $ac_aux_dir
  1238. +#
  1239. +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  1240. +# are both prefixed by $srcdir. In an in-source build this is usually
  1241. +# harmless because $srcdir is `.', but things will broke when you
  1242. +# start a VPATH build or use an absolute $srcdir.
  1243. +#
  1244. +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  1245. +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  1246. +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  1247. +# and then we would define $MISSING as
  1248. +# MISSING="\${SHELL} $am_aux_dir/missing"
  1249. +# This will work as long as MISSING is not called from configure, because
  1250. +# unfortunately $(top_srcdir) has no meaning in configure.
  1251. +# However there are other variables, like CC, which are often used in
  1252. +# configure, and could therefore not use this "fixed" $ac_aux_dir.
  1253. +#
  1254. +# Another solution, used here, is to always expand $ac_aux_dir to an
  1255. +# absolute PATH. The drawback is that using absolute paths prevent a
  1256. +# configured tree to be moved without reconfiguration.
  1257. +
  1258. +AC_DEFUN([AM_AUX_DIR_EXPAND],
  1259. +[dnl Rely on autoconf to set up CDPATH properly.
  1260. +AC_PREREQ([2.50])dnl
  1261. +# expand $ac_aux_dir to an absolute path
  1262. +am_aux_dir=`cd $ac_aux_dir && pwd`
  1263. +])
  1264. +
  1265. +# AM_CONDITIONAL -*- Autoconf -*-
  1266. +
  1267. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  1268. +# Free Software Foundation, Inc.
  1269. +#
  1270. +# This file is free software; the Free Software Foundation
  1271. +# gives unlimited permission to copy and/or distribute it,
  1272. +# with or without modifications, as long as this notice is preserved.
  1273. +
  1274. +# serial 9
  1275. +
  1276. +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  1277. +# -------------------------------------
  1278. +# Define a conditional.
  1279. +AC_DEFUN([AM_CONDITIONAL],
  1280. +[AC_PREREQ(2.52)dnl
  1281. + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  1282. + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  1283. +AC_SUBST([$1_TRUE])dnl
  1284. +AC_SUBST([$1_FALSE])dnl
  1285. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  1286. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  1287. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  1288. +if $2; then
  1289. + $1_TRUE=
  1290. + $1_FALSE='#'
  1291. +else
  1292. + $1_TRUE='#'
  1293. + $1_FALSE=
  1294. +fi
  1295. +AC_CONFIG_COMMANDS_PRE(
  1296. +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  1297. + AC_MSG_ERROR([[conditional "$1" was never defined.
  1298. +Usually this means the macro was only invoked conditionally.]])
  1299. +fi])])
  1300. +
  1301. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  1302. +# Free Software Foundation, Inc.
  1303. +#
  1304. +# This file is free software; the Free Software Foundation
  1305. +# gives unlimited permission to copy and/or distribute it,
  1306. +# with or without modifications, as long as this notice is preserved.
  1307. +
  1308. +# serial 10
  1309. +
  1310. +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  1311. +# written in clear, in which case automake, when reading aclocal.m4,
  1312. +# will think it sees a *use*, and therefore will trigger all it's
  1313. +# C support machinery. Also note that it means that autoscan, seeing
  1314. +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  1315. +
  1316. +
  1317. +# _AM_DEPENDENCIES(NAME)
  1318. +# ----------------------
  1319. +# See how the compiler implements dependency checking.
  1320. +# NAME is "CC", "CXX", "GCJ", or "OBJC".
  1321. +# We try a few techniques and use that to set a single cache variable.
  1322. +#
  1323. +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  1324. +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  1325. +# dependency, and given that the user is not expected to run this macro,
  1326. +# just rely on AC_PROG_CC.
  1327. +AC_DEFUN([_AM_DEPENDENCIES],
  1328. +[AC_REQUIRE([AM_SET_DEPDIR])dnl
  1329. +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  1330. +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  1331. +AC_REQUIRE([AM_DEP_TRACK])dnl
  1332. +
  1333. +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  1334. + [$1], CXX, [depcc="$CXX" am_compiler_list=],
  1335. + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  1336. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  1337. + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  1338. + [depcc="$$1" am_compiler_list=])
  1339. +
  1340. +AC_CACHE_CHECK([dependency style of $depcc],
  1341. + [am_cv_$1_dependencies_compiler_type],
  1342. +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  1343. + # We make a subdir and do the tests there. Otherwise we can end up
  1344. + # making bogus files that we don't know about and never remove. For
  1345. + # instance it was reported that on HP-UX the gcc test will end up
  1346. + # making a dummy file named `D' -- because `-MD' means `put the output
  1347. + # in D'.
  1348. + mkdir conftest.dir
  1349. + # Copy depcomp to subdir because otherwise we won't find it if we're
  1350. + # using a relative directory.
  1351. + cp "$am_depcomp" conftest.dir
  1352. + cd conftest.dir
  1353. + # We will build objects and dependencies in a subdirectory because
  1354. + # it helps to detect inapplicable dependency modes. For instance
  1355. + # both Tru64's cc and ICC support -MD to output dependencies as a
  1356. + # side effect of compilation, but ICC will put the dependencies in
  1357. + # the current directory while Tru64 will put them in the object
  1358. + # directory.
  1359. + mkdir sub
  1360. +
  1361. + am_cv_$1_dependencies_compiler_type=none
  1362. + if test "$am_compiler_list" = ""; then
  1363. + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  1364. + fi
  1365. + am__universal=false
  1366. + m4_case([$1], [CC],
  1367. + [case " $depcc " in #(
  1368. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  1369. + esac],
  1370. + [CXX],
  1371. + [case " $depcc " in #(
  1372. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  1373. + esac])
  1374. +
  1375. + for depmode in $am_compiler_list; do
  1376. + # Setup a source with many dependencies, because some compilers
  1377. + # like to wrap large dependency lists on column 80 (with \), and
  1378. + # we should not choose a depcomp mode which is confused by this.
  1379. + #
  1380. + # We need to recreate these files for each test, as the compiler may
  1381. + # overwrite some of them when testing with obscure command lines.
  1382. + # This happens at least with the AIX C compiler.
  1383. + : > sub/conftest.c
  1384. + for i in 1 2 3 4 5 6; do
  1385. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  1386. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  1387. + # Solaris 8's {/usr,}/bin/sh.
  1388. + touch sub/conftst$i.h
  1389. + done
  1390. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  1391. +
  1392. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  1393. + # mode. It turns out that the SunPro C++ compiler does not properly
  1394. + # handle `-M -o', and we need to detect this. Also, some Intel
  1395. + # versions had trouble with output in subdirs
  1396. + am__obj=sub/conftest.${OBJEXT-o}
  1397. + am__minus_obj="-o $am__obj"
  1398. + case $depmode in
  1399. + gcc)
  1400. + # This depmode causes a compiler race in universal mode.
  1401. + test "$am__universal" = false || continue
  1402. + ;;
  1403. + nosideeffect)
  1404. + # after this tag, mechanisms are not by side-effect, so they'll
  1405. + # only be used when explicitly requested
  1406. + if test "x$enable_dependency_tracking" = xyes; then
  1407. + continue
  1408. + else
  1409. + break
  1410. + fi
  1411. + ;;
  1412. + msvisualcpp | msvcmsys)
  1413. + # This compiler won't grok `-c -o', but also, the minuso test has
  1414. + # not run yet. These depmodes are late enough in the game, and
  1415. + # so weak that their functioning should not be impacted.
  1416. + am__obj=conftest.${OBJEXT-o}
  1417. + am__minus_obj=
  1418. + ;;
  1419. + none) break ;;
  1420. + esac
  1421. + if depmode=$depmode \
  1422. + source=sub/conftest.c object=$am__obj \
  1423. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  1424. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  1425. + >/dev/null 2>conftest.err &&
  1426. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  1427. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  1428. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  1429. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  1430. + # icc doesn't choke on unknown options, it will just issue warnings
  1431. + # or remarks (even with -Werror). So we grep stderr for any message
  1432. + # that says an option was ignored or not supported.
  1433. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  1434. + # icc: Command line warning: ignoring option '-M'; no argument required
  1435. + # The diagnosis changed in icc 8.0:
  1436. + # icc: Command line remark: option '-MP' not supported
  1437. + if (grep 'ignoring option' conftest.err ||
  1438. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  1439. + am_cv_$1_dependencies_compiler_type=$depmode
  1440. + break
  1441. + fi
  1442. + fi
  1443. + done
  1444. +
  1445. + cd ..
  1446. + rm -rf conftest.dir
  1447. +else
  1448. + am_cv_$1_dependencies_compiler_type=none
  1449. +fi
  1450. +])
  1451. +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  1452. +AM_CONDITIONAL([am__fastdep$1], [
  1453. + test "x$enable_dependency_tracking" != xno \
  1454. + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  1455. +])
  1456. +
  1457. +
  1458. +# AM_SET_DEPDIR
  1459. +# -------------
  1460. +# Choose a directory name for dependency files.
  1461. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  1462. +AC_DEFUN([AM_SET_DEPDIR],
  1463. +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  1464. +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  1465. +])
  1466. +
  1467. +
  1468. +# AM_DEP_TRACK
  1469. +# ------------
  1470. +AC_DEFUN([AM_DEP_TRACK],
  1471. +[AC_ARG_ENABLE(dependency-tracking,
  1472. +[ --disable-dependency-tracking speeds up one-time build
  1473. + --enable-dependency-tracking do not reject slow dependency extractors])
  1474. +if test "x$enable_dependency_tracking" != xno; then
  1475. + am_depcomp="$ac_aux_dir/depcomp"
  1476. + AMDEPBACKSLASH='\'
  1477. +fi
  1478. +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  1479. +AC_SUBST([AMDEPBACKSLASH])dnl
  1480. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  1481. +])
  1482. +
  1483. +# Generate code to set up dependency tracking. -*- Autoconf -*-
  1484. +
  1485. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  1486. +# Free Software Foundation, Inc.
  1487. +#
  1488. +# This file is free software; the Free Software Foundation
  1489. +# gives unlimited permission to copy and/or distribute it,
  1490. +# with or without modifications, as long as this notice is preserved.
  1491. +
  1492. +#serial 5
  1493. +
  1494. +# _AM_OUTPUT_DEPENDENCY_COMMANDS
  1495. +# ------------------------------
  1496. +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  1497. +[{
  1498. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  1499. + # are listed without --file. Let's play safe and only enable the eval
  1500. + # if we detect the quoting.
  1501. + case $CONFIG_FILES in
  1502. + *\'*) eval set x "$CONFIG_FILES" ;;
  1503. + *) set x $CONFIG_FILES ;;
  1504. + esac
  1505. + shift
  1506. + for mf
  1507. + do
  1508. + # Strip MF so we end up with the name of the file.
  1509. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  1510. + # Check whether this is an Automake generated Makefile or not.
  1511. + # We used to match only the files named `Makefile.in', but
  1512. + # some people rename them; so instead we look at the file content.
  1513. + # Grep'ing the first line is not enough: some people post-process
  1514. + # each Makefile.in and add a new line on top of each file to say so.
  1515. + # Grep'ing the whole file is not good either: AIX grep has a line
  1516. + # limit of 2048, but all sed's we know have understand at least 4000.
  1517. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  1518. + dirpart=`AS_DIRNAME("$mf")`
  1519. + else
  1520. + continue
  1521. + fi
  1522. + # Extract the definition of DEPDIR, am__include, and am__quote
  1523. + # from the Makefile without running `make'.
  1524. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  1525. + test -z "$DEPDIR" && continue
  1526. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  1527. + test -z "am__include" && continue
  1528. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  1529. + # When using ansi2knr, U may be empty or an underscore; expand it
  1530. + U=`sed -n 's/^U = //p' < "$mf"`
  1531. + # Find all dependency output files, they are included files with
  1532. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  1533. + # simplest approach to changing $(DEPDIR) to its actual value in the
  1534. + # expansion.
  1535. + for file in `sed -n "
  1536. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  1537. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  1538. + # Make sure the directory exists.
  1539. + test -f "$dirpart/$file" && continue
  1540. + fdir=`AS_DIRNAME(["$file"])`
  1541. + AS_MKDIR_P([$dirpart/$fdir])
  1542. + # echo "creating $dirpart/$file"
  1543. + echo '# dummy' > "$dirpart/$file"
  1544. + done
  1545. + done
  1546. +}
  1547. +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  1548. +
  1549. +
  1550. +# AM_OUTPUT_DEPENDENCY_COMMANDS
  1551. +# -----------------------------
  1552. +# This macro should only be invoked once -- use via AC_REQUIRE.
  1553. +#
  1554. +# This code is only required when automatic dependency tracking
  1555. +# is enabled. FIXME. This creates each `.P' file that we will
  1556. +# need in order to bootstrap the dependency handling code.
  1557. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  1558. +[AC_CONFIG_COMMANDS([depfiles],
  1559. + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  1560. + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  1561. +])
  1562. +
  1563. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  1564. +# Free Software Foundation, Inc.
  1565. +#
  1566. +# This file is free software; the Free Software Foundation
  1567. +# gives unlimited permission to copy and/or distribute it,
  1568. +# with or without modifications, as long as this notice is preserved.
  1569. +
  1570. +# serial 8
  1571. +
  1572. +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  1573. +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  1574. +
  1575. +# Do all the work for Automake. -*- Autoconf -*-
  1576. +
  1577. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  1578. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  1579. +#
  1580. +# This file is free software; the Free Software Foundation
  1581. +# gives unlimited permission to copy and/or distribute it,
  1582. +# with or without modifications, as long as this notice is preserved.
  1583. +
  1584. +# serial 16
  1585. +
  1586. +# This macro actually does too much. Some checks are only needed if
  1587. +# your package does certain things. But this isn't really a big deal.
  1588. +
  1589. +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  1590. +# AM_INIT_AUTOMAKE([OPTIONS])
  1591. +# -----------------------------------------------
  1592. +# The call with PACKAGE and VERSION arguments is the old style
  1593. +# call (pre autoconf-2.50), which is being phased out. PACKAGE
  1594. +# and VERSION should now be passed to AC_INIT and removed from
  1595. +# the call to AM_INIT_AUTOMAKE.
  1596. +# We support both call styles for the transition. After
  1597. +# the next Automake release, Autoconf can make the AC_INIT
  1598. +# arguments mandatory, and then we can depend on a new Autoconf
  1599. +# release and drop the old call support.
  1600. +AC_DEFUN([AM_INIT_AUTOMAKE],
  1601. +[AC_PREREQ([2.62])dnl
  1602. +dnl Autoconf wants to disallow AM_ names. We explicitly allow
  1603. +dnl the ones we care about.
  1604. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  1605. +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  1606. +AC_REQUIRE([AC_PROG_INSTALL])dnl
  1607. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  1608. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  1609. + # is not polluted with repeated "-I."
  1610. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  1611. + # test to see if srcdir already configured
  1612. + if test -f $srcdir/config.status; then
  1613. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  1614. + fi
  1615. +fi
  1616. +
  1617. +# test whether we have cygpath
  1618. +if test -z "$CYGPATH_W"; then
  1619. + if (cygpath --version) >/dev/null 2>/dev/null; then
  1620. + CYGPATH_W='cygpath -w'
  1621. + else
  1622. + CYGPATH_W=echo
  1623. + fi
  1624. +fi
  1625. +AC_SUBST([CYGPATH_W])
  1626. +
  1627. +# Define the identity of the package.
  1628. +dnl Distinguish between old-style and new-style calls.
  1629. +m4_ifval([$2],
  1630. +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  1631. + AC_SUBST([PACKAGE], [$1])dnl
  1632. + AC_SUBST([VERSION], [$2])],
  1633. +[_AM_SET_OPTIONS([$1])dnl
  1634. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  1635. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  1636. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  1637. + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  1638. + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  1639. +
  1640. +_AM_IF_OPTION([no-define],,
  1641. +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  1642. + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  1643. +
  1644. +# Some tools Automake needs.
  1645. +AC_REQUIRE([AM_SANITY_CHECK])dnl
  1646. +AC_REQUIRE([AC_ARG_PROGRAM])dnl
  1647. +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  1648. +AM_MISSING_PROG(AUTOCONF, autoconf)
  1649. +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  1650. +AM_MISSING_PROG(AUTOHEADER, autoheader)
  1651. +AM_MISSING_PROG(MAKEINFO, makeinfo)
  1652. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  1653. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  1654. +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  1655. +# We need awk for the "check" target. The system "awk" is bad on
  1656. +# some platforms.
  1657. +AC_REQUIRE([AC_PROG_AWK])dnl
  1658. +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  1659. +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  1660. +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  1661. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  1662. + [_AM_PROG_TAR([v7])])])
  1663. +_AM_IF_OPTION([no-dependencies],,
  1664. +[AC_PROVIDE_IFELSE([AC_PROG_CC],
  1665. + [_AM_DEPENDENCIES(CC)],
  1666. + [define([AC_PROG_CC],
  1667. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  1668. +AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1669. + [_AM_DEPENDENCIES(CXX)],
  1670. + [define([AC_PROG_CXX],
  1671. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  1672. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  1673. + [_AM_DEPENDENCIES(OBJC)],
  1674. + [define([AC_PROG_OBJC],
  1675. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  1676. +])
  1677. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  1678. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  1679. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  1680. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  1681. +AC_CONFIG_COMMANDS_PRE(dnl
  1682. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  1683. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  1684. +])
  1685. +
  1686. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  1687. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  1688. +dnl mangled by Autoconf and run in a shell conditional statement.
  1689. +m4_define([_AC_COMPILER_EXEEXT],
  1690. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  1691. +
  1692. +
  1693. +# When config.status generates a header, we must update the stamp-h file.
  1694. +# This file resides in the same directory as the config header
  1695. +# that is generated. The stamp files are numbered to have different names.
  1696. +
  1697. +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  1698. +# loop where config.status creates the headers, so we can generate
  1699. +# our stamp files there.
  1700. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  1701. +[# Compute $1's index in $config_headers.
  1702. +_am_arg=$1
  1703. +_am_stamp_count=1
  1704. +for _am_header in $config_headers :; do
  1705. + case $_am_header in
  1706. + $_am_arg | $_am_arg:* )
  1707. + break ;;
  1708. + * )
  1709. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  1710. + esac
  1711. +done
  1712. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  1713. +
  1714. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  1715. +#
  1716. +# This file is free software; the Free Software Foundation
  1717. +# gives unlimited permission to copy and/or distribute it,
  1718. +# with or without modifications, as long as this notice is preserved.
  1719. +
  1720. +# AM_PROG_INSTALL_SH
  1721. +# ------------------
  1722. +# Define $install_sh.
  1723. +AC_DEFUN([AM_PROG_INSTALL_SH],
  1724. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1725. +if test x"${install_sh}" != xset; then
  1726. + case $am_aux_dir in
  1727. + *\ * | *\ *)
  1728. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  1729. + *)
  1730. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  1731. + esac
  1732. +fi
  1733. +AC_SUBST(install_sh)])
  1734. +
  1735. +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  1736. +#
  1737. +# This file is free software; the Free Software Foundation
  1738. +# gives unlimited permission to copy and/or distribute it,
  1739. +# with or without modifications, as long as this notice is preserved.
  1740. +
  1741. +# serial 2
  1742. +
  1743. +# Check whether the underlying file-system supports filenames
  1744. +# with a leading dot. For instance MS-DOS doesn't.
  1745. +AC_DEFUN([AM_SET_LEADING_DOT],
  1746. +[rm -rf .tst 2>/dev/null
  1747. +mkdir .tst 2>/dev/null
  1748. +if test -d .tst; then
  1749. + am__leading_dot=.
  1750. +else
  1751. + am__leading_dot=_
  1752. +fi
  1753. +rmdir .tst 2>/dev/null
  1754. +AC_SUBST([am__leading_dot])])
  1755. +
  1756. +# Check to see how 'make' treats includes. -*- Autoconf -*-
  1757. +
  1758. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  1759. +#
  1760. +# This file is free software; the Free Software Foundation
  1761. +# gives unlimited permission to copy and/or distribute it,
  1762. +# with or without modifications, as long as this notice is preserved.
  1763. +
  1764. +# serial 4
  1765. +
  1766. +# AM_MAKE_INCLUDE()
  1767. +# -----------------
  1768. +# Check to see how make treats includes.
  1769. +AC_DEFUN([AM_MAKE_INCLUDE],
  1770. +[am_make=${MAKE-make}
  1771. +cat > confinc << 'END'
  1772. +am__doit:
  1773. + @echo this is the am__doit target
  1774. +.PHONY: am__doit
  1775. +END
  1776. +# If we don't find an include directive, just comment out the code.
  1777. +AC_MSG_CHECKING([for style of include used by $am_make])
  1778. +am__include="#"
  1779. +am__quote=
  1780. +_am_result=none
  1781. +# First try GNU make style include.
  1782. +echo "include confinc" > confmf
  1783. +# Ignore all kinds of additional output from `make'.
  1784. +case `$am_make -s -f confmf 2> /dev/null` in #(
  1785. +*the\ am__doit\ target*)
  1786. + am__include=include
  1787. + am__quote=
  1788. + _am_result=GNU
  1789. + ;;
  1790. +esac
  1791. +# Now try BSD make style include.
  1792. +if test "$am__include" = "#"; then
  1793. + echo '.include "confinc"' > confmf
  1794. + case `$am_make -s -f confmf 2> /dev/null` in #(
  1795. + *the\ am__doit\ target*)
  1796. + am__include=.include
  1797. + am__quote="\""
  1798. + _am_result=BSD
  1799. + ;;
  1800. + esac
  1801. +fi
  1802. +AC_SUBST([am__include])
  1803. +AC_SUBST([am__quote])
  1804. +AC_MSG_RESULT([$_am_result])
  1805. +rm -f confinc confmf
  1806. +])
  1807. +
  1808. +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  1809. +
  1810. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  1811. +# Free Software Foundation, Inc.
  1812. +#
  1813. +# This file is free software; the Free Software Foundation
  1814. +# gives unlimited permission to copy and/or distribute it,
  1815. +# with or without modifications, as long as this notice is preserved.
  1816. +
  1817. +# serial 6
  1818. +
  1819. +# AM_MISSING_PROG(NAME, PROGRAM)
  1820. +# ------------------------------
  1821. +AC_DEFUN([AM_MISSING_PROG],
  1822. +[AC_REQUIRE([AM_MISSING_HAS_RUN])
  1823. +$1=${$1-"${am_missing_run}$2"}
  1824. +AC_SUBST($1)])
  1825. +
  1826. +
  1827. +# AM_MISSING_HAS_RUN
  1828. +# ------------------
  1829. +# Define MISSING if not defined so far and test if it supports --run.
  1830. +# If it does, set am_missing_run to use it, otherwise, to nothing.
  1831. +AC_DEFUN([AM_MISSING_HAS_RUN],
  1832. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1833. +AC_REQUIRE_AUX_FILE([missing])dnl
  1834. +if test x"${MISSING+set}" != xset; then
  1835. + case $am_aux_dir in
  1836. + *\ * | *\ *)
  1837. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  1838. + *)
  1839. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  1840. + esac
  1841. +fi
  1842. +# Use eval to expand $SHELL
  1843. +if eval "$MISSING --run true"; then
  1844. + am_missing_run="$MISSING --run "
  1845. +else
  1846. + am_missing_run=
  1847. + AC_MSG_WARN([`missing' script is too old or missing])
  1848. +fi
  1849. +])
  1850. +
  1851. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1852. +#
  1853. +# This file is free software; the Free Software Foundation
  1854. +# gives unlimited permission to copy and/or distribute it,
  1855. +# with or without modifications, as long as this notice is preserved.
  1856. +
  1857. +# AM_PROG_MKDIR_P
  1858. +# ---------------
  1859. +# Check for `mkdir -p'.
  1860. +AC_DEFUN([AM_PROG_MKDIR_P],
  1861. +[AC_PREREQ([2.60])dnl
  1862. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  1863. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  1864. +dnl while keeping a definition of mkdir_p for backward compatibility.
  1865. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  1866. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  1867. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  1868. +dnl adjustment using top_builddir (which is defined more often than
  1869. +dnl MKDIR_P).
  1870. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  1871. +case $mkdir_p in
  1872. + [[\\/$]]* | ?:[[\\/]]*) ;;
  1873. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1874. +esac
  1875. +])
  1876. +
  1877. +# Helper functions for option handling. -*- Autoconf -*-
  1878. +
  1879. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  1880. +#
  1881. +# This file is free software; the Free Software Foundation
  1882. +# gives unlimited permission to copy and/or distribute it,
  1883. +# with or without modifications, as long as this notice is preserved.
  1884. +
  1885. +# serial 4
  1886. +
  1887. +# _AM_MANGLE_OPTION(NAME)
  1888. +# -----------------------
  1889. +AC_DEFUN([_AM_MANGLE_OPTION],
  1890. +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  1891. +
  1892. +# _AM_SET_OPTION(NAME)
  1893. +# ------------------------------
  1894. +# Set option NAME. Presently that only means defining a flag for this option.
  1895. +AC_DEFUN([_AM_SET_OPTION],
  1896. +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  1897. +
  1898. +# _AM_SET_OPTIONS(OPTIONS)
  1899. +# ----------------------------------
  1900. +# OPTIONS is a space-separated list of Automake options.
  1901. +AC_DEFUN([_AM_SET_OPTIONS],
  1902. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  1903. +
  1904. +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  1905. +# -------------------------------------------
  1906. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  1907. +AC_DEFUN([_AM_IF_OPTION],
  1908. +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  1909. +
  1910. +# Check to make sure that the build environment is sane. -*- Autoconf -*-
  1911. +
  1912. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  1913. +# Free Software Foundation, Inc.
  1914. +#
  1915. +# This file is free software; the Free Software Foundation
  1916. +# gives unlimited permission to copy and/or distribute it,
  1917. +# with or without modifications, as long as this notice is preserved.
  1918. +
  1919. +# serial 5
  1920. +
  1921. +# AM_SANITY_CHECK
  1922. +# ---------------
  1923. +AC_DEFUN([AM_SANITY_CHECK],
  1924. +[AC_MSG_CHECKING([whether build environment is sane])
  1925. +# Just in case
  1926. +sleep 1
  1927. +echo timestamp > conftest.file
  1928. +# Reject unsafe characters in $srcdir or the absolute working directory
  1929. +# name. Accept space and tab only in the latter.
  1930. +am_lf='
  1931. +'
  1932. +case `pwd` in
  1933. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  1934. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  1935. +esac
  1936. +case $srcdir in
  1937. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  1938. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  1939. +esac
  1940. +
  1941. +# Do `set' in a subshell so we don't clobber the current shell's
  1942. +# arguments. Must try -L first in case configure is actually a
  1943. +# symlink; some systems play weird games with the mod time of symlinks
  1944. +# (eg FreeBSD returns the mod time of the symlink's containing
  1945. +# directory).
  1946. +if (
  1947. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  1948. + if test "$[*]" = "X"; then
  1949. + # -L didn't work.
  1950. + set X `ls -t "$srcdir/configure" conftest.file`
  1951. + fi
  1952. + rm -f conftest.file
  1953. + if test "$[*]" != "X $srcdir/configure conftest.file" \
  1954. + && test "$[*]" != "X conftest.file $srcdir/configure"; then
  1955. +
  1956. + # If neither matched, then we have a broken ls. This can happen
  1957. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  1958. + # broken ls alias from the environment. This has actually
  1959. + # happened. Such a system could not be considered "sane".
  1960. + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  1961. +alias in your environment])
  1962. + fi
  1963. +
  1964. + test "$[2]" = conftest.file
  1965. + )
  1966. +then
  1967. + # Ok.
  1968. + :
  1969. +else
  1970. + AC_MSG_ERROR([newly created file is older than distributed files!
  1971. +Check your system clock])
  1972. +fi
  1973. +AC_MSG_RESULT(yes)])
  1974. +
  1975. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  1976. +#
  1977. +# This file is free software; the Free Software Foundation
  1978. +# gives unlimited permission to copy and/or distribute it,
  1979. +# with or without modifications, as long as this notice is preserved.
  1980. +
  1981. +# AM_PROG_INSTALL_STRIP
  1982. +# ---------------------
  1983. +# One issue with vendor `install' (even GNU) is that you can't
  1984. +# specify the program used to strip binaries. This is especially
  1985. +# annoying in cross-compiling environments, where the build's strip
  1986. +# is unlikely to handle the host's binaries.
  1987. +# Fortunately install-sh will honor a STRIPPROG variable, so we
  1988. +# always use install-sh in `make install-strip', and initialize
  1989. +# STRIPPROG with the value of the STRIP variable (set by the user).
  1990. +AC_DEFUN([AM_PROG_INSTALL_STRIP],
  1991. +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  1992. +# Installed binaries are usually stripped using `strip' when the user
  1993. +# run `make install-strip'. However `strip' might not be the right
  1994. +# tool to use in cross-compilation environments, therefore Automake
  1995. +# will honor the `STRIP' environment variable to overrule this program.
  1996. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  1997. +if test "$cross_compiling" != no; then
  1998. + AC_CHECK_TOOL([STRIP], [strip], :)
  1999. +fi
  2000. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2001. +AC_SUBST([INSTALL_STRIP_PROGRAM])])
  2002. +
  2003. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  2004. +#
  2005. +# This file is free software; the Free Software Foundation
  2006. +# gives unlimited permission to copy and/or distribute it,
  2007. +# with or without modifications, as long as this notice is preserved.
  2008. +
  2009. +# serial 2
  2010. +
  2011. +# _AM_SUBST_NOTMAKE(VARIABLE)
  2012. +# ---------------------------
  2013. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  2014. +# This macro is traced by Automake.
  2015. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  2016. +
  2017. +# AM_SUBST_NOTMAKE(VARIABLE)
  2018. +# ---------------------------
  2019. +# Public sister of _AM_SUBST_NOTMAKE.
  2020. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  2021. +
  2022. +# Check how to create a tarball. -*- Autoconf -*-
  2023. +
  2024. +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  2025. +#
  2026. +# This file is free software; the Free Software Foundation
  2027. +# gives unlimited permission to copy and/or distribute it,
  2028. +# with or without modifications, as long as this notice is preserved.
  2029. +
  2030. +# serial 2
  2031. +
  2032. +# _AM_PROG_TAR(FORMAT)
  2033. +# --------------------
  2034. +# Check how to create a tarball in format FORMAT.
  2035. +# FORMAT should be one of `v7', `ustar', or `pax'.
  2036. +#
  2037. +# Substitute a variable $(am__tar) that is a command
  2038. +# writing to stdout a FORMAT-tarball containing the directory
  2039. +# $tardir.
  2040. +# tardir=directory && $(am__tar) > result.tar
  2041. +#
  2042. +# Substitute a variable $(am__untar) that extract such
  2043. +# a tarball read from stdin.
  2044. +# $(am__untar) < result.tar
  2045. +AC_DEFUN([_AM_PROG_TAR],
  2046. +[# Always define AMTAR for backward compatibility.
  2047. +AM_MISSING_PROG([AMTAR], [tar])
  2048. +m4_if([$1], [v7],
  2049. + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  2050. + [m4_case([$1], [ustar],, [pax],,
  2051. + [m4_fatal([Unknown tar format])])
  2052. +AC_MSG_CHECKING([how to create a $1 tar archive])
  2053. +# Loop over all known methods to create a tar archive until one works.
  2054. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  2055. +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  2056. +# Do not fold the above two line into one, because Tru64 sh and
  2057. +# Solaris sh will not grok spaces in the rhs of `-'.
  2058. +for _am_tool in $_am_tools
  2059. +do
  2060. + case $_am_tool in
  2061. + gnutar)
  2062. + for _am_tar in tar gnutar gtar;
  2063. + do
  2064. + AM_RUN_LOG([$_am_tar --version]) && break
  2065. + done
  2066. + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  2067. + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  2068. + am__untar="$_am_tar -xf -"
  2069. + ;;
  2070. + plaintar)
  2071. + # Must skip GNU tar: if it does not support --format= it doesn't create
  2072. + # ustar tarball either.
  2073. + (tar --version) >/dev/null 2>&1 && continue
  2074. + am__tar='tar chf - "$$tardir"'
  2075. + am__tar_='tar chf - "$tardir"'
  2076. + am__untar='tar xf -'
  2077. + ;;
  2078. + pax)
  2079. + am__tar='pax -L -x $1 -w "$$tardir"'
  2080. + am__tar_='pax -L -x $1 -w "$tardir"'
  2081. + am__untar='pax -r'
  2082. + ;;
  2083. + cpio)
  2084. + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  2085. + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  2086. + am__untar='cpio -i -H $1 -d'
  2087. + ;;
  2088. + none)
  2089. + am__tar=false
  2090. + am__tar_=false
  2091. + am__untar=false
  2092. + ;;
  2093. + esac
  2094. +
  2095. + # If the value was cached, stop now. We just wanted to have am__tar
  2096. + # and am__untar set.
  2097. + test -n "${am_cv_prog_tar_$1}" && break
  2098. +
  2099. + # tar/untar a dummy directory, and stop if the command works
  2100. + rm -rf conftest.dir
  2101. + mkdir conftest.dir
  2102. + echo GrepMe > conftest.dir/file
  2103. + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  2104. + rm -rf conftest.dir
  2105. + if test -s conftest.tar; then
  2106. + AM_RUN_LOG([$am__untar <conftest.tar])
  2107. + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  2108. + fi
  2109. +done
  2110. +rm -rf conftest.dir
  2111. +
  2112. +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  2113. +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  2114. +AC_SUBST([am__tar])
  2115. +AC_SUBST([am__untar])
  2116. +]) # _AM_PROG_TAR
  2117. +
  2118. +m4_include([m4/internal/libtool.m4])
  2119. +m4_include([m4/internal/ltoptions.m4])
  2120. +m4_include([m4/internal/ltsugar.m4])
  2121. +m4_include([m4/internal/ltversion.m4])
  2122. +m4_include([m4/internal/lt~obsolete.m4])
  2123. +m4_include([m4/internal/visibility.m4])
  2124. +m4_include([acinclude.m4])
  2125. diff -Nur tslib-1.0.orig/config.guess tslib-1.0/config.guess
  2126. --- tslib-1.0.orig/config.guess 1970-01-01 01:00:00.000000000 +0100
  2127. +++ tslib-1.0/config.guess 2010-07-29 13:39:11.000000000 +0200
  2128. @@ -0,0 +1,1533 @@
  2129. +#! /bin/sh
  2130. +# Attempt to guess a canonical system name.
  2131. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  2132. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  2133. +# Free Software Foundation, Inc.
  2134. +
  2135. +timestamp='2009-06-10'
  2136. +
  2137. +# This file is free software; you can redistribute it and/or modify it
  2138. +# under the terms of the GNU General Public License as published by
  2139. +# the Free Software Foundation; either version 2 of the License, or
  2140. +# (at your option) any later version.
  2141. +#
  2142. +# This program is distributed in the hope that it will be useful, but
  2143. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  2144. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  2145. +# General Public License for more details.
  2146. +#
  2147. +# You should have received a copy of the GNU General Public License
  2148. +# along with this program; if not, write to the Free Software
  2149. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  2150. +# 02110-1301, USA.
  2151. +#
  2152. +# As a special exception to the GNU General Public License, if you
  2153. +# distribute this file as part of a program that contains a
  2154. +# configuration script generated by Autoconf, you may include it under
  2155. +# the same distribution terms that you use for the rest of that program.
  2156. +
  2157. +
  2158. +# Originally written by Per Bothner <per@bothner.com>.
  2159. +# Please send patches to <config-patches@gnu.org>. Submit a context
  2160. +# diff and a properly formatted ChangeLog entry.
  2161. +#
  2162. +# This script attempts to guess a canonical system name similar to
  2163. +# config.sub. If it succeeds, it prints the system name on stdout, and
  2164. +# exits with 0. Otherwise, it exits with 1.
  2165. +#
  2166. +# The plan is that this can be called by configure scripts if you
  2167. +# don't specify an explicit build system type.
  2168. +
  2169. +me=`echo "$0" | sed -e 's,.*/,,'`
  2170. +
  2171. +usage="\
  2172. +Usage: $0 [OPTION]
  2173. +
  2174. +Output the configuration name of the system \`$me' is run on.
  2175. +
  2176. +Operation modes:
  2177. + -h, --help print this help, then exit
  2178. + -t, --time-stamp print date of last modification, then exit
  2179. + -v, --version print version number, then exit
  2180. +
  2181. +Report bugs and patches to <config-patches@gnu.org>."
  2182. +
  2183. +version="\
  2184. +GNU config.guess ($timestamp)
  2185. +
  2186. +Originally written by Per Bothner.
  2187. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  2188. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  2189. +
  2190. +This is free software; see the source for copying conditions. There is NO
  2191. +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  2192. +
  2193. +help="
  2194. +Try \`$me --help' for more information."
  2195. +
  2196. +# Parse command line
  2197. +while test $# -gt 0 ; do
  2198. + case $1 in
  2199. + --time-stamp | --time* | -t )
  2200. + echo "$timestamp" ; exit ;;
  2201. + --version | -v )
  2202. + echo "$version" ; exit ;;
  2203. + --help | --h* | -h )
  2204. + echo "$usage"; exit ;;
  2205. + -- ) # Stop option processing
  2206. + shift; break ;;
  2207. + - ) # Use stdin as input.
  2208. + break ;;
  2209. + -* )
  2210. + echo "$me: invalid option $1$help" >&2
  2211. + exit 1 ;;
  2212. + * )
  2213. + break ;;
  2214. + esac
  2215. +done
  2216. +
  2217. +if test $# != 0; then
  2218. + echo "$me: too many arguments$help" >&2
  2219. + exit 1
  2220. +fi
  2221. +
  2222. +trap 'exit 1' 1 2 15
  2223. +
  2224. +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
  2225. +# compiler to aid in system detection is discouraged as it requires
  2226. +# temporary files to be created and, as you can see below, it is a
  2227. +# headache to deal with in a portable fashion.
  2228. +
  2229. +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  2230. +# use `HOST_CC' if defined, but it is deprecated.
  2231. +
  2232. +# Portable tmp directory creation inspired by the Autoconf team.
  2233. +
  2234. +set_cc_for_build='
  2235. +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  2236. +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  2237. +: ${TMPDIR=/tmp} ;
  2238. + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  2239. + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  2240. + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  2241. + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  2242. +dummy=$tmp/dummy ;
  2243. +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
  2244. +case $CC_FOR_BUILD,$HOST_CC,$CC in
  2245. + ,,) echo "int x;" > $dummy.c ;
  2246. + for c in cc gcc c89 c99 ; do
  2247. + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
  2248. + CC_FOR_BUILD="$c"; break ;
  2249. + fi ;
  2250. + done ;
  2251. + if test x"$CC_FOR_BUILD" = x ; then
  2252. + CC_FOR_BUILD=no_compiler_found ;
  2253. + fi
  2254. + ;;
  2255. + ,,*) CC_FOR_BUILD=$CC ;;
  2256. + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  2257. +esac ; set_cc_for_build= ;'
  2258. +
  2259. +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  2260. +# (ghazi@noc.rutgers.edu 1994-08-24)
  2261. +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  2262. + PATH=$PATH:/.attbin ; export PATH
  2263. +fi
  2264. +
  2265. +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
  2266. +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
  2267. +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  2268. +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  2269. +
  2270. +# Note: order is significant - the case branches are not exclusive.
  2271. +
  2272. +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  2273. + *:NetBSD:*:*)
  2274. + # NetBSD (nbsd) targets should (where applicable) match one or
  2275. + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  2276. + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  2277. + # switched to ELF, *-*-netbsd* would select the old
  2278. + # object file format. This provides both forward
  2279. + # compatibility and a consistent mechanism for selecting the
  2280. + # object file format.
  2281. + #
  2282. + # Note: NetBSD doesn't particularly care about the vendor
  2283. + # portion of the name. We always set it to "unknown".
  2284. + sysctl="sysctl -n hw.machine_arch"
  2285. + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
  2286. + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
  2287. + case "${UNAME_MACHINE_ARCH}" in
  2288. + armeb) machine=armeb-unknown ;;
  2289. + arm*) machine=arm-unknown ;;
  2290. + sh3el) machine=shl-unknown ;;
  2291. + sh3eb) machine=sh-unknown ;;
  2292. + sh5el) machine=sh5le-unknown ;;
  2293. + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  2294. + esac
  2295. + # The Operating System including object format, if it has switched
  2296. + # to ELF recently, or will in the future.
  2297. + case "${UNAME_MACHINE_ARCH}" in
  2298. + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  2299. + eval $set_cc_for_build
  2300. + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  2301. + | grep -q __ELF__
  2302. + then
  2303. + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  2304. + # Return netbsd for either. FIX?
  2305. + os=netbsd
  2306. + else
  2307. + os=netbsdelf
  2308. + fi
  2309. + ;;
  2310. + *)
  2311. + os=netbsd
  2312. + ;;
  2313. + esac
  2314. + # The OS release
  2315. + # Debian GNU/NetBSD machines have a different userland, and
  2316. + # thus, need a distinct triplet. However, they do not need
  2317. + # kernel version information, so it can be replaced with a
  2318. + # suitable tag, in the style of linux-gnu.
  2319. + case "${UNAME_VERSION}" in
  2320. + Debian*)
  2321. + release='-gnu'
  2322. + ;;
  2323. + *)
  2324. + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  2325. + ;;
  2326. + esac
  2327. + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  2328. + # contains redundant information, the shorter form:
  2329. + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  2330. + echo "${machine}-${os}${release}"
  2331. + exit ;;
  2332. + *:OpenBSD:*:*)
  2333. + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  2334. + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  2335. + exit ;;
  2336. + *:ekkoBSD:*:*)
  2337. + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  2338. + exit ;;
  2339. + *:SolidBSD:*:*)
  2340. + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
  2341. + exit ;;
  2342. + macppc:MirBSD:*:*)
  2343. + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
  2344. + exit ;;
  2345. + *:MirBSD:*:*)
  2346. + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  2347. + exit ;;
  2348. + alpha:OSF1:*:*)
  2349. + case $UNAME_RELEASE in
  2350. + *4.0)
  2351. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  2352. + ;;
  2353. + *5.*)
  2354. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  2355. + ;;
  2356. + esac
  2357. + # According to Compaq, /usr/sbin/psrinfo has been available on
  2358. + # OSF/1 and Tru64 systems produced since 1995. I hope that
  2359. + # covers most systems running today. This code pipes the CPU
  2360. + # types through head -n 1, so we only detect the type of CPU 0.
  2361. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  2362. + case "$ALPHA_CPU_TYPE" in
  2363. + "EV4 (21064)")
  2364. + UNAME_MACHINE="alpha" ;;
  2365. + "EV4.5 (21064)")
  2366. + UNAME_MACHINE="alpha" ;;
  2367. + "LCA4 (21066/21068)")
  2368. + UNAME_MACHINE="alpha" ;;
  2369. + "EV5 (21164)")
  2370. + UNAME_MACHINE="alphaev5" ;;
  2371. + "EV5.6 (21164A)")
  2372. + UNAME_MACHINE="alphaev56" ;;
  2373. + "EV5.6 (21164PC)")
  2374. + UNAME_MACHINE="alphapca56" ;;
  2375. + "EV5.7 (21164PC)")
  2376. + UNAME_MACHINE="alphapca57" ;;
  2377. + "EV6 (21264)")
  2378. + UNAME_MACHINE="alphaev6" ;;
  2379. + "EV6.7 (21264A)")
  2380. + UNAME_MACHINE="alphaev67" ;;
  2381. + "EV6.8CB (21264C)")
  2382. + UNAME_MACHINE="alphaev68" ;;
  2383. + "EV6.8AL (21264B)")
  2384. + UNAME_MACHINE="alphaev68" ;;
  2385. + "EV6.8CX (21264D)")
  2386. + UNAME_MACHINE="alphaev68" ;;
  2387. + "EV6.9A (21264/EV69A)")
  2388. + UNAME_MACHINE="alphaev69" ;;
  2389. + "EV7 (21364)")
  2390. + UNAME_MACHINE="alphaev7" ;;
  2391. + "EV7.9 (21364A)")
  2392. + UNAME_MACHINE="alphaev79" ;;
  2393. + esac
  2394. + # A Pn.n version is a patched version.
  2395. + # A Vn.n version is a released version.
  2396. + # A Tn.n version is a released field test version.
  2397. + # A Xn.n version is an unreleased experimental baselevel.
  2398. + # 1.2 uses "1.2" for uname -r.
  2399. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  2400. + exit ;;
  2401. + Alpha\ *:Windows_NT*:*)
  2402. + # How do we know it's Interix rather than the generic POSIX subsystem?
  2403. + # Should we change UNAME_MACHINE based on the output of uname instead
  2404. + # of the specific Alpha model?
  2405. + echo alpha-pc-interix
  2406. + exit ;;
  2407. + 21064:Windows_NT:50:3)
  2408. + echo alpha-dec-winnt3.5
  2409. + exit ;;
  2410. + Amiga*:UNIX_System_V:4.0:*)
  2411. + echo m68k-unknown-sysv4
  2412. + exit ;;
  2413. + *:[Aa]miga[Oo][Ss]:*:*)
  2414. + echo ${UNAME_MACHINE}-unknown-amigaos
  2415. + exit ;;
  2416. + *:[Mm]orph[Oo][Ss]:*:*)
  2417. + echo ${UNAME_MACHINE}-unknown-morphos
  2418. + exit ;;
  2419. + *:OS/390:*:*)
  2420. + echo i370-ibm-openedition
  2421. + exit ;;
  2422. + *:z/VM:*:*)
  2423. + echo s390-ibm-zvmoe
  2424. + exit ;;
  2425. + *:OS400:*:*)
  2426. + echo powerpc-ibm-os400
  2427. + exit ;;
  2428. + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  2429. + echo arm-acorn-riscix${UNAME_RELEASE}
  2430. + exit ;;
  2431. + arm:riscos:*:*|arm:RISCOS:*:*)
  2432. + echo arm-unknown-riscos
  2433. + exit ;;
  2434. + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  2435. + echo hppa1.1-hitachi-hiuxmpp
  2436. + exit ;;
  2437. + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  2438. + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  2439. + if test "`(/bin/universe) 2>/dev/null`" = att ; then
  2440. + echo pyramid-pyramid-sysv3
  2441. + else
  2442. + echo pyramid-pyramid-bsd
  2443. + fi
  2444. + exit ;;
  2445. + NILE*:*:*:dcosx)
  2446. + echo pyramid-pyramid-svr4
  2447. + exit ;;
  2448. + DRS?6000:unix:4.0:6*)
  2449. + echo sparc-icl-nx6
  2450. + exit ;;
  2451. + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  2452. + case `/usr/bin/uname -p` in
  2453. + sparc) echo sparc-icl-nx7; exit ;;
  2454. + esac ;;
  2455. + s390x:SunOS:*:*)
  2456. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  2457. + exit ;;
  2458. + sun4H:SunOS:5.*:*)
  2459. + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  2460. + exit ;;
  2461. + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  2462. + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  2463. + exit ;;
  2464. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  2465. + eval $set_cc_for_build
  2466. + SUN_ARCH="i386"
  2467. + # If there is a compiler, see if it is configured for 64-bit objects.
  2468. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  2469. + # This test works for both compilers.
  2470. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  2471. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  2472. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  2473. + grep IS_64BIT_ARCH >/dev/null
  2474. + then
  2475. + SUN_ARCH="x86_64"
  2476. + fi
  2477. + fi
  2478. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  2479. + exit ;;
  2480. + sun4*:SunOS:6*:*)
  2481. + # According to config.sub, this is the proper way to canonicalize
  2482. + # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  2483. + # it's likely to be more like Solaris than SunOS4.
  2484. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  2485. + exit ;;
  2486. + sun4*:SunOS:*:*)
  2487. + case "`/usr/bin/arch -k`" in
  2488. + Series*|S4*)
  2489. + UNAME_RELEASE=`uname -v`
  2490. + ;;
  2491. + esac
  2492. + # Japanese Language versions have a version number like `4.1.3-JL'.
  2493. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  2494. + exit ;;
  2495. + sun3*:SunOS:*:*)
  2496. + echo m68k-sun-sunos${UNAME_RELEASE}
  2497. + exit ;;
  2498. + sun*:*:4.2BSD:*)
  2499. + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  2500. + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  2501. + case "`/bin/arch`" in
  2502. + sun3)
  2503. + echo m68k-sun-sunos${UNAME_RELEASE}
  2504. + ;;
  2505. + sun4)
  2506. + echo sparc-sun-sunos${UNAME_RELEASE}
  2507. + ;;
  2508. + esac
  2509. + exit ;;
  2510. + aushp:SunOS:*:*)
  2511. + echo sparc-auspex-sunos${UNAME_RELEASE}
  2512. + exit ;;
  2513. + # The situation for MiNT is a little confusing. The machine name
  2514. + # can be virtually everything (everything which is not
  2515. + # "atarist" or "atariste" at least should have a processor
  2516. + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
  2517. + # to the lowercase version "mint" (or "freemint"). Finally
  2518. + # the system name "TOS" denotes a system which is actually not
  2519. + # MiNT. But MiNT is downward compatible to TOS, so this should
  2520. + # be no problem.
  2521. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  2522. + echo m68k-atari-mint${UNAME_RELEASE}
  2523. + exit ;;
  2524. + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  2525. + echo m68k-atari-mint${UNAME_RELEASE}
  2526. + exit ;;
  2527. + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  2528. + echo m68k-atari-mint${UNAME_RELEASE}
  2529. + exit ;;
  2530. + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  2531. + echo m68k-milan-mint${UNAME_RELEASE}
  2532. + exit ;;
  2533. + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  2534. + echo m68k-hades-mint${UNAME_RELEASE}
  2535. + exit ;;
  2536. + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  2537. + echo m68k-unknown-mint${UNAME_RELEASE}
  2538. + exit ;;
  2539. + m68k:machten:*:*)
  2540. + echo m68k-apple-machten${UNAME_RELEASE}
  2541. + exit ;;
  2542. + powerpc:machten:*:*)
  2543. + echo powerpc-apple-machten${UNAME_RELEASE}
  2544. + exit ;;
  2545. + RISC*:Mach:*:*)
  2546. + echo mips-dec-mach_bsd4.3
  2547. + exit ;;
  2548. + RISC*:ULTRIX:*:*)
  2549. + echo mips-dec-ultrix${UNAME_RELEASE}
  2550. + exit ;;
  2551. + VAX*:ULTRIX*:*:*)
  2552. + echo vax-dec-ultrix${UNAME_RELEASE}
  2553. + exit ;;
  2554. + 2020:CLIX:*:* | 2430:CLIX:*:*)
  2555. + echo clipper-intergraph-clix${UNAME_RELEASE}
  2556. + exit ;;
  2557. + mips:*:*:UMIPS | mips:*:*:RISCos)
  2558. + eval $set_cc_for_build
  2559. + sed 's/^ //' << EOF >$dummy.c
  2560. +#ifdef __cplusplus
  2561. +#include <stdio.h> /* for printf() prototype */
  2562. + int main (int argc, char *argv[]) {
  2563. +#else
  2564. + int main (argc, argv) int argc; char *argv[]; {
  2565. +#endif
  2566. + #if defined (host_mips) && defined (MIPSEB)
  2567. + #if defined (SYSTYPE_SYSV)
  2568. + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
  2569. + #endif
  2570. + #if defined (SYSTYPE_SVR4)
  2571. + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
  2572. + #endif
  2573. + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
  2574. + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
  2575. + #endif
  2576. + #endif
  2577. + exit (-1);
  2578. + }
  2579. +EOF
  2580. + $CC_FOR_BUILD -o $dummy $dummy.c &&
  2581. + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  2582. + SYSTEM_NAME=`$dummy $dummyarg` &&
  2583. + { echo "$SYSTEM_NAME"; exit; }
  2584. + echo mips-mips-riscos${UNAME_RELEASE}
  2585. + exit ;;
  2586. + Motorola:PowerMAX_OS:*:*)
  2587. + echo powerpc-motorola-powermax
  2588. + exit ;;
  2589. + Motorola:*:4.3:PL8-*)
  2590. + echo powerpc-harris-powermax
  2591. + exit ;;
  2592. + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  2593. + echo powerpc-harris-powermax
  2594. + exit ;;
  2595. + Night_Hawk:Power_UNIX:*:*)
  2596. + echo powerpc-harris-powerunix
  2597. + exit ;;
  2598. + m88k:CX/UX:7*:*)
  2599. + echo m88k-harris-cxux7
  2600. + exit ;;
  2601. + m88k:*:4*:R4*)
  2602. + echo m88k-motorola-sysv4
  2603. + exit ;;
  2604. + m88k:*:3*:R3*)
  2605. + echo m88k-motorola-sysv3
  2606. + exit ;;
  2607. + AViiON:dgux:*:*)
  2608. + # DG/UX returns AViiON for all architectures
  2609. + UNAME_PROCESSOR=`/usr/bin/uname -p`
  2610. + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
  2611. + then
  2612. + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  2613. + [ ${TARGET_BINARY_INTERFACE}x = x ]
  2614. + then
  2615. + echo m88k-dg-dgux${UNAME_RELEASE}
  2616. + else
  2617. + echo m88k-dg-dguxbcs${UNAME_RELEASE}
  2618. + fi
  2619. + else
  2620. + echo i586-dg-dgux${UNAME_RELEASE}
  2621. + fi
  2622. + exit ;;
  2623. + M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  2624. + echo m88k-dolphin-sysv3
  2625. + exit ;;
  2626. + M88*:*:R3*:*)
  2627. + # Delta 88k system running SVR3
  2628. + echo m88k-motorola-sysv3
  2629. + exit ;;
  2630. + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  2631. + echo m88k-tektronix-sysv3
  2632. + exit ;;
  2633. + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  2634. + echo m68k-tektronix-bsd
  2635. + exit ;;
  2636. + *:IRIX*:*:*)
  2637. + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  2638. + exit ;;
  2639. + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  2640. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  2641. + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  2642. + i*86:AIX:*:*)
  2643. + echo i386-ibm-aix
  2644. + exit ;;
  2645. + ia64:AIX:*:*)
  2646. + if [ -x /usr/bin/oslevel ] ; then
  2647. + IBM_REV=`/usr/bin/oslevel`
  2648. + else
  2649. + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  2650. + fi
  2651. + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  2652. + exit ;;
  2653. + *:AIX:2:3)
  2654. + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  2655. + eval $set_cc_for_build
  2656. + sed 's/^ //' << EOF >$dummy.c
  2657. + #include <sys/systemcfg.h>
  2658. +
  2659. + main()
  2660. + {
  2661. + if (!__power_pc())
  2662. + exit(1);
  2663. + puts("powerpc-ibm-aix3.2.5");
  2664. + exit(0);
  2665. + }
  2666. +EOF
  2667. + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  2668. + then
  2669. + echo "$SYSTEM_NAME"
  2670. + else
  2671. + echo rs6000-ibm-aix3.2.5
  2672. + fi
  2673. + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  2674. + echo rs6000-ibm-aix3.2.4
  2675. + else
  2676. + echo rs6000-ibm-aix3.2
  2677. + fi
  2678. + exit ;;
  2679. + *:AIX:*:[456])
  2680. + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  2681. + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  2682. + IBM_ARCH=rs6000
  2683. + else
  2684. + IBM_ARCH=powerpc
  2685. + fi
  2686. + if [ -x /usr/bin/oslevel ] ; then
  2687. + IBM_REV=`/usr/bin/oslevel`
  2688. + else
  2689. + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  2690. + fi
  2691. + echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  2692. + exit ;;
  2693. + *:AIX:*:*)
  2694. + echo rs6000-ibm-aix
  2695. + exit ;;
  2696. + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  2697. + echo romp-ibm-bsd4.4
  2698. + exit ;;
  2699. + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  2700. + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  2701. + exit ;; # report: romp-ibm BSD 4.3
  2702. + *:BOSX:*:*)
  2703. + echo rs6000-bull-bosx
  2704. + exit ;;
  2705. + DPX/2?00:B.O.S.:*:*)
  2706. + echo m68k-bull-sysv3
  2707. + exit ;;
  2708. + 9000/[34]??:4.3bsd:1.*:*)
  2709. + echo m68k-hp-bsd
  2710. + exit ;;
  2711. + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  2712. + echo m68k-hp-bsd4.4
  2713. + exit ;;
  2714. + 9000/[34678]??:HP-UX:*:*)
  2715. + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  2716. + case "${UNAME_MACHINE}" in
  2717. + 9000/31? ) HP_ARCH=m68000 ;;
  2718. + 9000/[34]?? ) HP_ARCH=m68k ;;
  2719. + 9000/[678][0-9][0-9])
  2720. + if [ -x /usr/bin/getconf ]; then
  2721. + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  2722. + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  2723. + case "${sc_cpu_version}" in
  2724. + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  2725. + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  2726. + 532) # CPU_PA_RISC2_0
  2727. + case "${sc_kernel_bits}" in
  2728. + 32) HP_ARCH="hppa2.0n" ;;
  2729. + 64) HP_ARCH="hppa2.0w" ;;
  2730. + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  2731. + esac ;;
  2732. + esac
  2733. + fi
  2734. + if [ "${HP_ARCH}" = "" ]; then
  2735. + eval $set_cc_for_build
  2736. + sed 's/^ //' << EOF >$dummy.c
  2737. +
  2738. + #define _HPUX_SOURCE
  2739. + #include <stdlib.h>
  2740. + #include <unistd.h>
  2741. +
  2742. + int main ()
  2743. + {
  2744. + #if defined(_SC_KERNEL_BITS)
  2745. + long bits = sysconf(_SC_KERNEL_BITS);
  2746. + #endif
  2747. + long cpu = sysconf (_SC_CPU_VERSION);
  2748. +
  2749. + switch (cpu)
  2750. + {
  2751. + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  2752. + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  2753. + case CPU_PA_RISC2_0:
  2754. + #if defined(_SC_KERNEL_BITS)
  2755. + switch (bits)
  2756. + {
  2757. + case 64: puts ("hppa2.0w"); break;
  2758. + case 32: puts ("hppa2.0n"); break;
  2759. + default: puts ("hppa2.0"); break;
  2760. + } break;
  2761. + #else /* !defined(_SC_KERNEL_BITS) */
  2762. + puts ("hppa2.0"); break;
  2763. + #endif
  2764. + default: puts ("hppa1.0"); break;
  2765. + }
  2766. + exit (0);
  2767. + }
  2768. +EOF
  2769. + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  2770. + test -z "$HP_ARCH" && HP_ARCH=hppa
  2771. + fi ;;
  2772. + esac
  2773. + if [ ${HP_ARCH} = "hppa2.0w" ]
  2774. + then
  2775. + eval $set_cc_for_build
  2776. +
  2777. + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  2778. + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  2779. + # generating 64-bit code. GNU and HP use different nomenclature:
  2780. + #
  2781. + # $ CC_FOR_BUILD=cc ./config.guess
  2782. + # => hppa2.0w-hp-hpux11.23
  2783. + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  2784. + # => hppa64-hp-hpux11.23
  2785. +
  2786. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  2787. + grep -q __LP64__
  2788. + then
  2789. + HP_ARCH="hppa2.0w"
  2790. + else
  2791. + HP_ARCH="hppa64"
  2792. + fi
  2793. + fi
  2794. + echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  2795. + exit ;;
  2796. + ia64:HP-UX:*:*)
  2797. + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  2798. + echo ia64-hp-hpux${HPUX_REV}
  2799. + exit ;;
  2800. + 3050*:HI-UX:*:*)
  2801. + eval $set_cc_for_build
  2802. + sed 's/^ //' << EOF >$dummy.c
  2803. + #include <unistd.h>
  2804. + int
  2805. + main ()
  2806. + {
  2807. + long cpu = sysconf (_SC_CPU_VERSION);
  2808. + /* The order matters, because CPU_IS_HP_MC68K erroneously returns
  2809. + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
  2810. + results, however. */
  2811. + if (CPU_IS_PA_RISC (cpu))
  2812. + {
  2813. + switch (cpu)
  2814. + {
  2815. + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
  2816. + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
  2817. + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
  2818. + default: puts ("hppa-hitachi-hiuxwe2"); break;
  2819. + }
  2820. + }
  2821. + else if (CPU_IS_HP_MC68K (cpu))
  2822. + puts ("m68k-hitachi-hiuxwe2");
  2823. + else puts ("unknown-hitachi-hiuxwe2");
  2824. + exit (0);
  2825. + }
  2826. +EOF
  2827. + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  2828. + { echo "$SYSTEM_NAME"; exit; }
  2829. + echo unknown-hitachi-hiuxwe2
  2830. + exit ;;
  2831. + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  2832. + echo hppa1.1-hp-bsd
  2833. + exit ;;
  2834. + 9000/8??:4.3bsd:*:*)
  2835. + echo hppa1.0-hp-bsd
  2836. + exit ;;
  2837. + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  2838. + echo hppa1.0-hp-mpeix
  2839. + exit ;;
  2840. + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  2841. + echo hppa1.1-hp-osf
  2842. + exit ;;
  2843. + hp8??:OSF1:*:*)
  2844. + echo hppa1.0-hp-osf
  2845. + exit ;;
  2846. + i*86:OSF1:*:*)
  2847. + if [ -x /usr/sbin/sysversion ] ; then
  2848. + echo ${UNAME_MACHINE}-unknown-osf1mk
  2849. + else
  2850. + echo ${UNAME_MACHINE}-unknown-osf1
  2851. + fi
  2852. + exit ;;
  2853. + parisc*:Lites*:*:*)
  2854. + echo hppa1.1-hp-lites
  2855. + exit ;;
  2856. + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  2857. + echo c1-convex-bsd
  2858. + exit ;;
  2859. + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  2860. + if getsysinfo -f scalar_acc
  2861. + then echo c32-convex-bsd
  2862. + else echo c2-convex-bsd
  2863. + fi
  2864. + exit ;;
  2865. + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  2866. + echo c34-convex-bsd
  2867. + exit ;;
  2868. + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  2869. + echo c38-convex-bsd
  2870. + exit ;;
  2871. + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  2872. + echo c4-convex-bsd
  2873. + exit ;;
  2874. + CRAY*Y-MP:*:*:*)
  2875. + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  2876. + exit ;;
  2877. + CRAY*[A-Z]90:*:*:*)
  2878. + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  2879. + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  2880. + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  2881. + -e 's/\.[^.]*$/.X/'
  2882. + exit ;;
  2883. + CRAY*TS:*:*:*)
  2884. + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  2885. + exit ;;
  2886. + CRAY*T3E:*:*:*)
  2887. + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  2888. + exit ;;
  2889. + CRAY*SV1:*:*:*)
  2890. + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  2891. + exit ;;
  2892. + *:UNICOS/mp:*:*)
  2893. + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  2894. + exit ;;
  2895. + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  2896. + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  2897. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  2898. + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  2899. + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  2900. + exit ;;
  2901. + 5000:UNIX_System_V:4.*:*)
  2902. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  2903. + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  2904. + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  2905. + exit ;;
  2906. + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  2907. + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  2908. + exit ;;
  2909. + sparc*:BSD/OS:*:*)
  2910. + echo sparc-unknown-bsdi${UNAME_RELEASE}
  2911. + exit ;;
  2912. + *:BSD/OS:*:*)
  2913. + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  2914. + exit ;;
  2915. + *:FreeBSD:*:*)
  2916. + case ${UNAME_MACHINE} in
  2917. + pc98)
  2918. + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  2919. + amd64)
  2920. + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  2921. + *)
  2922. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  2923. + esac
  2924. + exit ;;
  2925. + i*:CYGWIN*:*)
  2926. + echo ${UNAME_MACHINE}-pc-cygwin
  2927. + exit ;;
  2928. + *:MINGW*:*)
  2929. + echo ${UNAME_MACHINE}-pc-mingw32
  2930. + exit ;;
  2931. + i*:windows32*:*)
  2932. + # uname -m includes "-pc" on this system.
  2933. + echo ${UNAME_MACHINE}-mingw32
  2934. + exit ;;
  2935. + i*:PW*:*)
  2936. + echo ${UNAME_MACHINE}-pc-pw32
  2937. + exit ;;
  2938. + *:Interix*:[3456]*)
  2939. + case ${UNAME_MACHINE} in
  2940. + x86)
  2941. + echo i586-pc-interix${UNAME_RELEASE}
  2942. + exit ;;
  2943. + EM64T | authenticamd | genuineintel)
  2944. + echo x86_64-unknown-interix${UNAME_RELEASE}
  2945. + exit ;;
  2946. + IA64)
  2947. + echo ia64-unknown-interix${UNAME_RELEASE}
  2948. + exit ;;
  2949. + esac ;;
  2950. + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  2951. + echo i${UNAME_MACHINE}-pc-mks
  2952. + exit ;;
  2953. + 8664:Windows_NT:*)
  2954. + echo x86_64-pc-mks
  2955. + exit ;;
  2956. + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  2957. + # How do we know it's Interix rather than the generic POSIX subsystem?
  2958. + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  2959. + # UNAME_MACHINE based on the output of uname instead of i386?
  2960. + echo i586-pc-interix
  2961. + exit ;;
  2962. + i*:UWIN*:*)
  2963. + echo ${UNAME_MACHINE}-pc-uwin
  2964. + exit ;;
  2965. + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  2966. + echo x86_64-unknown-cygwin
  2967. + exit ;;
  2968. + p*:CYGWIN*:*)
  2969. + echo powerpcle-unknown-cygwin
  2970. + exit ;;
  2971. + prep*:SunOS:5.*:*)
  2972. + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  2973. + exit ;;
  2974. + *:GNU:*:*)
  2975. + # the GNU system
  2976. + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  2977. + exit ;;
  2978. + *:GNU/*:*:*)
  2979. + # other systems with GNU libc and userland
  2980. + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  2981. + exit ;;
  2982. + i*86:Minix:*:*)
  2983. + echo ${UNAME_MACHINE}-pc-minix
  2984. + exit ;;
  2985. + arm*:Linux:*:*)
  2986. + eval $set_cc_for_build
  2987. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  2988. + | grep -q __ARM_EABI__
  2989. + then
  2990. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  2991. + else
  2992. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  2993. + fi
  2994. + exit ;;
  2995. + avr32*:Linux:*:*)
  2996. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  2997. + exit ;;
  2998. + cris:Linux:*:*)
  2999. + echo cris-axis-linux-gnu
  3000. + exit ;;
  3001. + crisv32:Linux:*:*)
  3002. + echo crisv32-axis-linux-gnu
  3003. + exit ;;
  3004. + frv:Linux:*:*)
  3005. + echo frv-unknown-linux-gnu
  3006. + exit ;;
  3007. + ia64:Linux:*:*)
  3008. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  3009. + exit ;;
  3010. + m32r*:Linux:*:*)
  3011. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  3012. + exit ;;
  3013. + m68*:Linux:*:*)
  3014. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  3015. + exit ;;
  3016. + mips:Linux:*:* | mips64:Linux:*:*)
  3017. + eval $set_cc_for_build
  3018. + sed 's/^ //' << EOF >$dummy.c
  3019. + #undef CPU
  3020. + #undef ${UNAME_MACHINE}
  3021. + #undef ${UNAME_MACHINE}el
  3022. + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  3023. + CPU=${UNAME_MACHINE}el
  3024. + #else
  3025. + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  3026. + CPU=${UNAME_MACHINE}
  3027. + #else
  3028. + CPU=
  3029. + #endif
  3030. + #endif
  3031. +EOF
  3032. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  3033. + /^CPU/{
  3034. + s: ::g
  3035. + p
  3036. + }'`"
  3037. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  3038. + ;;
  3039. + or32:Linux:*:*)
  3040. + echo or32-unknown-linux-gnu
  3041. + exit ;;
  3042. + ppc:Linux:*:*)
  3043. + echo powerpc-unknown-linux-gnu
  3044. + exit ;;
  3045. + ppc64:Linux:*:*)
  3046. + echo powerpc64-unknown-linux-gnu
  3047. + exit ;;
  3048. + alpha:Linux:*:*)
  3049. + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  3050. + EV5) UNAME_MACHINE=alphaev5 ;;
  3051. + EV56) UNAME_MACHINE=alphaev56 ;;
  3052. + PCA56) UNAME_MACHINE=alphapca56 ;;
  3053. + PCA57) UNAME_MACHINE=alphapca56 ;;
  3054. + EV6) UNAME_MACHINE=alphaev6 ;;
  3055. + EV67) UNAME_MACHINE=alphaev67 ;;
  3056. + EV68*) UNAME_MACHINE=alphaev68 ;;
  3057. + esac
  3058. + objdump --private-headers /bin/sh | grep -q ld.so.1
  3059. + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  3060. + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  3061. + exit ;;
  3062. + padre:Linux:*:*)
  3063. + echo sparc-unknown-linux-gnu
  3064. + exit ;;
  3065. + parisc:Linux:*:* | hppa:Linux:*:*)
  3066. + # Look for CPU level
  3067. + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  3068. + PA7*) echo hppa1.1-unknown-linux-gnu ;;
  3069. + PA8*) echo hppa2.0-unknown-linux-gnu ;;
  3070. + *) echo hppa-unknown-linux-gnu ;;
  3071. + esac
  3072. + exit ;;
  3073. + parisc64:Linux:*:* | hppa64:Linux:*:*)
  3074. + echo hppa64-unknown-linux-gnu
  3075. + exit ;;
  3076. + s390:Linux:*:* | s390x:Linux:*:*)
  3077. + echo ${UNAME_MACHINE}-ibm-linux
  3078. + exit ;;
  3079. + sh64*:Linux:*:*)
  3080. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  3081. + exit ;;
  3082. + sh*:Linux:*:*)
  3083. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  3084. + exit ;;
  3085. + sparc:Linux:*:* | sparc64:Linux:*:*)
  3086. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  3087. + exit ;;
  3088. + vax:Linux:*:*)
  3089. + echo ${UNAME_MACHINE}-dec-linux-gnu
  3090. + exit ;;
  3091. + x86_64:Linux:*:*)
  3092. + echo x86_64-unknown-linux-gnu
  3093. + exit ;;
  3094. + xtensa*:Linux:*:*)
  3095. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  3096. + exit ;;
  3097. + i*86:Linux:*:*)
  3098. + # The BFD linker knows what the default object file format is, so
  3099. + # first see if it will tell us. cd to the root directory to prevent
  3100. + # problems with other programs or directories called `ld' in the path.
  3101. + # Set LC_ALL=C to ensure ld outputs messages in English.
  3102. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  3103. + | sed -ne '/supported targets:/!d
  3104. + s/[ ][ ]*/ /g
  3105. + s/.*supported targets: *//
  3106. + s/ .*//
  3107. + p'`
  3108. + case "$ld_supported_targets" in
  3109. + elf32-i386)
  3110. + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  3111. + ;;
  3112. + esac
  3113. + # Determine whether the default compiler is a.out or elf
  3114. + eval $set_cc_for_build
  3115. + sed 's/^ //' << EOF >$dummy.c
  3116. + #include <features.h>
  3117. + #ifdef __ELF__
  3118. + # ifdef __GLIBC__
  3119. + # if __GLIBC__ >= 2
  3120. + LIBC=gnu
  3121. + # else
  3122. + LIBC=gnulibc1
  3123. + # endif
  3124. + # else
  3125. + LIBC=gnulibc1
  3126. + # endif
  3127. + #else
  3128. + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  3129. + LIBC=gnu
  3130. + #else
  3131. + LIBC=gnuaout
  3132. + #endif
  3133. + #endif
  3134. + #ifdef __dietlibc__
  3135. + LIBC=dietlibc
  3136. + #endif
  3137. +EOF
  3138. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  3139. + /^LIBC/{
  3140. + s: ::g
  3141. + p
  3142. + }'`"
  3143. + test x"${LIBC}" != x && {
  3144. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  3145. + exit
  3146. + }
  3147. + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  3148. + ;;
  3149. + i*86:DYNIX/ptx:4*:*)
  3150. + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  3151. + # earlier versions are messed up and put the nodename in both
  3152. + # sysname and nodename.
  3153. + echo i386-sequent-sysv4
  3154. + exit ;;
  3155. + i*86:UNIX_SV:4.2MP:2.*)
  3156. + # Unixware is an offshoot of SVR4, but it has its own version
  3157. + # number series starting with 2...
  3158. + # I am not positive that other SVR4 systems won't match this,
  3159. + # I just have to hope. -- rms.
  3160. + # Use sysv4.2uw... so that sysv4* matches it.
  3161. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  3162. + exit ;;
  3163. + i*86:OS/2:*:*)
  3164. + # If we were able to find `uname', then EMX Unix compatibility
  3165. + # is probably installed.
  3166. + echo ${UNAME_MACHINE}-pc-os2-emx
  3167. + exit ;;
  3168. + i*86:XTS-300:*:STOP)
  3169. + echo ${UNAME_MACHINE}-unknown-stop
  3170. + exit ;;
  3171. + i*86:atheos:*:*)
  3172. + echo ${UNAME_MACHINE}-unknown-atheos
  3173. + exit ;;
  3174. + i*86:syllable:*:*)
  3175. + echo ${UNAME_MACHINE}-pc-syllable
  3176. + exit ;;
  3177. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  3178. + echo i386-unknown-lynxos${UNAME_RELEASE}
  3179. + exit ;;
  3180. + i*86:*DOS:*:*)
  3181. + echo ${UNAME_MACHINE}-pc-msdosdjgpp
  3182. + exit ;;
  3183. + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  3184. + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  3185. + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  3186. + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
  3187. + else
  3188. + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  3189. + fi
  3190. + exit ;;
  3191. + i*86:*:5:[678]*)
  3192. + # UnixWare 7.x, OpenUNIX and OpenServer 6.
  3193. + case `/bin/uname -X | grep "^Machine"` in
  3194. + *486*) UNAME_MACHINE=i486 ;;
  3195. + *Pentium) UNAME_MACHINE=i586 ;;
  3196. + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  3197. + esac
  3198. + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  3199. + exit ;;
  3200. + i*86:*:3.2:*)
  3201. + if test -f /usr/options/cb.name; then
  3202. + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  3203. + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  3204. + elif /bin/uname -X 2>/dev/null >/dev/null ; then
  3205. + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
  3206. + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
  3207. + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
  3208. + && UNAME_MACHINE=i586
  3209. + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
  3210. + && UNAME_MACHINE=i686
  3211. + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
  3212. + && UNAME_MACHINE=i686
  3213. + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  3214. + else
  3215. + echo ${UNAME_MACHINE}-pc-sysv32
  3216. + fi
  3217. + exit ;;
  3218. + pc:*:*:*)
  3219. + # Left here for compatibility:
  3220. + # uname -m prints for DJGPP always 'pc', but it prints nothing about
  3221. + # the processor, so we play safe by assuming i586.
  3222. + # Note: whatever this is, it MUST be the same as what config.sub
  3223. + # prints for the "djgpp" host, or else GDB configury will decide that
  3224. + # this is a cross-build.
  3225. + echo i586-pc-msdosdjgpp
  3226. + exit ;;
  3227. + Intel:Mach:3*:*)
  3228. + echo i386-pc-mach3
  3229. + exit ;;
  3230. + paragon:*:*:*)
  3231. + echo i860-intel-osf1
  3232. + exit ;;
  3233. + i860:*:4.*:*) # i860-SVR4
  3234. + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  3235. + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  3236. + else # Add other i860-SVR4 vendors below as they are discovered.
  3237. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  3238. + fi
  3239. + exit ;;
  3240. + mini*:CTIX:SYS*5:*)
  3241. + # "miniframe"
  3242. + echo m68010-convergent-sysv
  3243. + exit ;;
  3244. + mc68k:UNIX:SYSTEM5:3.51m)
  3245. + echo m68k-convergent-sysv
  3246. + exit ;;
  3247. + M680?0:D-NIX:5.3:*)
  3248. + echo m68k-diab-dnix
  3249. + exit ;;
  3250. + M68*:*:R3V[5678]*:*)
  3251. + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  3252. + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
  3253. + OS_REL=''
  3254. + test -r /etc/.relid \
  3255. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  3256. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  3257. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  3258. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  3259. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  3260. + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  3261. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  3262. + && { echo i486-ncr-sysv4; exit; } ;;
  3263. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  3264. + OS_REL='.3'
  3265. + test -r /etc/.relid \
  3266. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  3267. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  3268. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  3269. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  3270. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  3271. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  3272. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  3273. + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  3274. + echo m68k-unknown-lynxos${UNAME_RELEASE}
  3275. + exit ;;
  3276. + mc68030:UNIX_System_V:4.*:*)
  3277. + echo m68k-atari-sysv4
  3278. + exit ;;
  3279. + TSUNAMI:LynxOS:2.*:*)
  3280. + echo sparc-unknown-lynxos${UNAME_RELEASE}
  3281. + exit ;;
  3282. + rs6000:LynxOS:2.*:*)
  3283. + echo rs6000-unknown-lynxos${UNAME_RELEASE}
  3284. + exit ;;
  3285. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  3286. + echo powerpc-unknown-lynxos${UNAME_RELEASE}
  3287. + exit ;;
  3288. + SM[BE]S:UNIX_SV:*:*)
  3289. + echo mips-dde-sysv${UNAME_RELEASE}
  3290. + exit ;;
  3291. + RM*:ReliantUNIX-*:*:*)
  3292. + echo mips-sni-sysv4
  3293. + exit ;;
  3294. + RM*:SINIX-*:*:*)
  3295. + echo mips-sni-sysv4
  3296. + exit ;;
  3297. + *:SINIX-*:*:*)
  3298. + if uname -p 2>/dev/null >/dev/null ; then
  3299. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  3300. + echo ${UNAME_MACHINE}-sni-sysv4
  3301. + else
  3302. + echo ns32k-sni-sysv
  3303. + fi
  3304. + exit ;;
  3305. + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  3306. + # says <Richard.M.Bartel@ccMail.Census.GOV>
  3307. + echo i586-unisys-sysv4
  3308. + exit ;;
  3309. + *:UNIX_System_V:4*:FTX*)
  3310. + # From Gerald Hewes <hewes@openmarket.com>.
  3311. + # How about differentiating between stratus architectures? -djm
  3312. + echo hppa1.1-stratus-sysv4
  3313. + exit ;;
  3314. + *:*:*:FTX*)
  3315. + # From seanf@swdc.stratus.com.
  3316. + echo i860-stratus-sysv4
  3317. + exit ;;
  3318. + i*86:VOS:*:*)
  3319. + # From Paul.Green@stratus.com.
  3320. + echo ${UNAME_MACHINE}-stratus-vos
  3321. + exit ;;
  3322. + *:VOS:*:*)
  3323. + # From Paul.Green@stratus.com.
  3324. + echo hppa1.1-stratus-vos
  3325. + exit ;;
  3326. + mc68*:A/UX:*:*)
  3327. + echo m68k-apple-aux${UNAME_RELEASE}
  3328. + exit ;;
  3329. + news*:NEWS-OS:6*:*)
  3330. + echo mips-sony-newsos6
  3331. + exit ;;
  3332. + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  3333. + if [ -d /usr/nec ]; then
  3334. + echo mips-nec-sysv${UNAME_RELEASE}
  3335. + else
  3336. + echo mips-unknown-sysv${UNAME_RELEASE}
  3337. + fi
  3338. + exit ;;
  3339. + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  3340. + echo powerpc-be-beos
  3341. + exit ;;
  3342. + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  3343. + echo powerpc-apple-beos
  3344. + exit ;;
  3345. + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  3346. + echo i586-pc-beos
  3347. + exit ;;
  3348. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  3349. + echo i586-pc-haiku
  3350. + exit ;;
  3351. + SX-4:SUPER-UX:*:*)
  3352. + echo sx4-nec-superux${UNAME_RELEASE}
  3353. + exit ;;
  3354. + SX-5:SUPER-UX:*:*)
  3355. + echo sx5-nec-superux${UNAME_RELEASE}
  3356. + exit ;;
  3357. + SX-6:SUPER-UX:*:*)
  3358. + echo sx6-nec-superux${UNAME_RELEASE}
  3359. + exit ;;
  3360. + SX-7:SUPER-UX:*:*)
  3361. + echo sx7-nec-superux${UNAME_RELEASE}
  3362. + exit ;;
  3363. + SX-8:SUPER-UX:*:*)
  3364. + echo sx8-nec-superux${UNAME_RELEASE}
  3365. + exit ;;
  3366. + SX-8R:SUPER-UX:*:*)
  3367. + echo sx8r-nec-superux${UNAME_RELEASE}
  3368. + exit ;;
  3369. + Power*:Rhapsody:*:*)
  3370. + echo powerpc-apple-rhapsody${UNAME_RELEASE}
  3371. + exit ;;
  3372. + *:Rhapsody:*:*)
  3373. + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  3374. + exit ;;
  3375. + *:Darwin:*:*)
  3376. + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  3377. + case $UNAME_PROCESSOR in
  3378. + unknown) UNAME_PROCESSOR=powerpc ;;
  3379. + esac
  3380. + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  3381. + exit ;;
  3382. + *:procnto*:*:* | *:QNX:[0123456789]*:*)
  3383. + UNAME_PROCESSOR=`uname -p`
  3384. + if test "$UNAME_PROCESSOR" = "x86"; then
  3385. + UNAME_PROCESSOR=i386
  3386. + UNAME_MACHINE=pc
  3387. + fi
  3388. + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  3389. + exit ;;
  3390. + *:QNX:*:4*)
  3391. + echo i386-pc-qnx
  3392. + exit ;;
  3393. + NSE-?:NONSTOP_KERNEL:*:*)
  3394. + echo nse-tandem-nsk${UNAME_RELEASE}
  3395. + exit ;;
  3396. + NSR-?:NONSTOP_KERNEL:*:*)
  3397. + echo nsr-tandem-nsk${UNAME_RELEASE}
  3398. + exit ;;
  3399. + *:NonStop-UX:*:*)
  3400. + echo mips-compaq-nonstopux
  3401. + exit ;;
  3402. + BS2000:POSIX*:*:*)
  3403. + echo bs2000-siemens-sysv
  3404. + exit ;;
  3405. + DS/*:UNIX_System_V:*:*)
  3406. + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  3407. + exit ;;
  3408. + *:Plan9:*:*)
  3409. + # "uname -m" is not consistent, so use $cputype instead. 386
  3410. + # is converted to i386 for consistency with other x86
  3411. + # operating systems.
  3412. + if test "$cputype" = "386"; then
  3413. + UNAME_MACHINE=i386
  3414. + else
  3415. + UNAME_MACHINE="$cputype"
  3416. + fi
  3417. + echo ${UNAME_MACHINE}-unknown-plan9
  3418. + exit ;;
  3419. + *:TOPS-10:*:*)
  3420. + echo pdp10-unknown-tops10
  3421. + exit ;;
  3422. + *:TENEX:*:*)
  3423. + echo pdp10-unknown-tenex
  3424. + exit ;;
  3425. + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  3426. + echo pdp10-dec-tops20
  3427. + exit ;;
  3428. + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  3429. + echo pdp10-xkl-tops20
  3430. + exit ;;
  3431. + *:TOPS-20:*:*)
  3432. + echo pdp10-unknown-tops20
  3433. + exit ;;
  3434. + *:ITS:*:*)
  3435. + echo pdp10-unknown-its
  3436. + exit ;;
  3437. + SEI:*:*:SEIUX)
  3438. + echo mips-sei-seiux${UNAME_RELEASE}
  3439. + exit ;;
  3440. + *:DragonFly:*:*)
  3441. + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  3442. + exit ;;
  3443. + *:*VMS:*:*)
  3444. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  3445. + case "${UNAME_MACHINE}" in
  3446. + A*) echo alpha-dec-vms ; exit ;;
  3447. + I*) echo ia64-dec-vms ; exit ;;
  3448. + V*) echo vax-dec-vms ; exit ;;
  3449. + esac ;;
  3450. + *:XENIX:*:SysV)
  3451. + echo i386-pc-xenix
  3452. + exit ;;
  3453. + i*86:skyos:*:*)
  3454. + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  3455. + exit ;;
  3456. + i*86:rdos:*:*)
  3457. + echo ${UNAME_MACHINE}-pc-rdos
  3458. + exit ;;
  3459. + i*86:AROS:*:*)
  3460. + echo ${UNAME_MACHINE}-pc-aros
  3461. + exit ;;
  3462. +esac
  3463. +
  3464. +#echo '(No uname command or uname output not recognized.)' 1>&2
  3465. +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  3466. +
  3467. +eval $set_cc_for_build
  3468. +cat >$dummy.c <<EOF
  3469. +#ifdef _SEQUENT_
  3470. +# include <sys/types.h>
  3471. +# include <sys/utsname.h>
  3472. +#endif
  3473. +main ()
  3474. +{
  3475. +#if defined (sony)
  3476. +#if defined (MIPSEB)
  3477. + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
  3478. + I don't know.... */
  3479. + printf ("mips-sony-bsd\n"); exit (0);
  3480. +#else
  3481. +#include <sys/param.h>
  3482. + printf ("m68k-sony-newsos%s\n",
  3483. +#ifdef NEWSOS4
  3484. + "4"
  3485. +#else
  3486. + ""
  3487. +#endif
  3488. + ); exit (0);
  3489. +#endif
  3490. +#endif
  3491. +
  3492. +#if defined (__arm) && defined (__acorn) && defined (__unix)
  3493. + printf ("arm-acorn-riscix\n"); exit (0);
  3494. +#endif
  3495. +
  3496. +#if defined (hp300) && !defined (hpux)
  3497. + printf ("m68k-hp-bsd\n"); exit (0);
  3498. +#endif
  3499. +
  3500. +#if defined (NeXT)
  3501. +#if !defined (__ARCHITECTURE__)
  3502. +#define __ARCHITECTURE__ "m68k"
  3503. +#endif
  3504. + int version;
  3505. + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  3506. + if (version < 4)
  3507. + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  3508. + else
  3509. + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  3510. + exit (0);
  3511. +#endif
  3512. +
  3513. +#if defined (MULTIMAX) || defined (n16)
  3514. +#if defined (UMAXV)
  3515. + printf ("ns32k-encore-sysv\n"); exit (0);
  3516. +#else
  3517. +#if defined (CMU)
  3518. + printf ("ns32k-encore-mach\n"); exit (0);
  3519. +#else
  3520. + printf ("ns32k-encore-bsd\n"); exit (0);
  3521. +#endif
  3522. +#endif
  3523. +#endif
  3524. +
  3525. +#if defined (__386BSD__)
  3526. + printf ("i386-pc-bsd\n"); exit (0);
  3527. +#endif
  3528. +
  3529. +#if defined (sequent)
  3530. +#if defined (i386)
  3531. + printf ("i386-sequent-dynix\n"); exit (0);
  3532. +#endif
  3533. +#if defined (ns32000)
  3534. + printf ("ns32k-sequent-dynix\n"); exit (0);
  3535. +#endif
  3536. +#endif
  3537. +
  3538. +#if defined (_SEQUENT_)
  3539. + struct utsname un;
  3540. +
  3541. + uname(&un);
  3542. +
  3543. + if (strncmp(un.version, "V2", 2) == 0) {
  3544. + printf ("i386-sequent-ptx2\n"); exit (0);
  3545. + }
  3546. + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  3547. + printf ("i386-sequent-ptx1\n"); exit (0);
  3548. + }
  3549. + printf ("i386-sequent-ptx\n"); exit (0);
  3550. +
  3551. +#endif
  3552. +
  3553. +#if defined (vax)
  3554. +# if !defined (ultrix)
  3555. +# include <sys/param.h>
  3556. +# if defined (BSD)
  3557. +# if BSD == 43
  3558. + printf ("vax-dec-bsd4.3\n"); exit (0);
  3559. +# else
  3560. +# if BSD == 199006
  3561. + printf ("vax-dec-bsd4.3reno\n"); exit (0);
  3562. +# else
  3563. + printf ("vax-dec-bsd\n"); exit (0);
  3564. +# endif
  3565. +# endif
  3566. +# else
  3567. + printf ("vax-dec-bsd\n"); exit (0);
  3568. +# endif
  3569. +# else
  3570. + printf ("vax-dec-ultrix\n"); exit (0);
  3571. +# endif
  3572. +#endif
  3573. +
  3574. +#if defined (alliant) && defined (i860)
  3575. + printf ("i860-alliant-bsd\n"); exit (0);
  3576. +#endif
  3577. +
  3578. + exit (1);
  3579. +}
  3580. +EOF
  3581. +
  3582. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  3583. + { echo "$SYSTEM_NAME"; exit; }
  3584. +
  3585. +# Apollos put the system type in the environment.
  3586. +
  3587. +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  3588. +
  3589. +# Convex versions that predate uname can use getsysinfo(1)
  3590. +
  3591. +if [ -x /usr/convex/getsysinfo ]
  3592. +then
  3593. + case `getsysinfo -f cpu_type` in
  3594. + c1*)
  3595. + echo c1-convex-bsd
  3596. + exit ;;
  3597. + c2*)
  3598. + if getsysinfo -f scalar_acc
  3599. + then echo c32-convex-bsd
  3600. + else echo c2-convex-bsd
  3601. + fi
  3602. + exit ;;
  3603. + c34*)
  3604. + echo c34-convex-bsd
  3605. + exit ;;
  3606. + c38*)
  3607. + echo c38-convex-bsd
  3608. + exit ;;
  3609. + c4*)
  3610. + echo c4-convex-bsd
  3611. + exit ;;
  3612. + esac
  3613. +fi
  3614. +
  3615. +cat >&2 <<EOF
  3616. +$0: unable to guess system type
  3617. +
  3618. +This script, last modified $timestamp, has failed to recognize
  3619. +the operating system you are using. It is advised that you
  3620. +download the most up to date version of the config scripts from
  3621. +
  3622. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  3623. +and
  3624. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  3625. +
  3626. +If the version you run ($0) is already up to date, please
  3627. +send the following data and any information you think might be
  3628. +pertinent to <config-patches@gnu.org> in order to provide the needed
  3629. +information to handle your system.
  3630. +
  3631. +config.guess timestamp = $timestamp
  3632. +
  3633. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  3634. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  3635. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  3636. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  3637. +
  3638. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
  3639. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
  3640. +
  3641. +hostinfo = `(hostinfo) 2>/dev/null`
  3642. +/bin/universe = `(/bin/universe) 2>/dev/null`
  3643. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
  3644. +/bin/arch = `(/bin/arch) 2>/dev/null`
  3645. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
  3646. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
  3647. +
  3648. +UNAME_MACHINE = ${UNAME_MACHINE}
  3649. +UNAME_RELEASE = ${UNAME_RELEASE}
  3650. +UNAME_SYSTEM = ${UNAME_SYSTEM}
  3651. +UNAME_VERSION = ${UNAME_VERSION}
  3652. +EOF
  3653. +
  3654. +exit 1
  3655. +
  3656. +# Local variables:
  3657. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  3658. +# time-stamp-start: "timestamp='"
  3659. +# time-stamp-format: "%:y-%02m-%02d"
  3660. +# time-stamp-end: "'"
  3661. +# End:
  3662. diff -Nur tslib-1.0.orig/config.h.in tslib-1.0/config.h.in
  3663. --- tslib-1.0.orig/config.h.in 1970-01-01 01:00:00.000000000 +0100
  3664. +++ tslib-1.0/config.h.in 2010-07-29 13:39:11.000000000 +0200
  3665. @@ -0,0 +1,193 @@
  3666. +/* config.h.in. Generated from configure.ac by autoheader. */
  3667. +
  3668. +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
  3669. + systems. This function is required for `alloca.c' support on those systems.
  3670. + */
  3671. +#undef CRAY_STACKSEG_END
  3672. +
  3673. +/* Define to 1 if using `alloca.c'. */
  3674. +#undef C_ALLOCA
  3675. +
  3676. +/* Define to 1 if you have `alloca', as a function or macro. */
  3677. +#undef HAVE_ALLOCA
  3678. +
  3679. +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
  3680. + */
  3681. +#undef HAVE_ALLOCA_H
  3682. +
  3683. +/* Define to 1 if you have the `bzero' function. */
  3684. +#undef HAVE_BZERO
  3685. +
  3686. +/* Define to 1 if you have the <dlfcn.h> header file. */
  3687. +#undef HAVE_DLFCN_H
  3688. +
  3689. +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  3690. +#undef HAVE_DOPRNT
  3691. +
  3692. +/* Define to 1 if you have the <fcntl.h> header file. */
  3693. +#undef HAVE_FCNTL_H
  3694. +
  3695. +/* Define to 1 if you have the `getpagesize' function. */
  3696. +#undef HAVE_GETPAGESIZE
  3697. +
  3698. +/* Define to 1 if you have the `gettimeofday' function. */
  3699. +#undef HAVE_GETTIMEOFDAY
  3700. +
  3701. +/* Define to 1 if you have the <inttypes.h> header file. */
  3702. +#undef HAVE_INTTYPES_H
  3703. +
  3704. +/* Define to 1 if you have the `dl' library (-ldl). */
  3705. +#undef HAVE_LIBDL
  3706. +
  3707. +/* Define to 1 if you have the <limits.h> header file. */
  3708. +#undef HAVE_LIMITS_H
  3709. +
  3710. +/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
  3711. + to 0 otherwise. */
  3712. +#undef HAVE_MALLOC
  3713. +
  3714. +/* Define to 1 if you have the `memmove' function. */
  3715. +#undef HAVE_MEMMOVE
  3716. +
  3717. +/* Define to 1 if you have the <memory.h> header file. */
  3718. +#undef HAVE_MEMORY_H
  3719. +
  3720. +/* Define to 1 if you have the `memset' function. */
  3721. +#undef HAVE_MEMSET
  3722. +
  3723. +/* Define to 1 if you have a working `mmap' system call. */
  3724. +#undef HAVE_MMAP
  3725. +
  3726. +/* Define to 1 if you have the `munmap' function. */
  3727. +#undef HAVE_MUNMAP
  3728. +
  3729. +/* Define to 1 if you have the `select' function. */
  3730. +#undef HAVE_SELECT
  3731. +
  3732. +/* Define to 1 if `stat' has the bug that it succeeds when given the
  3733. + zero-length file name argument. */
  3734. +#undef HAVE_STAT_EMPTY_STRING_BUG
  3735. +
  3736. +/* Define to 1 if you have the <stdint.h> header file. */
  3737. +#undef HAVE_STDINT_H
  3738. +
  3739. +/* Define to 1 if you have the <stdlib.h> header file. */
  3740. +#undef HAVE_STDLIB_H
  3741. +
  3742. +/* Define to 1 if you have the `strcasecmp' function. */
  3743. +#undef HAVE_STRCASECMP
  3744. +
  3745. +/* Define to 1 if you have the `strchr' function. */
  3746. +#undef HAVE_STRCHR
  3747. +
  3748. +/* Define to 1 if you have the `strdup' function. */
  3749. +#undef HAVE_STRDUP
  3750. +
  3751. +/* Define to 1 if you have the <strings.h> header file. */
  3752. +#undef HAVE_STRINGS_H
  3753. +
  3754. +/* Define to 1 if you have the <string.h> header file. */
  3755. +#undef HAVE_STRING_H
  3756. +
  3757. +/* Define to 1 if you have the `strtoul' function. */
  3758. +#undef HAVE_STRTOUL
  3759. +
  3760. +/* Define to 1 if you have the <sys/ioctl.h> header file. */
  3761. +#undef HAVE_SYS_IOCTL_H
  3762. +
  3763. +/* Define to 1 if you have the <sys/param.h> header file. */
  3764. +#undef HAVE_SYS_PARAM_H
  3765. +
  3766. +/* Define to 1 if you have the <sys/select.h> header file. */
  3767. +#undef HAVE_SYS_SELECT_H
  3768. +
  3769. +/* Define to 1 if you have the <sys/socket.h> header file. */
  3770. +#undef HAVE_SYS_SOCKET_H
  3771. +
  3772. +/* Define to 1 if you have the <sys/stat.h> header file. */
  3773. +#undef HAVE_SYS_STAT_H
  3774. +
  3775. +/* Define to 1 if you have the <sys/time.h> header file. */
  3776. +#undef HAVE_SYS_TIME_H
  3777. +
  3778. +/* Define to 1 if you have the <sys/types.h> header file. */
  3779. +#undef HAVE_SYS_TYPES_H
  3780. +
  3781. +/* Define to 1 if you have the <unistd.h> header file. */
  3782. +#undef HAVE_UNISTD_H
  3783. +
  3784. +/* Define to 1 if you have the `vprintf' function. */
  3785. +#undef HAVE_VPRINTF
  3786. +
  3787. +/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
  3788. + slash. */
  3789. +#undef LSTAT_FOLLOWS_SLASHED_SYMLINK
  3790. +
  3791. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  3792. + */
  3793. +#undef LT_OBJDIR
  3794. +
  3795. +/* Name of package */
  3796. +#undef PACKAGE
  3797. +
  3798. +/* Define to the address where bug reports for this package should be sent. */
  3799. +#undef PACKAGE_BUGREPORT
  3800. +
  3801. +/* Define to the full name of this package. */
  3802. +#undef PACKAGE_NAME
  3803. +
  3804. +/* Define to the full name and version of this package. */
  3805. +#undef PACKAGE_STRING
  3806. +
  3807. +/* Define to the one symbol short name of this package. */
  3808. +#undef PACKAGE_TARNAME
  3809. +
  3810. +/* Define to the home page for this package. */
  3811. +#undef PACKAGE_URL
  3812. +
  3813. +/* Define to the version of this package. */
  3814. +#undef PACKAGE_VERSION
  3815. +
  3816. +/* Define as the return type of signal handlers (`int' or `void'). */
  3817. +#undef RETSIGTYPE
  3818. +
  3819. +/* Define to the type of arg 1 for `select'. */
  3820. +#undef SELECT_TYPE_ARG1
  3821. +
  3822. +/* Define to the type of args 2, 3 and 4 for `select'. */
  3823. +#undef SELECT_TYPE_ARG234
  3824. +
  3825. +/* Define to the type of arg 5 for `select'. */
  3826. +#undef SELECT_TYPE_ARG5
  3827. +
  3828. +/* If using the C implementation of alloca, define if you know the
  3829. + direction of stack growth for your system; otherwise it will be
  3830. + automatically deduced at runtime.
  3831. + STACK_DIRECTION > 0 => grows toward higher addresses
  3832. + STACK_DIRECTION < 0 => grows toward lower addresses
  3833. + STACK_DIRECTION = 0 => direction of growth unknown */
  3834. +#undef STACK_DIRECTION
  3835. +
  3836. +/* Define to 1 if you have the ANSI C header files. */
  3837. +#undef STDC_HEADERS
  3838. +
  3839. +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  3840. +#undef TIME_WITH_SYS_TIME
  3841. +
  3842. +/* Version number of package */
  3843. +#undef VERSION
  3844. +
  3845. +/* Define to empty if `const' does not conform to ANSI C. */
  3846. +#undef const
  3847. +
  3848. +/* Define to `__inline__' or `__inline' if that's what the C compiler
  3849. + calls it, or to nothing if 'inline' is not supported under any name. */
  3850. +#ifndef __cplusplus
  3851. +#undef inline
  3852. +#endif
  3853. +
  3854. +/* Define to rpl_malloc if the replacement function should be used. */
  3855. +#undef malloc
  3856. +
  3857. +/* Define to `unsigned int' if <sys/types.h> does not define. */
  3858. +#undef size_t
  3859. diff -Nur tslib-1.0.orig/config.sub tslib-1.0/config.sub
  3860. --- tslib-1.0.orig/config.sub 1970-01-01 01:00:00.000000000 +0100
  3861. +++ tslib-1.0/config.sub 2010-07-29 13:39:11.000000000 +0200
  3862. @@ -0,0 +1,1693 @@
  3863. +#! /bin/sh
  3864. +# Configuration validation subroutine script.
  3865. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  3866. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  3867. +# Free Software Foundation, Inc.
  3868. +
  3869. +timestamp='2009-06-11'
  3870. +
  3871. +# This file is (in principle) common to ALL GNU software.
  3872. +# The presence of a machine in this file suggests that SOME GNU software
  3873. +# can handle that machine. It does not imply ALL GNU software can.
  3874. +#
  3875. +# This file is free software; you can redistribute it and/or modify
  3876. +# it under the terms of the GNU General Public License as published by
  3877. +# the Free Software Foundation; either version 2 of the License, or
  3878. +# (at your option) any later version.
  3879. +#
  3880. +# This program is distributed in the hope that it will be useful,
  3881. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  3882. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  3883. +# GNU General Public License for more details.
  3884. +#
  3885. +# You should have received a copy of the GNU General Public License
  3886. +# along with this program; if not, write to the Free Software
  3887. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  3888. +# 02110-1301, USA.
  3889. +#
  3890. +# As a special exception to the GNU General Public License, if you
  3891. +# distribute this file as part of a program that contains a
  3892. +# configuration script generated by Autoconf, you may include it under
  3893. +# the same distribution terms that you use for the rest of that program.
  3894. +
  3895. +
  3896. +# Please send patches to <config-patches@gnu.org>. Submit a context
  3897. +# diff and a properly formatted ChangeLog entry.
  3898. +#
  3899. +# Configuration subroutine to validate and canonicalize a configuration type.
  3900. +# Supply the specified configuration type as an argument.
  3901. +# If it is invalid, we print an error message on stderr and exit with code 1.
  3902. +# Otherwise, we print the canonical config type on stdout and succeed.
  3903. +
  3904. +# This file is supposed to be the same for all GNU packages
  3905. +# and recognize all the CPU types, system types and aliases
  3906. +# that are meaningful with *any* GNU software.
  3907. +# Each package is responsible for reporting which valid configurations
  3908. +# it does not support. The user should be able to distinguish
  3909. +# a failure to support a valid configuration from a meaningless
  3910. +# configuration.
  3911. +
  3912. +# The goal of this file is to map all the various variations of a given
  3913. +# machine specification into a single specification in the form:
  3914. +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
  3915. +# or in some cases, the newer four-part form:
  3916. +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
  3917. +# It is wrong to echo any other type of specification.
  3918. +
  3919. +me=`echo "$0" | sed -e 's,.*/,,'`
  3920. +
  3921. +usage="\
  3922. +Usage: $0 [OPTION] CPU-MFR-OPSYS
  3923. + $0 [OPTION] ALIAS
  3924. +
  3925. +Canonicalize a configuration name.
  3926. +
  3927. +Operation modes:
  3928. + -h, --help print this help, then exit
  3929. + -t, --time-stamp print date of last modification, then exit
  3930. + -v, --version print version number, then exit
  3931. +
  3932. +Report bugs and patches to <config-patches@gnu.org>."
  3933. +
  3934. +version="\
  3935. +GNU config.sub ($timestamp)
  3936. +
  3937. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  3938. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  3939. +
  3940. +This is free software; see the source for copying conditions. There is NO
  3941. +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  3942. +
  3943. +help="
  3944. +Try \`$me --help' for more information."
  3945. +
  3946. +# Parse command line
  3947. +while test $# -gt 0 ; do
  3948. + case $1 in
  3949. + --time-stamp | --time* | -t )
  3950. + echo "$timestamp" ; exit ;;
  3951. + --version | -v )
  3952. + echo "$version" ; exit ;;
  3953. + --help | --h* | -h )
  3954. + echo "$usage"; exit ;;
  3955. + -- ) # Stop option processing
  3956. + shift; break ;;
  3957. + - ) # Use stdin as input.
  3958. + break ;;
  3959. + -* )
  3960. + echo "$me: invalid option $1$help"
  3961. + exit 1 ;;
  3962. +
  3963. + *local*)
  3964. + # First pass through any local machine types.
  3965. + echo $1
  3966. + exit ;;
  3967. +
  3968. + * )
  3969. + break ;;
  3970. + esac
  3971. +done
  3972. +
  3973. +case $# in
  3974. + 0) echo "$me: missing argument$help" >&2
  3975. + exit 1;;
  3976. + 1) ;;
  3977. + *) echo "$me: too many arguments$help" >&2
  3978. + exit 1;;
  3979. +esac
  3980. +
  3981. +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
  3982. +# Here we must recognize all the valid KERNEL-OS combinations.
  3983. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  3984. +case $maybe_os in
  3985. + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  3986. + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  3987. + kopensolaris*-gnu* | \
  3988. + storm-chaos* | os2-emx* | rtmk-nova*)
  3989. + os=-$maybe_os
  3990. + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  3991. + ;;
  3992. + *)
  3993. + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
  3994. + if [ $basic_machine != $1 ]
  3995. + then os=`echo $1 | sed 's/.*-/-/'`
  3996. + else os=; fi
  3997. + ;;
  3998. +esac
  3999. +
  4000. +### Let's recognize common machines as not being operating systems so
  4001. +### that things like config.sub decstation-3100 work. We also
  4002. +### recognize some manufacturers as not being operating systems, so we
  4003. +### can provide default operating systems below.
  4004. +case $os in
  4005. + -sun*os*)
  4006. + # Prevent following clause from handling this invalid input.
  4007. + ;;
  4008. + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
  4009. + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
  4010. + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
  4011. + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  4012. + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  4013. + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  4014. + -apple | -axis | -knuth | -cray)
  4015. + os=
  4016. + basic_machine=$1
  4017. + ;;
  4018. + -bluegene*)
  4019. + os=-cnk
  4020. + ;;
  4021. + -sim | -cisco | -oki | -wec | -winbond)
  4022. + os=
  4023. + basic_machine=$1
  4024. + ;;
  4025. + -scout)
  4026. + ;;
  4027. + -wrs)
  4028. + os=-vxworks
  4029. + basic_machine=$1
  4030. + ;;
  4031. + -chorusos*)
  4032. + os=-chorusos
  4033. + basic_machine=$1
  4034. + ;;
  4035. + -chorusrdb)
  4036. + os=-chorusrdb
  4037. + basic_machine=$1
  4038. + ;;
  4039. + -hiux*)
  4040. + os=-hiuxwe2
  4041. + ;;
  4042. + -sco6)
  4043. + os=-sco5v6
  4044. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  4045. + ;;
  4046. + -sco5)
  4047. + os=-sco3.2v5
  4048. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  4049. + ;;
  4050. + -sco4)
  4051. + os=-sco3.2v4
  4052. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  4053. + ;;
  4054. + -sco3.2.[4-9]*)
  4055. + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
  4056. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  4057. + ;;
  4058. + -sco3.2v[4-9]*)
  4059. + # Don't forget version if it is 3.2v4 or newer.
  4060. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  4061. + ;;
  4062. + -sco5v6*)
  4063. + # Don't forget version if it is 3.2v4 or newer.
  4064. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  4065. + ;;
  4066. + -sco*)
  4067. + os=-sco3.2v2
  4068. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  4069. + ;;
  4070. + -udk*)
  4071. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  4072. + ;;
  4073. + -isc)
  4074. + os=-isc2.2
  4075. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  4076. + ;;
  4077. + -clix*)
  4078. + basic_machine=clipper-intergraph
  4079. + ;;
  4080. + -isc*)
  4081. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  4082. + ;;
  4083. + -lynx*)
  4084. + os=-lynxos
  4085. + ;;
  4086. + -ptx*)
  4087. + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
  4088. + ;;
  4089. + -windowsnt*)
  4090. + os=`echo $os | sed -e 's/windowsnt/winnt/'`
  4091. + ;;
  4092. + -psos*)
  4093. + os=-psos
  4094. + ;;
  4095. + -mint | -mint[0-9]*)
  4096. + basic_machine=m68k-atari
  4097. + os=-mint
  4098. + ;;
  4099. +esac
  4100. +
  4101. +# Decode aliases for certain CPU-COMPANY combinations.
  4102. +case $basic_machine in
  4103. + # Recognize the basic CPU types without company name.
  4104. + # Some are omitted here because they have special meanings below.
  4105. + 1750a | 580 \
  4106. + | a29k \
  4107. + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  4108. + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  4109. + | am33_2.0 \
  4110. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  4111. + | bfin \
  4112. + | c4x | clipper \
  4113. + | d10v | d30v | dlx | dsp16xx \
  4114. + | fido | fr30 | frv \
  4115. + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  4116. + | i370 | i860 | i960 | ia64 \
  4117. + | ip2k | iq2000 \
  4118. + | lm32 \
  4119. + | m32c | m32r | m32rle | m68000 | m68k | m88k \
  4120. + | maxq | mb | microblaze | mcore | mep | metag \
  4121. + | mips | mipsbe | mipseb | mipsel | mipsle \
  4122. + | mips16 \
  4123. + | mips64 | mips64el \
  4124. + | mips64octeon | mips64octeonel \
  4125. + | mips64orion | mips64orionel \
  4126. + | mips64r5900 | mips64r5900el \
  4127. + | mips64vr | mips64vrel \
  4128. + | mips64vr4100 | mips64vr4100el \
  4129. + | mips64vr4300 | mips64vr4300el \
  4130. + | mips64vr5000 | mips64vr5000el \
  4131. + | mips64vr5900 | mips64vr5900el \
  4132. + | mipsisa32 | mipsisa32el \
  4133. + | mipsisa32r2 | mipsisa32r2el \
  4134. + | mipsisa64 | mipsisa64el \
  4135. + | mipsisa64r2 | mipsisa64r2el \
  4136. + | mipsisa64sb1 | mipsisa64sb1el \
  4137. + | mipsisa64sr71k | mipsisa64sr71kel \
  4138. + | mipstx39 | mipstx39el \
  4139. + | mn10200 | mn10300 \
  4140. + | moxie \
  4141. + | mt \
  4142. + | msp430 \
  4143. + | nios | nios2 \
  4144. + | ns16k | ns32k \
  4145. + | or32 \
  4146. + | pdp10 | pdp11 | pj | pjl \
  4147. + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  4148. + | pyramid \
  4149. + | score \
  4150. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  4151. + | sh64 | sh64le \
  4152. + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  4153. + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  4154. + | spu | strongarm \
  4155. + | tahoe | thumb | tic4x | tic80 | tron \
  4156. + | v850 | v850e \
  4157. + | we32k \
  4158. + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  4159. + | z8k | z80)
  4160. + basic_machine=$basic_machine-unknown
  4161. + ;;
  4162. + m6811 | m68hc11 | m6812 | m68hc12)
  4163. + # Motorola 68HC11/12.
  4164. + basic_machine=$basic_machine-unknown
  4165. + os=-none
  4166. + ;;
  4167. + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  4168. + ;;
  4169. + ms1)
  4170. + basic_machine=mt-unknown
  4171. + ;;
  4172. +
  4173. + # We use `pc' rather than `unknown'
  4174. + # because (1) that's what they normally are, and
  4175. + # (2) the word "unknown" tends to confuse beginning users.
  4176. + i*86 | x86_64)
  4177. + basic_machine=$basic_machine-pc
  4178. + ;;
  4179. + # Object if more than one company name word.
  4180. + *-*-*)
  4181. + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  4182. + exit 1
  4183. + ;;
  4184. + # Recognize the basic CPU types with company name.
  4185. + 580-* \
  4186. + | a29k-* \
  4187. + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
  4188. + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  4189. + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  4190. + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  4191. + | avr-* | avr32-* \
  4192. + | bfin-* | bs2000-* \
  4193. + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  4194. + | clipper-* | craynv-* | cydra-* \
  4195. + | d10v-* | d30v-* | dlx-* \
  4196. + | elxsi-* \
  4197. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  4198. + | h8300-* | h8500-* \
  4199. + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  4200. + | i*86-* | i860-* | i960-* | ia64-* \
  4201. + | ip2k-* | iq2000-* \
  4202. + | lm32-* \
  4203. + | m32c-* | m32r-* | m32rle-* \
  4204. + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  4205. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  4206. + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  4207. + | mips16-* \
  4208. + | mips64-* | mips64el-* \
  4209. + | mips64octeon-* | mips64octeonel-* \
  4210. + | mips64orion-* | mips64orionel-* \
  4211. + | mips64r5900-* | mips64r5900el-* \
  4212. + | mips64vr-* | mips64vrel-* \
  4213. + | mips64vr4100-* | mips64vr4100el-* \
  4214. + | mips64vr4300-* | mips64vr4300el-* \
  4215. + | mips64vr5000-* | mips64vr5000el-* \
  4216. + | mips64vr5900-* | mips64vr5900el-* \
  4217. + | mipsisa32-* | mipsisa32el-* \
  4218. + | mipsisa32r2-* | mipsisa32r2el-* \
  4219. + | mipsisa64-* | mipsisa64el-* \
  4220. + | mipsisa64r2-* | mipsisa64r2el-* \
  4221. + | mipsisa64sb1-* | mipsisa64sb1el-* \
  4222. + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  4223. + | mipstx39-* | mipstx39el-* \
  4224. + | mmix-* \
  4225. + | mt-* \
  4226. + | msp430-* \
  4227. + | nios-* | nios2-* \
  4228. + | none-* | np1-* | ns16k-* | ns32k-* \
  4229. + | orion-* \
  4230. + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  4231. + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  4232. + | pyramid-* \
  4233. + | romp-* | rs6000-* \
  4234. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  4235. + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  4236. + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  4237. + | sparclite-* \
  4238. + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  4239. + | tahoe-* | thumb-* \
  4240. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  4241. + | tron-* \
  4242. + | v850-* | v850e-* | vax-* \
  4243. + | we32k-* \
  4244. + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  4245. + | xstormy16-* | xtensa*-* \
  4246. + | ymp-* \
  4247. + | z8k-* | z80-*)
  4248. + ;;
  4249. + # Recognize the basic CPU types without company name, with glob match.
  4250. + xtensa*)
  4251. + basic_machine=$basic_machine-unknown
  4252. + ;;
  4253. + # Recognize the various machine names and aliases which stand
  4254. + # for a CPU type and a company and sometimes even an OS.
  4255. + 386bsd)
  4256. + basic_machine=i386-unknown
  4257. + os=-bsd
  4258. + ;;
  4259. + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
  4260. + basic_machine=m68000-att
  4261. + ;;
  4262. + 3b*)
  4263. + basic_machine=we32k-att
  4264. + ;;
  4265. + a29khif)
  4266. + basic_machine=a29k-amd
  4267. + os=-udi
  4268. + ;;
  4269. + abacus)
  4270. + basic_machine=abacus-unknown
  4271. + ;;
  4272. + adobe68k)
  4273. + basic_machine=m68010-adobe
  4274. + os=-scout
  4275. + ;;
  4276. + alliant | fx80)
  4277. + basic_machine=fx80-alliant
  4278. + ;;
  4279. + altos | altos3068)
  4280. + basic_machine=m68k-altos
  4281. + ;;
  4282. + am29k)
  4283. + basic_machine=a29k-none
  4284. + os=-bsd
  4285. + ;;
  4286. + amd64)
  4287. + basic_machine=x86_64-pc
  4288. + ;;
  4289. + amd64-*)
  4290. + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
  4291. + ;;
  4292. + amdahl)
  4293. + basic_machine=580-amdahl
  4294. + os=-sysv
  4295. + ;;
  4296. + amiga | amiga-*)
  4297. + basic_machine=m68k-unknown
  4298. + ;;
  4299. + amigaos | amigados)
  4300. + basic_machine=m68k-unknown
  4301. + os=-amigaos
  4302. + ;;
  4303. + amigaunix | amix)
  4304. + basic_machine=m68k-unknown
  4305. + os=-sysv4
  4306. + ;;
  4307. + apollo68)
  4308. + basic_machine=m68k-apollo
  4309. + os=-sysv
  4310. + ;;
  4311. + apollo68bsd)
  4312. + basic_machine=m68k-apollo
  4313. + os=-bsd
  4314. + ;;
  4315. + aros)
  4316. + basic_machine=i386-pc
  4317. + os=-aros
  4318. + ;;
  4319. + aux)
  4320. + basic_machine=m68k-apple
  4321. + os=-aux
  4322. + ;;
  4323. + balance)
  4324. + basic_machine=ns32k-sequent
  4325. + os=-dynix
  4326. + ;;
  4327. + blackfin)
  4328. + basic_machine=bfin-unknown
  4329. + os=-linux
  4330. + ;;
  4331. + blackfin-*)
  4332. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  4333. + os=-linux
  4334. + ;;
  4335. + bluegene*)
  4336. + basic_machine=powerpc-ibm
  4337. + os=-cnk
  4338. + ;;
  4339. + c90)
  4340. + basic_machine=c90-cray
  4341. + os=-unicos
  4342. + ;;
  4343. + cegcc)
  4344. + basic_machine=arm-unknown
  4345. + os=-cegcc
  4346. + ;;
  4347. + convex-c1)
  4348. + basic_machine=c1-convex
  4349. + os=-bsd
  4350. + ;;
  4351. + convex-c2)
  4352. + basic_machine=c2-convex
  4353. + os=-bsd
  4354. + ;;
  4355. + convex-c32)
  4356. + basic_machine=c32-convex
  4357. + os=-bsd
  4358. + ;;
  4359. + convex-c34)
  4360. + basic_machine=c34-convex
  4361. + os=-bsd
  4362. + ;;
  4363. + convex-c38)
  4364. + basic_machine=c38-convex
  4365. + os=-bsd
  4366. + ;;
  4367. + cray | j90)
  4368. + basic_machine=j90-cray
  4369. + os=-unicos
  4370. + ;;
  4371. + craynv)
  4372. + basic_machine=craynv-cray
  4373. + os=-unicosmp
  4374. + ;;
  4375. + cr16)
  4376. + basic_machine=cr16-unknown
  4377. + os=-elf
  4378. + ;;
  4379. + crds | unos)
  4380. + basic_machine=m68k-crds
  4381. + ;;
  4382. + crisv32 | crisv32-* | etraxfs*)
  4383. + basic_machine=crisv32-axis
  4384. + ;;
  4385. + cris | cris-* | etrax*)
  4386. + basic_machine=cris-axis
  4387. + ;;
  4388. + crx)
  4389. + basic_machine=crx-unknown
  4390. + os=-elf
  4391. + ;;
  4392. + da30 | da30-*)
  4393. + basic_machine=m68k-da30
  4394. + ;;
  4395. + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  4396. + basic_machine=mips-dec
  4397. + ;;
  4398. + decsystem10* | dec10*)
  4399. + basic_machine=pdp10-dec
  4400. + os=-tops10
  4401. + ;;
  4402. + decsystem20* | dec20*)
  4403. + basic_machine=pdp10-dec
  4404. + os=-tops20
  4405. + ;;
  4406. + delta | 3300 | motorola-3300 | motorola-delta \
  4407. + | 3300-motorola | delta-motorola)
  4408. + basic_machine=m68k-motorola
  4409. + ;;
  4410. + delta88)
  4411. + basic_machine=m88k-motorola
  4412. + os=-sysv3
  4413. + ;;
  4414. + dicos)
  4415. + basic_machine=i686-pc
  4416. + os=-dicos
  4417. + ;;
  4418. + djgpp)
  4419. + basic_machine=i586-pc
  4420. + os=-msdosdjgpp
  4421. + ;;
  4422. + dpx20 | dpx20-*)
  4423. + basic_machine=rs6000-bull
  4424. + os=-bosx
  4425. + ;;
  4426. + dpx2* | dpx2*-bull)
  4427. + basic_machine=m68k-bull
  4428. + os=-sysv3
  4429. + ;;
  4430. + ebmon29k)
  4431. + basic_machine=a29k-amd
  4432. + os=-ebmon
  4433. + ;;
  4434. + elxsi)
  4435. + basic_machine=elxsi-elxsi
  4436. + os=-bsd
  4437. + ;;
  4438. + encore | umax | mmax)
  4439. + basic_machine=ns32k-encore
  4440. + ;;
  4441. + es1800 | OSE68k | ose68k | ose | OSE)
  4442. + basic_machine=m68k-ericsson
  4443. + os=-ose
  4444. + ;;
  4445. + fx2800)
  4446. + basic_machine=i860-alliant
  4447. + ;;
  4448. + genix)
  4449. + basic_machine=ns32k-ns
  4450. + ;;
  4451. + gmicro)
  4452. + basic_machine=tron-gmicro
  4453. + os=-sysv
  4454. + ;;
  4455. + go32)
  4456. + basic_machine=i386-pc
  4457. + os=-go32
  4458. + ;;
  4459. + h3050r* | hiux*)
  4460. + basic_machine=hppa1.1-hitachi
  4461. + os=-hiuxwe2
  4462. + ;;
  4463. + h8300hms)
  4464. + basic_machine=h8300-hitachi
  4465. + os=-hms
  4466. + ;;
  4467. + h8300xray)
  4468. + basic_machine=h8300-hitachi
  4469. + os=-xray
  4470. + ;;
  4471. + h8500hms)
  4472. + basic_machine=h8500-hitachi
  4473. + os=-hms
  4474. + ;;
  4475. + harris)
  4476. + basic_machine=m88k-harris
  4477. + os=-sysv3
  4478. + ;;
  4479. + hp300-*)
  4480. + basic_machine=m68k-hp
  4481. + ;;
  4482. + hp300bsd)
  4483. + basic_machine=m68k-hp
  4484. + os=-bsd
  4485. + ;;
  4486. + hp300hpux)
  4487. + basic_machine=m68k-hp
  4488. + os=-hpux
  4489. + ;;
  4490. + hp3k9[0-9][0-9] | hp9[0-9][0-9])
  4491. + basic_machine=hppa1.0-hp
  4492. + ;;
  4493. + hp9k2[0-9][0-9] | hp9k31[0-9])
  4494. + basic_machine=m68000-hp
  4495. + ;;
  4496. + hp9k3[2-9][0-9])
  4497. + basic_machine=m68k-hp
  4498. + ;;
  4499. + hp9k6[0-9][0-9] | hp6[0-9][0-9])
  4500. + basic_machine=hppa1.0-hp
  4501. + ;;
  4502. + hp9k7[0-79][0-9] | hp7[0-79][0-9])
  4503. + basic_machine=hppa1.1-hp
  4504. + ;;
  4505. + hp9k78[0-9] | hp78[0-9])
  4506. + # FIXME: really hppa2.0-hp
  4507. + basic_machine=hppa1.1-hp
  4508. + ;;
  4509. + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
  4510. + # FIXME: really hppa2.0-hp
  4511. + basic_machine=hppa1.1-hp
  4512. + ;;
  4513. + hp9k8[0-9][13679] | hp8[0-9][13679])
  4514. + basic_machine=hppa1.1-hp
  4515. + ;;
  4516. + hp9k8[0-9][0-9] | hp8[0-9][0-9])
  4517. + basic_machine=hppa1.0-hp
  4518. + ;;
  4519. + hppa-next)
  4520. + os=-nextstep3
  4521. + ;;
  4522. + hppaosf)
  4523. + basic_machine=hppa1.1-hp
  4524. + os=-osf
  4525. + ;;
  4526. + hppro)
  4527. + basic_machine=hppa1.1-hp
  4528. + os=-proelf
  4529. + ;;
  4530. + i370-ibm* | ibm*)
  4531. + basic_machine=i370-ibm
  4532. + ;;
  4533. +# I'm not sure what "Sysv32" means. Should this be sysv3.2?
  4534. + i*86v32)
  4535. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  4536. + os=-sysv32
  4537. + ;;
  4538. + i*86v4*)
  4539. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  4540. + os=-sysv4
  4541. + ;;
  4542. + i*86v)
  4543. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  4544. + os=-sysv
  4545. + ;;
  4546. + i*86sol2)
  4547. + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  4548. + os=-solaris2
  4549. + ;;
  4550. + i386mach)
  4551. + basic_machine=i386-mach
  4552. + os=-mach
  4553. + ;;
  4554. + i386-vsta | vsta)
  4555. + basic_machine=i386-unknown
  4556. + os=-vsta
  4557. + ;;
  4558. + iris | iris4d)
  4559. + basic_machine=mips-sgi
  4560. + case $os in
  4561. + -irix*)
  4562. + ;;
  4563. + *)
  4564. + os=-irix4
  4565. + ;;
  4566. + esac
  4567. + ;;
  4568. + isi68 | isi)
  4569. + basic_machine=m68k-isi
  4570. + os=-sysv
  4571. + ;;
  4572. + m68knommu)
  4573. + basic_machine=m68k-unknown
  4574. + os=-linux
  4575. + ;;
  4576. + m68knommu-*)
  4577. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  4578. + os=-linux
  4579. + ;;
  4580. + m88k-omron*)
  4581. + basic_machine=m88k-omron
  4582. + ;;
  4583. + magnum | m3230)
  4584. + basic_machine=mips-mips
  4585. + os=-sysv
  4586. + ;;
  4587. + merlin)
  4588. + basic_machine=ns32k-utek
  4589. + os=-sysv
  4590. + ;;
  4591. + mingw32)
  4592. + basic_machine=i386-pc
  4593. + os=-mingw32
  4594. + ;;
  4595. + mingw32ce)
  4596. + basic_machine=arm-unknown
  4597. + os=-mingw32ce
  4598. + ;;
  4599. + miniframe)
  4600. + basic_machine=m68000-convergent
  4601. + ;;
  4602. + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
  4603. + basic_machine=m68k-atari
  4604. + os=-mint
  4605. + ;;
  4606. + mips3*-*)
  4607. + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  4608. + ;;
  4609. + mips3*)
  4610. + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  4611. + ;;
  4612. + monitor)
  4613. + basic_machine=m68k-rom68k
  4614. + os=-coff
  4615. + ;;
  4616. + morphos)
  4617. + basic_machine=powerpc-unknown
  4618. + os=-morphos
  4619. + ;;
  4620. + msdos)
  4621. + basic_machine=i386-pc
  4622. + os=-msdos
  4623. + ;;
  4624. + ms1-*)
  4625. + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  4626. + ;;
  4627. + mvs)
  4628. + basic_machine=i370-ibm
  4629. + os=-mvs
  4630. + ;;
  4631. + ncr3000)
  4632. + basic_machine=i486-ncr
  4633. + os=-sysv4
  4634. + ;;
  4635. + netbsd386)
  4636. + basic_machine=i386-unknown
  4637. + os=-netbsd
  4638. + ;;
  4639. + netwinder)
  4640. + basic_machine=armv4l-rebel
  4641. + os=-linux
  4642. + ;;
  4643. + news | news700 | news800 | news900)
  4644. + basic_machine=m68k-sony
  4645. + os=-newsos
  4646. + ;;
  4647. + news1000)
  4648. + basic_machine=m68030-sony
  4649. + os=-newsos
  4650. + ;;
  4651. + news-3600 | risc-news)
  4652. + basic_machine=mips-sony
  4653. + os=-newsos
  4654. + ;;
  4655. + necv70)
  4656. + basic_machine=v70-nec
  4657. + os=-sysv
  4658. + ;;
  4659. + next | m*-next )
  4660. + basic_machine=m68k-next
  4661. + case $os in
  4662. + -nextstep* )
  4663. + ;;
  4664. + -ns2*)
  4665. + os=-nextstep2
  4666. + ;;
  4667. + *)
  4668. + os=-nextstep3
  4669. + ;;
  4670. + esac
  4671. + ;;
  4672. + nh3000)
  4673. + basic_machine=m68k-harris
  4674. + os=-cxux
  4675. + ;;
  4676. + nh[45]000)
  4677. + basic_machine=m88k-harris
  4678. + os=-cxux
  4679. + ;;
  4680. + nindy960)
  4681. + basic_machine=i960-intel
  4682. + os=-nindy
  4683. + ;;
  4684. + mon960)
  4685. + basic_machine=i960-intel
  4686. + os=-mon960
  4687. + ;;
  4688. + nonstopux)
  4689. + basic_machine=mips-compaq
  4690. + os=-nonstopux
  4691. + ;;
  4692. + np1)
  4693. + basic_machine=np1-gould
  4694. + ;;
  4695. + nsr-tandem)
  4696. + basic_machine=nsr-tandem
  4697. + ;;
  4698. + op50n-* | op60c-*)
  4699. + basic_machine=hppa1.1-oki
  4700. + os=-proelf
  4701. + ;;
  4702. + openrisc | openrisc-*)
  4703. + basic_machine=or32-unknown
  4704. + ;;
  4705. + os400)
  4706. + basic_machine=powerpc-ibm
  4707. + os=-os400
  4708. + ;;
  4709. + OSE68000 | ose68000)
  4710. + basic_machine=m68000-ericsson
  4711. + os=-ose
  4712. + ;;
  4713. + os68k)
  4714. + basic_machine=m68k-none
  4715. + os=-os68k
  4716. + ;;
  4717. + pa-hitachi)
  4718. + basic_machine=hppa1.1-hitachi
  4719. + os=-hiuxwe2
  4720. + ;;
  4721. + paragon)
  4722. + basic_machine=i860-intel
  4723. + os=-osf
  4724. + ;;
  4725. + parisc)
  4726. + basic_machine=hppa-unknown
  4727. + os=-linux
  4728. + ;;
  4729. + parisc-*)
  4730. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  4731. + os=-linux
  4732. + ;;
  4733. + pbd)
  4734. + basic_machine=sparc-tti
  4735. + ;;
  4736. + pbb)
  4737. + basic_machine=m68k-tti
  4738. + ;;
  4739. + pc532 | pc532-*)
  4740. + basic_machine=ns32k-pc532
  4741. + ;;
  4742. + pc98)
  4743. + basic_machine=i386-pc
  4744. + ;;
  4745. + pc98-*)
  4746. + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
  4747. + ;;
  4748. + pentium | p5 | k5 | k6 | nexgen | viac3)
  4749. + basic_machine=i586-pc
  4750. + ;;
  4751. + pentiumpro | p6 | 6x86 | athlon | athlon_*)
  4752. + basic_machine=i686-pc
  4753. + ;;
  4754. + pentiumii | pentium2 | pentiumiii | pentium3)
  4755. + basic_machine=i686-pc
  4756. + ;;
  4757. + pentium4)
  4758. + basic_machine=i786-pc
  4759. + ;;
  4760. + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
  4761. + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  4762. + ;;
  4763. + pentiumpro-* | p6-* | 6x86-* | athlon-*)
  4764. + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  4765. + ;;
  4766. + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
  4767. + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  4768. + ;;
  4769. + pentium4-*)
  4770. + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
  4771. + ;;
  4772. + pn)
  4773. + basic_machine=pn-gould
  4774. + ;;
  4775. + power) basic_machine=power-ibm
  4776. + ;;
  4777. + ppc) basic_machine=powerpc-unknown
  4778. + ;;
  4779. + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  4780. + ;;
  4781. + ppcle | powerpclittle | ppc-le | powerpc-little)
  4782. + basic_machine=powerpcle-unknown
  4783. + ;;
  4784. + ppcle-* | powerpclittle-*)
  4785. + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  4786. + ;;
  4787. + ppc64) basic_machine=powerpc64-unknown
  4788. + ;;
  4789. + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
  4790. + ;;
  4791. + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
  4792. + basic_machine=powerpc64le-unknown
  4793. + ;;
  4794. + ppc64le-* | powerpc64little-*)
  4795. + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
  4796. + ;;
  4797. + ps2)
  4798. + basic_machine=i386-ibm
  4799. + ;;
  4800. + pw32)
  4801. + basic_machine=i586-unknown
  4802. + os=-pw32
  4803. + ;;
  4804. + rdos)
  4805. + basic_machine=i386-pc
  4806. + os=-rdos
  4807. + ;;
  4808. + rom68k)
  4809. + basic_machine=m68k-rom68k
  4810. + os=-coff
  4811. + ;;
  4812. + rm[46]00)
  4813. + basic_machine=mips-siemens
  4814. + ;;
  4815. + rtpc | rtpc-*)
  4816. + basic_machine=romp-ibm
  4817. + ;;
  4818. + s390 | s390-*)
  4819. + basic_machine=s390-ibm
  4820. + ;;
  4821. + s390x | s390x-*)
  4822. + basic_machine=s390x-ibm
  4823. + ;;
  4824. + sa29200)
  4825. + basic_machine=a29k-amd
  4826. + os=-udi
  4827. + ;;
  4828. + sb1)
  4829. + basic_machine=mipsisa64sb1-unknown
  4830. + ;;
  4831. + sb1el)
  4832. + basic_machine=mipsisa64sb1el-unknown
  4833. + ;;
  4834. + sde)
  4835. + basic_machine=mipsisa32-sde
  4836. + os=-elf
  4837. + ;;
  4838. + sei)
  4839. + basic_machine=mips-sei
  4840. + os=-seiux
  4841. + ;;
  4842. + sequent)
  4843. + basic_machine=i386-sequent
  4844. + ;;
  4845. + sh)
  4846. + basic_machine=sh-hitachi
  4847. + os=-hms
  4848. + ;;
  4849. + sh5el)
  4850. + basic_machine=sh5le-unknown
  4851. + ;;
  4852. + sh64)
  4853. + basic_machine=sh64-unknown
  4854. + ;;
  4855. + sparclite-wrs | simso-wrs)
  4856. + basic_machine=sparclite-wrs
  4857. + os=-vxworks
  4858. + ;;
  4859. + sps7)
  4860. + basic_machine=m68k-bull
  4861. + os=-sysv2
  4862. + ;;
  4863. + spur)
  4864. + basic_machine=spur-unknown
  4865. + ;;
  4866. + st2000)
  4867. + basic_machine=m68k-tandem
  4868. + ;;
  4869. + stratus)
  4870. + basic_machine=i860-stratus
  4871. + os=-sysv4
  4872. + ;;
  4873. + sun2)
  4874. + basic_machine=m68000-sun
  4875. + ;;
  4876. + sun2os3)
  4877. + basic_machine=m68000-sun
  4878. + os=-sunos3
  4879. + ;;
  4880. + sun2os4)
  4881. + basic_machine=m68000-sun
  4882. + os=-sunos4
  4883. + ;;
  4884. + sun3os3)
  4885. + basic_machine=m68k-sun
  4886. + os=-sunos3
  4887. + ;;
  4888. + sun3os4)
  4889. + basic_machine=m68k-sun
  4890. + os=-sunos4
  4891. + ;;
  4892. + sun4os3)
  4893. + basic_machine=sparc-sun
  4894. + os=-sunos3
  4895. + ;;
  4896. + sun4os4)
  4897. + basic_machine=sparc-sun
  4898. + os=-sunos4
  4899. + ;;
  4900. + sun4sol2)
  4901. + basic_machine=sparc-sun
  4902. + os=-solaris2
  4903. + ;;
  4904. + sun3 | sun3-*)
  4905. + basic_machine=m68k-sun
  4906. + ;;
  4907. + sun4)
  4908. + basic_machine=sparc-sun
  4909. + ;;
  4910. + sun386 | sun386i | roadrunner)
  4911. + basic_machine=i386-sun
  4912. + ;;
  4913. + sv1)
  4914. + basic_machine=sv1-cray
  4915. + os=-unicos
  4916. + ;;
  4917. + symmetry)
  4918. + basic_machine=i386-sequent
  4919. + os=-dynix
  4920. + ;;
  4921. + t3e)
  4922. + basic_machine=alphaev5-cray
  4923. + os=-unicos
  4924. + ;;
  4925. + t90)
  4926. + basic_machine=t90-cray
  4927. + os=-unicos
  4928. + ;;
  4929. + tic54x | c54x*)
  4930. + basic_machine=tic54x-unknown
  4931. + os=-coff
  4932. + ;;
  4933. + tic55x | c55x*)
  4934. + basic_machine=tic55x-unknown
  4935. + os=-coff
  4936. + ;;
  4937. + tic6x | c6x*)
  4938. + basic_machine=tic6x-unknown
  4939. + os=-coff
  4940. + ;;
  4941. + tile*)
  4942. + basic_machine=tile-unknown
  4943. + os=-linux-gnu
  4944. + ;;
  4945. + tx39)
  4946. + basic_machine=mipstx39-unknown
  4947. + ;;
  4948. + tx39el)
  4949. + basic_machine=mipstx39el-unknown
  4950. + ;;
  4951. + toad1)
  4952. + basic_machine=pdp10-xkl
  4953. + os=-tops20
  4954. + ;;
  4955. + tower | tower-32)
  4956. + basic_machine=m68k-ncr
  4957. + ;;
  4958. + tpf)
  4959. + basic_machine=s390x-ibm
  4960. + os=-tpf
  4961. + ;;
  4962. + udi29k)
  4963. + basic_machine=a29k-amd
  4964. + os=-udi
  4965. + ;;
  4966. + ultra3)
  4967. + basic_machine=a29k-nyu
  4968. + os=-sym1
  4969. + ;;
  4970. + v810 | necv810)
  4971. + basic_machine=v810-nec
  4972. + os=-none
  4973. + ;;
  4974. + vaxv)
  4975. + basic_machine=vax-dec
  4976. + os=-sysv
  4977. + ;;
  4978. + vms)
  4979. + basic_machine=vax-dec
  4980. + os=-vms
  4981. + ;;
  4982. + vpp*|vx|vx-*)
  4983. + basic_machine=f301-fujitsu
  4984. + ;;
  4985. + vxworks960)
  4986. + basic_machine=i960-wrs
  4987. + os=-vxworks
  4988. + ;;
  4989. + vxworks68)
  4990. + basic_machine=m68k-wrs
  4991. + os=-vxworks
  4992. + ;;
  4993. + vxworks29k)
  4994. + basic_machine=a29k-wrs
  4995. + os=-vxworks
  4996. + ;;
  4997. + w65*)
  4998. + basic_machine=w65-wdc
  4999. + os=-none
  5000. + ;;
  5001. + w89k-*)
  5002. + basic_machine=hppa1.1-winbond
  5003. + os=-proelf
  5004. + ;;
  5005. + xbox)
  5006. + basic_machine=i686-pc
  5007. + os=-mingw32
  5008. + ;;
  5009. + xps | xps100)
  5010. + basic_machine=xps100-honeywell
  5011. + ;;
  5012. + ymp)
  5013. + basic_machine=ymp-cray
  5014. + os=-unicos
  5015. + ;;
  5016. + z8k-*-coff)
  5017. + basic_machine=z8k-unknown
  5018. + os=-sim
  5019. + ;;
  5020. + z80-*-coff)
  5021. + basic_machine=z80-unknown
  5022. + os=-sim
  5023. + ;;
  5024. + none)
  5025. + basic_machine=none-none
  5026. + os=-none
  5027. + ;;
  5028. +
  5029. +# Here we handle the default manufacturer of certain CPU types. It is in
  5030. +# some cases the only manufacturer, in others, it is the most popular.
  5031. + w89k)
  5032. + basic_machine=hppa1.1-winbond
  5033. + ;;
  5034. + op50n)
  5035. + basic_machine=hppa1.1-oki
  5036. + ;;
  5037. + op60c)
  5038. + basic_machine=hppa1.1-oki
  5039. + ;;
  5040. + romp)
  5041. + basic_machine=romp-ibm
  5042. + ;;
  5043. + mmix)
  5044. + basic_machine=mmix-knuth
  5045. + ;;
  5046. + rs6000)
  5047. + basic_machine=rs6000-ibm
  5048. + ;;
  5049. + vax)
  5050. + basic_machine=vax-dec
  5051. + ;;
  5052. + pdp10)
  5053. + # there are many clones, so DEC is not a safe bet
  5054. + basic_machine=pdp10-unknown
  5055. + ;;
  5056. + pdp11)
  5057. + basic_machine=pdp11-dec
  5058. + ;;
  5059. + we32k)
  5060. + basic_machine=we32k-att
  5061. + ;;
  5062. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  5063. + basic_machine=sh-unknown
  5064. + ;;
  5065. + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  5066. + basic_machine=sparc-sun
  5067. + ;;
  5068. + cydra)
  5069. + basic_machine=cydra-cydrome
  5070. + ;;
  5071. + orion)
  5072. + basic_machine=orion-highlevel
  5073. + ;;
  5074. + orion105)
  5075. + basic_machine=clipper-highlevel
  5076. + ;;
  5077. + mac | mpw | mac-mpw)
  5078. + basic_machine=m68k-apple
  5079. + ;;
  5080. + pmac | pmac-mpw)
  5081. + basic_machine=powerpc-apple
  5082. + ;;
  5083. + *-unknown)
  5084. + # Make sure to match an already-canonicalized machine name.
  5085. + ;;
  5086. + *)
  5087. + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  5088. + exit 1
  5089. + ;;
  5090. +esac
  5091. +
  5092. +# Here we canonicalize certain aliases for manufacturers.
  5093. +case $basic_machine in
  5094. + *-digital*)
  5095. + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
  5096. + ;;
  5097. + *-commodore*)
  5098. + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
  5099. + ;;
  5100. + *)
  5101. + ;;
  5102. +esac
  5103. +
  5104. +# Decode manufacturer-specific aliases for certain operating systems.
  5105. +
  5106. +if [ x"$os" != x"" ]
  5107. +then
  5108. +case $os in
  5109. + # First match some system type aliases
  5110. + # that might get confused with valid system types.
  5111. + # -solaris* is a basic system type, with this one exception.
  5112. + -solaris1 | -solaris1.*)
  5113. + os=`echo $os | sed -e 's|solaris1|sunos4|'`
  5114. + ;;
  5115. + -solaris)
  5116. + os=-solaris2
  5117. + ;;
  5118. + -svr4*)
  5119. + os=-sysv4
  5120. + ;;
  5121. + -unixware*)
  5122. + os=-sysv4.2uw
  5123. + ;;
  5124. + -gnu/linux*)
  5125. + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
  5126. + ;;
  5127. + # First accept the basic system types.
  5128. + # The portable systems comes first.
  5129. + # Each alternative MUST END IN A *, to match a version number.
  5130. + # -sysv* is not here because it comes later, after sysvr4.
  5131. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  5132. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  5133. + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  5134. + | -kopensolaris* \
  5135. + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  5136. + | -aos* | -aros* \
  5137. + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  5138. + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  5139. + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  5140. + | -openbsd* | -solidbsd* \
  5141. + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  5142. + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  5143. + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  5144. + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  5145. + | -chorusos* | -chorusrdb* | -cegcc* \
  5146. + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  5147. + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  5148. + | -uxpv* | -beos* | -mpeix* | -udk* \
  5149. + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  5150. + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  5151. + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  5152. + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  5153. + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  5154. + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  5155. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  5156. + # Remember, each alternative MUST END IN *, to match a version number.
  5157. + ;;
  5158. + -qnx*)
  5159. + case $basic_machine in
  5160. + x86-* | i*86-*)
  5161. + ;;
  5162. + *)
  5163. + os=-nto$os
  5164. + ;;
  5165. + esac
  5166. + ;;
  5167. + -nto-qnx*)
  5168. + ;;
  5169. + -nto*)
  5170. + os=`echo $os | sed -e 's|nto|nto-qnx|'`
  5171. + ;;
  5172. + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  5173. + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
  5174. + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  5175. + ;;
  5176. + -mac*)
  5177. + os=`echo $os | sed -e 's|mac|macos|'`
  5178. + ;;
  5179. + -linux-dietlibc)
  5180. + os=-linux-dietlibc
  5181. + ;;
  5182. + -linux*)
  5183. + os=`echo $os | sed -e 's|linux|linux-gnu|'`
  5184. + ;;
  5185. + -sunos5*)
  5186. + os=`echo $os | sed -e 's|sunos5|solaris2|'`
  5187. + ;;
  5188. + -sunos6*)
  5189. + os=`echo $os | sed -e 's|sunos6|solaris3|'`
  5190. + ;;
  5191. + -opened*)
  5192. + os=-openedition
  5193. + ;;
  5194. + -os400*)
  5195. + os=-os400
  5196. + ;;
  5197. + -wince*)
  5198. + os=-wince
  5199. + ;;
  5200. + -osfrose*)
  5201. + os=-osfrose
  5202. + ;;
  5203. + -osf*)
  5204. + os=-osf
  5205. + ;;
  5206. + -utek*)
  5207. + os=-bsd
  5208. + ;;
  5209. + -dynix*)
  5210. + os=-bsd
  5211. + ;;
  5212. + -acis*)
  5213. + os=-aos
  5214. + ;;
  5215. + -atheos*)
  5216. + os=-atheos
  5217. + ;;
  5218. + -syllable*)
  5219. + os=-syllable
  5220. + ;;
  5221. + -386bsd)
  5222. + os=-bsd
  5223. + ;;
  5224. + -ctix* | -uts*)
  5225. + os=-sysv
  5226. + ;;
  5227. + -nova*)
  5228. + os=-rtmk-nova
  5229. + ;;
  5230. + -ns2 )
  5231. + os=-nextstep2
  5232. + ;;
  5233. + -nsk*)
  5234. + os=-nsk
  5235. + ;;
  5236. + # Preserve the version number of sinix5.
  5237. + -sinix5.*)
  5238. + os=`echo $os | sed -e 's|sinix|sysv|'`
  5239. + ;;
  5240. + -sinix*)
  5241. + os=-sysv4
  5242. + ;;
  5243. + -tpf*)
  5244. + os=-tpf
  5245. + ;;
  5246. + -triton*)
  5247. + os=-sysv3
  5248. + ;;
  5249. + -oss*)
  5250. + os=-sysv3
  5251. + ;;
  5252. + -svr4)
  5253. + os=-sysv4
  5254. + ;;
  5255. + -svr3)
  5256. + os=-sysv3
  5257. + ;;
  5258. + -sysvr4)
  5259. + os=-sysv4
  5260. + ;;
  5261. + # This must come after -sysvr4.
  5262. + -sysv*)
  5263. + ;;
  5264. + -ose*)
  5265. + os=-ose
  5266. + ;;
  5267. + -es1800*)
  5268. + os=-ose
  5269. + ;;
  5270. + -xenix)
  5271. + os=-xenix
  5272. + ;;
  5273. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  5274. + os=-mint
  5275. + ;;
  5276. + -aros*)
  5277. + os=-aros
  5278. + ;;
  5279. + -kaos*)
  5280. + os=-kaos
  5281. + ;;
  5282. + -zvmoe)
  5283. + os=-zvmoe
  5284. + ;;
  5285. + -dicos*)
  5286. + os=-dicos
  5287. + ;;
  5288. + -none)
  5289. + ;;
  5290. + *)
  5291. + # Get rid of the `-' at the beginning of $os.
  5292. + os=`echo $os | sed 's/[^-]*-//'`
  5293. + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
  5294. + exit 1
  5295. + ;;
  5296. +esac
  5297. +else
  5298. +
  5299. +# Here we handle the default operating systems that come with various machines.
  5300. +# The value should be what the vendor currently ships out the door with their
  5301. +# machine or put another way, the most popular os provided with the machine.
  5302. +
  5303. +# Note that if you're going to try to match "-MANUFACTURER" here (say,
  5304. +# "-sun"), then you have to tell the case statement up towards the top
  5305. +# that MANUFACTURER isn't an operating system. Otherwise, code above
  5306. +# will signal an error saying that MANUFACTURER isn't an operating
  5307. +# system, and we'll never get to this point.
  5308. +
  5309. +case $basic_machine in
  5310. + score-*)
  5311. + os=-elf
  5312. + ;;
  5313. + spu-*)
  5314. + os=-elf
  5315. + ;;
  5316. + *-acorn)
  5317. + os=-riscix1.2
  5318. + ;;
  5319. + arm*-rebel)
  5320. + os=-linux
  5321. + ;;
  5322. + arm*-semi)
  5323. + os=-aout
  5324. + ;;
  5325. + c4x-* | tic4x-*)
  5326. + os=-coff
  5327. + ;;
  5328. + # This must come before the *-dec entry.
  5329. + pdp10-*)
  5330. + os=-tops20
  5331. + ;;
  5332. + pdp11-*)
  5333. + os=-none
  5334. + ;;
  5335. + *-dec | vax-*)
  5336. + os=-ultrix4.2
  5337. + ;;
  5338. + m68*-apollo)
  5339. + os=-domain
  5340. + ;;
  5341. + i386-sun)
  5342. + os=-sunos4.0.2
  5343. + ;;
  5344. + m68000-sun)
  5345. + os=-sunos3
  5346. + # This also exists in the configure program, but was not the
  5347. + # default.
  5348. + # os=-sunos4
  5349. + ;;
  5350. + m68*-cisco)
  5351. + os=-aout
  5352. + ;;
  5353. + mep-*)
  5354. + os=-elf
  5355. + ;;
  5356. + mips*-cisco)
  5357. + os=-elf
  5358. + ;;
  5359. + mips*-*)
  5360. + os=-elf
  5361. + ;;
  5362. + or32-*)
  5363. + os=-coff
  5364. + ;;
  5365. + *-tti) # must be before sparc entry or we get the wrong os.
  5366. + os=-sysv3
  5367. + ;;
  5368. + sparc-* | *-sun)
  5369. + os=-sunos4.1.1
  5370. + ;;
  5371. + *-be)
  5372. + os=-beos
  5373. + ;;
  5374. + *-haiku)
  5375. + os=-haiku
  5376. + ;;
  5377. + *-ibm)
  5378. + os=-aix
  5379. + ;;
  5380. + *-knuth)
  5381. + os=-mmixware
  5382. + ;;
  5383. + *-wec)
  5384. + os=-proelf
  5385. + ;;
  5386. + *-winbond)
  5387. + os=-proelf
  5388. + ;;
  5389. + *-oki)
  5390. + os=-proelf
  5391. + ;;
  5392. + *-hp)
  5393. + os=-hpux
  5394. + ;;
  5395. + *-hitachi)
  5396. + os=-hiux
  5397. + ;;
  5398. + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
  5399. + os=-sysv
  5400. + ;;
  5401. + *-cbm)
  5402. + os=-amigaos
  5403. + ;;
  5404. + *-dg)
  5405. + os=-dgux
  5406. + ;;
  5407. + *-dolphin)
  5408. + os=-sysv3
  5409. + ;;
  5410. + m68k-ccur)
  5411. + os=-rtu
  5412. + ;;
  5413. + m88k-omron*)
  5414. + os=-luna
  5415. + ;;
  5416. + *-next )
  5417. + os=-nextstep
  5418. + ;;
  5419. + *-sequent)
  5420. + os=-ptx
  5421. + ;;
  5422. + *-crds)
  5423. + os=-unos
  5424. + ;;
  5425. + *-ns)
  5426. + os=-genix
  5427. + ;;
  5428. + i370-*)
  5429. + os=-mvs
  5430. + ;;
  5431. + *-next)
  5432. + os=-nextstep3
  5433. + ;;
  5434. + *-gould)
  5435. + os=-sysv
  5436. + ;;
  5437. + *-highlevel)
  5438. + os=-bsd
  5439. + ;;
  5440. + *-encore)
  5441. + os=-bsd
  5442. + ;;
  5443. + *-sgi)
  5444. + os=-irix
  5445. + ;;
  5446. + *-siemens)
  5447. + os=-sysv4
  5448. + ;;
  5449. + *-masscomp)
  5450. + os=-rtu
  5451. + ;;
  5452. + f30[01]-fujitsu | f700-fujitsu)
  5453. + os=-uxpv
  5454. + ;;
  5455. + *-rom68k)
  5456. + os=-coff
  5457. + ;;
  5458. + *-*bug)
  5459. + os=-coff
  5460. + ;;
  5461. + *-apple)
  5462. + os=-macos
  5463. + ;;
  5464. + *-atari*)
  5465. + os=-mint
  5466. + ;;
  5467. + *)
  5468. + os=-none
  5469. + ;;
  5470. +esac
  5471. +fi
  5472. +
  5473. +# Here we handle the case where we know the os, and the CPU type, but not the
  5474. +# manufacturer. We pick the logical manufacturer.
  5475. +vendor=unknown
  5476. +case $basic_machine in
  5477. + *-unknown)
  5478. + case $os in
  5479. + -riscix*)
  5480. + vendor=acorn
  5481. + ;;
  5482. + -sunos*)
  5483. + vendor=sun
  5484. + ;;
  5485. + -cnk*|-aix*)
  5486. + vendor=ibm
  5487. + ;;
  5488. + -beos*)
  5489. + vendor=be
  5490. + ;;
  5491. + -hpux*)
  5492. + vendor=hp
  5493. + ;;
  5494. + -mpeix*)
  5495. + vendor=hp
  5496. + ;;
  5497. + -hiux*)
  5498. + vendor=hitachi
  5499. + ;;
  5500. + -unos*)
  5501. + vendor=crds
  5502. + ;;
  5503. + -dgux*)
  5504. + vendor=dg
  5505. + ;;
  5506. + -luna*)
  5507. + vendor=omron
  5508. + ;;
  5509. + -genix*)
  5510. + vendor=ns
  5511. + ;;
  5512. + -mvs* | -opened*)
  5513. + vendor=ibm
  5514. + ;;
  5515. + -os400*)
  5516. + vendor=ibm
  5517. + ;;
  5518. + -ptx*)
  5519. + vendor=sequent
  5520. + ;;
  5521. + -tpf*)
  5522. + vendor=ibm
  5523. + ;;
  5524. + -vxsim* | -vxworks* | -windiss*)
  5525. + vendor=wrs
  5526. + ;;
  5527. + -aux*)
  5528. + vendor=apple
  5529. + ;;
  5530. + -hms*)
  5531. + vendor=hitachi
  5532. + ;;
  5533. + -mpw* | -macos*)
  5534. + vendor=apple
  5535. + ;;
  5536. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  5537. + vendor=atari
  5538. + ;;
  5539. + -vos*)
  5540. + vendor=stratus
  5541. + ;;
  5542. + esac
  5543. + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  5544. + ;;
  5545. +esac
  5546. +
  5547. +echo $basic_machine$os
  5548. +exit
  5549. +
  5550. +# Local variables:
  5551. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  5552. +# time-stamp-start: "timestamp='"
  5553. +# time-stamp-format: "%:y-%02m-%02d"
  5554. +# time-stamp-end: "'"
  5555. +# End:
  5556. diff -Nur tslib-1.0.orig/configure tslib-1.0/configure
  5557. --- tslib-1.0.orig/configure 1970-01-01 01:00:00.000000000 +0100
  5558. +++ tslib-1.0/configure 2010-07-29 13:39:15.000000000 +0200
  5559. @@ -0,0 +1,18585 @@
  5560. +#! /bin/sh
  5561. +# Guess values for system-dependent variables and create Makefiles.
  5562. +# Generated by GNU Autoconf 2.65 for tslib 0.0.2.
  5563. +#
  5564. +# Report bugs to <kergoth@handhelds.org>.
  5565. +#
  5566. +#
  5567. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  5568. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  5569. +# Inc.
  5570. +#
  5571. +#
  5572. +# This configure script is free software; the Free Software Foundation
  5573. +# gives unlimited permission to copy, distribute and modify it.
  5574. +## -------------------- ##
  5575. +## M4sh Initialization. ##
  5576. +## -------------------- ##
  5577. +
  5578. +# Be more Bourne compatible
  5579. +DUALCASE=1; export DUALCASE # for MKS sh
  5580. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  5581. + emulate sh
  5582. + NULLCMD=:
  5583. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  5584. + # is contrary to our usage. Disable this feature.
  5585. + alias -g '${1+"$@"}'='"$@"'
  5586. + setopt NO_GLOB_SUBST
  5587. +else
  5588. + case `(set -o) 2>/dev/null` in #(
  5589. + *posix*) :
  5590. + set -o posix ;; #(
  5591. + *) :
  5592. + ;;
  5593. +esac
  5594. +fi
  5595. +
  5596. +
  5597. +as_nl='
  5598. +'
  5599. +export as_nl
  5600. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  5601. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5602. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  5603. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  5604. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  5605. +# but without wasting forks for bash or zsh.
  5606. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  5607. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  5608. + as_echo='print -r --'
  5609. + as_echo_n='print -rn --'
  5610. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  5611. + as_echo='printf %s\n'
  5612. + as_echo_n='printf %s'
  5613. +else
  5614. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  5615. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  5616. + as_echo_n='/usr/ucb/echo -n'
  5617. + else
  5618. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  5619. + as_echo_n_body='eval
  5620. + arg=$1;
  5621. + case $arg in #(
  5622. + *"$as_nl"*)
  5623. + expr "X$arg" : "X\\(.*\\)$as_nl";
  5624. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  5625. + esac;
  5626. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  5627. + '
  5628. + export as_echo_n_body
  5629. + as_echo_n='sh -c $as_echo_n_body as_echo'
  5630. + fi
  5631. + export as_echo_body
  5632. + as_echo='sh -c $as_echo_body as_echo'
  5633. +fi
  5634. +
  5635. +# The user is always right.
  5636. +if test "${PATH_SEPARATOR+set}" != set; then
  5637. + PATH_SEPARATOR=:
  5638. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  5639. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  5640. + PATH_SEPARATOR=';'
  5641. + }
  5642. +fi
  5643. +
  5644. +
  5645. +# IFS
  5646. +# We need space, tab and new line, in precisely that order. Quoting is
  5647. +# there to prevent editors from complaining about space-tab.
  5648. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  5649. +# splitting by setting IFS to empty value.)
  5650. +IFS=" "" $as_nl"
  5651. +
  5652. +# Find who we are. Look in the path if we contain no directory separator.
  5653. +case $0 in #((
  5654. + *[\\/]* ) as_myself=$0 ;;
  5655. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5656. +for as_dir in $PATH
  5657. +do
  5658. + IFS=$as_save_IFS
  5659. + test -z "$as_dir" && as_dir=.
  5660. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5661. + done
  5662. +IFS=$as_save_IFS
  5663. +
  5664. + ;;
  5665. +esac
  5666. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  5667. +# in which case we are not to be found in the path.
  5668. +if test "x$as_myself" = x; then
  5669. + as_myself=$0
  5670. +fi
  5671. +if test ! -f "$as_myself"; then
  5672. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5673. + exit 1
  5674. +fi
  5675. +
  5676. +# Unset variables that we do not need and which cause bugs (e.g. in
  5677. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  5678. +# suppresses any "Segmentation fault" message there. '((' could
  5679. +# trigger a bug in pdksh 5.2.14.
  5680. +for as_var in BASH_ENV ENV MAIL MAILPATH
  5681. +do eval test x\${$as_var+set} = xset \
  5682. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  5683. +done
  5684. +PS1='$ '
  5685. +PS2='> '
  5686. +PS4='+ '
  5687. +
  5688. +# NLS nuisances.
  5689. +LC_ALL=C
  5690. +export LC_ALL
  5691. +LANGUAGE=C
  5692. +export LANGUAGE
  5693. +
  5694. +# CDPATH.
  5695. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  5696. +
  5697. +if test "x$CONFIG_SHELL" = x; then
  5698. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  5699. + emulate sh
  5700. + NULLCMD=:
  5701. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  5702. + # is contrary to our usage. Disable this feature.
  5703. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  5704. + setopt NO_GLOB_SUBST
  5705. +else
  5706. + case \`(set -o) 2>/dev/null\` in #(
  5707. + *posix*) :
  5708. + set -o posix ;; #(
  5709. + *) :
  5710. + ;;
  5711. +esac
  5712. +fi
  5713. +"
  5714. + as_required="as_fn_return () { (exit \$1); }
  5715. +as_fn_success () { as_fn_return 0; }
  5716. +as_fn_failure () { as_fn_return 1; }
  5717. +as_fn_ret_success () { return 0; }
  5718. +as_fn_ret_failure () { return 1; }
  5719. +
  5720. +exitcode=0
  5721. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  5722. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  5723. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  5724. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  5725. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  5726. +
  5727. +else
  5728. + exitcode=1; echo positional parameters were not saved.
  5729. +fi
  5730. +test x\$exitcode = x0 || exit 1"
  5731. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  5732. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  5733. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  5734. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  5735. +test \$(( 1 + 1 )) = 2 || exit 1"
  5736. + if (eval "$as_required") 2>/dev/null; then :
  5737. + as_have_required=yes
  5738. +else
  5739. + as_have_required=no
  5740. +fi
  5741. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  5742. +
  5743. +else
  5744. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5745. +as_found=false
  5746. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  5747. +do
  5748. + IFS=$as_save_IFS
  5749. + test -z "$as_dir" && as_dir=.
  5750. + as_found=:
  5751. + case $as_dir in #(
  5752. + /*)
  5753. + for as_base in sh bash ksh sh5; do
  5754. + # Try only shells that exist, to save several forks.
  5755. + as_shell=$as_dir/$as_base
  5756. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  5757. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  5758. + CONFIG_SHELL=$as_shell as_have_required=yes
  5759. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  5760. + break 2
  5761. +fi
  5762. +fi
  5763. + done;;
  5764. + esac
  5765. + as_found=false
  5766. +done
  5767. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  5768. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  5769. + CONFIG_SHELL=$SHELL as_have_required=yes
  5770. +fi; }
  5771. +IFS=$as_save_IFS
  5772. +
  5773. +
  5774. + if test "x$CONFIG_SHELL" != x; then :
  5775. + # We cannot yet assume a decent shell, so we have to provide a
  5776. + # neutralization value for shells without unset; and this also
  5777. + # works around shells that cannot unset nonexistent variables.
  5778. + BASH_ENV=/dev/null
  5779. + ENV=/dev/null
  5780. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  5781. + export CONFIG_SHELL
  5782. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  5783. +fi
  5784. +
  5785. + if test x$as_have_required = xno; then :
  5786. + $as_echo "$0: This script requires a shell more modern than all"
  5787. + $as_echo "$0: the shells that I found on your system."
  5788. + if test x${ZSH_VERSION+set} = xset ; then
  5789. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  5790. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  5791. + else
  5792. + $as_echo "$0: Please tell bug-autoconf@gnu.org and
  5793. +$0: kergoth@handhelds.org about your system, including any
  5794. +$0: error possibly output before this message. Then install
  5795. +$0: a modern shell, or manually run the script under such a
  5796. +$0: shell if you do have one."
  5797. + fi
  5798. + exit 1
  5799. +fi
  5800. +fi
  5801. +fi
  5802. +SHELL=${CONFIG_SHELL-/bin/sh}
  5803. +export SHELL
  5804. +# Unset more variables known to interfere with behavior of common tools.
  5805. +CLICOLOR_FORCE= GREP_OPTIONS=
  5806. +unset CLICOLOR_FORCE GREP_OPTIONS
  5807. +
  5808. +## --------------------- ##
  5809. +## M4sh Shell Functions. ##
  5810. +## --------------------- ##
  5811. +# as_fn_unset VAR
  5812. +# ---------------
  5813. +# Portably unset VAR.
  5814. +as_fn_unset ()
  5815. +{
  5816. + { eval $1=; unset $1;}
  5817. +}
  5818. +as_unset=as_fn_unset
  5819. +
  5820. +# as_fn_set_status STATUS
  5821. +# -----------------------
  5822. +# Set $? to STATUS, without forking.
  5823. +as_fn_set_status ()
  5824. +{
  5825. + return $1
  5826. +} # as_fn_set_status
  5827. +
  5828. +# as_fn_exit STATUS
  5829. +# -----------------
  5830. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  5831. +as_fn_exit ()
  5832. +{
  5833. + set +e
  5834. + as_fn_set_status $1
  5835. + exit $1
  5836. +} # as_fn_exit
  5837. +
  5838. +# as_fn_mkdir_p
  5839. +# -------------
  5840. +# Create "$as_dir" as a directory, including parents if necessary.
  5841. +as_fn_mkdir_p ()
  5842. +{
  5843. +
  5844. + case $as_dir in #(
  5845. + -*) as_dir=./$as_dir;;
  5846. + esac
  5847. + test -d "$as_dir" || eval $as_mkdir_p || {
  5848. + as_dirs=
  5849. + while :; do
  5850. + case $as_dir in #(
  5851. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  5852. + *) as_qdir=$as_dir;;
  5853. + esac
  5854. + as_dirs="'$as_qdir' $as_dirs"
  5855. + as_dir=`$as_dirname -- "$as_dir" ||
  5856. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5857. + X"$as_dir" : 'X\(//\)[^/]' \| \
  5858. + X"$as_dir" : 'X\(//\)$' \| \
  5859. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  5860. +$as_echo X"$as_dir" |
  5861. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5862. + s//\1/
  5863. + q
  5864. + }
  5865. + /^X\(\/\/\)[^/].*/{
  5866. + s//\1/
  5867. + q
  5868. + }
  5869. + /^X\(\/\/\)$/{
  5870. + s//\1/
  5871. + q
  5872. + }
  5873. + /^X\(\/\).*/{
  5874. + s//\1/
  5875. + q
  5876. + }
  5877. + s/.*/./; q'`
  5878. + test -d "$as_dir" && break
  5879. + done
  5880. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  5881. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  5882. +
  5883. +
  5884. +} # as_fn_mkdir_p
  5885. +# as_fn_append VAR VALUE
  5886. +# ----------------------
  5887. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  5888. +# advantage of any shell optimizations that allow amortized linear growth over
  5889. +# repeated appends, instead of the typical quadratic growth present in naive
  5890. +# implementations.
  5891. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  5892. + eval 'as_fn_append ()
  5893. + {
  5894. + eval $1+=\$2
  5895. + }'
  5896. +else
  5897. + as_fn_append ()
  5898. + {
  5899. + eval $1=\$$1\$2
  5900. + }
  5901. +fi # as_fn_append
  5902. +
  5903. +# as_fn_arith ARG...
  5904. +# ------------------
  5905. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  5906. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  5907. +# must be portable across $(()) and expr.
  5908. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  5909. + eval 'as_fn_arith ()
  5910. + {
  5911. + as_val=$(( $* ))
  5912. + }'
  5913. +else
  5914. + as_fn_arith ()
  5915. + {
  5916. + as_val=`expr "$@" || test $? -eq 1`
  5917. + }
  5918. +fi # as_fn_arith
  5919. +
  5920. +
  5921. +# as_fn_error ERROR [LINENO LOG_FD]
  5922. +# ---------------------------------
  5923. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  5924. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  5925. +# script with status $?, using 1 if that was 0.
  5926. +as_fn_error ()
  5927. +{
  5928. + as_status=$?; test $as_status -eq 0 && as_status=1
  5929. + if test "$3"; then
  5930. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  5931. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  5932. + fi
  5933. + $as_echo "$as_me: error: $1" >&2
  5934. + as_fn_exit $as_status
  5935. +} # as_fn_error
  5936. +
  5937. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  5938. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5939. + as_expr=expr
  5940. +else
  5941. + as_expr=false
  5942. +fi
  5943. +
  5944. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5945. + as_basename=basename
  5946. +else
  5947. + as_basename=false
  5948. +fi
  5949. +
  5950. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5951. + as_dirname=dirname
  5952. +else
  5953. + as_dirname=false
  5954. +fi
  5955. +
  5956. +as_me=`$as_basename -- "$0" ||
  5957. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5958. + X"$0" : 'X\(//\)$' \| \
  5959. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5960. +$as_echo X/"$0" |
  5961. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  5962. + s//\1/
  5963. + q
  5964. + }
  5965. + /^X\/\(\/\/\)$/{
  5966. + s//\1/
  5967. + q
  5968. + }
  5969. + /^X\/\(\/\).*/{
  5970. + s//\1/
  5971. + q
  5972. + }
  5973. + s/.*/./; q'`
  5974. +
  5975. +# Avoid depending upon Character Ranges.
  5976. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5977. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5978. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5979. +as_cr_digits='0123456789'
  5980. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  5981. +
  5982. +
  5983. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  5984. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  5985. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  5986. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  5987. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  5988. + sed -n '
  5989. + p
  5990. + /[$]LINENO/=
  5991. + ' <$as_myself |
  5992. + sed '
  5993. + s/[$]LINENO.*/&-/
  5994. + t lineno
  5995. + b
  5996. + :lineno
  5997. + N
  5998. + :loop
  5999. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  6000. + t loop
  6001. + s/-\n.*//
  6002. + ' >$as_me.lineno &&
  6003. + chmod +x "$as_me.lineno" ||
  6004. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  6005. +
  6006. + # Don't try to exec as it changes $[0], causing all sort of problems
  6007. + # (the dirname of $[0] is not the place where we might find the
  6008. + # original and so on. Autoconf is especially sensitive to this).
  6009. + . "./$as_me.lineno"
  6010. + # Exit status is that of the last command.
  6011. + exit
  6012. +}
  6013. +
  6014. +ECHO_C= ECHO_N= ECHO_T=
  6015. +case `echo -n x` in #(((((
  6016. +-n*)
  6017. + case `echo 'xy\c'` in
  6018. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6019. + xy) ECHO_C='\c';;
  6020. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6021. + ECHO_T=' ';;
  6022. + esac;;
  6023. +*)
  6024. + ECHO_N='-n';;
  6025. +esac
  6026. +
  6027. +rm -f conf$$ conf$$.exe conf$$.file
  6028. +if test -d conf$$.dir; then
  6029. + rm -f conf$$.dir/conf$$.file
  6030. +else
  6031. + rm -f conf$$.dir
  6032. + mkdir conf$$.dir 2>/dev/null
  6033. +fi
  6034. +if (echo >conf$$.file) 2>/dev/null; then
  6035. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  6036. + as_ln_s='ln -s'
  6037. + # ... but there are two gotchas:
  6038. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6039. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6040. + # In both cases, we have to default to `cp -p'.
  6041. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6042. + as_ln_s='cp -p'
  6043. + elif ln conf$$.file conf$$ 2>/dev/null; then
  6044. + as_ln_s=ln
  6045. + else
  6046. + as_ln_s='cp -p'
  6047. + fi
  6048. +else
  6049. + as_ln_s='cp -p'
  6050. +fi
  6051. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6052. +rmdir conf$$.dir 2>/dev/null
  6053. +
  6054. +if mkdir -p . 2>/dev/null; then
  6055. + as_mkdir_p='mkdir -p "$as_dir"'
  6056. +else
  6057. + test -d ./-p && rmdir ./-p
  6058. + as_mkdir_p=false
  6059. +fi
  6060. +
  6061. +if test -x / >/dev/null 2>&1; then
  6062. + as_test_x='test -x'
  6063. +else
  6064. + if ls -dL / >/dev/null 2>&1; then
  6065. + as_ls_L_option=L
  6066. + else
  6067. + as_ls_L_option=
  6068. + fi
  6069. + as_test_x='
  6070. + eval sh -c '\''
  6071. + if test -d "$1"; then
  6072. + test -d "$1/.";
  6073. + else
  6074. + case $1 in #(
  6075. + -*)set "./$1";;
  6076. + esac;
  6077. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  6078. + ???[sx]*):;;*)false;;esac;fi
  6079. + '\'' sh
  6080. + '
  6081. +fi
  6082. +as_executable_p=$as_test_x
  6083. +
  6084. +# Sed expression to map a string onto a valid CPP name.
  6085. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6086. +
  6087. +# Sed expression to map a string onto a valid variable name.
  6088. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6089. +
  6090. +
  6091. +
  6092. +# Check that we are running under the correct shell.
  6093. +SHELL=${CONFIG_SHELL-/bin/sh}
  6094. +
  6095. +case X$lt_ECHO in
  6096. +X*--fallback-echo)
  6097. + # Remove one level of quotation (which was required for Make).
  6098. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  6099. + ;;
  6100. +esac
  6101. +
  6102. +ECHO=${lt_ECHO-echo}
  6103. +if test "X$1" = X--no-reexec; then
  6104. + # Discard the --no-reexec flag, and continue.
  6105. + shift
  6106. +elif test "X$1" = X--fallback-echo; then
  6107. + # Avoid inline document here, it may be left over
  6108. + :
  6109. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  6110. + # Yippee, $ECHO works!
  6111. + :
  6112. +else
  6113. + # Restart under the correct shell.
  6114. + exec $SHELL "$0" --no-reexec ${1+"$@"}
  6115. +fi
  6116. +
  6117. +if test "X$1" = X--fallback-echo; then
  6118. + # used as fallback echo
  6119. + shift
  6120. + cat <<_LT_EOF
  6121. +$*
  6122. +_LT_EOF
  6123. + exit 0
  6124. +fi
  6125. +
  6126. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  6127. +# if CDPATH is set.
  6128. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6129. +
  6130. +if test -z "$lt_ECHO"; then
  6131. + if test "X${echo_test_string+set}" != Xset; then
  6132. + # find a string as large as possible, as long as the shell can cope with it
  6133. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  6134. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  6135. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  6136. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  6137. + then
  6138. + break
  6139. + fi
  6140. + done
  6141. + fi
  6142. +
  6143. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  6144. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  6145. + test "X$echo_testing_string" = "X$echo_test_string"; then
  6146. + :
  6147. + else
  6148. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  6149. + # backslashes. This makes it impossible to quote backslashes using
  6150. + # echo "$something" | sed 's/\\/\\\\/g'
  6151. + #
  6152. + # So, first we look for a working echo in the user's PATH.
  6153. +
  6154. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6155. + for dir in $PATH /usr/ucb; do
  6156. + IFS="$lt_save_ifs"
  6157. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  6158. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  6159. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  6160. + test "X$echo_testing_string" = "X$echo_test_string"; then
  6161. + ECHO="$dir/echo"
  6162. + break
  6163. + fi
  6164. + done
  6165. + IFS="$lt_save_ifs"
  6166. +
  6167. + if test "X$ECHO" = Xecho; then
  6168. + # We didn't find a better echo, so look for alternatives.
  6169. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  6170. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  6171. + test "X$echo_testing_string" = "X$echo_test_string"; then
  6172. + # This shell has a builtin print -r that does the trick.
  6173. + ECHO='print -r'
  6174. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  6175. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  6176. + # If we have ksh, try running configure again with it.
  6177. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  6178. + export ORIGINAL_CONFIG_SHELL
  6179. + CONFIG_SHELL=/bin/ksh
  6180. + export CONFIG_SHELL
  6181. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  6182. + else
  6183. + # Try using printf.
  6184. + ECHO='printf %s\n'
  6185. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  6186. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  6187. + test "X$echo_testing_string" = "X$echo_test_string"; then
  6188. + # Cool, printf works
  6189. + :
  6190. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  6191. + test "X$echo_testing_string" = 'X\t' &&
  6192. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  6193. + test "X$echo_testing_string" = "X$echo_test_string"; then
  6194. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  6195. + export CONFIG_SHELL
  6196. + SHELL="$CONFIG_SHELL"
  6197. + export SHELL
  6198. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  6199. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  6200. + test "X$echo_testing_string" = 'X\t' &&
  6201. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  6202. + test "X$echo_testing_string" = "X$echo_test_string"; then
  6203. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  6204. + else
  6205. + # maybe with a smaller string...
  6206. + prev=:
  6207. +
  6208. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  6209. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  6210. + then
  6211. + break
  6212. + fi
  6213. + prev="$cmd"
  6214. + done
  6215. +
  6216. + if test "$prev" != 'sed 50q "$0"'; then
  6217. + echo_test_string=`eval $prev`
  6218. + export echo_test_string
  6219. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  6220. + else
  6221. + # Oops. We lost completely, so just stick with echo.
  6222. + ECHO=echo
  6223. + fi
  6224. + fi
  6225. + fi
  6226. + fi
  6227. + fi
  6228. +fi
  6229. +
  6230. +# Copy echo and quote the copy suitably for passing to libtool from
  6231. +# the Makefile, instead of quoting the original, which is used later.
  6232. +lt_ECHO=$ECHO
  6233. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  6234. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  6235. +fi
  6236. +
  6237. +
  6238. +
  6239. +
  6240. +test -n "$DJDIR" || exec 7<&0 </dev/null
  6241. +exec 6>&1
  6242. +
  6243. +# Name of the host.
  6244. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  6245. +# so uname gets run too.
  6246. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  6247. +
  6248. +#
  6249. +# Initializations.
  6250. +#
  6251. +ac_default_prefix=/usr/local
  6252. +ac_clean_files=
  6253. +ac_config_libobj_dir=.
  6254. +LIBOBJS=
  6255. +cross_compiling=no
  6256. +subdirs=
  6257. +MFLAGS=
  6258. +MAKEFLAGS=
  6259. +
  6260. +# Identity of this package.
  6261. +PACKAGE_NAME='tslib'
  6262. +PACKAGE_TARNAME='tslib'
  6263. +PACKAGE_VERSION='0.0.2'
  6264. +PACKAGE_STRING='tslib 0.0.2'
  6265. +PACKAGE_BUGREPORT='kergoth@handhelds.org'
  6266. +PACKAGE_URL=''
  6267. +
  6268. +ac_unique_file="src/ts_close.c"
  6269. +# Factoring default headers for most tests.
  6270. +ac_includes_default="\
  6271. +#include <stdio.h>
  6272. +#ifdef HAVE_SYS_TYPES_H
  6273. +# include <sys/types.h>
  6274. +#endif
  6275. +#ifdef HAVE_SYS_STAT_H
  6276. +# include <sys/stat.h>
  6277. +#endif
  6278. +#ifdef STDC_HEADERS
  6279. +# include <stdlib.h>
  6280. +# include <stddef.h>
  6281. +#else
  6282. +# ifdef HAVE_STDLIB_H
  6283. +# include <stdlib.h>
  6284. +# endif
  6285. +#endif
  6286. +#ifdef HAVE_STRING_H
  6287. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  6288. +# include <memory.h>
  6289. +# endif
  6290. +# include <string.h>
  6291. +#endif
  6292. +#ifdef HAVE_STRINGS_H
  6293. +# include <strings.h>
  6294. +#endif
  6295. +#ifdef HAVE_INTTYPES_H
  6296. +# include <inttypes.h>
  6297. +#endif
  6298. +#ifdef HAVE_STDINT_H
  6299. +# include <stdint.h>
  6300. +#endif
  6301. +#ifdef HAVE_UNISTD_H
  6302. +# include <unistd.h>
  6303. +#endif"
  6304. +
  6305. +ac_header_list=
  6306. +ac_subst_vars='am__EXEEXT_FALSE
  6307. +am__EXEEXT_TRUE
  6308. +LTLIBOBJS
  6309. +LT_AGE
  6310. +LT_REVISION
  6311. +LT_CURRENT
  6312. +LT_RELEASE
  6313. +TS_CONF
  6314. +LIBFLAGS
  6315. +DEBUGFLAGS
  6316. +PLUGIN_DIR
  6317. +ENABLE_INPUT_MODULE_FALSE
  6318. +ENABLE_INPUT_MODULE_TRUE
  6319. +ENABLE_ARCTIC2_MODULE_FALSE
  6320. +ENABLE_ARCTIC2_MODULE_TRUE
  6321. +ENABLE_MK712_MODULE_FALSE
  6322. +ENABLE_MK712_MODULE_TRUE
  6323. +ENABLE_H3600_MODULE_FALSE
  6324. +ENABLE_H3600_MODULE_TRUE
  6325. +ENABLE_COLLIE_MODULE_FALSE
  6326. +ENABLE_COLLIE_MODULE_TRUE
  6327. +ENABLE_CORGI_MODULE_FALSE
  6328. +ENABLE_CORGI_MODULE_TRUE
  6329. +ENABLE_UCB1X00_MODULE_FALSE
  6330. +ENABLE_UCB1X00_MODULE_TRUE
  6331. +ENABLE_PTHRES_MODULE_FALSE
  6332. +ENABLE_PTHRES_MODULE_TRUE
  6333. +ENABLE_VARIANCE_MODULE_FALSE
  6334. +ENABLE_VARIANCE_MODULE_TRUE
  6335. +ENABLE_H2200_LINEAR_MODULE_FALSE
  6336. +ENABLE_H2200_LINEAR_MODULE_TRUE
  6337. +ENABLE_DEJITTER_MODULE_FALSE
  6338. +ENABLE_DEJITTER_MODULE_TRUE
  6339. +ENABLE_LINEAR_MODULE_FALSE
  6340. +ENABLE_LINEAR_MODULE_TRUE
  6341. +LIBOBJS
  6342. +ALLOCA
  6343. +CXXCPP
  6344. +OTOOL64
  6345. +OTOOL
  6346. +LIPO
  6347. +NMEDIT
  6348. +DSYMUTIL
  6349. +lt_ECHO
  6350. +RANLIB
  6351. +AR
  6352. +OBJDUMP
  6353. +NM
  6354. +ac_ct_DUMPBIN
  6355. +DUMPBIN
  6356. +LD
  6357. +FGREP
  6358. +EGREP
  6359. +GREP
  6360. +SED
  6361. +host_os
  6362. +host_vendor
  6363. +host_cpu
  6364. +host
  6365. +build_os
  6366. +build_vendor
  6367. +build_cpu
  6368. +build
  6369. +LIBTOOL
  6370. +LN_S
  6371. +VIS_CFLAGS
  6372. +CPP
  6373. +am__fastdepCC_FALSE
  6374. +am__fastdepCC_TRUE
  6375. +CCDEPMODE
  6376. +ac_ct_CC
  6377. +CFLAGS
  6378. +CC
  6379. +am__fastdepCXX_FALSE
  6380. +am__fastdepCXX_TRUE
  6381. +CXXDEPMODE
  6382. +AMDEPBACKSLASH
  6383. +AMDEP_FALSE
  6384. +AMDEP_TRUE
  6385. +am__quote
  6386. +am__include
  6387. +DEPDIR
  6388. +OBJEXT
  6389. +EXEEXT
  6390. +ac_ct_CXX
  6391. +CPPFLAGS
  6392. +LDFLAGS
  6393. +CXXFLAGS
  6394. +CXX
  6395. +PACKAGE_DESCRIPTION
  6396. +am__untar
  6397. +am__tar
  6398. +AMTAR
  6399. +am__leading_dot
  6400. +SET_MAKE
  6401. +AWK
  6402. +mkdir_p
  6403. +MKDIR_P
  6404. +INSTALL_STRIP_PROGRAM
  6405. +STRIP
  6406. +install_sh
  6407. +MAKEINFO
  6408. +AUTOHEADER
  6409. +AUTOMAKE
  6410. +AUTOCONF
  6411. +ACLOCAL
  6412. +VERSION
  6413. +PACKAGE
  6414. +CYGPATH_W
  6415. +am__isrc
  6416. +INSTALL_DATA
  6417. +INSTALL_SCRIPT
  6418. +INSTALL_PROGRAM
  6419. +target_alias
  6420. +host_alias
  6421. +build_alias
  6422. +LIBS
  6423. +ECHO_T
  6424. +ECHO_N
  6425. +ECHO_C
  6426. +DEFS
  6427. +mandir
  6428. +localedir
  6429. +libdir
  6430. +psdir
  6431. +pdfdir
  6432. +dvidir
  6433. +htmldir
  6434. +infodir
  6435. +docdir
  6436. +oldincludedir
  6437. +includedir
  6438. +localstatedir
  6439. +sharedstatedir
  6440. +sysconfdir
  6441. +datadir
  6442. +datarootdir
  6443. +libexecdir
  6444. +sbindir
  6445. +bindir
  6446. +program_transform_name
  6447. +prefix
  6448. +exec_prefix
  6449. +PACKAGE_URL
  6450. +PACKAGE_BUGREPORT
  6451. +PACKAGE_STRING
  6452. +PACKAGE_VERSION
  6453. +PACKAGE_TARNAME
  6454. +PACKAGE_NAME
  6455. +PATH_SEPARATOR
  6456. +SHELL'
  6457. +ac_subst_files=''
  6458. +ac_user_opts='
  6459. +enable_option_checking
  6460. +enable_dependency_tracking
  6461. +with_hidden_visibility
  6462. +enable_static
  6463. +enable_shared
  6464. +with_pic
  6465. +enable_fast_install
  6466. +with_gnu_ld
  6467. +enable_libtool_lock
  6468. +enable_linear
  6469. +enable_dejitter
  6470. +enable_linear_h2200
  6471. +enable_variance
  6472. +enable_pthres
  6473. +enable_ucb1x00
  6474. +enable_corgi
  6475. +enable_collie
  6476. +enable_h3600
  6477. +enable_mk712
  6478. +enable_arctic2
  6479. +enable_input
  6480. +with_plugindir
  6481. +enable_debug
  6482. +'
  6483. + ac_precious_vars='build_alias
  6484. +host_alias
  6485. +target_alias
  6486. +CXX
  6487. +CXXFLAGS
  6488. +LDFLAGS
  6489. +LIBS
  6490. +CPPFLAGS
  6491. +CCC
  6492. +CC
  6493. +CFLAGS
  6494. +CPP
  6495. +CXXCPP'
  6496. +
  6497. +
  6498. +# Initialize some variables set by options.
  6499. +ac_init_help=
  6500. +ac_init_version=false
  6501. +ac_unrecognized_opts=
  6502. +ac_unrecognized_sep=
  6503. +# The variables have the same names as the options, with
  6504. +# dashes changed to underlines.
  6505. +cache_file=/dev/null
  6506. +exec_prefix=NONE
  6507. +no_create=
  6508. +no_recursion=
  6509. +prefix=NONE
  6510. +program_prefix=NONE
  6511. +program_suffix=NONE
  6512. +program_transform_name=s,x,x,
  6513. +silent=
  6514. +site=
  6515. +srcdir=
  6516. +verbose=
  6517. +x_includes=NONE
  6518. +x_libraries=NONE
  6519. +
  6520. +# Installation directory options.
  6521. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  6522. +# and all the variables that are supposed to be based on exec_prefix
  6523. +# by default will actually change.
  6524. +# Use braces instead of parens because sh, perl, etc. also accept them.
  6525. +# (The list follows the same order as the GNU Coding Standards.)
  6526. +bindir='${exec_prefix}/bin'
  6527. +sbindir='${exec_prefix}/sbin'
  6528. +libexecdir='${exec_prefix}/libexec'
  6529. +datarootdir='${prefix}/share'
  6530. +datadir='${datarootdir}'
  6531. +sysconfdir='${prefix}/etc'
  6532. +sharedstatedir='${prefix}/com'
  6533. +localstatedir='${prefix}/var'
  6534. +includedir='${prefix}/include'
  6535. +oldincludedir='/usr/include'
  6536. +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  6537. +infodir='${datarootdir}/info'
  6538. +htmldir='${docdir}'
  6539. +dvidir='${docdir}'
  6540. +pdfdir='${docdir}'
  6541. +psdir='${docdir}'
  6542. +libdir='${exec_prefix}/lib'
  6543. +localedir='${datarootdir}/locale'
  6544. +mandir='${datarootdir}/man'
  6545. +
  6546. +ac_prev=
  6547. +ac_dashdash=
  6548. +for ac_option
  6549. +do
  6550. + # If the previous option needs an argument, assign it.
  6551. + if test -n "$ac_prev"; then
  6552. + eval $ac_prev=\$ac_option
  6553. + ac_prev=
  6554. + continue
  6555. + fi
  6556. +
  6557. + case $ac_option in
  6558. + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  6559. + *) ac_optarg=yes ;;
  6560. + esac
  6561. +
  6562. + # Accept the important Cygnus configure options, so we can diagnose typos.
  6563. +
  6564. + case $ac_dashdash$ac_option in
  6565. + --)
  6566. + ac_dashdash=yes ;;
  6567. +
  6568. + -bindir | --bindir | --bindi | --bind | --bin | --bi)
  6569. + ac_prev=bindir ;;
  6570. + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  6571. + bindir=$ac_optarg ;;
  6572. +
  6573. + -build | --build | --buil | --bui | --bu)
  6574. + ac_prev=build_alias ;;
  6575. + -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  6576. + build_alias=$ac_optarg ;;
  6577. +
  6578. + -cache-file | --cache-file | --cache-fil | --cache-fi \
  6579. + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  6580. + ac_prev=cache_file ;;
  6581. + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  6582. + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  6583. + cache_file=$ac_optarg ;;
  6584. +
  6585. + --config-cache | -C)
  6586. + cache_file=config.cache ;;
  6587. +
  6588. + -datadir | --datadir | --datadi | --datad)
  6589. + ac_prev=datadir ;;
  6590. + -datadir=* | --datadir=* | --datadi=* | --datad=*)
  6591. + datadir=$ac_optarg ;;
  6592. +
  6593. + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  6594. + | --dataroo | --dataro | --datar)
  6595. + ac_prev=datarootdir ;;
  6596. + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  6597. + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  6598. + datarootdir=$ac_optarg ;;
  6599. +
  6600. + -disable-* | --disable-*)
  6601. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  6602. + # Reject names that are not valid shell variable names.
  6603. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  6604. + as_fn_error "invalid feature name: $ac_useropt"
  6605. + ac_useropt_orig=$ac_useropt
  6606. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  6607. + case $ac_user_opts in
  6608. + *"
  6609. +"enable_$ac_useropt"
  6610. +"*) ;;
  6611. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  6612. + ac_unrecognized_sep=', ';;
  6613. + esac
  6614. + eval enable_$ac_useropt=no ;;
  6615. +
  6616. + -docdir | --docdir | --docdi | --doc | --do)
  6617. + ac_prev=docdir ;;
  6618. + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  6619. + docdir=$ac_optarg ;;
  6620. +
  6621. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  6622. + ac_prev=dvidir ;;
  6623. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  6624. + dvidir=$ac_optarg ;;
  6625. +
  6626. + -enable-* | --enable-*)
  6627. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  6628. + # Reject names that are not valid shell variable names.
  6629. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  6630. + as_fn_error "invalid feature name: $ac_useropt"
  6631. + ac_useropt_orig=$ac_useropt
  6632. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  6633. + case $ac_user_opts in
  6634. + *"
  6635. +"enable_$ac_useropt"
  6636. +"*) ;;
  6637. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  6638. + ac_unrecognized_sep=', ';;
  6639. + esac
  6640. + eval enable_$ac_useropt=\$ac_optarg ;;
  6641. +
  6642. + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  6643. + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  6644. + | --exec | --exe | --ex)
  6645. + ac_prev=exec_prefix ;;
  6646. + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  6647. + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  6648. + | --exec=* | --exe=* | --ex=*)
  6649. + exec_prefix=$ac_optarg ;;
  6650. +
  6651. + -gas | --gas | --ga | --g)
  6652. + # Obsolete; use --with-gas.
  6653. + with_gas=yes ;;
  6654. +
  6655. + -help | --help | --hel | --he | -h)
  6656. + ac_init_help=long ;;
  6657. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  6658. + ac_init_help=recursive ;;
  6659. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  6660. + ac_init_help=short ;;
  6661. +
  6662. + -host | --host | --hos | --ho)
  6663. + ac_prev=host_alias ;;
  6664. + -host=* | --host=* | --hos=* | --ho=*)
  6665. + host_alias=$ac_optarg ;;
  6666. +
  6667. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  6668. + ac_prev=htmldir ;;
  6669. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  6670. + | --ht=*)
  6671. + htmldir=$ac_optarg ;;
  6672. +
  6673. + -includedir | --includedir | --includedi | --included | --include \
  6674. + | --includ | --inclu | --incl | --inc)
  6675. + ac_prev=includedir ;;
  6676. + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  6677. + | --includ=* | --inclu=* | --incl=* | --inc=*)
  6678. + includedir=$ac_optarg ;;
  6679. +
  6680. + -infodir | --infodir | --infodi | --infod | --info | --inf)
  6681. + ac_prev=infodir ;;
  6682. + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  6683. + infodir=$ac_optarg ;;
  6684. +
  6685. + -libdir | --libdir | --libdi | --libd)
  6686. + ac_prev=libdir ;;
  6687. + -libdir=* | --libdir=* | --libdi=* | --libd=*)
  6688. + libdir=$ac_optarg ;;
  6689. +
  6690. + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  6691. + | --libexe | --libex | --libe)
  6692. + ac_prev=libexecdir ;;
  6693. + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  6694. + | --libexe=* | --libex=* | --libe=*)
  6695. + libexecdir=$ac_optarg ;;
  6696. +
  6697. + -localedir | --localedir | --localedi | --localed | --locale)
  6698. + ac_prev=localedir ;;
  6699. + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  6700. + localedir=$ac_optarg ;;
  6701. +
  6702. + -localstatedir | --localstatedir | --localstatedi | --localstated \
  6703. + | --localstate | --localstat | --localsta | --localst | --locals)
  6704. + ac_prev=localstatedir ;;
  6705. + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  6706. + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  6707. + localstatedir=$ac_optarg ;;
  6708. +
  6709. + -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  6710. + ac_prev=mandir ;;
  6711. + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  6712. + mandir=$ac_optarg ;;
  6713. +
  6714. + -nfp | --nfp | --nf)
  6715. + # Obsolete; use --without-fp.
  6716. + with_fp=no ;;
  6717. +
  6718. + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  6719. + | --no-cr | --no-c | -n)
  6720. + no_create=yes ;;
  6721. +
  6722. + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  6723. + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  6724. + no_recursion=yes ;;
  6725. +
  6726. + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  6727. + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  6728. + | --oldin | --oldi | --old | --ol | --o)
  6729. + ac_prev=oldincludedir ;;
  6730. + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  6731. + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  6732. + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  6733. + oldincludedir=$ac_optarg ;;
  6734. +
  6735. + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  6736. + ac_prev=prefix ;;
  6737. + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  6738. + prefix=$ac_optarg ;;
  6739. +
  6740. + -program-prefix | --program-prefix | --program-prefi | --program-pref \
  6741. + | --program-pre | --program-pr | --program-p)
  6742. + ac_prev=program_prefix ;;
  6743. + -program-prefix=* | --program-prefix=* | --program-prefi=* \
  6744. + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  6745. + program_prefix=$ac_optarg ;;
  6746. +
  6747. + -program-suffix | --program-suffix | --program-suffi | --program-suff \
  6748. + | --program-suf | --program-su | --program-s)
  6749. + ac_prev=program_suffix ;;
  6750. + -program-suffix=* | --program-suffix=* | --program-suffi=* \
  6751. + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  6752. + program_suffix=$ac_optarg ;;
  6753. +
  6754. + -program-transform-name | --program-transform-name \
  6755. + | --program-transform-nam | --program-transform-na \
  6756. + | --program-transform-n | --program-transform- \
  6757. + | --program-transform | --program-transfor \
  6758. + | --program-transfo | --program-transf \
  6759. + | --program-trans | --program-tran \
  6760. + | --progr-tra | --program-tr | --program-t)
  6761. + ac_prev=program_transform_name ;;
  6762. + -program-transform-name=* | --program-transform-name=* \
  6763. + | --program-transform-nam=* | --program-transform-na=* \
  6764. + | --program-transform-n=* | --program-transform-=* \
  6765. + | --program-transform=* | --program-transfor=* \
  6766. + | --program-transfo=* | --program-transf=* \
  6767. + | --program-trans=* | --program-tran=* \
  6768. + | --progr-tra=* | --program-tr=* | --program-t=*)
  6769. + program_transform_name=$ac_optarg ;;
  6770. +
  6771. + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  6772. + ac_prev=pdfdir ;;
  6773. + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  6774. + pdfdir=$ac_optarg ;;
  6775. +
  6776. + -psdir | --psdir | --psdi | --psd | --ps)
  6777. + ac_prev=psdir ;;
  6778. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  6779. + psdir=$ac_optarg ;;
  6780. +
  6781. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6782. + | -silent | --silent | --silen | --sile | --sil)
  6783. + silent=yes ;;
  6784. +
  6785. + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  6786. + ac_prev=sbindir ;;
  6787. + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  6788. + | --sbi=* | --sb=*)
  6789. + sbindir=$ac_optarg ;;
  6790. +
  6791. + -sharedstatedir | --sharedstatedir | --sharedstatedi \
  6792. + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  6793. + | --sharedst | --shareds | --shared | --share | --shar \
  6794. + | --sha | --sh)
  6795. + ac_prev=sharedstatedir ;;
  6796. + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  6797. + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  6798. + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  6799. + | --sha=* | --sh=*)
  6800. + sharedstatedir=$ac_optarg ;;
  6801. +
  6802. + -site | --site | --sit)
  6803. + ac_prev=site ;;
  6804. + -site=* | --site=* | --sit=*)
  6805. + site=$ac_optarg ;;
  6806. +
  6807. + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  6808. + ac_prev=srcdir ;;
  6809. + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  6810. + srcdir=$ac_optarg ;;
  6811. +
  6812. + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  6813. + | --syscon | --sysco | --sysc | --sys | --sy)
  6814. + ac_prev=sysconfdir ;;
  6815. + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  6816. + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  6817. + sysconfdir=$ac_optarg ;;
  6818. +
  6819. + -target | --target | --targe | --targ | --tar | --ta | --t)
  6820. + ac_prev=target_alias ;;
  6821. + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  6822. + target_alias=$ac_optarg ;;
  6823. +
  6824. + -v | -verbose | --verbose | --verbos | --verbo | --verb)
  6825. + verbose=yes ;;
  6826. +
  6827. + -version | --version | --versio | --versi | --vers | -V)
  6828. + ac_init_version=: ;;
  6829. +
  6830. + -with-* | --with-*)
  6831. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  6832. + # Reject names that are not valid shell variable names.
  6833. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  6834. + as_fn_error "invalid package name: $ac_useropt"
  6835. + ac_useropt_orig=$ac_useropt
  6836. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  6837. + case $ac_user_opts in
  6838. + *"
  6839. +"with_$ac_useropt"
  6840. +"*) ;;
  6841. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  6842. + ac_unrecognized_sep=', ';;
  6843. + esac
  6844. + eval with_$ac_useropt=\$ac_optarg ;;
  6845. +
  6846. + -without-* | --without-*)
  6847. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  6848. + # Reject names that are not valid shell variable names.
  6849. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  6850. + as_fn_error "invalid package name: $ac_useropt"
  6851. + ac_useropt_orig=$ac_useropt
  6852. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  6853. + case $ac_user_opts in
  6854. + *"
  6855. +"with_$ac_useropt"
  6856. +"*) ;;
  6857. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  6858. + ac_unrecognized_sep=', ';;
  6859. + esac
  6860. + eval with_$ac_useropt=no ;;
  6861. +
  6862. + --x)
  6863. + # Obsolete; use --with-x.
  6864. + with_x=yes ;;
  6865. +
  6866. + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  6867. + | --x-incl | --x-inc | --x-in | --x-i)
  6868. + ac_prev=x_includes ;;
  6869. + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  6870. + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  6871. + x_includes=$ac_optarg ;;
  6872. +
  6873. + -x-libraries | --x-libraries | --x-librarie | --x-librari \
  6874. + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  6875. + ac_prev=x_libraries ;;
  6876. + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  6877. + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  6878. + x_libraries=$ac_optarg ;;
  6879. +
  6880. + -*) as_fn_error "unrecognized option: \`$ac_option'
  6881. +Try \`$0 --help' for more information."
  6882. + ;;
  6883. +
  6884. + *=*)
  6885. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  6886. + # Reject names that are not valid shell variable names.
  6887. + case $ac_envvar in #(
  6888. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  6889. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  6890. + esac
  6891. + eval $ac_envvar=\$ac_optarg
  6892. + export $ac_envvar ;;
  6893. +
  6894. + *)
  6895. + # FIXME: should be removed in autoconf 3.0.
  6896. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  6897. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  6898. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  6899. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  6900. + ;;
  6901. +
  6902. + esac
  6903. +done
  6904. +
  6905. +if test -n "$ac_prev"; then
  6906. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  6907. + as_fn_error "missing argument to $ac_option"
  6908. +fi
  6909. +
  6910. +if test -n "$ac_unrecognized_opts"; then
  6911. + case $enable_option_checking in
  6912. + no) ;;
  6913. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  6914. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  6915. + esac
  6916. +fi
  6917. +
  6918. +# Check all directory arguments for consistency.
  6919. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  6920. + datadir sysconfdir sharedstatedir localstatedir includedir \
  6921. + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  6922. + libdir localedir mandir
  6923. +do
  6924. + eval ac_val=\$$ac_var
  6925. + # Remove trailing slashes.
  6926. + case $ac_val in
  6927. + */ )
  6928. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  6929. + eval $ac_var=\$ac_val;;
  6930. + esac
  6931. + # Be sure to have absolute directory names.
  6932. + case $ac_val in
  6933. + [\\/$]* | ?:[\\/]* ) continue;;
  6934. + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  6935. + esac
  6936. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  6937. +done
  6938. +
  6939. +# There might be people who depend on the old broken behavior: `$host'
  6940. +# used to hold the argument of --host etc.
  6941. +# FIXME: To remove some day.
  6942. +build=$build_alias
  6943. +host=$host_alias
  6944. +target=$target_alias
  6945. +
  6946. +# FIXME: To remove some day.
  6947. +if test "x$host_alias" != x; then
  6948. + if test "x$build_alias" = x; then
  6949. + cross_compiling=maybe
  6950. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  6951. + If a cross compiler is detected then cross compile mode will be used." >&2
  6952. + elif test "x$build_alias" != "x$host_alias"; then
  6953. + cross_compiling=yes
  6954. + fi
  6955. +fi
  6956. +
  6957. +ac_tool_prefix=
  6958. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  6959. +
  6960. +test "$silent" = yes && exec 6>/dev/null
  6961. +
  6962. +
  6963. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  6964. +ac_ls_di=`ls -di .` &&
  6965. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  6966. + as_fn_error "working directory cannot be determined"
  6967. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  6968. + as_fn_error "pwd does not report name of working directory"
  6969. +
  6970. +
  6971. +# Find the source files, if location was not specified.
  6972. +if test -z "$srcdir"; then
  6973. + ac_srcdir_defaulted=yes
  6974. + # Try the directory containing this script, then the parent directory.
  6975. + ac_confdir=`$as_dirname -- "$as_myself" ||
  6976. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6977. + X"$as_myself" : 'X\(//\)[^/]' \| \
  6978. + X"$as_myself" : 'X\(//\)$' \| \
  6979. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  6980. +$as_echo X"$as_myself" |
  6981. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6982. + s//\1/
  6983. + q
  6984. + }
  6985. + /^X\(\/\/\)[^/].*/{
  6986. + s//\1/
  6987. + q
  6988. + }
  6989. + /^X\(\/\/\)$/{
  6990. + s//\1/
  6991. + q
  6992. + }
  6993. + /^X\(\/\).*/{
  6994. + s//\1/
  6995. + q
  6996. + }
  6997. + s/.*/./; q'`
  6998. + srcdir=$ac_confdir
  6999. + if test ! -r "$srcdir/$ac_unique_file"; then
  7000. + srcdir=..
  7001. + fi
  7002. +else
  7003. + ac_srcdir_defaulted=no
  7004. +fi
  7005. +if test ! -r "$srcdir/$ac_unique_file"; then
  7006. + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  7007. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  7008. +fi
  7009. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  7010. +ac_abs_confdir=`(
  7011. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  7012. + pwd)`
  7013. +# When building in place, set srcdir=.
  7014. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  7015. + srcdir=.
  7016. +fi
  7017. +# Remove unnecessary trailing slashes from srcdir.
  7018. +# Double slashes in file names in object file debugging info
  7019. +# mess up M-x gdb in Emacs.
  7020. +case $srcdir in
  7021. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  7022. +esac
  7023. +for ac_var in $ac_precious_vars; do
  7024. + eval ac_env_${ac_var}_set=\${${ac_var}+set}
  7025. + eval ac_env_${ac_var}_value=\$${ac_var}
  7026. + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  7027. + eval ac_cv_env_${ac_var}_value=\$${ac_var}
  7028. +done
  7029. +
  7030. +#
  7031. +# Report the --help message.
  7032. +#
  7033. +if test "$ac_init_help" = "long"; then
  7034. + # Omit some internal or obsolete options to make the list less imposing.
  7035. + # This message is too long to be a string in the A/UX 3.1 sh.
  7036. + cat <<_ACEOF
  7037. +\`configure' configures tslib 0.0.2 to adapt to many kinds of systems.
  7038. +
  7039. +Usage: $0 [OPTION]... [VAR=VALUE]...
  7040. +
  7041. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  7042. +VAR=VALUE. See below for descriptions of some of the useful variables.
  7043. +
  7044. +Defaults for the options are specified in brackets.
  7045. +
  7046. +Configuration:
  7047. + -h, --help display this help and exit
  7048. + --help=short display options specific to this package
  7049. + --help=recursive display the short help of all the included packages
  7050. + -V, --version display version information and exit
  7051. + -q, --quiet, --silent do not print \`checking...' messages
  7052. + --cache-file=FILE cache test results in FILE [disabled]
  7053. + -C, --config-cache alias for \`--cache-file=config.cache'
  7054. + -n, --no-create do not create output files
  7055. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  7056. +
  7057. +Installation directories:
  7058. + --prefix=PREFIX install architecture-independent files in PREFIX
  7059. + [$ac_default_prefix]
  7060. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  7061. + [PREFIX]
  7062. +
  7063. +By default, \`make install' will install all the files in
  7064. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  7065. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  7066. +for instance \`--prefix=\$HOME'.
  7067. +
  7068. +For better control, use the options below.
  7069. +
  7070. +Fine tuning of the installation directories:
  7071. + --bindir=DIR user executables [EPREFIX/bin]
  7072. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  7073. + --libexecdir=DIR program executables [EPREFIX/libexec]
  7074. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  7075. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  7076. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  7077. + --libdir=DIR object code libraries [EPREFIX/lib]
  7078. + --includedir=DIR C header files [PREFIX/include]
  7079. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  7080. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  7081. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  7082. + --infodir=DIR info documentation [DATAROOTDIR/info]
  7083. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  7084. + --mandir=DIR man documentation [DATAROOTDIR/man]
  7085. + --docdir=DIR documentation root [DATAROOTDIR/doc/tslib]
  7086. + --htmldir=DIR html documentation [DOCDIR]
  7087. + --dvidir=DIR dvi documentation [DOCDIR]
  7088. + --pdfdir=DIR pdf documentation [DOCDIR]
  7089. + --psdir=DIR ps documentation [DOCDIR]
  7090. +_ACEOF
  7091. +
  7092. + cat <<\_ACEOF
  7093. +
  7094. +Program names:
  7095. + --program-prefix=PREFIX prepend PREFIX to installed program names
  7096. + --program-suffix=SUFFIX append SUFFIX to installed program names
  7097. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  7098. +
  7099. +System types:
  7100. + --build=BUILD configure for building on BUILD [guessed]
  7101. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  7102. +_ACEOF
  7103. +fi
  7104. +
  7105. +if test -n "$ac_init_help"; then
  7106. + case $ac_init_help in
  7107. + short | recursive ) echo "Configuration of tslib 0.0.2:";;
  7108. + esac
  7109. + cat <<\_ACEOF
  7110. +
  7111. +Optional Features:
  7112. + --disable-option-checking ignore unrecognized --enable/--with options
  7113. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  7114. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  7115. + --disable-dependency-tracking speeds up one-time build
  7116. + --enable-dependency-tracking do not reject slow dependency extractors
  7117. + --enable-static[=PKGS] build static libraries [default=no]
  7118. + --enable-shared[=PKGS] build shared libraries [default=yes]
  7119. + --enable-fast-install[=PKGS]
  7120. + optimize for fast installation [default=yes]
  7121. + --disable-libtool-lock avoid locking (might break parallel builds)
  7122. + --enable-linear Enable building of linear scaling (default=yes)
  7123. + --enable-dejitter Enable building of dejitter filter (default=yes)
  7124. + --enable-linear-h2200 Enable building of linearizing filter for iPAQ h2200
  7125. + (default=yes)
  7126. + --enable-variance Enable building of variance filter (default=yes)
  7127. + --enable-pthres Enable building of pthres filter (default=yes)
  7128. + --enable-ucb1x00 Enable building of ucb1x00 raw module (UCB1x00
  7129. + support) (default=yes)
  7130. + --enable-corgi Enable building of corgi raw module (Sharp Zaurus
  7131. + sl-c7x0 support) (default=yes)
  7132. + --enable-collie Enable building of collie raw module (Sharp Zaurus
  7133. + sl-5500/5000d support) (default=yes)
  7134. + --enable-h3600 Enable building of h3600 raw module (HP iPaq H3600
  7135. + support) (default=yes)
  7136. + --enable-mk712 Enable building of mk712 raw module (Hi tachi
  7137. + support) (default=yes)
  7138. + --enable-arctic2 Enable building of arctic2 raw module (IBM Arctic II
  7139. + support) (default=yes)
  7140. + --enable-input Enable building of generic input raw module (Linux
  7141. + /dev/input/eventN support) (default=yes)
  7142. + --enable-debug
  7143. + Enable debug messages from filters (default=no)
  7144. +
  7145. +
  7146. +Optional Packages:
  7147. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  7148. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  7149. + --with-hidden_visibility=VAL
  7150. + use -fvisibility=hidden (default VAL is 'auto')
  7151. + --with-pic try to use only PIC/non-PIC objects [default=use
  7152. + both]
  7153. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  7154. + --with-plugindir=ARG Where to look for plugins (default=${libdir}/ts)
  7155. +
  7156. +Some influential environment variables:
  7157. + CXX C++ compiler command
  7158. + CXXFLAGS C++ compiler flags
  7159. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  7160. + nonstandard directory <lib dir>
  7161. + LIBS libraries to pass to the linker, e.g. -l<library>
  7162. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  7163. + you have headers in a nonstandard directory <include dir>
  7164. + CC C compiler command
  7165. + CFLAGS C compiler flags
  7166. + CPP C preprocessor
  7167. + CXXCPP C++ preprocessor
  7168. +
  7169. +Use these variables to override the choices made by `configure' or to help
  7170. +it to find libraries and programs with nonstandard names/locations.
  7171. +
  7172. +Report bugs to <kergoth@handhelds.org>.
  7173. +_ACEOF
  7174. +ac_status=$?
  7175. +fi
  7176. +
  7177. +if test "$ac_init_help" = "recursive"; then
  7178. + # If there are subdirs, report their specific --help.
  7179. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  7180. + test -d "$ac_dir" ||
  7181. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  7182. + continue
  7183. + ac_builddir=.
  7184. +
  7185. +case "$ac_dir" in
  7186. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7187. +*)
  7188. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7189. + # A ".." for each directory in $ac_dir_suffix.
  7190. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7191. + case $ac_top_builddir_sub in
  7192. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7193. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7194. + esac ;;
  7195. +esac
  7196. +ac_abs_top_builddir=$ac_pwd
  7197. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7198. +# for backward compatibility:
  7199. +ac_top_builddir=$ac_top_build_prefix
  7200. +
  7201. +case $srcdir in
  7202. + .) # We are building in place.
  7203. + ac_srcdir=.
  7204. + ac_top_srcdir=$ac_top_builddir_sub
  7205. + ac_abs_top_srcdir=$ac_pwd ;;
  7206. + [\\/]* | ?:[\\/]* ) # Absolute name.
  7207. + ac_srcdir=$srcdir$ac_dir_suffix;
  7208. + ac_top_srcdir=$srcdir
  7209. + ac_abs_top_srcdir=$srcdir ;;
  7210. + *) # Relative name.
  7211. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7212. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  7213. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7214. +esac
  7215. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7216. +
  7217. + cd "$ac_dir" || { ac_status=$?; continue; }
  7218. + # Check for guested configure.
  7219. + if test -f "$ac_srcdir/configure.gnu"; then
  7220. + echo &&
  7221. + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  7222. + elif test -f "$ac_srcdir/configure"; then
  7223. + echo &&
  7224. + $SHELL "$ac_srcdir/configure" --help=recursive
  7225. + else
  7226. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  7227. + fi || ac_status=$?
  7228. + cd "$ac_pwd" || { ac_status=$?; break; }
  7229. + done
  7230. +fi
  7231. +
  7232. +test -n "$ac_init_help" && exit $ac_status
  7233. +if $ac_init_version; then
  7234. + cat <<\_ACEOF
  7235. +tslib configure 0.0.2
  7236. +generated by GNU Autoconf 2.65
  7237. +
  7238. +Copyright (C) 2009 Free Software Foundation, Inc.
  7239. +This configure script is free software; the Free Software Foundation
  7240. +gives unlimited permission to copy, distribute and modify it.
  7241. +_ACEOF
  7242. + exit
  7243. +fi
  7244. +
  7245. +## ------------------------ ##
  7246. +## Autoconf initialization. ##
  7247. +## ------------------------ ##
  7248. +
  7249. +# ac_fn_cxx_try_compile LINENO
  7250. +# ----------------------------
  7251. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  7252. +ac_fn_cxx_try_compile ()
  7253. +{
  7254. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7255. + rm -f conftest.$ac_objext
  7256. + if { { ac_try="$ac_compile"
  7257. +case "(($ac_try" in
  7258. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7259. + *) ac_try_echo=$ac_try;;
  7260. +esac
  7261. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7262. +$as_echo "$ac_try_echo"; } >&5
  7263. + (eval "$ac_compile") 2>conftest.err
  7264. + ac_status=$?
  7265. + if test -s conftest.err; then
  7266. + grep -v '^ *+' conftest.err >conftest.er1
  7267. + cat conftest.er1 >&5
  7268. + mv -f conftest.er1 conftest.err
  7269. + fi
  7270. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7271. + test $ac_status = 0; } && {
  7272. + test -z "$ac_cxx_werror_flag" ||
  7273. + test ! -s conftest.err
  7274. + } && test -s conftest.$ac_objext; then :
  7275. + ac_retval=0
  7276. +else
  7277. + $as_echo "$as_me: failed program was:" >&5
  7278. +sed 's/^/| /' conftest.$ac_ext >&5
  7279. +
  7280. + ac_retval=1
  7281. +fi
  7282. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  7283. + as_fn_set_status $ac_retval
  7284. +
  7285. +} # ac_fn_cxx_try_compile
  7286. +
  7287. +# ac_fn_c_try_compile LINENO
  7288. +# --------------------------
  7289. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  7290. +ac_fn_c_try_compile ()
  7291. +{
  7292. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7293. + rm -f conftest.$ac_objext
  7294. + if { { ac_try="$ac_compile"
  7295. +case "(($ac_try" in
  7296. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7297. + *) ac_try_echo=$ac_try;;
  7298. +esac
  7299. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7300. +$as_echo "$ac_try_echo"; } >&5
  7301. + (eval "$ac_compile") 2>conftest.err
  7302. + ac_status=$?
  7303. + if test -s conftest.err; then
  7304. + grep -v '^ *+' conftest.err >conftest.er1
  7305. + cat conftest.er1 >&5
  7306. + mv -f conftest.er1 conftest.err
  7307. + fi
  7308. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7309. + test $ac_status = 0; } && {
  7310. + test -z "$ac_c_werror_flag" ||
  7311. + test ! -s conftest.err
  7312. + } && test -s conftest.$ac_objext; then :
  7313. + ac_retval=0
  7314. +else
  7315. + $as_echo "$as_me: failed program was:" >&5
  7316. +sed 's/^/| /' conftest.$ac_ext >&5
  7317. +
  7318. + ac_retval=1
  7319. +fi
  7320. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  7321. + as_fn_set_status $ac_retval
  7322. +
  7323. +} # ac_fn_c_try_compile
  7324. +
  7325. +# ac_fn_c_try_cpp LINENO
  7326. +# ----------------------
  7327. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  7328. +ac_fn_c_try_cpp ()
  7329. +{
  7330. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7331. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  7332. +case "(($ac_try" in
  7333. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7334. + *) ac_try_echo=$ac_try;;
  7335. +esac
  7336. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7337. +$as_echo "$ac_try_echo"; } >&5
  7338. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  7339. + ac_status=$?
  7340. + if test -s conftest.err; then
  7341. + grep -v '^ *+' conftest.err >conftest.er1
  7342. + cat conftest.er1 >&5
  7343. + mv -f conftest.er1 conftest.err
  7344. + fi
  7345. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7346. + test $ac_status = 0; } >/dev/null && {
  7347. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7348. + test ! -s conftest.err
  7349. + }; then :
  7350. + ac_retval=0
  7351. +else
  7352. + $as_echo "$as_me: failed program was:" >&5
  7353. +sed 's/^/| /' conftest.$ac_ext >&5
  7354. +
  7355. + ac_retval=1
  7356. +fi
  7357. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  7358. + as_fn_set_status $ac_retval
  7359. +
  7360. +} # ac_fn_c_try_cpp
  7361. +
  7362. +# ac_fn_c_try_link LINENO
  7363. +# -----------------------
  7364. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  7365. +ac_fn_c_try_link ()
  7366. +{
  7367. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7368. + rm -f conftest.$ac_objext conftest$ac_exeext
  7369. + if { { ac_try="$ac_link"
  7370. +case "(($ac_try" in
  7371. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7372. + *) ac_try_echo=$ac_try;;
  7373. +esac
  7374. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7375. +$as_echo "$ac_try_echo"; } >&5
  7376. + (eval "$ac_link") 2>conftest.err
  7377. + ac_status=$?
  7378. + if test -s conftest.err; then
  7379. + grep -v '^ *+' conftest.err >conftest.er1
  7380. + cat conftest.er1 >&5
  7381. + mv -f conftest.er1 conftest.err
  7382. + fi
  7383. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7384. + test $ac_status = 0; } && {
  7385. + test -z "$ac_c_werror_flag" ||
  7386. + test ! -s conftest.err
  7387. + } && test -s conftest$ac_exeext && {
  7388. + test "$cross_compiling" = yes ||
  7389. + $as_test_x conftest$ac_exeext
  7390. + }; then :
  7391. + ac_retval=0
  7392. +else
  7393. + $as_echo "$as_me: failed program was:" >&5
  7394. +sed 's/^/| /' conftest.$ac_ext >&5
  7395. +
  7396. + ac_retval=1
  7397. +fi
  7398. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  7399. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  7400. + # interfere with the next link command; also delete a directory that is
  7401. + # left behind by Apple's compiler. We do this before executing the actions.
  7402. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  7403. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  7404. + as_fn_set_status $ac_retval
  7405. +
  7406. +} # ac_fn_c_try_link
  7407. +
  7408. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  7409. +# -------------------------------------------------------
  7410. +# Tests whether HEADER exists and can be compiled using the include files in
  7411. +# INCLUDES, setting the cache variable VAR accordingly.
  7412. +ac_fn_c_check_header_compile ()
  7413. +{
  7414. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7415. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  7416. +$as_echo_n "checking for $2... " >&6; }
  7417. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  7418. + $as_echo_n "(cached) " >&6
  7419. +else
  7420. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7421. +/* end confdefs.h. */
  7422. +$4
  7423. +#include <$2>
  7424. +_ACEOF
  7425. +if ac_fn_c_try_compile "$LINENO"; then :
  7426. + eval "$3=yes"
  7427. +else
  7428. + eval "$3=no"
  7429. +fi
  7430. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7431. +fi
  7432. +eval ac_res=\$$3
  7433. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7434. +$as_echo "$ac_res" >&6; }
  7435. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  7436. +
  7437. +} # ac_fn_c_check_header_compile
  7438. +
  7439. +# ac_fn_c_try_run LINENO
  7440. +# ----------------------
  7441. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  7442. +# that executables *can* be run.
  7443. +ac_fn_c_try_run ()
  7444. +{
  7445. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7446. + if { { ac_try="$ac_link"
  7447. +case "(($ac_try" in
  7448. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7449. + *) ac_try_echo=$ac_try;;
  7450. +esac
  7451. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7452. +$as_echo "$ac_try_echo"; } >&5
  7453. + (eval "$ac_link") 2>&5
  7454. + ac_status=$?
  7455. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7456. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  7457. + { { case "(($ac_try" in
  7458. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7459. + *) ac_try_echo=$ac_try;;
  7460. +esac
  7461. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7462. +$as_echo "$ac_try_echo"; } >&5
  7463. + (eval "$ac_try") 2>&5
  7464. + ac_status=$?
  7465. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7466. + test $ac_status = 0; }; }; then :
  7467. + ac_retval=0
  7468. +else
  7469. + $as_echo "$as_me: program exited with status $ac_status" >&5
  7470. + $as_echo "$as_me: failed program was:" >&5
  7471. +sed 's/^/| /' conftest.$ac_ext >&5
  7472. +
  7473. + ac_retval=$ac_status
  7474. +fi
  7475. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  7476. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  7477. + as_fn_set_status $ac_retval
  7478. +
  7479. +} # ac_fn_c_try_run
  7480. +
  7481. +# ac_fn_c_check_func LINENO FUNC VAR
  7482. +# ----------------------------------
  7483. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  7484. +ac_fn_c_check_func ()
  7485. +{
  7486. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7487. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  7488. +$as_echo_n "checking for $2... " >&6; }
  7489. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  7490. + $as_echo_n "(cached) " >&6
  7491. +else
  7492. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7493. +/* end confdefs.h. */
  7494. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  7495. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7496. +#define $2 innocuous_$2
  7497. +
  7498. +/* System header to define __stub macros and hopefully few prototypes,
  7499. + which can conflict with char $2 (); below.
  7500. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7501. + <limits.h> exists even on freestanding compilers. */
  7502. +
  7503. +#ifdef __STDC__
  7504. +# include <limits.h>
  7505. +#else
  7506. +# include <assert.h>
  7507. +#endif
  7508. +
  7509. +#undef $2
  7510. +
  7511. +/* Override any GCC internal prototype to avoid an error.
  7512. + Use char because int might match the return type of a GCC
  7513. + builtin and then its argument prototype would still apply. */
  7514. +#ifdef __cplusplus
  7515. +extern "C"
  7516. +#endif
  7517. +char $2 ();
  7518. +/* The GNU C library defines this for functions which it implements
  7519. + to always fail with ENOSYS. Some functions are actually named
  7520. + something starting with __ and the normal name is an alias. */
  7521. +#if defined __stub_$2 || defined __stub___$2
  7522. +choke me
  7523. +#endif
  7524. +
  7525. +int
  7526. +main ()
  7527. +{
  7528. +return $2 ();
  7529. + ;
  7530. + return 0;
  7531. +}
  7532. +_ACEOF
  7533. +if ac_fn_c_try_link "$LINENO"; then :
  7534. + eval "$3=yes"
  7535. +else
  7536. + eval "$3=no"
  7537. +fi
  7538. +rm -f core conftest.err conftest.$ac_objext \
  7539. + conftest$ac_exeext conftest.$ac_ext
  7540. +fi
  7541. +eval ac_res=\$$3
  7542. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7543. +$as_echo "$ac_res" >&6; }
  7544. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  7545. +
  7546. +} # ac_fn_c_check_func
  7547. +
  7548. +# ac_fn_cxx_try_cpp LINENO
  7549. +# ------------------------
  7550. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  7551. +ac_fn_cxx_try_cpp ()
  7552. +{
  7553. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7554. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  7555. +case "(($ac_try" in
  7556. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7557. + *) ac_try_echo=$ac_try;;
  7558. +esac
  7559. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7560. +$as_echo "$ac_try_echo"; } >&5
  7561. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  7562. + ac_status=$?
  7563. + if test -s conftest.err; then
  7564. + grep -v '^ *+' conftest.err >conftest.er1
  7565. + cat conftest.er1 >&5
  7566. + mv -f conftest.er1 conftest.err
  7567. + fi
  7568. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7569. + test $ac_status = 0; } >/dev/null && {
  7570. + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7571. + test ! -s conftest.err
  7572. + }; then :
  7573. + ac_retval=0
  7574. +else
  7575. + $as_echo "$as_me: failed program was:" >&5
  7576. +sed 's/^/| /' conftest.$ac_ext >&5
  7577. +
  7578. + ac_retval=1
  7579. +fi
  7580. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  7581. + as_fn_set_status $ac_retval
  7582. +
  7583. +} # ac_fn_cxx_try_cpp
  7584. +
  7585. +# ac_fn_cxx_try_link LINENO
  7586. +# -------------------------
  7587. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  7588. +ac_fn_cxx_try_link ()
  7589. +{
  7590. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7591. + rm -f conftest.$ac_objext conftest$ac_exeext
  7592. + if { { ac_try="$ac_link"
  7593. +case "(($ac_try" in
  7594. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7595. + *) ac_try_echo=$ac_try;;
  7596. +esac
  7597. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7598. +$as_echo "$ac_try_echo"; } >&5
  7599. + (eval "$ac_link") 2>conftest.err
  7600. + ac_status=$?
  7601. + if test -s conftest.err; then
  7602. + grep -v '^ *+' conftest.err >conftest.er1
  7603. + cat conftest.er1 >&5
  7604. + mv -f conftest.er1 conftest.err
  7605. + fi
  7606. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7607. + test $ac_status = 0; } && {
  7608. + test -z "$ac_cxx_werror_flag" ||
  7609. + test ! -s conftest.err
  7610. + } && test -s conftest$ac_exeext && {
  7611. + test "$cross_compiling" = yes ||
  7612. + $as_test_x conftest$ac_exeext
  7613. + }; then :
  7614. + ac_retval=0
  7615. +else
  7616. + $as_echo "$as_me: failed program was:" >&5
  7617. +sed 's/^/| /' conftest.$ac_ext >&5
  7618. +
  7619. + ac_retval=1
  7620. +fi
  7621. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  7622. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  7623. + # interfere with the next link command; also delete a directory that is
  7624. + # left behind by Apple's compiler. We do this before executing the actions.
  7625. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  7626. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  7627. + as_fn_set_status $ac_retval
  7628. +
  7629. +} # ac_fn_cxx_try_link
  7630. +
  7631. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  7632. +# -------------------------------------------------------
  7633. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  7634. +# the include files in INCLUDES and setting the cache variable VAR
  7635. +# accordingly.
  7636. +ac_fn_c_check_header_mongrel ()
  7637. +{
  7638. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7639. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  7640. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  7641. +$as_echo_n "checking for $2... " >&6; }
  7642. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  7643. + $as_echo_n "(cached) " >&6
  7644. +fi
  7645. +eval ac_res=\$$3
  7646. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7647. +$as_echo "$ac_res" >&6; }
  7648. +else
  7649. + # Is the header compilable?
  7650. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  7651. +$as_echo_n "checking $2 usability... " >&6; }
  7652. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7653. +/* end confdefs.h. */
  7654. +$4
  7655. +#include <$2>
  7656. +_ACEOF
  7657. +if ac_fn_c_try_compile "$LINENO"; then :
  7658. + ac_header_compiler=yes
  7659. +else
  7660. + ac_header_compiler=no
  7661. +fi
  7662. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7663. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  7664. +$as_echo "$ac_header_compiler" >&6; }
  7665. +
  7666. +# Is the header present?
  7667. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  7668. +$as_echo_n "checking $2 presence... " >&6; }
  7669. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7670. +/* end confdefs.h. */
  7671. +#include <$2>
  7672. +_ACEOF
  7673. +if ac_fn_c_try_cpp "$LINENO"; then :
  7674. + ac_header_preproc=yes
  7675. +else
  7676. + ac_header_preproc=no
  7677. +fi
  7678. +rm -f conftest.err conftest.$ac_ext
  7679. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  7680. +$as_echo "$ac_header_preproc" >&6; }
  7681. +
  7682. +# So? What about this header?
  7683. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  7684. + yes:no: )
  7685. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  7686. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7687. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  7688. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  7689. + ;;
  7690. + no:yes:* )
  7691. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  7692. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  7693. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  7694. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  7695. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  7696. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  7697. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  7698. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  7699. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  7700. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  7701. +( cat <<\_ASBOX
  7702. +## ------------------------------------ ##
  7703. +## Report this to kergoth@handhelds.org ##
  7704. +## ------------------------------------ ##
  7705. +_ASBOX
  7706. + ) | sed "s/^/$as_me: WARNING: /" >&2
  7707. + ;;
  7708. +esac
  7709. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  7710. +$as_echo_n "checking for $2... " >&6; }
  7711. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  7712. + $as_echo_n "(cached) " >&6
  7713. +else
  7714. + eval "$3=\$ac_header_compiler"
  7715. +fi
  7716. +eval ac_res=\$$3
  7717. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7718. +$as_echo "$ac_res" >&6; }
  7719. +fi
  7720. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  7721. +
  7722. +} # ac_fn_c_check_header_mongrel
  7723. +
  7724. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  7725. +# -------------------------------------------
  7726. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  7727. +# variable VAR accordingly.
  7728. +ac_fn_c_check_type ()
  7729. +{
  7730. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7731. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  7732. +$as_echo_n "checking for $2... " >&6; }
  7733. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  7734. + $as_echo_n "(cached) " >&6
  7735. +else
  7736. + eval "$3=no"
  7737. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7738. +/* end confdefs.h. */
  7739. +$4
  7740. +int
  7741. +main ()
  7742. +{
  7743. +if (sizeof ($2))
  7744. + return 0;
  7745. + ;
  7746. + return 0;
  7747. +}
  7748. +_ACEOF
  7749. +if ac_fn_c_try_compile "$LINENO"; then :
  7750. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7751. +/* end confdefs.h. */
  7752. +$4
  7753. +int
  7754. +main ()
  7755. +{
  7756. +if (sizeof (($2)))
  7757. + return 0;
  7758. + ;
  7759. + return 0;
  7760. +}
  7761. +_ACEOF
  7762. +if ac_fn_c_try_compile "$LINENO"; then :
  7763. +
  7764. +else
  7765. + eval "$3=yes"
  7766. +fi
  7767. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7768. +fi
  7769. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7770. +fi
  7771. +eval ac_res=\$$3
  7772. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  7773. +$as_echo "$ac_res" >&6; }
  7774. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  7775. +
  7776. +} # ac_fn_c_check_type
  7777. +cat >config.log <<_ACEOF
  7778. +This file contains any messages produced by compilers while
  7779. +running configure, to aid debugging if configure makes a mistake.
  7780. +
  7781. +It was created by tslib $as_me 0.0.2, which was
  7782. +generated by GNU Autoconf 2.65. Invocation command line was
  7783. +
  7784. + $ $0 $@
  7785. +
  7786. +_ACEOF
  7787. +exec 5>>config.log
  7788. +{
  7789. +cat <<_ASUNAME
  7790. +## --------- ##
  7791. +## Platform. ##
  7792. +## --------- ##
  7793. +
  7794. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  7795. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  7796. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  7797. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  7798. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  7799. +
  7800. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  7801. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  7802. +
  7803. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  7804. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  7805. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  7806. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  7807. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  7808. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  7809. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  7810. +
  7811. +_ASUNAME
  7812. +
  7813. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7814. +for as_dir in $PATH
  7815. +do
  7816. + IFS=$as_save_IFS
  7817. + test -z "$as_dir" && as_dir=.
  7818. + $as_echo "PATH: $as_dir"
  7819. + done
  7820. +IFS=$as_save_IFS
  7821. +
  7822. +} >&5
  7823. +
  7824. +cat >&5 <<_ACEOF
  7825. +
  7826. +
  7827. +## ----------- ##
  7828. +## Core tests. ##
  7829. +## ----------- ##
  7830. +
  7831. +_ACEOF
  7832. +
  7833. +
  7834. +# Keep a trace of the command line.
  7835. +# Strip out --no-create and --no-recursion so they do not pile up.
  7836. +# Strip out --silent because we don't want to record it for future runs.
  7837. +# Also quote any args containing shell meta-characters.
  7838. +# Make two passes to allow for proper duplicate-argument suppression.
  7839. +ac_configure_args=
  7840. +ac_configure_args0=
  7841. +ac_configure_args1=
  7842. +ac_must_keep_next=false
  7843. +for ac_pass in 1 2
  7844. +do
  7845. + for ac_arg
  7846. + do
  7847. + case $ac_arg in
  7848. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  7849. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7850. + | -silent | --silent | --silen | --sile | --sil)
  7851. + continue ;;
  7852. + *\'*)
  7853. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7854. + esac
  7855. + case $ac_pass in
  7856. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  7857. + 2)
  7858. + as_fn_append ac_configure_args1 " '$ac_arg'"
  7859. + if test $ac_must_keep_next = true; then
  7860. + ac_must_keep_next=false # Got value, back to normal.
  7861. + else
  7862. + case $ac_arg in
  7863. + *=* | --config-cache | -C | -disable-* | --disable-* \
  7864. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  7865. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  7866. + | -with-* | --with-* | -without-* | --without-* | --x)
  7867. + case "$ac_configure_args0 " in
  7868. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  7869. + esac
  7870. + ;;
  7871. + -* ) ac_must_keep_next=true ;;
  7872. + esac
  7873. + fi
  7874. + as_fn_append ac_configure_args " '$ac_arg'"
  7875. + ;;
  7876. + esac
  7877. + done
  7878. +done
  7879. +{ ac_configure_args0=; unset ac_configure_args0;}
  7880. +{ ac_configure_args1=; unset ac_configure_args1;}
  7881. +
  7882. +# When interrupted or exit'd, cleanup temporary files, and complete
  7883. +# config.log. We remove comments because anyway the quotes in there
  7884. +# would cause problems or look ugly.
  7885. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  7886. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  7887. +trap 'exit_status=$?
  7888. + # Save into config.log some information that might help in debugging.
  7889. + {
  7890. + echo
  7891. +
  7892. + cat <<\_ASBOX
  7893. +## ---------------- ##
  7894. +## Cache variables. ##
  7895. +## ---------------- ##
  7896. +_ASBOX
  7897. + echo
  7898. + # The following way of writing the cache mishandles newlines in values,
  7899. +(
  7900. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  7901. + eval ac_val=\$$ac_var
  7902. + case $ac_val in #(
  7903. + *${as_nl}*)
  7904. + case $ac_var in #(
  7905. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7906. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7907. + esac
  7908. + case $ac_var in #(
  7909. + _ | IFS | as_nl) ;; #(
  7910. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7911. + *) { eval $ac_var=; unset $ac_var;} ;;
  7912. + esac ;;
  7913. + esac
  7914. + done
  7915. + (set) 2>&1 |
  7916. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  7917. + *${as_nl}ac_space=\ *)
  7918. + sed -n \
  7919. + "s/'\''/'\''\\\\'\'''\''/g;
  7920. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  7921. + ;; #(
  7922. + *)
  7923. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7924. + ;;
  7925. + esac |
  7926. + sort
  7927. +)
  7928. + echo
  7929. +
  7930. + cat <<\_ASBOX
  7931. +## ----------------- ##
  7932. +## Output variables. ##
  7933. +## ----------------- ##
  7934. +_ASBOX
  7935. + echo
  7936. + for ac_var in $ac_subst_vars
  7937. + do
  7938. + eval ac_val=\$$ac_var
  7939. + case $ac_val in
  7940. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  7941. + esac
  7942. + $as_echo "$ac_var='\''$ac_val'\''"
  7943. + done | sort
  7944. + echo
  7945. +
  7946. + if test -n "$ac_subst_files"; then
  7947. + cat <<\_ASBOX
  7948. +## ------------------- ##
  7949. +## File substitutions. ##
  7950. +## ------------------- ##
  7951. +_ASBOX
  7952. + echo
  7953. + for ac_var in $ac_subst_files
  7954. + do
  7955. + eval ac_val=\$$ac_var
  7956. + case $ac_val in
  7957. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  7958. + esac
  7959. + $as_echo "$ac_var='\''$ac_val'\''"
  7960. + done | sort
  7961. + echo
  7962. + fi
  7963. +
  7964. + if test -s confdefs.h; then
  7965. + cat <<\_ASBOX
  7966. +## ----------- ##
  7967. +## confdefs.h. ##
  7968. +## ----------- ##
  7969. +_ASBOX
  7970. + echo
  7971. + cat confdefs.h
  7972. + echo
  7973. + fi
  7974. + test "$ac_signal" != 0 &&
  7975. + $as_echo "$as_me: caught signal $ac_signal"
  7976. + $as_echo "$as_me: exit $exit_status"
  7977. + } >&5
  7978. + rm -f core *.core core.conftest.* &&
  7979. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  7980. + exit $exit_status
  7981. +' 0
  7982. +for ac_signal in 1 2 13 15; do
  7983. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  7984. +done
  7985. +ac_signal=0
  7986. +
  7987. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  7988. +rm -f -r conftest* confdefs.h
  7989. +
  7990. +$as_echo "/* confdefs.h */" > confdefs.h
  7991. +
  7992. +# Predefined preprocessor variables.
  7993. +
  7994. +cat >>confdefs.h <<_ACEOF
  7995. +#define PACKAGE_NAME "$PACKAGE_NAME"
  7996. +_ACEOF
  7997. +
  7998. +cat >>confdefs.h <<_ACEOF
  7999. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  8000. +_ACEOF
  8001. +
  8002. +cat >>confdefs.h <<_ACEOF
  8003. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  8004. +_ACEOF
  8005. +
  8006. +cat >>confdefs.h <<_ACEOF
  8007. +#define PACKAGE_STRING "$PACKAGE_STRING"
  8008. +_ACEOF
  8009. +
  8010. +cat >>confdefs.h <<_ACEOF
  8011. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  8012. +_ACEOF
  8013. +
  8014. +cat >>confdefs.h <<_ACEOF
  8015. +#define PACKAGE_URL "$PACKAGE_URL"
  8016. +_ACEOF
  8017. +
  8018. +
  8019. +# Let the site file select an alternate cache file if it wants to.
  8020. +# Prefer an explicitly selected file to automatically selected ones.
  8021. +ac_site_file1=NONE
  8022. +ac_site_file2=NONE
  8023. +if test -n "$CONFIG_SITE"; then
  8024. + ac_site_file1=$CONFIG_SITE
  8025. +elif test "x$prefix" != xNONE; then
  8026. + ac_site_file1=$prefix/share/config.site
  8027. + ac_site_file2=$prefix/etc/config.site
  8028. +else
  8029. + ac_site_file1=$ac_default_prefix/share/config.site
  8030. + ac_site_file2=$ac_default_prefix/etc/config.site
  8031. +fi
  8032. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  8033. +do
  8034. + test "x$ac_site_file" = xNONE && continue
  8035. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  8036. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  8037. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  8038. + sed 's/^/| /' "$ac_site_file" >&5
  8039. + . "$ac_site_file"
  8040. + fi
  8041. +done
  8042. +
  8043. +if test -r "$cache_file"; then
  8044. + # Some versions of bash will fail to source /dev/null (special files
  8045. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  8046. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  8047. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  8048. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  8049. + case $cache_file in
  8050. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  8051. + *) . "./$cache_file";;
  8052. + esac
  8053. + fi
  8054. +else
  8055. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  8056. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  8057. + >$cache_file
  8058. +fi
  8059. +
  8060. +as_fn_append ac_header_list " stdlib.h"
  8061. +as_fn_append ac_header_list " unistd.h"
  8062. +as_fn_append ac_header_list " sys/param.h"
  8063. +# Check that the precious variables saved in the cache have kept the same
  8064. +# value.
  8065. +ac_cache_corrupted=false
  8066. +for ac_var in $ac_precious_vars; do
  8067. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  8068. + eval ac_new_set=\$ac_env_${ac_var}_set
  8069. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  8070. + eval ac_new_val=\$ac_env_${ac_var}_value
  8071. + case $ac_old_set,$ac_new_set in
  8072. + set,)
  8073. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  8074. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  8075. + ac_cache_corrupted=: ;;
  8076. + ,set)
  8077. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  8078. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  8079. + ac_cache_corrupted=: ;;
  8080. + ,);;
  8081. + *)
  8082. + if test "x$ac_old_val" != "x$ac_new_val"; then
  8083. + # differences in whitespace do not lead to failure.
  8084. + ac_old_val_w=`echo x $ac_old_val`
  8085. + ac_new_val_w=`echo x $ac_new_val`
  8086. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  8087. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  8088. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  8089. + ac_cache_corrupted=:
  8090. + else
  8091. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  8092. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  8093. + eval $ac_var=\$ac_old_val
  8094. + fi
  8095. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  8096. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  8097. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  8098. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  8099. + fi;;
  8100. + esac
  8101. + # Pass precious variables to config.status.
  8102. + if test "$ac_new_set" = set; then
  8103. + case $ac_new_val in
  8104. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  8105. + *) ac_arg=$ac_var=$ac_new_val ;;
  8106. + esac
  8107. + case " $ac_configure_args " in
  8108. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  8109. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  8110. + esac
  8111. + fi
  8112. +done
  8113. +if $ac_cache_corrupted; then
  8114. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8115. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8116. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  8117. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  8118. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  8119. +fi
  8120. +## -------------------- ##
  8121. +## Main body of script. ##
  8122. +## -------------------- ##
  8123. +
  8124. +ac_ext=c
  8125. +ac_cpp='$CPP $CPPFLAGS'
  8126. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8127. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8128. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8129. +
  8130. +
  8131. +# AC_CONFIG_AUX_DIR(config)
  8132. +am__api_version='1.11'
  8133. +
  8134. +ac_aux_dir=
  8135. +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  8136. + for ac_t in install-sh install.sh shtool; do
  8137. + if test -f "$ac_dir/$ac_t"; then
  8138. + ac_aux_dir=$ac_dir
  8139. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  8140. + break 2
  8141. + fi
  8142. + done
  8143. +done
  8144. +if test -z "$ac_aux_dir"; then
  8145. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  8146. +fi
  8147. +
  8148. +# These three variables are undocumented and unsupported,
  8149. +# and are intended to be withdrawn in a future Autoconf release.
  8150. +# They can cause serious problems if a builder's source tree is in a directory
  8151. +# whose full name contains unusual characters.
  8152. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  8153. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  8154. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  8155. +
  8156. +
  8157. +# Find a good install program. We prefer a C program (faster),
  8158. +# so one script is as good as another. But avoid the broken or
  8159. +# incompatible versions:
  8160. +# SysV /etc/install, /usr/sbin/install
  8161. +# SunOS /usr/etc/install
  8162. +# IRIX /sbin/install
  8163. +# AIX /bin/install
  8164. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  8165. +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  8166. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  8167. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  8168. +# OS/2's system install, which has a completely different semantic
  8169. +# ./install, which can be erroneously created by make from ./install.sh.
  8170. +# Reject install programs that cannot install multiple files.
  8171. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  8172. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  8173. +if test -z "$INSTALL"; then
  8174. +if test "${ac_cv_path_install+set}" = set; then :
  8175. + $as_echo_n "(cached) " >&6
  8176. +else
  8177. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8178. +for as_dir in $PATH
  8179. +do
  8180. + IFS=$as_save_IFS
  8181. + test -z "$as_dir" && as_dir=.
  8182. + # Account for people who put trailing slashes in PATH elements.
  8183. +case $as_dir/ in #((
  8184. + ./ | .// | /[cC]/* | \
  8185. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  8186. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  8187. + /usr/ucb/* ) ;;
  8188. + *)
  8189. + # OSF1 and SCO ODT 3.0 have their own names for install.
  8190. + # Don't use installbsd from OSF since it installs stuff as root
  8191. + # by default.
  8192. + for ac_prog in ginstall scoinst install; do
  8193. + for ac_exec_ext in '' $ac_executable_extensions; do
  8194. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  8195. + if test $ac_prog = install &&
  8196. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  8197. + # AIX install. It has an incompatible calling convention.
  8198. + :
  8199. + elif test $ac_prog = install &&
  8200. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  8201. + # program-specific install script used by HP pwplus--don't use.
  8202. + :
  8203. + else
  8204. + rm -rf conftest.one conftest.two conftest.dir
  8205. + echo one > conftest.one
  8206. + echo two > conftest.two
  8207. + mkdir conftest.dir
  8208. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  8209. + test -s conftest.one && test -s conftest.two &&
  8210. + test -s conftest.dir/conftest.one &&
  8211. + test -s conftest.dir/conftest.two
  8212. + then
  8213. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  8214. + break 3
  8215. + fi
  8216. + fi
  8217. + fi
  8218. + done
  8219. + done
  8220. + ;;
  8221. +esac
  8222. +
  8223. + done
  8224. +IFS=$as_save_IFS
  8225. +
  8226. +rm -rf conftest.one conftest.two conftest.dir
  8227. +
  8228. +fi
  8229. + if test "${ac_cv_path_install+set}" = set; then
  8230. + INSTALL=$ac_cv_path_install
  8231. + else
  8232. + # As a last resort, use the slow shell script. Don't cache a
  8233. + # value for INSTALL within a source directory, because that will
  8234. + # break other packages using the cache if that directory is
  8235. + # removed, or if the value is a relative name.
  8236. + INSTALL=$ac_install_sh
  8237. + fi
  8238. +fi
  8239. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  8240. +$as_echo "$INSTALL" >&6; }
  8241. +
  8242. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  8243. +# It thinks the first close brace ends the variable substitution.
  8244. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  8245. +
  8246. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  8247. +
  8248. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  8249. +
  8250. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  8251. +$as_echo_n "checking whether build environment is sane... " >&6; }
  8252. +# Just in case
  8253. +sleep 1
  8254. +echo timestamp > conftest.file
  8255. +# Reject unsafe characters in $srcdir or the absolute working directory
  8256. +# name. Accept space and tab only in the latter.
  8257. +am_lf='
  8258. +'
  8259. +case `pwd` in
  8260. + *[\\\"\#\$\&\'\`$am_lf]*)
  8261. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  8262. +esac
  8263. +case $srcdir in
  8264. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  8265. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  8266. +esac
  8267. +
  8268. +# Do `set' in a subshell so we don't clobber the current shell's
  8269. +# arguments. Must try -L first in case configure is actually a
  8270. +# symlink; some systems play weird games with the mod time of symlinks
  8271. +# (eg FreeBSD returns the mod time of the symlink's containing
  8272. +# directory).
  8273. +if (
  8274. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8275. + if test "$*" = "X"; then
  8276. + # -L didn't work.
  8277. + set X `ls -t "$srcdir/configure" conftest.file`
  8278. + fi
  8279. + rm -f conftest.file
  8280. + if test "$*" != "X $srcdir/configure conftest.file" \
  8281. + && test "$*" != "X conftest.file $srcdir/configure"; then
  8282. +
  8283. + # If neither matched, then we have a broken ls. This can happen
  8284. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  8285. + # broken ls alias from the environment. This has actually
  8286. + # happened. Such a system could not be considered "sane".
  8287. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  8288. +alias in your environment" "$LINENO" 5
  8289. + fi
  8290. +
  8291. + test "$2" = conftest.file
  8292. + )
  8293. +then
  8294. + # Ok.
  8295. + :
  8296. +else
  8297. + as_fn_error "newly created file is older than distributed files!
  8298. +Check your system clock" "$LINENO" 5
  8299. +fi
  8300. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8301. +$as_echo "yes" >&6; }
  8302. +test "$program_prefix" != NONE &&
  8303. + program_transform_name="s&^&$program_prefix&;$program_transform_name"
  8304. +# Use a double $ so make ignores it.
  8305. +test "$program_suffix" != NONE &&
  8306. + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  8307. +# Double any \ or $.
  8308. +# By default was `s,x,x', remove it if useless.
  8309. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  8310. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  8311. +
  8312. +# expand $ac_aux_dir to an absolute path
  8313. +am_aux_dir=`cd $ac_aux_dir && pwd`
  8314. +
  8315. +if test x"${MISSING+set}" != xset; then
  8316. + case $am_aux_dir in
  8317. + *\ * | *\ *)
  8318. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8319. + *)
  8320. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8321. + esac
  8322. +fi
  8323. +# Use eval to expand $SHELL
  8324. +if eval "$MISSING --run true"; then
  8325. + am_missing_run="$MISSING --run "
  8326. +else
  8327. + am_missing_run=
  8328. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  8329. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  8330. +fi
  8331. +
  8332. +if test x"${install_sh}" != xset; then
  8333. + case $am_aux_dir in
  8334. + *\ * | *\ *)
  8335. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8336. + *)
  8337. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  8338. + esac
  8339. +fi
  8340. +
  8341. +# Installed binaries are usually stripped using `strip' when the user
  8342. +# run `make install-strip'. However `strip' might not be the right
  8343. +# tool to use in cross-compilation environments, therefore Automake
  8344. +# will honor the `STRIP' environment variable to overrule this program.
  8345. +if test "$cross_compiling" != no; then
  8346. + if test -n "$ac_tool_prefix"; then
  8347. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8348. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  8349. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8350. +$as_echo_n "checking for $ac_word... " >&6; }
  8351. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  8352. + $as_echo_n "(cached) " >&6
  8353. +else
  8354. + if test -n "$STRIP"; then
  8355. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8356. +else
  8357. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8358. +for as_dir in $PATH
  8359. +do
  8360. + IFS=$as_save_IFS
  8361. + test -z "$as_dir" && as_dir=.
  8362. + for ac_exec_ext in '' $ac_executable_extensions; do
  8363. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8364. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8365. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8366. + break 2
  8367. + fi
  8368. +done
  8369. + done
  8370. +IFS=$as_save_IFS
  8371. +
  8372. +fi
  8373. +fi
  8374. +STRIP=$ac_cv_prog_STRIP
  8375. +if test -n "$STRIP"; then
  8376. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8377. +$as_echo "$STRIP" >&6; }
  8378. +else
  8379. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8380. +$as_echo "no" >&6; }
  8381. +fi
  8382. +
  8383. +
  8384. +fi
  8385. +if test -z "$ac_cv_prog_STRIP"; then
  8386. + ac_ct_STRIP=$STRIP
  8387. + # Extract the first word of "strip", so it can be a program name with args.
  8388. +set dummy strip; ac_word=$2
  8389. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8390. +$as_echo_n "checking for $ac_word... " >&6; }
  8391. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  8392. + $as_echo_n "(cached) " >&6
  8393. +else
  8394. + if test -n "$ac_ct_STRIP"; then
  8395. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8396. +else
  8397. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8398. +for as_dir in $PATH
  8399. +do
  8400. + IFS=$as_save_IFS
  8401. + test -z "$as_dir" && as_dir=.
  8402. + for ac_exec_ext in '' $ac_executable_extensions; do
  8403. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8404. + ac_cv_prog_ac_ct_STRIP="strip"
  8405. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8406. + break 2
  8407. + fi
  8408. +done
  8409. + done
  8410. +IFS=$as_save_IFS
  8411. +
  8412. +fi
  8413. +fi
  8414. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8415. +if test -n "$ac_ct_STRIP"; then
  8416. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  8417. +$as_echo "$ac_ct_STRIP" >&6; }
  8418. +else
  8419. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8420. +$as_echo "no" >&6; }
  8421. +fi
  8422. +
  8423. + if test "x$ac_ct_STRIP" = x; then
  8424. + STRIP=":"
  8425. + else
  8426. + case $cross_compiling:$ac_tool_warned in
  8427. +yes:)
  8428. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8429. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8430. +ac_tool_warned=yes ;;
  8431. +esac
  8432. + STRIP=$ac_ct_STRIP
  8433. + fi
  8434. +else
  8435. + STRIP="$ac_cv_prog_STRIP"
  8436. +fi
  8437. +
  8438. +fi
  8439. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8440. +
  8441. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  8442. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  8443. +if test -z "$MKDIR_P"; then
  8444. + if test "${ac_cv_path_mkdir+set}" = set; then :
  8445. + $as_echo_n "(cached) " >&6
  8446. +else
  8447. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8448. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  8449. +do
  8450. + IFS=$as_save_IFS
  8451. + test -z "$as_dir" && as_dir=.
  8452. + for ac_prog in mkdir gmkdir; do
  8453. + for ac_exec_ext in '' $ac_executable_extensions; do
  8454. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  8455. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  8456. + 'mkdir (GNU coreutils) '* | \
  8457. + 'mkdir (coreutils) '* | \
  8458. + 'mkdir (fileutils) '4.1*)
  8459. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  8460. + break 3;;
  8461. + esac
  8462. + done
  8463. + done
  8464. + done
  8465. +IFS=$as_save_IFS
  8466. +
  8467. +fi
  8468. +
  8469. + test -d ./--version && rmdir ./--version
  8470. + if test "${ac_cv_path_mkdir+set}" = set; then
  8471. + MKDIR_P="$ac_cv_path_mkdir -p"
  8472. + else
  8473. + # As a last resort, use the slow shell script. Don't cache a
  8474. + # value for MKDIR_P within a source directory, because that will
  8475. + # break other packages using the cache if that directory is
  8476. + # removed, or if the value is a relative name.
  8477. + MKDIR_P="$ac_install_sh -d"
  8478. + fi
  8479. +fi
  8480. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  8481. +$as_echo "$MKDIR_P" >&6; }
  8482. +
  8483. +mkdir_p="$MKDIR_P"
  8484. +case $mkdir_p in
  8485. + [\\/$]* | ?:[\\/]*) ;;
  8486. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  8487. +esac
  8488. +
  8489. +for ac_prog in gawk mawk nawk awk
  8490. +do
  8491. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  8492. +set dummy $ac_prog; ac_word=$2
  8493. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8494. +$as_echo_n "checking for $ac_word... " >&6; }
  8495. +if test "${ac_cv_prog_AWK+set}" = set; then :
  8496. + $as_echo_n "(cached) " >&6
  8497. +else
  8498. + if test -n "$AWK"; then
  8499. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  8500. +else
  8501. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8502. +for as_dir in $PATH
  8503. +do
  8504. + IFS=$as_save_IFS
  8505. + test -z "$as_dir" && as_dir=.
  8506. + for ac_exec_ext in '' $ac_executable_extensions; do
  8507. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8508. + ac_cv_prog_AWK="$ac_prog"
  8509. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8510. + break 2
  8511. + fi
  8512. +done
  8513. + done
  8514. +IFS=$as_save_IFS
  8515. +
  8516. +fi
  8517. +fi
  8518. +AWK=$ac_cv_prog_AWK
  8519. +if test -n "$AWK"; then
  8520. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  8521. +$as_echo "$AWK" >&6; }
  8522. +else
  8523. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8524. +$as_echo "no" >&6; }
  8525. +fi
  8526. +
  8527. +
  8528. + test -n "$AWK" && break
  8529. +done
  8530. +
  8531. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  8532. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  8533. +set x ${MAKE-make}
  8534. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  8535. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  8536. + $as_echo_n "(cached) " >&6
  8537. +else
  8538. + cat >conftest.make <<\_ACEOF
  8539. +SHELL = /bin/sh
  8540. +all:
  8541. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  8542. +_ACEOF
  8543. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  8544. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  8545. + *@@@%%%=?*=@@@%%%*)
  8546. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  8547. + *)
  8548. + eval ac_cv_prog_make_${ac_make}_set=no;;
  8549. +esac
  8550. +rm -f conftest.make
  8551. +fi
  8552. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  8553. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8554. +$as_echo "yes" >&6; }
  8555. + SET_MAKE=
  8556. +else
  8557. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8558. +$as_echo "no" >&6; }
  8559. + SET_MAKE="MAKE=${MAKE-make}"
  8560. +fi
  8561. +
  8562. +rm -rf .tst 2>/dev/null
  8563. +mkdir .tst 2>/dev/null
  8564. +if test -d .tst; then
  8565. + am__leading_dot=.
  8566. +else
  8567. + am__leading_dot=_
  8568. +fi
  8569. +rmdir .tst 2>/dev/null
  8570. +
  8571. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8572. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8573. + # is not polluted with repeated "-I."
  8574. + am__isrc=' -I$(srcdir)'
  8575. + # test to see if srcdir already configured
  8576. + if test -f $srcdir/config.status; then
  8577. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  8578. + fi
  8579. +fi
  8580. +
  8581. +# test whether we have cygpath
  8582. +if test -z "$CYGPATH_W"; then
  8583. + if (cygpath --version) >/dev/null 2>/dev/null; then
  8584. + CYGPATH_W='cygpath -w'
  8585. + else
  8586. + CYGPATH_W=echo
  8587. + fi
  8588. +fi
  8589. +
  8590. +
  8591. +# Define the identity of the package.
  8592. + PACKAGE='tslib'
  8593. + VERSION='0.0.2'
  8594. +
  8595. +
  8596. +cat >>confdefs.h <<_ACEOF
  8597. +#define PACKAGE "$PACKAGE"
  8598. +_ACEOF
  8599. +
  8600. +
  8601. +cat >>confdefs.h <<_ACEOF
  8602. +#define VERSION "$VERSION"
  8603. +_ACEOF
  8604. +
  8605. +# Some tools Automake needs.
  8606. +
  8607. +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  8608. +
  8609. +
  8610. +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  8611. +
  8612. +
  8613. +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  8614. +
  8615. +
  8616. +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  8617. +
  8618. +
  8619. +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  8620. +
  8621. +# We need awk for the "check" target. The system "awk" is bad on
  8622. +# some platforms.
  8623. +# Always define AMTAR for backward compatibility.
  8624. +
  8625. +AMTAR=${AMTAR-"${am_missing_run}tar"}
  8626. +
  8627. +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  8628. +
  8629. +
  8630. +
  8631. +
  8632. +
  8633. +
  8634. +ac_config_headers="$ac_config_headers config.h"
  8635. +
  8636. +
  8637. +PACKAGE_DESCRIPTION="Touchscreen Access Library"
  8638. +
  8639. +
  8640. +# Set our default flags variables
  8641. +
  8642. + if test x"$CFLAGS" = "x"; then
  8643. + CFLAGS="-O2 -Wall -W"
  8644. + fi
  8645. +
  8646. +
  8647. +# Checks for programs.
  8648. +ac_ext=cpp
  8649. +ac_cpp='$CXXCPP $CPPFLAGS'
  8650. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8651. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8652. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8653. +if test -z "$CXX"; then
  8654. + if test -n "$CCC"; then
  8655. + CXX=$CCC
  8656. + else
  8657. + if test -n "$ac_tool_prefix"; then
  8658. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  8659. + do
  8660. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8661. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8662. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8663. +$as_echo_n "checking for $ac_word... " >&6; }
  8664. +if test "${ac_cv_prog_CXX+set}" = set; then :
  8665. + $as_echo_n "(cached) " >&6
  8666. +else
  8667. + if test -n "$CXX"; then
  8668. + ac_cv_prog_CXX="$CXX" # Let the user override the test.
  8669. +else
  8670. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8671. +for as_dir in $PATH
  8672. +do
  8673. + IFS=$as_save_IFS
  8674. + test -z "$as_dir" && as_dir=.
  8675. + for ac_exec_ext in '' $ac_executable_extensions; do
  8676. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8677. + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  8678. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8679. + break 2
  8680. + fi
  8681. +done
  8682. + done
  8683. +IFS=$as_save_IFS
  8684. +
  8685. +fi
  8686. +fi
  8687. +CXX=$ac_cv_prog_CXX
  8688. +if test -n "$CXX"; then
  8689. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  8690. +$as_echo "$CXX" >&6; }
  8691. +else
  8692. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8693. +$as_echo "no" >&6; }
  8694. +fi
  8695. +
  8696. +
  8697. + test -n "$CXX" && break
  8698. + done
  8699. +fi
  8700. +if test -z "$CXX"; then
  8701. + ac_ct_CXX=$CXX
  8702. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  8703. +do
  8704. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  8705. +set dummy $ac_prog; ac_word=$2
  8706. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8707. +$as_echo_n "checking for $ac_word... " >&6; }
  8708. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  8709. + $as_echo_n "(cached) " >&6
  8710. +else
  8711. + if test -n "$ac_ct_CXX"; then
  8712. + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  8713. +else
  8714. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8715. +for as_dir in $PATH
  8716. +do
  8717. + IFS=$as_save_IFS
  8718. + test -z "$as_dir" && as_dir=.
  8719. + for ac_exec_ext in '' $ac_executable_extensions; do
  8720. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8721. + ac_cv_prog_ac_ct_CXX="$ac_prog"
  8722. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8723. + break 2
  8724. + fi
  8725. +done
  8726. + done
  8727. +IFS=$as_save_IFS
  8728. +
  8729. +fi
  8730. +fi
  8731. +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  8732. +if test -n "$ac_ct_CXX"; then
  8733. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  8734. +$as_echo "$ac_ct_CXX" >&6; }
  8735. +else
  8736. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8737. +$as_echo "no" >&6; }
  8738. +fi
  8739. +
  8740. +
  8741. + test -n "$ac_ct_CXX" && break
  8742. +done
  8743. +
  8744. + if test "x$ac_ct_CXX" = x; then
  8745. + CXX="g++"
  8746. + else
  8747. + case $cross_compiling:$ac_tool_warned in
  8748. +yes:)
  8749. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8750. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8751. +ac_tool_warned=yes ;;
  8752. +esac
  8753. + CXX=$ac_ct_CXX
  8754. + fi
  8755. +fi
  8756. +
  8757. + fi
  8758. +fi
  8759. +# Provide some information about the compiler.
  8760. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  8761. +set X $ac_compile
  8762. +ac_compiler=$2
  8763. +for ac_option in --version -v -V -qversion; do
  8764. + { { ac_try="$ac_compiler $ac_option >&5"
  8765. +case "(($ac_try" in
  8766. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8767. + *) ac_try_echo=$ac_try;;
  8768. +esac
  8769. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8770. +$as_echo "$ac_try_echo"; } >&5
  8771. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  8772. + ac_status=$?
  8773. + if test -s conftest.err; then
  8774. + sed '10a\
  8775. +... rest of stderr output deleted ...
  8776. + 10q' conftest.err >conftest.er1
  8777. + cat conftest.er1 >&5
  8778. + fi
  8779. + rm -f conftest.er1 conftest.err
  8780. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8781. + test $ac_status = 0; }
  8782. +done
  8783. +
  8784. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8785. +/* end confdefs.h. */
  8786. +
  8787. +int
  8788. +main ()
  8789. +{
  8790. +
  8791. + ;
  8792. + return 0;
  8793. +}
  8794. +_ACEOF
  8795. +ac_clean_files_save=$ac_clean_files
  8796. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  8797. +# Try to create an executable without -o first, disregard a.out.
  8798. +# It will help us diagnose broken compilers, and finding out an intuition
  8799. +# of exeext.
  8800. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  8801. +$as_echo_n "checking whether the C++ compiler works... " >&6; }
  8802. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  8803. +
  8804. +# The possible output files:
  8805. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  8806. +
  8807. +ac_rmfiles=
  8808. +for ac_file in $ac_files
  8809. +do
  8810. + case $ac_file in
  8811. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  8812. + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  8813. + esac
  8814. +done
  8815. +rm -f $ac_rmfiles
  8816. +
  8817. +if { { ac_try="$ac_link_default"
  8818. +case "(($ac_try" in
  8819. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8820. + *) ac_try_echo=$ac_try;;
  8821. +esac
  8822. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8823. +$as_echo "$ac_try_echo"; } >&5
  8824. + (eval "$ac_link_default") 2>&5
  8825. + ac_status=$?
  8826. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8827. + test $ac_status = 0; }; then :
  8828. + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  8829. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  8830. +# in a Makefile. We should not override ac_cv_exeext if it was cached,
  8831. +# so that the user can short-circuit this test for compilers unknown to
  8832. +# Autoconf.
  8833. +for ac_file in $ac_files ''
  8834. +do
  8835. + test -f "$ac_file" || continue
  8836. + case $ac_file in
  8837. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  8838. + ;;
  8839. + [ab].out )
  8840. + # We found the default executable, but exeext='' is most
  8841. + # certainly right.
  8842. + break;;
  8843. + *.* )
  8844. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  8845. + then :; else
  8846. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  8847. + fi
  8848. + # We set ac_cv_exeext here because the later test for it is not
  8849. + # safe: cross compilers may not add the suffix if given an `-o'
  8850. + # argument, so we may need to know it at that point already.
  8851. + # Even if this section looks crufty: it has the advantage of
  8852. + # actually working.
  8853. + break;;
  8854. + * )
  8855. + break;;
  8856. + esac
  8857. +done
  8858. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  8859. +
  8860. +else
  8861. + ac_file=''
  8862. +fi
  8863. +if test -z "$ac_file"; then :
  8864. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8865. +$as_echo "no" >&6; }
  8866. +$as_echo "$as_me: failed program was:" >&5
  8867. +sed 's/^/| /' conftest.$ac_ext >&5
  8868. +
  8869. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8870. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8871. +{ as_fn_set_status 77
  8872. +as_fn_error "C++ compiler cannot create executables
  8873. +See \`config.log' for more details." "$LINENO" 5; }; }
  8874. +else
  8875. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8876. +$as_echo "yes" >&6; }
  8877. +fi
  8878. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  8879. +$as_echo_n "checking for C++ compiler default output file name... " >&6; }
  8880. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  8881. +$as_echo "$ac_file" >&6; }
  8882. +ac_exeext=$ac_cv_exeext
  8883. +
  8884. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  8885. +ac_clean_files=$ac_clean_files_save
  8886. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  8887. +$as_echo_n "checking for suffix of executables... " >&6; }
  8888. +if { { ac_try="$ac_link"
  8889. +case "(($ac_try" in
  8890. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8891. + *) ac_try_echo=$ac_try;;
  8892. +esac
  8893. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8894. +$as_echo "$ac_try_echo"; } >&5
  8895. + (eval "$ac_link") 2>&5
  8896. + ac_status=$?
  8897. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8898. + test $ac_status = 0; }; then :
  8899. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  8900. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  8901. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  8902. +# `rm'.
  8903. +for ac_file in conftest.exe conftest conftest.*; do
  8904. + test -f "$ac_file" || continue
  8905. + case $ac_file in
  8906. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  8907. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  8908. + break;;
  8909. + * ) break;;
  8910. + esac
  8911. +done
  8912. +else
  8913. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8914. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8915. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  8916. +See \`config.log' for more details." "$LINENO" 5; }
  8917. +fi
  8918. +rm -f conftest conftest$ac_cv_exeext
  8919. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  8920. +$as_echo "$ac_cv_exeext" >&6; }
  8921. +
  8922. +rm -f conftest.$ac_ext
  8923. +EXEEXT=$ac_cv_exeext
  8924. +ac_exeext=$EXEEXT
  8925. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8926. +/* end confdefs.h. */
  8927. +#include <stdio.h>
  8928. +int
  8929. +main ()
  8930. +{
  8931. +FILE *f = fopen ("conftest.out", "w");
  8932. + return ferror (f) || fclose (f) != 0;
  8933. +
  8934. + ;
  8935. + return 0;
  8936. +}
  8937. +_ACEOF
  8938. +ac_clean_files="$ac_clean_files conftest.out"
  8939. +# Check that the compiler produces executables we can run. If not, either
  8940. +# the compiler is broken, or we cross compile.
  8941. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  8942. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  8943. +if test "$cross_compiling" != yes; then
  8944. + { { ac_try="$ac_link"
  8945. +case "(($ac_try" in
  8946. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8947. + *) ac_try_echo=$ac_try;;
  8948. +esac
  8949. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8950. +$as_echo "$ac_try_echo"; } >&5
  8951. + (eval "$ac_link") 2>&5
  8952. + ac_status=$?
  8953. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8954. + test $ac_status = 0; }
  8955. + if { ac_try='./conftest$ac_cv_exeext'
  8956. + { { case "(($ac_try" in
  8957. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8958. + *) ac_try_echo=$ac_try;;
  8959. +esac
  8960. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8961. +$as_echo "$ac_try_echo"; } >&5
  8962. + (eval "$ac_try") 2>&5
  8963. + ac_status=$?
  8964. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8965. + test $ac_status = 0; }; }; then
  8966. + cross_compiling=no
  8967. + else
  8968. + if test "$cross_compiling" = maybe; then
  8969. + cross_compiling=yes
  8970. + else
  8971. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8972. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8973. +as_fn_error "cannot run C++ compiled programs.
  8974. +If you meant to cross compile, use \`--host'.
  8975. +See \`config.log' for more details." "$LINENO" 5; }
  8976. + fi
  8977. + fi
  8978. +fi
  8979. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  8980. +$as_echo "$cross_compiling" >&6; }
  8981. +
  8982. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  8983. +ac_clean_files=$ac_clean_files_save
  8984. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  8985. +$as_echo_n "checking for suffix of object files... " >&6; }
  8986. +if test "${ac_cv_objext+set}" = set; then :
  8987. + $as_echo_n "(cached) " >&6
  8988. +else
  8989. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8990. +/* end confdefs.h. */
  8991. +
  8992. +int
  8993. +main ()
  8994. +{
  8995. +
  8996. + ;
  8997. + return 0;
  8998. +}
  8999. +_ACEOF
  9000. +rm -f conftest.o conftest.obj
  9001. +if { { ac_try="$ac_compile"
  9002. +case "(($ac_try" in
  9003. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9004. + *) ac_try_echo=$ac_try;;
  9005. +esac
  9006. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9007. +$as_echo "$ac_try_echo"; } >&5
  9008. + (eval "$ac_compile") 2>&5
  9009. + ac_status=$?
  9010. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9011. + test $ac_status = 0; }; then :
  9012. + for ac_file in conftest.o conftest.obj conftest.*; do
  9013. + test -f "$ac_file" || continue;
  9014. + case $ac_file in
  9015. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  9016. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  9017. + break;;
  9018. + esac
  9019. +done
  9020. +else
  9021. + $as_echo "$as_me: failed program was:" >&5
  9022. +sed 's/^/| /' conftest.$ac_ext >&5
  9023. +
  9024. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9025. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9026. +as_fn_error "cannot compute suffix of object files: cannot compile
  9027. +See \`config.log' for more details." "$LINENO" 5; }
  9028. +fi
  9029. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  9030. +fi
  9031. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  9032. +$as_echo "$ac_cv_objext" >&6; }
  9033. +OBJEXT=$ac_cv_objext
  9034. +ac_objext=$OBJEXT
  9035. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  9036. +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  9037. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  9038. + $as_echo_n "(cached) " >&6
  9039. +else
  9040. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9041. +/* end confdefs.h. */
  9042. +
  9043. +int
  9044. +main ()
  9045. +{
  9046. +#ifndef __GNUC__
  9047. + choke me
  9048. +#endif
  9049. +
  9050. + ;
  9051. + return 0;
  9052. +}
  9053. +_ACEOF
  9054. +if ac_fn_cxx_try_compile "$LINENO"; then :
  9055. + ac_compiler_gnu=yes
  9056. +else
  9057. + ac_compiler_gnu=no
  9058. +fi
  9059. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9060. +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  9061. +
  9062. +fi
  9063. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  9064. +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  9065. +if test $ac_compiler_gnu = yes; then
  9066. + GXX=yes
  9067. +else
  9068. + GXX=
  9069. +fi
  9070. +ac_test_CXXFLAGS=${CXXFLAGS+set}
  9071. +ac_save_CXXFLAGS=$CXXFLAGS
  9072. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  9073. +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  9074. +if test "${ac_cv_prog_cxx_g+set}" = set; then :
  9075. + $as_echo_n "(cached) " >&6
  9076. +else
  9077. + ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  9078. + ac_cxx_werror_flag=yes
  9079. + ac_cv_prog_cxx_g=no
  9080. + CXXFLAGS="-g"
  9081. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9082. +/* end confdefs.h. */
  9083. +
  9084. +int
  9085. +main ()
  9086. +{
  9087. +
  9088. + ;
  9089. + return 0;
  9090. +}
  9091. +_ACEOF
  9092. +if ac_fn_cxx_try_compile "$LINENO"; then :
  9093. + ac_cv_prog_cxx_g=yes
  9094. +else
  9095. + CXXFLAGS=""
  9096. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9097. +/* end confdefs.h. */
  9098. +
  9099. +int
  9100. +main ()
  9101. +{
  9102. +
  9103. + ;
  9104. + return 0;
  9105. +}
  9106. +_ACEOF
  9107. +if ac_fn_cxx_try_compile "$LINENO"; then :
  9108. +
  9109. +else
  9110. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9111. + CXXFLAGS="-g"
  9112. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9113. +/* end confdefs.h. */
  9114. +
  9115. +int
  9116. +main ()
  9117. +{
  9118. +
  9119. + ;
  9120. + return 0;
  9121. +}
  9122. +_ACEOF
  9123. +if ac_fn_cxx_try_compile "$LINENO"; then :
  9124. + ac_cv_prog_cxx_g=yes
  9125. +fi
  9126. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9127. +fi
  9128. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9129. +fi
  9130. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9131. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9132. +fi
  9133. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  9134. +$as_echo "$ac_cv_prog_cxx_g" >&6; }
  9135. +if test "$ac_test_CXXFLAGS" = set; then
  9136. + CXXFLAGS=$ac_save_CXXFLAGS
  9137. +elif test $ac_cv_prog_cxx_g = yes; then
  9138. + if test "$GXX" = yes; then
  9139. + CXXFLAGS="-g -O2"
  9140. + else
  9141. + CXXFLAGS="-g"
  9142. + fi
  9143. +else
  9144. + if test "$GXX" = yes; then
  9145. + CXXFLAGS="-O2"
  9146. + else
  9147. + CXXFLAGS=
  9148. + fi
  9149. +fi
  9150. +ac_ext=c
  9151. +ac_cpp='$CPP $CPPFLAGS'
  9152. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9153. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9154. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9155. +DEPDIR="${am__leading_dot}deps"
  9156. +
  9157. +ac_config_commands="$ac_config_commands depfiles"
  9158. +
  9159. +
  9160. +am_make=${MAKE-make}
  9161. +cat > confinc << 'END'
  9162. +am__doit:
  9163. + @echo this is the am__doit target
  9164. +.PHONY: am__doit
  9165. +END
  9166. +# If we don't find an include directive, just comment out the code.
  9167. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  9168. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  9169. +am__include="#"
  9170. +am__quote=
  9171. +_am_result=none
  9172. +# First try GNU make style include.
  9173. +echo "include confinc" > confmf
  9174. +# Ignore all kinds of additional output from `make'.
  9175. +case `$am_make -s -f confmf 2> /dev/null` in #(
  9176. +*the\ am__doit\ target*)
  9177. + am__include=include
  9178. + am__quote=
  9179. + _am_result=GNU
  9180. + ;;
  9181. +esac
  9182. +# Now try BSD make style include.
  9183. +if test "$am__include" = "#"; then
  9184. + echo '.include "confinc"' > confmf
  9185. + case `$am_make -s -f confmf 2> /dev/null` in #(
  9186. + *the\ am__doit\ target*)
  9187. + am__include=.include
  9188. + am__quote="\""
  9189. + _am_result=BSD
  9190. + ;;
  9191. + esac
  9192. +fi
  9193. +
  9194. +
  9195. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  9196. +$as_echo "$_am_result" >&6; }
  9197. +rm -f confinc confmf
  9198. +
  9199. +# Check whether --enable-dependency-tracking was given.
  9200. +if test "${enable_dependency_tracking+set}" = set; then :
  9201. + enableval=$enable_dependency_tracking;
  9202. +fi
  9203. +
  9204. +if test "x$enable_dependency_tracking" != xno; then
  9205. + am_depcomp="$ac_aux_dir/depcomp"
  9206. + AMDEPBACKSLASH='\'
  9207. +fi
  9208. + if test "x$enable_dependency_tracking" != xno; then
  9209. + AMDEP_TRUE=
  9210. + AMDEP_FALSE='#'
  9211. +else
  9212. + AMDEP_TRUE='#'
  9213. + AMDEP_FALSE=
  9214. +fi
  9215. +
  9216. +
  9217. +
  9218. +depcc="$CXX" am_compiler_list=
  9219. +
  9220. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  9221. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  9222. +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  9223. + $as_echo_n "(cached) " >&6
  9224. +else
  9225. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9226. + # We make a subdir and do the tests there. Otherwise we can end up
  9227. + # making bogus files that we don't know about and never remove. For
  9228. + # instance it was reported that on HP-UX the gcc test will end up
  9229. + # making a dummy file named `D' -- because `-MD' means `put the output
  9230. + # in D'.
  9231. + mkdir conftest.dir
  9232. + # Copy depcomp to subdir because otherwise we won't find it if we're
  9233. + # using a relative directory.
  9234. + cp "$am_depcomp" conftest.dir
  9235. + cd conftest.dir
  9236. + # We will build objects and dependencies in a subdirectory because
  9237. + # it helps to detect inapplicable dependency modes. For instance
  9238. + # both Tru64's cc and ICC support -MD to output dependencies as a
  9239. + # side effect of compilation, but ICC will put the dependencies in
  9240. + # the current directory while Tru64 will put them in the object
  9241. + # directory.
  9242. + mkdir sub
  9243. +
  9244. + am_cv_CXX_dependencies_compiler_type=none
  9245. + if test "$am_compiler_list" = ""; then
  9246. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9247. + fi
  9248. + am__universal=false
  9249. + case " $depcc " in #(
  9250. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  9251. + esac
  9252. +
  9253. + for depmode in $am_compiler_list; do
  9254. + # Setup a source with many dependencies, because some compilers
  9255. + # like to wrap large dependency lists on column 80 (with \), and
  9256. + # we should not choose a depcomp mode which is confused by this.
  9257. + #
  9258. + # We need to recreate these files for each test, as the compiler may
  9259. + # overwrite some of them when testing with obscure command lines.
  9260. + # This happens at least with the AIX C compiler.
  9261. + : > sub/conftest.c
  9262. + for i in 1 2 3 4 5 6; do
  9263. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9264. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  9265. + # Solaris 8's {/usr,}/bin/sh.
  9266. + touch sub/conftst$i.h
  9267. + done
  9268. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9269. +
  9270. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  9271. + # mode. It turns out that the SunPro C++ compiler does not properly
  9272. + # handle `-M -o', and we need to detect this. Also, some Intel
  9273. + # versions had trouble with output in subdirs
  9274. + am__obj=sub/conftest.${OBJEXT-o}
  9275. + am__minus_obj="-o $am__obj"
  9276. + case $depmode in
  9277. + gcc)
  9278. + # This depmode causes a compiler race in universal mode.
  9279. + test "$am__universal" = false || continue
  9280. + ;;
  9281. + nosideeffect)
  9282. + # after this tag, mechanisms are not by side-effect, so they'll
  9283. + # only be used when explicitly requested
  9284. + if test "x$enable_dependency_tracking" = xyes; then
  9285. + continue
  9286. + else
  9287. + break
  9288. + fi
  9289. + ;;
  9290. + msvisualcpp | msvcmsys)
  9291. + # This compiler won't grok `-c -o', but also, the minuso test has
  9292. + # not run yet. These depmodes are late enough in the game, and
  9293. + # so weak that their functioning should not be impacted.
  9294. + am__obj=conftest.${OBJEXT-o}
  9295. + am__minus_obj=
  9296. + ;;
  9297. + none) break ;;
  9298. + esac
  9299. + if depmode=$depmode \
  9300. + source=sub/conftest.c object=$am__obj \
  9301. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9302. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  9303. + >/dev/null 2>conftest.err &&
  9304. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  9305. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9306. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  9307. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9308. + # icc doesn't choke on unknown options, it will just issue warnings
  9309. + # or remarks (even with -Werror). So we grep stderr for any message
  9310. + # that says an option was ignored or not supported.
  9311. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  9312. + # icc: Command line warning: ignoring option '-M'; no argument required
  9313. + # The diagnosis changed in icc 8.0:
  9314. + # icc: Command line remark: option '-MP' not supported
  9315. + if (grep 'ignoring option' conftest.err ||
  9316. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9317. + am_cv_CXX_dependencies_compiler_type=$depmode
  9318. + break
  9319. + fi
  9320. + fi
  9321. + done
  9322. +
  9323. + cd ..
  9324. + rm -rf conftest.dir
  9325. +else
  9326. + am_cv_CXX_dependencies_compiler_type=none
  9327. +fi
  9328. +
  9329. +fi
  9330. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  9331. +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  9332. +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  9333. +
  9334. + if
  9335. + test "x$enable_dependency_tracking" != xno \
  9336. + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  9337. + am__fastdepCXX_TRUE=
  9338. + am__fastdepCXX_FALSE='#'
  9339. +else
  9340. + am__fastdepCXX_TRUE='#'
  9341. + am__fastdepCXX_FALSE=
  9342. +fi
  9343. +
  9344. +
  9345. +ac_ext=c
  9346. +ac_cpp='$CPP $CPPFLAGS'
  9347. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9348. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9349. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9350. +if test -n "$ac_tool_prefix"; then
  9351. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9352. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9353. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9354. +$as_echo_n "checking for $ac_word... " >&6; }
  9355. +if test "${ac_cv_prog_CC+set}" = set; then :
  9356. + $as_echo_n "(cached) " >&6
  9357. +else
  9358. + if test -n "$CC"; then
  9359. + ac_cv_prog_CC="$CC" # Let the user override the test.
  9360. +else
  9361. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9362. +for as_dir in $PATH
  9363. +do
  9364. + IFS=$as_save_IFS
  9365. + test -z "$as_dir" && as_dir=.
  9366. + for ac_exec_ext in '' $ac_executable_extensions; do
  9367. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9368. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9369. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9370. + break 2
  9371. + fi
  9372. +done
  9373. + done
  9374. +IFS=$as_save_IFS
  9375. +
  9376. +fi
  9377. +fi
  9378. +CC=$ac_cv_prog_CC
  9379. +if test -n "$CC"; then
  9380. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9381. +$as_echo "$CC" >&6; }
  9382. +else
  9383. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9384. +$as_echo "no" >&6; }
  9385. +fi
  9386. +
  9387. +
  9388. +fi
  9389. +if test -z "$ac_cv_prog_CC"; then
  9390. + ac_ct_CC=$CC
  9391. + # Extract the first word of "gcc", so it can be a program name with args.
  9392. +set dummy gcc; ac_word=$2
  9393. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9394. +$as_echo_n "checking for $ac_word... " >&6; }
  9395. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  9396. + $as_echo_n "(cached) " >&6
  9397. +else
  9398. + if test -n "$ac_ct_CC"; then
  9399. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9400. +else
  9401. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9402. +for as_dir in $PATH
  9403. +do
  9404. + IFS=$as_save_IFS
  9405. + test -z "$as_dir" && as_dir=.
  9406. + for ac_exec_ext in '' $ac_executable_extensions; do
  9407. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9408. + ac_cv_prog_ac_ct_CC="gcc"
  9409. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9410. + break 2
  9411. + fi
  9412. +done
  9413. + done
  9414. +IFS=$as_save_IFS
  9415. +
  9416. +fi
  9417. +fi
  9418. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9419. +if test -n "$ac_ct_CC"; then
  9420. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9421. +$as_echo "$ac_ct_CC" >&6; }
  9422. +else
  9423. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9424. +$as_echo "no" >&6; }
  9425. +fi
  9426. +
  9427. + if test "x$ac_ct_CC" = x; then
  9428. + CC=""
  9429. + else
  9430. + case $cross_compiling:$ac_tool_warned in
  9431. +yes:)
  9432. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9433. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9434. +ac_tool_warned=yes ;;
  9435. +esac
  9436. + CC=$ac_ct_CC
  9437. + fi
  9438. +else
  9439. + CC="$ac_cv_prog_CC"
  9440. +fi
  9441. +
  9442. +if test -z "$CC"; then
  9443. + if test -n "$ac_tool_prefix"; then
  9444. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9445. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  9446. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9447. +$as_echo_n "checking for $ac_word... " >&6; }
  9448. +if test "${ac_cv_prog_CC+set}" = set; then :
  9449. + $as_echo_n "(cached) " >&6
  9450. +else
  9451. + if test -n "$CC"; then
  9452. + ac_cv_prog_CC="$CC" # Let the user override the test.
  9453. +else
  9454. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9455. +for as_dir in $PATH
  9456. +do
  9457. + IFS=$as_save_IFS
  9458. + test -z "$as_dir" && as_dir=.
  9459. + for ac_exec_ext in '' $ac_executable_extensions; do
  9460. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9461. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  9462. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9463. + break 2
  9464. + fi
  9465. +done
  9466. + done
  9467. +IFS=$as_save_IFS
  9468. +
  9469. +fi
  9470. +fi
  9471. +CC=$ac_cv_prog_CC
  9472. +if test -n "$CC"; then
  9473. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9474. +$as_echo "$CC" >&6; }
  9475. +else
  9476. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9477. +$as_echo "no" >&6; }
  9478. +fi
  9479. +
  9480. +
  9481. + fi
  9482. +fi
  9483. +if test -z "$CC"; then
  9484. + # Extract the first word of "cc", so it can be a program name with args.
  9485. +set dummy cc; ac_word=$2
  9486. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9487. +$as_echo_n "checking for $ac_word... " >&6; }
  9488. +if test "${ac_cv_prog_CC+set}" = set; then :
  9489. + $as_echo_n "(cached) " >&6
  9490. +else
  9491. + if test -n "$CC"; then
  9492. + ac_cv_prog_CC="$CC" # Let the user override the test.
  9493. +else
  9494. + ac_prog_rejected=no
  9495. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9496. +for as_dir in $PATH
  9497. +do
  9498. + IFS=$as_save_IFS
  9499. + test -z "$as_dir" && as_dir=.
  9500. + for ac_exec_ext in '' $ac_executable_extensions; do
  9501. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9502. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9503. + ac_prog_rejected=yes
  9504. + continue
  9505. + fi
  9506. + ac_cv_prog_CC="cc"
  9507. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9508. + break 2
  9509. + fi
  9510. +done
  9511. + done
  9512. +IFS=$as_save_IFS
  9513. +
  9514. +if test $ac_prog_rejected = yes; then
  9515. + # We found a bogon in the path, so make sure we never use it.
  9516. + set dummy $ac_cv_prog_CC
  9517. + shift
  9518. + if test $# != 0; then
  9519. + # We chose a different compiler from the bogus one.
  9520. + # However, it has the same basename, so the bogon will be chosen
  9521. + # first if we set CC to just the basename; use the full file name.
  9522. + shift
  9523. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9524. + fi
  9525. +fi
  9526. +fi
  9527. +fi
  9528. +CC=$ac_cv_prog_CC
  9529. +if test -n "$CC"; then
  9530. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9531. +$as_echo "$CC" >&6; }
  9532. +else
  9533. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9534. +$as_echo "no" >&6; }
  9535. +fi
  9536. +
  9537. +
  9538. +fi
  9539. +if test -z "$CC"; then
  9540. + if test -n "$ac_tool_prefix"; then
  9541. + for ac_prog in cl.exe
  9542. + do
  9543. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9544. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9545. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9546. +$as_echo_n "checking for $ac_word... " >&6; }
  9547. +if test "${ac_cv_prog_CC+set}" = set; then :
  9548. + $as_echo_n "(cached) " >&6
  9549. +else
  9550. + if test -n "$CC"; then
  9551. + ac_cv_prog_CC="$CC" # Let the user override the test.
  9552. +else
  9553. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9554. +for as_dir in $PATH
  9555. +do
  9556. + IFS=$as_save_IFS
  9557. + test -z "$as_dir" && as_dir=.
  9558. + for ac_exec_ext in '' $ac_executable_extensions; do
  9559. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9560. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9561. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9562. + break 2
  9563. + fi
  9564. +done
  9565. + done
  9566. +IFS=$as_save_IFS
  9567. +
  9568. +fi
  9569. +fi
  9570. +CC=$ac_cv_prog_CC
  9571. +if test -n "$CC"; then
  9572. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9573. +$as_echo "$CC" >&6; }
  9574. +else
  9575. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9576. +$as_echo "no" >&6; }
  9577. +fi
  9578. +
  9579. +
  9580. + test -n "$CC" && break
  9581. + done
  9582. +fi
  9583. +if test -z "$CC"; then
  9584. + ac_ct_CC=$CC
  9585. + for ac_prog in cl.exe
  9586. +do
  9587. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  9588. +set dummy $ac_prog; ac_word=$2
  9589. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9590. +$as_echo_n "checking for $ac_word... " >&6; }
  9591. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  9592. + $as_echo_n "(cached) " >&6
  9593. +else
  9594. + if test -n "$ac_ct_CC"; then
  9595. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9596. +else
  9597. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9598. +for as_dir in $PATH
  9599. +do
  9600. + IFS=$as_save_IFS
  9601. + test -z "$as_dir" && as_dir=.
  9602. + for ac_exec_ext in '' $ac_executable_extensions; do
  9603. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9604. + ac_cv_prog_ac_ct_CC="$ac_prog"
  9605. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9606. + break 2
  9607. + fi
  9608. +done
  9609. + done
  9610. +IFS=$as_save_IFS
  9611. +
  9612. +fi
  9613. +fi
  9614. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9615. +if test -n "$ac_ct_CC"; then
  9616. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9617. +$as_echo "$ac_ct_CC" >&6; }
  9618. +else
  9619. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9620. +$as_echo "no" >&6; }
  9621. +fi
  9622. +
  9623. +
  9624. + test -n "$ac_ct_CC" && break
  9625. +done
  9626. +
  9627. + if test "x$ac_ct_CC" = x; then
  9628. + CC=""
  9629. + else
  9630. + case $cross_compiling:$ac_tool_warned in
  9631. +yes:)
  9632. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9633. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9634. +ac_tool_warned=yes ;;
  9635. +esac
  9636. + CC=$ac_ct_CC
  9637. + fi
  9638. +fi
  9639. +
  9640. +fi
  9641. +
  9642. +
  9643. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9644. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9645. +as_fn_error "no acceptable C compiler found in \$PATH
  9646. +See \`config.log' for more details." "$LINENO" 5; }
  9647. +
  9648. +# Provide some information about the compiler.
  9649. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  9650. +set X $ac_compile
  9651. +ac_compiler=$2
  9652. +for ac_option in --version -v -V -qversion; do
  9653. + { { ac_try="$ac_compiler $ac_option >&5"
  9654. +case "(($ac_try" in
  9655. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9656. + *) ac_try_echo=$ac_try;;
  9657. +esac
  9658. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9659. +$as_echo "$ac_try_echo"; } >&5
  9660. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9661. + ac_status=$?
  9662. + if test -s conftest.err; then
  9663. + sed '10a\
  9664. +... rest of stderr output deleted ...
  9665. + 10q' conftest.err >conftest.er1
  9666. + cat conftest.er1 >&5
  9667. + fi
  9668. + rm -f conftest.er1 conftest.err
  9669. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9670. + test $ac_status = 0; }
  9671. +done
  9672. +
  9673. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  9674. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  9675. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  9676. + $as_echo_n "(cached) " >&6
  9677. +else
  9678. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9679. +/* end confdefs.h. */
  9680. +
  9681. +int
  9682. +main ()
  9683. +{
  9684. +#ifndef __GNUC__
  9685. + choke me
  9686. +#endif
  9687. +
  9688. + ;
  9689. + return 0;
  9690. +}
  9691. +_ACEOF
  9692. +if ac_fn_c_try_compile "$LINENO"; then :
  9693. + ac_compiler_gnu=yes
  9694. +else
  9695. + ac_compiler_gnu=no
  9696. +fi
  9697. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9698. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  9699. +
  9700. +fi
  9701. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  9702. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  9703. +if test $ac_compiler_gnu = yes; then
  9704. + GCC=yes
  9705. +else
  9706. + GCC=
  9707. +fi
  9708. +ac_test_CFLAGS=${CFLAGS+set}
  9709. +ac_save_CFLAGS=$CFLAGS
  9710. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  9711. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  9712. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  9713. + $as_echo_n "(cached) " >&6
  9714. +else
  9715. + ac_save_c_werror_flag=$ac_c_werror_flag
  9716. + ac_c_werror_flag=yes
  9717. + ac_cv_prog_cc_g=no
  9718. + CFLAGS="-g"
  9719. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9720. +/* end confdefs.h. */
  9721. +
  9722. +int
  9723. +main ()
  9724. +{
  9725. +
  9726. + ;
  9727. + return 0;
  9728. +}
  9729. +_ACEOF
  9730. +if ac_fn_c_try_compile "$LINENO"; then :
  9731. + ac_cv_prog_cc_g=yes
  9732. +else
  9733. + CFLAGS=""
  9734. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9735. +/* end confdefs.h. */
  9736. +
  9737. +int
  9738. +main ()
  9739. +{
  9740. +
  9741. + ;
  9742. + return 0;
  9743. +}
  9744. +_ACEOF
  9745. +if ac_fn_c_try_compile "$LINENO"; then :
  9746. +
  9747. +else
  9748. + ac_c_werror_flag=$ac_save_c_werror_flag
  9749. + CFLAGS="-g"
  9750. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9751. +/* end confdefs.h. */
  9752. +
  9753. +int
  9754. +main ()
  9755. +{
  9756. +
  9757. + ;
  9758. + return 0;
  9759. +}
  9760. +_ACEOF
  9761. +if ac_fn_c_try_compile "$LINENO"; then :
  9762. + ac_cv_prog_cc_g=yes
  9763. +fi
  9764. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9765. +fi
  9766. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9767. +fi
  9768. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9769. + ac_c_werror_flag=$ac_save_c_werror_flag
  9770. +fi
  9771. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  9772. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  9773. +if test "$ac_test_CFLAGS" = set; then
  9774. + CFLAGS=$ac_save_CFLAGS
  9775. +elif test $ac_cv_prog_cc_g = yes; then
  9776. + if test "$GCC" = yes; then
  9777. + CFLAGS="-g -O2"
  9778. + else
  9779. + CFLAGS="-g"
  9780. + fi
  9781. +else
  9782. + if test "$GCC" = yes; then
  9783. + CFLAGS="-O2"
  9784. + else
  9785. + CFLAGS=
  9786. + fi
  9787. +fi
  9788. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  9789. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  9790. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  9791. + $as_echo_n "(cached) " >&6
  9792. +else
  9793. + ac_cv_prog_cc_c89=no
  9794. +ac_save_CC=$CC
  9795. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9796. +/* end confdefs.h. */
  9797. +#include <stdarg.h>
  9798. +#include <stdio.h>
  9799. +#include <sys/types.h>
  9800. +#include <sys/stat.h>
  9801. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  9802. +struct buf { int x; };
  9803. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  9804. +static char *e (p, i)
  9805. + char **p;
  9806. + int i;
  9807. +{
  9808. + return p[i];
  9809. +}
  9810. +static char *f (char * (*g) (char **, int), char **p, ...)
  9811. +{
  9812. + char *s;
  9813. + va_list v;
  9814. + va_start (v,p);
  9815. + s = g (p, va_arg (v,int));
  9816. + va_end (v);
  9817. + return s;
  9818. +}
  9819. +
  9820. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  9821. + function prototypes and stuff, but not '\xHH' hex character constants.
  9822. + These don't provoke an error unfortunately, instead are silently treated
  9823. + as 'x'. The following induces an error, until -std is added to get
  9824. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  9825. + array size at least. It's necessary to write '\x00'==0 to get something
  9826. + that's true only with -std. */
  9827. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  9828. +
  9829. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  9830. + inside strings and character constants. */
  9831. +#define FOO(x) 'x'
  9832. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  9833. +
  9834. +int test (int i, double x);
  9835. +struct s1 {int (*f) (int a);};
  9836. +struct s2 {int (*f) (double a);};
  9837. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  9838. +int argc;
  9839. +char **argv;
  9840. +int
  9841. +main ()
  9842. +{
  9843. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  9844. + ;
  9845. + return 0;
  9846. +}
  9847. +_ACEOF
  9848. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  9849. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  9850. +do
  9851. + CC="$ac_save_CC $ac_arg"
  9852. + if ac_fn_c_try_compile "$LINENO"; then :
  9853. + ac_cv_prog_cc_c89=$ac_arg
  9854. +fi
  9855. +rm -f core conftest.err conftest.$ac_objext
  9856. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  9857. +done
  9858. +rm -f conftest.$ac_ext
  9859. +CC=$ac_save_CC
  9860. +
  9861. +fi
  9862. +# AC_CACHE_VAL
  9863. +case "x$ac_cv_prog_cc_c89" in
  9864. + x)
  9865. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  9866. +$as_echo "none needed" >&6; } ;;
  9867. + xno)
  9868. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  9869. +$as_echo "unsupported" >&6; } ;;
  9870. + *)
  9871. + CC="$CC $ac_cv_prog_cc_c89"
  9872. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  9873. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  9874. +esac
  9875. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  9876. +
  9877. +fi
  9878. +
  9879. +ac_ext=c
  9880. +ac_cpp='$CPP $CPPFLAGS'
  9881. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9882. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9883. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9884. +
  9885. +depcc="$CC" am_compiler_list=
  9886. +
  9887. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  9888. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  9889. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  9890. + $as_echo_n "(cached) " >&6
  9891. +else
  9892. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9893. + # We make a subdir and do the tests there. Otherwise we can end up
  9894. + # making bogus files that we don't know about and never remove. For
  9895. + # instance it was reported that on HP-UX the gcc test will end up
  9896. + # making a dummy file named `D' -- because `-MD' means `put the output
  9897. + # in D'.
  9898. + mkdir conftest.dir
  9899. + # Copy depcomp to subdir because otherwise we won't find it if we're
  9900. + # using a relative directory.
  9901. + cp "$am_depcomp" conftest.dir
  9902. + cd conftest.dir
  9903. + # We will build objects and dependencies in a subdirectory because
  9904. + # it helps to detect inapplicable dependency modes. For instance
  9905. + # both Tru64's cc and ICC support -MD to output dependencies as a
  9906. + # side effect of compilation, but ICC will put the dependencies in
  9907. + # the current directory while Tru64 will put them in the object
  9908. + # directory.
  9909. + mkdir sub
  9910. +
  9911. + am_cv_CC_dependencies_compiler_type=none
  9912. + if test "$am_compiler_list" = ""; then
  9913. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9914. + fi
  9915. + am__universal=false
  9916. + case " $depcc " in #(
  9917. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  9918. + esac
  9919. +
  9920. + for depmode in $am_compiler_list; do
  9921. + # Setup a source with many dependencies, because some compilers
  9922. + # like to wrap large dependency lists on column 80 (with \), and
  9923. + # we should not choose a depcomp mode which is confused by this.
  9924. + #
  9925. + # We need to recreate these files for each test, as the compiler may
  9926. + # overwrite some of them when testing with obscure command lines.
  9927. + # This happens at least with the AIX C compiler.
  9928. + : > sub/conftest.c
  9929. + for i in 1 2 3 4 5 6; do
  9930. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9931. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  9932. + # Solaris 8's {/usr,}/bin/sh.
  9933. + touch sub/conftst$i.h
  9934. + done
  9935. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9936. +
  9937. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  9938. + # mode. It turns out that the SunPro C++ compiler does not properly
  9939. + # handle `-M -o', and we need to detect this. Also, some Intel
  9940. + # versions had trouble with output in subdirs
  9941. + am__obj=sub/conftest.${OBJEXT-o}
  9942. + am__minus_obj="-o $am__obj"
  9943. + case $depmode in
  9944. + gcc)
  9945. + # This depmode causes a compiler race in universal mode.
  9946. + test "$am__universal" = false || continue
  9947. + ;;
  9948. + nosideeffect)
  9949. + # after this tag, mechanisms are not by side-effect, so they'll
  9950. + # only be used when explicitly requested
  9951. + if test "x$enable_dependency_tracking" = xyes; then
  9952. + continue
  9953. + else
  9954. + break
  9955. + fi
  9956. + ;;
  9957. + msvisualcpp | msvcmsys)
  9958. + # This compiler won't grok `-c -o', but also, the minuso test has
  9959. + # not run yet. These depmodes are late enough in the game, and
  9960. + # so weak that their functioning should not be impacted.
  9961. + am__obj=conftest.${OBJEXT-o}
  9962. + am__minus_obj=
  9963. + ;;
  9964. + none) break ;;
  9965. + esac
  9966. + if depmode=$depmode \
  9967. + source=sub/conftest.c object=$am__obj \
  9968. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9969. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  9970. + >/dev/null 2>conftest.err &&
  9971. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  9972. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9973. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  9974. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9975. + # icc doesn't choke on unknown options, it will just issue warnings
  9976. + # or remarks (even with -Werror). So we grep stderr for any message
  9977. + # that says an option was ignored or not supported.
  9978. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  9979. + # icc: Command line warning: ignoring option '-M'; no argument required
  9980. + # The diagnosis changed in icc 8.0:
  9981. + # icc: Command line remark: option '-MP' not supported
  9982. + if (grep 'ignoring option' conftest.err ||
  9983. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9984. + am_cv_CC_dependencies_compiler_type=$depmode
  9985. + break
  9986. + fi
  9987. + fi
  9988. + done
  9989. +
  9990. + cd ..
  9991. + rm -rf conftest.dir
  9992. +else
  9993. + am_cv_CC_dependencies_compiler_type=none
  9994. +fi
  9995. +
  9996. +fi
  9997. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  9998. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  9999. +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  10000. +
  10001. + if
  10002. + test "x$enable_dependency_tracking" != xno \
  10003. + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  10004. + am__fastdepCC_TRUE=
  10005. + am__fastdepCC_FALSE='#'
  10006. +else
  10007. + am__fastdepCC_TRUE='#'
  10008. + am__fastdepCC_FALSE=
  10009. +fi
  10010. +
  10011. +
  10012. +ac_ext=c
  10013. +ac_cpp='$CPP $CPPFLAGS'
  10014. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10015. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10016. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10017. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  10018. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  10019. +# On Suns, sometimes $CPP names a directory.
  10020. +if test -n "$CPP" && test -d "$CPP"; then
  10021. + CPP=
  10022. +fi
  10023. +if test -z "$CPP"; then
  10024. + if test "${ac_cv_prog_CPP+set}" = set; then :
  10025. + $as_echo_n "(cached) " >&6
  10026. +else
  10027. + # Double quotes because CPP needs to be expanded
  10028. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  10029. + do
  10030. + ac_preproc_ok=false
  10031. +for ac_c_preproc_warn_flag in '' yes
  10032. +do
  10033. + # Use a header file that comes with gcc, so configuring glibc
  10034. + # with a fresh cross-compiler works.
  10035. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10036. + # <limits.h> exists even on freestanding compilers.
  10037. + # On the NeXT, cc -E runs the code through the compiler's parser,
  10038. + # not just through cpp. "Syntax error" is here to catch this case.
  10039. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10040. +/* end confdefs.h. */
  10041. +#ifdef __STDC__
  10042. +# include <limits.h>
  10043. +#else
  10044. +# include <assert.h>
  10045. +#endif
  10046. + Syntax error
  10047. +_ACEOF
  10048. +if ac_fn_c_try_cpp "$LINENO"; then :
  10049. +
  10050. +else
  10051. + # Broken: fails on valid input.
  10052. +continue
  10053. +fi
  10054. +rm -f conftest.err conftest.$ac_ext
  10055. +
  10056. + # OK, works on sane cases. Now check whether nonexistent headers
  10057. + # can be detected and how.
  10058. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10059. +/* end confdefs.h. */
  10060. +#include <ac_nonexistent.h>
  10061. +_ACEOF
  10062. +if ac_fn_c_try_cpp "$LINENO"; then :
  10063. + # Broken: success on invalid input.
  10064. +continue
  10065. +else
  10066. + # Passes both tests.
  10067. +ac_preproc_ok=:
  10068. +break
  10069. +fi
  10070. +rm -f conftest.err conftest.$ac_ext
  10071. +
  10072. +done
  10073. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10074. +rm -f conftest.err conftest.$ac_ext
  10075. +if $ac_preproc_ok; then :
  10076. + break
  10077. +fi
  10078. +
  10079. + done
  10080. + ac_cv_prog_CPP=$CPP
  10081. +
  10082. +fi
  10083. + CPP=$ac_cv_prog_CPP
  10084. +else
  10085. + ac_cv_prog_CPP=$CPP
  10086. +fi
  10087. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  10088. +$as_echo "$CPP" >&6; }
  10089. +ac_preproc_ok=false
  10090. +for ac_c_preproc_warn_flag in '' yes
  10091. +do
  10092. + # Use a header file that comes with gcc, so configuring glibc
  10093. + # with a fresh cross-compiler works.
  10094. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10095. + # <limits.h> exists even on freestanding compilers.
  10096. + # On the NeXT, cc -E runs the code through the compiler's parser,
  10097. + # not just through cpp. "Syntax error" is here to catch this case.
  10098. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10099. +/* end confdefs.h. */
  10100. +#ifdef __STDC__
  10101. +# include <limits.h>
  10102. +#else
  10103. +# include <assert.h>
  10104. +#endif
  10105. + Syntax error
  10106. +_ACEOF
  10107. +if ac_fn_c_try_cpp "$LINENO"; then :
  10108. +
  10109. +else
  10110. + # Broken: fails on valid input.
  10111. +continue
  10112. +fi
  10113. +rm -f conftest.err conftest.$ac_ext
  10114. +
  10115. + # OK, works on sane cases. Now check whether nonexistent headers
  10116. + # can be detected and how.
  10117. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10118. +/* end confdefs.h. */
  10119. +#include <ac_nonexistent.h>
  10120. +_ACEOF
  10121. +if ac_fn_c_try_cpp "$LINENO"; then :
  10122. + # Broken: success on invalid input.
  10123. +continue
  10124. +else
  10125. + # Passes both tests.
  10126. +ac_preproc_ok=:
  10127. +break
  10128. +fi
  10129. +rm -f conftest.err conftest.$ac_ext
  10130. +
  10131. +done
  10132. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10133. +rm -f conftest.err conftest.$ac_ext
  10134. +if $ac_preproc_ok; then :
  10135. +
  10136. +else
  10137. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10138. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10139. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  10140. +See \`config.log' for more details." "$LINENO" 5; }
  10141. +fi
  10142. +
  10143. +ac_ext=c
  10144. +ac_cpp='$CPP $CPPFLAGS'
  10145. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10146. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10147. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10148. +
  10149. +
  10150. +
  10151. + bb_save_CFLAGS="$CFLAGS"
  10152. + CFLAGS="-fvisibility=hidden $bb_save_CFLAGS"
  10153. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports -fvisibility=hidden" >&5
  10154. +$as_echo_n "checking whether the C compiler supports -fvisibility=hidden... " >&6; }
  10155. +if test "${bb_cv_cc_supports_hidden_visibility+set}" = set; then :
  10156. + $as_echo_n "(cached) " >&6
  10157. +else
  10158. +
  10159. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10160. +/* end confdefs.h. */
  10161. +
  10162. +int
  10163. +main ()
  10164. +{
  10165. +
  10166. + ;
  10167. + return 0;
  10168. +}
  10169. +_ACEOF
  10170. +if ac_fn_c_try_compile "$LINENO"; then :
  10171. + bb_cv_cc_supports_hidden_visibility=yes
  10172. +else
  10173. + bb_cv_cc_supports_hidden_visibility=no
  10174. +fi
  10175. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10176. +
  10177. +fi
  10178. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bb_cv_cc_supports_hidden_visibility" >&5
  10179. +$as_echo "$bb_cv_cc_supports_hidden_visibility" >&6; }
  10180. + CFLAGS="$bb_save_CFLAGS"
  10181. + if test "x$bb_cv_cc_supports_hidden_visibility" != "xno"; then
  10182. + CFLAGS="-DGCC_HASCLASSVISIBILITY $CFLAGS"
  10183. + fi
  10184. +
  10185. +
  10186. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use -fvisibility=hidden" >&5
  10187. +$as_echo_n "checking whether to use -fvisibility=hidden... " >&6; }
  10188. +
  10189. +# Check whether --with-hidden_visibility was given.
  10190. +if test "${with_hidden_visibility+set}" = set; then :
  10191. + withval=$with_hidden_visibility; bb_with_hidden_visibility=$withval
  10192. +else
  10193. + bb_with_hidden_visibility=auto
  10194. +fi
  10195. +
  10196. +
  10197. + if test "x$bb_with_hidden_visibility" != "xno" && \
  10198. + test "x$bb_cv_cc_supports_hidden_visibility" != "xno"; then
  10199. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10200. +$as_echo "yes" >&6; }
  10201. + VIS_CFLAGS="-fvisibility=hidden"
  10202. + else
  10203. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10204. +$as_echo "no" >&6; }
  10205. + fi
  10206. +
  10207. +
  10208. +
  10209. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  10210. +$as_echo_n "checking whether ln -s works... " >&6; }
  10211. +LN_S=$as_ln_s
  10212. +if test "$LN_S" = "ln -s"; then
  10213. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10214. +$as_echo "yes" >&6; }
  10215. +else
  10216. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  10217. +$as_echo "no, using $LN_S" >&6; }
  10218. +fi
  10219. +
  10220. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  10221. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  10222. +set x ${MAKE-make}
  10223. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  10224. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  10225. + $as_echo_n "(cached) " >&6
  10226. +else
  10227. + cat >conftest.make <<\_ACEOF
  10228. +SHELL = /bin/sh
  10229. +all:
  10230. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  10231. +_ACEOF
  10232. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  10233. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  10234. + *@@@%%%=?*=@@@%%%*)
  10235. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  10236. + *)
  10237. + eval ac_cv_prog_make_${ac_make}_set=no;;
  10238. +esac
  10239. +rm -f conftest.make
  10240. +fi
  10241. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  10242. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10243. +$as_echo "yes" >&6; }
  10244. + SET_MAKE=
  10245. +else
  10246. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10247. +$as_echo "no" >&6; }
  10248. + SET_MAKE="MAKE=${MAKE-make}"
  10249. +fi
  10250. +
  10251. +# Check whether --enable-static was given.
  10252. +if test "${enable_static+set}" = set; then :
  10253. + enableval=$enable_static; p=${PACKAGE-default}
  10254. + case $enableval in
  10255. + yes) enable_static=yes ;;
  10256. + no) enable_static=no ;;
  10257. + *)
  10258. + enable_static=no
  10259. + # Look at the argument we got. We use all the common list separators.
  10260. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10261. + for pkg in $enableval; do
  10262. + IFS="$lt_save_ifs"
  10263. + if test "X$pkg" = "X$p"; then
  10264. + enable_static=yes
  10265. + fi
  10266. + done
  10267. + IFS="$lt_save_ifs"
  10268. + ;;
  10269. + esac
  10270. +else
  10271. + enable_static=no
  10272. +fi
  10273. +
  10274. +
  10275. +
  10276. +
  10277. +
  10278. +
  10279. +
  10280. +
  10281. +
  10282. +# Check whether --enable-shared was given.
  10283. +if test "${enable_shared+set}" = set; then :
  10284. + enableval=$enable_shared; p=${PACKAGE-default}
  10285. + case $enableval in
  10286. + yes) enable_shared=yes ;;
  10287. + no) enable_shared=no ;;
  10288. + *)
  10289. + enable_shared=no
  10290. + # Look at the argument we got. We use all the common list separators.
  10291. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10292. + for pkg in $enableval; do
  10293. + IFS="$lt_save_ifs"
  10294. + if test "X$pkg" = "X$p"; then
  10295. + enable_shared=yes
  10296. + fi
  10297. + done
  10298. + IFS="$lt_save_ifs"
  10299. + ;;
  10300. + esac
  10301. +else
  10302. + enable_shared=yes
  10303. +fi
  10304. +
  10305. +
  10306. +
  10307. +
  10308. +
  10309. +
  10310. +
  10311. +
  10312. +
  10313. +enable_dlopen=yes
  10314. +
  10315. +
  10316. +
  10317. +case `pwd` in
  10318. + *\ * | *\ *)
  10319. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  10320. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  10321. +esac
  10322. +
  10323. +
  10324. +
  10325. +macro_version='2.2.6b'
  10326. +macro_revision='1.3017'
  10327. +
  10328. +
  10329. +
  10330. +
  10331. +
  10332. +
  10333. +
  10334. +
  10335. +
  10336. +
  10337. +
  10338. +
  10339. +
  10340. +ltmain="$ac_aux_dir/ltmain.sh"
  10341. +
  10342. +# Make sure we can run config.sub.
  10343. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  10344. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  10345. +
  10346. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  10347. +$as_echo_n "checking build system type... " >&6; }
  10348. +if test "${ac_cv_build+set}" = set; then :
  10349. + $as_echo_n "(cached) " >&6
  10350. +else
  10351. + ac_build_alias=$build_alias
  10352. +test "x$ac_build_alias" = x &&
  10353. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  10354. +test "x$ac_build_alias" = x &&
  10355. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  10356. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  10357. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  10358. +
  10359. +fi
  10360. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  10361. +$as_echo "$ac_cv_build" >&6; }
  10362. +case $ac_cv_build in
  10363. +*-*-*) ;;
  10364. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  10365. +esac
  10366. +build=$ac_cv_build
  10367. +ac_save_IFS=$IFS; IFS='-'
  10368. +set x $ac_cv_build
  10369. +shift
  10370. +build_cpu=$1
  10371. +build_vendor=$2
  10372. +shift; shift
  10373. +# Remember, the first character of IFS is used to create $*,
  10374. +# except with old shells:
  10375. +build_os=$*
  10376. +IFS=$ac_save_IFS
  10377. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  10378. +
  10379. +
  10380. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  10381. +$as_echo_n "checking host system type... " >&6; }
  10382. +if test "${ac_cv_host+set}" = set; then :
  10383. + $as_echo_n "(cached) " >&6
  10384. +else
  10385. + if test "x$host_alias" = x; then
  10386. + ac_cv_host=$ac_cv_build
  10387. +else
  10388. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  10389. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  10390. +fi
  10391. +
  10392. +fi
  10393. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  10394. +$as_echo "$ac_cv_host" >&6; }
  10395. +case $ac_cv_host in
  10396. +*-*-*) ;;
  10397. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  10398. +esac
  10399. +host=$ac_cv_host
  10400. +ac_save_IFS=$IFS; IFS='-'
  10401. +set x $ac_cv_host
  10402. +shift
  10403. +host_cpu=$1
  10404. +host_vendor=$2
  10405. +shift; shift
  10406. +# Remember, the first character of IFS is used to create $*,
  10407. +# except with old shells:
  10408. +host_os=$*
  10409. +IFS=$ac_save_IFS
  10410. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  10411. +
  10412. +
  10413. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  10414. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  10415. +if test "${ac_cv_path_SED+set}" = set; then :
  10416. + $as_echo_n "(cached) " >&6
  10417. +else
  10418. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  10419. + for ac_i in 1 2 3 4 5 6 7; do
  10420. + ac_script="$ac_script$as_nl$ac_script"
  10421. + done
  10422. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  10423. + { ac_script=; unset ac_script;}
  10424. + if test -z "$SED"; then
  10425. + ac_path_SED_found=false
  10426. + # Loop through the user's path and test for each of PROGNAME-LIST
  10427. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10428. +for as_dir in $PATH
  10429. +do
  10430. + IFS=$as_save_IFS
  10431. + test -z "$as_dir" && as_dir=.
  10432. + for ac_prog in sed gsed; do
  10433. + for ac_exec_ext in '' $ac_executable_extensions; do
  10434. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  10435. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  10436. +# Check for GNU ac_path_SED and select it if it is found.
  10437. + # Check for GNU $ac_path_SED
  10438. +case `"$ac_path_SED" --version 2>&1` in
  10439. +*GNU*)
  10440. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  10441. +*)
  10442. + ac_count=0
  10443. + $as_echo_n 0123456789 >"conftest.in"
  10444. + while :
  10445. + do
  10446. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  10447. + mv "conftest.tmp" "conftest.in"
  10448. + cp "conftest.in" "conftest.nl"
  10449. + $as_echo '' >> "conftest.nl"
  10450. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  10451. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  10452. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  10453. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  10454. + # Best one so far, save it but keep looking for a better one
  10455. + ac_cv_path_SED="$ac_path_SED"
  10456. + ac_path_SED_max=$ac_count
  10457. + fi
  10458. + # 10*(2^10) chars as input seems more than enough
  10459. + test $ac_count -gt 10 && break
  10460. + done
  10461. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  10462. +esac
  10463. +
  10464. + $ac_path_SED_found && break 3
  10465. + done
  10466. + done
  10467. + done
  10468. +IFS=$as_save_IFS
  10469. + if test -z "$ac_cv_path_SED"; then
  10470. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  10471. + fi
  10472. +else
  10473. + ac_cv_path_SED=$SED
  10474. +fi
  10475. +
  10476. +fi
  10477. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  10478. +$as_echo "$ac_cv_path_SED" >&6; }
  10479. + SED="$ac_cv_path_SED"
  10480. + rm -f conftest.sed
  10481. +
  10482. +test -z "$SED" && SED=sed
  10483. +Xsed="$SED -e 1s/^X//"
  10484. +
  10485. +
  10486. +
  10487. +
  10488. +
  10489. +
  10490. +
  10491. +
  10492. +
  10493. +
  10494. +
  10495. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  10496. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  10497. +if test "${ac_cv_path_GREP+set}" = set; then :
  10498. + $as_echo_n "(cached) " >&6
  10499. +else
  10500. + if test -z "$GREP"; then
  10501. + ac_path_GREP_found=false
  10502. + # Loop through the user's path and test for each of PROGNAME-LIST
  10503. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10504. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  10505. +do
  10506. + IFS=$as_save_IFS
  10507. + test -z "$as_dir" && as_dir=.
  10508. + for ac_prog in grep ggrep; do
  10509. + for ac_exec_ext in '' $ac_executable_extensions; do
  10510. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  10511. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  10512. +# Check for GNU ac_path_GREP and select it if it is found.
  10513. + # Check for GNU $ac_path_GREP
  10514. +case `"$ac_path_GREP" --version 2>&1` in
  10515. +*GNU*)
  10516. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  10517. +*)
  10518. + ac_count=0
  10519. + $as_echo_n 0123456789 >"conftest.in"
  10520. + while :
  10521. + do
  10522. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  10523. + mv "conftest.tmp" "conftest.in"
  10524. + cp "conftest.in" "conftest.nl"
  10525. + $as_echo 'GREP' >> "conftest.nl"
  10526. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  10527. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  10528. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  10529. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  10530. + # Best one so far, save it but keep looking for a better one
  10531. + ac_cv_path_GREP="$ac_path_GREP"
  10532. + ac_path_GREP_max=$ac_count
  10533. + fi
  10534. + # 10*(2^10) chars as input seems more than enough
  10535. + test $ac_count -gt 10 && break
  10536. + done
  10537. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  10538. +esac
  10539. +
  10540. + $ac_path_GREP_found && break 3
  10541. + done
  10542. + done
  10543. + done
  10544. +IFS=$as_save_IFS
  10545. + if test -z "$ac_cv_path_GREP"; then
  10546. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  10547. + fi
  10548. +else
  10549. + ac_cv_path_GREP=$GREP
  10550. +fi
  10551. +
  10552. +fi
  10553. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  10554. +$as_echo "$ac_cv_path_GREP" >&6; }
  10555. + GREP="$ac_cv_path_GREP"
  10556. +
  10557. +
  10558. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  10559. +$as_echo_n "checking for egrep... " >&6; }
  10560. +if test "${ac_cv_path_EGREP+set}" = set; then :
  10561. + $as_echo_n "(cached) " >&6
  10562. +else
  10563. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  10564. + then ac_cv_path_EGREP="$GREP -E"
  10565. + else
  10566. + if test -z "$EGREP"; then
  10567. + ac_path_EGREP_found=false
  10568. + # Loop through the user's path and test for each of PROGNAME-LIST
  10569. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10570. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  10571. +do
  10572. + IFS=$as_save_IFS
  10573. + test -z "$as_dir" && as_dir=.
  10574. + for ac_prog in egrep; do
  10575. + for ac_exec_ext in '' $ac_executable_extensions; do
  10576. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  10577. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  10578. +# Check for GNU ac_path_EGREP and select it if it is found.
  10579. + # Check for GNU $ac_path_EGREP
  10580. +case `"$ac_path_EGREP" --version 2>&1` in
  10581. +*GNU*)
  10582. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  10583. +*)
  10584. + ac_count=0
  10585. + $as_echo_n 0123456789 >"conftest.in"
  10586. + while :
  10587. + do
  10588. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  10589. + mv "conftest.tmp" "conftest.in"
  10590. + cp "conftest.in" "conftest.nl"
  10591. + $as_echo 'EGREP' >> "conftest.nl"
  10592. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  10593. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  10594. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  10595. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  10596. + # Best one so far, save it but keep looking for a better one
  10597. + ac_cv_path_EGREP="$ac_path_EGREP"
  10598. + ac_path_EGREP_max=$ac_count
  10599. + fi
  10600. + # 10*(2^10) chars as input seems more than enough
  10601. + test $ac_count -gt 10 && break
  10602. + done
  10603. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  10604. +esac
  10605. +
  10606. + $ac_path_EGREP_found && break 3
  10607. + done
  10608. + done
  10609. + done
  10610. +IFS=$as_save_IFS
  10611. + if test -z "$ac_cv_path_EGREP"; then
  10612. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  10613. + fi
  10614. +else
  10615. + ac_cv_path_EGREP=$EGREP
  10616. +fi
  10617. +
  10618. + fi
  10619. +fi
  10620. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  10621. +$as_echo "$ac_cv_path_EGREP" >&6; }
  10622. + EGREP="$ac_cv_path_EGREP"
  10623. +
  10624. +
  10625. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  10626. +$as_echo_n "checking for fgrep... " >&6; }
  10627. +if test "${ac_cv_path_FGREP+set}" = set; then :
  10628. + $as_echo_n "(cached) " >&6
  10629. +else
  10630. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  10631. + then ac_cv_path_FGREP="$GREP -F"
  10632. + else
  10633. + if test -z "$FGREP"; then
  10634. + ac_path_FGREP_found=false
  10635. + # Loop through the user's path and test for each of PROGNAME-LIST
  10636. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10637. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  10638. +do
  10639. + IFS=$as_save_IFS
  10640. + test -z "$as_dir" && as_dir=.
  10641. + for ac_prog in fgrep; do
  10642. + for ac_exec_ext in '' $ac_executable_extensions; do
  10643. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  10644. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  10645. +# Check for GNU ac_path_FGREP and select it if it is found.
  10646. + # Check for GNU $ac_path_FGREP
  10647. +case `"$ac_path_FGREP" --version 2>&1` in
  10648. +*GNU*)
  10649. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  10650. +*)
  10651. + ac_count=0
  10652. + $as_echo_n 0123456789 >"conftest.in"
  10653. + while :
  10654. + do
  10655. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  10656. + mv "conftest.tmp" "conftest.in"
  10657. + cp "conftest.in" "conftest.nl"
  10658. + $as_echo 'FGREP' >> "conftest.nl"
  10659. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  10660. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  10661. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  10662. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  10663. + # Best one so far, save it but keep looking for a better one
  10664. + ac_cv_path_FGREP="$ac_path_FGREP"
  10665. + ac_path_FGREP_max=$ac_count
  10666. + fi
  10667. + # 10*(2^10) chars as input seems more than enough
  10668. + test $ac_count -gt 10 && break
  10669. + done
  10670. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  10671. +esac
  10672. +
  10673. + $ac_path_FGREP_found && break 3
  10674. + done
  10675. + done
  10676. + done
  10677. +IFS=$as_save_IFS
  10678. + if test -z "$ac_cv_path_FGREP"; then
  10679. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  10680. + fi
  10681. +else
  10682. + ac_cv_path_FGREP=$FGREP
  10683. +fi
  10684. +
  10685. + fi
  10686. +fi
  10687. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  10688. +$as_echo "$ac_cv_path_FGREP" >&6; }
  10689. + FGREP="$ac_cv_path_FGREP"
  10690. +
  10691. +
  10692. +test -z "$GREP" && GREP=grep
  10693. +
  10694. +
  10695. +
  10696. +
  10697. +
  10698. +
  10699. +
  10700. +
  10701. +
  10702. +
  10703. +
  10704. +
  10705. +
  10706. +
  10707. +
  10708. +
  10709. +
  10710. +
  10711. +
  10712. +# Check whether --with-gnu-ld was given.
  10713. +if test "${with_gnu_ld+set}" = set; then :
  10714. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10715. +else
  10716. + with_gnu_ld=no
  10717. +fi
  10718. +
  10719. +ac_prog=ld
  10720. +if test "$GCC" = yes; then
  10721. + # Check if gcc -print-prog-name=ld gives a path.
  10722. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10723. +$as_echo_n "checking for ld used by $CC... " >&6; }
  10724. + case $host in
  10725. + *-*-mingw*)
  10726. + # gcc leaves a trailing carriage return which upsets mingw
  10727. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10728. + *)
  10729. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10730. + esac
  10731. + case $ac_prog in
  10732. + # Accept absolute paths.
  10733. + [\\/]* | ?:[\\/]*)
  10734. + re_direlt='/[^/][^/]*/\.\./'
  10735. + # Canonicalize the pathname of ld
  10736. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10737. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10738. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10739. + done
  10740. + test -z "$LD" && LD="$ac_prog"
  10741. + ;;
  10742. + "")
  10743. + # If it fails, then pretend we aren't using GCC.
  10744. + ac_prog=ld
  10745. + ;;
  10746. + *)
  10747. + # If it is relative, then search for the first ld in PATH.
  10748. + with_gnu_ld=unknown
  10749. + ;;
  10750. + esac
  10751. +elif test "$with_gnu_ld" = yes; then
  10752. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10753. +$as_echo_n "checking for GNU ld... " >&6; }
  10754. +else
  10755. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10756. +$as_echo_n "checking for non-GNU ld... " >&6; }
  10757. +fi
  10758. +if test "${lt_cv_path_LD+set}" = set; then :
  10759. + $as_echo_n "(cached) " >&6
  10760. +else
  10761. + if test -z "$LD"; then
  10762. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10763. + for ac_dir in $PATH; do
  10764. + IFS="$lt_save_ifs"
  10765. + test -z "$ac_dir" && ac_dir=.
  10766. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10767. + lt_cv_path_LD="$ac_dir/$ac_prog"
  10768. + # Check to see if the program is GNU ld. I'd rather use --version,
  10769. + # but apparently some variants of GNU ld only accept -v.
  10770. + # Break only if it was the GNU/non-GNU ld that we prefer.
  10771. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10772. + *GNU* | *'with BFD'*)
  10773. + test "$with_gnu_ld" != no && break
  10774. + ;;
  10775. + *)
  10776. + test "$with_gnu_ld" != yes && break
  10777. + ;;
  10778. + esac
  10779. + fi
  10780. + done
  10781. + IFS="$lt_save_ifs"
  10782. +else
  10783. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10784. +fi
  10785. +fi
  10786. +
  10787. +LD="$lt_cv_path_LD"
  10788. +if test -n "$LD"; then
  10789. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10790. +$as_echo "$LD" >&6; }
  10791. +else
  10792. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10793. +$as_echo "no" >&6; }
  10794. +fi
  10795. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10796. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10797. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10798. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10799. + $as_echo_n "(cached) " >&6
  10800. +else
  10801. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10802. +case `$LD -v 2>&1 </dev/null` in
  10803. +*GNU* | *'with BFD'*)
  10804. + lt_cv_prog_gnu_ld=yes
  10805. + ;;
  10806. +*)
  10807. + lt_cv_prog_gnu_ld=no
  10808. + ;;
  10809. +esac
  10810. +fi
  10811. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10812. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10813. +with_gnu_ld=$lt_cv_prog_gnu_ld
  10814. +
  10815. +
  10816. +
  10817. +
  10818. +
  10819. +
  10820. +
  10821. +
  10822. +
  10823. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  10824. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  10825. +if test "${lt_cv_path_NM+set}" = set; then :
  10826. + $as_echo_n "(cached) " >&6
  10827. +else
  10828. + if test -n "$NM"; then
  10829. + # Let the user override the test.
  10830. + lt_cv_path_NM="$NM"
  10831. +else
  10832. + lt_nm_to_check="${ac_tool_prefix}nm"
  10833. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  10834. + lt_nm_to_check="$lt_nm_to_check nm"
  10835. + fi
  10836. + for lt_tmp_nm in $lt_nm_to_check; do
  10837. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10838. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  10839. + IFS="$lt_save_ifs"
  10840. + test -z "$ac_dir" && ac_dir=.
  10841. + tmp_nm="$ac_dir/$lt_tmp_nm"
  10842. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  10843. + # Check to see if the nm accepts a BSD-compat flag.
  10844. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  10845. + # nm: unknown option "B" ignored
  10846. + # Tru64's nm complains that /dev/null is an invalid object file
  10847. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  10848. + */dev/null* | *'Invalid file or object type'*)
  10849. + lt_cv_path_NM="$tmp_nm -B"
  10850. + break
  10851. + ;;
  10852. + *)
  10853. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  10854. + */dev/null*)
  10855. + lt_cv_path_NM="$tmp_nm -p"
  10856. + break
  10857. + ;;
  10858. + *)
  10859. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  10860. + continue # so that we can try to find one that supports BSD flags
  10861. + ;;
  10862. + esac
  10863. + ;;
  10864. + esac
  10865. + fi
  10866. + done
  10867. + IFS="$lt_save_ifs"
  10868. + done
  10869. + : ${lt_cv_path_NM=no}
  10870. +fi
  10871. +fi
  10872. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  10873. +$as_echo "$lt_cv_path_NM" >&6; }
  10874. +if test "$lt_cv_path_NM" != "no"; then
  10875. + NM="$lt_cv_path_NM"
  10876. +else
  10877. + # Didn't find any BSD compatible name lister, look for dumpbin.
  10878. + if test -n "$ac_tool_prefix"; then
  10879. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  10880. + do
  10881. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10882. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10883. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10884. +$as_echo_n "checking for $ac_word... " >&6; }
  10885. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  10886. + $as_echo_n "(cached) " >&6
  10887. +else
  10888. + if test -n "$DUMPBIN"; then
  10889. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  10890. +else
  10891. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10892. +for as_dir in $PATH
  10893. +do
  10894. + IFS=$as_save_IFS
  10895. + test -z "$as_dir" && as_dir=.
  10896. + for ac_exec_ext in '' $ac_executable_extensions; do
  10897. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10898. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  10899. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10900. + break 2
  10901. + fi
  10902. +done
  10903. + done
  10904. +IFS=$as_save_IFS
  10905. +
  10906. +fi
  10907. +fi
  10908. +DUMPBIN=$ac_cv_prog_DUMPBIN
  10909. +if test -n "$DUMPBIN"; then
  10910. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  10911. +$as_echo "$DUMPBIN" >&6; }
  10912. +else
  10913. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10914. +$as_echo "no" >&6; }
  10915. +fi
  10916. +
  10917. +
  10918. + test -n "$DUMPBIN" && break
  10919. + done
  10920. +fi
  10921. +if test -z "$DUMPBIN"; then
  10922. + ac_ct_DUMPBIN=$DUMPBIN
  10923. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  10924. +do
  10925. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  10926. +set dummy $ac_prog; ac_word=$2
  10927. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10928. +$as_echo_n "checking for $ac_word... " >&6; }
  10929. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  10930. + $as_echo_n "(cached) " >&6
  10931. +else
  10932. + if test -n "$ac_ct_DUMPBIN"; then
  10933. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  10934. +else
  10935. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10936. +for as_dir in $PATH
  10937. +do
  10938. + IFS=$as_save_IFS
  10939. + test -z "$as_dir" && as_dir=.
  10940. + for ac_exec_ext in '' $ac_executable_extensions; do
  10941. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10942. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  10943. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10944. + break 2
  10945. + fi
  10946. +done
  10947. + done
  10948. +IFS=$as_save_IFS
  10949. +
  10950. +fi
  10951. +fi
  10952. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  10953. +if test -n "$ac_ct_DUMPBIN"; then
  10954. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  10955. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  10956. +else
  10957. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10958. +$as_echo "no" >&6; }
  10959. +fi
  10960. +
  10961. +
  10962. + test -n "$ac_ct_DUMPBIN" && break
  10963. +done
  10964. +
  10965. + if test "x$ac_ct_DUMPBIN" = x; then
  10966. + DUMPBIN=":"
  10967. + else
  10968. + case $cross_compiling:$ac_tool_warned in
  10969. +yes:)
  10970. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10971. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10972. +ac_tool_warned=yes ;;
  10973. +esac
  10974. + DUMPBIN=$ac_ct_DUMPBIN
  10975. + fi
  10976. +fi
  10977. +
  10978. +
  10979. + if test "$DUMPBIN" != ":"; then
  10980. + NM="$DUMPBIN"
  10981. + fi
  10982. +fi
  10983. +test -z "$NM" && NM=nm
  10984. +
  10985. +
  10986. +
  10987. +
  10988. +
  10989. +
  10990. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  10991. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  10992. +if test "${lt_cv_nm_interface+set}" = set; then :
  10993. + $as_echo_n "(cached) " >&6
  10994. +else
  10995. + lt_cv_nm_interface="BSD nm"
  10996. + echo "int some_variable = 0;" > conftest.$ac_ext
  10997. + (eval echo "\"\$as_me:5438: $ac_compile\"" >&5)
  10998. + (eval "$ac_compile" 2>conftest.err)
  10999. + cat conftest.err >&5
  11000. + (eval echo "\"\$as_me:5441: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  11001. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  11002. + cat conftest.err >&5
  11003. + (eval echo "\"\$as_me:5444: output\"" >&5)
  11004. + cat conftest.out >&5
  11005. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  11006. + lt_cv_nm_interface="MS dumpbin"
  11007. + fi
  11008. + rm -f conftest*
  11009. +fi
  11010. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  11011. +$as_echo "$lt_cv_nm_interface" >&6; }
  11012. +
  11013. +# find the maximum length of command line arguments
  11014. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  11015. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  11016. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  11017. + $as_echo_n "(cached) " >&6
  11018. +else
  11019. + i=0
  11020. + teststring="ABCD"
  11021. +
  11022. + case $build_os in
  11023. + msdosdjgpp*)
  11024. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  11025. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  11026. + # during glob expansion). Even if it were fixed, the result of this
  11027. + # check would be larger than it should be.
  11028. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  11029. + ;;
  11030. +
  11031. + gnu*)
  11032. + # Under GNU Hurd, this test is not required because there is
  11033. + # no limit to the length of command line arguments.
  11034. + # Libtool will interpret -1 as no limit whatsoever
  11035. + lt_cv_sys_max_cmd_len=-1;
  11036. + ;;
  11037. +
  11038. + cygwin* | mingw* | cegcc*)
  11039. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  11040. + # about 5 minutes as the teststring grows exponentially.
  11041. + # Worse, since 9x/ME are not pre-emptively multitasking,
  11042. + # you end up with a "frozen" computer, even though with patience
  11043. + # the test eventually succeeds (with a max line length of 256k).
  11044. + # Instead, let's just punt: use the minimum linelength reported by
  11045. + # all of the supported platforms: 8192 (on NT/2K/XP).
  11046. + lt_cv_sys_max_cmd_len=8192;
  11047. + ;;
  11048. +
  11049. + amigaos*)
  11050. + # On AmigaOS with pdksh, this test takes hours, literally.
  11051. + # So we just punt and use a minimum line length of 8192.
  11052. + lt_cv_sys_max_cmd_len=8192;
  11053. + ;;
  11054. +
  11055. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  11056. + # This has been around since 386BSD, at least. Likely further.
  11057. + if test -x /sbin/sysctl; then
  11058. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  11059. + elif test -x /usr/sbin/sysctl; then
  11060. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  11061. + else
  11062. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  11063. + fi
  11064. + # And add a safety zone
  11065. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  11066. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  11067. + ;;
  11068. +
  11069. + interix*)
  11070. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  11071. + lt_cv_sys_max_cmd_len=196608
  11072. + ;;
  11073. +
  11074. + osf*)
  11075. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  11076. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  11077. + # nice to cause kernel panics so lets avoid the loop below.
  11078. + # First set a reasonable default.
  11079. + lt_cv_sys_max_cmd_len=16384
  11080. + #
  11081. + if test -x /sbin/sysconfig; then
  11082. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  11083. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  11084. + esac
  11085. + fi
  11086. + ;;
  11087. + sco3.2v5*)
  11088. + lt_cv_sys_max_cmd_len=102400
  11089. + ;;
  11090. + sysv5* | sco5v6* | sysv4.2uw2*)
  11091. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  11092. + if test -n "$kargmax"; then
  11093. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  11094. + else
  11095. + lt_cv_sys_max_cmd_len=32768
  11096. + fi
  11097. + ;;
  11098. + *)
  11099. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  11100. + if test -n "$lt_cv_sys_max_cmd_len"; then
  11101. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  11102. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  11103. + else
  11104. + # Make teststring a little bigger before we do anything with it.
  11105. + # a 1K string should be a reasonable start.
  11106. + for i in 1 2 3 4 5 6 7 8 ; do
  11107. + teststring=$teststring$teststring
  11108. + done
  11109. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  11110. + # If test is not a shell built-in, we'll probably end up computing a
  11111. + # maximum length that is only half of the actual maximum length, but
  11112. + # we can't tell.
  11113. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  11114. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  11115. + test $i != 17 # 1/2 MB should be enough
  11116. + do
  11117. + i=`expr $i + 1`
  11118. + teststring=$teststring$teststring
  11119. + done
  11120. + # Only check the string length outside the loop.
  11121. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  11122. + teststring=
  11123. + # Add a significant safety factor because C++ compilers can tack on
  11124. + # massive amounts of additional arguments before passing them to the
  11125. + # linker. It appears as though 1/2 is a usable value.
  11126. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  11127. + fi
  11128. + ;;
  11129. + esac
  11130. +
  11131. +fi
  11132. +
  11133. +if test -n $lt_cv_sys_max_cmd_len ; then
  11134. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  11135. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  11136. +else
  11137. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  11138. +$as_echo "none" >&6; }
  11139. +fi
  11140. +max_cmd_len=$lt_cv_sys_max_cmd_len
  11141. +
  11142. +
  11143. +
  11144. +
  11145. +
  11146. +
  11147. +: ${CP="cp -f"}
  11148. +: ${MV="mv -f"}
  11149. +: ${RM="rm -f"}
  11150. +
  11151. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  11152. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  11153. +# Try some XSI features
  11154. +xsi_shell=no
  11155. +( _lt_dummy="a/b/c"
  11156. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  11157. + = c,a/b,, \
  11158. + && eval 'test $(( 1 + 1 )) -eq 2 \
  11159. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  11160. + && xsi_shell=yes
  11161. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  11162. +$as_echo "$xsi_shell" >&6; }
  11163. +
  11164. +
  11165. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  11166. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  11167. +lt_shell_append=no
  11168. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  11169. + >/dev/null 2>&1 \
  11170. + && lt_shell_append=yes
  11171. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  11172. +$as_echo "$lt_shell_append" >&6; }
  11173. +
  11174. +
  11175. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11176. + lt_unset=unset
  11177. +else
  11178. + lt_unset=false
  11179. +fi
  11180. +
  11181. +
  11182. +
  11183. +
  11184. +
  11185. +# test EBCDIC or ASCII
  11186. +case `echo X|tr X '\101'` in
  11187. + A) # ASCII based system
  11188. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  11189. + lt_SP2NL='tr \040 \012'
  11190. + lt_NL2SP='tr \015\012 \040\040'
  11191. + ;;
  11192. + *) # EBCDIC based system
  11193. + lt_SP2NL='tr \100 \n'
  11194. + lt_NL2SP='tr \r\n \100\100'
  11195. + ;;
  11196. +esac
  11197. +
  11198. +
  11199. +
  11200. +
  11201. +
  11202. +
  11203. +
  11204. +
  11205. +
  11206. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  11207. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  11208. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  11209. + $as_echo_n "(cached) " >&6
  11210. +else
  11211. + lt_cv_ld_reload_flag='-r'
  11212. +fi
  11213. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  11214. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  11215. +reload_flag=$lt_cv_ld_reload_flag
  11216. +case $reload_flag in
  11217. +"" | " "*) ;;
  11218. +*) reload_flag=" $reload_flag" ;;
  11219. +esac
  11220. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  11221. +case $host_os in
  11222. + darwin*)
  11223. + if test "$GCC" = yes; then
  11224. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  11225. + else
  11226. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  11227. + fi
  11228. + ;;
  11229. +esac
  11230. +
  11231. +
  11232. +
  11233. +
  11234. +
  11235. +
  11236. +
  11237. +
  11238. +
  11239. +if test -n "$ac_tool_prefix"; then
  11240. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  11241. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  11242. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11243. +$as_echo_n "checking for $ac_word... " >&6; }
  11244. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  11245. + $as_echo_n "(cached) " >&6
  11246. +else
  11247. + if test -n "$OBJDUMP"; then
  11248. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  11249. +else
  11250. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11251. +for as_dir in $PATH
  11252. +do
  11253. + IFS=$as_save_IFS
  11254. + test -z "$as_dir" && as_dir=.
  11255. + for ac_exec_ext in '' $ac_executable_extensions; do
  11256. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11257. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  11258. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11259. + break 2
  11260. + fi
  11261. +done
  11262. + done
  11263. +IFS=$as_save_IFS
  11264. +
  11265. +fi
  11266. +fi
  11267. +OBJDUMP=$ac_cv_prog_OBJDUMP
  11268. +if test -n "$OBJDUMP"; then
  11269. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  11270. +$as_echo "$OBJDUMP" >&6; }
  11271. +else
  11272. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11273. +$as_echo "no" >&6; }
  11274. +fi
  11275. +
  11276. +
  11277. +fi
  11278. +if test -z "$ac_cv_prog_OBJDUMP"; then
  11279. + ac_ct_OBJDUMP=$OBJDUMP
  11280. + # Extract the first word of "objdump", so it can be a program name with args.
  11281. +set dummy objdump; ac_word=$2
  11282. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11283. +$as_echo_n "checking for $ac_word... " >&6; }
  11284. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  11285. + $as_echo_n "(cached) " >&6
  11286. +else
  11287. + if test -n "$ac_ct_OBJDUMP"; then
  11288. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  11289. +else
  11290. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11291. +for as_dir in $PATH
  11292. +do
  11293. + IFS=$as_save_IFS
  11294. + test -z "$as_dir" && as_dir=.
  11295. + for ac_exec_ext in '' $ac_executable_extensions; do
  11296. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11297. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  11298. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11299. + break 2
  11300. + fi
  11301. +done
  11302. + done
  11303. +IFS=$as_save_IFS
  11304. +
  11305. +fi
  11306. +fi
  11307. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  11308. +if test -n "$ac_ct_OBJDUMP"; then
  11309. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  11310. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  11311. +else
  11312. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11313. +$as_echo "no" >&6; }
  11314. +fi
  11315. +
  11316. + if test "x$ac_ct_OBJDUMP" = x; then
  11317. + OBJDUMP="false"
  11318. + else
  11319. + case $cross_compiling:$ac_tool_warned in
  11320. +yes:)
  11321. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11322. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11323. +ac_tool_warned=yes ;;
  11324. +esac
  11325. + OBJDUMP=$ac_ct_OBJDUMP
  11326. + fi
  11327. +else
  11328. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  11329. +fi
  11330. +
  11331. +test -z "$OBJDUMP" && OBJDUMP=objdump
  11332. +
  11333. +
  11334. +
  11335. +
  11336. +
  11337. +
  11338. +
  11339. +
  11340. +
  11341. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  11342. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  11343. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  11344. + $as_echo_n "(cached) " >&6
  11345. +else
  11346. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  11347. +lt_cv_file_magic_test_file=
  11348. +lt_cv_deplibs_check_method='unknown'
  11349. +# Need to set the preceding variable on all platforms that support
  11350. +# interlibrary dependencies.
  11351. +# 'none' -- dependencies not supported.
  11352. +# `unknown' -- same as none, but documents that we really don't know.
  11353. +# 'pass_all' -- all dependencies passed with no checks.
  11354. +# 'test_compile' -- check by making test program.
  11355. +# 'file_magic [[regex]]' -- check by looking for files in library path
  11356. +# which responds to the $file_magic_cmd with a given extended regex.
  11357. +# If you have `file' or equivalent on your system and you're not sure
  11358. +# whether `pass_all' will *always* work, you probably want this one.
  11359. +
  11360. +case $host_os in
  11361. +aix[4-9]*)
  11362. + lt_cv_deplibs_check_method=pass_all
  11363. + ;;
  11364. +
  11365. +beos*)
  11366. + lt_cv_deplibs_check_method=pass_all
  11367. + ;;
  11368. +
  11369. +bsdi[45]*)
  11370. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  11371. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  11372. + lt_cv_file_magic_test_file=/shlib/libc.so
  11373. + ;;
  11374. +
  11375. +cygwin*)
  11376. + # func_win32_libid is a shell function defined in ltmain.sh
  11377. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  11378. + lt_cv_file_magic_cmd='func_win32_libid'
  11379. + ;;
  11380. +
  11381. +mingw* | pw32*)
  11382. + # Base MSYS/MinGW do not provide the 'file' command needed by
  11383. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  11384. + # unless we find 'file', for example because we are cross-compiling.
  11385. + if ( file / ) >/dev/null 2>&1; then
  11386. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  11387. + lt_cv_file_magic_cmd='func_win32_libid'
  11388. + else
  11389. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  11390. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  11391. + fi
  11392. + ;;
  11393. +
  11394. +cegcc)
  11395. + # use the weaker test based on 'objdump'. See mingw*.
  11396. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  11397. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  11398. + ;;
  11399. +
  11400. +darwin* | rhapsody*)
  11401. + lt_cv_deplibs_check_method=pass_all
  11402. + ;;
  11403. +
  11404. +freebsd* | dragonfly*)
  11405. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  11406. + case $host_cpu in
  11407. + i*86 )
  11408. + # Not sure whether the presence of OpenBSD here was a mistake.
  11409. + # Let's accept both of them until this is cleared up.
  11410. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  11411. + lt_cv_file_magic_cmd=/usr/bin/file
  11412. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  11413. + ;;
  11414. + esac
  11415. + else
  11416. + lt_cv_deplibs_check_method=pass_all
  11417. + fi
  11418. + ;;
  11419. +
  11420. +gnu*)
  11421. + lt_cv_deplibs_check_method=pass_all
  11422. + ;;
  11423. +
  11424. +hpux10.20* | hpux11*)
  11425. + lt_cv_file_magic_cmd=/usr/bin/file
  11426. + case $host_cpu in
  11427. + ia64*)
  11428. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  11429. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  11430. + ;;
  11431. + hppa*64*)
  11432. + 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]'
  11433. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  11434. + ;;
  11435. + *)
  11436. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  11437. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  11438. + ;;
  11439. + esac
  11440. + ;;
  11441. +
  11442. +interix[3-9]*)
  11443. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  11444. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  11445. + ;;
  11446. +
  11447. +irix5* | irix6* | nonstopux*)
  11448. + case $LD in
  11449. + *-32|*"-32 ") libmagic=32-bit;;
  11450. + *-n32|*"-n32 ") libmagic=N32;;
  11451. + *-64|*"-64 ") libmagic=64-bit;;
  11452. + *) libmagic=never-match;;
  11453. + esac
  11454. + lt_cv_deplibs_check_method=pass_all
  11455. + ;;
  11456. +
  11457. +# This must be Linux ELF.
  11458. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11459. + lt_cv_deplibs_check_method=pass_all
  11460. + ;;
  11461. +
  11462. +netbsd* | netbsdelf*-gnu)
  11463. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  11464. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  11465. + else
  11466. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  11467. + fi
  11468. + ;;
  11469. +
  11470. +newos6*)
  11471. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  11472. + lt_cv_file_magic_cmd=/usr/bin/file
  11473. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  11474. + ;;
  11475. +
  11476. +*nto* | *qnx*)
  11477. + lt_cv_deplibs_check_method=pass_all
  11478. + ;;
  11479. +
  11480. +openbsd*)
  11481. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11482. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  11483. + else
  11484. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  11485. + fi
  11486. + ;;
  11487. +
  11488. +osf3* | osf4* | osf5*)
  11489. + lt_cv_deplibs_check_method=pass_all
  11490. + ;;
  11491. +
  11492. +rdos*)
  11493. + lt_cv_deplibs_check_method=pass_all
  11494. + ;;
  11495. +
  11496. +solaris*)
  11497. + lt_cv_deplibs_check_method=pass_all
  11498. + ;;
  11499. +
  11500. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11501. + lt_cv_deplibs_check_method=pass_all
  11502. + ;;
  11503. +
  11504. +sysv4 | sysv4.3*)
  11505. + case $host_vendor in
  11506. + motorola)
  11507. + 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]'
  11508. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  11509. + ;;
  11510. + ncr)
  11511. + lt_cv_deplibs_check_method=pass_all
  11512. + ;;
  11513. + sequent)
  11514. + lt_cv_file_magic_cmd='/bin/file'
  11515. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  11516. + ;;
  11517. + sni)
  11518. + lt_cv_file_magic_cmd='/bin/file'
  11519. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  11520. + lt_cv_file_magic_test_file=/lib/libc.so
  11521. + ;;
  11522. + siemens)
  11523. + lt_cv_deplibs_check_method=pass_all
  11524. + ;;
  11525. + pc)
  11526. + lt_cv_deplibs_check_method=pass_all
  11527. + ;;
  11528. + esac
  11529. + ;;
  11530. +
  11531. +tpf*)
  11532. + lt_cv_deplibs_check_method=pass_all
  11533. + ;;
  11534. +esac
  11535. +
  11536. +fi
  11537. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  11538. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  11539. +file_magic_cmd=$lt_cv_file_magic_cmd
  11540. +deplibs_check_method=$lt_cv_deplibs_check_method
  11541. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  11542. +
  11543. +
  11544. +
  11545. +
  11546. +
  11547. +
  11548. +
  11549. +
  11550. +
  11551. +
  11552. +
  11553. +
  11554. +if test -n "$ac_tool_prefix"; then
  11555. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  11556. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  11557. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11558. +$as_echo_n "checking for $ac_word... " >&6; }
  11559. +if test "${ac_cv_prog_AR+set}" = set; then :
  11560. + $as_echo_n "(cached) " >&6
  11561. +else
  11562. + if test -n "$AR"; then
  11563. + ac_cv_prog_AR="$AR" # Let the user override the test.
  11564. +else
  11565. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11566. +for as_dir in $PATH
  11567. +do
  11568. + IFS=$as_save_IFS
  11569. + test -z "$as_dir" && as_dir=.
  11570. + for ac_exec_ext in '' $ac_executable_extensions; do
  11571. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11572. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  11573. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11574. + break 2
  11575. + fi
  11576. +done
  11577. + done
  11578. +IFS=$as_save_IFS
  11579. +
  11580. +fi
  11581. +fi
  11582. +AR=$ac_cv_prog_AR
  11583. +if test -n "$AR"; then
  11584. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  11585. +$as_echo "$AR" >&6; }
  11586. +else
  11587. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11588. +$as_echo "no" >&6; }
  11589. +fi
  11590. +
  11591. +
  11592. +fi
  11593. +if test -z "$ac_cv_prog_AR"; then
  11594. + ac_ct_AR=$AR
  11595. + # Extract the first word of "ar", so it can be a program name with args.
  11596. +set dummy ar; ac_word=$2
  11597. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11598. +$as_echo_n "checking for $ac_word... " >&6; }
  11599. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  11600. + $as_echo_n "(cached) " >&6
  11601. +else
  11602. + if test -n "$ac_ct_AR"; then
  11603. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  11604. +else
  11605. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11606. +for as_dir in $PATH
  11607. +do
  11608. + IFS=$as_save_IFS
  11609. + test -z "$as_dir" && as_dir=.
  11610. + for ac_exec_ext in '' $ac_executable_extensions; do
  11611. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11612. + ac_cv_prog_ac_ct_AR="ar"
  11613. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11614. + break 2
  11615. + fi
  11616. +done
  11617. + done
  11618. +IFS=$as_save_IFS
  11619. +
  11620. +fi
  11621. +fi
  11622. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  11623. +if test -n "$ac_ct_AR"; then
  11624. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  11625. +$as_echo "$ac_ct_AR" >&6; }
  11626. +else
  11627. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11628. +$as_echo "no" >&6; }
  11629. +fi
  11630. +
  11631. + if test "x$ac_ct_AR" = x; then
  11632. + AR="false"
  11633. + else
  11634. + case $cross_compiling:$ac_tool_warned in
  11635. +yes:)
  11636. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11637. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11638. +ac_tool_warned=yes ;;
  11639. +esac
  11640. + AR=$ac_ct_AR
  11641. + fi
  11642. +else
  11643. + AR="$ac_cv_prog_AR"
  11644. +fi
  11645. +
  11646. +test -z "$AR" && AR=ar
  11647. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  11648. +
  11649. +
  11650. +
  11651. +
  11652. +
  11653. +
  11654. +
  11655. +
  11656. +
  11657. +
  11658. +
  11659. +if test -n "$ac_tool_prefix"; then
  11660. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  11661. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  11662. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11663. +$as_echo_n "checking for $ac_word... " >&6; }
  11664. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  11665. + $as_echo_n "(cached) " >&6
  11666. +else
  11667. + if test -n "$STRIP"; then
  11668. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  11669. +else
  11670. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11671. +for as_dir in $PATH
  11672. +do
  11673. + IFS=$as_save_IFS
  11674. + test -z "$as_dir" && as_dir=.
  11675. + for ac_exec_ext in '' $ac_executable_extensions; do
  11676. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11677. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  11678. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11679. + break 2
  11680. + fi
  11681. +done
  11682. + done
  11683. +IFS=$as_save_IFS
  11684. +
  11685. +fi
  11686. +fi
  11687. +STRIP=$ac_cv_prog_STRIP
  11688. +if test -n "$STRIP"; then
  11689. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  11690. +$as_echo "$STRIP" >&6; }
  11691. +else
  11692. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11693. +$as_echo "no" >&6; }
  11694. +fi
  11695. +
  11696. +
  11697. +fi
  11698. +if test -z "$ac_cv_prog_STRIP"; then
  11699. + ac_ct_STRIP=$STRIP
  11700. + # Extract the first word of "strip", so it can be a program name with args.
  11701. +set dummy strip; ac_word=$2
  11702. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11703. +$as_echo_n "checking for $ac_word... " >&6; }
  11704. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  11705. + $as_echo_n "(cached) " >&6
  11706. +else
  11707. + if test -n "$ac_ct_STRIP"; then
  11708. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  11709. +else
  11710. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11711. +for as_dir in $PATH
  11712. +do
  11713. + IFS=$as_save_IFS
  11714. + test -z "$as_dir" && as_dir=.
  11715. + for ac_exec_ext in '' $ac_executable_extensions; do
  11716. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11717. + ac_cv_prog_ac_ct_STRIP="strip"
  11718. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11719. + break 2
  11720. + fi
  11721. +done
  11722. + done
  11723. +IFS=$as_save_IFS
  11724. +
  11725. +fi
  11726. +fi
  11727. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  11728. +if test -n "$ac_ct_STRIP"; then
  11729. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  11730. +$as_echo "$ac_ct_STRIP" >&6; }
  11731. +else
  11732. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11733. +$as_echo "no" >&6; }
  11734. +fi
  11735. +
  11736. + if test "x$ac_ct_STRIP" = x; then
  11737. + STRIP=":"
  11738. + else
  11739. + case $cross_compiling:$ac_tool_warned in
  11740. +yes:)
  11741. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11742. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11743. +ac_tool_warned=yes ;;
  11744. +esac
  11745. + STRIP=$ac_ct_STRIP
  11746. + fi
  11747. +else
  11748. + STRIP="$ac_cv_prog_STRIP"
  11749. +fi
  11750. +
  11751. +test -z "$STRIP" && STRIP=:
  11752. +
  11753. +
  11754. +
  11755. +
  11756. +
  11757. +
  11758. +if test -n "$ac_tool_prefix"; then
  11759. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  11760. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  11761. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11762. +$as_echo_n "checking for $ac_word... " >&6; }
  11763. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  11764. + $as_echo_n "(cached) " >&6
  11765. +else
  11766. + if test -n "$RANLIB"; then
  11767. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  11768. +else
  11769. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11770. +for as_dir in $PATH
  11771. +do
  11772. + IFS=$as_save_IFS
  11773. + test -z "$as_dir" && as_dir=.
  11774. + for ac_exec_ext in '' $ac_executable_extensions; do
  11775. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11776. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  11777. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11778. + break 2
  11779. + fi
  11780. +done
  11781. + done
  11782. +IFS=$as_save_IFS
  11783. +
  11784. +fi
  11785. +fi
  11786. +RANLIB=$ac_cv_prog_RANLIB
  11787. +if test -n "$RANLIB"; then
  11788. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  11789. +$as_echo "$RANLIB" >&6; }
  11790. +else
  11791. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11792. +$as_echo "no" >&6; }
  11793. +fi
  11794. +
  11795. +
  11796. +fi
  11797. +if test -z "$ac_cv_prog_RANLIB"; then
  11798. + ac_ct_RANLIB=$RANLIB
  11799. + # Extract the first word of "ranlib", so it can be a program name with args.
  11800. +set dummy ranlib; ac_word=$2
  11801. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11802. +$as_echo_n "checking for $ac_word... " >&6; }
  11803. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  11804. + $as_echo_n "(cached) " >&6
  11805. +else
  11806. + if test -n "$ac_ct_RANLIB"; then
  11807. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  11808. +else
  11809. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11810. +for as_dir in $PATH
  11811. +do
  11812. + IFS=$as_save_IFS
  11813. + test -z "$as_dir" && as_dir=.
  11814. + for ac_exec_ext in '' $ac_executable_extensions; do
  11815. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11816. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  11817. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11818. + break 2
  11819. + fi
  11820. +done
  11821. + done
  11822. +IFS=$as_save_IFS
  11823. +
  11824. +fi
  11825. +fi
  11826. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  11827. +if test -n "$ac_ct_RANLIB"; then
  11828. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  11829. +$as_echo "$ac_ct_RANLIB" >&6; }
  11830. +else
  11831. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11832. +$as_echo "no" >&6; }
  11833. +fi
  11834. +
  11835. + if test "x$ac_ct_RANLIB" = x; then
  11836. + RANLIB=":"
  11837. + else
  11838. + case $cross_compiling:$ac_tool_warned in
  11839. +yes:)
  11840. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11841. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11842. +ac_tool_warned=yes ;;
  11843. +esac
  11844. + RANLIB=$ac_ct_RANLIB
  11845. + fi
  11846. +else
  11847. + RANLIB="$ac_cv_prog_RANLIB"
  11848. +fi
  11849. +
  11850. +test -z "$RANLIB" && RANLIB=:
  11851. +
  11852. +
  11853. +
  11854. +
  11855. +
  11856. +
  11857. +# Determine commands to create old-style static archives.
  11858. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  11859. +old_postinstall_cmds='chmod 644 $oldlib'
  11860. +old_postuninstall_cmds=
  11861. +
  11862. +if test -n "$RANLIB"; then
  11863. + case $host_os in
  11864. + openbsd*)
  11865. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  11866. + ;;
  11867. + *)
  11868. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  11869. + ;;
  11870. + esac
  11871. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  11872. +fi
  11873. +
  11874. +
  11875. +
  11876. +
  11877. +
  11878. +
  11879. +
  11880. +
  11881. +
  11882. +
  11883. +
  11884. +
  11885. +
  11886. +
  11887. +
  11888. +
  11889. +
  11890. +
  11891. +
  11892. +
  11893. +
  11894. +
  11895. +
  11896. +
  11897. +
  11898. +
  11899. +
  11900. +
  11901. +
  11902. +
  11903. +
  11904. +
  11905. +
  11906. +
  11907. +# If no C compiler was specified, use CC.
  11908. +LTCC=${LTCC-"$CC"}
  11909. +
  11910. +# If no C compiler flags were specified, use CFLAGS.
  11911. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11912. +
  11913. +# Allow CC to be a program name with arguments.
  11914. +compiler=$CC
  11915. +
  11916. +
  11917. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  11918. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  11919. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  11920. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  11921. + $as_echo_n "(cached) " >&6
  11922. +else
  11923. +
  11924. +# These are sane defaults that work on at least a few old systems.
  11925. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  11926. +
  11927. +# Character class describing NM global symbol codes.
  11928. +symcode='[BCDEGRST]'
  11929. +
  11930. +# Regexp to match symbols that can be accessed directly from C.
  11931. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  11932. +
  11933. +# Define system-specific variables.
  11934. +case $host_os in
  11935. +aix*)
  11936. + symcode='[BCDT]'
  11937. + ;;
  11938. +cygwin* | mingw* | pw32* | cegcc*)
  11939. + symcode='[ABCDGISTW]'
  11940. + ;;
  11941. +hpux*)
  11942. + if test "$host_cpu" = ia64; then
  11943. + symcode='[ABCDEGRST]'
  11944. + fi
  11945. + ;;
  11946. +irix* | nonstopux*)
  11947. + symcode='[BCDEGRST]'
  11948. + ;;
  11949. +osf*)
  11950. + symcode='[BCDEGQRST]'
  11951. + ;;
  11952. +solaris*)
  11953. + symcode='[BDRT]'
  11954. + ;;
  11955. +sco3.2v5*)
  11956. + symcode='[DT]'
  11957. + ;;
  11958. +sysv4.2uw2*)
  11959. + symcode='[DT]'
  11960. + ;;
  11961. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  11962. + symcode='[ABDT]'
  11963. + ;;
  11964. +sysv4)
  11965. + symcode='[DFNSTU]'
  11966. + ;;
  11967. +esac
  11968. +
  11969. +# If we're using GNU nm, then use its standard symbol codes.
  11970. +case `$NM -V 2>&1` in
  11971. +*GNU* | *'with BFD'*)
  11972. + symcode='[ABCDGIRSTW]' ;;
  11973. +esac
  11974. +
  11975. +# Transform an extracted symbol line into a proper C declaration.
  11976. +# Some systems (esp. on ia64) link data and code symbols differently,
  11977. +# so use this general approach.
  11978. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  11979. +
  11980. +# Transform an extracted symbol line into symbol name and symbol address
  11981. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  11982. +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'"
  11983. +
  11984. +# Handle CRLF in mingw tool chain
  11985. +opt_cr=
  11986. +case $build_os in
  11987. +mingw*)
  11988. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  11989. + ;;
  11990. +esac
  11991. +
  11992. +# Try without a prefix underscore, then with it.
  11993. +for ac_symprfx in "" "_"; do
  11994. +
  11995. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  11996. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  11997. +
  11998. + # Write the raw and C identifiers.
  11999. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  12000. + # Fake it for dumpbin and say T for any non-static function
  12001. + # and D for any global variable.
  12002. + # Also find C++ and __fastcall symbols from MSVC++,
  12003. + # which start with @ or ?.
  12004. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  12005. +" {last_section=section; section=\$ 3};"\
  12006. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  12007. +" \$ 0!~/External *\|/{next};"\
  12008. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  12009. +" {if(hide[section]) next};"\
  12010. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  12011. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  12012. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  12013. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  12014. +" ' prfx=^$ac_symprfx"
  12015. + else
  12016. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  12017. + fi
  12018. +
  12019. + # Check to see that the pipe works correctly.
  12020. + pipe_works=no
  12021. +
  12022. + rm -f conftest*
  12023. + cat > conftest.$ac_ext <<_LT_EOF
  12024. +#ifdef __cplusplus
  12025. +extern "C" {
  12026. +#endif
  12027. +char nm_test_var;
  12028. +void nm_test_func(void);
  12029. +void nm_test_func(void){}
  12030. +#ifdef __cplusplus
  12031. +}
  12032. +#endif
  12033. +int main(){nm_test_var='a';nm_test_func();return(0);}
  12034. +_LT_EOF
  12035. +
  12036. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12037. + (eval $ac_compile) 2>&5
  12038. + ac_status=$?
  12039. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12040. + test $ac_status = 0; }; then
  12041. + # Now try to grab the symbols.
  12042. + nlist=conftest.nm
  12043. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  12044. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  12045. + ac_status=$?
  12046. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12047. + test $ac_status = 0; } && test -s "$nlist"; then
  12048. + # Try sorting and uniquifying the output.
  12049. + if sort "$nlist" | uniq > "$nlist"T; then
  12050. + mv -f "$nlist"T "$nlist"
  12051. + else
  12052. + rm -f "$nlist"T
  12053. + fi
  12054. +
  12055. + # Make sure that we snagged all the symbols we need.
  12056. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  12057. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  12058. + cat <<_LT_EOF > conftest.$ac_ext
  12059. +#ifdef __cplusplus
  12060. +extern "C" {
  12061. +#endif
  12062. +
  12063. +_LT_EOF
  12064. + # Now generate the symbol file.
  12065. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  12066. +
  12067. + cat <<_LT_EOF >> conftest.$ac_ext
  12068. +
  12069. +/* The mapping between symbol names and symbols. */
  12070. +const struct {
  12071. + const char *name;
  12072. + void *address;
  12073. +}
  12074. +lt__PROGRAM__LTX_preloaded_symbols[] =
  12075. +{
  12076. + { "@PROGRAM@", (void *) 0 },
  12077. +_LT_EOF
  12078. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  12079. + cat <<\_LT_EOF >> conftest.$ac_ext
  12080. + {0, (void *) 0}
  12081. +};
  12082. +
  12083. +/* This works around a problem in FreeBSD linker */
  12084. +#ifdef FREEBSD_WORKAROUND
  12085. +static const void *lt_preloaded_setup() {
  12086. + return lt__PROGRAM__LTX_preloaded_symbols;
  12087. +}
  12088. +#endif
  12089. +
  12090. +#ifdef __cplusplus
  12091. +}
  12092. +#endif
  12093. +_LT_EOF
  12094. + # Now try linking the two files.
  12095. + mv conftest.$ac_objext conftstm.$ac_objext
  12096. + lt_save_LIBS="$LIBS"
  12097. + lt_save_CFLAGS="$CFLAGS"
  12098. + LIBS="conftstm.$ac_objext"
  12099. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  12100. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12101. + (eval $ac_link) 2>&5
  12102. + ac_status=$?
  12103. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12104. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  12105. + pipe_works=yes
  12106. + fi
  12107. + LIBS="$lt_save_LIBS"
  12108. + CFLAGS="$lt_save_CFLAGS"
  12109. + else
  12110. + echo "cannot find nm_test_func in $nlist" >&5
  12111. + fi
  12112. + else
  12113. + echo "cannot find nm_test_var in $nlist" >&5
  12114. + fi
  12115. + else
  12116. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  12117. + fi
  12118. + else
  12119. + echo "$progname: failed program was:" >&5
  12120. + cat conftest.$ac_ext >&5
  12121. + fi
  12122. + rm -rf conftest* conftst*
  12123. +
  12124. + # Do not use the global_symbol_pipe unless it works.
  12125. + if test "$pipe_works" = yes; then
  12126. + break
  12127. + else
  12128. + lt_cv_sys_global_symbol_pipe=
  12129. + fi
  12130. +done
  12131. +
  12132. +fi
  12133. +
  12134. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  12135. + lt_cv_sys_global_symbol_to_cdecl=
  12136. +fi
  12137. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  12138. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  12139. +$as_echo "failed" >&6; }
  12140. +else
  12141. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  12142. +$as_echo "ok" >&6; }
  12143. +fi
  12144. +
  12145. +
  12146. +
  12147. +
  12148. +
  12149. +
  12150. +
  12151. +
  12152. +
  12153. +
  12154. +
  12155. +
  12156. +
  12157. +
  12158. +
  12159. +
  12160. +
  12161. +
  12162. +
  12163. +
  12164. +
  12165. +
  12166. +# Check whether --enable-libtool-lock was given.
  12167. +if test "${enable_libtool_lock+set}" = set; then :
  12168. + enableval=$enable_libtool_lock;
  12169. +fi
  12170. +
  12171. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  12172. +
  12173. +# Some flags need to be propagated to the compiler or linker for good
  12174. +# libtool support.
  12175. +case $host in
  12176. +ia64-*-hpux*)
  12177. + # Find out which ABI we are using.
  12178. + echo 'int i;' > conftest.$ac_ext
  12179. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12180. + (eval $ac_compile) 2>&5
  12181. + ac_status=$?
  12182. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12183. + test $ac_status = 0; }; then
  12184. + case `/usr/bin/file conftest.$ac_objext` in
  12185. + *ELF-32*)
  12186. + HPUX_IA64_MODE="32"
  12187. + ;;
  12188. + *ELF-64*)
  12189. + HPUX_IA64_MODE="64"
  12190. + ;;
  12191. + esac
  12192. + fi
  12193. + rm -rf conftest*
  12194. + ;;
  12195. +*-*-irix6*)
  12196. + # Find out which ABI we are using.
  12197. + echo '#line 6638 "configure"' > conftest.$ac_ext
  12198. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12199. + (eval $ac_compile) 2>&5
  12200. + ac_status=$?
  12201. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12202. + test $ac_status = 0; }; then
  12203. + if test "$lt_cv_prog_gnu_ld" = yes; then
  12204. + case `/usr/bin/file conftest.$ac_objext` in
  12205. + *32-bit*)
  12206. + LD="${LD-ld} -melf32bsmip"
  12207. + ;;
  12208. + *N32*)
  12209. + LD="${LD-ld} -melf32bmipn32"
  12210. + ;;
  12211. + *64-bit*)
  12212. + LD="${LD-ld} -melf64bmip"
  12213. + ;;
  12214. + esac
  12215. + else
  12216. + case `/usr/bin/file conftest.$ac_objext` in
  12217. + *32-bit*)
  12218. + LD="${LD-ld} -32"
  12219. + ;;
  12220. + *N32*)
  12221. + LD="${LD-ld} -n32"
  12222. + ;;
  12223. + *64-bit*)
  12224. + LD="${LD-ld} -64"
  12225. + ;;
  12226. + esac
  12227. + fi
  12228. + fi
  12229. + rm -rf conftest*
  12230. + ;;
  12231. +
  12232. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  12233. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  12234. + # Find out which ABI we are using.
  12235. + echo 'int i;' > conftest.$ac_ext
  12236. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12237. + (eval $ac_compile) 2>&5
  12238. + ac_status=$?
  12239. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12240. + test $ac_status = 0; }; then
  12241. + case `/usr/bin/file conftest.o` in
  12242. + *32-bit*)
  12243. + case $host in
  12244. + x86_64-*kfreebsd*-gnu)
  12245. + LD="${LD-ld} -m elf_i386_fbsd"
  12246. + ;;
  12247. + x86_64-*linux*)
  12248. + LD="${LD-ld} -m elf_i386"
  12249. + ;;
  12250. + ppc64-*linux*|powerpc64-*linux*)
  12251. + LD="${LD-ld} -m elf32ppclinux"
  12252. + ;;
  12253. + s390x-*linux*)
  12254. + LD="${LD-ld} -m elf_s390"
  12255. + ;;
  12256. + sparc64-*linux*)
  12257. + LD="${LD-ld} -m elf32_sparc"
  12258. + ;;
  12259. + esac
  12260. + ;;
  12261. + *64-bit*)
  12262. + case $host in
  12263. + x86_64-*kfreebsd*-gnu)
  12264. + LD="${LD-ld} -m elf_x86_64_fbsd"
  12265. + ;;
  12266. + x86_64-*linux*)
  12267. + LD="${LD-ld} -m elf_x86_64"
  12268. + ;;
  12269. + ppc*-*linux*|powerpc*-*linux*)
  12270. + LD="${LD-ld} -m elf64ppc"
  12271. + ;;
  12272. + s390*-*linux*|s390*-*tpf*)
  12273. + LD="${LD-ld} -m elf64_s390"
  12274. + ;;
  12275. + sparc*-*linux*)
  12276. + LD="${LD-ld} -m elf64_sparc"
  12277. + ;;
  12278. + esac
  12279. + ;;
  12280. + esac
  12281. + fi
  12282. + rm -rf conftest*
  12283. + ;;
  12284. +
  12285. +*-*-sco3.2v5*)
  12286. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  12287. + SAVE_CFLAGS="$CFLAGS"
  12288. + CFLAGS="$CFLAGS -belf"
  12289. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  12290. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  12291. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  12292. + $as_echo_n "(cached) " >&6
  12293. +else
  12294. + ac_ext=c
  12295. +ac_cpp='$CPP $CPPFLAGS'
  12296. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12297. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12298. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12299. +
  12300. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12301. +/* end confdefs.h. */
  12302. +
  12303. +int
  12304. +main ()
  12305. +{
  12306. +
  12307. + ;
  12308. + return 0;
  12309. +}
  12310. +_ACEOF
  12311. +if ac_fn_c_try_link "$LINENO"; then :
  12312. + lt_cv_cc_needs_belf=yes
  12313. +else
  12314. + lt_cv_cc_needs_belf=no
  12315. +fi
  12316. +rm -f core conftest.err conftest.$ac_objext \
  12317. + conftest$ac_exeext conftest.$ac_ext
  12318. + ac_ext=c
  12319. +ac_cpp='$CPP $CPPFLAGS'
  12320. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12321. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12322. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12323. +
  12324. +fi
  12325. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  12326. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  12327. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  12328. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  12329. + CFLAGS="$SAVE_CFLAGS"
  12330. + fi
  12331. + ;;
  12332. +sparc*-*solaris*)
  12333. + # Find out which ABI we are using.
  12334. + echo 'int i;' > conftest.$ac_ext
  12335. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12336. + (eval $ac_compile) 2>&5
  12337. + ac_status=$?
  12338. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12339. + test $ac_status = 0; }; then
  12340. + case `/usr/bin/file conftest.o` in
  12341. + *64-bit*)
  12342. + case $lt_cv_prog_gnu_ld in
  12343. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  12344. + *)
  12345. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  12346. + LD="${LD-ld} -64"
  12347. + fi
  12348. + ;;
  12349. + esac
  12350. + ;;
  12351. + esac
  12352. + fi
  12353. + rm -rf conftest*
  12354. + ;;
  12355. +esac
  12356. +
  12357. +need_locks="$enable_libtool_lock"
  12358. +
  12359. +
  12360. + case $host_os in
  12361. + rhapsody* | darwin*)
  12362. + if test -n "$ac_tool_prefix"; then
  12363. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  12364. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  12365. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12366. +$as_echo_n "checking for $ac_word... " >&6; }
  12367. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  12368. + $as_echo_n "(cached) " >&6
  12369. +else
  12370. + if test -n "$DSYMUTIL"; then
  12371. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  12372. +else
  12373. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12374. +for as_dir in $PATH
  12375. +do
  12376. + IFS=$as_save_IFS
  12377. + test -z "$as_dir" && as_dir=.
  12378. + for ac_exec_ext in '' $ac_executable_extensions; do
  12379. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12380. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  12381. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12382. + break 2
  12383. + fi
  12384. +done
  12385. + done
  12386. +IFS=$as_save_IFS
  12387. +
  12388. +fi
  12389. +fi
  12390. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  12391. +if test -n "$DSYMUTIL"; then
  12392. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  12393. +$as_echo "$DSYMUTIL" >&6; }
  12394. +else
  12395. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12396. +$as_echo "no" >&6; }
  12397. +fi
  12398. +
  12399. +
  12400. +fi
  12401. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  12402. + ac_ct_DSYMUTIL=$DSYMUTIL
  12403. + # Extract the first word of "dsymutil", so it can be a program name with args.
  12404. +set dummy dsymutil; ac_word=$2
  12405. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12406. +$as_echo_n "checking for $ac_word... " >&6; }
  12407. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  12408. + $as_echo_n "(cached) " >&6
  12409. +else
  12410. + if test -n "$ac_ct_DSYMUTIL"; then
  12411. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  12412. +else
  12413. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12414. +for as_dir in $PATH
  12415. +do
  12416. + IFS=$as_save_IFS
  12417. + test -z "$as_dir" && as_dir=.
  12418. + for ac_exec_ext in '' $ac_executable_extensions; do
  12419. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12420. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  12421. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12422. + break 2
  12423. + fi
  12424. +done
  12425. + done
  12426. +IFS=$as_save_IFS
  12427. +
  12428. +fi
  12429. +fi
  12430. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  12431. +if test -n "$ac_ct_DSYMUTIL"; then
  12432. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  12433. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  12434. +else
  12435. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12436. +$as_echo "no" >&6; }
  12437. +fi
  12438. +
  12439. + if test "x$ac_ct_DSYMUTIL" = x; then
  12440. + DSYMUTIL=":"
  12441. + else
  12442. + case $cross_compiling:$ac_tool_warned in
  12443. +yes:)
  12444. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12445. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12446. +ac_tool_warned=yes ;;
  12447. +esac
  12448. + DSYMUTIL=$ac_ct_DSYMUTIL
  12449. + fi
  12450. +else
  12451. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  12452. +fi
  12453. +
  12454. + if test -n "$ac_tool_prefix"; then
  12455. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  12456. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  12457. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12458. +$as_echo_n "checking for $ac_word... " >&6; }
  12459. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  12460. + $as_echo_n "(cached) " >&6
  12461. +else
  12462. + if test -n "$NMEDIT"; then
  12463. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  12464. +else
  12465. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12466. +for as_dir in $PATH
  12467. +do
  12468. + IFS=$as_save_IFS
  12469. + test -z "$as_dir" && as_dir=.
  12470. + for ac_exec_ext in '' $ac_executable_extensions; do
  12471. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12472. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  12473. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12474. + break 2
  12475. + fi
  12476. +done
  12477. + done
  12478. +IFS=$as_save_IFS
  12479. +
  12480. +fi
  12481. +fi
  12482. +NMEDIT=$ac_cv_prog_NMEDIT
  12483. +if test -n "$NMEDIT"; then
  12484. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  12485. +$as_echo "$NMEDIT" >&6; }
  12486. +else
  12487. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12488. +$as_echo "no" >&6; }
  12489. +fi
  12490. +
  12491. +
  12492. +fi
  12493. +if test -z "$ac_cv_prog_NMEDIT"; then
  12494. + ac_ct_NMEDIT=$NMEDIT
  12495. + # Extract the first word of "nmedit", so it can be a program name with args.
  12496. +set dummy nmedit; ac_word=$2
  12497. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12498. +$as_echo_n "checking for $ac_word... " >&6; }
  12499. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  12500. + $as_echo_n "(cached) " >&6
  12501. +else
  12502. + if test -n "$ac_ct_NMEDIT"; then
  12503. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  12504. +else
  12505. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12506. +for as_dir in $PATH
  12507. +do
  12508. + IFS=$as_save_IFS
  12509. + test -z "$as_dir" && as_dir=.
  12510. + for ac_exec_ext in '' $ac_executable_extensions; do
  12511. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12512. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  12513. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12514. + break 2
  12515. + fi
  12516. +done
  12517. + done
  12518. +IFS=$as_save_IFS
  12519. +
  12520. +fi
  12521. +fi
  12522. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  12523. +if test -n "$ac_ct_NMEDIT"; then
  12524. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  12525. +$as_echo "$ac_ct_NMEDIT" >&6; }
  12526. +else
  12527. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12528. +$as_echo "no" >&6; }
  12529. +fi
  12530. +
  12531. + if test "x$ac_ct_NMEDIT" = x; then
  12532. + NMEDIT=":"
  12533. + else
  12534. + case $cross_compiling:$ac_tool_warned in
  12535. +yes:)
  12536. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12537. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12538. +ac_tool_warned=yes ;;
  12539. +esac
  12540. + NMEDIT=$ac_ct_NMEDIT
  12541. + fi
  12542. +else
  12543. + NMEDIT="$ac_cv_prog_NMEDIT"
  12544. +fi
  12545. +
  12546. + if test -n "$ac_tool_prefix"; then
  12547. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  12548. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  12549. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12550. +$as_echo_n "checking for $ac_word... " >&6; }
  12551. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  12552. + $as_echo_n "(cached) " >&6
  12553. +else
  12554. + if test -n "$LIPO"; then
  12555. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  12556. +else
  12557. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12558. +for as_dir in $PATH
  12559. +do
  12560. + IFS=$as_save_IFS
  12561. + test -z "$as_dir" && as_dir=.
  12562. + for ac_exec_ext in '' $ac_executable_extensions; do
  12563. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12564. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  12565. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12566. + break 2
  12567. + fi
  12568. +done
  12569. + done
  12570. +IFS=$as_save_IFS
  12571. +
  12572. +fi
  12573. +fi
  12574. +LIPO=$ac_cv_prog_LIPO
  12575. +if test -n "$LIPO"; then
  12576. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  12577. +$as_echo "$LIPO" >&6; }
  12578. +else
  12579. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12580. +$as_echo "no" >&6; }
  12581. +fi
  12582. +
  12583. +
  12584. +fi
  12585. +if test -z "$ac_cv_prog_LIPO"; then
  12586. + ac_ct_LIPO=$LIPO
  12587. + # Extract the first word of "lipo", so it can be a program name with args.
  12588. +set dummy lipo; ac_word=$2
  12589. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12590. +$as_echo_n "checking for $ac_word... " >&6; }
  12591. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  12592. + $as_echo_n "(cached) " >&6
  12593. +else
  12594. + if test -n "$ac_ct_LIPO"; then
  12595. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  12596. +else
  12597. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12598. +for as_dir in $PATH
  12599. +do
  12600. + IFS=$as_save_IFS
  12601. + test -z "$as_dir" && as_dir=.
  12602. + for ac_exec_ext in '' $ac_executable_extensions; do
  12603. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12604. + ac_cv_prog_ac_ct_LIPO="lipo"
  12605. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12606. + break 2
  12607. + fi
  12608. +done
  12609. + done
  12610. +IFS=$as_save_IFS
  12611. +
  12612. +fi
  12613. +fi
  12614. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  12615. +if test -n "$ac_ct_LIPO"; then
  12616. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  12617. +$as_echo "$ac_ct_LIPO" >&6; }
  12618. +else
  12619. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12620. +$as_echo "no" >&6; }
  12621. +fi
  12622. +
  12623. + if test "x$ac_ct_LIPO" = x; then
  12624. + LIPO=":"
  12625. + else
  12626. + case $cross_compiling:$ac_tool_warned in
  12627. +yes:)
  12628. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12629. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12630. +ac_tool_warned=yes ;;
  12631. +esac
  12632. + LIPO=$ac_ct_LIPO
  12633. + fi
  12634. +else
  12635. + LIPO="$ac_cv_prog_LIPO"
  12636. +fi
  12637. +
  12638. + if test -n "$ac_tool_prefix"; then
  12639. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  12640. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  12641. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12642. +$as_echo_n "checking for $ac_word... " >&6; }
  12643. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  12644. + $as_echo_n "(cached) " >&6
  12645. +else
  12646. + if test -n "$OTOOL"; then
  12647. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  12648. +else
  12649. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12650. +for as_dir in $PATH
  12651. +do
  12652. + IFS=$as_save_IFS
  12653. + test -z "$as_dir" && as_dir=.
  12654. + for ac_exec_ext in '' $ac_executable_extensions; do
  12655. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12656. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  12657. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12658. + break 2
  12659. + fi
  12660. +done
  12661. + done
  12662. +IFS=$as_save_IFS
  12663. +
  12664. +fi
  12665. +fi
  12666. +OTOOL=$ac_cv_prog_OTOOL
  12667. +if test -n "$OTOOL"; then
  12668. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  12669. +$as_echo "$OTOOL" >&6; }
  12670. +else
  12671. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12672. +$as_echo "no" >&6; }
  12673. +fi
  12674. +
  12675. +
  12676. +fi
  12677. +if test -z "$ac_cv_prog_OTOOL"; then
  12678. + ac_ct_OTOOL=$OTOOL
  12679. + # Extract the first word of "otool", so it can be a program name with args.
  12680. +set dummy otool; ac_word=$2
  12681. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12682. +$as_echo_n "checking for $ac_word... " >&6; }
  12683. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  12684. + $as_echo_n "(cached) " >&6
  12685. +else
  12686. + if test -n "$ac_ct_OTOOL"; then
  12687. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  12688. +else
  12689. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12690. +for as_dir in $PATH
  12691. +do
  12692. + IFS=$as_save_IFS
  12693. + test -z "$as_dir" && as_dir=.
  12694. + for ac_exec_ext in '' $ac_executable_extensions; do
  12695. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12696. + ac_cv_prog_ac_ct_OTOOL="otool"
  12697. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12698. + break 2
  12699. + fi
  12700. +done
  12701. + done
  12702. +IFS=$as_save_IFS
  12703. +
  12704. +fi
  12705. +fi
  12706. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  12707. +if test -n "$ac_ct_OTOOL"; then
  12708. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  12709. +$as_echo "$ac_ct_OTOOL" >&6; }
  12710. +else
  12711. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12712. +$as_echo "no" >&6; }
  12713. +fi
  12714. +
  12715. + if test "x$ac_ct_OTOOL" = x; then
  12716. + OTOOL=":"
  12717. + else
  12718. + case $cross_compiling:$ac_tool_warned in
  12719. +yes:)
  12720. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12721. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12722. +ac_tool_warned=yes ;;
  12723. +esac
  12724. + OTOOL=$ac_ct_OTOOL
  12725. + fi
  12726. +else
  12727. + OTOOL="$ac_cv_prog_OTOOL"
  12728. +fi
  12729. +
  12730. + if test -n "$ac_tool_prefix"; then
  12731. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  12732. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  12733. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12734. +$as_echo_n "checking for $ac_word... " >&6; }
  12735. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  12736. + $as_echo_n "(cached) " >&6
  12737. +else
  12738. + if test -n "$OTOOL64"; then
  12739. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  12740. +else
  12741. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12742. +for as_dir in $PATH
  12743. +do
  12744. + IFS=$as_save_IFS
  12745. + test -z "$as_dir" && as_dir=.
  12746. + for ac_exec_ext in '' $ac_executable_extensions; do
  12747. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12748. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  12749. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12750. + break 2
  12751. + fi
  12752. +done
  12753. + done
  12754. +IFS=$as_save_IFS
  12755. +
  12756. +fi
  12757. +fi
  12758. +OTOOL64=$ac_cv_prog_OTOOL64
  12759. +if test -n "$OTOOL64"; then
  12760. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  12761. +$as_echo "$OTOOL64" >&6; }
  12762. +else
  12763. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12764. +$as_echo "no" >&6; }
  12765. +fi
  12766. +
  12767. +
  12768. +fi
  12769. +if test -z "$ac_cv_prog_OTOOL64"; then
  12770. + ac_ct_OTOOL64=$OTOOL64
  12771. + # Extract the first word of "otool64", so it can be a program name with args.
  12772. +set dummy otool64; ac_word=$2
  12773. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12774. +$as_echo_n "checking for $ac_word... " >&6; }
  12775. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  12776. + $as_echo_n "(cached) " >&6
  12777. +else
  12778. + if test -n "$ac_ct_OTOOL64"; then
  12779. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  12780. +else
  12781. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12782. +for as_dir in $PATH
  12783. +do
  12784. + IFS=$as_save_IFS
  12785. + test -z "$as_dir" && as_dir=.
  12786. + for ac_exec_ext in '' $ac_executable_extensions; do
  12787. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12788. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  12789. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12790. + break 2
  12791. + fi
  12792. +done
  12793. + done
  12794. +IFS=$as_save_IFS
  12795. +
  12796. +fi
  12797. +fi
  12798. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  12799. +if test -n "$ac_ct_OTOOL64"; then
  12800. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  12801. +$as_echo "$ac_ct_OTOOL64" >&6; }
  12802. +else
  12803. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12804. +$as_echo "no" >&6; }
  12805. +fi
  12806. +
  12807. + if test "x$ac_ct_OTOOL64" = x; then
  12808. + OTOOL64=":"
  12809. + else
  12810. + case $cross_compiling:$ac_tool_warned in
  12811. +yes:)
  12812. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12813. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12814. +ac_tool_warned=yes ;;
  12815. +esac
  12816. + OTOOL64=$ac_ct_OTOOL64
  12817. + fi
  12818. +else
  12819. + OTOOL64="$ac_cv_prog_OTOOL64"
  12820. +fi
  12821. +
  12822. +
  12823. +
  12824. +
  12825. +
  12826. +
  12827. +
  12828. +
  12829. +
  12830. +
  12831. +
  12832. +
  12833. +
  12834. +
  12835. +
  12836. +
  12837. +
  12838. +
  12839. +
  12840. +
  12841. +
  12842. +
  12843. +
  12844. +
  12845. +
  12846. +
  12847. +
  12848. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  12849. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  12850. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  12851. + $as_echo_n "(cached) " >&6
  12852. +else
  12853. + lt_cv_apple_cc_single_mod=no
  12854. + if test -z "${LT_MULTI_MODULE}"; then
  12855. + # By default we will add the -single_module flag. You can override
  12856. + # by either setting the environment variable LT_MULTI_MODULE
  12857. + # non-empty at configure time, or by adding -multi_module to the
  12858. + # link flags.
  12859. + rm -rf libconftest.dylib*
  12860. + echo "int foo(void){return 1;}" > conftest.c
  12861. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  12862. +-dynamiclib -Wl,-single_module conftest.c" >&5
  12863. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  12864. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  12865. + _lt_result=$?
  12866. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  12867. + lt_cv_apple_cc_single_mod=yes
  12868. + else
  12869. + cat conftest.err >&5
  12870. + fi
  12871. + rm -rf libconftest.dylib*
  12872. + rm -f conftest.*
  12873. + fi
  12874. +fi
  12875. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  12876. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  12877. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  12878. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  12879. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  12880. + $as_echo_n "(cached) " >&6
  12881. +else
  12882. + lt_cv_ld_exported_symbols_list=no
  12883. + save_LDFLAGS=$LDFLAGS
  12884. + echo "_main" > conftest.sym
  12885. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  12886. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12887. +/* end confdefs.h. */
  12888. +
  12889. +int
  12890. +main ()
  12891. +{
  12892. +
  12893. + ;
  12894. + return 0;
  12895. +}
  12896. +_ACEOF
  12897. +if ac_fn_c_try_link "$LINENO"; then :
  12898. + lt_cv_ld_exported_symbols_list=yes
  12899. +else
  12900. + lt_cv_ld_exported_symbols_list=no
  12901. +fi
  12902. +rm -f core conftest.err conftest.$ac_objext \
  12903. + conftest$ac_exeext conftest.$ac_ext
  12904. + LDFLAGS="$save_LDFLAGS"
  12905. +
  12906. +fi
  12907. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  12908. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  12909. + case $host_os in
  12910. + rhapsody* | darwin1.[012])
  12911. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  12912. + darwin1.*)
  12913. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  12914. + darwin*) # darwin 5.x on
  12915. + # if running on 10.5 or later, the deployment target defaults
  12916. + # to the OS version, if on x86, and 10.4, the deployment
  12917. + # target defaults to 10.4. Don't you love it?
  12918. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  12919. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  12920. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  12921. + 10.[012]*)
  12922. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  12923. + 10.*)
  12924. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  12925. + esac
  12926. + ;;
  12927. + esac
  12928. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  12929. + _lt_dar_single_mod='$single_module'
  12930. + fi
  12931. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  12932. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  12933. + else
  12934. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12935. + fi
  12936. + if test "$DSYMUTIL" != ":"; then
  12937. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  12938. + else
  12939. + _lt_dsymutil=
  12940. + fi
  12941. + ;;
  12942. + esac
  12943. +
  12944. +
  12945. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12946. +$as_echo_n "checking for ANSI C header files... " >&6; }
  12947. +if test "${ac_cv_header_stdc+set}" = set; then :
  12948. + $as_echo_n "(cached) " >&6
  12949. +else
  12950. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12951. +/* end confdefs.h. */
  12952. +#include <stdlib.h>
  12953. +#include <stdarg.h>
  12954. +#include <string.h>
  12955. +#include <float.h>
  12956. +
  12957. +int
  12958. +main ()
  12959. +{
  12960. +
  12961. + ;
  12962. + return 0;
  12963. +}
  12964. +_ACEOF
  12965. +if ac_fn_c_try_compile "$LINENO"; then :
  12966. + ac_cv_header_stdc=yes
  12967. +else
  12968. + ac_cv_header_stdc=no
  12969. +fi
  12970. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12971. +
  12972. +if test $ac_cv_header_stdc = yes; then
  12973. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  12974. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12975. +/* end confdefs.h. */
  12976. +#include <string.h>
  12977. +
  12978. +_ACEOF
  12979. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12980. + $EGREP "memchr" >/dev/null 2>&1; then :
  12981. +
  12982. +else
  12983. + ac_cv_header_stdc=no
  12984. +fi
  12985. +rm -f conftest*
  12986. +
  12987. +fi
  12988. +
  12989. +if test $ac_cv_header_stdc = yes; then
  12990. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  12991. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12992. +/* end confdefs.h. */
  12993. +#include <stdlib.h>
  12994. +
  12995. +_ACEOF
  12996. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12997. + $EGREP "free" >/dev/null 2>&1; then :
  12998. +
  12999. +else
  13000. + ac_cv_header_stdc=no
  13001. +fi
  13002. +rm -f conftest*
  13003. +
  13004. +fi
  13005. +
  13006. +if test $ac_cv_header_stdc = yes; then
  13007. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13008. + if test "$cross_compiling" = yes; then :
  13009. + :
  13010. +else
  13011. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13012. +/* end confdefs.h. */
  13013. +#include <ctype.h>
  13014. +#include <stdlib.h>
  13015. +#if ((' ' & 0x0FF) == 0x020)
  13016. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13017. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13018. +#else
  13019. +# define ISLOWER(c) \
  13020. + (('a' <= (c) && (c) <= 'i') \
  13021. + || ('j' <= (c) && (c) <= 'r') \
  13022. + || ('s' <= (c) && (c) <= 'z'))
  13023. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13024. +#endif
  13025. +
  13026. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13027. +int
  13028. +main ()
  13029. +{
  13030. + int i;
  13031. + for (i = 0; i < 256; i++)
  13032. + if (XOR (islower (i), ISLOWER (i))
  13033. + || toupper (i) != TOUPPER (i))
  13034. + return 2;
  13035. + return 0;
  13036. +}
  13037. +_ACEOF
  13038. +if ac_fn_c_try_run "$LINENO"; then :
  13039. +
  13040. +else
  13041. + ac_cv_header_stdc=no
  13042. +fi
  13043. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13044. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  13045. +fi
  13046. +
  13047. +fi
  13048. +fi
  13049. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13050. +$as_echo "$ac_cv_header_stdc" >&6; }
  13051. +if test $ac_cv_header_stdc = yes; then
  13052. +
  13053. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13054. +
  13055. +fi
  13056. +
  13057. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  13058. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  13059. + inttypes.h stdint.h unistd.h
  13060. +do :
  13061. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13062. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  13063. +"
  13064. +eval as_val=\$$as_ac_Header
  13065. + if test "x$as_val" = x""yes; then :
  13066. + cat >>confdefs.h <<_ACEOF
  13067. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13068. +_ACEOF
  13069. +
  13070. +fi
  13071. +
  13072. +done
  13073. +
  13074. +
  13075. +for ac_header in dlfcn.h
  13076. +do :
  13077. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  13078. +"
  13079. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  13080. + cat >>confdefs.h <<_ACEOF
  13081. +#define HAVE_DLFCN_H 1
  13082. +_ACEOF
  13083. +
  13084. +fi
  13085. +
  13086. +done
  13087. +
  13088. +
  13089. +
  13090. +ac_ext=cpp
  13091. +ac_cpp='$CXXCPP $CPPFLAGS'
  13092. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13093. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13094. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13095. +if test -z "$CXX"; then
  13096. + if test -n "$CCC"; then
  13097. + CXX=$CCC
  13098. + else
  13099. + if test -n "$ac_tool_prefix"; then
  13100. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  13101. + do
  13102. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  13103. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  13104. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13105. +$as_echo_n "checking for $ac_word... " >&6; }
  13106. +if test "${ac_cv_prog_CXX+set}" = set; then :
  13107. + $as_echo_n "(cached) " >&6
  13108. +else
  13109. + if test -n "$CXX"; then
  13110. + ac_cv_prog_CXX="$CXX" # Let the user override the test.
  13111. +else
  13112. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13113. +for as_dir in $PATH
  13114. +do
  13115. + IFS=$as_save_IFS
  13116. + test -z "$as_dir" && as_dir=.
  13117. + for ac_exec_ext in '' $ac_executable_extensions; do
  13118. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13119. + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  13120. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13121. + break 2
  13122. + fi
  13123. +done
  13124. + done
  13125. +IFS=$as_save_IFS
  13126. +
  13127. +fi
  13128. +fi
  13129. +CXX=$ac_cv_prog_CXX
  13130. +if test -n "$CXX"; then
  13131. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  13132. +$as_echo "$CXX" >&6; }
  13133. +else
  13134. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13135. +$as_echo "no" >&6; }
  13136. +fi
  13137. +
  13138. +
  13139. + test -n "$CXX" && break
  13140. + done
  13141. +fi
  13142. +if test -z "$CXX"; then
  13143. + ac_ct_CXX=$CXX
  13144. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  13145. +do
  13146. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  13147. +set dummy $ac_prog; ac_word=$2
  13148. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13149. +$as_echo_n "checking for $ac_word... " >&6; }
  13150. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  13151. + $as_echo_n "(cached) " >&6
  13152. +else
  13153. + if test -n "$ac_ct_CXX"; then
  13154. + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  13155. +else
  13156. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13157. +for as_dir in $PATH
  13158. +do
  13159. + IFS=$as_save_IFS
  13160. + test -z "$as_dir" && as_dir=.
  13161. + for ac_exec_ext in '' $ac_executable_extensions; do
  13162. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13163. + ac_cv_prog_ac_ct_CXX="$ac_prog"
  13164. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13165. + break 2
  13166. + fi
  13167. +done
  13168. + done
  13169. +IFS=$as_save_IFS
  13170. +
  13171. +fi
  13172. +fi
  13173. +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  13174. +if test -n "$ac_ct_CXX"; then
  13175. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  13176. +$as_echo "$ac_ct_CXX" >&6; }
  13177. +else
  13178. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13179. +$as_echo "no" >&6; }
  13180. +fi
  13181. +
  13182. +
  13183. + test -n "$ac_ct_CXX" && break
  13184. +done
  13185. +
  13186. + if test "x$ac_ct_CXX" = x; then
  13187. + CXX="g++"
  13188. + else
  13189. + case $cross_compiling:$ac_tool_warned in
  13190. +yes:)
  13191. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13192. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13193. +ac_tool_warned=yes ;;
  13194. +esac
  13195. + CXX=$ac_ct_CXX
  13196. + fi
  13197. +fi
  13198. +
  13199. + fi
  13200. +fi
  13201. +# Provide some information about the compiler.
  13202. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  13203. +set X $ac_compile
  13204. +ac_compiler=$2
  13205. +for ac_option in --version -v -V -qversion; do
  13206. + { { ac_try="$ac_compiler $ac_option >&5"
  13207. +case "(($ac_try" in
  13208. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13209. + *) ac_try_echo=$ac_try;;
  13210. +esac
  13211. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13212. +$as_echo "$ac_try_echo"; } >&5
  13213. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  13214. + ac_status=$?
  13215. + if test -s conftest.err; then
  13216. + sed '10a\
  13217. +... rest of stderr output deleted ...
  13218. + 10q' conftest.err >conftest.er1
  13219. + cat conftest.er1 >&5
  13220. + fi
  13221. + rm -f conftest.er1 conftest.err
  13222. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13223. + test $ac_status = 0; }
  13224. +done
  13225. +
  13226. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  13227. +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  13228. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  13229. + $as_echo_n "(cached) " >&6
  13230. +else
  13231. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13232. +/* end confdefs.h. */
  13233. +
  13234. +int
  13235. +main ()
  13236. +{
  13237. +#ifndef __GNUC__
  13238. + choke me
  13239. +#endif
  13240. +
  13241. + ;
  13242. + return 0;
  13243. +}
  13244. +_ACEOF
  13245. +if ac_fn_cxx_try_compile "$LINENO"; then :
  13246. + ac_compiler_gnu=yes
  13247. +else
  13248. + ac_compiler_gnu=no
  13249. +fi
  13250. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13251. +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  13252. +
  13253. +fi
  13254. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  13255. +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  13256. +if test $ac_compiler_gnu = yes; then
  13257. + GXX=yes
  13258. +else
  13259. + GXX=
  13260. +fi
  13261. +ac_test_CXXFLAGS=${CXXFLAGS+set}
  13262. +ac_save_CXXFLAGS=$CXXFLAGS
  13263. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  13264. +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  13265. +if test "${ac_cv_prog_cxx_g+set}" = set; then :
  13266. + $as_echo_n "(cached) " >&6
  13267. +else
  13268. + ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  13269. + ac_cxx_werror_flag=yes
  13270. + ac_cv_prog_cxx_g=no
  13271. + CXXFLAGS="-g"
  13272. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13273. +/* end confdefs.h. */
  13274. +
  13275. +int
  13276. +main ()
  13277. +{
  13278. +
  13279. + ;
  13280. + return 0;
  13281. +}
  13282. +_ACEOF
  13283. +if ac_fn_cxx_try_compile "$LINENO"; then :
  13284. + ac_cv_prog_cxx_g=yes
  13285. +else
  13286. + CXXFLAGS=""
  13287. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13288. +/* end confdefs.h. */
  13289. +
  13290. +int
  13291. +main ()
  13292. +{
  13293. +
  13294. + ;
  13295. + return 0;
  13296. +}
  13297. +_ACEOF
  13298. +if ac_fn_cxx_try_compile "$LINENO"; then :
  13299. +
  13300. +else
  13301. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  13302. + CXXFLAGS="-g"
  13303. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13304. +/* end confdefs.h. */
  13305. +
  13306. +int
  13307. +main ()
  13308. +{
  13309. +
  13310. + ;
  13311. + return 0;
  13312. +}
  13313. +_ACEOF
  13314. +if ac_fn_cxx_try_compile "$LINENO"; then :
  13315. + ac_cv_prog_cxx_g=yes
  13316. +fi
  13317. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13318. +fi
  13319. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13320. +fi
  13321. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13322. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  13323. +fi
  13324. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  13325. +$as_echo "$ac_cv_prog_cxx_g" >&6; }
  13326. +if test "$ac_test_CXXFLAGS" = set; then
  13327. + CXXFLAGS=$ac_save_CXXFLAGS
  13328. +elif test $ac_cv_prog_cxx_g = yes; then
  13329. + if test "$GXX" = yes; then
  13330. + CXXFLAGS="-g -O2"
  13331. + else
  13332. + CXXFLAGS="-g"
  13333. + fi
  13334. +else
  13335. + if test "$GXX" = yes; then
  13336. + CXXFLAGS="-O2"
  13337. + else
  13338. + CXXFLAGS=
  13339. + fi
  13340. +fi
  13341. +ac_ext=c
  13342. +ac_cpp='$CPP $CPPFLAGS'
  13343. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13344. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13345. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13346. +
  13347. +depcc="$CXX" am_compiler_list=
  13348. +
  13349. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13350. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  13351. +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  13352. + $as_echo_n "(cached) " >&6
  13353. +else
  13354. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13355. + # We make a subdir and do the tests there. Otherwise we can end up
  13356. + # making bogus files that we don't know about and never remove. For
  13357. + # instance it was reported that on HP-UX the gcc test will end up
  13358. + # making a dummy file named `D' -- because `-MD' means `put the output
  13359. + # in D'.
  13360. + mkdir conftest.dir
  13361. + # Copy depcomp to subdir because otherwise we won't find it if we're
  13362. + # using a relative directory.
  13363. + cp "$am_depcomp" conftest.dir
  13364. + cd conftest.dir
  13365. + # We will build objects and dependencies in a subdirectory because
  13366. + # it helps to detect inapplicable dependency modes. For instance
  13367. + # both Tru64's cc and ICC support -MD to output dependencies as a
  13368. + # side effect of compilation, but ICC will put the dependencies in
  13369. + # the current directory while Tru64 will put them in the object
  13370. + # directory.
  13371. + mkdir sub
  13372. +
  13373. + am_cv_CXX_dependencies_compiler_type=none
  13374. + if test "$am_compiler_list" = ""; then
  13375. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13376. + fi
  13377. + am__universal=false
  13378. + case " $depcc " in #(
  13379. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13380. + esac
  13381. +
  13382. + for depmode in $am_compiler_list; do
  13383. + # Setup a source with many dependencies, because some compilers
  13384. + # like to wrap large dependency lists on column 80 (with \), and
  13385. + # we should not choose a depcomp mode which is confused by this.
  13386. + #
  13387. + # We need to recreate these files for each test, as the compiler may
  13388. + # overwrite some of them when testing with obscure command lines.
  13389. + # This happens at least with the AIX C compiler.
  13390. + : > sub/conftest.c
  13391. + for i in 1 2 3 4 5 6; do
  13392. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13393. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13394. + # Solaris 8's {/usr,}/bin/sh.
  13395. + touch sub/conftst$i.h
  13396. + done
  13397. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13398. +
  13399. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13400. + # mode. It turns out that the SunPro C++ compiler does not properly
  13401. + # handle `-M -o', and we need to detect this. Also, some Intel
  13402. + # versions had trouble with output in subdirs
  13403. + am__obj=sub/conftest.${OBJEXT-o}
  13404. + am__minus_obj="-o $am__obj"
  13405. + case $depmode in
  13406. + gcc)
  13407. + # This depmode causes a compiler race in universal mode.
  13408. + test "$am__universal" = false || continue
  13409. + ;;
  13410. + nosideeffect)
  13411. + # after this tag, mechanisms are not by side-effect, so they'll
  13412. + # only be used when explicitly requested
  13413. + if test "x$enable_dependency_tracking" = xyes; then
  13414. + continue
  13415. + else
  13416. + break
  13417. + fi
  13418. + ;;
  13419. + msvisualcpp | msvcmsys)
  13420. + # This compiler won't grok `-c -o', but also, the minuso test has
  13421. + # not run yet. These depmodes are late enough in the game, and
  13422. + # so weak that their functioning should not be impacted.
  13423. + am__obj=conftest.${OBJEXT-o}
  13424. + am__minus_obj=
  13425. + ;;
  13426. + none) break ;;
  13427. + esac
  13428. + if depmode=$depmode \
  13429. + source=sub/conftest.c object=$am__obj \
  13430. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13431. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13432. + >/dev/null 2>conftest.err &&
  13433. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13434. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13435. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13436. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13437. + # icc doesn't choke on unknown options, it will just issue warnings
  13438. + # or remarks (even with -Werror). So we grep stderr for any message
  13439. + # that says an option was ignored or not supported.
  13440. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  13441. + # icc: Command line warning: ignoring option '-M'; no argument required
  13442. + # The diagnosis changed in icc 8.0:
  13443. + # icc: Command line remark: option '-MP' not supported
  13444. + if (grep 'ignoring option' conftest.err ||
  13445. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13446. + am_cv_CXX_dependencies_compiler_type=$depmode
  13447. + break
  13448. + fi
  13449. + fi
  13450. + done
  13451. +
  13452. + cd ..
  13453. + rm -rf conftest.dir
  13454. +else
  13455. + am_cv_CXX_dependencies_compiler_type=none
  13456. +fi
  13457. +
  13458. +fi
  13459. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13460. +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13461. +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13462. +
  13463. + if
  13464. + test "x$enable_dependency_tracking" != xno \
  13465. + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13466. + am__fastdepCXX_TRUE=
  13467. + am__fastdepCXX_FALSE='#'
  13468. +else
  13469. + am__fastdepCXX_TRUE='#'
  13470. + am__fastdepCXX_FALSE=
  13471. +fi
  13472. +
  13473. +
  13474. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  13475. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  13476. + (test "X$CXX" != "Xg++"))) ; then
  13477. + ac_ext=cpp
  13478. +ac_cpp='$CXXCPP $CPPFLAGS'
  13479. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13480. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13481. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13482. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  13483. +$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  13484. +if test -z "$CXXCPP"; then
  13485. + if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  13486. + $as_echo_n "(cached) " >&6
  13487. +else
  13488. + # Double quotes because CXXCPP needs to be expanded
  13489. + for CXXCPP in "$CXX -E" "/lib/cpp"
  13490. + do
  13491. + ac_preproc_ok=false
  13492. +for ac_cxx_preproc_warn_flag in '' yes
  13493. +do
  13494. + # Use a header file that comes with gcc, so configuring glibc
  13495. + # with a fresh cross-compiler works.
  13496. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13497. + # <limits.h> exists even on freestanding compilers.
  13498. + # On the NeXT, cc -E runs the code through the compiler's parser,
  13499. + # not just through cpp. "Syntax error" is here to catch this case.
  13500. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13501. +/* end confdefs.h. */
  13502. +#ifdef __STDC__
  13503. +# include <limits.h>
  13504. +#else
  13505. +# include <assert.h>
  13506. +#endif
  13507. + Syntax error
  13508. +_ACEOF
  13509. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  13510. +
  13511. +else
  13512. + # Broken: fails on valid input.
  13513. +continue
  13514. +fi
  13515. +rm -f conftest.err conftest.$ac_ext
  13516. +
  13517. + # OK, works on sane cases. Now check whether nonexistent headers
  13518. + # can be detected and how.
  13519. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13520. +/* end confdefs.h. */
  13521. +#include <ac_nonexistent.h>
  13522. +_ACEOF
  13523. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  13524. + # Broken: success on invalid input.
  13525. +continue
  13526. +else
  13527. + # Passes both tests.
  13528. +ac_preproc_ok=:
  13529. +break
  13530. +fi
  13531. +rm -f conftest.err conftest.$ac_ext
  13532. +
  13533. +done
  13534. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13535. +rm -f conftest.err conftest.$ac_ext
  13536. +if $ac_preproc_ok; then :
  13537. + break
  13538. +fi
  13539. +
  13540. + done
  13541. + ac_cv_prog_CXXCPP=$CXXCPP
  13542. +
  13543. +fi
  13544. + CXXCPP=$ac_cv_prog_CXXCPP
  13545. +else
  13546. + ac_cv_prog_CXXCPP=$CXXCPP
  13547. +fi
  13548. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  13549. +$as_echo "$CXXCPP" >&6; }
  13550. +ac_preproc_ok=false
  13551. +for ac_cxx_preproc_warn_flag in '' yes
  13552. +do
  13553. + # Use a header file that comes with gcc, so configuring glibc
  13554. + # with a fresh cross-compiler works.
  13555. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13556. + # <limits.h> exists even on freestanding compilers.
  13557. + # On the NeXT, cc -E runs the code through the compiler's parser,
  13558. + # not just through cpp. "Syntax error" is here to catch this case.
  13559. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13560. +/* end confdefs.h. */
  13561. +#ifdef __STDC__
  13562. +# include <limits.h>
  13563. +#else
  13564. +# include <assert.h>
  13565. +#endif
  13566. + Syntax error
  13567. +_ACEOF
  13568. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  13569. +
  13570. +else
  13571. + # Broken: fails on valid input.
  13572. +continue
  13573. +fi
  13574. +rm -f conftest.err conftest.$ac_ext
  13575. +
  13576. + # OK, works on sane cases. Now check whether nonexistent headers
  13577. + # can be detected and how.
  13578. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13579. +/* end confdefs.h. */
  13580. +#include <ac_nonexistent.h>
  13581. +_ACEOF
  13582. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  13583. + # Broken: success on invalid input.
  13584. +continue
  13585. +else
  13586. + # Passes both tests.
  13587. +ac_preproc_ok=:
  13588. +break
  13589. +fi
  13590. +rm -f conftest.err conftest.$ac_ext
  13591. +
  13592. +done
  13593. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13594. +rm -f conftest.err conftest.$ac_ext
  13595. +if $ac_preproc_ok; then :
  13596. +
  13597. +else
  13598. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13599. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13600. +_lt_caught_CXX_error=yes; }
  13601. +fi
  13602. +
  13603. +ac_ext=c
  13604. +ac_cpp='$CPP $CPPFLAGS'
  13605. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13606. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13607. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13608. +
  13609. +else
  13610. + _lt_caught_CXX_error=yes
  13611. +fi
  13612. +
  13613. +
  13614. +
  13615. +
  13616. +
  13617. +# Set options
  13618. +
  13619. +
  13620. +
  13621. +
  13622. + enable_win32_dll=no
  13623. +
  13624. +
  13625. +
  13626. +
  13627. +
  13628. +# Check whether --with-pic was given.
  13629. +if test "${with_pic+set}" = set; then :
  13630. + withval=$with_pic; pic_mode="$withval"
  13631. +else
  13632. + pic_mode=default
  13633. +fi
  13634. +
  13635. +
  13636. +test -z "$pic_mode" && pic_mode=default
  13637. +
  13638. +
  13639. +
  13640. +
  13641. +
  13642. +
  13643. +
  13644. + # Check whether --enable-fast-install was given.
  13645. +if test "${enable_fast_install+set}" = set; then :
  13646. + enableval=$enable_fast_install; p=${PACKAGE-default}
  13647. + case $enableval in
  13648. + yes) enable_fast_install=yes ;;
  13649. + no) enable_fast_install=no ;;
  13650. + *)
  13651. + enable_fast_install=no
  13652. + # Look at the argument we got. We use all the common list separators.
  13653. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  13654. + for pkg in $enableval; do
  13655. + IFS="$lt_save_ifs"
  13656. + if test "X$pkg" = "X$p"; then
  13657. + enable_fast_install=yes
  13658. + fi
  13659. + done
  13660. + IFS="$lt_save_ifs"
  13661. + ;;
  13662. + esac
  13663. +else
  13664. + enable_fast_install=yes
  13665. +fi
  13666. +
  13667. +
  13668. +
  13669. +
  13670. +
  13671. +
  13672. +
  13673. +
  13674. +
  13675. +
  13676. +
  13677. +# This can be used to rebuild libtool when needed
  13678. +LIBTOOL_DEPS="$ltmain"
  13679. +
  13680. +# Always use our own libtool.
  13681. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  13682. +
  13683. +
  13684. +
  13685. +
  13686. +
  13687. +
  13688. +
  13689. +
  13690. +
  13691. +
  13692. +
  13693. +
  13694. +
  13695. +
  13696. +
  13697. +
  13698. +
  13699. +
  13700. +
  13701. +
  13702. +
  13703. +
  13704. +
  13705. +
  13706. +
  13707. +test -z "$LN_S" && LN_S="ln -s"
  13708. +
  13709. +
  13710. +
  13711. +
  13712. +
  13713. +
  13714. +
  13715. +
  13716. +
  13717. +
  13718. +
  13719. +
  13720. +
  13721. +
  13722. +if test -n "${ZSH_VERSION+set}" ; then
  13723. + setopt NO_GLOB_SUBST
  13724. +fi
  13725. +
  13726. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  13727. +$as_echo_n "checking for objdir... " >&6; }
  13728. +if test "${lt_cv_objdir+set}" = set; then :
  13729. + $as_echo_n "(cached) " >&6
  13730. +else
  13731. + rm -f .libs 2>/dev/null
  13732. +mkdir .libs 2>/dev/null
  13733. +if test -d .libs; then
  13734. + lt_cv_objdir=.libs
  13735. +else
  13736. + # MS-DOS does not allow filenames that begin with a dot.
  13737. + lt_cv_objdir=_libs
  13738. +fi
  13739. +rmdir .libs 2>/dev/null
  13740. +fi
  13741. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  13742. +$as_echo "$lt_cv_objdir" >&6; }
  13743. +objdir=$lt_cv_objdir
  13744. +
  13745. +
  13746. +
  13747. +
  13748. +
  13749. +cat >>confdefs.h <<_ACEOF
  13750. +#define LT_OBJDIR "$lt_cv_objdir/"
  13751. +_ACEOF
  13752. +
  13753. +
  13754. +
  13755. +
  13756. +
  13757. +
  13758. +
  13759. +
  13760. +
  13761. +
  13762. +
  13763. +
  13764. +
  13765. +
  13766. +
  13767. +
  13768. +
  13769. +case $host_os in
  13770. +aix3*)
  13771. + # AIX sometimes has problems with the GCC collect2 program. For some
  13772. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  13773. + # vanish in a puff of smoke.
  13774. + if test "X${COLLECT_NAMES+set}" != Xset; then
  13775. + COLLECT_NAMES=
  13776. + export COLLECT_NAMES
  13777. + fi
  13778. + ;;
  13779. +esac
  13780. +
  13781. +# Sed substitution that helps us do robust quoting. It backslashifies
  13782. +# metacharacters that are still active within double-quoted strings.
  13783. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  13784. +
  13785. +# Same as above, but do not quote variable references.
  13786. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  13787. +
  13788. +# Sed substitution to delay expansion of an escaped shell variable in a
  13789. +# double_quote_subst'ed string.
  13790. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  13791. +
  13792. +# Sed substitution to delay expansion of an escaped single quote.
  13793. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  13794. +
  13795. +# Sed substitution to avoid accidental globbing in evaled expressions
  13796. +no_glob_subst='s/\*/\\\*/g'
  13797. +
  13798. +# Global variables:
  13799. +ofile=libtool
  13800. +can_build_shared=yes
  13801. +
  13802. +# All known linkers require a `.a' archive for static linking (except MSVC,
  13803. +# which needs '.lib').
  13804. +libext=a
  13805. +
  13806. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  13807. +
  13808. +old_CC="$CC"
  13809. +old_CFLAGS="$CFLAGS"
  13810. +
  13811. +# Set sane defaults for various variables
  13812. +test -z "$CC" && CC=cc
  13813. +test -z "$LTCC" && LTCC=$CC
  13814. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  13815. +test -z "$LD" && LD=ld
  13816. +test -z "$ac_objext" && ac_objext=o
  13817. +
  13818. +for cc_temp in $compiler""; do
  13819. + case $cc_temp in
  13820. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13821. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13822. + \-*) ;;
  13823. + *) break;;
  13824. + esac
  13825. +done
  13826. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13827. +
  13828. +
  13829. +# Only perform the check for file, if the check method requires it
  13830. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  13831. +case $deplibs_check_method in
  13832. +file_magic*)
  13833. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  13834. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  13835. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  13836. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  13837. + $as_echo_n "(cached) " >&6
  13838. +else
  13839. + case $MAGIC_CMD in
  13840. +[\\/*] | ?:[\\/]*)
  13841. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  13842. + ;;
  13843. +*)
  13844. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  13845. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13846. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  13847. + for ac_dir in $ac_dummy; do
  13848. + IFS="$lt_save_ifs"
  13849. + test -z "$ac_dir" && ac_dir=.
  13850. + if test -f $ac_dir/${ac_tool_prefix}file; then
  13851. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  13852. + if test -n "$file_magic_test_file"; then
  13853. + case $deplibs_check_method in
  13854. + "file_magic "*)
  13855. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  13856. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13857. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  13858. + $EGREP "$file_magic_regex" > /dev/null; then
  13859. + :
  13860. + else
  13861. + cat <<_LT_EOF 1>&2
  13862. +
  13863. +*** Warning: the command libtool uses to detect shared libraries,
  13864. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  13865. +*** The result is that libtool may fail to recognize shared libraries
  13866. +*** as such. This will affect the creation of libtool libraries that
  13867. +*** depend on shared libraries, but programs linked with such libtool
  13868. +*** libraries will work regardless of this problem. Nevertheless, you
  13869. +*** may want to report the problem to your system manager and/or to
  13870. +*** bug-libtool@gnu.org
  13871. +
  13872. +_LT_EOF
  13873. + fi ;;
  13874. + esac
  13875. + fi
  13876. + break
  13877. + fi
  13878. + done
  13879. + IFS="$lt_save_ifs"
  13880. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  13881. + ;;
  13882. +esac
  13883. +fi
  13884. +
  13885. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13886. +if test -n "$MAGIC_CMD"; then
  13887. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  13888. +$as_echo "$MAGIC_CMD" >&6; }
  13889. +else
  13890. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13891. +$as_echo "no" >&6; }
  13892. +fi
  13893. +
  13894. +
  13895. +
  13896. +
  13897. +
  13898. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  13899. + if test -n "$ac_tool_prefix"; then
  13900. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  13901. +$as_echo_n "checking for file... " >&6; }
  13902. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  13903. + $as_echo_n "(cached) " >&6
  13904. +else
  13905. + case $MAGIC_CMD in
  13906. +[\\/*] | ?:[\\/]*)
  13907. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  13908. + ;;
  13909. +*)
  13910. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  13911. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13912. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  13913. + for ac_dir in $ac_dummy; do
  13914. + IFS="$lt_save_ifs"
  13915. + test -z "$ac_dir" && ac_dir=.
  13916. + if test -f $ac_dir/file; then
  13917. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  13918. + if test -n "$file_magic_test_file"; then
  13919. + case $deplibs_check_method in
  13920. + "file_magic "*)
  13921. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  13922. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13923. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  13924. + $EGREP "$file_magic_regex" > /dev/null; then
  13925. + :
  13926. + else
  13927. + cat <<_LT_EOF 1>&2
  13928. +
  13929. +*** Warning: the command libtool uses to detect shared libraries,
  13930. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  13931. +*** The result is that libtool may fail to recognize shared libraries
  13932. +*** as such. This will affect the creation of libtool libraries that
  13933. +*** depend on shared libraries, but programs linked with such libtool
  13934. +*** libraries will work regardless of this problem. Nevertheless, you
  13935. +*** may want to report the problem to your system manager and/or to
  13936. +*** bug-libtool@gnu.org
  13937. +
  13938. +_LT_EOF
  13939. + fi ;;
  13940. + esac
  13941. + fi
  13942. + break
  13943. + fi
  13944. + done
  13945. + IFS="$lt_save_ifs"
  13946. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  13947. + ;;
  13948. +esac
  13949. +fi
  13950. +
  13951. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13952. +if test -n "$MAGIC_CMD"; then
  13953. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  13954. +$as_echo "$MAGIC_CMD" >&6; }
  13955. +else
  13956. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13957. +$as_echo "no" >&6; }
  13958. +fi
  13959. +
  13960. +
  13961. + else
  13962. + MAGIC_CMD=:
  13963. + fi
  13964. +fi
  13965. +
  13966. + fi
  13967. + ;;
  13968. +esac
  13969. +
  13970. +# Use C for the default configuration in the libtool script
  13971. +
  13972. +lt_save_CC="$CC"
  13973. +ac_ext=c
  13974. +ac_cpp='$CPP $CPPFLAGS'
  13975. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13976. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13977. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13978. +
  13979. +
  13980. +# Source file extension for C test sources.
  13981. +ac_ext=c
  13982. +
  13983. +# Object file extension for compiled C test sources.
  13984. +objext=o
  13985. +objext=$objext
  13986. +
  13987. +# Code to be used in simple compile tests
  13988. +lt_simple_compile_test_code="int some_variable = 0;"
  13989. +
  13990. +# Code to be used in simple link tests
  13991. +lt_simple_link_test_code='int main(){return(0);}'
  13992. +
  13993. +
  13994. +
  13995. +
  13996. +
  13997. +
  13998. +
  13999. +# If no C compiler was specified, use CC.
  14000. +LTCC=${LTCC-"$CC"}
  14001. +
  14002. +# If no C compiler flags were specified, use CFLAGS.
  14003. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14004. +
  14005. +# Allow CC to be a program name with arguments.
  14006. +compiler=$CC
  14007. +
  14008. +# Save the default compiler, since it gets overwritten when the other
  14009. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  14010. +compiler_DEFAULT=$CC
  14011. +
  14012. +# save warnings/boilerplate of simple test code
  14013. +ac_outfile=conftest.$ac_objext
  14014. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14015. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14016. +_lt_compiler_boilerplate=`cat conftest.err`
  14017. +$RM conftest*
  14018. +
  14019. +ac_outfile=conftest.$ac_objext
  14020. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14021. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14022. +_lt_linker_boilerplate=`cat conftest.err`
  14023. +$RM -r conftest*
  14024. +
  14025. +
  14026. +## CAVEAT EMPTOR:
  14027. +## There is no encapsulation within the following macros, do not change
  14028. +## the running order or otherwise move them around unless you know exactly
  14029. +## what you are doing...
  14030. +if test -n "$compiler"; then
  14031. +
  14032. +lt_prog_compiler_no_builtin_flag=
  14033. +
  14034. +if test "$GCC" = yes; then
  14035. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  14036. +
  14037. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14038. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  14039. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  14040. + $as_echo_n "(cached) " >&6
  14041. +else
  14042. + lt_cv_prog_compiler_rtti_exceptions=no
  14043. + ac_outfile=conftest.$ac_objext
  14044. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14045. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  14046. + # Insert the option either (1) after the last *FLAGS variable, or
  14047. + # (2) before a word containing "conftest.", or (3) at the end.
  14048. + # Note that $ac_compile itself does not contain backslashes and begins
  14049. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  14050. + # The option is referenced via a variable to avoid confusing sed.
  14051. + lt_compile=`echo "$ac_compile" | $SED \
  14052. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14053. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14054. + -e 's:$: $lt_compiler_flag:'`
  14055. + (eval echo "\"\$as_me:8496: $lt_compile\"" >&5)
  14056. + (eval "$lt_compile" 2>conftest.err)
  14057. + ac_status=$?
  14058. + cat conftest.err >&5
  14059. + echo "$as_me:8500: \$? = $ac_status" >&5
  14060. + if (exit $ac_status) && test -s "$ac_outfile"; then
  14061. + # The compiler can only warn and ignore the option if not recognized
  14062. + # So say no if there are warnings other than the usual output.
  14063. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14064. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14065. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14066. + lt_cv_prog_compiler_rtti_exceptions=yes
  14067. + fi
  14068. + fi
  14069. + $RM conftest*
  14070. +
  14071. +fi
  14072. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14073. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14074. +
  14075. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14076. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  14077. +else
  14078. + :
  14079. +fi
  14080. +
  14081. +fi
  14082. +
  14083. +
  14084. +
  14085. +
  14086. +
  14087. +
  14088. + lt_prog_compiler_wl=
  14089. +lt_prog_compiler_pic=
  14090. +lt_prog_compiler_static=
  14091. +
  14092. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14093. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14094. +
  14095. + if test "$GCC" = yes; then
  14096. + lt_prog_compiler_wl='-Wl,'
  14097. + lt_prog_compiler_static='-static'
  14098. +
  14099. + case $host_os in
  14100. + aix*)
  14101. + # All AIX code is PIC.
  14102. + if test "$host_cpu" = ia64; then
  14103. + # AIX 5 now supports IA64 processor
  14104. + lt_prog_compiler_static='-Bstatic'
  14105. + fi
  14106. + ;;
  14107. +
  14108. + amigaos*)
  14109. + case $host_cpu in
  14110. + powerpc)
  14111. + # see comment about AmigaOS4 .so support
  14112. + lt_prog_compiler_pic='-fPIC'
  14113. + ;;
  14114. + m68k)
  14115. + # FIXME: we need at least 68020 code to build shared libraries, but
  14116. + # adding the `-m68020' flag to GCC prevents building anything better,
  14117. + # like `-m68040'.
  14118. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  14119. + ;;
  14120. + esac
  14121. + ;;
  14122. +
  14123. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14124. + # PIC is the default for these OSes.
  14125. + ;;
  14126. +
  14127. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  14128. + # This hack is so that the source file can tell whether it is being
  14129. + # built for inclusion in a dll (and should export symbols for example).
  14130. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14131. + # (--disable-auto-import) libraries
  14132. + lt_prog_compiler_pic='-DDLL_EXPORT'
  14133. + ;;
  14134. +
  14135. + darwin* | rhapsody*)
  14136. + # PIC is the default on this platform
  14137. + # Common symbols not allowed in MH_DYLIB files
  14138. + lt_prog_compiler_pic='-fno-common'
  14139. + ;;
  14140. +
  14141. + hpux*)
  14142. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14143. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  14144. + # sets the default TLS model and affects inlining.
  14145. + case $host_cpu in
  14146. + hppa*64*)
  14147. + # +Z the default
  14148. + ;;
  14149. + *)
  14150. + lt_prog_compiler_pic='-fPIC'
  14151. + ;;
  14152. + esac
  14153. + ;;
  14154. +
  14155. + interix[3-9]*)
  14156. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14157. + # Instead, we relocate shared libraries at runtime.
  14158. + ;;
  14159. +
  14160. + msdosdjgpp*)
  14161. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  14162. + # on systems that don't support them.
  14163. + lt_prog_compiler_can_build_shared=no
  14164. + enable_shared=no
  14165. + ;;
  14166. +
  14167. + *nto* | *qnx*)
  14168. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  14169. + # it will coredump.
  14170. + lt_prog_compiler_pic='-fPIC -shared'
  14171. + ;;
  14172. +
  14173. + sysv4*MP*)
  14174. + if test -d /usr/nec; then
  14175. + lt_prog_compiler_pic=-Kconform_pic
  14176. + fi
  14177. + ;;
  14178. +
  14179. + *)
  14180. + lt_prog_compiler_pic='-fPIC'
  14181. + ;;
  14182. + esac
  14183. + else
  14184. + # PORTME Check for flag to pass linker flags through the system compiler.
  14185. + case $host_os in
  14186. + aix*)
  14187. + lt_prog_compiler_wl='-Wl,'
  14188. + if test "$host_cpu" = ia64; then
  14189. + # AIX 5 now supports IA64 processor
  14190. + lt_prog_compiler_static='-Bstatic'
  14191. + else
  14192. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  14193. + fi
  14194. + ;;
  14195. +
  14196. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  14197. + # This hack is so that the source file can tell whether it is being
  14198. + # built for inclusion in a dll (and should export symbols for example).
  14199. + lt_prog_compiler_pic='-DDLL_EXPORT'
  14200. + ;;
  14201. +
  14202. + hpux9* | hpux10* | hpux11*)
  14203. + lt_prog_compiler_wl='-Wl,'
  14204. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14205. + # not for PA HP-UX.
  14206. + case $host_cpu in
  14207. + hppa*64*|ia64*)
  14208. + # +Z the default
  14209. + ;;
  14210. + *)
  14211. + lt_prog_compiler_pic='+Z'
  14212. + ;;
  14213. + esac
  14214. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14215. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  14216. + ;;
  14217. +
  14218. + irix5* | irix6* | nonstopux*)
  14219. + lt_prog_compiler_wl='-Wl,'
  14220. + # PIC (with -KPIC) is the default.
  14221. + lt_prog_compiler_static='-non_shared'
  14222. + ;;
  14223. +
  14224. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  14225. + case $cc_basename in
  14226. + # old Intel for x86_64 which still supported -KPIC.
  14227. + ecc*)
  14228. + lt_prog_compiler_wl='-Wl,'
  14229. + lt_prog_compiler_pic='-KPIC'
  14230. + lt_prog_compiler_static='-static'
  14231. + ;;
  14232. + # icc used to be incompatible with GCC.
  14233. + # ICC 10 doesn't accept -KPIC any more.
  14234. + icc* | ifort*)
  14235. + lt_prog_compiler_wl='-Wl,'
  14236. + lt_prog_compiler_pic='-fPIC'
  14237. + lt_prog_compiler_static='-static'
  14238. + ;;
  14239. + # Lahey Fortran 8.1.
  14240. + lf95*)
  14241. + lt_prog_compiler_wl='-Wl,'
  14242. + lt_prog_compiler_pic='--shared'
  14243. + lt_prog_compiler_static='--static'
  14244. + ;;
  14245. + pgcc* | pgf77* | pgf90* | pgf95*)
  14246. + # Portland Group compilers (*not* the Pentium gcc compiler,
  14247. + # which looks to be a dead project)
  14248. + lt_prog_compiler_wl='-Wl,'
  14249. + lt_prog_compiler_pic='-fpic'
  14250. + lt_prog_compiler_static='-Bstatic'
  14251. + ;;
  14252. + ccc*)
  14253. + lt_prog_compiler_wl='-Wl,'
  14254. + # All Alpha code is PIC.
  14255. + lt_prog_compiler_static='-non_shared'
  14256. + ;;
  14257. + xl*)
  14258. + # IBM XL C 8.0/Fortran 10.1 on PPC
  14259. + lt_prog_compiler_wl='-Wl,'
  14260. + lt_prog_compiler_pic='-qpic'
  14261. + lt_prog_compiler_static='-qstaticlink'
  14262. + ;;
  14263. + *)
  14264. + case `$CC -V 2>&1 | sed 5q` in
  14265. + *Sun\ C*)
  14266. + # Sun C 5.9
  14267. + lt_prog_compiler_pic='-KPIC'
  14268. + lt_prog_compiler_static='-Bstatic'
  14269. + lt_prog_compiler_wl='-Wl,'
  14270. + ;;
  14271. + *Sun\ F*)
  14272. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  14273. + lt_prog_compiler_pic='-KPIC'
  14274. + lt_prog_compiler_static='-Bstatic'
  14275. + lt_prog_compiler_wl=''
  14276. + ;;
  14277. + esac
  14278. + ;;
  14279. + esac
  14280. + ;;
  14281. +
  14282. + newsos6)
  14283. + lt_prog_compiler_pic='-KPIC'
  14284. + lt_prog_compiler_static='-Bstatic'
  14285. + ;;
  14286. +
  14287. + *nto* | *qnx*)
  14288. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  14289. + # it will coredump.
  14290. + lt_prog_compiler_pic='-fPIC -shared'
  14291. + ;;
  14292. +
  14293. + osf3* | osf4* | osf5*)
  14294. + lt_prog_compiler_wl='-Wl,'
  14295. + # All OSF/1 code is PIC.
  14296. + lt_prog_compiler_static='-non_shared'
  14297. + ;;
  14298. +
  14299. + rdos*)
  14300. + lt_prog_compiler_static='-non_shared'
  14301. + ;;
  14302. +
  14303. + solaris*)
  14304. + lt_prog_compiler_pic='-KPIC'
  14305. + lt_prog_compiler_static='-Bstatic'
  14306. + case $cc_basename in
  14307. + f77* | f90* | f95*)
  14308. + lt_prog_compiler_wl='-Qoption ld ';;
  14309. + *)
  14310. + lt_prog_compiler_wl='-Wl,';;
  14311. + esac
  14312. + ;;
  14313. +
  14314. + sunos4*)
  14315. + lt_prog_compiler_wl='-Qoption ld '
  14316. + lt_prog_compiler_pic='-PIC'
  14317. + lt_prog_compiler_static='-Bstatic'
  14318. + ;;
  14319. +
  14320. + sysv4 | sysv4.2uw2* | sysv4.3*)
  14321. + lt_prog_compiler_wl='-Wl,'
  14322. + lt_prog_compiler_pic='-KPIC'
  14323. + lt_prog_compiler_static='-Bstatic'
  14324. + ;;
  14325. +
  14326. + sysv4*MP*)
  14327. + if test -d /usr/nec ;then
  14328. + lt_prog_compiler_pic='-Kconform_pic'
  14329. + lt_prog_compiler_static='-Bstatic'
  14330. + fi
  14331. + ;;
  14332. +
  14333. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14334. + lt_prog_compiler_wl='-Wl,'
  14335. + lt_prog_compiler_pic='-KPIC'
  14336. + lt_prog_compiler_static='-Bstatic'
  14337. + ;;
  14338. +
  14339. + unicos*)
  14340. + lt_prog_compiler_wl='-Wl,'
  14341. + lt_prog_compiler_can_build_shared=no
  14342. + ;;
  14343. +
  14344. + uts4*)
  14345. + lt_prog_compiler_pic='-pic'
  14346. + lt_prog_compiler_static='-Bstatic'
  14347. + ;;
  14348. +
  14349. + *)
  14350. + lt_prog_compiler_can_build_shared=no
  14351. + ;;
  14352. + esac
  14353. + fi
  14354. +
  14355. +case $host_os in
  14356. + # For platforms which do not support PIC, -DPIC is meaningless:
  14357. + *djgpp*)
  14358. + lt_prog_compiler_pic=
  14359. + ;;
  14360. + *)
  14361. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  14362. + ;;
  14363. +esac
  14364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  14365. +$as_echo "$lt_prog_compiler_pic" >&6; }
  14366. +
  14367. +
  14368. +
  14369. +
  14370. +
  14371. +
  14372. +#
  14373. +# Check to make sure the PIC flag actually works.
  14374. +#
  14375. +if test -n "$lt_prog_compiler_pic"; then
  14376. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  14377. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  14378. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  14379. + $as_echo_n "(cached) " >&6
  14380. +else
  14381. + lt_cv_prog_compiler_pic_works=no
  14382. + ac_outfile=conftest.$ac_objext
  14383. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14384. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  14385. + # Insert the option either (1) after the last *FLAGS variable, or
  14386. + # (2) before a word containing "conftest.", or (3) at the end.
  14387. + # Note that $ac_compile itself does not contain backslashes and begins
  14388. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  14389. + # The option is referenced via a variable to avoid confusing sed.
  14390. + lt_compile=`echo "$ac_compile" | $SED \
  14391. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14392. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14393. + -e 's:$: $lt_compiler_flag:'`
  14394. + (eval echo "\"\$as_me:8835: $lt_compile\"" >&5)
  14395. + (eval "$lt_compile" 2>conftest.err)
  14396. + ac_status=$?
  14397. + cat conftest.err >&5
  14398. + echo "$as_me:8839: \$? = $ac_status" >&5
  14399. + if (exit $ac_status) && test -s "$ac_outfile"; then
  14400. + # The compiler can only warn and ignore the option if not recognized
  14401. + # So say no if there are warnings other than the usual output.
  14402. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14403. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14404. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14405. + lt_cv_prog_compiler_pic_works=yes
  14406. + fi
  14407. + fi
  14408. + $RM conftest*
  14409. +
  14410. +fi
  14411. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  14412. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  14413. +
  14414. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  14415. + case $lt_prog_compiler_pic in
  14416. + "" | " "*) ;;
  14417. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  14418. + esac
  14419. +else
  14420. + lt_prog_compiler_pic=
  14421. + lt_prog_compiler_can_build_shared=no
  14422. +fi
  14423. +
  14424. +fi
  14425. +
  14426. +
  14427. +
  14428. +
  14429. +
  14430. +
  14431. +#
  14432. +# Check to make sure the static flag actually works.
  14433. +#
  14434. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  14435. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14436. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14437. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  14438. + $as_echo_n "(cached) " >&6
  14439. +else
  14440. + lt_cv_prog_compiler_static_works=no
  14441. + save_LDFLAGS="$LDFLAGS"
  14442. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14443. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14444. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14445. + # The linker can only warn and ignore the option if not recognized
  14446. + # So say no if there are warnings
  14447. + if test -s conftest.err; then
  14448. + # Append any errors to the config.log.
  14449. + cat conftest.err 1>&5
  14450. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14451. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14452. + if diff conftest.exp conftest.er2 >/dev/null; then
  14453. + lt_cv_prog_compiler_static_works=yes
  14454. + fi
  14455. + else
  14456. + lt_cv_prog_compiler_static_works=yes
  14457. + fi
  14458. + fi
  14459. + $RM -r conftest*
  14460. + LDFLAGS="$save_LDFLAGS"
  14461. +
  14462. +fi
  14463. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  14464. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  14465. +
  14466. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  14467. + :
  14468. +else
  14469. + lt_prog_compiler_static=
  14470. +fi
  14471. +
  14472. +
  14473. +
  14474. +
  14475. +
  14476. +
  14477. +
  14478. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14479. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14480. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  14481. + $as_echo_n "(cached) " >&6
  14482. +else
  14483. + lt_cv_prog_compiler_c_o=no
  14484. + $RM -r conftest 2>/dev/null
  14485. + mkdir conftest
  14486. + cd conftest
  14487. + mkdir out
  14488. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14489. +
  14490. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  14491. + # Insert the option either (1) after the last *FLAGS variable, or
  14492. + # (2) before a word containing "conftest.", or (3) at the end.
  14493. + # Note that $ac_compile itself does not contain backslashes and begins
  14494. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  14495. + lt_compile=`echo "$ac_compile" | $SED \
  14496. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14497. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14498. + -e 's:$: $lt_compiler_flag:'`
  14499. + (eval echo "\"\$as_me:8940: $lt_compile\"" >&5)
  14500. + (eval "$lt_compile" 2>out/conftest.err)
  14501. + ac_status=$?
  14502. + cat out/conftest.err >&5
  14503. + echo "$as_me:8944: \$? = $ac_status" >&5
  14504. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14505. + then
  14506. + # The compiler can only warn and ignore the option if not recognized
  14507. + # So say no if there are warnings
  14508. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14509. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14510. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14511. + lt_cv_prog_compiler_c_o=yes
  14512. + fi
  14513. + fi
  14514. + chmod u+w . 2>&5
  14515. + $RM conftest*
  14516. + # SGI C++ compiler will create directory out/ii_files/ for
  14517. + # template instantiation
  14518. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14519. + $RM out/* && rmdir out
  14520. + cd ..
  14521. + $RM -r conftest
  14522. + $RM conftest*
  14523. +
  14524. +fi
  14525. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  14526. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  14527. +
  14528. +
  14529. +
  14530. +
  14531. +
  14532. +
  14533. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14534. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14535. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  14536. + $as_echo_n "(cached) " >&6
  14537. +else
  14538. + lt_cv_prog_compiler_c_o=no
  14539. + $RM -r conftest 2>/dev/null
  14540. + mkdir conftest
  14541. + cd conftest
  14542. + mkdir out
  14543. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14544. +
  14545. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  14546. + # Insert the option either (1) after the last *FLAGS variable, or
  14547. + # (2) before a word containing "conftest.", or (3) at the end.
  14548. + # Note that $ac_compile itself does not contain backslashes and begins
  14549. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  14550. + lt_compile=`echo "$ac_compile" | $SED \
  14551. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14552. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14553. + -e 's:$: $lt_compiler_flag:'`
  14554. + (eval echo "\"\$as_me:8995: $lt_compile\"" >&5)
  14555. + (eval "$lt_compile" 2>out/conftest.err)
  14556. + ac_status=$?
  14557. + cat out/conftest.err >&5
  14558. + echo "$as_me:8999: \$? = $ac_status" >&5
  14559. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14560. + then
  14561. + # The compiler can only warn and ignore the option if not recognized
  14562. + # So say no if there are warnings
  14563. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14564. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14565. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14566. + lt_cv_prog_compiler_c_o=yes
  14567. + fi
  14568. + fi
  14569. + chmod u+w . 2>&5
  14570. + $RM conftest*
  14571. + # SGI C++ compiler will create directory out/ii_files/ for
  14572. + # template instantiation
  14573. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14574. + $RM out/* && rmdir out
  14575. + cd ..
  14576. + $RM -r conftest
  14577. + $RM conftest*
  14578. +
  14579. +fi
  14580. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  14581. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  14582. +
  14583. +
  14584. +
  14585. +
  14586. +hard_links="nottested"
  14587. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  14588. + # do not overwrite the value of need_locks provided by the user
  14589. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14590. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  14591. + hard_links=yes
  14592. + $RM conftest*
  14593. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14594. + touch conftest.a
  14595. + ln conftest.a conftest.b 2>&5 || hard_links=no
  14596. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14597. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14598. +$as_echo "$hard_links" >&6; }
  14599. + if test "$hard_links" = no; then
  14600. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14601. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14602. + need_locks=warn
  14603. + fi
  14604. +else
  14605. + need_locks=no
  14606. +fi
  14607. +
  14608. +
  14609. +
  14610. +
  14611. +
  14612. +
  14613. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14614. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14615. +
  14616. + runpath_var=
  14617. + allow_undefined_flag=
  14618. + always_export_symbols=no
  14619. + archive_cmds=
  14620. + archive_expsym_cmds=
  14621. + compiler_needs_object=no
  14622. + enable_shared_with_static_runtimes=no
  14623. + export_dynamic_flag_spec=
  14624. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14625. + hardcode_automatic=no
  14626. + hardcode_direct=no
  14627. + hardcode_direct_absolute=no
  14628. + hardcode_libdir_flag_spec=
  14629. + hardcode_libdir_flag_spec_ld=
  14630. + hardcode_libdir_separator=
  14631. + hardcode_minus_L=no
  14632. + hardcode_shlibpath_var=unsupported
  14633. + inherit_rpath=no
  14634. + link_all_deplibs=unknown
  14635. + module_cmds=
  14636. + module_expsym_cmds=
  14637. + old_archive_from_new_cmds=
  14638. + old_archive_from_expsyms_cmds=
  14639. + thread_safe_flag_spec=
  14640. + whole_archive_flag_spec=
  14641. + # include_expsyms should be a list of space-separated symbols to be *always*
  14642. + # included in the symbol list
  14643. + include_expsyms=
  14644. + # exclude_expsyms can be an extended regexp of symbols to exclude
  14645. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14646. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14647. + # as well as any symbol that contains `d'.
  14648. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14649. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14650. + # platforms (ab)use it in PIC code, but their linkers get confused if
  14651. + # the symbol is explicitly referenced. Since portable code cannot
  14652. + # rely on this symbol name, it's probably fine to never include it in
  14653. + # preloaded symbol tables.
  14654. + # Exclude shared library initialization/finalization symbols.
  14655. + extract_expsyms_cmds=
  14656. +
  14657. + case $host_os in
  14658. + cygwin* | mingw* | pw32* | cegcc*)
  14659. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14660. + # When not using gcc, we currently assume that we are using
  14661. + # Microsoft Visual C++.
  14662. + if test "$GCC" != yes; then
  14663. + with_gnu_ld=no
  14664. + fi
  14665. + ;;
  14666. + interix*)
  14667. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  14668. + with_gnu_ld=yes
  14669. + ;;
  14670. + openbsd*)
  14671. + with_gnu_ld=no
  14672. + ;;
  14673. + linux* | k*bsd*-gnu)
  14674. + link_all_deplibs=no
  14675. + ;;
  14676. + esac
  14677. +
  14678. + ld_shlibs=yes
  14679. + if test "$with_gnu_ld" = yes; then
  14680. + # If archive_cmds runs LD, not CC, wlarc should be empty
  14681. + wlarc='${wl}'
  14682. +
  14683. + # Set some defaults for GNU ld with shared library support. These
  14684. + # are reset later if shared libraries are not supported. Putting them
  14685. + # here allows them to be overridden if necessary.
  14686. + runpath_var=LD_RUN_PATH
  14687. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  14688. + export_dynamic_flag_spec='${wl}--export-dynamic'
  14689. + # ancient GNU ld didn't support --whole-archive et. al.
  14690. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  14691. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14692. + else
  14693. + whole_archive_flag_spec=
  14694. + fi
  14695. + supports_anon_versioning=no
  14696. + case `$LD -v 2>&1` in
  14697. + *GNU\ gold*) supports_anon_versioning=yes ;;
  14698. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14699. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14700. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14701. + *\ 2.11.*) ;; # other 2.11 versions
  14702. + *) supports_anon_versioning=yes ;;
  14703. + esac
  14704. +
  14705. + # See if GNU ld supports shared libraries.
  14706. + case $host_os in
  14707. + aix[3-9]*)
  14708. + # On AIX/PPC, the GNU linker is very broken
  14709. + if test "$host_cpu" != ia64; then
  14710. + ld_shlibs=no
  14711. + cat <<_LT_EOF 1>&2
  14712. +
  14713. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14714. +*** to be unable to reliably create shared libraries on AIX.
  14715. +*** Therefore, libtool is disabling shared libraries support. If you
  14716. +*** really care for shared libraries, you may want to modify your PATH
  14717. +*** so that a non-GNU linker is found, and then restart.
  14718. +
  14719. +_LT_EOF
  14720. + fi
  14721. + ;;
  14722. +
  14723. + amigaos*)
  14724. + case $host_cpu in
  14725. + powerpc)
  14726. + # see comment about AmigaOS4 .so support
  14727. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14728. + archive_expsym_cmds=''
  14729. + ;;
  14730. + m68k)
  14731. + 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)'
  14732. + hardcode_libdir_flag_spec='-L$libdir'
  14733. + hardcode_minus_L=yes
  14734. + ;;
  14735. + esac
  14736. + ;;
  14737. +
  14738. + beos*)
  14739. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  14740. + allow_undefined_flag=unsupported
  14741. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  14742. + # support --undefined. This deserves some investigation. FIXME
  14743. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14744. + else
  14745. + ld_shlibs=no
  14746. + fi
  14747. + ;;
  14748. +
  14749. + cygwin* | mingw* | pw32* | cegcc*)
  14750. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  14751. + # as there is no search path for DLLs.
  14752. + hardcode_libdir_flag_spec='-L$libdir'
  14753. + allow_undefined_flag=unsupported
  14754. + always_export_symbols=no
  14755. + enable_shared_with_static_runtimes=yes
  14756. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  14757. +
  14758. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  14759. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14760. + # If the export-symbols file already is a .def file (1st line
  14761. + # is EXPORTS), use it as is; otherwise, prepend...
  14762. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14763. + cp $export_symbols $output_objdir/$soname.def;
  14764. + else
  14765. + echo EXPORTS > $output_objdir/$soname.def;
  14766. + cat $export_symbols >> $output_objdir/$soname.def;
  14767. + fi~
  14768. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14769. + else
  14770. + ld_shlibs=no
  14771. + fi
  14772. + ;;
  14773. +
  14774. + interix[3-9]*)
  14775. + hardcode_direct=no
  14776. + hardcode_shlibpath_var=no
  14777. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  14778. + export_dynamic_flag_spec='${wl}-E'
  14779. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14780. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  14781. + # default) and relocated if they conflict, which is a slow very memory
  14782. + # consuming and fragmenting process. To avoid this, we pick a random,
  14783. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14784. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14785. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  14786. + 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'
  14787. + ;;
  14788. +
  14789. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  14790. + tmp_diet=no
  14791. + if test "$host_os" = linux-dietlibc; then
  14792. + case $cc_basename in
  14793. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  14794. + esac
  14795. + fi
  14796. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  14797. + && test "$tmp_diet" = no
  14798. + then
  14799. + tmp_addflag=
  14800. + tmp_sharedflag='-shared'
  14801. + case $cc_basename,$host_cpu in
  14802. + pgcc*) # Portland Group C compiler
  14803. + 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'
  14804. + tmp_addflag=' $pic_flag'
  14805. + ;;
  14806. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14807. + 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'
  14808. + tmp_addflag=' $pic_flag -Mnomain' ;;
  14809. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14810. + tmp_addflag=' -i_dynamic' ;;
  14811. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14812. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  14813. + ifc* | ifort*) # Intel Fortran compiler
  14814. + tmp_addflag=' -nofor_main' ;;
  14815. + lf95*) # Lahey Fortran 8.1
  14816. + whole_archive_flag_spec=
  14817. + tmp_sharedflag='--shared' ;;
  14818. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  14819. + tmp_sharedflag='-qmkshrobj'
  14820. + tmp_addflag= ;;
  14821. + esac
  14822. + case `$CC -V 2>&1 | sed 5q` in
  14823. + *Sun\ C*) # Sun C 5.9
  14824. + 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'
  14825. + compiler_needs_object=yes
  14826. + tmp_sharedflag='-G' ;;
  14827. + *Sun\ F*) # Sun Fortran 8.3
  14828. + tmp_sharedflag='-G' ;;
  14829. + esac
  14830. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14831. +
  14832. + if test "x$supports_anon_versioning" = xyes; then
  14833. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  14834. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14835. + echo "local: *; };" >> $output_objdir/$libname.ver~
  14836. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14837. + fi
  14838. +
  14839. + case $cc_basename in
  14840. + xlf*)
  14841. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  14842. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  14843. + hardcode_libdir_flag_spec=
  14844. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  14845. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  14846. + if test "x$supports_anon_versioning" = xyes; then
  14847. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  14848. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14849. + echo "local: *; };" >> $output_objdir/$libname.ver~
  14850. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  14851. + fi
  14852. + ;;
  14853. + esac
  14854. + else
  14855. + ld_shlibs=no
  14856. + fi
  14857. + ;;
  14858. +
  14859. + netbsd* | netbsdelf*-gnu)
  14860. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14861. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14862. + wlarc=
  14863. + else
  14864. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14865. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14866. + fi
  14867. + ;;
  14868. +
  14869. + solaris*)
  14870. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  14871. + ld_shlibs=no
  14872. + cat <<_LT_EOF 1>&2
  14873. +
  14874. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14875. +*** create shared libraries on Solaris systems. Therefore, libtool
  14876. +*** is disabling shared libraries support. We urge you to upgrade GNU
  14877. +*** binutils to release 2.9.1 or newer. Another option is to modify
  14878. +*** your PATH or compiler configuration so that the native linker is
  14879. +*** used, and then restart.
  14880. +
  14881. +_LT_EOF
  14882. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  14883. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14884. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14885. + else
  14886. + ld_shlibs=no
  14887. + fi
  14888. + ;;
  14889. +
  14890. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14891. + case `$LD -v 2>&1` in
  14892. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  14893. + ld_shlibs=no
  14894. + cat <<_LT_EOF 1>&2
  14895. +
  14896. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14897. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  14898. +*** is disabling shared libraries support. We urge you to upgrade GNU
  14899. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14900. +*** your PATH or compiler configuration so that the native linker is
  14901. +*** used, and then restart.
  14902. +
  14903. +_LT_EOF
  14904. + ;;
  14905. + *)
  14906. + # For security reasons, it is highly recommended that you always
  14907. + # use absolute paths for naming shared libraries, and exclude the
  14908. + # DT_RUNPATH tag from executables and libraries. But doing so
  14909. + # requires that you compile everything twice, which is a pain.
  14910. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  14911. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  14912. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14913. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14914. + else
  14915. + ld_shlibs=no
  14916. + fi
  14917. + ;;
  14918. + esac
  14919. + ;;
  14920. +
  14921. + sunos4*)
  14922. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14923. + wlarc=
  14924. + hardcode_direct=yes
  14925. + hardcode_shlibpath_var=no
  14926. + ;;
  14927. +
  14928. + *)
  14929. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  14930. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14931. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14932. + else
  14933. + ld_shlibs=no
  14934. + fi
  14935. + ;;
  14936. + esac
  14937. +
  14938. + if test "$ld_shlibs" = no; then
  14939. + runpath_var=
  14940. + hardcode_libdir_flag_spec=
  14941. + export_dynamic_flag_spec=
  14942. + whole_archive_flag_spec=
  14943. + fi
  14944. + else
  14945. + # PORTME fill in a description of your system's linker (not GNU ld)
  14946. + case $host_os in
  14947. + aix3*)
  14948. + allow_undefined_flag=unsupported
  14949. + always_export_symbols=yes
  14950. + 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'
  14951. + # Note: this linker hardcodes the directories in LIBPATH if there
  14952. + # are no directories specified by -L.
  14953. + hardcode_minus_L=yes
  14954. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14955. + # Neither direct hardcoding nor static linking is supported with a
  14956. + # broken collect2.
  14957. + hardcode_direct=unsupported
  14958. + fi
  14959. + ;;
  14960. +
  14961. + aix[4-9]*)
  14962. + if test "$host_cpu" = ia64; then
  14963. + # On IA64, the linker does run time linking by default, so we don't
  14964. + # have to do anything special.
  14965. + aix_use_runtimelinking=no
  14966. + exp_sym_flag='-Bexport'
  14967. + no_entry_flag=""
  14968. + else
  14969. + # If we're using GNU nm, then we don't want the "-C" option.
  14970. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14971. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14972. + 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'
  14973. + else
  14974. + 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'
  14975. + fi
  14976. + aix_use_runtimelinking=no
  14977. +
  14978. + # Test if we are trying to use run time linking or normal
  14979. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14980. + # need to do runtime linking.
  14981. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  14982. + for ld_flag in $LDFLAGS; do
  14983. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14984. + aix_use_runtimelinking=yes
  14985. + break
  14986. + fi
  14987. + done
  14988. + ;;
  14989. + esac
  14990. +
  14991. + exp_sym_flag='-bexport'
  14992. + no_entry_flag='-bnoentry'
  14993. + fi
  14994. +
  14995. + # When large executables or shared objects are built, AIX ld can
  14996. + # have problems creating the table of contents. If linking a library
  14997. + # or program results in "error TOC overflow" add -mminimal-toc to
  14998. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14999. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15000. +
  15001. + archive_cmds=''
  15002. + hardcode_direct=yes
  15003. + hardcode_direct_absolute=yes
  15004. + hardcode_libdir_separator=':'
  15005. + link_all_deplibs=yes
  15006. + file_list_spec='${wl}-f,'
  15007. +
  15008. + if test "$GCC" = yes; then
  15009. + case $host_os in aix4.[012]|aix4.[012].*)
  15010. + # We only want to do this on AIX 4.2 and lower, the check
  15011. + # below for broken collect2 doesn't work under 4.3+
  15012. + collect2name=`${CC} -print-prog-name=collect2`
  15013. + if test -f "$collect2name" &&
  15014. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  15015. + then
  15016. + # We have reworked collect2
  15017. + :
  15018. + else
  15019. + # We have old collect2
  15020. + hardcode_direct=unsupported
  15021. + # It fails to find uninstalled libraries when the uninstalled
  15022. + # path is not listed in the libpath. Setting hardcode_minus_L
  15023. + # to unsupported forces relinking
  15024. + hardcode_minus_L=yes
  15025. + hardcode_libdir_flag_spec='-L$libdir'
  15026. + hardcode_libdir_separator=
  15027. + fi
  15028. + ;;
  15029. + esac
  15030. + shared_flag='-shared'
  15031. + if test "$aix_use_runtimelinking" = yes; then
  15032. + shared_flag="$shared_flag "'${wl}-G'
  15033. + fi
  15034. + link_all_deplibs=no
  15035. + else
  15036. + # not using gcc
  15037. + if test "$host_cpu" = ia64; then
  15038. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15039. + # chokes on -Wl,-G. The following line is correct:
  15040. + shared_flag='-G'
  15041. + else
  15042. + if test "$aix_use_runtimelinking" = yes; then
  15043. + shared_flag='${wl}-G'
  15044. + else
  15045. + shared_flag='${wl}-bM:SRE'
  15046. + fi
  15047. + fi
  15048. + fi
  15049. +
  15050. + export_dynamic_flag_spec='${wl}-bexpall'
  15051. + # It seems that -bexpall does not export symbols beginning with
  15052. + # underscore (_), so it is better to generate a list of symbols to export.
  15053. + always_export_symbols=yes
  15054. + if test "$aix_use_runtimelinking" = yes; then
  15055. + # Warning - without using the other runtime loading flags (-brtl),
  15056. + # -berok will link without error, but may produce a broken library.
  15057. + allow_undefined_flag='-berok'
  15058. + # Determine the default libpath from the value encoded in an
  15059. + # empty executable.
  15060. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15061. +/* end confdefs.h. */
  15062. +
  15063. +int
  15064. +main ()
  15065. +{
  15066. +
  15067. + ;
  15068. + return 0;
  15069. +}
  15070. +_ACEOF
  15071. +if ac_fn_c_try_link "$LINENO"; then :
  15072. +
  15073. +lt_aix_libpath_sed='
  15074. + /Import File Strings/,/^$/ {
  15075. + /^0/ {
  15076. + s/^0 *\(.*\)$/\1/
  15077. + p
  15078. + }
  15079. + }'
  15080. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15081. +# Check for a 64-bit object if we didn't find anything.
  15082. +if test -z "$aix_libpath"; then
  15083. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15084. +fi
  15085. +fi
  15086. +rm -f core conftest.err conftest.$ac_objext \
  15087. + conftest$ac_exeext conftest.$ac_ext
  15088. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15089. +
  15090. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  15091. + 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"
  15092. + else
  15093. + if test "$host_cpu" = ia64; then
  15094. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  15095. + allow_undefined_flag="-z nodefs"
  15096. + 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"
  15097. + else
  15098. + # Determine the default libpath from the value encoded in an
  15099. + # empty executable.
  15100. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15101. +/* end confdefs.h. */
  15102. +
  15103. +int
  15104. +main ()
  15105. +{
  15106. +
  15107. + ;
  15108. + return 0;
  15109. +}
  15110. +_ACEOF
  15111. +if ac_fn_c_try_link "$LINENO"; then :
  15112. +
  15113. +lt_aix_libpath_sed='
  15114. + /Import File Strings/,/^$/ {
  15115. + /^0/ {
  15116. + s/^0 *\(.*\)$/\1/
  15117. + p
  15118. + }
  15119. + }'
  15120. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15121. +# Check for a 64-bit object if we didn't find anything.
  15122. +if test -z "$aix_libpath"; then
  15123. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15124. +fi
  15125. +fi
  15126. +rm -f core conftest.err conftest.$ac_objext \
  15127. + conftest$ac_exeext conftest.$ac_ext
  15128. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15129. +
  15130. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  15131. + # Warning - without using the other run time loading flags,
  15132. + # -berok will link without error, but may produce a broken library.
  15133. + no_undefined_flag=' ${wl}-bernotok'
  15134. + allow_undefined_flag=' ${wl}-berok'
  15135. + # Exported symbols can be pulled into shared objects from archives
  15136. + whole_archive_flag_spec='$convenience'
  15137. + archive_cmds_need_lc=yes
  15138. + # This is similar to how AIX traditionally builds its shared libraries.
  15139. + 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'
  15140. + fi
  15141. + fi
  15142. + ;;
  15143. +
  15144. + amigaos*)
  15145. + case $host_cpu in
  15146. + powerpc)
  15147. + # see comment about AmigaOS4 .so support
  15148. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15149. + archive_expsym_cmds=''
  15150. + ;;
  15151. + m68k)
  15152. + 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)'
  15153. + hardcode_libdir_flag_spec='-L$libdir'
  15154. + hardcode_minus_L=yes
  15155. + ;;
  15156. + esac
  15157. + ;;
  15158. +
  15159. + bsdi[45]*)
  15160. + export_dynamic_flag_spec=-rdynamic
  15161. + ;;
  15162. +
  15163. + cygwin* | mingw* | pw32* | cegcc*)
  15164. + # When not using gcc, we currently assume that we are using
  15165. + # Microsoft Visual C++.
  15166. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  15167. + # no search path for DLLs.
  15168. + hardcode_libdir_flag_spec=' '
  15169. + allow_undefined_flag=unsupported
  15170. + # Tell ltmain to make .lib files, not .a files.
  15171. + libext=lib
  15172. + # Tell ltmain to make .dll files, not .so files.
  15173. + shrext_cmds=".dll"
  15174. + # FIXME: Setting linknames here is a bad hack.
  15175. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15176. + # The linker will automatically build a .lib file if we build a DLL.
  15177. + old_archive_from_new_cmds='true'
  15178. + # FIXME: Should let the user specify the lib program.
  15179. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  15180. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  15181. + enable_shared_with_static_runtimes=yes
  15182. + ;;
  15183. +
  15184. + darwin* | rhapsody*)
  15185. +
  15186. +
  15187. + archive_cmds_need_lc=no
  15188. + hardcode_direct=no
  15189. + hardcode_automatic=yes
  15190. + hardcode_shlibpath_var=unsupported
  15191. + whole_archive_flag_spec=''
  15192. + link_all_deplibs=yes
  15193. + allow_undefined_flag="$_lt_dar_allow_undefined"
  15194. + case $cc_basename in
  15195. + ifort*) _lt_dar_can_shared=yes ;;
  15196. + *) _lt_dar_can_shared=$GCC ;;
  15197. + esac
  15198. + if test "$_lt_dar_can_shared" = "yes"; then
  15199. + output_verbose_link_cmd=echo
  15200. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  15201. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  15202. + 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}"
  15203. + 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}"
  15204. +
  15205. + else
  15206. + ld_shlibs=no
  15207. + fi
  15208. +
  15209. + ;;
  15210. +
  15211. + dgux*)
  15212. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15213. + hardcode_libdir_flag_spec='-L$libdir'
  15214. + hardcode_shlibpath_var=no
  15215. + ;;
  15216. +
  15217. + freebsd1*)
  15218. + ld_shlibs=no
  15219. + ;;
  15220. +
  15221. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15222. + # support. Future versions do this automatically, but an explicit c++rt0.o
  15223. + # does not break anything, and helps significantly (at the cost of a little
  15224. + # extra space).
  15225. + freebsd2.2*)
  15226. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15227. + hardcode_libdir_flag_spec='-R$libdir'
  15228. + hardcode_direct=yes
  15229. + hardcode_shlibpath_var=no
  15230. + ;;
  15231. +
  15232. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15233. + freebsd2*)
  15234. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15235. + hardcode_direct=yes
  15236. + hardcode_minus_L=yes
  15237. + hardcode_shlibpath_var=no
  15238. + ;;
  15239. +
  15240. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15241. + freebsd* | dragonfly*)
  15242. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15243. + hardcode_libdir_flag_spec='-R$libdir'
  15244. + hardcode_direct=yes
  15245. + hardcode_shlibpath_var=no
  15246. + ;;
  15247. +
  15248. + hpux9*)
  15249. + if test "$GCC" = yes; then
  15250. + 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'
  15251. + else
  15252. + 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'
  15253. + fi
  15254. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  15255. + hardcode_libdir_separator=:
  15256. + hardcode_direct=yes
  15257. +
  15258. + # hardcode_minus_L: Not really in the search PATH,
  15259. + # but as the default location of the library.
  15260. + hardcode_minus_L=yes
  15261. + export_dynamic_flag_spec='${wl}-E'
  15262. + ;;
  15263. +
  15264. + hpux10*)
  15265. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15266. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15267. + else
  15268. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15269. + fi
  15270. + if test "$with_gnu_ld" = no; then
  15271. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  15272. + hardcode_libdir_flag_spec_ld='+b $libdir'
  15273. + hardcode_libdir_separator=:
  15274. + hardcode_direct=yes
  15275. + hardcode_direct_absolute=yes
  15276. + export_dynamic_flag_spec='${wl}-E'
  15277. + # hardcode_minus_L: Not really in the search PATH,
  15278. + # but as the default location of the library.
  15279. + hardcode_minus_L=yes
  15280. + fi
  15281. + ;;
  15282. +
  15283. + hpux11*)
  15284. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15285. + case $host_cpu in
  15286. + hppa*64*)
  15287. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15288. + ;;
  15289. + ia64*)
  15290. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15291. + ;;
  15292. + *)
  15293. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15294. + ;;
  15295. + esac
  15296. + else
  15297. + case $host_cpu in
  15298. + hppa*64*)
  15299. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15300. + ;;
  15301. + ia64*)
  15302. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15303. + ;;
  15304. + *)
  15305. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15306. + ;;
  15307. + esac
  15308. + fi
  15309. + if test "$with_gnu_ld" = no; then
  15310. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  15311. + hardcode_libdir_separator=:
  15312. +
  15313. + case $host_cpu in
  15314. + hppa*64*|ia64*)
  15315. + hardcode_direct=no
  15316. + hardcode_shlibpath_var=no
  15317. + ;;
  15318. + *)
  15319. + hardcode_direct=yes
  15320. + hardcode_direct_absolute=yes
  15321. + export_dynamic_flag_spec='${wl}-E'
  15322. +
  15323. + # hardcode_minus_L: Not really in the search PATH,
  15324. + # but as the default location of the library.
  15325. + hardcode_minus_L=yes
  15326. + ;;
  15327. + esac
  15328. + fi
  15329. + ;;
  15330. +
  15331. + irix5* | irix6* | nonstopux*)
  15332. + if test "$GCC" = yes; then
  15333. + 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'
  15334. + # Try to use the -exported_symbol ld option, if it does not
  15335. + # work, assume that -exports_file does not work either and
  15336. + # implicitly export all symbols.
  15337. + save_LDFLAGS="$LDFLAGS"
  15338. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  15339. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15340. +/* end confdefs.h. */
  15341. +int foo(void) {}
  15342. +_ACEOF
  15343. +if ac_fn_c_try_link "$LINENO"; then :
  15344. + 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'
  15345. +
  15346. +fi
  15347. +rm -f core conftest.err conftest.$ac_objext \
  15348. + conftest$ac_exeext conftest.$ac_ext
  15349. + LDFLAGS="$save_LDFLAGS"
  15350. + else
  15351. + 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'
  15352. + 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'
  15353. + fi
  15354. + archive_cmds_need_lc='no'
  15355. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15356. + hardcode_libdir_separator=:
  15357. + inherit_rpath=yes
  15358. + link_all_deplibs=yes
  15359. + ;;
  15360. +
  15361. + netbsd* | netbsdelf*-gnu)
  15362. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15363. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15364. + else
  15365. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15366. + fi
  15367. + hardcode_libdir_flag_spec='-R$libdir'
  15368. + hardcode_direct=yes
  15369. + hardcode_shlibpath_var=no
  15370. + ;;
  15371. +
  15372. + newsos6)
  15373. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15374. + hardcode_direct=yes
  15375. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15376. + hardcode_libdir_separator=:
  15377. + hardcode_shlibpath_var=no
  15378. + ;;
  15379. +
  15380. + *nto* | *qnx*)
  15381. + ;;
  15382. +
  15383. + openbsd*)
  15384. + if test -f /usr/libexec/ld.so; then
  15385. + hardcode_direct=yes
  15386. + hardcode_shlibpath_var=no
  15387. + hardcode_direct_absolute=yes
  15388. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15389. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15390. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15391. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  15392. + export_dynamic_flag_spec='${wl}-E'
  15393. + else
  15394. + case $host_os in
  15395. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15396. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15397. + hardcode_libdir_flag_spec='-R$libdir'
  15398. + ;;
  15399. + *)
  15400. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15401. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  15402. + ;;
  15403. + esac
  15404. + fi
  15405. + else
  15406. + ld_shlibs=no
  15407. + fi
  15408. + ;;
  15409. +
  15410. + os2*)
  15411. + hardcode_libdir_flag_spec='-L$libdir'
  15412. + hardcode_minus_L=yes
  15413. + allow_undefined_flag=unsupported
  15414. + 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'
  15415. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15416. + ;;
  15417. +
  15418. + osf3*)
  15419. + if test "$GCC" = yes; then
  15420. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  15421. + 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'
  15422. + else
  15423. + allow_undefined_flag=' -expect_unresolved \*'
  15424. + 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'
  15425. + fi
  15426. + archive_cmds_need_lc='no'
  15427. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15428. + hardcode_libdir_separator=:
  15429. + ;;
  15430. +
  15431. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  15432. + if test "$GCC" = yes; then
  15433. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  15434. + 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'
  15435. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15436. + else
  15437. + allow_undefined_flag=' -expect_unresolved \*'
  15438. + 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'
  15439. + 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~
  15440. + $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'
  15441. +
  15442. + # Both c and cxx compiler support -rpath directly
  15443. + hardcode_libdir_flag_spec='-rpath $libdir'
  15444. + fi
  15445. + archive_cmds_need_lc='no'
  15446. + hardcode_libdir_separator=:
  15447. + ;;
  15448. +
  15449. + solaris*)
  15450. + no_undefined_flag=' -z defs'
  15451. + if test "$GCC" = yes; then
  15452. + wlarc='${wl}'
  15453. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15454. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  15455. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  15456. + else
  15457. + case `$CC -V 2>&1` in
  15458. + *"Compilers 5.0"*)
  15459. + wlarc=''
  15460. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15461. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  15462. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  15463. + ;;
  15464. + *)
  15465. + wlarc='${wl}'
  15466. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15467. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  15468. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  15469. + ;;
  15470. + esac
  15471. + fi
  15472. + hardcode_libdir_flag_spec='-R$libdir'
  15473. + hardcode_shlibpath_var=no
  15474. + case $host_os in
  15475. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  15476. + *)
  15477. + # The compiler driver will combine and reorder linker options,
  15478. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  15479. + # but is careful enough not to reorder.
  15480. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  15481. + if test "$GCC" = yes; then
  15482. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  15483. + else
  15484. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  15485. + fi
  15486. + ;;
  15487. + esac
  15488. + link_all_deplibs=yes
  15489. + ;;
  15490. +
  15491. + sunos4*)
  15492. + if test "x$host_vendor" = xsequent; then
  15493. + # Use $CC to link under sequent, because it throws in some extra .o
  15494. + # files that make .init and .fini sections work.
  15495. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15496. + else
  15497. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15498. + fi
  15499. + hardcode_libdir_flag_spec='-L$libdir'
  15500. + hardcode_direct=yes
  15501. + hardcode_minus_L=yes
  15502. + hardcode_shlibpath_var=no
  15503. + ;;
  15504. +
  15505. + sysv4)
  15506. + case $host_vendor in
  15507. + sni)
  15508. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15509. + hardcode_direct=yes # is this really true???
  15510. + ;;
  15511. + siemens)
  15512. + ## LD is ld it makes a PLAMLIB
  15513. + ## CC just makes a GrossModule.
  15514. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15515. + reload_cmds='$CC -r -o $output$reload_objs'
  15516. + hardcode_direct=no
  15517. + ;;
  15518. + motorola)
  15519. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15520. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  15521. + ;;
  15522. + esac
  15523. + runpath_var='LD_RUN_PATH'
  15524. + hardcode_shlibpath_var=no
  15525. + ;;
  15526. +
  15527. + sysv4.3*)
  15528. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15529. + hardcode_shlibpath_var=no
  15530. + export_dynamic_flag_spec='-Bexport'
  15531. + ;;
  15532. +
  15533. + sysv4*MP*)
  15534. + if test -d /usr/nec; then
  15535. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15536. + hardcode_shlibpath_var=no
  15537. + runpath_var=LD_RUN_PATH
  15538. + hardcode_runpath_var=yes
  15539. + ld_shlibs=yes
  15540. + fi
  15541. + ;;
  15542. +
  15543. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  15544. + no_undefined_flag='${wl}-z,text'
  15545. + archive_cmds_need_lc=no
  15546. + hardcode_shlibpath_var=no
  15547. + runpath_var='LD_RUN_PATH'
  15548. +
  15549. + if test "$GCC" = yes; then
  15550. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15551. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15552. + else
  15553. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15554. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15555. + fi
  15556. + ;;
  15557. +
  15558. + sysv5* | sco3.2v5* | sco5v6*)
  15559. + # Note: We can NOT use -z defs as we might desire, because we do not
  15560. + # link with -lc, and that would cause any symbols used from libc to
  15561. + # always be unresolved, which means just about no library would
  15562. + # ever link correctly. If we're not using GNU ld we use -z text
  15563. + # though, which does catch some bad symbols but isn't as heavy-handed
  15564. + # as -z defs.
  15565. + no_undefined_flag='${wl}-z,text'
  15566. + allow_undefined_flag='${wl}-z,nodefs'
  15567. + archive_cmds_need_lc=no
  15568. + hardcode_shlibpath_var=no
  15569. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  15570. + hardcode_libdir_separator=':'
  15571. + link_all_deplibs=yes
  15572. + export_dynamic_flag_spec='${wl}-Bexport'
  15573. + runpath_var='LD_RUN_PATH'
  15574. +
  15575. + if test "$GCC" = yes; then
  15576. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15577. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15578. + else
  15579. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15580. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15581. + fi
  15582. + ;;
  15583. +
  15584. + uts4*)
  15585. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15586. + hardcode_libdir_flag_spec='-L$libdir'
  15587. + hardcode_shlibpath_var=no
  15588. + ;;
  15589. +
  15590. + *)
  15591. + ld_shlibs=no
  15592. + ;;
  15593. + esac
  15594. +
  15595. + if test x$host_vendor = xsni; then
  15596. + case $host in
  15597. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15598. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  15599. + ;;
  15600. + esac
  15601. + fi
  15602. + fi
  15603. +
  15604. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  15605. +$as_echo "$ld_shlibs" >&6; }
  15606. +test "$ld_shlibs" = no && can_build_shared=no
  15607. +
  15608. +with_gnu_ld=$with_gnu_ld
  15609. +
  15610. +
  15611. +
  15612. +
  15613. +
  15614. +
  15615. +
  15616. +
  15617. +
  15618. +
  15619. +
  15620. +
  15621. +
  15622. +
  15623. +
  15624. +#
  15625. +# Do we need to explicitly link libc?
  15626. +#
  15627. +case "x$archive_cmds_need_lc" in
  15628. +x|xyes)
  15629. + # Assume -lc should be added
  15630. + archive_cmds_need_lc=yes
  15631. +
  15632. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  15633. + case $archive_cmds in
  15634. + *'~'*)
  15635. + # FIXME: we may have to deal with multi-command sequences.
  15636. + ;;
  15637. + '$CC '*)
  15638. + # Test whether the compiler implicitly links with -lc since on some
  15639. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15640. + # to ld, don't add -lc before -lgcc.
  15641. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  15642. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  15643. + $RM conftest*
  15644. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15645. +
  15646. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  15647. + (eval $ac_compile) 2>&5
  15648. + ac_status=$?
  15649. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15650. + test $ac_status = 0; } 2>conftest.err; then
  15651. + soname=conftest
  15652. + lib=conftest
  15653. + libobjs=conftest.$ac_objext
  15654. + deplibs=
  15655. + wl=$lt_prog_compiler_wl
  15656. + pic_flag=$lt_prog_compiler_pic
  15657. + compiler_flags=-v
  15658. + linker_flags=-v
  15659. + verstring=
  15660. + output_objdir=.
  15661. + libname=conftest
  15662. + lt_save_allow_undefined_flag=$allow_undefined_flag
  15663. + allow_undefined_flag=
  15664. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  15665. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15666. + ac_status=$?
  15667. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15668. + test $ac_status = 0; }
  15669. + then
  15670. + archive_cmds_need_lc=no
  15671. + else
  15672. + archive_cmds_need_lc=yes
  15673. + fi
  15674. + allow_undefined_flag=$lt_save_allow_undefined_flag
  15675. + else
  15676. + cat conftest.err 1>&5
  15677. + fi
  15678. + $RM conftest*
  15679. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  15680. +$as_echo "$archive_cmds_need_lc" >&6; }
  15681. + ;;
  15682. + esac
  15683. + fi
  15684. + ;;
  15685. +esac
  15686. +
  15687. +
  15688. +
  15689. +
  15690. +
  15691. +
  15692. +
  15693. +
  15694. +
  15695. +
  15696. +
  15697. +
  15698. +
  15699. +
  15700. +
  15701. +
  15702. +
  15703. +
  15704. +
  15705. +
  15706. +
  15707. +
  15708. +
  15709. +
  15710. +
  15711. +
  15712. +
  15713. +
  15714. +
  15715. +
  15716. +
  15717. +
  15718. +
  15719. +
  15720. +
  15721. +
  15722. +
  15723. +
  15724. +
  15725. +
  15726. +
  15727. +
  15728. +
  15729. +
  15730. +
  15731. +
  15732. +
  15733. +
  15734. +
  15735. +
  15736. +
  15737. +
  15738. +
  15739. +
  15740. +
  15741. +
  15742. +
  15743. +
  15744. +
  15745. +
  15746. +
  15747. +
  15748. +
  15749. +
  15750. +
  15751. +
  15752. +
  15753. +
  15754. +
  15755. +
  15756. +
  15757. +
  15758. +
  15759. +
  15760. +
  15761. +
  15762. +
  15763. +
  15764. +
  15765. +
  15766. +
  15767. +
  15768. +
  15769. +
  15770. +
  15771. +
  15772. +
  15773. +
  15774. +
  15775. +
  15776. +
  15777. +
  15778. +
  15779. +
  15780. +
  15781. +
  15782. +
  15783. +
  15784. +
  15785. +
  15786. +
  15787. +
  15788. +
  15789. +
  15790. +
  15791. +
  15792. +
  15793. +
  15794. +
  15795. +
  15796. +
  15797. +
  15798. +
  15799. +
  15800. +
  15801. +
  15802. +
  15803. +
  15804. +
  15805. +
  15806. +
  15807. +
  15808. +
  15809. +
  15810. +
  15811. +
  15812. +
  15813. +
  15814. +
  15815. +
  15816. +
  15817. +
  15818. +
  15819. +
  15820. +
  15821. +
  15822. +
  15823. +
  15824. +
  15825. +
  15826. +
  15827. +
  15828. +
  15829. +
  15830. +
  15831. +
  15832. +
  15833. +
  15834. +
  15835. +
  15836. +
  15837. +
  15838. +
  15839. +
  15840. +
  15841. +
  15842. +
  15843. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  15844. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  15845. +
  15846. +if test "$GCC" = yes; then
  15847. + case $host_os in
  15848. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  15849. + *) lt_awk_arg="/^libraries:/" ;;
  15850. + esac
  15851. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15852. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  15853. + # if the path contains ";" then we assume it to be the separator
  15854. + # otherwise default to the standard path separator (i.e. ":") - it is
  15855. + # assumed that no part of a normal pathname contains ";" but that should
  15856. + # okay in the real world where ";" in dirpaths is itself problematic.
  15857. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  15858. + else
  15859. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15860. + fi
  15861. + # Ok, now we have the path, separated by spaces, we can step through it
  15862. + # and add multilib dir if necessary.
  15863. + lt_tmp_lt_search_path_spec=
  15864. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  15865. + for lt_sys_path in $lt_search_path_spec; do
  15866. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  15867. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  15868. + else
  15869. + test -d "$lt_sys_path" && \
  15870. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  15871. + fi
  15872. + done
  15873. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  15874. +BEGIN {RS=" "; FS="/|\n";} {
  15875. + lt_foo="";
  15876. + lt_count=0;
  15877. + for (lt_i = NF; lt_i > 0; lt_i--) {
  15878. + if ($lt_i != "" && $lt_i != ".") {
  15879. + if ($lt_i == "..") {
  15880. + lt_count++;
  15881. + } else {
  15882. + if (lt_count == 0) {
  15883. + lt_foo="/" $lt_i lt_foo;
  15884. + } else {
  15885. + lt_count--;
  15886. + }
  15887. + }
  15888. + }
  15889. + }
  15890. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  15891. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  15892. +}'`
  15893. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  15894. +else
  15895. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15896. +fi
  15897. +library_names_spec=
  15898. +libname_spec='lib$name'
  15899. +soname_spec=
  15900. +shrext_cmds=".so"
  15901. +postinstall_cmds=
  15902. +postuninstall_cmds=
  15903. +finish_cmds=
  15904. +finish_eval=
  15905. +shlibpath_var=
  15906. +shlibpath_overrides_runpath=unknown
  15907. +version_type=none
  15908. +dynamic_linker="$host_os ld.so"
  15909. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15910. +need_lib_prefix=unknown
  15911. +hardcode_into_libs=no
  15912. +
  15913. +# when you set need_version to no, make sure it does not cause -set_version
  15914. +# flags to be left without arguments
  15915. +need_version=unknown
  15916. +
  15917. +case $host_os in
  15918. +aix3*)
  15919. + version_type=linux
  15920. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15921. + shlibpath_var=LIBPATH
  15922. +
  15923. + # AIX 3 has no versioning support, so we append a major version to the name.
  15924. + soname_spec='${libname}${release}${shared_ext}$major'
  15925. + ;;
  15926. +
  15927. +aix[4-9]*)
  15928. + version_type=linux
  15929. + need_lib_prefix=no
  15930. + need_version=no
  15931. + hardcode_into_libs=yes
  15932. + if test "$host_cpu" = ia64; then
  15933. + # AIX 5 supports IA64
  15934. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15935. + shlibpath_var=LD_LIBRARY_PATH
  15936. + else
  15937. + # With GCC up to 2.95.x, collect2 would create an import file
  15938. + # for dependence libraries. The import file would start with
  15939. + # the line `#! .'. This would cause the generated library to
  15940. + # depend on `.', always an invalid library. This was fixed in
  15941. + # development snapshots of GCC prior to 3.0.
  15942. + case $host_os in
  15943. + aix4 | aix4.[01] | aix4.[01].*)
  15944. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15945. + echo ' yes '
  15946. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  15947. + :
  15948. + else
  15949. + can_build_shared=no
  15950. + fi
  15951. + ;;
  15952. + esac
  15953. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15954. + # soname into executable. Probably we can add versioning support to
  15955. + # collect2, so additional links can be useful in future.
  15956. + if test "$aix_use_runtimelinking" = yes; then
  15957. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15958. + # instead of lib<name>.a to let people know that these are not
  15959. + # typical AIX shared libraries.
  15960. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15961. + else
  15962. + # We preserve .a as extension for shared libraries through AIX4.2
  15963. + # and later when we are not doing run time linking.
  15964. + library_names_spec='${libname}${release}.a $libname.a'
  15965. + soname_spec='${libname}${release}${shared_ext}$major'
  15966. + fi
  15967. + shlibpath_var=LIBPATH
  15968. + fi
  15969. + ;;
  15970. +
  15971. +amigaos*)
  15972. + case $host_cpu in
  15973. + powerpc)
  15974. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  15975. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  15976. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15977. + ;;
  15978. + m68k)
  15979. + library_names_spec='$libname.ixlibrary $libname.a'
  15980. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15981. + 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'
  15982. + ;;
  15983. + esac
  15984. + ;;
  15985. +
  15986. +beos*)
  15987. + library_names_spec='${libname}${shared_ext}'
  15988. + dynamic_linker="$host_os ld.so"
  15989. + shlibpath_var=LIBRARY_PATH
  15990. + ;;
  15991. +
  15992. +bsdi[45]*)
  15993. + version_type=linux
  15994. + need_version=no
  15995. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15996. + soname_spec='${libname}${release}${shared_ext}$major'
  15997. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15998. + shlibpath_var=LD_LIBRARY_PATH
  15999. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16000. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16001. + # the default ld.so.conf also contains /usr/contrib/lib and
  16002. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16003. + # libtool to hard-code these into programs
  16004. + ;;
  16005. +
  16006. +cygwin* | mingw* | pw32* | cegcc*)
  16007. + version_type=windows
  16008. + shrext_cmds=".dll"
  16009. + need_version=no
  16010. + need_lib_prefix=no
  16011. +
  16012. + case $GCC,$host_os in
  16013. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  16014. + library_names_spec='$libname.dll.a'
  16015. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16016. + postinstall_cmds='base_file=`basename \${file}`~
  16017. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  16018. + dldir=$destdir/`dirname \$dlpath`~
  16019. + test -d \$dldir || mkdir -p \$dldir~
  16020. + $install_prog $dir/$dlname \$dldir/$dlname~
  16021. + chmod a+x \$dldir/$dlname~
  16022. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  16023. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  16024. + fi'
  16025. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16026. + dlpath=$dir/\$dldll~
  16027. + $RM \$dlpath'
  16028. + shlibpath_overrides_runpath=yes
  16029. +
  16030. + case $host_os in
  16031. + cygwin*)
  16032. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16033. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16034. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16035. + ;;
  16036. + mingw* | cegcc*)
  16037. + # MinGW DLLs use traditional 'lib' prefix
  16038. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16039. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16040. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  16041. + # It is most probably a Windows format PATH printed by
  16042. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16043. + # path with ; separators, and with drive letters. We can handle the
  16044. + # drive letters (cygwin fileutils understands them), so leave them,
  16045. + # especially as we might pass files found there to a mingw objdump,
  16046. + # which wouldn't understand a cygwinified path. Ahh.
  16047. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16048. + else
  16049. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16050. + fi
  16051. + ;;
  16052. + pw32*)
  16053. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  16054. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16055. + ;;
  16056. + esac
  16057. + ;;
  16058. +
  16059. + *)
  16060. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16061. + ;;
  16062. + esac
  16063. + dynamic_linker='Win32 ld.exe'
  16064. + # FIXME: first we should search . and the directory the executable is in
  16065. + shlibpath_var=PATH
  16066. + ;;
  16067. +
  16068. +darwin* | rhapsody*)
  16069. + dynamic_linker="$host_os dyld"
  16070. + version_type=darwin
  16071. + need_lib_prefix=no
  16072. + need_version=no
  16073. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16074. + soname_spec='${libname}${release}${major}$shared_ext'
  16075. + shlibpath_overrides_runpath=yes
  16076. + shlibpath_var=DYLD_LIBRARY_PATH
  16077. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16078. +
  16079. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  16080. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16081. + ;;
  16082. +
  16083. +dgux*)
  16084. + version_type=linux
  16085. + need_lib_prefix=no
  16086. + need_version=no
  16087. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16088. + soname_spec='${libname}${release}${shared_ext}$major'
  16089. + shlibpath_var=LD_LIBRARY_PATH
  16090. + ;;
  16091. +
  16092. +freebsd1*)
  16093. + dynamic_linker=no
  16094. + ;;
  16095. +
  16096. +freebsd* | dragonfly*)
  16097. + # DragonFly does not have aout. When/if they implement a new
  16098. + # versioning mechanism, adjust this.
  16099. + if test -x /usr/bin/objformat; then
  16100. + objformat=`/usr/bin/objformat`
  16101. + else
  16102. + case $host_os in
  16103. + freebsd[123]*) objformat=aout ;;
  16104. + *) objformat=elf ;;
  16105. + esac
  16106. + fi
  16107. + version_type=freebsd-$objformat
  16108. + case $version_type in
  16109. + freebsd-elf*)
  16110. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16111. + need_version=no
  16112. + need_lib_prefix=no
  16113. + ;;
  16114. + freebsd-*)
  16115. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16116. + need_version=yes
  16117. + ;;
  16118. + esac
  16119. + shlibpath_var=LD_LIBRARY_PATH
  16120. + case $host_os in
  16121. + freebsd2*)
  16122. + shlibpath_overrides_runpath=yes
  16123. + ;;
  16124. + freebsd3.[01]* | freebsdelf3.[01]*)
  16125. + shlibpath_overrides_runpath=yes
  16126. + hardcode_into_libs=yes
  16127. + ;;
  16128. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16129. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16130. + shlibpath_overrides_runpath=no
  16131. + hardcode_into_libs=yes
  16132. + ;;
  16133. + *) # from 4.6 on, and DragonFly
  16134. + shlibpath_overrides_runpath=yes
  16135. + hardcode_into_libs=yes
  16136. + ;;
  16137. + esac
  16138. + ;;
  16139. +
  16140. +gnu*)
  16141. + version_type=linux
  16142. + need_lib_prefix=no
  16143. + need_version=no
  16144. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16145. + soname_spec='${libname}${release}${shared_ext}$major'
  16146. + shlibpath_var=LD_LIBRARY_PATH
  16147. + hardcode_into_libs=yes
  16148. + ;;
  16149. +
  16150. +hpux9* | hpux10* | hpux11*)
  16151. + # Give a soname corresponding to the major version so that dld.sl refuses to
  16152. + # link against other versions.
  16153. + version_type=sunos
  16154. + need_lib_prefix=no
  16155. + need_version=no
  16156. + case $host_cpu in
  16157. + ia64*)
  16158. + shrext_cmds='.so'
  16159. + hardcode_into_libs=yes
  16160. + dynamic_linker="$host_os dld.so"
  16161. + shlibpath_var=LD_LIBRARY_PATH
  16162. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16163. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16164. + soname_spec='${libname}${release}${shared_ext}$major'
  16165. + if test "X$HPUX_IA64_MODE" = X32; then
  16166. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16167. + else
  16168. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16169. + fi
  16170. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16171. + ;;
  16172. + hppa*64*)
  16173. + shrext_cmds='.sl'
  16174. + hardcode_into_libs=yes
  16175. + dynamic_linker="$host_os dld.sl"
  16176. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16177. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16178. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16179. + soname_spec='${libname}${release}${shared_ext}$major'
  16180. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16181. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16182. + ;;
  16183. + *)
  16184. + shrext_cmds='.sl'
  16185. + dynamic_linker="$host_os dld.sl"
  16186. + shlibpath_var=SHLIB_PATH
  16187. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16188. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16189. + soname_spec='${libname}${release}${shared_ext}$major'
  16190. + ;;
  16191. + esac
  16192. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16193. + postinstall_cmds='chmod 555 $lib'
  16194. + ;;
  16195. +
  16196. +interix[3-9]*)
  16197. + version_type=linux
  16198. + need_lib_prefix=no
  16199. + need_version=no
  16200. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16201. + soname_spec='${libname}${release}${shared_ext}$major'
  16202. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16203. + shlibpath_var=LD_LIBRARY_PATH
  16204. + shlibpath_overrides_runpath=no
  16205. + hardcode_into_libs=yes
  16206. + ;;
  16207. +
  16208. +irix5* | irix6* | nonstopux*)
  16209. + case $host_os in
  16210. + nonstopux*) version_type=nonstopux ;;
  16211. + *)
  16212. + if test "$lt_cv_prog_gnu_ld" = yes; then
  16213. + version_type=linux
  16214. + else
  16215. + version_type=irix
  16216. + fi ;;
  16217. + esac
  16218. + need_lib_prefix=no
  16219. + need_version=no
  16220. + soname_spec='${libname}${release}${shared_ext}$major'
  16221. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16222. + case $host_os in
  16223. + irix5* | nonstopux*)
  16224. + libsuff= shlibsuff=
  16225. + ;;
  16226. + *)
  16227. + case $LD in # libtool.m4 will add one of these switches to LD
  16228. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16229. + libsuff= shlibsuff= libmagic=32-bit;;
  16230. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16231. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  16232. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16233. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16234. + *) libsuff= shlibsuff= libmagic=never-match;;
  16235. + esac
  16236. + ;;
  16237. + esac
  16238. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16239. + shlibpath_overrides_runpath=no
  16240. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16241. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16242. + hardcode_into_libs=yes
  16243. + ;;
  16244. +
  16245. +# No shared lib support for Linux oldld, aout, or coff.
  16246. +linux*oldld* | linux*aout* | linux*coff*)
  16247. + dynamic_linker=no
  16248. + ;;
  16249. +
  16250. +# This must be Linux ELF.
  16251. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  16252. + version_type=linux
  16253. + need_lib_prefix=no
  16254. + need_version=no
  16255. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16256. + soname_spec='${libname}${release}${shared_ext}$major'
  16257. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16258. + shlibpath_var=LD_LIBRARY_PATH
  16259. + shlibpath_overrides_runpath=no
  16260. + # Some binutils ld are patched to set DT_RUNPATH
  16261. + save_LDFLAGS=$LDFLAGS
  16262. + save_libdir=$libdir
  16263. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  16264. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  16265. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16266. +/* end confdefs.h. */
  16267. +
  16268. +int
  16269. +main ()
  16270. +{
  16271. +
  16272. + ;
  16273. + return 0;
  16274. +}
  16275. +_ACEOF
  16276. +if ac_fn_c_try_link "$LINENO"; then :
  16277. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  16278. + shlibpath_overrides_runpath=yes
  16279. +fi
  16280. +fi
  16281. +rm -f core conftest.err conftest.$ac_objext \
  16282. + conftest$ac_exeext conftest.$ac_ext
  16283. + LDFLAGS=$save_LDFLAGS
  16284. + libdir=$save_libdir
  16285. +
  16286. + # This implies no fast_install, which is unacceptable.
  16287. + # Some rework will be needed to allow for fast_install
  16288. + # before this can be enabled.
  16289. + hardcode_into_libs=yes
  16290. +
  16291. + # Append ld.so.conf contents to the search path
  16292. + if test -f /etc/ld.so.conf; then
  16293. + 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' ' '`
  16294. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16295. + fi
  16296. +
  16297. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  16298. + # powerpc, because MkLinux only supported shared libraries with the
  16299. + # GNU dynamic linker. Since this was broken with cross compilers,
  16300. + # most powerpc-linux boxes support dynamic linking these days and
  16301. + # people can always --disable-shared, the test was removed, and we
  16302. + # assume the GNU/Linux dynamic linker is in use.
  16303. + dynamic_linker='GNU/Linux ld.so'
  16304. + ;;
  16305. +
  16306. +netbsdelf*-gnu)
  16307. + version_type=linux
  16308. + need_lib_prefix=no
  16309. + need_version=no
  16310. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16311. + soname_spec='${libname}${release}${shared_ext}$major'
  16312. + shlibpath_var=LD_LIBRARY_PATH
  16313. + shlibpath_overrides_runpath=no
  16314. + hardcode_into_libs=yes
  16315. + dynamic_linker='NetBSD ld.elf_so'
  16316. + ;;
  16317. +
  16318. +netbsd*)
  16319. + version_type=sunos
  16320. + need_lib_prefix=no
  16321. + need_version=no
  16322. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  16323. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16324. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16325. + dynamic_linker='NetBSD (a.out) ld.so'
  16326. + else
  16327. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16328. + soname_spec='${libname}${release}${shared_ext}$major'
  16329. + dynamic_linker='NetBSD ld.elf_so'
  16330. + fi
  16331. + shlibpath_var=LD_LIBRARY_PATH
  16332. + shlibpath_overrides_runpath=yes
  16333. + hardcode_into_libs=yes
  16334. + ;;
  16335. +
  16336. +newsos6)
  16337. + version_type=linux
  16338. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16339. + shlibpath_var=LD_LIBRARY_PATH
  16340. + shlibpath_overrides_runpath=yes
  16341. + ;;
  16342. +
  16343. +*nto* | *qnx*)
  16344. + version_type=qnx
  16345. + need_lib_prefix=no
  16346. + need_version=no
  16347. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16348. + soname_spec='${libname}${release}${shared_ext}$major'
  16349. + shlibpath_var=LD_LIBRARY_PATH
  16350. + shlibpath_overrides_runpath=no
  16351. + hardcode_into_libs=yes
  16352. + dynamic_linker='ldqnx.so'
  16353. + ;;
  16354. +
  16355. +openbsd*)
  16356. + version_type=sunos
  16357. + sys_lib_dlsearch_path_spec="/usr/lib"
  16358. + need_lib_prefix=no
  16359. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16360. + case $host_os in
  16361. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16362. + *) need_version=no ;;
  16363. + esac
  16364. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16365. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16366. + shlibpath_var=LD_LIBRARY_PATH
  16367. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16368. + case $host_os in
  16369. + openbsd2.[89] | openbsd2.[89].*)
  16370. + shlibpath_overrides_runpath=no
  16371. + ;;
  16372. + *)
  16373. + shlibpath_overrides_runpath=yes
  16374. + ;;
  16375. + esac
  16376. + else
  16377. + shlibpath_overrides_runpath=yes
  16378. + fi
  16379. + ;;
  16380. +
  16381. +os2*)
  16382. + libname_spec='$name'
  16383. + shrext_cmds=".dll"
  16384. + need_lib_prefix=no
  16385. + library_names_spec='$libname${shared_ext} $libname.a'
  16386. + dynamic_linker='OS/2 ld.exe'
  16387. + shlibpath_var=LIBPATH
  16388. + ;;
  16389. +
  16390. +osf3* | osf4* | osf5*)
  16391. + version_type=osf
  16392. + need_lib_prefix=no
  16393. + need_version=no
  16394. + soname_spec='${libname}${release}${shared_ext}$major'
  16395. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16396. + shlibpath_var=LD_LIBRARY_PATH
  16397. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16398. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16399. + ;;
  16400. +
  16401. +rdos*)
  16402. + dynamic_linker=no
  16403. + ;;
  16404. +
  16405. +solaris*)
  16406. + version_type=linux
  16407. + need_lib_prefix=no
  16408. + need_version=no
  16409. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16410. + soname_spec='${libname}${release}${shared_ext}$major'
  16411. + shlibpath_var=LD_LIBRARY_PATH
  16412. + shlibpath_overrides_runpath=yes
  16413. + hardcode_into_libs=yes
  16414. + # ldd complains unless libraries are executable
  16415. + postinstall_cmds='chmod +x $lib'
  16416. + ;;
  16417. +
  16418. +sunos4*)
  16419. + version_type=sunos
  16420. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16421. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16422. + shlibpath_var=LD_LIBRARY_PATH
  16423. + shlibpath_overrides_runpath=yes
  16424. + if test "$with_gnu_ld" = yes; then
  16425. + need_lib_prefix=no
  16426. + fi
  16427. + need_version=yes
  16428. + ;;
  16429. +
  16430. +sysv4 | sysv4.3*)
  16431. + version_type=linux
  16432. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16433. + soname_spec='${libname}${release}${shared_ext}$major'
  16434. + shlibpath_var=LD_LIBRARY_PATH
  16435. + case $host_vendor in
  16436. + sni)
  16437. + shlibpath_overrides_runpath=no
  16438. + need_lib_prefix=no
  16439. + runpath_var=LD_RUN_PATH
  16440. + ;;
  16441. + siemens)
  16442. + need_lib_prefix=no
  16443. + ;;
  16444. + motorola)
  16445. + need_lib_prefix=no
  16446. + need_version=no
  16447. + shlibpath_overrides_runpath=no
  16448. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16449. + ;;
  16450. + esac
  16451. + ;;
  16452. +
  16453. +sysv4*MP*)
  16454. + if test -d /usr/nec ;then
  16455. + version_type=linux
  16456. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16457. + soname_spec='$libname${shared_ext}.$major'
  16458. + shlibpath_var=LD_LIBRARY_PATH
  16459. + fi
  16460. + ;;
  16461. +
  16462. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16463. + version_type=freebsd-elf
  16464. + need_lib_prefix=no
  16465. + need_version=no
  16466. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16467. + soname_spec='${libname}${release}${shared_ext}$major'
  16468. + shlibpath_var=LD_LIBRARY_PATH
  16469. + shlibpath_overrides_runpath=yes
  16470. + hardcode_into_libs=yes
  16471. + if test "$with_gnu_ld" = yes; then
  16472. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16473. + else
  16474. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16475. + case $host_os in
  16476. + sco3.2v5*)
  16477. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16478. + ;;
  16479. + esac
  16480. + fi
  16481. + sys_lib_dlsearch_path_spec='/usr/lib'
  16482. + ;;
  16483. +
  16484. +tpf*)
  16485. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  16486. + version_type=linux
  16487. + need_lib_prefix=no
  16488. + need_version=no
  16489. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16490. + shlibpath_var=LD_LIBRARY_PATH
  16491. + shlibpath_overrides_runpath=no
  16492. + hardcode_into_libs=yes
  16493. + ;;
  16494. +
  16495. +uts4*)
  16496. + version_type=linux
  16497. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16498. + soname_spec='${libname}${release}${shared_ext}$major'
  16499. + shlibpath_var=LD_LIBRARY_PATH
  16500. + ;;
  16501. +
  16502. +*)
  16503. + dynamic_linker=no
  16504. + ;;
  16505. +esac
  16506. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  16507. +$as_echo "$dynamic_linker" >&6; }
  16508. +test "$dynamic_linker" = no && can_build_shared=no
  16509. +
  16510. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16511. +if test "$GCC" = yes; then
  16512. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16513. +fi
  16514. +
  16515. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  16516. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  16517. +fi
  16518. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  16519. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  16520. +fi
  16521. +
  16522. +
  16523. +
  16524. +
  16525. +
  16526. +
  16527. +
  16528. +
  16529. +
  16530. +
  16531. +
  16532. +
  16533. +
  16534. +
  16535. +
  16536. +
  16537. +
  16538. +
  16539. +
  16540. +
  16541. +
  16542. +
  16543. +
  16544. +
  16545. +
  16546. +
  16547. +
  16548. +
  16549. +
  16550. +
  16551. +
  16552. +
  16553. +
  16554. +
  16555. +
  16556. +
  16557. +
  16558. +
  16559. +
  16560. +
  16561. +
  16562. +
  16563. +
  16564. +
  16565. +
  16566. +
  16567. +
  16568. +
  16569. +
  16570. +
  16571. +
  16572. +
  16573. +
  16574. +
  16575. +
  16576. +
  16577. +
  16578. +
  16579. +
  16580. +
  16581. +
  16582. +
  16583. +
  16584. +
  16585. +
  16586. +
  16587. +
  16588. +
  16589. +
  16590. +
  16591. +
  16592. +
  16593. +
  16594. +
  16595. +
  16596. +
  16597. +
  16598. +
  16599. +
  16600. +
  16601. +
  16602. +
  16603. +
  16604. +
  16605. +
  16606. +
  16607. +
  16608. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  16609. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  16610. +hardcode_action=
  16611. +if test -n "$hardcode_libdir_flag_spec" ||
  16612. + test -n "$runpath_var" ||
  16613. + test "X$hardcode_automatic" = "Xyes" ; then
  16614. +
  16615. + # We can hardcode non-existent directories.
  16616. + if test "$hardcode_direct" != no &&
  16617. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16618. + # have to relink, otherwise we might link with an installed library
  16619. + # when we should be linking with a yet-to-be-installed one
  16620. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  16621. + test "$hardcode_minus_L" != no; then
  16622. + # Linking always hardcodes the temporary library directory.
  16623. + hardcode_action=relink
  16624. + else
  16625. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16626. + hardcode_action=immediate
  16627. + fi
  16628. +else
  16629. + # We cannot hardcode anything, or else we can only hardcode existing
  16630. + # directories.
  16631. + hardcode_action=unsupported
  16632. +fi
  16633. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  16634. +$as_echo "$hardcode_action" >&6; }
  16635. +
  16636. +if test "$hardcode_action" = relink ||
  16637. + test "$inherit_rpath" = yes; then
  16638. + # Fast installation is not supported
  16639. + enable_fast_install=no
  16640. +elif test "$shlibpath_overrides_runpath" = yes ||
  16641. + test "$enable_shared" = no; then
  16642. + # Fast installation is not necessary
  16643. + enable_fast_install=needless
  16644. +fi
  16645. +
  16646. +
  16647. +
  16648. +
  16649. +
  16650. +
  16651. + if test "x$enable_dlopen" != xyes; then
  16652. + enable_dlopen=unknown
  16653. + enable_dlopen_self=unknown
  16654. + enable_dlopen_self_static=unknown
  16655. +else
  16656. + lt_cv_dlopen=no
  16657. + lt_cv_dlopen_libs=
  16658. +
  16659. + case $host_os in
  16660. + beos*)
  16661. + lt_cv_dlopen="load_add_on"
  16662. + lt_cv_dlopen_libs=
  16663. + lt_cv_dlopen_self=yes
  16664. + ;;
  16665. +
  16666. + mingw* | pw32* | cegcc*)
  16667. + lt_cv_dlopen="LoadLibrary"
  16668. + lt_cv_dlopen_libs=
  16669. + ;;
  16670. +
  16671. + cygwin*)
  16672. + lt_cv_dlopen="dlopen"
  16673. + lt_cv_dlopen_libs=
  16674. + ;;
  16675. +
  16676. + darwin*)
  16677. + # if libdl is installed we need to link against it
  16678. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  16679. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  16680. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  16681. + $as_echo_n "(cached) " >&6
  16682. +else
  16683. + ac_check_lib_save_LIBS=$LIBS
  16684. +LIBS="-ldl $LIBS"
  16685. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16686. +/* end confdefs.h. */
  16687. +
  16688. +/* Override any GCC internal prototype to avoid an error.
  16689. + Use char because int might match the return type of a GCC
  16690. + builtin and then its argument prototype would still apply. */
  16691. +#ifdef __cplusplus
  16692. +extern "C"
  16693. +#endif
  16694. +char dlopen ();
  16695. +int
  16696. +main ()
  16697. +{
  16698. +return dlopen ();
  16699. + ;
  16700. + return 0;
  16701. +}
  16702. +_ACEOF
  16703. +if ac_fn_c_try_link "$LINENO"; then :
  16704. + ac_cv_lib_dl_dlopen=yes
  16705. +else
  16706. + ac_cv_lib_dl_dlopen=no
  16707. +fi
  16708. +rm -f core conftest.err conftest.$ac_objext \
  16709. + conftest$ac_exeext conftest.$ac_ext
  16710. +LIBS=$ac_check_lib_save_LIBS
  16711. +fi
  16712. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  16713. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  16714. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  16715. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  16716. +else
  16717. +
  16718. + lt_cv_dlopen="dyld"
  16719. + lt_cv_dlopen_libs=
  16720. + lt_cv_dlopen_self=yes
  16721. +
  16722. +fi
  16723. +
  16724. + ;;
  16725. +
  16726. + *)
  16727. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  16728. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  16729. + lt_cv_dlopen="shl_load"
  16730. +else
  16731. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  16732. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  16733. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  16734. + $as_echo_n "(cached) " >&6
  16735. +else
  16736. + ac_check_lib_save_LIBS=$LIBS
  16737. +LIBS="-ldld $LIBS"
  16738. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16739. +/* end confdefs.h. */
  16740. +
  16741. +/* Override any GCC internal prototype to avoid an error.
  16742. + Use char because int might match the return type of a GCC
  16743. + builtin and then its argument prototype would still apply. */
  16744. +#ifdef __cplusplus
  16745. +extern "C"
  16746. +#endif
  16747. +char shl_load ();
  16748. +int
  16749. +main ()
  16750. +{
  16751. +return shl_load ();
  16752. + ;
  16753. + return 0;
  16754. +}
  16755. +_ACEOF
  16756. +if ac_fn_c_try_link "$LINENO"; then :
  16757. + ac_cv_lib_dld_shl_load=yes
  16758. +else
  16759. + ac_cv_lib_dld_shl_load=no
  16760. +fi
  16761. +rm -f core conftest.err conftest.$ac_objext \
  16762. + conftest$ac_exeext conftest.$ac_ext
  16763. +LIBS=$ac_check_lib_save_LIBS
  16764. +fi
  16765. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  16766. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  16767. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  16768. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  16769. +else
  16770. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  16771. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  16772. + lt_cv_dlopen="dlopen"
  16773. +else
  16774. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  16775. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  16776. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  16777. + $as_echo_n "(cached) " >&6
  16778. +else
  16779. + ac_check_lib_save_LIBS=$LIBS
  16780. +LIBS="-ldl $LIBS"
  16781. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16782. +/* end confdefs.h. */
  16783. +
  16784. +/* Override any GCC internal prototype to avoid an error.
  16785. + Use char because int might match the return type of a GCC
  16786. + builtin and then its argument prototype would still apply. */
  16787. +#ifdef __cplusplus
  16788. +extern "C"
  16789. +#endif
  16790. +char dlopen ();
  16791. +int
  16792. +main ()
  16793. +{
  16794. +return dlopen ();
  16795. + ;
  16796. + return 0;
  16797. +}
  16798. +_ACEOF
  16799. +if ac_fn_c_try_link "$LINENO"; then :
  16800. + ac_cv_lib_dl_dlopen=yes
  16801. +else
  16802. + ac_cv_lib_dl_dlopen=no
  16803. +fi
  16804. +rm -f core conftest.err conftest.$ac_objext \
  16805. + conftest$ac_exeext conftest.$ac_ext
  16806. +LIBS=$ac_check_lib_save_LIBS
  16807. +fi
  16808. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  16809. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  16810. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  16811. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  16812. +else
  16813. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  16814. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  16815. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  16816. + $as_echo_n "(cached) " >&6
  16817. +else
  16818. + ac_check_lib_save_LIBS=$LIBS
  16819. +LIBS="-lsvld $LIBS"
  16820. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16821. +/* end confdefs.h. */
  16822. +
  16823. +/* Override any GCC internal prototype to avoid an error.
  16824. + Use char because int might match the return type of a GCC
  16825. + builtin and then its argument prototype would still apply. */
  16826. +#ifdef __cplusplus
  16827. +extern "C"
  16828. +#endif
  16829. +char dlopen ();
  16830. +int
  16831. +main ()
  16832. +{
  16833. +return dlopen ();
  16834. + ;
  16835. + return 0;
  16836. +}
  16837. +_ACEOF
  16838. +if ac_fn_c_try_link "$LINENO"; then :
  16839. + ac_cv_lib_svld_dlopen=yes
  16840. +else
  16841. + ac_cv_lib_svld_dlopen=no
  16842. +fi
  16843. +rm -f core conftest.err conftest.$ac_objext \
  16844. + conftest$ac_exeext conftest.$ac_ext
  16845. +LIBS=$ac_check_lib_save_LIBS
  16846. +fi
  16847. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  16848. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  16849. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  16850. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  16851. +else
  16852. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  16853. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  16854. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  16855. + $as_echo_n "(cached) " >&6
  16856. +else
  16857. + ac_check_lib_save_LIBS=$LIBS
  16858. +LIBS="-ldld $LIBS"
  16859. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16860. +/* end confdefs.h. */
  16861. +
  16862. +/* Override any GCC internal prototype to avoid an error.
  16863. + Use char because int might match the return type of a GCC
  16864. + builtin and then its argument prototype would still apply. */
  16865. +#ifdef __cplusplus
  16866. +extern "C"
  16867. +#endif
  16868. +char dld_link ();
  16869. +int
  16870. +main ()
  16871. +{
  16872. +return dld_link ();
  16873. + ;
  16874. + return 0;
  16875. +}
  16876. +_ACEOF
  16877. +if ac_fn_c_try_link "$LINENO"; then :
  16878. + ac_cv_lib_dld_dld_link=yes
  16879. +else
  16880. + ac_cv_lib_dld_dld_link=no
  16881. +fi
  16882. +rm -f core conftest.err conftest.$ac_objext \
  16883. + conftest$ac_exeext conftest.$ac_ext
  16884. +LIBS=$ac_check_lib_save_LIBS
  16885. +fi
  16886. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  16887. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  16888. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  16889. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  16890. +fi
  16891. +
  16892. +
  16893. +fi
  16894. +
  16895. +
  16896. +fi
  16897. +
  16898. +
  16899. +fi
  16900. +
  16901. +
  16902. +fi
  16903. +
  16904. +
  16905. +fi
  16906. +
  16907. + ;;
  16908. + esac
  16909. +
  16910. + if test "x$lt_cv_dlopen" != xno; then
  16911. + enable_dlopen=yes
  16912. + else
  16913. + enable_dlopen=no
  16914. + fi
  16915. +
  16916. + case $lt_cv_dlopen in
  16917. + dlopen)
  16918. + save_CPPFLAGS="$CPPFLAGS"
  16919. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  16920. +
  16921. + save_LDFLAGS="$LDFLAGS"
  16922. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  16923. +
  16924. + save_LIBS="$LIBS"
  16925. + LIBS="$lt_cv_dlopen_libs $LIBS"
  16926. +
  16927. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  16928. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  16929. +if test "${lt_cv_dlopen_self+set}" = set; then :
  16930. + $as_echo_n "(cached) " >&6
  16931. +else
  16932. + if test "$cross_compiling" = yes; then :
  16933. + lt_cv_dlopen_self=cross
  16934. +else
  16935. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16936. + lt_status=$lt_dlunknown
  16937. + cat > conftest.$ac_ext <<_LT_EOF
  16938. +#line 11379 "configure"
  16939. +#include "confdefs.h"
  16940. +
  16941. +#if HAVE_DLFCN_H
  16942. +#include <dlfcn.h>
  16943. +#endif
  16944. +
  16945. +#include <stdio.h>
  16946. +
  16947. +#ifdef RTLD_GLOBAL
  16948. +# define LT_DLGLOBAL RTLD_GLOBAL
  16949. +#else
  16950. +# ifdef DL_GLOBAL
  16951. +# define LT_DLGLOBAL DL_GLOBAL
  16952. +# else
  16953. +# define LT_DLGLOBAL 0
  16954. +# endif
  16955. +#endif
  16956. +
  16957. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16958. + find out it does not work in some platform. */
  16959. +#ifndef LT_DLLAZY_OR_NOW
  16960. +# ifdef RTLD_LAZY
  16961. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  16962. +# else
  16963. +# ifdef DL_LAZY
  16964. +# define LT_DLLAZY_OR_NOW DL_LAZY
  16965. +# else
  16966. +# ifdef RTLD_NOW
  16967. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  16968. +# else
  16969. +# ifdef DL_NOW
  16970. +# define LT_DLLAZY_OR_NOW DL_NOW
  16971. +# else
  16972. +# define LT_DLLAZY_OR_NOW 0
  16973. +# endif
  16974. +# endif
  16975. +# endif
  16976. +# endif
  16977. +#endif
  16978. +
  16979. +void fnord() { int i=42;}
  16980. +int main ()
  16981. +{
  16982. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16983. + int status = $lt_dlunknown;
  16984. +
  16985. + if (self)
  16986. + {
  16987. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16988. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16989. + /* dlclose (self); */
  16990. + }
  16991. + else
  16992. + puts (dlerror ());
  16993. +
  16994. + return status;
  16995. +}
  16996. +_LT_EOF
  16997. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  16998. + (eval $ac_link) 2>&5
  16999. + ac_status=$?
  17000. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17001. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  17002. + (./conftest; exit; ) >&5 2>/dev/null
  17003. + lt_status=$?
  17004. + case x$lt_status in
  17005. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  17006. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  17007. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  17008. + esac
  17009. + else :
  17010. + # compilation failed
  17011. + lt_cv_dlopen_self=no
  17012. + fi
  17013. +fi
  17014. +rm -fr conftest*
  17015. +
  17016. +
  17017. +fi
  17018. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  17019. +$as_echo "$lt_cv_dlopen_self" >&6; }
  17020. +
  17021. + if test "x$lt_cv_dlopen_self" = xyes; then
  17022. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  17023. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  17024. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  17025. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  17026. + $as_echo_n "(cached) " >&6
  17027. +else
  17028. + if test "$cross_compiling" = yes; then :
  17029. + lt_cv_dlopen_self_static=cross
  17030. +else
  17031. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  17032. + lt_status=$lt_dlunknown
  17033. + cat > conftest.$ac_ext <<_LT_EOF
  17034. +#line 11475 "configure"
  17035. +#include "confdefs.h"
  17036. +
  17037. +#if HAVE_DLFCN_H
  17038. +#include <dlfcn.h>
  17039. +#endif
  17040. +
  17041. +#include <stdio.h>
  17042. +
  17043. +#ifdef RTLD_GLOBAL
  17044. +# define LT_DLGLOBAL RTLD_GLOBAL
  17045. +#else
  17046. +# ifdef DL_GLOBAL
  17047. +# define LT_DLGLOBAL DL_GLOBAL
  17048. +# else
  17049. +# define LT_DLGLOBAL 0
  17050. +# endif
  17051. +#endif
  17052. +
  17053. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  17054. + find out it does not work in some platform. */
  17055. +#ifndef LT_DLLAZY_OR_NOW
  17056. +# ifdef RTLD_LAZY
  17057. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  17058. +# else
  17059. +# ifdef DL_LAZY
  17060. +# define LT_DLLAZY_OR_NOW DL_LAZY
  17061. +# else
  17062. +# ifdef RTLD_NOW
  17063. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  17064. +# else
  17065. +# ifdef DL_NOW
  17066. +# define LT_DLLAZY_OR_NOW DL_NOW
  17067. +# else
  17068. +# define LT_DLLAZY_OR_NOW 0
  17069. +# endif
  17070. +# endif
  17071. +# endif
  17072. +# endif
  17073. +#endif
  17074. +
  17075. +void fnord() { int i=42;}
  17076. +int main ()
  17077. +{
  17078. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  17079. + int status = $lt_dlunknown;
  17080. +
  17081. + if (self)
  17082. + {
  17083. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  17084. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  17085. + /* dlclose (self); */
  17086. + }
  17087. + else
  17088. + puts (dlerror ());
  17089. +
  17090. + return status;
  17091. +}
  17092. +_LT_EOF
  17093. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  17094. + (eval $ac_link) 2>&5
  17095. + ac_status=$?
  17096. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17097. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  17098. + (./conftest; exit; ) >&5 2>/dev/null
  17099. + lt_status=$?
  17100. + case x$lt_status in
  17101. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  17102. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  17103. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  17104. + esac
  17105. + else :
  17106. + # compilation failed
  17107. + lt_cv_dlopen_self_static=no
  17108. + fi
  17109. +fi
  17110. +rm -fr conftest*
  17111. +
  17112. +
  17113. +fi
  17114. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  17115. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  17116. + fi
  17117. +
  17118. + CPPFLAGS="$save_CPPFLAGS"
  17119. + LDFLAGS="$save_LDFLAGS"
  17120. + LIBS="$save_LIBS"
  17121. + ;;
  17122. + esac
  17123. +
  17124. + case $lt_cv_dlopen_self in
  17125. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  17126. + *) enable_dlopen_self=unknown ;;
  17127. + esac
  17128. +
  17129. + case $lt_cv_dlopen_self_static in
  17130. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  17131. + *) enable_dlopen_self_static=unknown ;;
  17132. + esac
  17133. +fi
  17134. +
  17135. +
  17136. +
  17137. +
  17138. +
  17139. +
  17140. +
  17141. +
  17142. +
  17143. +
  17144. +
  17145. +
  17146. +
  17147. +
  17148. +
  17149. +
  17150. +
  17151. +striplib=
  17152. +old_striplib=
  17153. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  17154. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  17155. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  17156. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  17157. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  17158. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17159. +$as_echo "yes" >&6; }
  17160. +else
  17161. +# FIXME - insert some real tests, host_os isn't really good enough
  17162. + case $host_os in
  17163. + darwin*)
  17164. + if test -n "$STRIP" ; then
  17165. + striplib="$STRIP -x"
  17166. + old_striplib="$STRIP -S"
  17167. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17168. +$as_echo "yes" >&6; }
  17169. + else
  17170. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17171. +$as_echo "no" >&6; }
  17172. + fi
  17173. + ;;
  17174. + *)
  17175. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17176. +$as_echo "no" >&6; }
  17177. + ;;
  17178. + esac
  17179. +fi
  17180. +
  17181. +
  17182. +
  17183. +
  17184. +
  17185. +
  17186. +
  17187. +
  17188. +
  17189. +
  17190. +
  17191. +
  17192. + # Report which library types will actually be built
  17193. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  17194. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  17195. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  17196. +$as_echo "$can_build_shared" >&6; }
  17197. +
  17198. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  17199. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  17200. + test "$can_build_shared" = "no" && enable_shared=no
  17201. +
  17202. + # On AIX, shared libraries and static libraries use the same namespace, and
  17203. + # are all built from PIC.
  17204. + case $host_os in
  17205. + aix3*)
  17206. + test "$enable_shared" = yes && enable_static=no
  17207. + if test -n "$RANLIB"; then
  17208. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  17209. + postinstall_cmds='$RANLIB $lib'
  17210. + fi
  17211. + ;;
  17212. +
  17213. + aix[4-9]*)
  17214. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  17215. + test "$enable_shared" = yes && enable_static=no
  17216. + fi
  17217. + ;;
  17218. + esac
  17219. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  17220. +$as_echo "$enable_shared" >&6; }
  17221. +
  17222. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  17223. +$as_echo_n "checking whether to build static libraries... " >&6; }
  17224. + # Make sure either enable_shared or enable_static is yes.
  17225. + test "$enable_shared" = yes || enable_static=yes
  17226. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  17227. +$as_echo "$enable_static" >&6; }
  17228. +
  17229. +
  17230. +
  17231. +
  17232. +fi
  17233. +ac_ext=c
  17234. +ac_cpp='$CPP $CPPFLAGS'
  17235. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17236. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17237. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17238. +
  17239. +CC="$lt_save_CC"
  17240. +
  17241. +
  17242. +ac_ext=cpp
  17243. +ac_cpp='$CXXCPP $CPPFLAGS'
  17244. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17245. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17246. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17247. +
  17248. +archive_cmds_need_lc_CXX=no
  17249. +allow_undefined_flag_CXX=
  17250. +always_export_symbols_CXX=no
  17251. +archive_expsym_cmds_CXX=
  17252. +compiler_needs_object_CXX=no
  17253. +export_dynamic_flag_spec_CXX=
  17254. +hardcode_direct_CXX=no
  17255. +hardcode_direct_absolute_CXX=no
  17256. +hardcode_libdir_flag_spec_CXX=
  17257. +hardcode_libdir_flag_spec_ld_CXX=
  17258. +hardcode_libdir_separator_CXX=
  17259. +hardcode_minus_L_CXX=no
  17260. +hardcode_shlibpath_var_CXX=unsupported
  17261. +hardcode_automatic_CXX=no
  17262. +inherit_rpath_CXX=no
  17263. +module_cmds_CXX=
  17264. +module_expsym_cmds_CXX=
  17265. +link_all_deplibs_CXX=unknown
  17266. +old_archive_cmds_CXX=$old_archive_cmds
  17267. +no_undefined_flag_CXX=
  17268. +whole_archive_flag_spec_CXX=
  17269. +enable_shared_with_static_runtimes_CXX=no
  17270. +
  17271. +# Source file extension for C++ test sources.
  17272. +ac_ext=cpp
  17273. +
  17274. +# Object file extension for compiled C++ test sources.
  17275. +objext=o
  17276. +objext_CXX=$objext
  17277. +
  17278. +# No sense in running all these tests if we already determined that
  17279. +# the CXX compiler isn't working. Some variables (like enable_shared)
  17280. +# are currently assumed to apply to all compilers on this platform,
  17281. +# and will be corrupted by setting them based on a non-working compiler.
  17282. +if test "$_lt_caught_CXX_error" != yes; then
  17283. + # Code to be used in simple compile tests
  17284. + lt_simple_compile_test_code="int some_variable = 0;"
  17285. +
  17286. + # Code to be used in simple link tests
  17287. + lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  17288. +
  17289. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17290. +
  17291. +
  17292. +
  17293. +
  17294. +
  17295. +
  17296. +# If no C compiler was specified, use CC.
  17297. +LTCC=${LTCC-"$CC"}
  17298. +
  17299. +# If no C compiler flags were specified, use CFLAGS.
  17300. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17301. +
  17302. +# Allow CC to be a program name with arguments.
  17303. +compiler=$CC
  17304. +
  17305. +
  17306. + # save warnings/boilerplate of simple test code
  17307. + ac_outfile=conftest.$ac_objext
  17308. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  17309. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17310. +_lt_compiler_boilerplate=`cat conftest.err`
  17311. +$RM conftest*
  17312. +
  17313. + ac_outfile=conftest.$ac_objext
  17314. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  17315. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17316. +_lt_linker_boilerplate=`cat conftest.err`
  17317. +$RM -r conftest*
  17318. +
  17319. +
  17320. + # Allow CC to be a program name with arguments.
  17321. + lt_save_CC=$CC
  17322. + lt_save_LD=$LD
  17323. + lt_save_GCC=$GCC
  17324. + GCC=$GXX
  17325. + lt_save_with_gnu_ld=$with_gnu_ld
  17326. + lt_save_path_LD=$lt_cv_path_LD
  17327. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  17328. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  17329. + else
  17330. + $as_unset lt_cv_prog_gnu_ld
  17331. + fi
  17332. + if test -n "${lt_cv_path_LDCXX+set}"; then
  17333. + lt_cv_path_LD=$lt_cv_path_LDCXX
  17334. + else
  17335. + $as_unset lt_cv_path_LD
  17336. + fi
  17337. + test -z "${LDCXX+set}" || LD=$LDCXX
  17338. + CC=${CXX-"c++"}
  17339. + compiler=$CC
  17340. + compiler_CXX=$CC
  17341. + for cc_temp in $compiler""; do
  17342. + case $cc_temp in
  17343. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17344. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17345. + \-*) ;;
  17346. + *) break;;
  17347. + esac
  17348. +done
  17349. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17350. +
  17351. +
  17352. + if test -n "$compiler"; then
  17353. + # We don't want -fno-exception when compiling C++ code, so set the
  17354. + # no_builtin_flag separately
  17355. + if test "$GXX" = yes; then
  17356. + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  17357. + else
  17358. + lt_prog_compiler_no_builtin_flag_CXX=
  17359. + fi
  17360. +
  17361. + if test "$GXX" = yes; then
  17362. + # Set up default GNU C++ configuration
  17363. +
  17364. +
  17365. +
  17366. +# Check whether --with-gnu-ld was given.
  17367. +if test "${with_gnu_ld+set}" = set; then :
  17368. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  17369. +else
  17370. + with_gnu_ld=no
  17371. +fi
  17372. +
  17373. +ac_prog=ld
  17374. +if test "$GCC" = yes; then
  17375. + # Check if gcc -print-prog-name=ld gives a path.
  17376. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  17377. +$as_echo_n "checking for ld used by $CC... " >&6; }
  17378. + case $host in
  17379. + *-*-mingw*)
  17380. + # gcc leaves a trailing carriage return which upsets mingw
  17381. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  17382. + *)
  17383. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  17384. + esac
  17385. + case $ac_prog in
  17386. + # Accept absolute paths.
  17387. + [\\/]* | ?:[\\/]*)
  17388. + re_direlt='/[^/][^/]*/\.\./'
  17389. + # Canonicalize the pathname of ld
  17390. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  17391. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  17392. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  17393. + done
  17394. + test -z "$LD" && LD="$ac_prog"
  17395. + ;;
  17396. + "")
  17397. + # If it fails, then pretend we aren't using GCC.
  17398. + ac_prog=ld
  17399. + ;;
  17400. + *)
  17401. + # If it is relative, then search for the first ld in PATH.
  17402. + with_gnu_ld=unknown
  17403. + ;;
  17404. + esac
  17405. +elif test "$with_gnu_ld" = yes; then
  17406. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  17407. +$as_echo_n "checking for GNU ld... " >&6; }
  17408. +else
  17409. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  17410. +$as_echo_n "checking for non-GNU ld... " >&6; }
  17411. +fi
  17412. +if test "${lt_cv_path_LD+set}" = set; then :
  17413. + $as_echo_n "(cached) " >&6
  17414. +else
  17415. + if test -z "$LD"; then
  17416. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  17417. + for ac_dir in $PATH; do
  17418. + IFS="$lt_save_ifs"
  17419. + test -z "$ac_dir" && ac_dir=.
  17420. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  17421. + lt_cv_path_LD="$ac_dir/$ac_prog"
  17422. + # Check to see if the program is GNU ld. I'd rather use --version,
  17423. + # but apparently some variants of GNU ld only accept -v.
  17424. + # Break only if it was the GNU/non-GNU ld that we prefer.
  17425. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  17426. + *GNU* | *'with BFD'*)
  17427. + test "$with_gnu_ld" != no && break
  17428. + ;;
  17429. + *)
  17430. + test "$with_gnu_ld" != yes && break
  17431. + ;;
  17432. + esac
  17433. + fi
  17434. + done
  17435. + IFS="$lt_save_ifs"
  17436. +else
  17437. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  17438. +fi
  17439. +fi
  17440. +
  17441. +LD="$lt_cv_path_LD"
  17442. +if test -n "$LD"; then
  17443. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  17444. +$as_echo "$LD" >&6; }
  17445. +else
  17446. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17447. +$as_echo "no" >&6; }
  17448. +fi
  17449. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  17450. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  17451. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  17452. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  17453. + $as_echo_n "(cached) " >&6
  17454. +else
  17455. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  17456. +case `$LD -v 2>&1 </dev/null` in
  17457. +*GNU* | *'with BFD'*)
  17458. + lt_cv_prog_gnu_ld=yes
  17459. + ;;
  17460. +*)
  17461. + lt_cv_prog_gnu_ld=no
  17462. + ;;
  17463. +esac
  17464. +fi
  17465. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  17466. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  17467. +with_gnu_ld=$lt_cv_prog_gnu_ld
  17468. +
  17469. +
  17470. +
  17471. +
  17472. +
  17473. +
  17474. +
  17475. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  17476. + # archiving commands below assume that GNU ld is being used.
  17477. + if test "$with_gnu_ld" = yes; then
  17478. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  17479. + 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'
  17480. +
  17481. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  17482. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  17483. +
  17484. + # If archive_cmds runs LD, not CC, wlarc should be empty
  17485. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  17486. + # investigate it a little bit more. (MM)
  17487. + wlarc='${wl}'
  17488. +
  17489. + # ancient GNU ld didn't support --whole-archive et. al.
  17490. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  17491. + $GREP 'no-whole-archive' > /dev/null; then
  17492. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  17493. + else
  17494. + whole_archive_flag_spec_CXX=
  17495. + fi
  17496. + else
  17497. + with_gnu_ld=no
  17498. + wlarc=
  17499. +
  17500. + # A generic and very simple default shared library creation
  17501. + # command for GNU C++ for the case where it uses the native
  17502. + # linker, instead of GNU ld. If possible, this setting should
  17503. + # overridden to take advantage of the native linker features on
  17504. + # the platform it is being used on.
  17505. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  17506. + fi
  17507. +
  17508. + # Commands to make compiler produce verbose output that lists
  17509. + # what "hidden" libraries, object files and flags are used when
  17510. + # linking a shared library.
  17511. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  17512. +
  17513. + else
  17514. + GXX=no
  17515. + with_gnu_ld=no
  17516. + wlarc=
  17517. + fi
  17518. +
  17519. + # PORTME: fill in a description of your system's C++ link characteristics
  17520. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  17521. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  17522. + ld_shlibs_CXX=yes
  17523. + case $host_os in
  17524. + aix3*)
  17525. + # FIXME: insert proper C++ library support
  17526. + ld_shlibs_CXX=no
  17527. + ;;
  17528. + aix[4-9]*)
  17529. + if test "$host_cpu" = ia64; then
  17530. + # On IA64, the linker does run time linking by default, so we don't
  17531. + # have to do anything special.
  17532. + aix_use_runtimelinking=no
  17533. + exp_sym_flag='-Bexport'
  17534. + no_entry_flag=""
  17535. + else
  17536. + aix_use_runtimelinking=no
  17537. +
  17538. + # Test if we are trying to use run time linking or normal
  17539. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  17540. + # need to do runtime linking.
  17541. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  17542. + for ld_flag in $LDFLAGS; do
  17543. + case $ld_flag in
  17544. + *-brtl*)
  17545. + aix_use_runtimelinking=yes
  17546. + break
  17547. + ;;
  17548. + esac
  17549. + done
  17550. + ;;
  17551. + esac
  17552. +
  17553. + exp_sym_flag='-bexport'
  17554. + no_entry_flag='-bnoentry'
  17555. + fi
  17556. +
  17557. + # When large executables or shared objects are built, AIX ld can
  17558. + # have problems creating the table of contents. If linking a library
  17559. + # or program results in "error TOC overflow" add -mminimal-toc to
  17560. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  17561. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  17562. +
  17563. + archive_cmds_CXX=''
  17564. + hardcode_direct_CXX=yes
  17565. + hardcode_direct_absolute_CXX=yes
  17566. + hardcode_libdir_separator_CXX=':'
  17567. + link_all_deplibs_CXX=yes
  17568. + file_list_spec_CXX='${wl}-f,'
  17569. +
  17570. + if test "$GXX" = yes; then
  17571. + case $host_os in aix4.[012]|aix4.[012].*)
  17572. + # We only want to do this on AIX 4.2 and lower, the check
  17573. + # below for broken collect2 doesn't work under 4.3+
  17574. + collect2name=`${CC} -print-prog-name=collect2`
  17575. + if test -f "$collect2name" &&
  17576. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  17577. + then
  17578. + # We have reworked collect2
  17579. + :
  17580. + else
  17581. + # We have old collect2
  17582. + hardcode_direct_CXX=unsupported
  17583. + # It fails to find uninstalled libraries when the uninstalled
  17584. + # path is not listed in the libpath. Setting hardcode_minus_L
  17585. + # to unsupported forces relinking
  17586. + hardcode_minus_L_CXX=yes
  17587. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  17588. + hardcode_libdir_separator_CXX=
  17589. + fi
  17590. + esac
  17591. + shared_flag='-shared'
  17592. + if test "$aix_use_runtimelinking" = yes; then
  17593. + shared_flag="$shared_flag "'${wl}-G'
  17594. + fi
  17595. + else
  17596. + # not using gcc
  17597. + if test "$host_cpu" = ia64; then
  17598. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  17599. + # chokes on -Wl,-G. The following line is correct:
  17600. + shared_flag='-G'
  17601. + else
  17602. + if test "$aix_use_runtimelinking" = yes; then
  17603. + shared_flag='${wl}-G'
  17604. + else
  17605. + shared_flag='${wl}-bM:SRE'
  17606. + fi
  17607. + fi
  17608. + fi
  17609. +
  17610. + export_dynamic_flag_spec_CXX='${wl}-bexpall'
  17611. + # It seems that -bexpall does not export symbols beginning with
  17612. + # underscore (_), so it is better to generate a list of symbols to
  17613. + # export.
  17614. + always_export_symbols_CXX=yes
  17615. + if test "$aix_use_runtimelinking" = yes; then
  17616. + # Warning - without using the other runtime loading flags (-brtl),
  17617. + # -berok will link without error, but may produce a broken library.
  17618. + allow_undefined_flag_CXX='-berok'
  17619. + # Determine the default libpath from the value encoded in an empty
  17620. + # executable.
  17621. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17622. +/* end confdefs.h. */
  17623. +
  17624. +int
  17625. +main ()
  17626. +{
  17627. +
  17628. + ;
  17629. + return 0;
  17630. +}
  17631. +_ACEOF
  17632. +if ac_fn_cxx_try_link "$LINENO"; then :
  17633. +
  17634. +lt_aix_libpath_sed='
  17635. + /Import File Strings/,/^$/ {
  17636. + /^0/ {
  17637. + s/^0 *\(.*\)$/\1/
  17638. + p
  17639. + }
  17640. + }'
  17641. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  17642. +# Check for a 64-bit object if we didn't find anything.
  17643. +if test -z "$aix_libpath"; then
  17644. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  17645. +fi
  17646. +fi
  17647. +rm -f core conftest.err conftest.$ac_objext \
  17648. + conftest$ac_exeext conftest.$ac_ext
  17649. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  17650. +
  17651. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  17652. +
  17653. + 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  17654. + else
  17655. + if test "$host_cpu" = ia64; then
  17656. + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  17657. + allow_undefined_flag_CXX="-z nodefs"
  17658. + 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"
  17659. + else
  17660. + # Determine the default libpath from the value encoded in an
  17661. + # empty executable.
  17662. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17663. +/* end confdefs.h. */
  17664. +
  17665. +int
  17666. +main ()
  17667. +{
  17668. +
  17669. + ;
  17670. + return 0;
  17671. +}
  17672. +_ACEOF
  17673. +if ac_fn_cxx_try_link "$LINENO"; then :
  17674. +
  17675. +lt_aix_libpath_sed='
  17676. + /Import File Strings/,/^$/ {
  17677. + /^0/ {
  17678. + s/^0 *\(.*\)$/\1/
  17679. + p
  17680. + }
  17681. + }'
  17682. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  17683. +# Check for a 64-bit object if we didn't find anything.
  17684. +if test -z "$aix_libpath"; then
  17685. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  17686. +fi
  17687. +fi
  17688. +rm -f core conftest.err conftest.$ac_objext \
  17689. + conftest$ac_exeext conftest.$ac_ext
  17690. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  17691. +
  17692. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  17693. + # Warning - without using the other run time loading flags,
  17694. + # -berok will link without error, but may produce a broken library.
  17695. + no_undefined_flag_CXX=' ${wl}-bernotok'
  17696. + allow_undefined_flag_CXX=' ${wl}-berok'
  17697. + # Exported symbols can be pulled into shared objects from archives
  17698. + whole_archive_flag_spec_CXX='$convenience'
  17699. + archive_cmds_need_lc_CXX=yes
  17700. + # This is similar to how AIX traditionally builds its shared
  17701. + # libraries.
  17702. + 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'
  17703. + fi
  17704. + fi
  17705. + ;;
  17706. +
  17707. + beos*)
  17708. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  17709. + allow_undefined_flag_CXX=unsupported
  17710. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  17711. + # support --undefined. This deserves some investigation. FIXME
  17712. + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  17713. + else
  17714. + ld_shlibs_CXX=no
  17715. + fi
  17716. + ;;
  17717. +
  17718. + chorus*)
  17719. + case $cc_basename in
  17720. + *)
  17721. + # FIXME: insert proper C++ library support
  17722. + ld_shlibs_CXX=no
  17723. + ;;
  17724. + esac
  17725. + ;;
  17726. +
  17727. + cygwin* | mingw* | pw32* | cegcc*)
  17728. + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  17729. + # as there is no search path for DLLs.
  17730. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  17731. + allow_undefined_flag_CXX=unsupported
  17732. + always_export_symbols_CXX=no
  17733. + enable_shared_with_static_runtimes_CXX=yes
  17734. +
  17735. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  17736. + 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'
  17737. + # If the export-symbols file already is a .def file (1st line
  17738. + # is EXPORTS), use it as is; otherwise, prepend...
  17739. + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  17740. + cp $export_symbols $output_objdir/$soname.def;
  17741. + else
  17742. + echo EXPORTS > $output_objdir/$soname.def;
  17743. + cat $export_symbols >> $output_objdir/$soname.def;
  17744. + fi~
  17745. + $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'
  17746. + else
  17747. + ld_shlibs_CXX=no
  17748. + fi
  17749. + ;;
  17750. + darwin* | rhapsody*)
  17751. +
  17752. +
  17753. + archive_cmds_need_lc_CXX=no
  17754. + hardcode_direct_CXX=no
  17755. + hardcode_automatic_CXX=yes
  17756. + hardcode_shlibpath_var_CXX=unsupported
  17757. + whole_archive_flag_spec_CXX=''
  17758. + link_all_deplibs_CXX=yes
  17759. + allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  17760. + case $cc_basename in
  17761. + ifort*) _lt_dar_can_shared=yes ;;
  17762. + *) _lt_dar_can_shared=$GCC ;;
  17763. + esac
  17764. + if test "$_lt_dar_can_shared" = "yes"; then
  17765. + output_verbose_link_cmd=echo
  17766. + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  17767. + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  17768. + archive_expsym_cmds_CXX="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}"
  17769. + module_expsym_cmds_CXX="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}"
  17770. + if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  17771. + 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${_lt_dsymutil}"
  17772. + archive_expsym_cmds_CXX="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}"
  17773. + fi
  17774. +
  17775. + else
  17776. + ld_shlibs_CXX=no
  17777. + fi
  17778. +
  17779. + ;;
  17780. +
  17781. + dgux*)
  17782. + case $cc_basename in
  17783. + ec++*)
  17784. + # FIXME: insert proper C++ library support
  17785. + ld_shlibs_CXX=no
  17786. + ;;
  17787. + ghcx*)
  17788. + # Green Hills C++ Compiler
  17789. + # FIXME: insert proper C++ library support
  17790. + ld_shlibs_CXX=no
  17791. + ;;
  17792. + *)
  17793. + # FIXME: insert proper C++ library support
  17794. + ld_shlibs_CXX=no
  17795. + ;;
  17796. + esac
  17797. + ;;
  17798. +
  17799. + freebsd[12]*)
  17800. + # C++ shared libraries reported to be fairly broken before
  17801. + # switch to ELF
  17802. + ld_shlibs_CXX=no
  17803. + ;;
  17804. +
  17805. + freebsd-elf*)
  17806. + archive_cmds_need_lc_CXX=no
  17807. + ;;
  17808. +
  17809. + freebsd* | dragonfly*)
  17810. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  17811. + # conventions
  17812. + ld_shlibs_CXX=yes
  17813. + ;;
  17814. +
  17815. + gnu*)
  17816. + ;;
  17817. +
  17818. + hpux9*)
  17819. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  17820. + hardcode_libdir_separator_CXX=:
  17821. + export_dynamic_flag_spec_CXX='${wl}-E'
  17822. + hardcode_direct_CXX=yes
  17823. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  17824. + # but as the default
  17825. + # location of the library.
  17826. +
  17827. + case $cc_basename in
  17828. + CC*)
  17829. + # FIXME: insert proper C++ library support
  17830. + ld_shlibs_CXX=no
  17831. + ;;
  17832. + aCC*)
  17833. + 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'
  17834. + # Commands to make compiler produce verbose output that lists
  17835. + # what "hidden" libraries, object files and flags are used when
  17836. + # linking a shared library.
  17837. + #
  17838. + # There doesn't appear to be a way to prevent this compiler from
  17839. + # explicitly linking system object files so we need to strip them
  17840. + # from the output so that they don't get included in the library
  17841. + # dependencies.
  17842. + 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'
  17843. + ;;
  17844. + *)
  17845. + if test "$GXX" = yes; then
  17846. + 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'
  17847. + else
  17848. + # FIXME: insert proper C++ library support
  17849. + ld_shlibs_CXX=no
  17850. + fi
  17851. + ;;
  17852. + esac
  17853. + ;;
  17854. +
  17855. + hpux10*|hpux11*)
  17856. + if test $with_gnu_ld = no; then
  17857. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  17858. + hardcode_libdir_separator_CXX=:
  17859. +
  17860. + case $host_cpu in
  17861. + hppa*64*|ia64*)
  17862. + ;;
  17863. + *)
  17864. + export_dynamic_flag_spec_CXX='${wl}-E'
  17865. + ;;
  17866. + esac
  17867. + fi
  17868. + case $host_cpu in
  17869. + hppa*64*|ia64*)
  17870. + hardcode_direct_CXX=no
  17871. + hardcode_shlibpath_var_CXX=no
  17872. + ;;
  17873. + *)
  17874. + hardcode_direct_CXX=yes
  17875. + hardcode_direct_absolute_CXX=yes
  17876. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  17877. + # but as the default
  17878. + # location of the library.
  17879. + ;;
  17880. + esac
  17881. +
  17882. + case $cc_basename in
  17883. + CC*)
  17884. + # FIXME: insert proper C++ library support
  17885. + ld_shlibs_CXX=no
  17886. + ;;
  17887. + aCC*)
  17888. + case $host_cpu in
  17889. + hppa*64*)
  17890. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  17891. + ;;
  17892. + ia64*)
  17893. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  17894. + ;;
  17895. + *)
  17896. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  17897. + ;;
  17898. + esac
  17899. + # Commands to make compiler produce verbose output that lists
  17900. + # what "hidden" libraries, object files and flags are used when
  17901. + # linking a shared library.
  17902. + #
  17903. + # There doesn't appear to be a way to prevent this compiler from
  17904. + # explicitly linking system object files so we need to strip them
  17905. + # from the output so that they don't get included in the library
  17906. + # dependencies.
  17907. + 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'
  17908. + ;;
  17909. + *)
  17910. + if test "$GXX" = yes; then
  17911. + if test $with_gnu_ld = no; then
  17912. + case $host_cpu in
  17913. + hppa*64*)
  17914. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  17915. + ;;
  17916. + ia64*)
  17917. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  17918. + ;;
  17919. + *)
  17920. + 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'
  17921. + ;;
  17922. + esac
  17923. + fi
  17924. + else
  17925. + # FIXME: insert proper C++ library support
  17926. + ld_shlibs_CXX=no
  17927. + fi
  17928. + ;;
  17929. + esac
  17930. + ;;
  17931. +
  17932. + interix[3-9]*)
  17933. + hardcode_direct_CXX=no
  17934. + hardcode_shlibpath_var_CXX=no
  17935. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  17936. + export_dynamic_flag_spec_CXX='${wl}-E'
  17937. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  17938. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  17939. + # default) and relocated if they conflict, which is a slow very memory
  17940. + # consuming and fragmenting process. To avoid this, we pick a random,
  17941. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  17942. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  17943. + 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'
  17944. + 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'
  17945. + ;;
  17946. + irix5* | irix6*)
  17947. + case $cc_basename in
  17948. + CC*)
  17949. + # SGI C++
  17950. + archive_cmds_CXX='$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'
  17951. +
  17952. + # Archives containing C++ object files must be created using
  17953. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  17954. + # necessary to make sure instantiated templates are included
  17955. + # in the archive.
  17956. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  17957. + ;;
  17958. + *)
  17959. + if test "$GXX" = yes; then
  17960. + if test "$with_gnu_ld" = no; then
  17961. + archive_cmds_CXX='$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'
  17962. + else
  17963. + archive_cmds_CXX='$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'
  17964. + fi
  17965. + fi
  17966. + link_all_deplibs_CXX=yes
  17967. + ;;
  17968. + esac
  17969. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  17970. + hardcode_libdir_separator_CXX=:
  17971. + inherit_rpath_CXX=yes
  17972. + ;;
  17973. +
  17974. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  17975. + case $cc_basename in
  17976. + KCC*)
  17977. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  17978. +
  17979. + # KCC will only create a shared library if the output file
  17980. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  17981. + # to its proper name (with version) after linking.
  17982. + 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'
  17983. + 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'
  17984. + # Commands to make compiler produce verbose output that lists
  17985. + # what "hidden" libraries, object files and flags are used when
  17986. + # linking a shared library.
  17987. + #
  17988. + # There doesn't appear to be a way to prevent this compiler from
  17989. + # explicitly linking system object files so we need to strip them
  17990. + # from the output so that they don't get included in the library
  17991. + # dependencies.
  17992. + 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'
  17993. +
  17994. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  17995. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  17996. +
  17997. + # Archives containing C++ object files must be created using
  17998. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  17999. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  18000. + ;;
  18001. + icpc* | ecpc* )
  18002. + # Intel C++
  18003. + with_gnu_ld=yes
  18004. + # version 8.0 and above of icpc choke on multiply defined symbols
  18005. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  18006. + # earlier do not add the objects themselves.
  18007. + case `$CC -V 2>&1` in
  18008. + *"Version 7."*)
  18009. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18010. + 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'
  18011. + ;;
  18012. + *) # Version 8.0 or newer
  18013. + tmp_idyn=
  18014. + case $host_cpu in
  18015. + ia64*) tmp_idyn=' -i_dynamic';;
  18016. + esac
  18017. + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18018. + 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'
  18019. + ;;
  18020. + esac
  18021. + archive_cmds_need_lc_CXX=no
  18022. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  18023. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  18024. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  18025. + ;;
  18026. + pgCC* | pgcpp*)
  18027. + # Portland Group C++ compiler
  18028. + case `$CC -V` in
  18029. + *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  18030. + prelink_cmds_CXX='tpldir=Template.dir~
  18031. + rm -rf $tpldir~
  18032. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  18033. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  18034. + old_archive_cmds_CXX='tpldir=Template.dir~
  18035. + rm -rf $tpldir~
  18036. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  18037. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  18038. + $RANLIB $oldlib'
  18039. + archive_cmds_CXX='tpldir=Template.dir~
  18040. + rm -rf $tpldir~
  18041. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  18042. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  18043. + archive_expsym_cmds_CXX='tpldir=Template.dir~
  18044. + rm -rf $tpldir~
  18045. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  18046. + $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'
  18047. + ;;
  18048. + *) # Version 6 will use weak symbols
  18049. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  18050. + 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'
  18051. + ;;
  18052. + esac
  18053. +
  18054. + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  18055. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  18056. + 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'
  18057. + ;;
  18058. + cxx*)
  18059. + # Compaq C++
  18060. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18061. + 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'
  18062. +
  18063. + runpath_var=LD_RUN_PATH
  18064. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  18065. + hardcode_libdir_separator_CXX=:
  18066. +
  18067. + # Commands to make compiler produce verbose output that lists
  18068. + # what "hidden" libraries, object files and flags are used when
  18069. + # linking a shared library.
  18070. + #
  18071. + # There doesn't appear to be a way to prevent this compiler from
  18072. + # explicitly linking system object files so we need to strip them
  18073. + # from the output so that they don't get included in the library
  18074. + # dependencies.
  18075. + 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'
  18076. + ;;
  18077. + xl*)
  18078. + # IBM XL 8.0 on PPC, with GNU ld
  18079. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  18080. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  18081. + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18082. + if test "x$supports_anon_versioning" = xyes; then
  18083. + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  18084. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  18085. + echo "local: *; };" >> $output_objdir/$libname.ver~
  18086. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  18087. + fi
  18088. + ;;
  18089. + *)
  18090. + case `$CC -V 2>&1 | sed 5q` in
  18091. + *Sun\ C*)
  18092. + # Sun C++ 5.9
  18093. + no_undefined_flag_CXX=' -zdefs'
  18094. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  18095. + 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'
  18096. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  18097. + 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'
  18098. + compiler_needs_object_CXX=yes
  18099. +
  18100. + # Not sure whether something based on
  18101. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  18102. + # would be better.
  18103. + output_verbose_link_cmd='echo'
  18104. +
  18105. + # Archives containing C++ object files must be created using
  18106. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  18107. + # necessary to make sure instantiated templates are included
  18108. + # in the archive.
  18109. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  18110. + ;;
  18111. + esac
  18112. + ;;
  18113. + esac
  18114. + ;;
  18115. +
  18116. + lynxos*)
  18117. + # FIXME: insert proper C++ library support
  18118. + ld_shlibs_CXX=no
  18119. + ;;
  18120. +
  18121. + m88k*)
  18122. + # FIXME: insert proper C++ library support
  18123. + ld_shlibs_CXX=no
  18124. + ;;
  18125. +
  18126. + mvs*)
  18127. + case $cc_basename in
  18128. + cxx*)
  18129. + # FIXME: insert proper C++ library support
  18130. + ld_shlibs_CXX=no
  18131. + ;;
  18132. + *)
  18133. + # FIXME: insert proper C++ library support
  18134. + ld_shlibs_CXX=no
  18135. + ;;
  18136. + esac
  18137. + ;;
  18138. +
  18139. + netbsd*)
  18140. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  18141. + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  18142. + wlarc=
  18143. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  18144. + hardcode_direct_CXX=yes
  18145. + hardcode_shlibpath_var_CXX=no
  18146. + fi
  18147. + # Workaround some broken pre-1.5 toolchains
  18148. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  18149. + ;;
  18150. +
  18151. + *nto* | *qnx*)
  18152. + ld_shlibs_CXX=yes
  18153. + ;;
  18154. +
  18155. + openbsd2*)
  18156. + # C++ shared libraries are fairly broken
  18157. + ld_shlibs_CXX=no
  18158. + ;;
  18159. +
  18160. + openbsd*)
  18161. + if test -f /usr/libexec/ld.so; then
  18162. + hardcode_direct_CXX=yes
  18163. + hardcode_shlibpath_var_CXX=no
  18164. + hardcode_direct_absolute_CXX=yes
  18165. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  18166. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  18167. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18168. + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  18169. + export_dynamic_flag_spec_CXX='${wl}-E'
  18170. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  18171. + fi
  18172. + output_verbose_link_cmd=echo
  18173. + else
  18174. + ld_shlibs_CXX=no
  18175. + fi
  18176. + ;;
  18177. +
  18178. + osf3* | osf4* | osf5*)
  18179. + case $cc_basename in
  18180. + KCC*)
  18181. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  18182. +
  18183. + # KCC will only create a shared library if the output file
  18184. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  18185. + # to its proper name (with version) after linking.
  18186. + 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'
  18187. +
  18188. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  18189. + hardcode_libdir_separator_CXX=:
  18190. +
  18191. + # Archives containing C++ object files must be created using
  18192. + # the KAI C++ compiler.
  18193. + case $host in
  18194. + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  18195. + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  18196. + esac
  18197. + ;;
  18198. + RCC*)
  18199. + # Rational C++ 2.4.1
  18200. + # FIXME: insert proper C++ library support
  18201. + ld_shlibs_CXX=no
  18202. + ;;
  18203. + cxx*)
  18204. + case $host in
  18205. + osf3*)
  18206. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  18207. + archive_cmds_CXX='$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'
  18208. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  18209. + ;;
  18210. + *)
  18211. + allow_undefined_flag_CXX=' -expect_unresolved \*'
  18212. + archive_cmds_CXX='$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'
  18213. + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  18214. + echo "-hidden">> $lib.exp~
  18215. + $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~
  18216. + $RM $lib.exp'
  18217. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  18218. + ;;
  18219. + esac
  18220. +
  18221. + hardcode_libdir_separator_CXX=:
  18222. +
  18223. + # Commands to make compiler produce verbose output that lists
  18224. + # what "hidden" libraries, object files and flags are used when
  18225. + # linking a shared library.
  18226. + #
  18227. + # There doesn't appear to be a way to prevent this compiler from
  18228. + # explicitly linking system object files so we need to strip them
  18229. + # from the output so that they don't get included in the library
  18230. + # dependencies.
  18231. + 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'
  18232. + ;;
  18233. + *)
  18234. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  18235. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  18236. + case $host in
  18237. + osf3*)
  18238. + 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  18239. + ;;
  18240. + *)
  18241. + 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  18242. + ;;
  18243. + esac
  18244. +
  18245. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  18246. + hardcode_libdir_separator_CXX=:
  18247. +
  18248. + # Commands to make compiler produce verbose output that lists
  18249. + # what "hidden" libraries, object files and flags are used when
  18250. + # linking a shared library.
  18251. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  18252. +
  18253. + else
  18254. + # FIXME: insert proper C++ library support
  18255. + ld_shlibs_CXX=no
  18256. + fi
  18257. + ;;
  18258. + esac
  18259. + ;;
  18260. +
  18261. + psos*)
  18262. + # FIXME: insert proper C++ library support
  18263. + ld_shlibs_CXX=no
  18264. + ;;
  18265. +
  18266. + sunos4*)
  18267. + case $cc_basename in
  18268. + CC*)
  18269. + # Sun C++ 4.x
  18270. + # FIXME: insert proper C++ library support
  18271. + ld_shlibs_CXX=no
  18272. + ;;
  18273. + lcc*)
  18274. + # Lucid
  18275. + # FIXME: insert proper C++ library support
  18276. + ld_shlibs_CXX=no
  18277. + ;;
  18278. + *)
  18279. + # FIXME: insert proper C++ library support
  18280. + ld_shlibs_CXX=no
  18281. + ;;
  18282. + esac
  18283. + ;;
  18284. +
  18285. + solaris*)
  18286. + case $cc_basename in
  18287. + CC*)
  18288. + # Sun C++ 4.2, 5.x and Centerline C++
  18289. + archive_cmds_need_lc_CXX=yes
  18290. + no_undefined_flag_CXX=' -zdefs'
  18291. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  18292. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  18293. + $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'
  18294. +
  18295. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  18296. + hardcode_shlibpath_var_CXX=no
  18297. + case $host_os in
  18298. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  18299. + *)
  18300. + # The compiler driver will combine and reorder linker options,
  18301. + # but understands `-z linker_flag'.
  18302. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  18303. + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  18304. + ;;
  18305. + esac
  18306. + link_all_deplibs_CXX=yes
  18307. +
  18308. + output_verbose_link_cmd='echo'
  18309. +
  18310. + # Archives containing C++ object files must be created using
  18311. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  18312. + # necessary to make sure instantiated templates are included
  18313. + # in the archive.
  18314. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  18315. + ;;
  18316. + gcx*)
  18317. + # Green Hills C++ Compiler
  18318. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  18319. +
  18320. + # The C++ compiler must be used to create the archive.
  18321. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  18322. + ;;
  18323. + *)
  18324. + # GNU C++ compiler with Solaris linker
  18325. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  18326. + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  18327. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  18328. + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  18329. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  18330. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  18331. +
  18332. + # Commands to make compiler produce verbose output that lists
  18333. + # what "hidden" libraries, object files and flags are used when
  18334. + # linking a shared library.
  18335. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  18336. + else
  18337. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  18338. + # platform.
  18339. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  18340. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  18341. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  18342. +
  18343. + # Commands to make compiler produce verbose output that lists
  18344. + # what "hidden" libraries, object files and flags are used when
  18345. + # linking a shared library.
  18346. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  18347. + fi
  18348. +
  18349. + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  18350. + case $host_os in
  18351. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  18352. + *)
  18353. + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  18354. + ;;
  18355. + esac
  18356. + fi
  18357. + ;;
  18358. + esac
  18359. + ;;
  18360. +
  18361. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  18362. + no_undefined_flag_CXX='${wl}-z,text'
  18363. + archive_cmds_need_lc_CXX=no
  18364. + hardcode_shlibpath_var_CXX=no
  18365. + runpath_var='LD_RUN_PATH'
  18366. +
  18367. + case $cc_basename in
  18368. + CC*)
  18369. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18370. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18371. + ;;
  18372. + *)
  18373. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18374. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18375. + ;;
  18376. + esac
  18377. + ;;
  18378. +
  18379. + sysv5* | sco3.2v5* | sco5v6*)
  18380. + # Note: We can NOT use -z defs as we might desire, because we do not
  18381. + # link with -lc, and that would cause any symbols used from libc to
  18382. + # always be unresolved, which means just about no library would
  18383. + # ever link correctly. If we're not using GNU ld we use -z text
  18384. + # though, which does catch some bad symbols but isn't as heavy-handed
  18385. + # as -z defs.
  18386. + no_undefined_flag_CXX='${wl}-z,text'
  18387. + allow_undefined_flag_CXX='${wl}-z,nodefs'
  18388. + archive_cmds_need_lc_CXX=no
  18389. + hardcode_shlibpath_var_CXX=no
  18390. + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  18391. + hardcode_libdir_separator_CXX=':'
  18392. + link_all_deplibs_CXX=yes
  18393. + export_dynamic_flag_spec_CXX='${wl}-Bexport'
  18394. + runpath_var='LD_RUN_PATH'
  18395. +
  18396. + case $cc_basename in
  18397. + CC*)
  18398. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18399. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18400. + ;;
  18401. + *)
  18402. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18403. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18404. + ;;
  18405. + esac
  18406. + ;;
  18407. +
  18408. + tandem*)
  18409. + case $cc_basename in
  18410. + NCC*)
  18411. + # NonStop-UX NCC 3.20
  18412. + # FIXME: insert proper C++ library support
  18413. + ld_shlibs_CXX=no
  18414. + ;;
  18415. + *)
  18416. + # FIXME: insert proper C++ library support
  18417. + ld_shlibs_CXX=no
  18418. + ;;
  18419. + esac
  18420. + ;;
  18421. +
  18422. + vxworks*)
  18423. + # FIXME: insert proper C++ library support
  18424. + ld_shlibs_CXX=no
  18425. + ;;
  18426. +
  18427. + *)
  18428. + # FIXME: insert proper C++ library support
  18429. + ld_shlibs_CXX=no
  18430. + ;;
  18431. + esac
  18432. +
  18433. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  18434. +$as_echo "$ld_shlibs_CXX" >&6; }
  18435. + test "$ld_shlibs_CXX" = no && can_build_shared=no
  18436. +
  18437. + GCC_CXX="$GXX"
  18438. + LD_CXX="$LD"
  18439. +
  18440. + ## CAVEAT EMPTOR:
  18441. + ## There is no encapsulation within the following macros, do not change
  18442. + ## the running order or otherwise move them around unless you know exactly
  18443. + ## what you are doing...
  18444. + # Dependencies to place before and after the object being linked:
  18445. +predep_objects_CXX=
  18446. +postdep_objects_CXX=
  18447. +predeps_CXX=
  18448. +postdeps_CXX=
  18449. +compiler_lib_search_path_CXX=
  18450. +
  18451. +cat > conftest.$ac_ext <<_LT_EOF
  18452. +class Foo
  18453. +{
  18454. +public:
  18455. + Foo (void) { a = 0; }
  18456. +private:
  18457. + int a;
  18458. +};
  18459. +_LT_EOF
  18460. +
  18461. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  18462. + (eval $ac_compile) 2>&5
  18463. + ac_status=$?
  18464. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18465. + test $ac_status = 0; }; then
  18466. + # Parse the compiler output and extract the necessary
  18467. + # objects, libraries and library flags.
  18468. +
  18469. + # Sentinel used to keep track of whether or not we are before
  18470. + # the conftest object file.
  18471. + pre_test_object_deps_done=no
  18472. +
  18473. + for p in `eval "$output_verbose_link_cmd"`; do
  18474. + case $p in
  18475. +
  18476. + -L* | -R* | -l*)
  18477. + # Some compilers place space between "-{L,R}" and the path.
  18478. + # Remove the space.
  18479. + if test $p = "-L" ||
  18480. + test $p = "-R"; then
  18481. + prev=$p
  18482. + continue
  18483. + else
  18484. + prev=
  18485. + fi
  18486. +
  18487. + if test "$pre_test_object_deps_done" = no; then
  18488. + case $p in
  18489. + -L* | -R*)
  18490. + # Internal compiler library paths should come after those
  18491. + # provided the user. The postdeps already come after the
  18492. + # user supplied libs so there is no need to process them.
  18493. + if test -z "$compiler_lib_search_path_CXX"; then
  18494. + compiler_lib_search_path_CXX="${prev}${p}"
  18495. + else
  18496. + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  18497. + fi
  18498. + ;;
  18499. + # The "-l" case would never come before the object being
  18500. + # linked, so don't bother handling this case.
  18501. + esac
  18502. + else
  18503. + if test -z "$postdeps_CXX"; then
  18504. + postdeps_CXX="${prev}${p}"
  18505. + else
  18506. + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  18507. + fi
  18508. + fi
  18509. + ;;
  18510. +
  18511. + *.$objext)
  18512. + # This assumes that the test object file only shows up
  18513. + # once in the compiler output.
  18514. + if test "$p" = "conftest.$objext"; then
  18515. + pre_test_object_deps_done=yes
  18516. + continue
  18517. + fi
  18518. +
  18519. + if test "$pre_test_object_deps_done" = no; then
  18520. + if test -z "$predep_objects_CXX"; then
  18521. + predep_objects_CXX="$p"
  18522. + else
  18523. + predep_objects_CXX="$predep_objects_CXX $p"
  18524. + fi
  18525. + else
  18526. + if test -z "$postdep_objects_CXX"; then
  18527. + postdep_objects_CXX="$p"
  18528. + else
  18529. + postdep_objects_CXX="$postdep_objects_CXX $p"
  18530. + fi
  18531. + fi
  18532. + ;;
  18533. +
  18534. + *) ;; # Ignore the rest.
  18535. +
  18536. + esac
  18537. + done
  18538. +
  18539. + # Clean up.
  18540. + rm -f a.out a.exe
  18541. +else
  18542. + echo "libtool.m4: error: problem compiling CXX test program"
  18543. +fi
  18544. +
  18545. +$RM -f confest.$objext
  18546. +
  18547. +# PORTME: override above test on systems where it is broken
  18548. +case $host_os in
  18549. +interix[3-9]*)
  18550. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  18551. + # hack all around it, let's just trust "g++" to DTRT.
  18552. + predep_objects_CXX=
  18553. + postdep_objects_CXX=
  18554. + postdeps_CXX=
  18555. + ;;
  18556. +
  18557. +linux*)
  18558. + case `$CC -V 2>&1 | sed 5q` in
  18559. + *Sun\ C*)
  18560. + # Sun C++ 5.9
  18561. +
  18562. + # The more standards-conforming stlport4 library is
  18563. + # incompatible with the Cstd library. Avoid specifying
  18564. + # it if it's in CXXFLAGS. Ignore libCrun as
  18565. + # -library=stlport4 depends on it.
  18566. + case " $CXX $CXXFLAGS " in
  18567. + *" -library=stlport4 "*)
  18568. + solaris_use_stlport4=yes
  18569. + ;;
  18570. + esac
  18571. +
  18572. + if test "$solaris_use_stlport4" != yes; then
  18573. + postdeps_CXX='-library=Cstd -library=Crun'
  18574. + fi
  18575. + ;;
  18576. + esac
  18577. + ;;
  18578. +
  18579. +solaris*)
  18580. + case $cc_basename in
  18581. + CC*)
  18582. + # The more standards-conforming stlport4 library is
  18583. + # incompatible with the Cstd library. Avoid specifying
  18584. + # it if it's in CXXFLAGS. Ignore libCrun as
  18585. + # -library=stlport4 depends on it.
  18586. + case " $CXX $CXXFLAGS " in
  18587. + *" -library=stlport4 "*)
  18588. + solaris_use_stlport4=yes
  18589. + ;;
  18590. + esac
  18591. +
  18592. + # Adding this requires a known-good setup of shared libraries for
  18593. + # Sun compiler versions before 5.6, else PIC objects from an old
  18594. + # archive will be linked into the output, leading to subtle bugs.
  18595. + if test "$solaris_use_stlport4" != yes; then
  18596. + postdeps_CXX='-library=Cstd -library=Crun'
  18597. + fi
  18598. + ;;
  18599. + esac
  18600. + ;;
  18601. +esac
  18602. +
  18603. +
  18604. +case " $postdeps_CXX " in
  18605. +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  18606. +esac
  18607. + compiler_lib_search_dirs_CXX=
  18608. +if test -n "${compiler_lib_search_path_CXX}"; then
  18609. + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  18610. +fi
  18611. +
  18612. +
  18613. +
  18614. +
  18615. +
  18616. +
  18617. +
  18618. +
  18619. +
  18620. +
  18621. +
  18622. +
  18623. +
  18624. +
  18625. +
  18626. +
  18627. +
  18628. +
  18629. +
  18630. +
  18631. +
  18632. +
  18633. +
  18634. +
  18635. +
  18636. +
  18637. +
  18638. +
  18639. +
  18640. +
  18641. +
  18642. + lt_prog_compiler_wl_CXX=
  18643. +lt_prog_compiler_pic_CXX=
  18644. +lt_prog_compiler_static_CXX=
  18645. +
  18646. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  18647. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  18648. +
  18649. + # C++ specific cases for pic, static, wl, etc.
  18650. + if test "$GXX" = yes; then
  18651. + lt_prog_compiler_wl_CXX='-Wl,'
  18652. + lt_prog_compiler_static_CXX='-static'
  18653. +
  18654. + case $host_os in
  18655. + aix*)
  18656. + # All AIX code is PIC.
  18657. + if test "$host_cpu" = ia64; then
  18658. + # AIX 5 now supports IA64 processor
  18659. + lt_prog_compiler_static_CXX='-Bstatic'
  18660. + fi
  18661. + ;;
  18662. +
  18663. + amigaos*)
  18664. + case $host_cpu in
  18665. + powerpc)
  18666. + # see comment about AmigaOS4 .so support
  18667. + lt_prog_compiler_pic_CXX='-fPIC'
  18668. + ;;
  18669. + m68k)
  18670. + # FIXME: we need at least 68020 code to build shared libraries, but
  18671. + # adding the `-m68020' flag to GCC prevents building anything better,
  18672. + # like `-m68040'.
  18673. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  18674. + ;;
  18675. + esac
  18676. + ;;
  18677. +
  18678. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  18679. + # PIC is the default for these OSes.
  18680. + ;;
  18681. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  18682. + # This hack is so that the source file can tell whether it is being
  18683. + # built for inclusion in a dll (and should export symbols for example).
  18684. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  18685. + # (--disable-auto-import) libraries
  18686. + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  18687. + ;;
  18688. + darwin* | rhapsody*)
  18689. + # PIC is the default on this platform
  18690. + # Common symbols not allowed in MH_DYLIB files
  18691. + lt_prog_compiler_pic_CXX='-fno-common'
  18692. + ;;
  18693. + *djgpp*)
  18694. + # DJGPP does not support shared libraries at all
  18695. + lt_prog_compiler_pic_CXX=
  18696. + ;;
  18697. + interix[3-9]*)
  18698. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  18699. + # Instead, we relocate shared libraries at runtime.
  18700. + ;;
  18701. + sysv4*MP*)
  18702. + if test -d /usr/nec; then
  18703. + lt_prog_compiler_pic_CXX=-Kconform_pic
  18704. + fi
  18705. + ;;
  18706. + hpux*)
  18707. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  18708. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  18709. + # sets the default TLS model and affects inlining.
  18710. + case $host_cpu in
  18711. + hppa*64*)
  18712. + ;;
  18713. + *)
  18714. + lt_prog_compiler_pic_CXX='-fPIC'
  18715. + ;;
  18716. + esac
  18717. + ;;
  18718. + *qnx* | *nto*)
  18719. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  18720. + # it will coredump.
  18721. + lt_prog_compiler_pic_CXX='-fPIC -shared'
  18722. + ;;
  18723. + *)
  18724. + lt_prog_compiler_pic_CXX='-fPIC'
  18725. + ;;
  18726. + esac
  18727. + else
  18728. + case $host_os in
  18729. + aix[4-9]*)
  18730. + # All AIX code is PIC.
  18731. + if test "$host_cpu" = ia64; then
  18732. + # AIX 5 now supports IA64 processor
  18733. + lt_prog_compiler_static_CXX='-Bstatic'
  18734. + else
  18735. + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  18736. + fi
  18737. + ;;
  18738. + chorus*)
  18739. + case $cc_basename in
  18740. + cxch68*)
  18741. + # Green Hills C++ Compiler
  18742. + # _LT_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"
  18743. + ;;
  18744. + esac
  18745. + ;;
  18746. + dgux*)
  18747. + case $cc_basename in
  18748. + ec++*)
  18749. + lt_prog_compiler_pic_CXX='-KPIC'
  18750. + ;;
  18751. + ghcx*)
  18752. + # Green Hills C++ Compiler
  18753. + lt_prog_compiler_pic_CXX='-pic'
  18754. + ;;
  18755. + *)
  18756. + ;;
  18757. + esac
  18758. + ;;
  18759. + freebsd* | dragonfly*)
  18760. + # FreeBSD uses GNU C++
  18761. + ;;
  18762. + hpux9* | hpux10* | hpux11*)
  18763. + case $cc_basename in
  18764. + CC*)
  18765. + lt_prog_compiler_wl_CXX='-Wl,'
  18766. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  18767. + if test "$host_cpu" != ia64; then
  18768. + lt_prog_compiler_pic_CXX='+Z'
  18769. + fi
  18770. + ;;
  18771. + aCC*)
  18772. + lt_prog_compiler_wl_CXX='-Wl,'
  18773. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  18774. + case $host_cpu in
  18775. + hppa*64*|ia64*)
  18776. + # +Z the default
  18777. + ;;
  18778. + *)
  18779. + lt_prog_compiler_pic_CXX='+Z'
  18780. + ;;
  18781. + esac
  18782. + ;;
  18783. + *)
  18784. + ;;
  18785. + esac
  18786. + ;;
  18787. + interix*)
  18788. + # This is c89, which is MS Visual C++ (no shared libs)
  18789. + # Anyone wants to do a port?
  18790. + ;;
  18791. + irix5* | irix6* | nonstopux*)
  18792. + case $cc_basename in
  18793. + CC*)
  18794. + lt_prog_compiler_wl_CXX='-Wl,'
  18795. + lt_prog_compiler_static_CXX='-non_shared'
  18796. + # CC pic flag -KPIC is the default.
  18797. + ;;
  18798. + *)
  18799. + ;;
  18800. + esac
  18801. + ;;
  18802. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  18803. + case $cc_basename in
  18804. + KCC*)
  18805. + # KAI C++ Compiler
  18806. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  18807. + lt_prog_compiler_pic_CXX='-fPIC'
  18808. + ;;
  18809. + ecpc* )
  18810. + # old Intel C++ for x86_64 which still supported -KPIC.
  18811. + lt_prog_compiler_wl_CXX='-Wl,'
  18812. + lt_prog_compiler_pic_CXX='-KPIC'
  18813. + lt_prog_compiler_static_CXX='-static'
  18814. + ;;
  18815. + icpc* )
  18816. + # Intel C++, used to be incompatible with GCC.
  18817. + # ICC 10 doesn't accept -KPIC any more.
  18818. + lt_prog_compiler_wl_CXX='-Wl,'
  18819. + lt_prog_compiler_pic_CXX='-fPIC'
  18820. + lt_prog_compiler_static_CXX='-static'
  18821. + ;;
  18822. + pgCC* | pgcpp*)
  18823. + # Portland Group C++ compiler
  18824. + lt_prog_compiler_wl_CXX='-Wl,'
  18825. + lt_prog_compiler_pic_CXX='-fpic'
  18826. + lt_prog_compiler_static_CXX='-Bstatic'
  18827. + ;;
  18828. + cxx*)
  18829. + # Compaq C++
  18830. + # Make sure the PIC flag is empty. It appears that all Alpha
  18831. + # Linux and Compaq Tru64 Unix objects are PIC.
  18832. + lt_prog_compiler_pic_CXX=
  18833. + lt_prog_compiler_static_CXX='-non_shared'
  18834. + ;;
  18835. + xlc* | xlC*)
  18836. + # IBM XL 8.0 on PPC
  18837. + lt_prog_compiler_wl_CXX='-Wl,'
  18838. + lt_prog_compiler_pic_CXX='-qpic'
  18839. + lt_prog_compiler_static_CXX='-qstaticlink'
  18840. + ;;
  18841. + *)
  18842. + case `$CC -V 2>&1 | sed 5q` in
  18843. + *Sun\ C*)
  18844. + # Sun C++ 5.9
  18845. + lt_prog_compiler_pic_CXX='-KPIC'
  18846. + lt_prog_compiler_static_CXX='-Bstatic'
  18847. + lt_prog_compiler_wl_CXX='-Qoption ld '
  18848. + ;;
  18849. + esac
  18850. + ;;
  18851. + esac
  18852. + ;;
  18853. + lynxos*)
  18854. + ;;
  18855. + m88k*)
  18856. + ;;
  18857. + mvs*)
  18858. + case $cc_basename in
  18859. + cxx*)
  18860. + lt_prog_compiler_pic_CXX='-W c,exportall'
  18861. + ;;
  18862. + *)
  18863. + ;;
  18864. + esac
  18865. + ;;
  18866. + netbsd* | netbsdelf*-gnu)
  18867. + ;;
  18868. + *qnx* | *nto*)
  18869. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  18870. + # it will coredump.
  18871. + lt_prog_compiler_pic_CXX='-fPIC -shared'
  18872. + ;;
  18873. + osf3* | osf4* | osf5*)
  18874. + case $cc_basename in
  18875. + KCC*)
  18876. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  18877. + ;;
  18878. + RCC*)
  18879. + # Rational C++ 2.4.1
  18880. + lt_prog_compiler_pic_CXX='-pic'
  18881. + ;;
  18882. + cxx*)
  18883. + # Digital/Compaq C++
  18884. + lt_prog_compiler_wl_CXX='-Wl,'
  18885. + # Make sure the PIC flag is empty. It appears that all Alpha
  18886. + # Linux and Compaq Tru64 Unix objects are PIC.
  18887. + lt_prog_compiler_pic_CXX=
  18888. + lt_prog_compiler_static_CXX='-non_shared'
  18889. + ;;
  18890. + *)
  18891. + ;;
  18892. + esac
  18893. + ;;
  18894. + psos*)
  18895. + ;;
  18896. + solaris*)
  18897. + case $cc_basename in
  18898. + CC*)
  18899. + # Sun C++ 4.2, 5.x and Centerline C++
  18900. + lt_prog_compiler_pic_CXX='-KPIC'
  18901. + lt_prog_compiler_static_CXX='-Bstatic'
  18902. + lt_prog_compiler_wl_CXX='-Qoption ld '
  18903. + ;;
  18904. + gcx*)
  18905. + # Green Hills C++ Compiler
  18906. + lt_prog_compiler_pic_CXX='-PIC'
  18907. + ;;
  18908. + *)
  18909. + ;;
  18910. + esac
  18911. + ;;
  18912. + sunos4*)
  18913. + case $cc_basename in
  18914. + CC*)
  18915. + # Sun C++ 4.x
  18916. + lt_prog_compiler_pic_CXX='-pic'
  18917. + lt_prog_compiler_static_CXX='-Bstatic'
  18918. + ;;
  18919. + lcc*)
  18920. + # Lucid
  18921. + lt_prog_compiler_pic_CXX='-pic'
  18922. + ;;
  18923. + *)
  18924. + ;;
  18925. + esac
  18926. + ;;
  18927. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  18928. + case $cc_basename in
  18929. + CC*)
  18930. + lt_prog_compiler_wl_CXX='-Wl,'
  18931. + lt_prog_compiler_pic_CXX='-KPIC'
  18932. + lt_prog_compiler_static_CXX='-Bstatic'
  18933. + ;;
  18934. + esac
  18935. + ;;
  18936. + tandem*)
  18937. + case $cc_basename in
  18938. + NCC*)
  18939. + # NonStop-UX NCC 3.20
  18940. + lt_prog_compiler_pic_CXX='-KPIC'
  18941. + ;;
  18942. + *)
  18943. + ;;
  18944. + esac
  18945. + ;;
  18946. + vxworks*)
  18947. + ;;
  18948. + *)
  18949. + lt_prog_compiler_can_build_shared_CXX=no
  18950. + ;;
  18951. + esac
  18952. + fi
  18953. +
  18954. +case $host_os in
  18955. + # For platforms which do not support PIC, -DPIC is meaningless:
  18956. + *djgpp*)
  18957. + lt_prog_compiler_pic_CXX=
  18958. + ;;
  18959. + *)
  18960. + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  18961. + ;;
  18962. +esac
  18963. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  18964. +$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  18965. +
  18966. +
  18967. +
  18968. +#
  18969. +# Check to make sure the PIC flag actually works.
  18970. +#
  18971. +if test -n "$lt_prog_compiler_pic_CXX"; then
  18972. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  18973. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  18974. +if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  18975. + $as_echo_n "(cached) " >&6
  18976. +else
  18977. + lt_cv_prog_compiler_pic_works_CXX=no
  18978. + ac_outfile=conftest.$ac_objext
  18979. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  18980. + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  18981. + # Insert the option either (1) after the last *FLAGS variable, or
  18982. + # (2) before a word containing "conftest.", or (3) at the end.
  18983. + # Note that $ac_compile itself does not contain backslashes and begins
  18984. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  18985. + # The option is referenced via a variable to avoid confusing sed.
  18986. + lt_compile=`echo "$ac_compile" | $SED \
  18987. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  18988. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  18989. + -e 's:$: $lt_compiler_flag:'`
  18990. + (eval echo "\"\$as_me:13431: $lt_compile\"" >&5)
  18991. + (eval "$lt_compile" 2>conftest.err)
  18992. + ac_status=$?
  18993. + cat conftest.err >&5
  18994. + echo "$as_me:13435: \$? = $ac_status" >&5
  18995. + if (exit $ac_status) && test -s "$ac_outfile"; then
  18996. + # The compiler can only warn and ignore the option if not recognized
  18997. + # So say no if there are warnings other than the usual output.
  18998. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  18999. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  19000. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  19001. + lt_cv_prog_compiler_pic_works_CXX=yes
  19002. + fi
  19003. + fi
  19004. + $RM conftest*
  19005. +
  19006. +fi
  19007. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  19008. +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  19009. +
  19010. +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  19011. + case $lt_prog_compiler_pic_CXX in
  19012. + "" | " "*) ;;
  19013. + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  19014. + esac
  19015. +else
  19016. + lt_prog_compiler_pic_CXX=
  19017. + lt_prog_compiler_can_build_shared_CXX=no
  19018. +fi
  19019. +
  19020. +fi
  19021. +
  19022. +
  19023. +
  19024. +#
  19025. +# Check to make sure the static flag actually works.
  19026. +#
  19027. +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  19028. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  19029. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  19030. +if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  19031. + $as_echo_n "(cached) " >&6
  19032. +else
  19033. + lt_cv_prog_compiler_static_works_CXX=no
  19034. + save_LDFLAGS="$LDFLAGS"
  19035. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  19036. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  19037. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  19038. + # The linker can only warn and ignore the option if not recognized
  19039. + # So say no if there are warnings
  19040. + if test -s conftest.err; then
  19041. + # Append any errors to the config.log.
  19042. + cat conftest.err 1>&5
  19043. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  19044. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  19045. + if diff conftest.exp conftest.er2 >/dev/null; then
  19046. + lt_cv_prog_compiler_static_works_CXX=yes
  19047. + fi
  19048. + else
  19049. + lt_cv_prog_compiler_static_works_CXX=yes
  19050. + fi
  19051. + fi
  19052. + $RM -r conftest*
  19053. + LDFLAGS="$save_LDFLAGS"
  19054. +
  19055. +fi
  19056. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  19057. +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  19058. +
  19059. +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  19060. + :
  19061. +else
  19062. + lt_prog_compiler_static_CXX=
  19063. +fi
  19064. +
  19065. +
  19066. +
  19067. +
  19068. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  19069. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  19070. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  19071. + $as_echo_n "(cached) " >&6
  19072. +else
  19073. + lt_cv_prog_compiler_c_o_CXX=no
  19074. + $RM -r conftest 2>/dev/null
  19075. + mkdir conftest
  19076. + cd conftest
  19077. + mkdir out
  19078. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  19079. +
  19080. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  19081. + # Insert the option either (1) after the last *FLAGS variable, or
  19082. + # (2) before a word containing "conftest.", or (3) at the end.
  19083. + # Note that $ac_compile itself does not contain backslashes and begins
  19084. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  19085. + lt_compile=`echo "$ac_compile" | $SED \
  19086. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  19087. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  19088. + -e 's:$: $lt_compiler_flag:'`
  19089. + (eval echo "\"\$as_me:13530: $lt_compile\"" >&5)
  19090. + (eval "$lt_compile" 2>out/conftest.err)
  19091. + ac_status=$?
  19092. + cat out/conftest.err >&5
  19093. + echo "$as_me:13534: \$? = $ac_status" >&5
  19094. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  19095. + then
  19096. + # The compiler can only warn and ignore the option if not recognized
  19097. + # So say no if there are warnings
  19098. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  19099. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  19100. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  19101. + lt_cv_prog_compiler_c_o_CXX=yes
  19102. + fi
  19103. + fi
  19104. + chmod u+w . 2>&5
  19105. + $RM conftest*
  19106. + # SGI C++ compiler will create directory out/ii_files/ for
  19107. + # template instantiation
  19108. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  19109. + $RM out/* && rmdir out
  19110. + cd ..
  19111. + $RM -r conftest
  19112. + $RM conftest*
  19113. +
  19114. +fi
  19115. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  19116. +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  19117. +
  19118. +
  19119. +
  19120. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  19121. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  19122. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  19123. + $as_echo_n "(cached) " >&6
  19124. +else
  19125. + lt_cv_prog_compiler_c_o_CXX=no
  19126. + $RM -r conftest 2>/dev/null
  19127. + mkdir conftest
  19128. + cd conftest
  19129. + mkdir out
  19130. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  19131. +
  19132. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  19133. + # Insert the option either (1) after the last *FLAGS variable, or
  19134. + # (2) before a word containing "conftest.", or (3) at the end.
  19135. + # Note that $ac_compile itself does not contain backslashes and begins
  19136. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  19137. + lt_compile=`echo "$ac_compile" | $SED \
  19138. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  19139. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  19140. + -e 's:$: $lt_compiler_flag:'`
  19141. + (eval echo "\"\$as_me:13582: $lt_compile\"" >&5)
  19142. + (eval "$lt_compile" 2>out/conftest.err)
  19143. + ac_status=$?
  19144. + cat out/conftest.err >&5
  19145. + echo "$as_me:13586: \$? = $ac_status" >&5
  19146. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  19147. + then
  19148. + # The compiler can only warn and ignore the option if not recognized
  19149. + # So say no if there are warnings
  19150. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  19151. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  19152. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  19153. + lt_cv_prog_compiler_c_o_CXX=yes
  19154. + fi
  19155. + fi
  19156. + chmod u+w . 2>&5
  19157. + $RM conftest*
  19158. + # SGI C++ compiler will create directory out/ii_files/ for
  19159. + # template instantiation
  19160. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  19161. + $RM out/* && rmdir out
  19162. + cd ..
  19163. + $RM -r conftest
  19164. + $RM conftest*
  19165. +
  19166. +fi
  19167. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  19168. +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  19169. +
  19170. +
  19171. +
  19172. +
  19173. +hard_links="nottested"
  19174. +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  19175. + # do not overwrite the value of need_locks provided by the user
  19176. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  19177. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  19178. + hard_links=yes
  19179. + $RM conftest*
  19180. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  19181. + touch conftest.a
  19182. + ln conftest.a conftest.b 2>&5 || hard_links=no
  19183. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  19184. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  19185. +$as_echo "$hard_links" >&6; }
  19186. + if test "$hard_links" = no; then
  19187. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  19188. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  19189. + need_locks=warn
  19190. + fi
  19191. +else
  19192. + need_locks=no
  19193. +fi
  19194. +
  19195. +
  19196. +
  19197. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  19198. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  19199. +
  19200. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  19201. + case $host_os in
  19202. + aix[4-9]*)
  19203. + # If we're using GNU nm, then we don't want the "-C" option.
  19204. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  19205. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  19206. + 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'
  19207. + else
  19208. + 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'
  19209. + fi
  19210. + ;;
  19211. + pw32*)
  19212. + export_symbols_cmds_CXX="$ltdll_cmds"
  19213. + ;;
  19214. + cygwin* | mingw* | cegcc*)
  19215. + 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'
  19216. + ;;
  19217. + linux* | k*bsd*-gnu)
  19218. + link_all_deplibs_CXX=no
  19219. + ;;
  19220. + *)
  19221. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  19222. + ;;
  19223. + esac
  19224. + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  19225. +
  19226. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  19227. +$as_echo "$ld_shlibs_CXX" >&6; }
  19228. +test "$ld_shlibs_CXX" = no && can_build_shared=no
  19229. +
  19230. +with_gnu_ld_CXX=$with_gnu_ld
  19231. +
  19232. +
  19233. +
  19234. +
  19235. +
  19236. +
  19237. +#
  19238. +# Do we need to explicitly link libc?
  19239. +#
  19240. +case "x$archive_cmds_need_lc_CXX" in
  19241. +x|xyes)
  19242. + # Assume -lc should be added
  19243. + archive_cmds_need_lc_CXX=yes
  19244. +
  19245. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  19246. + case $archive_cmds_CXX in
  19247. + *'~'*)
  19248. + # FIXME: we may have to deal with multi-command sequences.
  19249. + ;;
  19250. + '$CC '*)
  19251. + # Test whether the compiler implicitly links with -lc since on some
  19252. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  19253. + # to ld, don't add -lc before -lgcc.
  19254. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  19255. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  19256. + $RM conftest*
  19257. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  19258. +
  19259. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  19260. + (eval $ac_compile) 2>&5
  19261. + ac_status=$?
  19262. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19263. + test $ac_status = 0; } 2>conftest.err; then
  19264. + soname=conftest
  19265. + lib=conftest
  19266. + libobjs=conftest.$ac_objext
  19267. + deplibs=
  19268. + wl=$lt_prog_compiler_wl_CXX
  19269. + pic_flag=$lt_prog_compiler_pic_CXX
  19270. + compiler_flags=-v
  19271. + linker_flags=-v
  19272. + verstring=
  19273. + output_objdir=.
  19274. + libname=conftest
  19275. + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  19276. + allow_undefined_flag_CXX=
  19277. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  19278. + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  19279. + ac_status=$?
  19280. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19281. + test $ac_status = 0; }
  19282. + then
  19283. + archive_cmds_need_lc_CXX=no
  19284. + else
  19285. + archive_cmds_need_lc_CXX=yes
  19286. + fi
  19287. + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  19288. + else
  19289. + cat conftest.err 1>&5
  19290. + fi
  19291. + $RM conftest*
  19292. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  19293. +$as_echo "$archive_cmds_need_lc_CXX" >&6; }
  19294. + ;;
  19295. + esac
  19296. + fi
  19297. + ;;
  19298. +esac
  19299. +
  19300. +
  19301. +
  19302. +
  19303. +
  19304. +
  19305. +
  19306. +
  19307. +
  19308. +
  19309. +
  19310. +
  19311. +
  19312. +
  19313. +
  19314. +
  19315. +
  19316. +
  19317. +
  19318. +
  19319. +
  19320. +
  19321. +
  19322. +
  19323. +
  19324. +
  19325. +
  19326. +
  19327. +
  19328. +
  19329. +
  19330. +
  19331. +
  19332. +
  19333. +
  19334. +
  19335. +
  19336. +
  19337. +
  19338. +
  19339. +
  19340. +
  19341. +
  19342. +
  19343. +
  19344. +
  19345. +
  19346. +
  19347. +
  19348. +
  19349. +
  19350. +
  19351. +
  19352. +
  19353. +
  19354. +
  19355. +
  19356. +
  19357. +
  19358. +
  19359. +
  19360. +
  19361. +
  19362. +
  19363. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  19364. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  19365. +
  19366. +library_names_spec=
  19367. +libname_spec='lib$name'
  19368. +soname_spec=
  19369. +shrext_cmds=".so"
  19370. +postinstall_cmds=
  19371. +postuninstall_cmds=
  19372. +finish_cmds=
  19373. +finish_eval=
  19374. +shlibpath_var=
  19375. +shlibpath_overrides_runpath=unknown
  19376. +version_type=none
  19377. +dynamic_linker="$host_os ld.so"
  19378. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  19379. +need_lib_prefix=unknown
  19380. +hardcode_into_libs=no
  19381. +
  19382. +# when you set need_version to no, make sure it does not cause -set_version
  19383. +# flags to be left without arguments
  19384. +need_version=unknown
  19385. +
  19386. +case $host_os in
  19387. +aix3*)
  19388. + version_type=linux
  19389. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  19390. + shlibpath_var=LIBPATH
  19391. +
  19392. + # AIX 3 has no versioning support, so we append a major version to the name.
  19393. + soname_spec='${libname}${release}${shared_ext}$major'
  19394. + ;;
  19395. +
  19396. +aix[4-9]*)
  19397. + version_type=linux
  19398. + need_lib_prefix=no
  19399. + need_version=no
  19400. + hardcode_into_libs=yes
  19401. + if test "$host_cpu" = ia64; then
  19402. + # AIX 5 supports IA64
  19403. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  19404. + shlibpath_var=LD_LIBRARY_PATH
  19405. + else
  19406. + # With GCC up to 2.95.x, collect2 would create an import file
  19407. + # for dependence libraries. The import file would start with
  19408. + # the line `#! .'. This would cause the generated library to
  19409. + # depend on `.', always an invalid library. This was fixed in
  19410. + # development snapshots of GCC prior to 3.0.
  19411. + case $host_os in
  19412. + aix4 | aix4.[01] | aix4.[01].*)
  19413. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  19414. + echo ' yes '
  19415. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  19416. + :
  19417. + else
  19418. + can_build_shared=no
  19419. + fi
  19420. + ;;
  19421. + esac
  19422. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  19423. + # soname into executable. Probably we can add versioning support to
  19424. + # collect2, so additional links can be useful in future.
  19425. + if test "$aix_use_runtimelinking" = yes; then
  19426. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  19427. + # instead of lib<name>.a to let people know that these are not
  19428. + # typical AIX shared libraries.
  19429. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19430. + else
  19431. + # We preserve .a as extension for shared libraries through AIX4.2
  19432. + # and later when we are not doing run time linking.
  19433. + library_names_spec='${libname}${release}.a $libname.a'
  19434. + soname_spec='${libname}${release}${shared_ext}$major'
  19435. + fi
  19436. + shlibpath_var=LIBPATH
  19437. + fi
  19438. + ;;
  19439. +
  19440. +amigaos*)
  19441. + case $host_cpu in
  19442. + powerpc)
  19443. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  19444. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  19445. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19446. + ;;
  19447. + m68k)
  19448. + library_names_spec='$libname.ixlibrary $libname.a'
  19449. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  19450. + 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'
  19451. + ;;
  19452. + esac
  19453. + ;;
  19454. +
  19455. +beos*)
  19456. + library_names_spec='${libname}${shared_ext}'
  19457. + dynamic_linker="$host_os ld.so"
  19458. + shlibpath_var=LIBRARY_PATH
  19459. + ;;
  19460. +
  19461. +bsdi[45]*)
  19462. + version_type=linux
  19463. + need_version=no
  19464. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19465. + soname_spec='${libname}${release}${shared_ext}$major'
  19466. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  19467. + shlibpath_var=LD_LIBRARY_PATH
  19468. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  19469. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  19470. + # the default ld.so.conf also contains /usr/contrib/lib and
  19471. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  19472. + # libtool to hard-code these into programs
  19473. + ;;
  19474. +
  19475. +cygwin* | mingw* | pw32* | cegcc*)
  19476. + version_type=windows
  19477. + shrext_cmds=".dll"
  19478. + need_version=no
  19479. + need_lib_prefix=no
  19480. +
  19481. + case $GCC,$host_os in
  19482. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  19483. + library_names_spec='$libname.dll.a'
  19484. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  19485. + postinstall_cmds='base_file=`basename \${file}`~
  19486. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  19487. + dldir=$destdir/`dirname \$dlpath`~
  19488. + test -d \$dldir || mkdir -p \$dldir~
  19489. + $install_prog $dir/$dlname \$dldir/$dlname~
  19490. + chmod a+x \$dldir/$dlname~
  19491. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  19492. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  19493. + fi'
  19494. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  19495. + dlpath=$dir/\$dldll~
  19496. + $RM \$dlpath'
  19497. + shlibpath_overrides_runpath=yes
  19498. +
  19499. + case $host_os in
  19500. + cygwin*)
  19501. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  19502. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  19503. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  19504. + ;;
  19505. + mingw* | cegcc*)
  19506. + # MinGW DLLs use traditional 'lib' prefix
  19507. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  19508. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  19509. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  19510. + # It is most probably a Windows format PATH printed by
  19511. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  19512. + # path with ; separators, and with drive letters. We can handle the
  19513. + # drive letters (cygwin fileutils understands them), so leave them,
  19514. + # especially as we might pass files found there to a mingw objdump,
  19515. + # which wouldn't understand a cygwinified path. Ahh.
  19516. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  19517. + else
  19518. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  19519. + fi
  19520. + ;;
  19521. + pw32*)
  19522. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  19523. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  19524. + ;;
  19525. + esac
  19526. + ;;
  19527. +
  19528. + *)
  19529. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  19530. + ;;
  19531. + esac
  19532. + dynamic_linker='Win32 ld.exe'
  19533. + # FIXME: first we should search . and the directory the executable is in
  19534. + shlibpath_var=PATH
  19535. + ;;
  19536. +
  19537. +darwin* | rhapsody*)
  19538. + dynamic_linker="$host_os dyld"
  19539. + version_type=darwin
  19540. + need_lib_prefix=no
  19541. + need_version=no
  19542. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  19543. + soname_spec='${libname}${release}${major}$shared_ext'
  19544. + shlibpath_overrides_runpath=yes
  19545. + shlibpath_var=DYLD_LIBRARY_PATH
  19546. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  19547. +
  19548. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  19549. + ;;
  19550. +
  19551. +dgux*)
  19552. + version_type=linux
  19553. + need_lib_prefix=no
  19554. + need_version=no
  19555. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  19556. + soname_spec='${libname}${release}${shared_ext}$major'
  19557. + shlibpath_var=LD_LIBRARY_PATH
  19558. + ;;
  19559. +
  19560. +freebsd1*)
  19561. + dynamic_linker=no
  19562. + ;;
  19563. +
  19564. +freebsd* | dragonfly*)
  19565. + # DragonFly does not have aout. When/if they implement a new
  19566. + # versioning mechanism, adjust this.
  19567. + if test -x /usr/bin/objformat; then
  19568. + objformat=`/usr/bin/objformat`
  19569. + else
  19570. + case $host_os in
  19571. + freebsd[123]*) objformat=aout ;;
  19572. + *) objformat=elf ;;
  19573. + esac
  19574. + fi
  19575. + version_type=freebsd-$objformat
  19576. + case $version_type in
  19577. + freebsd-elf*)
  19578. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  19579. + need_version=no
  19580. + need_lib_prefix=no
  19581. + ;;
  19582. + freebsd-*)
  19583. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  19584. + need_version=yes
  19585. + ;;
  19586. + esac
  19587. + shlibpath_var=LD_LIBRARY_PATH
  19588. + case $host_os in
  19589. + freebsd2*)
  19590. + shlibpath_overrides_runpath=yes
  19591. + ;;
  19592. + freebsd3.[01]* | freebsdelf3.[01]*)
  19593. + shlibpath_overrides_runpath=yes
  19594. + hardcode_into_libs=yes
  19595. + ;;
  19596. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  19597. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  19598. + shlibpath_overrides_runpath=no
  19599. + hardcode_into_libs=yes
  19600. + ;;
  19601. + *) # from 4.6 on, and DragonFly
  19602. + shlibpath_overrides_runpath=yes
  19603. + hardcode_into_libs=yes
  19604. + ;;
  19605. + esac
  19606. + ;;
  19607. +
  19608. +gnu*)
  19609. + version_type=linux
  19610. + need_lib_prefix=no
  19611. + need_version=no
  19612. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  19613. + soname_spec='${libname}${release}${shared_ext}$major'
  19614. + shlibpath_var=LD_LIBRARY_PATH
  19615. + hardcode_into_libs=yes
  19616. + ;;
  19617. +
  19618. +hpux9* | hpux10* | hpux11*)
  19619. + # Give a soname corresponding to the major version so that dld.sl refuses to
  19620. + # link against other versions.
  19621. + version_type=sunos
  19622. + need_lib_prefix=no
  19623. + need_version=no
  19624. + case $host_cpu in
  19625. + ia64*)
  19626. + shrext_cmds='.so'
  19627. + hardcode_into_libs=yes
  19628. + dynamic_linker="$host_os dld.so"
  19629. + shlibpath_var=LD_LIBRARY_PATH
  19630. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  19631. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19632. + soname_spec='${libname}${release}${shared_ext}$major'
  19633. + if test "X$HPUX_IA64_MODE" = X32; then
  19634. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  19635. + else
  19636. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  19637. + fi
  19638. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  19639. + ;;
  19640. + hppa*64*)
  19641. + shrext_cmds='.sl'
  19642. + hardcode_into_libs=yes
  19643. + dynamic_linker="$host_os dld.sl"
  19644. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  19645. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  19646. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19647. + soname_spec='${libname}${release}${shared_ext}$major'
  19648. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  19649. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  19650. + ;;
  19651. + *)
  19652. + shrext_cmds='.sl'
  19653. + dynamic_linker="$host_os dld.sl"
  19654. + shlibpath_var=SHLIB_PATH
  19655. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  19656. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19657. + soname_spec='${libname}${release}${shared_ext}$major'
  19658. + ;;
  19659. + esac
  19660. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  19661. + postinstall_cmds='chmod 555 $lib'
  19662. + ;;
  19663. +
  19664. +interix[3-9]*)
  19665. + version_type=linux
  19666. + need_lib_prefix=no
  19667. + need_version=no
  19668. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  19669. + soname_spec='${libname}${release}${shared_ext}$major'
  19670. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  19671. + shlibpath_var=LD_LIBRARY_PATH
  19672. + shlibpath_overrides_runpath=no
  19673. + hardcode_into_libs=yes
  19674. + ;;
  19675. +
  19676. +irix5* | irix6* | nonstopux*)
  19677. + case $host_os in
  19678. + nonstopux*) version_type=nonstopux ;;
  19679. + *)
  19680. + if test "$lt_cv_prog_gnu_ld" = yes; then
  19681. + version_type=linux
  19682. + else
  19683. + version_type=irix
  19684. + fi ;;
  19685. + esac
  19686. + need_lib_prefix=no
  19687. + need_version=no
  19688. + soname_spec='${libname}${release}${shared_ext}$major'
  19689. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  19690. + case $host_os in
  19691. + irix5* | nonstopux*)
  19692. + libsuff= shlibsuff=
  19693. + ;;
  19694. + *)
  19695. + case $LD in # libtool.m4 will add one of these switches to LD
  19696. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  19697. + libsuff= shlibsuff= libmagic=32-bit;;
  19698. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  19699. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  19700. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  19701. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  19702. + *) libsuff= shlibsuff= libmagic=never-match;;
  19703. + esac
  19704. + ;;
  19705. + esac
  19706. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  19707. + shlibpath_overrides_runpath=no
  19708. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  19709. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  19710. + hardcode_into_libs=yes
  19711. + ;;
  19712. +
  19713. +# No shared lib support for Linux oldld, aout, or coff.
  19714. +linux*oldld* | linux*aout* | linux*coff*)
  19715. + dynamic_linker=no
  19716. + ;;
  19717. +
  19718. +# This must be Linux ELF.
  19719. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  19720. + version_type=linux
  19721. + need_lib_prefix=no
  19722. + need_version=no
  19723. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19724. + soname_spec='${libname}${release}${shared_ext}$major'
  19725. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  19726. + shlibpath_var=LD_LIBRARY_PATH
  19727. + shlibpath_overrides_runpath=no
  19728. + # Some binutils ld are patched to set DT_RUNPATH
  19729. + save_LDFLAGS=$LDFLAGS
  19730. + save_libdir=$libdir
  19731. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  19732. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  19733. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19734. +/* end confdefs.h. */
  19735. +
  19736. +int
  19737. +main ()
  19738. +{
  19739. +
  19740. + ;
  19741. + return 0;
  19742. +}
  19743. +_ACEOF
  19744. +if ac_fn_cxx_try_link "$LINENO"; then :
  19745. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  19746. + shlibpath_overrides_runpath=yes
  19747. +fi
  19748. +fi
  19749. +rm -f core conftest.err conftest.$ac_objext \
  19750. + conftest$ac_exeext conftest.$ac_ext
  19751. + LDFLAGS=$save_LDFLAGS
  19752. + libdir=$save_libdir
  19753. +
  19754. + # This implies no fast_install, which is unacceptable.
  19755. + # Some rework will be needed to allow for fast_install
  19756. + # before this can be enabled.
  19757. + hardcode_into_libs=yes
  19758. +
  19759. + # Append ld.so.conf contents to the search path
  19760. + if test -f /etc/ld.so.conf; then
  19761. + 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' ' '`
  19762. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  19763. + fi
  19764. +
  19765. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  19766. + # powerpc, because MkLinux only supported shared libraries with the
  19767. + # GNU dynamic linker. Since this was broken with cross compilers,
  19768. + # most powerpc-linux boxes support dynamic linking these days and
  19769. + # people can always --disable-shared, the test was removed, and we
  19770. + # assume the GNU/Linux dynamic linker is in use.
  19771. + dynamic_linker='GNU/Linux ld.so'
  19772. + ;;
  19773. +
  19774. +netbsdelf*-gnu)
  19775. + version_type=linux
  19776. + need_lib_prefix=no
  19777. + need_version=no
  19778. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  19779. + soname_spec='${libname}${release}${shared_ext}$major'
  19780. + shlibpath_var=LD_LIBRARY_PATH
  19781. + shlibpath_overrides_runpath=no
  19782. + hardcode_into_libs=yes
  19783. + dynamic_linker='NetBSD ld.elf_so'
  19784. + ;;
  19785. +
  19786. +netbsd*)
  19787. + version_type=sunos
  19788. + need_lib_prefix=no
  19789. + need_version=no
  19790. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  19791. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  19792. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  19793. + dynamic_linker='NetBSD (a.out) ld.so'
  19794. + else
  19795. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  19796. + soname_spec='${libname}${release}${shared_ext}$major'
  19797. + dynamic_linker='NetBSD ld.elf_so'
  19798. + fi
  19799. + shlibpath_var=LD_LIBRARY_PATH
  19800. + shlibpath_overrides_runpath=yes
  19801. + hardcode_into_libs=yes
  19802. + ;;
  19803. +
  19804. +newsos6)
  19805. + version_type=linux
  19806. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19807. + shlibpath_var=LD_LIBRARY_PATH
  19808. + shlibpath_overrides_runpath=yes
  19809. + ;;
  19810. +
  19811. +*nto* | *qnx*)
  19812. + version_type=qnx
  19813. + need_lib_prefix=no
  19814. + need_version=no
  19815. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19816. + soname_spec='${libname}${release}${shared_ext}$major'
  19817. + shlibpath_var=LD_LIBRARY_PATH
  19818. + shlibpath_overrides_runpath=no
  19819. + hardcode_into_libs=yes
  19820. + dynamic_linker='ldqnx.so'
  19821. + ;;
  19822. +
  19823. +openbsd*)
  19824. + version_type=sunos
  19825. + sys_lib_dlsearch_path_spec="/usr/lib"
  19826. + need_lib_prefix=no
  19827. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  19828. + case $host_os in
  19829. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  19830. + *) need_version=no ;;
  19831. + esac
  19832. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  19833. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  19834. + shlibpath_var=LD_LIBRARY_PATH
  19835. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  19836. + case $host_os in
  19837. + openbsd2.[89] | openbsd2.[89].*)
  19838. + shlibpath_overrides_runpath=no
  19839. + ;;
  19840. + *)
  19841. + shlibpath_overrides_runpath=yes
  19842. + ;;
  19843. + esac
  19844. + else
  19845. + shlibpath_overrides_runpath=yes
  19846. + fi
  19847. + ;;
  19848. +
  19849. +os2*)
  19850. + libname_spec='$name'
  19851. + shrext_cmds=".dll"
  19852. + need_lib_prefix=no
  19853. + library_names_spec='$libname${shared_ext} $libname.a'
  19854. + dynamic_linker='OS/2 ld.exe'
  19855. + shlibpath_var=LIBPATH
  19856. + ;;
  19857. +
  19858. +osf3* | osf4* | osf5*)
  19859. + version_type=osf
  19860. + need_lib_prefix=no
  19861. + need_version=no
  19862. + soname_spec='${libname}${release}${shared_ext}$major'
  19863. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19864. + shlibpath_var=LD_LIBRARY_PATH
  19865. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  19866. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  19867. + ;;
  19868. +
  19869. +rdos*)
  19870. + dynamic_linker=no
  19871. + ;;
  19872. +
  19873. +solaris*)
  19874. + version_type=linux
  19875. + need_lib_prefix=no
  19876. + need_version=no
  19877. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19878. + soname_spec='${libname}${release}${shared_ext}$major'
  19879. + shlibpath_var=LD_LIBRARY_PATH
  19880. + shlibpath_overrides_runpath=yes
  19881. + hardcode_into_libs=yes
  19882. + # ldd complains unless libraries are executable
  19883. + postinstall_cmds='chmod +x $lib'
  19884. + ;;
  19885. +
  19886. +sunos4*)
  19887. + version_type=sunos
  19888. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  19889. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  19890. + shlibpath_var=LD_LIBRARY_PATH
  19891. + shlibpath_overrides_runpath=yes
  19892. + if test "$with_gnu_ld" = yes; then
  19893. + need_lib_prefix=no
  19894. + fi
  19895. + need_version=yes
  19896. + ;;
  19897. +
  19898. +sysv4 | sysv4.3*)
  19899. + version_type=linux
  19900. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19901. + soname_spec='${libname}${release}${shared_ext}$major'
  19902. + shlibpath_var=LD_LIBRARY_PATH
  19903. + case $host_vendor in
  19904. + sni)
  19905. + shlibpath_overrides_runpath=no
  19906. + need_lib_prefix=no
  19907. + runpath_var=LD_RUN_PATH
  19908. + ;;
  19909. + siemens)
  19910. + need_lib_prefix=no
  19911. + ;;
  19912. + motorola)
  19913. + need_lib_prefix=no
  19914. + need_version=no
  19915. + shlibpath_overrides_runpath=no
  19916. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  19917. + ;;
  19918. + esac
  19919. + ;;
  19920. +
  19921. +sysv4*MP*)
  19922. + if test -d /usr/nec ;then
  19923. + version_type=linux
  19924. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  19925. + soname_spec='$libname${shared_ext}.$major'
  19926. + shlibpath_var=LD_LIBRARY_PATH
  19927. + fi
  19928. + ;;
  19929. +
  19930. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  19931. + version_type=freebsd-elf
  19932. + need_lib_prefix=no
  19933. + need_version=no
  19934. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  19935. + soname_spec='${libname}${release}${shared_ext}$major'
  19936. + shlibpath_var=LD_LIBRARY_PATH
  19937. + shlibpath_overrides_runpath=yes
  19938. + hardcode_into_libs=yes
  19939. + if test "$with_gnu_ld" = yes; then
  19940. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  19941. + else
  19942. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  19943. + case $host_os in
  19944. + sco3.2v5*)
  19945. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  19946. + ;;
  19947. + esac
  19948. + fi
  19949. + sys_lib_dlsearch_path_spec='/usr/lib'
  19950. + ;;
  19951. +
  19952. +tpf*)
  19953. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  19954. + version_type=linux
  19955. + need_lib_prefix=no
  19956. + need_version=no
  19957. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19958. + shlibpath_var=LD_LIBRARY_PATH
  19959. + shlibpath_overrides_runpath=no
  19960. + hardcode_into_libs=yes
  19961. + ;;
  19962. +
  19963. +uts4*)
  19964. + version_type=linux
  19965. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  19966. + soname_spec='${libname}${release}${shared_ext}$major'
  19967. + shlibpath_var=LD_LIBRARY_PATH
  19968. + ;;
  19969. +
  19970. +*)
  19971. + dynamic_linker=no
  19972. + ;;
  19973. +esac
  19974. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  19975. +$as_echo "$dynamic_linker" >&6; }
  19976. +test "$dynamic_linker" = no && can_build_shared=no
  19977. +
  19978. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  19979. +if test "$GCC" = yes; then
  19980. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  19981. +fi
  19982. +
  19983. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  19984. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  19985. +fi
  19986. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  19987. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  19988. +fi
  19989. +
  19990. +
  19991. +
  19992. +
  19993. +
  19994. +
  19995. +
  19996. +
  19997. +
  19998. +
  19999. +
  20000. +
  20001. +
  20002. +
  20003. +
  20004. +
  20005. +
  20006. +
  20007. +
  20008. +
  20009. +
  20010. +
  20011. +
  20012. +
  20013. +
  20014. +
  20015. +
  20016. +
  20017. +
  20018. +
  20019. +
  20020. +
  20021. +
  20022. +
  20023. +
  20024. +
  20025. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  20026. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  20027. +hardcode_action_CXX=
  20028. +if test -n "$hardcode_libdir_flag_spec_CXX" ||
  20029. + test -n "$runpath_var_CXX" ||
  20030. + test "X$hardcode_automatic_CXX" = "Xyes" ; then
  20031. +
  20032. + # We can hardcode non-existent directories.
  20033. + if test "$hardcode_direct_CXX" != no &&
  20034. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  20035. + # have to relink, otherwise we might link with an installed library
  20036. + # when we should be linking with a yet-to-be-installed one
  20037. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  20038. + test "$hardcode_minus_L_CXX" != no; then
  20039. + # Linking always hardcodes the temporary library directory.
  20040. + hardcode_action_CXX=relink
  20041. + else
  20042. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  20043. + hardcode_action_CXX=immediate
  20044. + fi
  20045. +else
  20046. + # We cannot hardcode anything, or else we can only hardcode existing
  20047. + # directories.
  20048. + hardcode_action_CXX=unsupported
  20049. +fi
  20050. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  20051. +$as_echo "$hardcode_action_CXX" >&6; }
  20052. +
  20053. +if test "$hardcode_action_CXX" = relink ||
  20054. + test "$inherit_rpath_CXX" = yes; then
  20055. + # Fast installation is not supported
  20056. + enable_fast_install=no
  20057. +elif test "$shlibpath_overrides_runpath" = yes ||
  20058. + test "$enable_shared" = no; then
  20059. + # Fast installation is not necessary
  20060. + enable_fast_install=needless
  20061. +fi
  20062. +
  20063. +
  20064. +
  20065. +
  20066. +
  20067. +
  20068. +
  20069. + fi # test -n "$compiler"
  20070. +
  20071. + CC=$lt_save_CC
  20072. + LDCXX=$LD
  20073. + LD=$lt_save_LD
  20074. + GCC=$lt_save_GCC
  20075. + with_gnu_ld=$lt_save_with_gnu_ld
  20076. + lt_cv_path_LDCXX=$lt_cv_path_LD
  20077. + lt_cv_path_LD=$lt_save_path_LD
  20078. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  20079. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  20080. +fi # test "$_lt_caught_CXX_error" != yes
  20081. +
  20082. +ac_ext=c
  20083. +ac_cpp='$CPP $CPPFLAGS'
  20084. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20085. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20086. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20087. +
  20088. +
  20089. +
  20090. +
  20091. +
  20092. +
  20093. +
  20094. +
  20095. +
  20096. +
  20097. +
  20098. +
  20099. +
  20100. + ac_config_commands="$ac_config_commands libtool"
  20101. +
  20102. +
  20103. +
  20104. +
  20105. +# Only expand once:
  20106. +
  20107. +
  20108. +
  20109. +# Checks for libraries.
  20110. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20111. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  20112. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  20113. + $as_echo_n "(cached) " >&6
  20114. +else
  20115. + ac_check_lib_save_LIBS=$LIBS
  20116. +LIBS="-ldl $LIBS"
  20117. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20118. +/* end confdefs.h. */
  20119. +
  20120. +/* Override any GCC internal prototype to avoid an error.
  20121. + Use char because int might match the return type of a GCC
  20122. + builtin and then its argument prototype would still apply. */
  20123. +#ifdef __cplusplus
  20124. +extern "C"
  20125. +#endif
  20126. +char dlopen ();
  20127. +int
  20128. +main ()
  20129. +{
  20130. +return dlopen ();
  20131. + ;
  20132. + return 0;
  20133. +}
  20134. +_ACEOF
  20135. +if ac_fn_c_try_link "$LINENO"; then :
  20136. + ac_cv_lib_dl_dlopen=yes
  20137. +else
  20138. + ac_cv_lib_dl_dlopen=no
  20139. +fi
  20140. +rm -f core conftest.err conftest.$ac_objext \
  20141. + conftest$ac_exeext conftest.$ac_ext
  20142. +LIBS=$ac_check_lib_save_LIBS
  20143. +fi
  20144. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20145. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20146. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  20147. + cat >>confdefs.h <<_ACEOF
  20148. +#define HAVE_LIBDL 1
  20149. +_ACEOF
  20150. +
  20151. + LIBS="-ldl $LIBS"
  20152. +
  20153. +fi
  20154. +
  20155. +
  20156. +# Checks for header files.
  20157. +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  20158. +# for constant arguments. Useless!
  20159. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  20160. +$as_echo_n "checking for working alloca.h... " >&6; }
  20161. +if test "${ac_cv_working_alloca_h+set}" = set; then :
  20162. + $as_echo_n "(cached) " >&6
  20163. +else
  20164. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20165. +/* end confdefs.h. */
  20166. +#include <alloca.h>
  20167. +int
  20168. +main ()
  20169. +{
  20170. +char *p = (char *) alloca (2 * sizeof (int));
  20171. + if (p) return 0;
  20172. + ;
  20173. + return 0;
  20174. +}
  20175. +_ACEOF
  20176. +if ac_fn_c_try_link "$LINENO"; then :
  20177. + ac_cv_working_alloca_h=yes
  20178. +else
  20179. + ac_cv_working_alloca_h=no
  20180. +fi
  20181. +rm -f core conftest.err conftest.$ac_objext \
  20182. + conftest$ac_exeext conftest.$ac_ext
  20183. +fi
  20184. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  20185. +$as_echo "$ac_cv_working_alloca_h" >&6; }
  20186. +if test $ac_cv_working_alloca_h = yes; then
  20187. +
  20188. +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  20189. +
  20190. +fi
  20191. +
  20192. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  20193. +$as_echo_n "checking for alloca... " >&6; }
  20194. +if test "${ac_cv_func_alloca_works+set}" = set; then :
  20195. + $as_echo_n "(cached) " >&6
  20196. +else
  20197. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20198. +/* end confdefs.h. */
  20199. +#ifdef __GNUC__
  20200. +# define alloca __builtin_alloca
  20201. +#else
  20202. +# ifdef _MSC_VER
  20203. +# include <malloc.h>
  20204. +# define alloca _alloca
  20205. +# else
  20206. +# ifdef HAVE_ALLOCA_H
  20207. +# include <alloca.h>
  20208. +# else
  20209. +# ifdef _AIX
  20210. + #pragma alloca
  20211. +# else
  20212. +# ifndef alloca /* predefined by HP cc +Olibcalls */
  20213. +char *alloca ();
  20214. +# endif
  20215. +# endif
  20216. +# endif
  20217. +# endif
  20218. +#endif
  20219. +
  20220. +int
  20221. +main ()
  20222. +{
  20223. +char *p = (char *) alloca (1);
  20224. + if (p) return 0;
  20225. + ;
  20226. + return 0;
  20227. +}
  20228. +_ACEOF
  20229. +if ac_fn_c_try_link "$LINENO"; then :
  20230. + ac_cv_func_alloca_works=yes
  20231. +else
  20232. + ac_cv_func_alloca_works=no
  20233. +fi
  20234. +rm -f core conftest.err conftest.$ac_objext \
  20235. + conftest$ac_exeext conftest.$ac_ext
  20236. +fi
  20237. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  20238. +$as_echo "$ac_cv_func_alloca_works" >&6; }
  20239. +
  20240. +if test $ac_cv_func_alloca_works = yes; then
  20241. +
  20242. +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  20243. +
  20244. +else
  20245. + # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  20246. +# that cause trouble. Some versions do not even contain alloca or
  20247. +# contain a buggy version. If you still want to use their alloca,
  20248. +# use ar to extract alloca.o from them instead of compiling alloca.c.
  20249. +
  20250. +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  20251. +
  20252. +$as_echo "#define C_ALLOCA 1" >>confdefs.h
  20253. +
  20254. +
  20255. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  20256. +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  20257. +if test "${ac_cv_os_cray+set}" = set; then :
  20258. + $as_echo_n "(cached) " >&6
  20259. +else
  20260. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20261. +/* end confdefs.h. */
  20262. +#if defined CRAY && ! defined CRAY2
  20263. +webecray
  20264. +#else
  20265. +wenotbecray
  20266. +#endif
  20267. +
  20268. +_ACEOF
  20269. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20270. + $EGREP "webecray" >/dev/null 2>&1; then :
  20271. + ac_cv_os_cray=yes
  20272. +else
  20273. + ac_cv_os_cray=no
  20274. +fi
  20275. +rm -f conftest*
  20276. +
  20277. +fi
  20278. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  20279. +$as_echo "$ac_cv_os_cray" >&6; }
  20280. +if test $ac_cv_os_cray = yes; then
  20281. + for ac_func in _getb67 GETB67 getb67; do
  20282. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20283. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20284. +eval as_val=\$$as_ac_var
  20285. + if test "x$as_val" = x""yes; then :
  20286. +
  20287. +cat >>confdefs.h <<_ACEOF
  20288. +#define CRAY_STACKSEG_END $ac_func
  20289. +_ACEOF
  20290. +
  20291. + break
  20292. +fi
  20293. +
  20294. + done
  20295. +fi
  20296. +
  20297. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  20298. +$as_echo_n "checking stack direction for C alloca... " >&6; }
  20299. +if test "${ac_cv_c_stack_direction+set}" = set; then :
  20300. + $as_echo_n "(cached) " >&6
  20301. +else
  20302. + if test "$cross_compiling" = yes; then :
  20303. + ac_cv_c_stack_direction=0
  20304. +else
  20305. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20306. +/* end confdefs.h. */
  20307. +$ac_includes_default
  20308. +int
  20309. +find_stack_direction ()
  20310. +{
  20311. + static char *addr = 0;
  20312. + auto char dummy;
  20313. + if (addr == 0)
  20314. + {
  20315. + addr = &dummy;
  20316. + return find_stack_direction ();
  20317. + }
  20318. + else
  20319. + return (&dummy > addr) ? 1 : -1;
  20320. +}
  20321. +
  20322. +int
  20323. +main ()
  20324. +{
  20325. + return find_stack_direction () < 0;
  20326. +}
  20327. +_ACEOF
  20328. +if ac_fn_c_try_run "$LINENO"; then :
  20329. + ac_cv_c_stack_direction=1
  20330. +else
  20331. + ac_cv_c_stack_direction=-1
  20332. +fi
  20333. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20334. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  20335. +fi
  20336. +
  20337. +fi
  20338. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  20339. +$as_echo "$ac_cv_c_stack_direction" >&6; }
  20340. +cat >>confdefs.h <<_ACEOF
  20341. +#define STACK_DIRECTION $ac_cv_c_stack_direction
  20342. +_ACEOF
  20343. +
  20344. +
  20345. +fi
  20346. +
  20347. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  20348. +$as_echo_n "checking for ANSI C header files... " >&6; }
  20349. +if test "${ac_cv_header_stdc+set}" = set; then :
  20350. + $as_echo_n "(cached) " >&6
  20351. +else
  20352. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20353. +/* end confdefs.h. */
  20354. +#include <stdlib.h>
  20355. +#include <stdarg.h>
  20356. +#include <string.h>
  20357. +#include <float.h>
  20358. +
  20359. +int
  20360. +main ()
  20361. +{
  20362. +
  20363. + ;
  20364. + return 0;
  20365. +}
  20366. +_ACEOF
  20367. +if ac_fn_c_try_compile "$LINENO"; then :
  20368. + ac_cv_header_stdc=yes
  20369. +else
  20370. + ac_cv_header_stdc=no
  20371. +fi
  20372. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20373. +
  20374. +if test $ac_cv_header_stdc = yes; then
  20375. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  20376. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20377. +/* end confdefs.h. */
  20378. +#include <string.h>
  20379. +
  20380. +_ACEOF
  20381. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20382. + $EGREP "memchr" >/dev/null 2>&1; then :
  20383. +
  20384. +else
  20385. + ac_cv_header_stdc=no
  20386. +fi
  20387. +rm -f conftest*
  20388. +
  20389. +fi
  20390. +
  20391. +if test $ac_cv_header_stdc = yes; then
  20392. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  20393. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20394. +/* end confdefs.h. */
  20395. +#include <stdlib.h>
  20396. +
  20397. +_ACEOF
  20398. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20399. + $EGREP "free" >/dev/null 2>&1; then :
  20400. +
  20401. +else
  20402. + ac_cv_header_stdc=no
  20403. +fi
  20404. +rm -f conftest*
  20405. +
  20406. +fi
  20407. +
  20408. +if test $ac_cv_header_stdc = yes; then
  20409. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  20410. + if test "$cross_compiling" = yes; then :
  20411. + :
  20412. +else
  20413. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20414. +/* end confdefs.h. */
  20415. +#include <ctype.h>
  20416. +#include <stdlib.h>
  20417. +#if ((' ' & 0x0FF) == 0x020)
  20418. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  20419. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  20420. +#else
  20421. +# define ISLOWER(c) \
  20422. + (('a' <= (c) && (c) <= 'i') \
  20423. + || ('j' <= (c) && (c) <= 'r') \
  20424. + || ('s' <= (c) && (c) <= 'z'))
  20425. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  20426. +#endif
  20427. +
  20428. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  20429. +int
  20430. +main ()
  20431. +{
  20432. + int i;
  20433. + for (i = 0; i < 256; i++)
  20434. + if (XOR (islower (i), ISLOWER (i))
  20435. + || toupper (i) != TOUPPER (i))
  20436. + return 2;
  20437. + return 0;
  20438. +}
  20439. +_ACEOF
  20440. +if ac_fn_c_try_run "$LINENO"; then :
  20441. +
  20442. +else
  20443. + ac_cv_header_stdc=no
  20444. +fi
  20445. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20446. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  20447. +fi
  20448. +
  20449. +fi
  20450. +fi
  20451. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  20452. +$as_echo "$ac_cv_header_stdc" >&6; }
  20453. +if test $ac_cv_header_stdc = yes; then
  20454. +
  20455. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  20456. +
  20457. +fi
  20458. +
  20459. +for ac_header in fcntl.h limits.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h
  20460. +do :
  20461. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20462. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20463. +eval as_val=\$$as_ac_Header
  20464. + if test "x$as_val" = x""yes; then :
  20465. + cat >>confdefs.h <<_ACEOF
  20466. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20467. +_ACEOF
  20468. +
  20469. +fi
  20470. +
  20471. +done
  20472. +
  20473. +
  20474. +# Checks for typedefs, structures, and compiler characteristics.
  20475. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  20476. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  20477. +if test "${ac_cv_c_const+set}" = set; then :
  20478. + $as_echo_n "(cached) " >&6
  20479. +else
  20480. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20481. +/* end confdefs.h. */
  20482. +
  20483. +int
  20484. +main ()
  20485. +{
  20486. +/* FIXME: Include the comments suggested by Paul. */
  20487. +#ifndef __cplusplus
  20488. + /* Ultrix mips cc rejects this. */
  20489. + typedef int charset[2];
  20490. + const charset cs;
  20491. + /* SunOS 4.1.1 cc rejects this. */
  20492. + char const *const *pcpcc;
  20493. + char **ppc;
  20494. + /* NEC SVR4.0.2 mips cc rejects this. */
  20495. + struct point {int x, y;};
  20496. + static struct point const zero = {0,0};
  20497. + /* AIX XL C 1.02.0.0 rejects this.
  20498. + It does not let you subtract one const X* pointer from another in
  20499. + an arm of an if-expression whose if-part is not a constant
  20500. + expression */
  20501. + const char *g = "string";
  20502. + pcpcc = &g + (g ? g-g : 0);
  20503. + /* HPUX 7.0 cc rejects these. */
  20504. + ++pcpcc;
  20505. + ppc = (char**) pcpcc;
  20506. + pcpcc = (char const *const *) ppc;
  20507. + { /* SCO 3.2v4 cc rejects this. */
  20508. + char *t;
  20509. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  20510. +
  20511. + *t++ = 0;
  20512. + if (s) return 0;
  20513. + }
  20514. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  20515. + int x[] = {25, 17};
  20516. + const int *foo = &x[0];
  20517. + ++foo;
  20518. + }
  20519. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  20520. + typedef const int *iptr;
  20521. + iptr p = 0;
  20522. + ++p;
  20523. + }
  20524. + { /* AIX XL C 1.02.0.0 rejects this saying
  20525. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  20526. + struct s { int j; const int *ap[3]; };
  20527. + struct s *b; b->j = 5;
  20528. + }
  20529. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  20530. + const int foo = 10;
  20531. + if (!foo) return 0;
  20532. + }
  20533. + return !cs[0] && !zero.x;
  20534. +#endif
  20535. +
  20536. + ;
  20537. + return 0;
  20538. +}
  20539. +_ACEOF
  20540. +if ac_fn_c_try_compile "$LINENO"; then :
  20541. + ac_cv_c_const=yes
  20542. +else
  20543. + ac_cv_c_const=no
  20544. +fi
  20545. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20546. +fi
  20547. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  20548. +$as_echo "$ac_cv_c_const" >&6; }
  20549. +if test $ac_cv_c_const = no; then
  20550. +
  20551. +$as_echo "#define const /**/" >>confdefs.h
  20552. +
  20553. +fi
  20554. +
  20555. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  20556. +$as_echo_n "checking for inline... " >&6; }
  20557. +if test "${ac_cv_c_inline+set}" = set; then :
  20558. + $as_echo_n "(cached) " >&6
  20559. +else
  20560. + ac_cv_c_inline=no
  20561. +for ac_kw in inline __inline__ __inline; do
  20562. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20563. +/* end confdefs.h. */
  20564. +#ifndef __cplusplus
  20565. +typedef int foo_t;
  20566. +static $ac_kw foo_t static_foo () {return 0; }
  20567. +$ac_kw foo_t foo () {return 0; }
  20568. +#endif
  20569. +
  20570. +_ACEOF
  20571. +if ac_fn_c_try_compile "$LINENO"; then :
  20572. + ac_cv_c_inline=$ac_kw
  20573. +fi
  20574. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20575. + test "$ac_cv_c_inline" != no && break
  20576. +done
  20577. +
  20578. +fi
  20579. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  20580. +$as_echo "$ac_cv_c_inline" >&6; }
  20581. +
  20582. +case $ac_cv_c_inline in
  20583. + inline | yes) ;;
  20584. + *)
  20585. + case $ac_cv_c_inline in
  20586. + no) ac_val=;;
  20587. + *) ac_val=$ac_cv_c_inline;;
  20588. + esac
  20589. + cat >>confdefs.h <<_ACEOF
  20590. +#ifndef __cplusplus
  20591. +#define inline $ac_val
  20592. +#endif
  20593. +_ACEOF
  20594. + ;;
  20595. +esac
  20596. +
  20597. +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  20598. +if test "x$ac_cv_type_size_t" = x""yes; then :
  20599. +
  20600. +else
  20601. +
  20602. +cat >>confdefs.h <<_ACEOF
  20603. +#define size_t unsigned int
  20604. +_ACEOF
  20605. +
  20606. +fi
  20607. +
  20608. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  20609. +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  20610. +if test "${ac_cv_header_time+set}" = set; then :
  20611. + $as_echo_n "(cached) " >&6
  20612. +else
  20613. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20614. +/* end confdefs.h. */
  20615. +#include <sys/types.h>
  20616. +#include <sys/time.h>
  20617. +#include <time.h>
  20618. +
  20619. +int
  20620. +main ()
  20621. +{
  20622. +if ((struct tm *) 0)
  20623. +return 0;
  20624. + ;
  20625. + return 0;
  20626. +}
  20627. +_ACEOF
  20628. +if ac_fn_c_try_compile "$LINENO"; then :
  20629. + ac_cv_header_time=yes
  20630. +else
  20631. + ac_cv_header_time=no
  20632. +fi
  20633. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20634. +fi
  20635. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  20636. +$as_echo "$ac_cv_header_time" >&6; }
  20637. +if test $ac_cv_header_time = yes; then
  20638. +
  20639. +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  20640. +
  20641. +fi
  20642. +
  20643. +
  20644. +# Checks for library functions.
  20645. +if test $ac_cv_c_compiler_gnu = yes; then
  20646. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  20647. +$as_echo_n "checking whether $CC needs -traditional... " >&6; }
  20648. +if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  20649. + $as_echo_n "(cached) " >&6
  20650. +else
  20651. + ac_pattern="Autoconf.*'x'"
  20652. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20653. +/* end confdefs.h. */
  20654. +#include <sgtty.h>
  20655. +Autoconf TIOCGETP
  20656. +_ACEOF
  20657. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20658. + $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  20659. + ac_cv_prog_gcc_traditional=yes
  20660. +else
  20661. + ac_cv_prog_gcc_traditional=no
  20662. +fi
  20663. +rm -f conftest*
  20664. +
  20665. +
  20666. + if test $ac_cv_prog_gcc_traditional = no; then
  20667. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20668. +/* end confdefs.h. */
  20669. +#include <termio.h>
  20670. +Autoconf TCGETA
  20671. +_ACEOF
  20672. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20673. + $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  20674. + ac_cv_prog_gcc_traditional=yes
  20675. +fi
  20676. +rm -f conftest*
  20677. +
  20678. + fi
  20679. +fi
  20680. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  20681. +$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  20682. + if test $ac_cv_prog_gcc_traditional = yes; then
  20683. + CC="$CC -traditional"
  20684. + fi
  20685. +fi
  20686. +
  20687. +for ac_header in stdlib.h
  20688. +do :
  20689. + ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  20690. +if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  20691. + cat >>confdefs.h <<_ACEOF
  20692. +#define HAVE_STDLIB_H 1
  20693. +_ACEOF
  20694. +
  20695. +fi
  20696. +
  20697. +done
  20698. +
  20699. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  20700. +$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  20701. +if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
  20702. + $as_echo_n "(cached) " >&6
  20703. +else
  20704. + if test "$cross_compiling" = yes; then :
  20705. + ac_cv_func_malloc_0_nonnull=no
  20706. +else
  20707. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20708. +/* end confdefs.h. */
  20709. +#if defined STDC_HEADERS || defined HAVE_STDLIB_H
  20710. +# include <stdlib.h>
  20711. +#else
  20712. +char *malloc ();
  20713. +#endif
  20714. +
  20715. +int
  20716. +main ()
  20717. +{
  20718. +return ! malloc (0);
  20719. + ;
  20720. + return 0;
  20721. +}
  20722. +_ACEOF
  20723. +if ac_fn_c_try_run "$LINENO"; then :
  20724. + ac_cv_func_malloc_0_nonnull=yes
  20725. +else
  20726. + ac_cv_func_malloc_0_nonnull=no
  20727. +fi
  20728. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20729. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  20730. +fi
  20731. +
  20732. +fi
  20733. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  20734. +$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  20735. +if test $ac_cv_func_malloc_0_nonnull = yes; then :
  20736. +
  20737. +$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  20738. +
  20739. +else
  20740. + $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  20741. +
  20742. + case " $LIBOBJS " in
  20743. + *" malloc.$ac_objext "* ) ;;
  20744. + *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  20745. + ;;
  20746. +esac
  20747. +
  20748. +
  20749. +$as_echo "#define malloc rpl_malloc" >>confdefs.h
  20750. +
  20751. +fi
  20752. +
  20753. +
  20754. +
  20755. +
  20756. +
  20757. + for ac_header in $ac_header_list
  20758. +do :
  20759. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20760. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  20761. +"
  20762. +eval as_val=\$$as_ac_Header
  20763. + if test "x$as_val" = x""yes; then :
  20764. + cat >>confdefs.h <<_ACEOF
  20765. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20766. +_ACEOF
  20767. +
  20768. +fi
  20769. +
  20770. +done
  20771. +
  20772. +
  20773. +
  20774. +
  20775. +
  20776. +
  20777. +
  20778. +
  20779. +for ac_func in getpagesize
  20780. +do :
  20781. + ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  20782. +if test "x$ac_cv_func_getpagesize" = x""yes; then :
  20783. + cat >>confdefs.h <<_ACEOF
  20784. +#define HAVE_GETPAGESIZE 1
  20785. +_ACEOF
  20786. +
  20787. +fi
  20788. +done
  20789. +
  20790. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  20791. +$as_echo_n "checking for working mmap... " >&6; }
  20792. +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  20793. + $as_echo_n "(cached) " >&6
  20794. +else
  20795. + if test "$cross_compiling" = yes; then :
  20796. + ac_cv_func_mmap_fixed_mapped=no
  20797. +else
  20798. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20799. +/* end confdefs.h. */
  20800. +$ac_includes_default
  20801. +/* malloc might have been renamed as rpl_malloc. */
  20802. +#undef malloc
  20803. +
  20804. +/* Thanks to Mike Haertel and Jim Avera for this test.
  20805. + Here is a matrix of mmap possibilities:
  20806. + mmap private not fixed
  20807. + mmap private fixed at somewhere currently unmapped
  20808. + mmap private fixed at somewhere already mapped
  20809. + mmap shared not fixed
  20810. + mmap shared fixed at somewhere currently unmapped
  20811. + mmap shared fixed at somewhere already mapped
  20812. + For private mappings, we should verify that changes cannot be read()
  20813. + back from the file, nor mmap's back from the file at a different
  20814. + address. (There have been systems where private was not correctly
  20815. + implemented like the infamous i386 svr4.0, and systems where the
  20816. + VM page cache was not coherent with the file system buffer cache
  20817. + like early versions of FreeBSD and possibly contemporary NetBSD.)
  20818. + For shared mappings, we should conversely verify that changes get
  20819. + propagated back to all the places they're supposed to be.
  20820. +
  20821. + Grep wants private fixed already mapped.
  20822. + The main things grep needs to know about mmap are:
  20823. + * does it exist and is it safe to write into the mmap'd area
  20824. + * how to use it (BSD variants) */
  20825. +
  20826. +#include <fcntl.h>
  20827. +#include <sys/mman.h>
  20828. +
  20829. +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  20830. +char *malloc ();
  20831. +#endif
  20832. +
  20833. +/* This mess was copied from the GNU getpagesize.h. */
  20834. +#ifndef HAVE_GETPAGESIZE
  20835. +# ifdef _SC_PAGESIZE
  20836. +# define getpagesize() sysconf(_SC_PAGESIZE)
  20837. +# else /* no _SC_PAGESIZE */
  20838. +# ifdef HAVE_SYS_PARAM_H
  20839. +# include <sys/param.h>
  20840. +# ifdef EXEC_PAGESIZE
  20841. +# define getpagesize() EXEC_PAGESIZE
  20842. +# else /* no EXEC_PAGESIZE */
  20843. +# ifdef NBPG
  20844. +# define getpagesize() NBPG * CLSIZE
  20845. +# ifndef CLSIZE
  20846. +# define CLSIZE 1
  20847. +# endif /* no CLSIZE */
  20848. +# else /* no NBPG */
  20849. +# ifdef NBPC
  20850. +# define getpagesize() NBPC
  20851. +# else /* no NBPC */
  20852. +# ifdef PAGESIZE
  20853. +# define getpagesize() PAGESIZE
  20854. +# endif /* PAGESIZE */
  20855. +# endif /* no NBPC */
  20856. +# endif /* no NBPG */
  20857. +# endif /* no EXEC_PAGESIZE */
  20858. +# else /* no HAVE_SYS_PARAM_H */
  20859. +# define getpagesize() 8192 /* punt totally */
  20860. +# endif /* no HAVE_SYS_PARAM_H */
  20861. +# endif /* no _SC_PAGESIZE */
  20862. +
  20863. +#endif /* no HAVE_GETPAGESIZE */
  20864. +
  20865. +int
  20866. +main ()
  20867. +{
  20868. + char *data, *data2, *data3;
  20869. + const char *cdata2;
  20870. + int i, pagesize;
  20871. + int fd, fd2;
  20872. +
  20873. + pagesize = getpagesize ();
  20874. +
  20875. + /* First, make a file with some known garbage in it. */
  20876. + data = (char *) malloc (pagesize);
  20877. + if (!data)
  20878. + return 1;
  20879. + for (i = 0; i < pagesize; ++i)
  20880. + *(data + i) = rand ();
  20881. + umask (0);
  20882. + fd = creat ("conftest.mmap", 0600);
  20883. + if (fd < 0)
  20884. + return 2;
  20885. + if (write (fd, data, pagesize) != pagesize)
  20886. + return 3;
  20887. + close (fd);
  20888. +
  20889. + /* Next, check that the tail of a page is zero-filled. File must have
  20890. + non-zero length, otherwise we risk SIGBUS for entire page. */
  20891. + fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  20892. + if (fd2 < 0)
  20893. + return 4;
  20894. + cdata2 = "";
  20895. + if (write (fd2, cdata2, 1) != 1)
  20896. + return 5;
  20897. + data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  20898. + if (data2 == MAP_FAILED)
  20899. + return 6;
  20900. + for (i = 0; i < pagesize; ++i)
  20901. + if (*(data2 + i))
  20902. + return 7;
  20903. + close (fd2);
  20904. + if (munmap (data2, pagesize))
  20905. + return 8;
  20906. +
  20907. + /* Next, try to mmap the file at a fixed address which already has
  20908. + something else allocated at it. If we can, also make sure that
  20909. + we see the same garbage. */
  20910. + fd = open ("conftest.mmap", O_RDWR);
  20911. + if (fd < 0)
  20912. + return 9;
  20913. + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  20914. + MAP_PRIVATE | MAP_FIXED, fd, 0L))
  20915. + return 10;
  20916. + for (i = 0; i < pagesize; ++i)
  20917. + if (*(data + i) != *(data2 + i))
  20918. + return 11;
  20919. +
  20920. + /* Finally, make sure that changes to the mapped area do not
  20921. + percolate back to the file as seen by read(). (This is a bug on
  20922. + some variants of i386 svr4.0.) */
  20923. + for (i = 0; i < pagesize; ++i)
  20924. + *(data2 + i) = *(data2 + i) + 1;
  20925. + data3 = (char *) malloc (pagesize);
  20926. + if (!data3)
  20927. + return 12;
  20928. + if (read (fd, data3, pagesize) != pagesize)
  20929. + return 13;
  20930. + for (i = 0; i < pagesize; ++i)
  20931. + if (*(data + i) != *(data3 + i))
  20932. + return 14;
  20933. + close (fd);
  20934. + return 0;
  20935. +}
  20936. +_ACEOF
  20937. +if ac_fn_c_try_run "$LINENO"; then :
  20938. + ac_cv_func_mmap_fixed_mapped=yes
  20939. +else
  20940. + ac_cv_func_mmap_fixed_mapped=no
  20941. +fi
  20942. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20943. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  20944. +fi
  20945. +
  20946. +fi
  20947. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  20948. +$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  20949. +if test $ac_cv_func_mmap_fixed_mapped = yes; then
  20950. +
  20951. +$as_echo "#define HAVE_MMAP 1" >>confdefs.h
  20952. +
  20953. +fi
  20954. +rm -f conftest.mmap conftest.txt
  20955. +
  20956. +for ac_header in sys/select.h sys/socket.h
  20957. +do :
  20958. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20959. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20960. +eval as_val=\$$as_ac_Header
  20961. + if test "x$as_val" = x""yes; then :
  20962. + cat >>confdefs.h <<_ACEOF
  20963. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20964. +_ACEOF
  20965. +
  20966. +fi
  20967. +
  20968. +done
  20969. +
  20970. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  20971. +$as_echo_n "checking types of arguments for select... " >&6; }
  20972. +if test "${ac_cv_func_select_args+set}" = set; then :
  20973. + $as_echo_n "(cached) " >&6
  20974. +else
  20975. + for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  20976. + for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  20977. + for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  20978. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20979. +/* end confdefs.h. */
  20980. +$ac_includes_default
  20981. +#ifdef HAVE_SYS_SELECT_H
  20982. +# include <sys/select.h>
  20983. +#endif
  20984. +#ifdef HAVE_SYS_SOCKET_H
  20985. +# include <sys/socket.h>
  20986. +#endif
  20987. +
  20988. +int
  20989. +main ()
  20990. +{
  20991. +extern int select ($ac_arg1,
  20992. + $ac_arg234, $ac_arg234, $ac_arg234,
  20993. + $ac_arg5);
  20994. + ;
  20995. + return 0;
  20996. +}
  20997. +_ACEOF
  20998. +if ac_fn_c_try_compile "$LINENO"; then :
  20999. + ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  21000. +fi
  21001. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21002. + done
  21003. + done
  21004. +done
  21005. +# Provide a safe default value.
  21006. +: ${ac_cv_func_select_args='int,int *,struct timeval *'}
  21007. +
  21008. +fi
  21009. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  21010. +$as_echo "$ac_cv_func_select_args" >&6; }
  21011. +ac_save_IFS=$IFS; IFS=','
  21012. +set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  21013. +IFS=$ac_save_IFS
  21014. +shift
  21015. +
  21016. +cat >>confdefs.h <<_ACEOF
  21017. +#define SELECT_TYPE_ARG1 $1
  21018. +_ACEOF
  21019. +
  21020. +
  21021. +cat >>confdefs.h <<_ACEOF
  21022. +#define SELECT_TYPE_ARG234 ($2)
  21023. +_ACEOF
  21024. +
  21025. +
  21026. +cat >>confdefs.h <<_ACEOF
  21027. +#define SELECT_TYPE_ARG5 ($3)
  21028. +_ACEOF
  21029. +
  21030. +rm -f conftest*
  21031. +
  21032. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  21033. +$as_echo_n "checking return type of signal handlers... " >&6; }
  21034. +if test "${ac_cv_type_signal+set}" = set; then :
  21035. + $as_echo_n "(cached) " >&6
  21036. +else
  21037. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21038. +/* end confdefs.h. */
  21039. +#include <sys/types.h>
  21040. +#include <signal.h>
  21041. +
  21042. +int
  21043. +main ()
  21044. +{
  21045. +return *(signal (0, 0)) (0) == 1;
  21046. + ;
  21047. + return 0;
  21048. +}
  21049. +_ACEOF
  21050. +if ac_fn_c_try_compile "$LINENO"; then :
  21051. + ac_cv_type_signal=int
  21052. +else
  21053. + ac_cv_type_signal=void
  21054. +fi
  21055. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21056. +fi
  21057. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  21058. +$as_echo "$ac_cv_type_signal" >&6; }
  21059. +
  21060. +cat >>confdefs.h <<_ACEOF
  21061. +#define RETSIGTYPE $ac_cv_type_signal
  21062. +_ACEOF
  21063. +
  21064. +
  21065. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  21066. +$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  21067. +if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  21068. + $as_echo_n "(cached) " >&6
  21069. +else
  21070. + rm -f conftest.sym conftest.file
  21071. +echo >conftest.file
  21072. +if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  21073. + if test "$cross_compiling" = yes; then :
  21074. + ac_cv_func_lstat_dereferences_slashed_symlink=no
  21075. +else
  21076. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21077. +/* end confdefs.h. */
  21078. +$ac_includes_default
  21079. +int
  21080. +main ()
  21081. +{
  21082. +struct stat sbuf;
  21083. + /* Linux will dereference the symlink and fail, as required by POSIX.
  21084. + That is better in the sense that it means we will not
  21085. + have to compile and use the lstat wrapper. */
  21086. + return lstat ("conftest.sym/", &sbuf) == 0;
  21087. + ;
  21088. + return 0;
  21089. +}
  21090. +_ACEOF
  21091. +if ac_fn_c_try_run "$LINENO"; then :
  21092. + ac_cv_func_lstat_dereferences_slashed_symlink=yes
  21093. +else
  21094. + ac_cv_func_lstat_dereferences_slashed_symlink=no
  21095. +fi
  21096. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21097. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  21098. +fi
  21099. +
  21100. +else
  21101. + # If the `ln -s' command failed, then we probably don't even
  21102. + # have an lstat function.
  21103. + ac_cv_func_lstat_dereferences_slashed_symlink=no
  21104. +fi
  21105. +rm -f conftest.sym conftest.file
  21106. +
  21107. +fi
  21108. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  21109. +$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  21110. +
  21111. +test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  21112. +
  21113. +cat >>confdefs.h <<_ACEOF
  21114. +#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  21115. +_ACEOF
  21116. +
  21117. +
  21118. +if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  21119. + case " $LIBOBJS " in
  21120. + *" lstat.$ac_objext "* ) ;;
  21121. + *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  21122. + ;;
  21123. +esac
  21124. +
  21125. +fi
  21126. +
  21127. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  21128. +$as_echo_n "checking whether stat accepts an empty string... " >&6; }
  21129. +if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  21130. + $as_echo_n "(cached) " >&6
  21131. +else
  21132. + if test "$cross_compiling" = yes; then :
  21133. + ac_cv_func_stat_empty_string_bug=yes
  21134. +else
  21135. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21136. +/* end confdefs.h. */
  21137. +$ac_includes_default
  21138. +int
  21139. +main ()
  21140. +{
  21141. +struct stat sbuf;
  21142. + return stat ("", &sbuf) == 0;
  21143. + ;
  21144. + return 0;
  21145. +}
  21146. +_ACEOF
  21147. +if ac_fn_c_try_run "$LINENO"; then :
  21148. + ac_cv_func_stat_empty_string_bug=no
  21149. +else
  21150. + ac_cv_func_stat_empty_string_bug=yes
  21151. +fi
  21152. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21153. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  21154. +fi
  21155. +
  21156. +fi
  21157. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  21158. +$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  21159. +if test $ac_cv_func_stat_empty_string_bug = yes; then
  21160. + case " $LIBOBJS " in
  21161. + *" stat.$ac_objext "* ) ;;
  21162. + *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  21163. + ;;
  21164. +esac
  21165. +
  21166. +
  21167. +cat >>confdefs.h <<_ACEOF
  21168. +#define HAVE_STAT_EMPTY_STRING_BUG 1
  21169. +_ACEOF
  21170. +
  21171. +fi
  21172. +
  21173. +for ac_func in vprintf
  21174. +do :
  21175. + ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  21176. +if test "x$ac_cv_func_vprintf" = x""yes; then :
  21177. + cat >>confdefs.h <<_ACEOF
  21178. +#define HAVE_VPRINTF 1
  21179. +_ACEOF
  21180. +
  21181. +ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  21182. +if test "x$ac_cv_func__doprnt" = x""yes; then :
  21183. +
  21184. +$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  21185. +
  21186. +fi
  21187. +
  21188. +fi
  21189. +done
  21190. +
  21191. +
  21192. +for ac_func in bzero gettimeofday memmove memset munmap select strcasecmp strchr strdup strtoul
  21193. +do :
  21194. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21195. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21196. +eval as_val=\$$as_ac_var
  21197. + if test "x$as_val" = x""yes; then :
  21198. + cat >>confdefs.h <<_ACEOF
  21199. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21200. +_ACEOF
  21201. +
  21202. +fi
  21203. +done
  21204. +
  21205. +
  21206. +# filters
  21207. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linear modules is requested" >&5
  21208. +$as_echo_n "checking whether linear modules is requested... " >&6; }
  21209. +# Check whether --enable-linear was given.
  21210. +if test "${enable_linear+set}" = set; then :
  21211. + enableval=$enable_linear; linear_module=$enableval
  21212. +else
  21213. + linear_module=yes
  21214. +fi
  21215. +
  21216. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $linear_module" >&5
  21217. +$as_echo "$linear_module" >&6; }
  21218. + if test "$linear_module" = "yes"; then
  21219. + ENABLE_LINEAR_MODULE_TRUE=
  21220. + ENABLE_LINEAR_MODULE_FALSE='#'
  21221. +else
  21222. + ENABLE_LINEAR_MODULE_TRUE='#'
  21223. + ENABLE_LINEAR_MODULE_FALSE=
  21224. +fi
  21225. +
  21226. +
  21227. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dejitter module is requested" >&5
  21228. +$as_echo_n "checking whether dejitter module is requested... " >&6; }
  21229. +# Check whether --enable-dejitter was given.
  21230. +if test "${enable_dejitter+set}" = set; then :
  21231. + enableval=$enable_dejitter; dejitter_module=$enableval
  21232. +else
  21233. + dejitter_module=yes
  21234. +fi
  21235. +
  21236. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejitter_module" >&5
  21237. +$as_echo "$dejitter_module" >&6; }
  21238. + if test "$dejitter_module" = "yes"; then
  21239. + ENABLE_DEJITTER_MODULE_TRUE=
  21240. + ENABLE_DEJITTER_MODULE_FALSE='#'
  21241. +else
  21242. + ENABLE_DEJITTER_MODULE_TRUE='#'
  21243. + ENABLE_DEJITTER_MODULE_FALSE=
  21244. +fi
  21245. +
  21246. +
  21247. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linear-h2200 module is requested" >&5
  21248. +$as_echo_n "checking whether linear-h2200 module is requested... " >&6; }
  21249. +# Check whether --enable-linear-h2200 was given.
  21250. +if test "${enable_linear_h2200+set}" = set; then :
  21251. + enableval=$enable_linear_h2200; h2200_linear_module=$enableval
  21252. +else
  21253. + h2200_linear_module=yes
  21254. +fi
  21255. +
  21256. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $h2200_linear_module" >&5
  21257. +$as_echo "$h2200_linear_module" >&6; }
  21258. + if test "$h2200_linear_module" = "yes"; then
  21259. + ENABLE_H2200_LINEAR_MODULE_TRUE=
  21260. + ENABLE_H2200_LINEAR_MODULE_FALSE='#'
  21261. +else
  21262. + ENABLE_H2200_LINEAR_MODULE_TRUE='#'
  21263. + ENABLE_H2200_LINEAR_MODULE_FALSE=
  21264. +fi
  21265. +
  21266. +
  21267. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether variance module is requested" >&5
  21268. +$as_echo_n "checking whether variance module is requested... " >&6; }
  21269. +# Check whether --enable-variance was given.
  21270. +if test "${enable_variance+set}" = set; then :
  21271. + enableval=$enable_variance; variance_module=$enableval
  21272. +else
  21273. + variance_module=yes
  21274. +fi
  21275. +
  21276. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $variance_module" >&5
  21277. +$as_echo "$variance_module" >&6; }
  21278. + if test "$variance_module" = "yes"; then
  21279. + ENABLE_VARIANCE_MODULE_TRUE=
  21280. + ENABLE_VARIANCE_MODULE_FALSE='#'
  21281. +else
  21282. + ENABLE_VARIANCE_MODULE_TRUE='#'
  21283. + ENABLE_VARIANCE_MODULE_FALSE=
  21284. +fi
  21285. +
  21286. +
  21287. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthres module is requested" >&5
  21288. +$as_echo_n "checking whether pthres module is requested... " >&6; }
  21289. +# Check whether --enable-pthres was given.
  21290. +if test "${enable_pthres+set}" = set; then :
  21291. + enableval=$enable_pthres; pthres_module=$enableval
  21292. +else
  21293. + pthres_module=yes
  21294. +fi
  21295. +
  21296. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pthres_module" >&5
  21297. +$as_echo "$pthres_module" >&6; }
  21298. + if test "$pthres_module" = "yes"; then
  21299. + ENABLE_PTHRES_MODULE_TRUE=
  21300. + ENABLE_PTHRES_MODULE_FALSE='#'
  21301. +else
  21302. + ENABLE_PTHRES_MODULE_TRUE='#'
  21303. + ENABLE_PTHRES_MODULE_FALSE=
  21304. +fi
  21305. +
  21306. +
  21307. +
  21308. +# hardware access modules
  21309. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ucb1x00 module is requested" >&5
  21310. +$as_echo_n "checking whether ucb1x00 module is requested... " >&6; }
  21311. +# Check whether --enable-ucb1x00 was given.
  21312. +if test "${enable_ucb1x00+set}" = set; then :
  21313. + enableval=$enable_ucb1x00; ucb1x00_module=$enableval
  21314. +else
  21315. + ucb1x00_module=yes
  21316. +fi
  21317. +
  21318. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ucb1x00_module" >&5
  21319. +$as_echo "$ucb1x00_module" >&6; }
  21320. + if test "$ucb1x00_module" = "yes"; then
  21321. + ENABLE_UCB1X00_MODULE_TRUE=
  21322. + ENABLE_UCB1X00_MODULE_FALSE='#'
  21323. +else
  21324. + ENABLE_UCB1X00_MODULE_TRUE='#'
  21325. + ENABLE_UCB1X00_MODULE_FALSE=
  21326. +fi
  21327. +
  21328. +
  21329. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether corgi module is requested" >&5
  21330. +$as_echo_n "checking whether corgi module is requested... " >&6; }
  21331. +# Check whether --enable-corgi was given.
  21332. +if test "${enable_corgi+set}" = set; then :
  21333. + enableval=$enable_corgi; corgi_module=$enableval
  21334. +else
  21335. + corgi_module=yes
  21336. +fi
  21337. +
  21338. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $corgi_module" >&5
  21339. +$as_echo "$corgi_module" >&6; }
  21340. + if test "$corgi_module" = "yes"; then
  21341. + ENABLE_CORGI_MODULE_TRUE=
  21342. + ENABLE_CORGI_MODULE_FALSE='#'
  21343. +else
  21344. + ENABLE_CORGI_MODULE_TRUE='#'
  21345. + ENABLE_CORGI_MODULE_FALSE=
  21346. +fi
  21347. +
  21348. +
  21349. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether collie module is requested" >&5
  21350. +$as_echo_n "checking whether collie module is requested... " >&6; }
  21351. +# Check whether --enable-collie was given.
  21352. +if test "${enable_collie+set}" = set; then :
  21353. + enableval=$enable_collie; collie_module=$enableval
  21354. +else
  21355. + collie_module=yes
  21356. +fi
  21357. +
  21358. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $collie_module" >&5
  21359. +$as_echo "$collie_module" >&6; }
  21360. + if test "$collie_module" = "yes"; then
  21361. + ENABLE_COLLIE_MODULE_TRUE=
  21362. + ENABLE_COLLIE_MODULE_FALSE='#'
  21363. +else
  21364. + ENABLE_COLLIE_MODULE_TRUE='#'
  21365. + ENABLE_COLLIE_MODULE_FALSE=
  21366. +fi
  21367. +
  21368. +
  21369. +
  21370. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether h3600 module is requested" >&5
  21371. +$as_echo_n "checking whether h3600 module is requested... " >&6; }
  21372. +# Check whether --enable-h3600 was given.
  21373. +if test "${enable_h3600+set}" = set; then :
  21374. + enableval=$enable_h3600; h3600_module=$enableval
  21375. +else
  21376. + h3600_module=yes
  21377. +fi
  21378. +
  21379. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $h3600_module" >&5
  21380. +$as_echo "$h3600_module" >&6; }
  21381. + if test "$h3600_module" = "yes"; then
  21382. + ENABLE_H3600_MODULE_TRUE=
  21383. + ENABLE_H3600_MODULE_FALSE='#'
  21384. +else
  21385. + ENABLE_H3600_MODULE_TRUE='#'
  21386. + ENABLE_H3600_MODULE_FALSE=
  21387. +fi
  21388. +
  21389. +
  21390. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mk712 module is requested" >&5
  21391. +$as_echo_n "checking whether mk712 module is requested... " >&6; }
  21392. +# Check whether --enable-mk712 was given.
  21393. +if test "${enable_mk712+set}" = set; then :
  21394. + enableval=$enable_mk712; mk712_module=$enableval
  21395. +else
  21396. + mk712_module=yes
  21397. +fi
  21398. +
  21399. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mk712_module" >&5
  21400. +$as_echo "$mk712_module" >&6; }
  21401. + if test "$mk712_module" = "yes"; then
  21402. + ENABLE_MK712_MODULE_TRUE=
  21403. + ENABLE_MK712_MODULE_FALSE='#'
  21404. +else
  21405. + ENABLE_MK712_MODULE_TRUE='#'
  21406. + ENABLE_MK712_MODULE_FALSE=
  21407. +fi
  21408. +
  21409. +
  21410. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether arctic2 module is requested" >&5
  21411. +$as_echo_n "checking whether arctic2 module is requested... " >&6; }
  21412. +# Check whether --enable-arctic2 was given.
  21413. +if test "${enable_arctic2+set}" = set; then :
  21414. + enableval=$enable_arctic2; arctic2_module=$enableval
  21415. +else
  21416. + arctic2_module=yes
  21417. +fi
  21418. +
  21419. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $arctic2_module" >&5
  21420. +$as_echo "$arctic2_module" >&6; }
  21421. + if test "$arctic2_module" = "yes"; then
  21422. + ENABLE_ARCTIC2_MODULE_TRUE=
  21423. + ENABLE_ARCTIC2_MODULE_FALSE='#'
  21424. +else
  21425. + ENABLE_ARCTIC2_MODULE_TRUE='#'
  21426. + ENABLE_ARCTIC2_MODULE_FALSE=
  21427. +fi
  21428. +
  21429. +
  21430. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether input module is requested" >&5
  21431. +$as_echo_n "checking whether input module is requested... " >&6; }
  21432. +# Check whether --enable-input was given.
  21433. +if test "${enable_input+set}" = set; then :
  21434. + enableval=$enable_input; input_module=$enableval
  21435. +else
  21436. + input_module=yes
  21437. +fi
  21438. +
  21439. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $input_module" >&5
  21440. +$as_echo "$input_module" >&6; }
  21441. + if test "$input_module" = "yes"; then
  21442. + ENABLE_INPUT_MODULE_TRUE=
  21443. + ENABLE_INPUT_MODULE_FALSE='#'
  21444. +else
  21445. + ENABLE_INPUT_MODULE_TRUE='#'
  21446. + ENABLE_INPUT_MODULE_FALSE=
  21447. +fi
  21448. +
  21449. +
  21450. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to place modules" >&5
  21451. +$as_echo_n "checking where to place modules... " >&6; }
  21452. +
  21453. +# Check whether --with-plugindir was given.
  21454. +if test "${with_plugindir+set}" = set; then :
  21455. + withval=$with_plugindir; PLUGIN_DIR=$withval
  21456. +else
  21457. + PLUGIN_DIR='${libdir}/ts/'
  21458. +fi
  21459. +
  21460. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLUGIN_DIR" >&5
  21461. +$as_echo "$PLUGIN_DIR" >&6; }
  21462. +
  21463. +
  21464. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
  21465. +$as_echo_n "checking whether to enable debugging... " >&6; }
  21466. +# Check whether --enable-debug was given.
  21467. +if test "${enable_debug+set}" = set; then :
  21468. + enableval=$enable_debug;
  21469. +else
  21470. + enable_debug="no"
  21471. +fi
  21472. +
  21473. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
  21474. +$as_echo "$enable_debug" >&6; }
  21475. +if test "$enable_debug" = "yes"; then
  21476. + DEBUGFLAGS="-g -ggdb -DDEBUG"
  21477. +else
  21478. + DEBUGFLAGS=""
  21479. +fi
  21480. +
  21481. +
  21482. +LIBFLAGS="-DTSLIB_INTERNAL"
  21483. +
  21484. +
  21485. +TS_CONF='${sysconfdir}/ts.conf'
  21486. +
  21487. +
  21488. +# Library versioning
  21489. +LT_RELEASE=0.0
  21490. +LT_CURRENT=1
  21491. +LT_REVISION=1
  21492. +LT_AGE=1
  21493. +
  21494. +
  21495. +
  21496. +
  21497. +
  21498. +ac_config_files="$ac_config_files Makefile etc/Makefile plugins/Makefile src/Makefile tests/Makefile tslib-$LT_RELEASE.pc:tslib.pc.in"
  21499. +
  21500. +cat >confcache <<\_ACEOF
  21501. +# This file is a shell script that caches the results of configure
  21502. +# tests run on this system so they can be shared between configure
  21503. +# scripts and configure runs, see configure's option --config-cache.
  21504. +# It is not useful on other systems. If it contains results you don't
  21505. +# want to keep, you may remove or edit it.
  21506. +#
  21507. +# config.status only pays attention to the cache file if you give it
  21508. +# the --recheck option to rerun configure.
  21509. +#
  21510. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  21511. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  21512. +# following values.
  21513. +
  21514. +_ACEOF
  21515. +
  21516. +# The following way of writing the cache mishandles newlines in values,
  21517. +# but we know of no workaround that is simple, portable, and efficient.
  21518. +# So, we kill variables containing newlines.
  21519. +# Ultrix sh set writes to stderr and can't be redirected directly,
  21520. +# and sets the high bit in the cache file unless we assign to the vars.
  21521. +(
  21522. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21523. + eval ac_val=\$$ac_var
  21524. + case $ac_val in #(
  21525. + *${as_nl}*)
  21526. + case $ac_var in #(
  21527. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21528. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21529. + esac
  21530. + case $ac_var in #(
  21531. + _ | IFS | as_nl) ;; #(
  21532. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21533. + *) { eval $ac_var=; unset $ac_var;} ;;
  21534. + esac ;;
  21535. + esac
  21536. + done
  21537. +
  21538. + (set) 2>&1 |
  21539. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21540. + *${as_nl}ac_space=\ *)
  21541. + # `set' does not quote correctly, so add quotes: double-quote
  21542. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  21543. + sed -n \
  21544. + "s/'/'\\\\''/g;
  21545. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21546. + ;; #(
  21547. + *)
  21548. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  21549. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21550. + ;;
  21551. + esac |
  21552. + sort
  21553. +) |
  21554. + sed '
  21555. + /^ac_cv_env_/b end
  21556. + t clear
  21557. + :clear
  21558. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21559. + t end
  21560. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21561. + :end' >>confcache
  21562. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21563. + if test -w "$cache_file"; then
  21564. + test "x$cache_file" != "x/dev/null" &&
  21565. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21566. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  21567. + cat confcache >$cache_file
  21568. + else
  21569. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21570. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21571. + fi
  21572. +fi
  21573. +rm -f confcache
  21574. +
  21575. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21576. +# Let make expand exec_prefix.
  21577. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21578. +
  21579. +DEFS=-DHAVE_CONFIG_H
  21580. +
  21581. +ac_libobjs=
  21582. +ac_ltlibobjs=
  21583. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21584. + # 1. Remove the extension, and $U if already installed.
  21585. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21586. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21587. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21588. + # will be set to the directory where LIBOBJS objects are built.
  21589. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21590. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21591. +done
  21592. +LIBOBJS=$ac_libobjs
  21593. +
  21594. +LTLIBOBJS=$ac_ltlibobjs
  21595. +
  21596. +
  21597. + if test -n "$EXEEXT"; then
  21598. + am__EXEEXT_TRUE=
  21599. + am__EXEEXT_FALSE='#'
  21600. +else
  21601. + am__EXEEXT_TRUE='#'
  21602. + am__EXEEXT_FALSE=
  21603. +fi
  21604. +
  21605. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21606. + as_fn_error "conditional \"AMDEP\" was never defined.
  21607. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21608. +fi
  21609. +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21610. + as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  21611. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21612. +fi
  21613. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21614. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  21615. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21616. +fi
  21617. +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21618. + as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  21619. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21620. +fi
  21621. +if test -z "${ENABLE_LINEAR_MODULE_TRUE}" && test -z "${ENABLE_LINEAR_MODULE_FALSE}"; then
  21622. + as_fn_error "conditional \"ENABLE_LINEAR_MODULE\" was never defined.
  21623. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21624. +fi
  21625. +if test -z "${ENABLE_DEJITTER_MODULE_TRUE}" && test -z "${ENABLE_DEJITTER_MODULE_FALSE}"; then
  21626. + as_fn_error "conditional \"ENABLE_DEJITTER_MODULE\" was never defined.
  21627. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21628. +fi
  21629. +if test -z "${ENABLE_H2200_LINEAR_MODULE_TRUE}" && test -z "${ENABLE_H2200_LINEAR_MODULE_FALSE}"; then
  21630. + as_fn_error "conditional \"ENABLE_H2200_LINEAR_MODULE\" was never defined.
  21631. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21632. +fi
  21633. +if test -z "${ENABLE_VARIANCE_MODULE_TRUE}" && test -z "${ENABLE_VARIANCE_MODULE_FALSE}"; then
  21634. + as_fn_error "conditional \"ENABLE_VARIANCE_MODULE\" was never defined.
  21635. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21636. +fi
  21637. +if test -z "${ENABLE_PTHRES_MODULE_TRUE}" && test -z "${ENABLE_PTHRES_MODULE_FALSE}"; then
  21638. + as_fn_error "conditional \"ENABLE_PTHRES_MODULE\" was never defined.
  21639. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21640. +fi
  21641. +if test -z "${ENABLE_UCB1X00_MODULE_TRUE}" && test -z "${ENABLE_UCB1X00_MODULE_FALSE}"; then
  21642. + as_fn_error "conditional \"ENABLE_UCB1X00_MODULE\" was never defined.
  21643. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21644. +fi
  21645. +if test -z "${ENABLE_CORGI_MODULE_TRUE}" && test -z "${ENABLE_CORGI_MODULE_FALSE}"; then
  21646. + as_fn_error "conditional \"ENABLE_CORGI_MODULE\" was never defined.
  21647. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21648. +fi
  21649. +if test -z "${ENABLE_COLLIE_MODULE_TRUE}" && test -z "${ENABLE_COLLIE_MODULE_FALSE}"; then
  21650. + as_fn_error "conditional \"ENABLE_COLLIE_MODULE\" was never defined.
  21651. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21652. +fi
  21653. +if test -z "${ENABLE_H3600_MODULE_TRUE}" && test -z "${ENABLE_H3600_MODULE_FALSE}"; then
  21654. + as_fn_error "conditional \"ENABLE_H3600_MODULE\" was never defined.
  21655. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21656. +fi
  21657. +if test -z "${ENABLE_MK712_MODULE_TRUE}" && test -z "${ENABLE_MK712_MODULE_FALSE}"; then
  21658. + as_fn_error "conditional \"ENABLE_MK712_MODULE\" was never defined.
  21659. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21660. +fi
  21661. +if test -z "${ENABLE_ARCTIC2_MODULE_TRUE}" && test -z "${ENABLE_ARCTIC2_MODULE_FALSE}"; then
  21662. + as_fn_error "conditional \"ENABLE_ARCTIC2_MODULE\" was never defined.
  21663. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21664. +fi
  21665. +if test -z "${ENABLE_INPUT_MODULE_TRUE}" && test -z "${ENABLE_INPUT_MODULE_FALSE}"; then
  21666. + as_fn_error "conditional \"ENABLE_INPUT_MODULE\" was never defined.
  21667. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21668. +fi
  21669. +
  21670. +: ${CONFIG_STATUS=./config.status}
  21671. +ac_write_fail=0
  21672. +ac_clean_files_save=$ac_clean_files
  21673. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21674. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21675. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21676. +as_write_fail=0
  21677. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21678. +#! $SHELL
  21679. +# Generated by $as_me.
  21680. +# Run this file to recreate the current configuration.
  21681. +# Compiler output produced by configure, useful for debugging
  21682. +# configure, is in config.log if it exists.
  21683. +
  21684. +debug=false
  21685. +ac_cs_recheck=false
  21686. +ac_cs_silent=false
  21687. +
  21688. +SHELL=\${CONFIG_SHELL-$SHELL}
  21689. +export SHELL
  21690. +_ASEOF
  21691. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21692. +## -------------------- ##
  21693. +## M4sh Initialization. ##
  21694. +## -------------------- ##
  21695. +
  21696. +# Be more Bourne compatible
  21697. +DUALCASE=1; export DUALCASE # for MKS sh
  21698. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21699. + emulate sh
  21700. + NULLCMD=:
  21701. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21702. + # is contrary to our usage. Disable this feature.
  21703. + alias -g '${1+"$@"}'='"$@"'
  21704. + setopt NO_GLOB_SUBST
  21705. +else
  21706. + case `(set -o) 2>/dev/null` in #(
  21707. + *posix*) :
  21708. + set -o posix ;; #(
  21709. + *) :
  21710. + ;;
  21711. +esac
  21712. +fi
  21713. +
  21714. +
  21715. +as_nl='
  21716. +'
  21717. +export as_nl
  21718. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  21719. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21720. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21721. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21722. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  21723. +# but without wasting forks for bash or zsh.
  21724. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  21725. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21726. + as_echo='print -r --'
  21727. + as_echo_n='print -rn --'
  21728. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21729. + as_echo='printf %s\n'
  21730. + as_echo_n='printf %s'
  21731. +else
  21732. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21733. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21734. + as_echo_n='/usr/ucb/echo -n'
  21735. + else
  21736. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21737. + as_echo_n_body='eval
  21738. + arg=$1;
  21739. + case $arg in #(
  21740. + *"$as_nl"*)
  21741. + expr "X$arg" : "X\\(.*\\)$as_nl";
  21742. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21743. + esac;
  21744. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21745. + '
  21746. + export as_echo_n_body
  21747. + as_echo_n='sh -c $as_echo_n_body as_echo'
  21748. + fi
  21749. + export as_echo_body
  21750. + as_echo='sh -c $as_echo_body as_echo'
  21751. +fi
  21752. +
  21753. +# The user is always right.
  21754. +if test "${PATH_SEPARATOR+set}" != set; then
  21755. + PATH_SEPARATOR=:
  21756. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21757. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21758. + PATH_SEPARATOR=';'
  21759. + }
  21760. +fi
  21761. +
  21762. +
  21763. +# IFS
  21764. +# We need space, tab and new line, in precisely that order. Quoting is
  21765. +# there to prevent editors from complaining about space-tab.
  21766. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21767. +# splitting by setting IFS to empty value.)
  21768. +IFS=" "" $as_nl"
  21769. +
  21770. +# Find who we are. Look in the path if we contain no directory separator.
  21771. +case $0 in #((
  21772. + *[\\/]* ) as_myself=$0 ;;
  21773. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21774. +for as_dir in $PATH
  21775. +do
  21776. + IFS=$as_save_IFS
  21777. + test -z "$as_dir" && as_dir=.
  21778. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21779. + done
  21780. +IFS=$as_save_IFS
  21781. +
  21782. + ;;
  21783. +esac
  21784. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  21785. +# in which case we are not to be found in the path.
  21786. +if test "x$as_myself" = x; then
  21787. + as_myself=$0
  21788. +fi
  21789. +if test ! -f "$as_myself"; then
  21790. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21791. + exit 1
  21792. +fi
  21793. +
  21794. +# Unset variables that we do not need and which cause bugs (e.g. in
  21795. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21796. +# suppresses any "Segmentation fault" message there. '((' could
  21797. +# trigger a bug in pdksh 5.2.14.
  21798. +for as_var in BASH_ENV ENV MAIL MAILPATH
  21799. +do eval test x\${$as_var+set} = xset \
  21800. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21801. +done
  21802. +PS1='$ '
  21803. +PS2='> '
  21804. +PS4='+ '
  21805. +
  21806. +# NLS nuisances.
  21807. +LC_ALL=C
  21808. +export LC_ALL
  21809. +LANGUAGE=C
  21810. +export LANGUAGE
  21811. +
  21812. +# CDPATH.
  21813. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21814. +
  21815. +
  21816. +# as_fn_error ERROR [LINENO LOG_FD]
  21817. +# ---------------------------------
  21818. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21819. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21820. +# script with status $?, using 1 if that was 0.
  21821. +as_fn_error ()
  21822. +{
  21823. + as_status=$?; test $as_status -eq 0 && as_status=1
  21824. + if test "$3"; then
  21825. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21826. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  21827. + fi
  21828. + $as_echo "$as_me: error: $1" >&2
  21829. + as_fn_exit $as_status
  21830. +} # as_fn_error
  21831. +
  21832. +
  21833. +# as_fn_set_status STATUS
  21834. +# -----------------------
  21835. +# Set $? to STATUS, without forking.
  21836. +as_fn_set_status ()
  21837. +{
  21838. + return $1
  21839. +} # as_fn_set_status
  21840. +
  21841. +# as_fn_exit STATUS
  21842. +# -----------------
  21843. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21844. +as_fn_exit ()
  21845. +{
  21846. + set +e
  21847. + as_fn_set_status $1
  21848. + exit $1
  21849. +} # as_fn_exit
  21850. +
  21851. +# as_fn_unset VAR
  21852. +# ---------------
  21853. +# Portably unset VAR.
  21854. +as_fn_unset ()
  21855. +{
  21856. + { eval $1=; unset $1;}
  21857. +}
  21858. +as_unset=as_fn_unset
  21859. +# as_fn_append VAR VALUE
  21860. +# ----------------------
  21861. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  21862. +# advantage of any shell optimizations that allow amortized linear growth over
  21863. +# repeated appends, instead of the typical quadratic growth present in naive
  21864. +# implementations.
  21865. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21866. + eval 'as_fn_append ()
  21867. + {
  21868. + eval $1+=\$2
  21869. + }'
  21870. +else
  21871. + as_fn_append ()
  21872. + {
  21873. + eval $1=\$$1\$2
  21874. + }
  21875. +fi # as_fn_append
  21876. +
  21877. +# as_fn_arith ARG...
  21878. +# ------------------
  21879. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  21880. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  21881. +# must be portable across $(()) and expr.
  21882. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21883. + eval 'as_fn_arith ()
  21884. + {
  21885. + as_val=$(( $* ))
  21886. + }'
  21887. +else
  21888. + as_fn_arith ()
  21889. + {
  21890. + as_val=`expr "$@" || test $? -eq 1`
  21891. + }
  21892. +fi # as_fn_arith
  21893. +
  21894. +
  21895. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  21896. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21897. + as_expr=expr
  21898. +else
  21899. + as_expr=false
  21900. +fi
  21901. +
  21902. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21903. + as_basename=basename
  21904. +else
  21905. + as_basename=false
  21906. +fi
  21907. +
  21908. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21909. + as_dirname=dirname
  21910. +else
  21911. + as_dirname=false
  21912. +fi
  21913. +
  21914. +as_me=`$as_basename -- "$0" ||
  21915. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21916. + X"$0" : 'X\(//\)$' \| \
  21917. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21918. +$as_echo X/"$0" |
  21919. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  21920. + s//\1/
  21921. + q
  21922. + }
  21923. + /^X\/\(\/\/\)$/{
  21924. + s//\1/
  21925. + q
  21926. + }
  21927. + /^X\/\(\/\).*/{
  21928. + s//\1/
  21929. + q
  21930. + }
  21931. + s/.*/./; q'`
  21932. +
  21933. +# Avoid depending upon Character Ranges.
  21934. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21935. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21936. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21937. +as_cr_digits='0123456789'
  21938. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  21939. +
  21940. +ECHO_C= ECHO_N= ECHO_T=
  21941. +case `echo -n x` in #(((((
  21942. +-n*)
  21943. + case `echo 'xy\c'` in
  21944. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21945. + xy) ECHO_C='\c';;
  21946. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21947. + ECHO_T=' ';;
  21948. + esac;;
  21949. +*)
  21950. + ECHO_N='-n';;
  21951. +esac
  21952. +
  21953. +rm -f conf$$ conf$$.exe conf$$.file
  21954. +if test -d conf$$.dir; then
  21955. + rm -f conf$$.dir/conf$$.file
  21956. +else
  21957. + rm -f conf$$.dir
  21958. + mkdir conf$$.dir 2>/dev/null
  21959. +fi
  21960. +if (echo >conf$$.file) 2>/dev/null; then
  21961. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  21962. + as_ln_s='ln -s'
  21963. + # ... but there are two gotchas:
  21964. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21965. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21966. + # In both cases, we have to default to `cp -p'.
  21967. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21968. + as_ln_s='cp -p'
  21969. + elif ln conf$$.file conf$$ 2>/dev/null; then
  21970. + as_ln_s=ln
  21971. + else
  21972. + as_ln_s='cp -p'
  21973. + fi
  21974. +else
  21975. + as_ln_s='cp -p'
  21976. +fi
  21977. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21978. +rmdir conf$$.dir 2>/dev/null
  21979. +
  21980. +
  21981. +# as_fn_mkdir_p
  21982. +# -------------
  21983. +# Create "$as_dir" as a directory, including parents if necessary.
  21984. +as_fn_mkdir_p ()
  21985. +{
  21986. +
  21987. + case $as_dir in #(
  21988. + -*) as_dir=./$as_dir;;
  21989. + esac
  21990. + test -d "$as_dir" || eval $as_mkdir_p || {
  21991. + as_dirs=
  21992. + while :; do
  21993. + case $as_dir in #(
  21994. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21995. + *) as_qdir=$as_dir;;
  21996. + esac
  21997. + as_dirs="'$as_qdir' $as_dirs"
  21998. + as_dir=`$as_dirname -- "$as_dir" ||
  21999. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22000. + X"$as_dir" : 'X\(//\)[^/]' \| \
  22001. + X"$as_dir" : 'X\(//\)$' \| \
  22002. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22003. +$as_echo X"$as_dir" |
  22004. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22005. + s//\1/
  22006. + q
  22007. + }
  22008. + /^X\(\/\/\)[^/].*/{
  22009. + s//\1/
  22010. + q
  22011. + }
  22012. + /^X\(\/\/\)$/{
  22013. + s//\1/
  22014. + q
  22015. + }
  22016. + /^X\(\/\).*/{
  22017. + s//\1/
  22018. + q
  22019. + }
  22020. + s/.*/./; q'`
  22021. + test -d "$as_dir" && break
  22022. + done
  22023. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  22024. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  22025. +
  22026. +
  22027. +} # as_fn_mkdir_p
  22028. +if mkdir -p . 2>/dev/null; then
  22029. + as_mkdir_p='mkdir -p "$as_dir"'
  22030. +else
  22031. + test -d ./-p && rmdir ./-p
  22032. + as_mkdir_p=false
  22033. +fi
  22034. +
  22035. +if test -x / >/dev/null 2>&1; then
  22036. + as_test_x='test -x'
  22037. +else
  22038. + if ls -dL / >/dev/null 2>&1; then
  22039. + as_ls_L_option=L
  22040. + else
  22041. + as_ls_L_option=
  22042. + fi
  22043. + as_test_x='
  22044. + eval sh -c '\''
  22045. + if test -d "$1"; then
  22046. + test -d "$1/.";
  22047. + else
  22048. + case $1 in #(
  22049. + -*)set "./$1";;
  22050. + esac;
  22051. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  22052. + ???[sx]*):;;*)false;;esac;fi
  22053. + '\'' sh
  22054. + '
  22055. +fi
  22056. +as_executable_p=$as_test_x
  22057. +
  22058. +# Sed expression to map a string onto a valid CPP name.
  22059. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22060. +
  22061. +# Sed expression to map a string onto a valid variable name.
  22062. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22063. +
  22064. +
  22065. +exec 6>&1
  22066. +## ----------------------------------- ##
  22067. +## Main body of $CONFIG_STATUS script. ##
  22068. +## ----------------------------------- ##
  22069. +_ASEOF
  22070. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22071. +
  22072. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22073. +# Save the log message, to keep $0 and so on meaningful, and to
  22074. +# report actual input values of CONFIG_FILES etc. instead of their
  22075. +# values after options handling.
  22076. +ac_log="
  22077. +This file was extended by tslib $as_me 0.0.2, which was
  22078. +generated by GNU Autoconf 2.65. Invocation command line was
  22079. +
  22080. + CONFIG_FILES = $CONFIG_FILES
  22081. + CONFIG_HEADERS = $CONFIG_HEADERS
  22082. + CONFIG_LINKS = $CONFIG_LINKS
  22083. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  22084. + $ $0 $@
  22085. +
  22086. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22087. +"
  22088. +
  22089. +_ACEOF
  22090. +
  22091. +case $ac_config_files in *"
  22092. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  22093. +esac
  22094. +
  22095. +case $ac_config_headers in *"
  22096. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22097. +esac
  22098. +
  22099. +
  22100. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22101. +# Files that config.status was made for.
  22102. +config_files="$ac_config_files"
  22103. +config_headers="$ac_config_headers"
  22104. +config_commands="$ac_config_commands"
  22105. +
  22106. +_ACEOF
  22107. +
  22108. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22109. +ac_cs_usage="\
  22110. +\`$as_me' instantiates files and other configuration actions
  22111. +from templates according to the current configuration. Unless the files
  22112. +and actions are specified as TAGs, all are instantiated by default.
  22113. +
  22114. +Usage: $0 [OPTION]... [TAG]...
  22115. +
  22116. + -h, --help print this help, then exit
  22117. + -V, --version print version number and configuration settings, then exit
  22118. + --config print configuration, then exit
  22119. + -q, --quiet, --silent
  22120. + do not print progress messages
  22121. + -d, --debug don't remove temporary files
  22122. + --recheck update $as_me by reconfiguring in the same conditions
  22123. + --file=FILE[:TEMPLATE]
  22124. + instantiate the configuration file FILE
  22125. + --header=FILE[:TEMPLATE]
  22126. + instantiate the configuration header FILE
  22127. +
  22128. +Configuration files:
  22129. +$config_files
  22130. +
  22131. +Configuration headers:
  22132. +$config_headers
  22133. +
  22134. +Configuration commands:
  22135. +$config_commands
  22136. +
  22137. +Report bugs to <kergoth@handhelds.org>."
  22138. +
  22139. +_ACEOF
  22140. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22141. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22142. +ac_cs_version="\\
  22143. +tslib config.status 0.0.2
  22144. +configured by $0, generated by GNU Autoconf 2.65,
  22145. + with options \\"\$ac_cs_config\\"
  22146. +
  22147. +Copyright (C) 2009 Free Software Foundation, Inc.
  22148. +This config.status script is free software; the Free Software Foundation
  22149. +gives unlimited permission to copy, distribute and modify it."
  22150. +
  22151. +ac_pwd='$ac_pwd'
  22152. +srcdir='$srcdir'
  22153. +INSTALL='$INSTALL'
  22154. +MKDIR_P='$MKDIR_P'
  22155. +AWK='$AWK'
  22156. +test -n "\$AWK" || AWK=awk
  22157. +_ACEOF
  22158. +
  22159. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22160. +# The default lists apply if the user does not specify any file.
  22161. +ac_need_defaults=:
  22162. +while test $# != 0
  22163. +do
  22164. + case $1 in
  22165. + --*=*)
  22166. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22167. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22168. + ac_shift=:
  22169. + ;;
  22170. + *)
  22171. + ac_option=$1
  22172. + ac_optarg=$2
  22173. + ac_shift=shift
  22174. + ;;
  22175. + esac
  22176. +
  22177. + case $ac_option in
  22178. + # Handling of the options.
  22179. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22180. + ac_cs_recheck=: ;;
  22181. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22182. + $as_echo "$ac_cs_version"; exit ;;
  22183. + --config | --confi | --conf | --con | --co | --c )
  22184. + $as_echo "$ac_cs_config"; exit ;;
  22185. + --debug | --debu | --deb | --de | --d | -d )
  22186. + debug=: ;;
  22187. + --file | --fil | --fi | --f )
  22188. + $ac_shift
  22189. + case $ac_optarg in
  22190. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22191. + esac
  22192. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  22193. + ac_need_defaults=false;;
  22194. + --header | --heade | --head | --hea )
  22195. + $ac_shift
  22196. + case $ac_optarg in
  22197. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22198. + esac
  22199. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22200. + ac_need_defaults=false;;
  22201. + --he | --h)
  22202. + # Conflict between --help and --header
  22203. + as_fn_error "ambiguous option: \`$1'
  22204. +Try \`$0 --help' for more information.";;
  22205. + --help | --hel | -h )
  22206. + $as_echo "$ac_cs_usage"; exit ;;
  22207. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22208. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22209. + ac_cs_silent=: ;;
  22210. +
  22211. + # This is an error.
  22212. + -*) as_fn_error "unrecognized option: \`$1'
  22213. +Try \`$0 --help' for more information." ;;
  22214. +
  22215. + *) as_fn_append ac_config_targets " $1"
  22216. + ac_need_defaults=false ;;
  22217. +
  22218. + esac
  22219. + shift
  22220. +done
  22221. +
  22222. +ac_configure_extra_args=
  22223. +
  22224. +if $ac_cs_silent; then
  22225. + exec 6>/dev/null
  22226. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  22227. +fi
  22228. +
  22229. +_ACEOF
  22230. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22231. +if \$ac_cs_recheck; then
  22232. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22233. + shift
  22234. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22235. + CONFIG_SHELL='$SHELL'
  22236. + export CONFIG_SHELL
  22237. + exec "\$@"
  22238. +fi
  22239. +
  22240. +_ACEOF
  22241. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22242. +exec 5>>config.log
  22243. +{
  22244. + echo
  22245. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22246. +## Running $as_me. ##
  22247. +_ASBOX
  22248. + $as_echo "$ac_log"
  22249. +} >&5
  22250. +
  22251. +_ACEOF
  22252. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22253. +#
  22254. +# INIT-COMMANDS
  22255. +#
  22256. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22257. +
  22258. +
  22259. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  22260. +# if CDPATH is set.
  22261. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22262. +
  22263. +sed_quote_subst='$sed_quote_subst'
  22264. +double_quote_subst='$double_quote_subst'
  22265. +delay_variable_subst='$delay_variable_subst'
  22266. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  22267. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  22268. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  22269. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  22270. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  22271. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  22272. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  22273. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  22274. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  22275. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  22276. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  22277. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  22278. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  22279. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  22280. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  22281. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  22282. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  22283. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  22284. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  22285. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  22286. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  22287. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  22288. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  22289. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  22290. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  22291. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  22292. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22293. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22294. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  22295. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  22296. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  22297. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  22298. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  22299. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  22300. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  22301. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22302. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22303. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22304. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  22305. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  22306. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  22307. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  22308. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  22309. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  22310. +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"`'
  22311. +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"`'
  22312. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  22313. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  22314. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  22315. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  22316. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22317. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  22318. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  22319. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  22320. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  22321. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  22322. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  22323. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  22324. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  22325. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  22326. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  22327. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  22328. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22329. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22330. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  22331. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  22332. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22333. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22334. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  22335. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22336. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22337. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22338. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22339. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22340. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22341. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  22342. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22343. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22344. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22345. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  22346. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  22347. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  22348. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  22349. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  22350. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22351. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  22352. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  22353. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  22354. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  22355. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  22356. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22357. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  22358. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  22359. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22360. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22361. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  22362. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  22363. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  22364. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  22365. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22366. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22367. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  22368. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22369. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22370. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22371. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22372. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22373. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22374. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  22375. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  22376. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22377. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22378. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  22379. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  22380. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  22381. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  22382. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  22383. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  22384. +compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  22385. +predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  22386. +postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  22387. +predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  22388. +postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  22389. +compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  22390. +LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22391. +old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22392. +compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22393. +GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22394. +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22395. +lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22396. +lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22397. +lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22398. +lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22399. +archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22400. +enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22401. +export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22402. +whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22403. +compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22404. +old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22405. +old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22406. +archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22407. +archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22408. +module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22409. +module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22410. +with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22411. +allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22412. +no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22413. +hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22414. +hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22415. +hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22416. +hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22417. +hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22418. +hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22419. +hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22420. +hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22421. +inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22422. +link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22423. +fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22424. +always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22425. +export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22426. +exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22427. +include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22428. +prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22429. +file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22430. +hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22431. +compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22432. +predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22433. +postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22434. +predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22435. +postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22436. +compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22437. +
  22438. +LTCC='$LTCC'
  22439. +LTCFLAGS='$LTCFLAGS'
  22440. +compiler='$compiler_DEFAULT'
  22441. +
  22442. +# Quote evaled strings.
  22443. +for var in SED \
  22444. +GREP \
  22445. +EGREP \
  22446. +FGREP \
  22447. +LD \
  22448. +NM \
  22449. +LN_S \
  22450. +lt_SP2NL \
  22451. +lt_NL2SP \
  22452. +reload_flag \
  22453. +OBJDUMP \
  22454. +deplibs_check_method \
  22455. +file_magic_cmd \
  22456. +AR \
  22457. +AR_FLAGS \
  22458. +STRIP \
  22459. +RANLIB \
  22460. +CC \
  22461. +CFLAGS \
  22462. +compiler \
  22463. +lt_cv_sys_global_symbol_pipe \
  22464. +lt_cv_sys_global_symbol_to_cdecl \
  22465. +lt_cv_sys_global_symbol_to_c_name_address \
  22466. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22467. +SHELL \
  22468. +ECHO \
  22469. +lt_prog_compiler_no_builtin_flag \
  22470. +lt_prog_compiler_wl \
  22471. +lt_prog_compiler_pic \
  22472. +lt_prog_compiler_static \
  22473. +lt_cv_prog_compiler_c_o \
  22474. +need_locks \
  22475. +DSYMUTIL \
  22476. +NMEDIT \
  22477. +LIPO \
  22478. +OTOOL \
  22479. +OTOOL64 \
  22480. +shrext_cmds \
  22481. +export_dynamic_flag_spec \
  22482. +whole_archive_flag_spec \
  22483. +compiler_needs_object \
  22484. +with_gnu_ld \
  22485. +allow_undefined_flag \
  22486. +no_undefined_flag \
  22487. +hardcode_libdir_flag_spec \
  22488. +hardcode_libdir_flag_spec_ld \
  22489. +hardcode_libdir_separator \
  22490. +fix_srcfile_path \
  22491. +exclude_expsyms \
  22492. +include_expsyms \
  22493. +file_list_spec \
  22494. +variables_saved_for_relink \
  22495. +libname_spec \
  22496. +library_names_spec \
  22497. +soname_spec \
  22498. +finish_eval \
  22499. +old_striplib \
  22500. +striplib \
  22501. +compiler_lib_search_dirs \
  22502. +predep_objects \
  22503. +postdep_objects \
  22504. +predeps \
  22505. +postdeps \
  22506. +compiler_lib_search_path \
  22507. +LD_CXX \
  22508. +compiler_CXX \
  22509. +lt_prog_compiler_no_builtin_flag_CXX \
  22510. +lt_prog_compiler_wl_CXX \
  22511. +lt_prog_compiler_pic_CXX \
  22512. +lt_prog_compiler_static_CXX \
  22513. +lt_cv_prog_compiler_c_o_CXX \
  22514. +export_dynamic_flag_spec_CXX \
  22515. +whole_archive_flag_spec_CXX \
  22516. +compiler_needs_object_CXX \
  22517. +with_gnu_ld_CXX \
  22518. +allow_undefined_flag_CXX \
  22519. +no_undefined_flag_CXX \
  22520. +hardcode_libdir_flag_spec_CXX \
  22521. +hardcode_libdir_flag_spec_ld_CXX \
  22522. +hardcode_libdir_separator_CXX \
  22523. +fix_srcfile_path_CXX \
  22524. +exclude_expsyms_CXX \
  22525. +include_expsyms_CXX \
  22526. +file_list_spec_CXX \
  22527. +compiler_lib_search_dirs_CXX \
  22528. +predep_objects_CXX \
  22529. +postdep_objects_CXX \
  22530. +predeps_CXX \
  22531. +postdeps_CXX \
  22532. +compiler_lib_search_path_CXX; do
  22533. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  22534. + *[\\\\\\\`\\"\\\$]*)
  22535. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22536. + ;;
  22537. + *)
  22538. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22539. + ;;
  22540. + esac
  22541. +done
  22542. +
  22543. +# Double-quote double-evaled strings.
  22544. +for var in reload_cmds \
  22545. +old_postinstall_cmds \
  22546. +old_postuninstall_cmds \
  22547. +old_archive_cmds \
  22548. +extract_expsyms_cmds \
  22549. +old_archive_from_new_cmds \
  22550. +old_archive_from_expsyms_cmds \
  22551. +archive_cmds \
  22552. +archive_expsym_cmds \
  22553. +module_cmds \
  22554. +module_expsym_cmds \
  22555. +export_symbols_cmds \
  22556. +prelink_cmds \
  22557. +postinstall_cmds \
  22558. +postuninstall_cmds \
  22559. +finish_cmds \
  22560. +sys_lib_search_path_spec \
  22561. +sys_lib_dlsearch_path_spec \
  22562. +old_archive_cmds_CXX \
  22563. +old_archive_from_new_cmds_CXX \
  22564. +old_archive_from_expsyms_cmds_CXX \
  22565. +archive_cmds_CXX \
  22566. +archive_expsym_cmds_CXX \
  22567. +module_cmds_CXX \
  22568. +module_expsym_cmds_CXX \
  22569. +export_symbols_cmds_CXX \
  22570. +prelink_cmds_CXX; do
  22571. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  22572. + *[\\\\\\\`\\"\\\$]*)
  22573. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22574. + ;;
  22575. + *)
  22576. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22577. + ;;
  22578. + esac
  22579. +done
  22580. +
  22581. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  22582. +case \$lt_ECHO in
  22583. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  22584. + ;;
  22585. +esac
  22586. +
  22587. +ac_aux_dir='$ac_aux_dir'
  22588. +xsi_shell='$xsi_shell'
  22589. +lt_shell_append='$lt_shell_append'
  22590. +
  22591. +# See if we are running on zsh, and set the options which allow our
  22592. +# commands through without removal of \ escapes INIT.
  22593. +if test -n "\${ZSH_VERSION+set}" ; then
  22594. + setopt NO_GLOB_SUBST
  22595. +fi
  22596. +
  22597. +
  22598. + PACKAGE='$PACKAGE'
  22599. + VERSION='$VERSION'
  22600. + TIMESTAMP='$TIMESTAMP'
  22601. + RM='$RM'
  22602. + ofile='$ofile'
  22603. +
  22604. +
  22605. +
  22606. +
  22607. +
  22608. +
  22609. +_ACEOF
  22610. +
  22611. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22612. +
  22613. +# Handling of arguments.
  22614. +for ac_config_target in $ac_config_targets
  22615. +do
  22616. + case $ac_config_target in
  22617. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  22618. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22619. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22620. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22621. + "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
  22622. + "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
  22623. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  22624. + "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  22625. + "tslib-$LT_RELEASE.pc") CONFIG_FILES="$CONFIG_FILES tslib-$LT_RELEASE.pc:tslib.pc.in" ;;
  22626. +
  22627. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22628. + esac
  22629. +done
  22630. +
  22631. +
  22632. +# If the user did not use the arguments to specify the items to instantiate,
  22633. +# then the envvar interface is used. Set only those that are not.
  22634. +# We use the long form for the default assignment because of an extremely
  22635. +# bizarre bug on SunOS 4.1.3.
  22636. +if $ac_need_defaults; then
  22637. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22638. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22639. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22640. +fi
  22641. +
  22642. +# Have a temporary directory for convenience. Make it in the build tree
  22643. +# simply because there is no reason against having it here, and in addition,
  22644. +# creating and moving files from /tmp can sometimes cause problems.
  22645. +# Hook for its removal unless debugging.
  22646. +# Note that there is a small window in which the directory will not be cleaned:
  22647. +# after its creation but before its name has been assigned to `$tmp'.
  22648. +$debug ||
  22649. +{
  22650. + tmp=
  22651. + trap 'exit_status=$?
  22652. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  22653. +' 0
  22654. + trap 'as_fn_exit 1' 1 2 13 15
  22655. +}
  22656. +# Create a (secure) tmp directory for tmp files.
  22657. +
  22658. +{
  22659. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22660. + test -n "$tmp" && test -d "$tmp"
  22661. +} ||
  22662. +{
  22663. + tmp=./conf$$-$RANDOM
  22664. + (umask 077 && mkdir "$tmp")
  22665. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  22666. +
  22667. +# Set up the scripts for CONFIG_FILES section.
  22668. +# No need to generate them if there are no CONFIG_FILES.
  22669. +# This happens for instance with `./config.status config.h'.
  22670. +if test -n "$CONFIG_FILES"; then
  22671. +
  22672. +
  22673. +ac_cr=`echo X | tr X '\015'`
  22674. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  22675. +# But we know of no other shell where ac_cr would be empty at this
  22676. +# point, so we can use a bashism as a fallback.
  22677. +if test "x$ac_cr" = x; then
  22678. + eval ac_cr=\$\'\\r\'
  22679. +fi
  22680. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22681. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22682. + ac_cs_awk_cr='\r'
  22683. +else
  22684. + ac_cs_awk_cr=$ac_cr
  22685. +fi
  22686. +
  22687. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  22688. +_ACEOF
  22689. +
  22690. +
  22691. +{
  22692. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  22693. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22694. + echo "_ACEOF"
  22695. +} >conf$$subs.sh ||
  22696. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  22697. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  22698. +ac_delim='%!_!# '
  22699. +for ac_last_try in false false false false false :; do
  22700. + . ./conf$$subs.sh ||
  22701. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  22702. +
  22703. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22704. + if test $ac_delim_n = $ac_delim_num; then
  22705. + break
  22706. + elif $ac_last_try; then
  22707. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  22708. + else
  22709. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22710. + fi
  22711. +done
  22712. +rm -f conf$$subs.sh
  22713. +
  22714. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22715. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  22716. +_ACEOF
  22717. +sed -n '
  22718. +h
  22719. +s/^/S["/; s/!.*/"]=/
  22720. +p
  22721. +g
  22722. +s/^[^!]*!//
  22723. +:repl
  22724. +t repl
  22725. +s/'"$ac_delim"'$//
  22726. +t delim
  22727. +:nl
  22728. +h
  22729. +s/\(.\{148\}\)..*/\1/
  22730. +t more1
  22731. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22732. +p
  22733. +n
  22734. +b repl
  22735. +:more1
  22736. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22737. +p
  22738. +g
  22739. +s/.\{148\}//
  22740. +t nl
  22741. +:delim
  22742. +h
  22743. +s/\(.\{148\}\)..*/\1/
  22744. +t more2
  22745. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  22746. +p
  22747. +b
  22748. +:more2
  22749. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22750. +p
  22751. +g
  22752. +s/.\{148\}//
  22753. +t delim
  22754. +' <conf$$subs.awk | sed '
  22755. +/^[^""]/{
  22756. + N
  22757. + s/\n//
  22758. +}
  22759. +' >>$CONFIG_STATUS || ac_write_fail=1
  22760. +rm -f conf$$subs.awk
  22761. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22762. +_ACAWK
  22763. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  22764. + for (key in S) S_is_set[key] = 1
  22765. + FS = ""
  22766. +
  22767. +}
  22768. +{
  22769. + line = $ 0
  22770. + nfields = split(line, field, "@")
  22771. + substed = 0
  22772. + len = length(field[1])
  22773. + for (i = 2; i < nfields; i++) {
  22774. + key = field[i]
  22775. + keylen = length(key)
  22776. + if (S_is_set[key]) {
  22777. + value = S[key]
  22778. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22779. + len += length(value) + length(field[++i])
  22780. + substed = 1
  22781. + } else
  22782. + len += 1 + keylen
  22783. + }
  22784. +
  22785. + print line
  22786. +}
  22787. +
  22788. +_ACAWK
  22789. +_ACEOF
  22790. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22791. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22792. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22793. +else
  22794. + cat
  22795. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  22796. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  22797. +_ACEOF
  22798. +
  22799. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  22800. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  22801. +# trailing colons and then remove the whole line if VPATH becomes empty
  22802. +# (actually we leave an empty line to preserve line numbers).
  22803. +if test "x$srcdir" = x.; then
  22804. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  22805. +s/:*\$(srcdir):*/:/
  22806. +s/:*\${srcdir}:*/:/
  22807. +s/:*@srcdir@:*/:/
  22808. +s/^\([^=]*=[ ]*\):*/\1/
  22809. +s/:*$//
  22810. +s/^[^=]*=[ ]*$//
  22811. +}'
  22812. +fi
  22813. +
  22814. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22815. +fi # test -n "$CONFIG_FILES"
  22816. +
  22817. +# Set up the scripts for CONFIG_HEADERS section.
  22818. +# No need to generate them if there are no CONFIG_HEADERS.
  22819. +# This happens for instance with `./config.status Makefile'.
  22820. +if test -n "$CONFIG_HEADERS"; then
  22821. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  22822. +BEGIN {
  22823. +_ACEOF
  22824. +
  22825. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  22826. +# here-document in config.status, that substitutes the proper values into
  22827. +# config.h.in to produce config.h.
  22828. +
  22829. +# Create a delimiter string that does not exist in confdefs.h, to ease
  22830. +# handling of long lines.
  22831. +ac_delim='%!_!# '
  22832. +for ac_last_try in false false :; do
  22833. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  22834. + if test -z "$ac_t"; then
  22835. + break
  22836. + elif $ac_last_try; then
  22837. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  22838. + else
  22839. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22840. + fi
  22841. +done
  22842. +
  22843. +# For the awk script, D is an array of macro values keyed by name,
  22844. +# likewise P contains macro parameters if any. Preserve backslash
  22845. +# newline sequences.
  22846. +
  22847. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22848. +sed -n '
  22849. +s/.\{148\}/&'"$ac_delim"'/g
  22850. +t rset
  22851. +:rset
  22852. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  22853. +t def
  22854. +d
  22855. +:def
  22856. +s/\\$//
  22857. +t bsnl
  22858. +s/["\\]/\\&/g
  22859. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22860. +D["\1"]=" \3"/p
  22861. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22862. +d
  22863. +:bsnl
  22864. +s/["\\]/\\&/g
  22865. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22866. +D["\1"]=" \3\\\\\\n"\\/p
  22867. +t cont
  22868. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22869. +t cont
  22870. +d
  22871. +:cont
  22872. +n
  22873. +s/.\{148\}/&'"$ac_delim"'/g
  22874. +t clear
  22875. +:clear
  22876. +s/\\$//
  22877. +t bsnlc
  22878. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22879. +d
  22880. +:bsnlc
  22881. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22882. +b cont
  22883. +' <confdefs.h | sed '
  22884. +s/'"$ac_delim"'/"\\\
  22885. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  22886. +
  22887. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22888. + for (key in D) D_is_set[key] = 1
  22889. + FS = ""
  22890. +}
  22891. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22892. + line = \$ 0
  22893. + split(line, arg, " ")
  22894. + if (arg[1] == "#") {
  22895. + defundef = arg[2]
  22896. + mac1 = arg[3]
  22897. + } else {
  22898. + defundef = substr(arg[1], 2)
  22899. + mac1 = arg[2]
  22900. + }
  22901. + split(mac1, mac2, "(") #)
  22902. + macro = mac2[1]
  22903. + prefix = substr(line, 1, index(line, defundef) - 1)
  22904. + if (D_is_set[macro]) {
  22905. + # Preserve the white space surrounding the "#".
  22906. + print prefix "define", macro P[macro] D[macro]
  22907. + next
  22908. + } else {
  22909. + # Replace #undef with comments. This is necessary, for example,
  22910. + # in the case of _POSIX_SOURCE, which is predefined and required
  22911. + # on some systems where configure will not decide to define it.
  22912. + if (defundef == "undef") {
  22913. + print "/*", prefix defundef, macro, "*/"
  22914. + next
  22915. + }
  22916. + }
  22917. +}
  22918. +{ print }
  22919. +_ACAWK
  22920. +_ACEOF
  22921. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22922. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  22923. +fi # test -n "$CONFIG_HEADERS"
  22924. +
  22925. +
  22926. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22927. +shift
  22928. +for ac_tag
  22929. +do
  22930. + case $ac_tag in
  22931. + :[FHLC]) ac_mode=$ac_tag; continue;;
  22932. + esac
  22933. + case $ac_mode$ac_tag in
  22934. + :[FHL]*:*);;
  22935. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22936. + :[FH]-) ac_tag=-:-;;
  22937. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22938. + esac
  22939. + ac_save_IFS=$IFS
  22940. + IFS=:
  22941. + set x $ac_tag
  22942. + IFS=$ac_save_IFS
  22943. + shift
  22944. + ac_file=$1
  22945. + shift
  22946. +
  22947. + case $ac_mode in
  22948. + :L) ac_source=$1;;
  22949. + :[FH])
  22950. + ac_file_inputs=
  22951. + for ac_f
  22952. + do
  22953. + case $ac_f in
  22954. + -) ac_f="$tmp/stdin";;
  22955. + *) # Look for the file first in the build tree, then in the source tree
  22956. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  22957. + # because $ac_f cannot contain `:'.
  22958. + test -f "$ac_f" ||
  22959. + case $ac_f in
  22960. + [\\/$]*) false;;
  22961. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22962. + esac ||
  22963. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22964. + esac
  22965. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22966. + as_fn_append ac_file_inputs " '$ac_f'"
  22967. + done
  22968. +
  22969. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  22970. + # use $as_me), people would be surprised to read:
  22971. + # /* config.h. Generated by config.status. */
  22972. + configure_input='Generated from '`
  22973. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22974. + `' by configure.'
  22975. + if test x"$ac_file" != x-; then
  22976. + configure_input="$ac_file. $configure_input"
  22977. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22978. +$as_echo "$as_me: creating $ac_file" >&6;}
  22979. + fi
  22980. + # Neutralize special characters interpreted by sed in replacement strings.
  22981. + case $configure_input in #(
  22982. + *\&* | *\|* | *\\* )
  22983. + ac_sed_conf_input=`$as_echo "$configure_input" |
  22984. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22985. + *) ac_sed_conf_input=$configure_input;;
  22986. + esac
  22987. +
  22988. + case $ac_tag in
  22989. + *:-:* | *:-) cat >"$tmp/stdin" \
  22990. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  22991. + esac
  22992. + ;;
  22993. + esac
  22994. +
  22995. + ac_dir=`$as_dirname -- "$ac_file" ||
  22996. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22997. + X"$ac_file" : 'X\(//\)[^/]' \| \
  22998. + X"$ac_file" : 'X\(//\)$' \| \
  22999. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23000. +$as_echo X"$ac_file" |
  23001. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23002. + s//\1/
  23003. + q
  23004. + }
  23005. + /^X\(\/\/\)[^/].*/{
  23006. + s//\1/
  23007. + q
  23008. + }
  23009. + /^X\(\/\/\)$/{
  23010. + s//\1/
  23011. + q
  23012. + }
  23013. + /^X\(\/\).*/{
  23014. + s//\1/
  23015. + q
  23016. + }
  23017. + s/.*/./; q'`
  23018. + as_dir="$ac_dir"; as_fn_mkdir_p
  23019. + ac_builddir=.
  23020. +
  23021. +case "$ac_dir" in
  23022. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23023. +*)
  23024. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23025. + # A ".." for each directory in $ac_dir_suffix.
  23026. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23027. + case $ac_top_builddir_sub in
  23028. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23029. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23030. + esac ;;
  23031. +esac
  23032. +ac_abs_top_builddir=$ac_pwd
  23033. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23034. +# for backward compatibility:
  23035. +ac_top_builddir=$ac_top_build_prefix
  23036. +
  23037. +case $srcdir in
  23038. + .) # We are building in place.
  23039. + ac_srcdir=.
  23040. + ac_top_srcdir=$ac_top_builddir_sub
  23041. + ac_abs_top_srcdir=$ac_pwd ;;
  23042. + [\\/]* | ?:[\\/]* ) # Absolute name.
  23043. + ac_srcdir=$srcdir$ac_dir_suffix;
  23044. + ac_top_srcdir=$srcdir
  23045. + ac_abs_top_srcdir=$srcdir ;;
  23046. + *) # Relative name.
  23047. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23048. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  23049. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23050. +esac
  23051. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23052. +
  23053. +
  23054. + case $ac_mode in
  23055. + :F)
  23056. + #
  23057. + # CONFIG_FILE
  23058. + #
  23059. +
  23060. + case $INSTALL in
  23061. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23062. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23063. + esac
  23064. + ac_MKDIR_P=$MKDIR_P
  23065. + case $MKDIR_P in
  23066. + [\\/$]* | ?:[\\/]* ) ;;
  23067. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  23068. + esac
  23069. +_ACEOF
  23070. +
  23071. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23072. +# If the template does not know about datarootdir, expand it.
  23073. +# FIXME: This hack should be removed a few years after 2.60.
  23074. +ac_datarootdir_hack=; ac_datarootdir_seen=
  23075. +ac_sed_dataroot='
  23076. +/datarootdir/ {
  23077. + p
  23078. + q
  23079. +}
  23080. +/@datadir@/p
  23081. +/@docdir@/p
  23082. +/@infodir@/p
  23083. +/@localedir@/p
  23084. +/@mandir@/p'
  23085. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23086. +*datarootdir*) ac_datarootdir_seen=yes;;
  23087. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23088. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23089. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23090. +_ACEOF
  23091. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23092. + ac_datarootdir_hack='
  23093. + s&@datadir@&$datadir&g
  23094. + s&@docdir@&$docdir&g
  23095. + s&@infodir@&$infodir&g
  23096. + s&@localedir@&$localedir&g
  23097. + s&@mandir@&$mandir&g
  23098. + s&\\\${datarootdir}&$datarootdir&g' ;;
  23099. +esac
  23100. +_ACEOF
  23101. +
  23102. +# Neutralize VPATH when `$srcdir' = `.'.
  23103. +# Shell code in configure.ac might set extrasub.
  23104. +# FIXME: do we really want to maintain this feature?
  23105. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23106. +ac_sed_extra="$ac_vpsub
  23107. +$extrasub
  23108. +_ACEOF
  23109. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23110. +:t
  23111. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23112. +s|@configure_input@|$ac_sed_conf_input|;t t
  23113. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  23114. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23115. +s&@srcdir@&$ac_srcdir&;t t
  23116. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23117. +s&@top_srcdir@&$ac_top_srcdir&;t t
  23118. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23119. +s&@builddir@&$ac_builddir&;t t
  23120. +s&@abs_builddir@&$ac_abs_builddir&;t t
  23121. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23122. +s&@INSTALL@&$ac_INSTALL&;t t
  23123. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  23124. +$ac_datarootdir_hack
  23125. +"
  23126. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  23127. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  23128. +
  23129. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23130. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  23131. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  23132. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23133. +which seems to be undefined. Please make sure it is defined." >&5
  23134. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23135. +which seems to be undefined. Please make sure it is defined." >&2;}
  23136. +
  23137. + rm -f "$tmp/stdin"
  23138. + case $ac_file in
  23139. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  23140. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  23141. + esac \
  23142. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  23143. + ;;
  23144. + :H)
  23145. + #
  23146. + # CONFIG_HEADER
  23147. + #
  23148. + if test x"$ac_file" != x-; then
  23149. + {
  23150. + $as_echo "/* $configure_input */" \
  23151. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  23152. + } >"$tmp/config.h" \
  23153. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  23154. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  23155. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23156. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  23157. + else
  23158. + rm -f "$ac_file"
  23159. + mv "$tmp/config.h" "$ac_file" \
  23160. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  23161. + fi
  23162. + else
  23163. + $as_echo "/* $configure_input */" \
  23164. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  23165. + || as_fn_error "could not create -" "$LINENO" 5
  23166. + fi
  23167. +# Compute "$ac_file"'s index in $config_headers.
  23168. +_am_arg="$ac_file"
  23169. +_am_stamp_count=1
  23170. +for _am_header in $config_headers :; do
  23171. + case $_am_header in
  23172. + $_am_arg | $_am_arg:* )
  23173. + break ;;
  23174. + * )
  23175. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23176. + esac
  23177. +done
  23178. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23179. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23180. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  23181. + X"$_am_arg" : 'X\(//\)$' \| \
  23182. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23183. +$as_echo X"$_am_arg" |
  23184. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23185. + s//\1/
  23186. + q
  23187. + }
  23188. + /^X\(\/\/\)[^/].*/{
  23189. + s//\1/
  23190. + q
  23191. + }
  23192. + /^X\(\/\/\)$/{
  23193. + s//\1/
  23194. + q
  23195. + }
  23196. + /^X\(\/\).*/{
  23197. + s//\1/
  23198. + q
  23199. + }
  23200. + s/.*/./; q'`/stamp-h$_am_stamp_count
  23201. + ;;
  23202. +
  23203. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23204. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  23205. + ;;
  23206. + esac
  23207. +
  23208. +
  23209. + case $ac_file$ac_mode in
  23210. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23211. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  23212. + # are listed without --file. Let's play safe and only enable the eval
  23213. + # if we detect the quoting.
  23214. + case $CONFIG_FILES in
  23215. + *\'*) eval set x "$CONFIG_FILES" ;;
  23216. + *) set x $CONFIG_FILES ;;
  23217. + esac
  23218. + shift
  23219. + for mf
  23220. + do
  23221. + # Strip MF so we end up with the name of the file.
  23222. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  23223. + # Check whether this is an Automake generated Makefile or not.
  23224. + # We used to match only the files named `Makefile.in', but
  23225. + # some people rename them; so instead we look at the file content.
  23226. + # Grep'ing the first line is not enough: some people post-process
  23227. + # each Makefile.in and add a new line on top of each file to say so.
  23228. + # Grep'ing the whole file is not good either: AIX grep has a line
  23229. + # limit of 2048, but all sed's we know have understand at least 4000.
  23230. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  23231. + dirpart=`$as_dirname -- "$mf" ||
  23232. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23233. + X"$mf" : 'X\(//\)[^/]' \| \
  23234. + X"$mf" : 'X\(//\)$' \| \
  23235. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  23236. +$as_echo X"$mf" |
  23237. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23238. + s//\1/
  23239. + q
  23240. + }
  23241. + /^X\(\/\/\)[^/].*/{
  23242. + s//\1/
  23243. + q
  23244. + }
  23245. + /^X\(\/\/\)$/{
  23246. + s//\1/
  23247. + q
  23248. + }
  23249. + /^X\(\/\).*/{
  23250. + s//\1/
  23251. + q
  23252. + }
  23253. + s/.*/./; q'`
  23254. + else
  23255. + continue
  23256. + fi
  23257. + # Extract the definition of DEPDIR, am__include, and am__quote
  23258. + # from the Makefile without running `make'.
  23259. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23260. + test -z "$DEPDIR" && continue
  23261. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23262. + test -z "am__include" && continue
  23263. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23264. + # When using ansi2knr, U may be empty or an underscore; expand it
  23265. + U=`sed -n 's/^U = //p' < "$mf"`
  23266. + # Find all dependency output files, they are included files with
  23267. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  23268. + # simplest approach to changing $(DEPDIR) to its actual value in the
  23269. + # expansion.
  23270. + for file in `sed -n "
  23271. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23272. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  23273. + # Make sure the directory exists.
  23274. + test -f "$dirpart/$file" && continue
  23275. + fdir=`$as_dirname -- "$file" ||
  23276. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23277. + X"$file" : 'X\(//\)[^/]' \| \
  23278. + X"$file" : 'X\(//\)$' \| \
  23279. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  23280. +$as_echo X"$file" |
  23281. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23282. + s//\1/
  23283. + q
  23284. + }
  23285. + /^X\(\/\/\)[^/].*/{
  23286. + s//\1/
  23287. + q
  23288. + }
  23289. + /^X\(\/\/\)$/{
  23290. + s//\1/
  23291. + q
  23292. + }
  23293. + /^X\(\/\).*/{
  23294. + s//\1/
  23295. + q
  23296. + }
  23297. + s/.*/./; q'`
  23298. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  23299. + # echo "creating $dirpart/$file"
  23300. + echo '# dummy' > "$dirpart/$file"
  23301. + done
  23302. + done
  23303. +}
  23304. + ;;
  23305. + "libtool":C)
  23306. +
  23307. + # See if we are running on zsh, and set the options which allow our
  23308. + # commands through without removal of \ escapes.
  23309. + if test -n "${ZSH_VERSION+set}" ; then
  23310. + setopt NO_GLOB_SUBST
  23311. + fi
  23312. +
  23313. + cfgfile="${ofile}T"
  23314. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23315. + $RM "$cfgfile"
  23316. +
  23317. + cat <<_LT_EOF >> "$cfgfile"
  23318. +#! $SHELL
  23319. +
  23320. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23321. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23322. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23323. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23324. +#
  23325. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23326. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  23327. +# Written by Gordon Matzigkeit, 1996
  23328. +#
  23329. +# This file is part of GNU Libtool.
  23330. +#
  23331. +# GNU Libtool is free software; you can redistribute it and/or
  23332. +# modify it under the terms of the GNU General Public License as
  23333. +# published by the Free Software Foundation; either version 2 of
  23334. +# the License, or (at your option) any later version.
  23335. +#
  23336. +# As a special exception to the GNU General Public License,
  23337. +# if you distribute this file as part of a program or library that
  23338. +# is built using GNU Libtool, you may include this file under the
  23339. +# same distribution terms that you use for the rest of that program.
  23340. +#
  23341. +# GNU Libtool is distributed in the hope that it will be useful,
  23342. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  23343. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23344. +# GNU General Public License for more details.
  23345. +#
  23346. +# You should have received a copy of the GNU General Public License
  23347. +# along with GNU Libtool; see the file COPYING. If not, a copy
  23348. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23349. +# obtained by writing to the Free Software Foundation, Inc.,
  23350. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23351. +
  23352. +
  23353. +# The names of the tagged configurations supported by this script.
  23354. +available_tags="CXX "
  23355. +
  23356. +# ### BEGIN LIBTOOL CONFIG
  23357. +
  23358. +# Whether or not to build static libraries.
  23359. +build_old_libs=$enable_static
  23360. +
  23361. +# Whether or not to build shared libraries.
  23362. +build_libtool_libs=$enable_shared
  23363. +
  23364. +# Which release of libtool.m4 was used?
  23365. +macro_version=$macro_version
  23366. +macro_revision=$macro_revision
  23367. +
  23368. +# What type of objects to build.
  23369. +pic_mode=$pic_mode
  23370. +
  23371. +# Whether or not to optimize for fast installation.
  23372. +fast_install=$enable_fast_install
  23373. +
  23374. +# The host system.
  23375. +host_alias=$host_alias
  23376. +host=$host
  23377. +host_os=$host_os
  23378. +
  23379. +# The build system.
  23380. +build_alias=$build_alias
  23381. +build=$build
  23382. +build_os=$build_os
  23383. +
  23384. +# A sed program that does not truncate output.
  23385. +SED=$lt_SED
  23386. +
  23387. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23388. +Xsed="\$SED -e 1s/^X//"
  23389. +
  23390. +# A grep program that handles long lines.
  23391. +GREP=$lt_GREP
  23392. +
  23393. +# An ERE matcher.
  23394. +EGREP=$lt_EGREP
  23395. +
  23396. +# A literal string matcher.
  23397. +FGREP=$lt_FGREP
  23398. +
  23399. +# A BSD- or MS-compatible name lister.
  23400. +NM=$lt_NM
  23401. +
  23402. +# Whether we need soft or hard links.
  23403. +LN_S=$lt_LN_S
  23404. +
  23405. +# What is the maximum length of a command?
  23406. +max_cmd_len=$max_cmd_len
  23407. +
  23408. +# Object file suffix (normally "o").
  23409. +objext=$ac_objext
  23410. +
  23411. +# Executable file suffix (normally "").
  23412. +exeext=$exeext
  23413. +
  23414. +# whether the shell understands "unset".
  23415. +lt_unset=$lt_unset
  23416. +
  23417. +# turn spaces into newlines.
  23418. +SP2NL=$lt_lt_SP2NL
  23419. +
  23420. +# turn newlines into spaces.
  23421. +NL2SP=$lt_lt_NL2SP
  23422. +
  23423. +# How to create reloadable object files.
  23424. +reload_flag=$lt_reload_flag
  23425. +reload_cmds=$lt_reload_cmds
  23426. +
  23427. +# An object symbol dumper.
  23428. +OBJDUMP=$lt_OBJDUMP
  23429. +
  23430. +# Method to check whether dependent libraries are shared objects.
  23431. +deplibs_check_method=$lt_deplibs_check_method
  23432. +
  23433. +# Command to use when deplibs_check_method == "file_magic".
  23434. +file_magic_cmd=$lt_file_magic_cmd
  23435. +
  23436. +# The archiver.
  23437. +AR=$lt_AR
  23438. +AR_FLAGS=$lt_AR_FLAGS
  23439. +
  23440. +# A symbol stripping program.
  23441. +STRIP=$lt_STRIP
  23442. +
  23443. +# Commands used to install an old-style archive.
  23444. +RANLIB=$lt_RANLIB
  23445. +old_postinstall_cmds=$lt_old_postinstall_cmds
  23446. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23447. +
  23448. +# A C compiler.
  23449. +LTCC=$lt_CC
  23450. +
  23451. +# LTCC compiler flags.
  23452. +LTCFLAGS=$lt_CFLAGS
  23453. +
  23454. +# Take the output of nm and produce a listing of raw symbols and C names.
  23455. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23456. +
  23457. +# Transform the output of nm in a proper C declaration.
  23458. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23459. +
  23460. +# Transform the output of nm in a C name address pair.
  23461. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23462. +
  23463. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  23464. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23465. +
  23466. +# The name of the directory that contains temporary libtool files.
  23467. +objdir=$objdir
  23468. +
  23469. +# Shell to use when invoking shell scripts.
  23470. +SHELL=$lt_SHELL
  23471. +
  23472. +# An echo program that does not interpret backslashes.
  23473. +ECHO=$lt_ECHO
  23474. +
  23475. +# Used to examine libraries when file_magic_cmd begins with "file".
  23476. +MAGIC_CMD=$MAGIC_CMD
  23477. +
  23478. +# Must we lock files when doing compilation?
  23479. +need_locks=$lt_need_locks
  23480. +
  23481. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23482. +DSYMUTIL=$lt_DSYMUTIL
  23483. +
  23484. +# Tool to change global to local symbols on Mac OS X.
  23485. +NMEDIT=$lt_NMEDIT
  23486. +
  23487. +# Tool to manipulate fat objects and archives on Mac OS X.
  23488. +LIPO=$lt_LIPO
  23489. +
  23490. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23491. +OTOOL=$lt_OTOOL
  23492. +
  23493. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23494. +OTOOL64=$lt_OTOOL64
  23495. +
  23496. +# Old archive suffix (normally "a").
  23497. +libext=$libext
  23498. +
  23499. +# Shared library suffix (normally ".so").
  23500. +shrext_cmds=$lt_shrext_cmds
  23501. +
  23502. +# The commands to extract the exported symbol list from a shared archive.
  23503. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23504. +
  23505. +# Variables whose values should be saved in libtool wrapper scripts and
  23506. +# restored at link time.
  23507. +variables_saved_for_relink=$lt_variables_saved_for_relink
  23508. +
  23509. +# Do we need the "lib" prefix for modules?
  23510. +need_lib_prefix=$need_lib_prefix
  23511. +
  23512. +# Do we need a version for libraries?
  23513. +need_version=$need_version
  23514. +
  23515. +# Library versioning type.
  23516. +version_type=$version_type
  23517. +
  23518. +# Shared library runtime path variable.
  23519. +runpath_var=$runpath_var
  23520. +
  23521. +# Shared library path variable.
  23522. +shlibpath_var=$shlibpath_var
  23523. +
  23524. +# Is shlibpath searched before the hard-coded library search path?
  23525. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23526. +
  23527. +# Format of library name prefix.
  23528. +libname_spec=$lt_libname_spec
  23529. +
  23530. +# List of archive names. First name is the real one, the rest are links.
  23531. +# The last name is the one that the linker finds with -lNAME
  23532. +library_names_spec=$lt_library_names_spec
  23533. +
  23534. +# The coded name of the library, if different from the real name.
  23535. +soname_spec=$lt_soname_spec
  23536. +
  23537. +# Command to use after installation of a shared archive.
  23538. +postinstall_cmds=$lt_postinstall_cmds
  23539. +
  23540. +# Command to use after uninstallation of a shared archive.
  23541. +postuninstall_cmds=$lt_postuninstall_cmds
  23542. +
  23543. +# Commands used to finish a libtool library installation in a directory.
  23544. +finish_cmds=$lt_finish_cmds
  23545. +
  23546. +# As "finish_cmds", except a single script fragment to be evaled but
  23547. +# not shown.
  23548. +finish_eval=$lt_finish_eval
  23549. +
  23550. +# Whether we should hardcode library paths into libraries.
  23551. +hardcode_into_libs=$hardcode_into_libs
  23552. +
  23553. +# Compile-time system search path for libraries.
  23554. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23555. +
  23556. +# Run-time system search path for libraries.
  23557. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23558. +
  23559. +# Whether dlopen is supported.
  23560. +dlopen_support=$enable_dlopen
  23561. +
  23562. +# Whether dlopen of programs is supported.
  23563. +dlopen_self=$enable_dlopen_self
  23564. +
  23565. +# Whether dlopen of statically linked programs is supported.
  23566. +dlopen_self_static=$enable_dlopen_self_static
  23567. +
  23568. +# Commands to strip libraries.
  23569. +old_striplib=$lt_old_striplib
  23570. +striplib=$lt_striplib
  23571. +
  23572. +
  23573. +# The linker used to build libraries.
  23574. +LD=$lt_LD
  23575. +
  23576. +# Commands used to build an old-style archive.
  23577. +old_archive_cmds=$lt_old_archive_cmds
  23578. +
  23579. +# A language specific compiler.
  23580. +CC=$lt_compiler
  23581. +
  23582. +# Is the compiler the GNU compiler?
  23583. +with_gcc=$GCC
  23584. +
  23585. +# Compiler flag to turn off builtin functions.
  23586. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23587. +
  23588. +# How to pass a linker flag through the compiler.
  23589. +wl=$lt_lt_prog_compiler_wl
  23590. +
  23591. +# Additional compiler flags for building library objects.
  23592. +pic_flag=$lt_lt_prog_compiler_pic
  23593. +
  23594. +# Compiler flag to prevent dynamic linking.
  23595. +link_static_flag=$lt_lt_prog_compiler_static
  23596. +
  23597. +# Does compiler simultaneously support -c and -o options?
  23598. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23599. +
  23600. +# Whether or not to add -lc for building shared libraries.
  23601. +build_libtool_need_lc=$archive_cmds_need_lc
  23602. +
  23603. +# Whether or not to disallow shared libs when runtime libs are static.
  23604. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23605. +
  23606. +# Compiler flag to allow reflexive dlopens.
  23607. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23608. +
  23609. +# Compiler flag to generate shared objects directly from archives.
  23610. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23611. +
  23612. +# Whether the compiler copes with passing no objects directly.
  23613. +compiler_needs_object=$lt_compiler_needs_object
  23614. +
  23615. +# Create an old-style archive from a shared archive.
  23616. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23617. +
  23618. +# Create a temporary old-style archive to link instead of a shared archive.
  23619. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23620. +
  23621. +# Commands used to build a shared archive.
  23622. +archive_cmds=$lt_archive_cmds
  23623. +archive_expsym_cmds=$lt_archive_expsym_cmds
  23624. +
  23625. +# Commands used to build a loadable module if different from building
  23626. +# a shared archive.
  23627. +module_cmds=$lt_module_cmds
  23628. +module_expsym_cmds=$lt_module_expsym_cmds
  23629. +
  23630. +# Whether we are building with GNU ld or not.
  23631. +with_gnu_ld=$lt_with_gnu_ld
  23632. +
  23633. +# Flag that allows shared libraries with undefined symbols to be built.
  23634. +allow_undefined_flag=$lt_allow_undefined_flag
  23635. +
  23636. +# Flag that enforces no undefined symbols.
  23637. +no_undefined_flag=$lt_no_undefined_flag
  23638. +
  23639. +# Flag to hardcode \$libdir into a binary during linking.
  23640. +# This must work even if \$libdir does not exist
  23641. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23642. +
  23643. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  23644. +# during linking. This must work even if \$libdir does not exist.
  23645. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  23646. +
  23647. +# Whether we need a single "-rpath" flag with a separated argument.
  23648. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23649. +
  23650. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23651. +# DIR into the resulting binary.
  23652. +hardcode_direct=$hardcode_direct
  23653. +
  23654. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23655. +# DIR into the resulting binary and the resulting library dependency is
  23656. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23657. +# library is relocated.
  23658. +hardcode_direct_absolute=$hardcode_direct_absolute
  23659. +
  23660. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23661. +# into the resulting binary.
  23662. +hardcode_minus_L=$hardcode_minus_L
  23663. +
  23664. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23665. +# into the resulting binary.
  23666. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  23667. +
  23668. +# Set to "yes" if building a shared library automatically hardcodes DIR
  23669. +# into the library and all subsequent libraries and executables linked
  23670. +# against it.
  23671. +hardcode_automatic=$hardcode_automatic
  23672. +
  23673. +# Set to yes if linker adds runtime paths of dependent libraries
  23674. +# to runtime path list.
  23675. +inherit_rpath=$inherit_rpath
  23676. +
  23677. +# Whether libtool must link a program against all its dependency libraries.
  23678. +link_all_deplibs=$link_all_deplibs
  23679. +
  23680. +# Fix the shell variable \$srcfile for the compiler.
  23681. +fix_srcfile_path=$lt_fix_srcfile_path
  23682. +
  23683. +# Set to "yes" if exported symbols are required.
  23684. +always_export_symbols=$always_export_symbols
  23685. +
  23686. +# The commands to list exported symbols.
  23687. +export_symbols_cmds=$lt_export_symbols_cmds
  23688. +
  23689. +# Symbols that should not be listed in the preloaded symbols.
  23690. +exclude_expsyms=$lt_exclude_expsyms
  23691. +
  23692. +# Symbols that must always be exported.
  23693. +include_expsyms=$lt_include_expsyms
  23694. +
  23695. +# Commands necessary for linking programs (against libraries) with templates.
  23696. +prelink_cmds=$lt_prelink_cmds
  23697. +
  23698. +# Specify filename containing input files.
  23699. +file_list_spec=$lt_file_list_spec
  23700. +
  23701. +# How to hardcode a shared library path into an executable.
  23702. +hardcode_action=$hardcode_action
  23703. +
  23704. +# The directories searched by this compiler when creating a shared library.
  23705. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23706. +
  23707. +# Dependencies to place before and after the objects being linked to
  23708. +# create a shared library.
  23709. +predep_objects=$lt_predep_objects
  23710. +postdep_objects=$lt_postdep_objects
  23711. +predeps=$lt_predeps
  23712. +postdeps=$lt_postdeps
  23713. +
  23714. +# The library search path used internally by the compiler when linking
  23715. +# a shared library.
  23716. +compiler_lib_search_path=$lt_compiler_lib_search_path
  23717. +
  23718. +# ### END LIBTOOL CONFIG
  23719. +
  23720. +_LT_EOF
  23721. +
  23722. + case $host_os in
  23723. + aix3*)
  23724. + cat <<\_LT_EOF >> "$cfgfile"
  23725. +# AIX sometimes has problems with the GCC collect2 program. For some
  23726. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  23727. +# vanish in a puff of smoke.
  23728. +if test "X${COLLECT_NAMES+set}" != Xset; then
  23729. + COLLECT_NAMES=
  23730. + export COLLECT_NAMES
  23731. +fi
  23732. +_LT_EOF
  23733. + ;;
  23734. + esac
  23735. +
  23736. +
  23737. +ltmain="$ac_aux_dir/ltmain.sh"
  23738. +
  23739. +
  23740. + # We use sed instead of cat because bash on DJGPP gets confused if
  23741. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23742. + # text mode, it properly converts lines to CR/LF. This bash problem
  23743. + # is reportedly fixed, but why not run on old versions too?
  23744. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  23745. + || (rm -f "$cfgfile"; exit 1)
  23746. +
  23747. + case $xsi_shell in
  23748. + yes)
  23749. + cat << \_LT_EOF >> "$cfgfile"
  23750. +
  23751. +# func_dirname file append nondir_replacement
  23752. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  23753. +# otherwise set result to NONDIR_REPLACEMENT.
  23754. +func_dirname ()
  23755. +{
  23756. + case ${1} in
  23757. + */*) func_dirname_result="${1%/*}${2}" ;;
  23758. + * ) func_dirname_result="${3}" ;;
  23759. + esac
  23760. +}
  23761. +
  23762. +# func_basename file
  23763. +func_basename ()
  23764. +{
  23765. + func_basename_result="${1##*/}"
  23766. +}
  23767. +
  23768. +# func_dirname_and_basename file append nondir_replacement
  23769. +# perform func_basename and func_dirname in a single function
  23770. +# call:
  23771. +# dirname: Compute the dirname of FILE. If nonempty,
  23772. +# add APPEND to the result, otherwise set result
  23773. +# to NONDIR_REPLACEMENT.
  23774. +# value returned in "$func_dirname_result"
  23775. +# basename: Compute filename of FILE.
  23776. +# value retuned in "$func_basename_result"
  23777. +# Implementation must be kept synchronized with func_dirname
  23778. +# and func_basename. For efficiency, we do not delegate to
  23779. +# those functions but instead duplicate the functionality here.
  23780. +func_dirname_and_basename ()
  23781. +{
  23782. + case ${1} in
  23783. + */*) func_dirname_result="${1%/*}${2}" ;;
  23784. + * ) func_dirname_result="${3}" ;;
  23785. + esac
  23786. + func_basename_result="${1##*/}"
  23787. +}
  23788. +
  23789. +# func_stripname prefix suffix name
  23790. +# strip PREFIX and SUFFIX off of NAME.
  23791. +# PREFIX and SUFFIX must not contain globbing or regex special
  23792. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  23793. +# dot (in which case that matches only a dot).
  23794. +func_stripname ()
  23795. +{
  23796. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  23797. + # positional parameters, so assign one to ordinary parameter first.
  23798. + func_stripname_result=${3}
  23799. + func_stripname_result=${func_stripname_result#"${1}"}
  23800. + func_stripname_result=${func_stripname_result%"${2}"}
  23801. +}
  23802. +
  23803. +# func_opt_split
  23804. +func_opt_split ()
  23805. +{
  23806. + func_opt_split_opt=${1%%=*}
  23807. + func_opt_split_arg=${1#*=}
  23808. +}
  23809. +
  23810. +# func_lo2o object
  23811. +func_lo2o ()
  23812. +{
  23813. + case ${1} in
  23814. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  23815. + *) func_lo2o_result=${1} ;;
  23816. + esac
  23817. +}
  23818. +
  23819. +# func_xform libobj-or-source
  23820. +func_xform ()
  23821. +{
  23822. + func_xform_result=${1%.*}.lo
  23823. +}
  23824. +
  23825. +# func_arith arithmetic-term...
  23826. +func_arith ()
  23827. +{
  23828. + func_arith_result=$(( $* ))
  23829. +}
  23830. +
  23831. +# func_len string
  23832. +# STRING may not start with a hyphen.
  23833. +func_len ()
  23834. +{
  23835. + func_len_result=${#1}
  23836. +}
  23837. +
  23838. +_LT_EOF
  23839. + ;;
  23840. + *) # Bourne compatible functions.
  23841. + cat << \_LT_EOF >> "$cfgfile"
  23842. +
  23843. +# func_dirname file append nondir_replacement
  23844. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  23845. +# otherwise set result to NONDIR_REPLACEMENT.
  23846. +func_dirname ()
  23847. +{
  23848. + # Extract subdirectory from the argument.
  23849. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  23850. + if test "X$func_dirname_result" = "X${1}"; then
  23851. + func_dirname_result="${3}"
  23852. + else
  23853. + func_dirname_result="$func_dirname_result${2}"
  23854. + fi
  23855. +}
  23856. +
  23857. +# func_basename file
  23858. +func_basename ()
  23859. +{
  23860. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  23861. +}
  23862. +
  23863. +
  23864. +# func_stripname prefix suffix name
  23865. +# strip PREFIX and SUFFIX off of NAME.
  23866. +# PREFIX and SUFFIX must not contain globbing or regex special
  23867. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  23868. +# dot (in which case that matches only a dot).
  23869. +# func_strip_suffix prefix name
  23870. +func_stripname ()
  23871. +{
  23872. + case ${2} in
  23873. + .*) func_stripname_result=`$ECHO "X${3}" \
  23874. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  23875. + *) func_stripname_result=`$ECHO "X${3}" \
  23876. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  23877. + esac
  23878. +}
  23879. +
  23880. +# sed scripts:
  23881. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  23882. +my_sed_long_arg='1s/^-[^=]*=//'
  23883. +
  23884. +# func_opt_split
  23885. +func_opt_split ()
  23886. +{
  23887. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  23888. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  23889. +}
  23890. +
  23891. +# func_lo2o object
  23892. +func_lo2o ()
  23893. +{
  23894. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  23895. +}
  23896. +
  23897. +# func_xform libobj-or-source
  23898. +func_xform ()
  23899. +{
  23900. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  23901. +}
  23902. +
  23903. +# func_arith arithmetic-term...
  23904. +func_arith ()
  23905. +{
  23906. + func_arith_result=`expr "$@"`
  23907. +}
  23908. +
  23909. +# func_len string
  23910. +# STRING may not start with a hyphen.
  23911. +func_len ()
  23912. +{
  23913. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  23914. +}
  23915. +
  23916. +_LT_EOF
  23917. +esac
  23918. +
  23919. +case $lt_shell_append in
  23920. + yes)
  23921. + cat << \_LT_EOF >> "$cfgfile"
  23922. +
  23923. +# func_append var value
  23924. +# Append VALUE to the end of shell variable VAR.
  23925. +func_append ()
  23926. +{
  23927. + eval "$1+=\$2"
  23928. +}
  23929. +_LT_EOF
  23930. + ;;
  23931. + *)
  23932. + cat << \_LT_EOF >> "$cfgfile"
  23933. +
  23934. +# func_append var value
  23935. +# Append VALUE to the end of shell variable VAR.
  23936. +func_append ()
  23937. +{
  23938. + eval "$1=\$$1\$2"
  23939. +}
  23940. +
  23941. +_LT_EOF
  23942. + ;;
  23943. + esac
  23944. +
  23945. +
  23946. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  23947. + || (rm -f "$cfgfile"; exit 1)
  23948. +
  23949. + mv -f "$cfgfile" "$ofile" ||
  23950. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23951. + chmod +x "$ofile"
  23952. +
  23953. +
  23954. + cat <<_LT_EOF >> "$ofile"
  23955. +
  23956. +# ### BEGIN LIBTOOL TAG CONFIG: CXX
  23957. +
  23958. +# The linker used to build libraries.
  23959. +LD=$lt_LD_CXX
  23960. +
  23961. +# Commands used to build an old-style archive.
  23962. +old_archive_cmds=$lt_old_archive_cmds_CXX
  23963. +
  23964. +# A language specific compiler.
  23965. +CC=$lt_compiler_CXX
  23966. +
  23967. +# Is the compiler the GNU compiler?
  23968. +with_gcc=$GCC_CXX
  23969. +
  23970. +# Compiler flag to turn off builtin functions.
  23971. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23972. +
  23973. +# How to pass a linker flag through the compiler.
  23974. +wl=$lt_lt_prog_compiler_wl_CXX
  23975. +
  23976. +# Additional compiler flags for building library objects.
  23977. +pic_flag=$lt_lt_prog_compiler_pic_CXX
  23978. +
  23979. +# Compiler flag to prevent dynamic linking.
  23980. +link_static_flag=$lt_lt_prog_compiler_static_CXX
  23981. +
  23982. +# Does compiler simultaneously support -c and -o options?
  23983. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23984. +
  23985. +# Whether or not to add -lc for building shared libraries.
  23986. +build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23987. +
  23988. +# Whether or not to disallow shared libs when runtime libs are static.
  23989. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23990. +
  23991. +# Compiler flag to allow reflexive dlopens.
  23992. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23993. +
  23994. +# Compiler flag to generate shared objects directly from archives.
  23995. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23996. +
  23997. +# Whether the compiler copes with passing no objects directly.
  23998. +compiler_needs_object=$lt_compiler_needs_object_CXX
  23999. +
  24000. +# Create an old-style archive from a shared archive.
  24001. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24002. +
  24003. +# Create a temporary old-style archive to link instead of a shared archive.
  24004. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24005. +
  24006. +# Commands used to build a shared archive.
  24007. +archive_cmds=$lt_archive_cmds_CXX
  24008. +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24009. +
  24010. +# Commands used to build a loadable module if different from building
  24011. +# a shared archive.
  24012. +module_cmds=$lt_module_cmds_CXX
  24013. +module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24014. +
  24015. +# Whether we are building with GNU ld or not.
  24016. +with_gnu_ld=$lt_with_gnu_ld_CXX
  24017. +
  24018. +# Flag that allows shared libraries with undefined symbols to be built.
  24019. +allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24020. +
  24021. +# Flag that enforces no undefined symbols.
  24022. +no_undefined_flag=$lt_no_undefined_flag_CXX
  24023. +
  24024. +# Flag to hardcode \$libdir into a binary during linking.
  24025. +# This must work even if \$libdir does not exist
  24026. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24027. +
  24028. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  24029. +# during linking. This must work even if \$libdir does not exist.
  24030. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  24031. +
  24032. +# Whether we need a single "-rpath" flag with a separated argument.
  24033. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24034. +
  24035. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24036. +# DIR into the resulting binary.
  24037. +hardcode_direct=$hardcode_direct_CXX
  24038. +
  24039. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24040. +# DIR into the resulting binary and the resulting library dependency is
  24041. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24042. +# library is relocated.
  24043. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24044. +
  24045. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24046. +# into the resulting binary.
  24047. +hardcode_minus_L=$hardcode_minus_L_CXX
  24048. +
  24049. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24050. +# into the resulting binary.
  24051. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24052. +
  24053. +# Set to "yes" if building a shared library automatically hardcodes DIR
  24054. +# into the library and all subsequent libraries and executables linked
  24055. +# against it.
  24056. +hardcode_automatic=$hardcode_automatic_CXX
  24057. +
  24058. +# Set to yes if linker adds runtime paths of dependent libraries
  24059. +# to runtime path list.
  24060. +inherit_rpath=$inherit_rpath_CXX
  24061. +
  24062. +# Whether libtool must link a program against all its dependency libraries.
  24063. +link_all_deplibs=$link_all_deplibs_CXX
  24064. +
  24065. +# Fix the shell variable \$srcfile for the compiler.
  24066. +fix_srcfile_path=$lt_fix_srcfile_path_CXX
  24067. +
  24068. +# Set to "yes" if exported symbols are required.
  24069. +always_export_symbols=$always_export_symbols_CXX
  24070. +
  24071. +# The commands to list exported symbols.
  24072. +export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24073. +
  24074. +# Symbols that should not be listed in the preloaded symbols.
  24075. +exclude_expsyms=$lt_exclude_expsyms_CXX
  24076. +
  24077. +# Symbols that must always be exported.
  24078. +include_expsyms=$lt_include_expsyms_CXX
  24079. +
  24080. +# Commands necessary for linking programs (against libraries) with templates.
  24081. +prelink_cmds=$lt_prelink_cmds_CXX
  24082. +
  24083. +# Specify filename containing input files.
  24084. +file_list_spec=$lt_file_list_spec_CXX
  24085. +
  24086. +# How to hardcode a shared library path into an executable.
  24087. +hardcode_action=$hardcode_action_CXX
  24088. +
  24089. +# The directories searched by this compiler when creating a shared library.
  24090. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24091. +
  24092. +# Dependencies to place before and after the objects being linked to
  24093. +# create a shared library.
  24094. +predep_objects=$lt_predep_objects_CXX
  24095. +postdep_objects=$lt_postdep_objects_CXX
  24096. +predeps=$lt_predeps_CXX
  24097. +postdeps=$lt_postdeps_CXX
  24098. +
  24099. +# The library search path used internally by the compiler when linking
  24100. +# a shared library.
  24101. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24102. +
  24103. +# ### END LIBTOOL TAG CONFIG: CXX
  24104. +_LT_EOF
  24105. +
  24106. + ;;
  24107. +
  24108. + esac
  24109. +done # for ac_tag
  24110. +
  24111. +
  24112. +as_fn_exit 0
  24113. +_ACEOF
  24114. +ac_clean_files=$ac_clean_files_save
  24115. +
  24116. +test $ac_write_fail = 0 ||
  24117. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24118. +
  24119. +
  24120. +# configure is writing to config.log, and then calls config.status.
  24121. +# config.status does its own redirection, appending to config.log.
  24122. +# Unfortunately, on DOS this fails, as config.log is still kept open
  24123. +# by configure, so config.status won't be able to write to it; its
  24124. +# output is simply discarded. So we exec the FD to /dev/null,
  24125. +# effectively closing config.log, so it can be properly (re)opened and
  24126. +# appended to by config.status. When coming back to configure, we
  24127. +# need to make the FD available again.
  24128. +if test "$no_create" != yes; then
  24129. + ac_cs_success=:
  24130. + ac_config_status_args=
  24131. + test "$silent" = yes &&
  24132. + ac_config_status_args="$ac_config_status_args --quiet"
  24133. + exec 5>/dev/null
  24134. + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24135. + exec 5>>config.log
  24136. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24137. + # would make configure fail if this is the last instruction.
  24138. + $ac_cs_success || as_fn_exit $?
  24139. +fi
  24140. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24141. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24142. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24143. +fi
  24144. +
  24145. diff -Nur tslib-1.0.orig/configure.ac tslib-1.0/configure.ac
  24146. --- tslib-1.0.orig/configure.ac 2006-08-24 23:02:55.000000000 +0200
  24147. +++ tslib-1.0/configure.ac 2010-07-29 13:39:15.000000000 +0200
  24148. @@ -71,7 +71,7 @@
  24149. AM_CONDITIONAL(ENABLE_DEJITTER_MODULE, test "$dejitter_module" = "yes")
  24150. AC_MSG_CHECKING([whether linear-h2200 module is requested])
  24151. -AC_ARG_ENABLE(dejitter,
  24152. +AC_ARG_ENABLE(linear-h2200,
  24153. AS_HELP_STRING([--enable-linear-h2200],
  24154. [Enable building of linearizing filter for iPAQ h2200 (default=yes)]),
  24155. [h2200_linear_module=$enableval],
  24156. diff -Nur tslib-1.0.orig/depcomp tslib-1.0/depcomp
  24157. --- tslib-1.0.orig/depcomp 1970-01-01 01:00:00.000000000 +0100
  24158. +++ tslib-1.0/depcomp 2010-07-29 13:39:15.000000000 +0200
  24159. @@ -0,0 +1,630 @@
  24160. +#! /bin/sh
  24161. +# depcomp - compile a program generating dependencies as side-effects
  24162. +
  24163. +scriptversion=2009-04-28.21; # UTC
  24164. +
  24165. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  24166. +# Software Foundation, Inc.
  24167. +
  24168. +# This program is free software; you can redistribute it and/or modify
  24169. +# it under the terms of the GNU General Public License as published by
  24170. +# the Free Software Foundation; either version 2, or (at your option)
  24171. +# any later version.
  24172. +
  24173. +# This program is distributed in the hope that it will be useful,
  24174. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  24175. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24176. +# GNU General Public License for more details.
  24177. +
  24178. +# You should have received a copy of the GNU General Public License
  24179. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  24180. +
  24181. +# As a special exception to the GNU General Public License, if you
  24182. +# distribute this file as part of a program that contains a
  24183. +# configuration script generated by Autoconf, you may include it under
  24184. +# the same distribution terms that you use for the rest of that program.
  24185. +
  24186. +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
  24187. +
  24188. +case $1 in
  24189. + '')
  24190. + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
  24191. + exit 1;
  24192. + ;;
  24193. + -h | --h*)
  24194. + cat <<\EOF
  24195. +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
  24196. +
  24197. +Run PROGRAMS ARGS to compile a file, generating dependencies
  24198. +as side-effects.
  24199. +
  24200. +Environment variables:
  24201. + depmode Dependency tracking mode.
  24202. + source Source file read by `PROGRAMS ARGS'.
  24203. + object Object file output by `PROGRAMS ARGS'.
  24204. + DEPDIR directory where to store dependencies.
  24205. + depfile Dependency file to output.
  24206. + tmpdepfile Temporary file to use when outputing dependencies.
  24207. + libtool Whether libtool is used (yes/no).
  24208. +
  24209. +Report bugs to <bug-automake@gnu.org>.
  24210. +EOF
  24211. + exit $?
  24212. + ;;
  24213. + -v | --v*)
  24214. + echo "depcomp $scriptversion"
  24215. + exit $?
  24216. + ;;
  24217. +esac
  24218. +
  24219. +if test -z "$depmode" || test -z "$source" || test -z "$object"; then
  24220. + echo "depcomp: Variables source, object and depmode must be set" 1>&2
  24221. + exit 1
  24222. +fi
  24223. +
  24224. +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
  24225. +depfile=${depfile-`echo "$object" |
  24226. + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
  24227. +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
  24228. +
  24229. +rm -f "$tmpdepfile"
  24230. +
  24231. +# Some modes work just like other modes, but use different flags. We
  24232. +# parameterize here, but still list the modes in the big case below,
  24233. +# to make depend.m4 easier to write. Note that we *cannot* use a case
  24234. +# here, because this file can only contain one case statement.
  24235. +if test "$depmode" = hp; then
  24236. + # HP compiler uses -M and no extra arg.
  24237. + gccflag=-M
  24238. + depmode=gcc
  24239. +fi
  24240. +
  24241. +if test "$depmode" = dashXmstdout; then
  24242. + # This is just like dashmstdout with a different argument.
  24243. + dashmflag=-xM
  24244. + depmode=dashmstdout
  24245. +fi
  24246. +
  24247. +cygpath_u="cygpath -u -f -"
  24248. +if test "$depmode" = msvcmsys; then
  24249. + # This is just like msvisualcpp but w/o cygpath translation.
  24250. + # Just convert the backslash-escaped backslashes to single forward
  24251. + # slashes to satisfy depend.m4
  24252. + cygpath_u="sed s,\\\\\\\\,/,g"
  24253. + depmode=msvisualcpp
  24254. +fi
  24255. +
  24256. +case "$depmode" in
  24257. +gcc3)
  24258. +## gcc 3 implements dependency tracking that does exactly what
  24259. +## we want. Yay! Note: for some reason libtool 1.4 doesn't like
  24260. +## it if -MD -MP comes after the -MF stuff. Hmm.
  24261. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon
  24262. +## the command line argument order; so add the flags where they
  24263. +## appear in depend2.am. Note that the slowdown incurred here
  24264. +## affects only configure: in makefiles, %FASTDEP% shortcuts this.
  24265. + for arg
  24266. + do
  24267. + case $arg in
  24268. + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
  24269. + *) set fnord "$@" "$arg" ;;
  24270. + esac
  24271. + shift # fnord
  24272. + shift # $arg
  24273. + done
  24274. + "$@"
  24275. + stat=$?
  24276. + if test $stat -eq 0; then :
  24277. + else
  24278. + rm -f "$tmpdepfile"
  24279. + exit $stat
  24280. + fi
  24281. + mv "$tmpdepfile" "$depfile"
  24282. + ;;
  24283. +
  24284. +gcc)
  24285. +## There are various ways to get dependency output from gcc. Here's
  24286. +## why we pick this rather obscure method:
  24287. +## - Don't want to use -MD because we'd like the dependencies to end
  24288. +## up in a subdir. Having to rename by hand is ugly.
  24289. +## (We might end up doing this anyway to support other compilers.)
  24290. +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
  24291. +## -MM, not -M (despite what the docs say).
  24292. +## - Using -M directly means running the compiler twice (even worse
  24293. +## than renaming).
  24294. + if test -z "$gccflag"; then
  24295. + gccflag=-MD,
  24296. + fi
  24297. + "$@" -Wp,"$gccflag$tmpdepfile"
  24298. + stat=$?
  24299. + if test $stat -eq 0; then :
  24300. + else
  24301. + rm -f "$tmpdepfile"
  24302. + exit $stat
  24303. + fi
  24304. + rm -f "$depfile"
  24305. + echo "$object : \\" > "$depfile"
  24306. + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
  24307. +## The second -e expression handles DOS-style file names with drive letters.
  24308. + sed -e 's/^[^:]*: / /' \
  24309. + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
  24310. +## This next piece of magic avoids the `deleted header file' problem.
  24311. +## The problem is that when a header file which appears in a .P file
  24312. +## is deleted, the dependency causes make to die (because there is
  24313. +## typically no way to rebuild the header). We avoid this by adding
  24314. +## dummy dependencies for each header file. Too bad gcc doesn't do
  24315. +## this for us directly.
  24316. + tr ' ' '
  24317. +' < "$tmpdepfile" |
  24318. +## Some versions of gcc put a space before the `:'. On the theory
  24319. +## that the space means something, we add a space to the output as
  24320. +## well.
  24321. +## Some versions of the HPUX 10.20 sed can't process this invocation
  24322. +## correctly. Breaking it into two sed invocations is a workaround.
  24323. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  24324. + rm -f "$tmpdepfile"
  24325. + ;;
  24326. +
  24327. +hp)
  24328. + # This case exists only to let depend.m4 do its work. It works by
  24329. + # looking at the text of this script. This case will never be run,
  24330. + # since it is checked for above.
  24331. + exit 1
  24332. + ;;
  24333. +
  24334. +sgi)
  24335. + if test "$libtool" = yes; then
  24336. + "$@" "-Wp,-MDupdate,$tmpdepfile"
  24337. + else
  24338. + "$@" -MDupdate "$tmpdepfile"
  24339. + fi
  24340. + stat=$?
  24341. + if test $stat -eq 0; then :
  24342. + else
  24343. + rm -f "$tmpdepfile"
  24344. + exit $stat
  24345. + fi
  24346. + rm -f "$depfile"
  24347. +
  24348. + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
  24349. + echo "$object : \\" > "$depfile"
  24350. +
  24351. + # Clip off the initial element (the dependent). Don't try to be
  24352. + # clever and replace this with sed code, as IRIX sed won't handle
  24353. + # lines with more than a fixed number of characters (4096 in
  24354. + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
  24355. + # the IRIX cc adds comments like `#:fec' to the end of the
  24356. + # dependency line.
  24357. + tr ' ' '
  24358. +' < "$tmpdepfile" \
  24359. + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  24360. + tr '
  24361. +' ' ' >> "$depfile"
  24362. + echo >> "$depfile"
  24363. +
  24364. + # The second pass generates a dummy entry for each header file.
  24365. + tr ' ' '
  24366. +' < "$tmpdepfile" \
  24367. + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  24368. + >> "$depfile"
  24369. + else
  24370. + # The sourcefile does not contain any dependencies, so just
  24371. + # store a dummy comment line, to avoid errors with the Makefile
  24372. + # "include basename.Plo" scheme.
  24373. + echo "#dummy" > "$depfile"
  24374. + fi
  24375. + rm -f "$tmpdepfile"
  24376. + ;;
  24377. +
  24378. +aix)
  24379. + # The C for AIX Compiler uses -M and outputs the dependencies
  24380. + # in a .u file. In older versions, this file always lives in the
  24381. + # current directory. Also, the AIX compiler puts `$object:' at the
  24382. + # start of each line; $object doesn't have directory information.
  24383. + # Version 6 uses the directory in both cases.
  24384. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  24385. + test "x$dir" = "x$object" && dir=
  24386. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  24387. + if test "$libtool" = yes; then
  24388. + tmpdepfile1=$dir$base.u
  24389. + tmpdepfile2=$base.u
  24390. + tmpdepfile3=$dir.libs/$base.u
  24391. + "$@" -Wc,-M
  24392. + else
  24393. + tmpdepfile1=$dir$base.u
  24394. + tmpdepfile2=$dir$base.u
  24395. + tmpdepfile3=$dir$base.u
  24396. + "$@" -M
  24397. + fi
  24398. + stat=$?
  24399. +
  24400. + if test $stat -eq 0; then :
  24401. + else
  24402. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  24403. + exit $stat
  24404. + fi
  24405. +
  24406. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  24407. + do
  24408. + test -f "$tmpdepfile" && break
  24409. + done
  24410. + if test -f "$tmpdepfile"; then
  24411. + # Each line is of the form `foo.o: dependent.h'.
  24412. + # Do two passes, one to just change these to
  24413. + # `$object: dependent.h' and one to simply `dependent.h:'.
  24414. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  24415. + # That's a tab and a space in the [].
  24416. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  24417. + else
  24418. + # The sourcefile does not contain any dependencies, so just
  24419. + # store a dummy comment line, to avoid errors with the Makefile
  24420. + # "include basename.Plo" scheme.
  24421. + echo "#dummy" > "$depfile"
  24422. + fi
  24423. + rm -f "$tmpdepfile"
  24424. + ;;
  24425. +
  24426. +icc)
  24427. + # Intel's C compiler understands `-MD -MF file'. However on
  24428. + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
  24429. + # ICC 7.0 will fill foo.d with something like
  24430. + # foo.o: sub/foo.c
  24431. + # foo.o: sub/foo.h
  24432. + # which is wrong. We want:
  24433. + # sub/foo.o: sub/foo.c
  24434. + # sub/foo.o: sub/foo.h
  24435. + # sub/foo.c:
  24436. + # sub/foo.h:
  24437. + # ICC 7.1 will output
  24438. + # foo.o: sub/foo.c sub/foo.h
  24439. + # and will wrap long lines using \ :
  24440. + # foo.o: sub/foo.c ... \
  24441. + # sub/foo.h ... \
  24442. + # ...
  24443. +
  24444. + "$@" -MD -MF "$tmpdepfile"
  24445. + stat=$?
  24446. + if test $stat -eq 0; then :
  24447. + else
  24448. + rm -f "$tmpdepfile"
  24449. + exit $stat
  24450. + fi
  24451. + rm -f "$depfile"
  24452. + # Each line is of the form `foo.o: dependent.h',
  24453. + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
  24454. + # Do two passes, one to just change these to
  24455. + # `$object: dependent.h' and one to simply `dependent.h:'.
  24456. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
  24457. + # Some versions of the HPUX 10.20 sed can't process this invocation
  24458. + # correctly. Breaking it into two sed invocations is a workaround.
  24459. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
  24460. + sed -e 's/$/ :/' >> "$depfile"
  24461. + rm -f "$tmpdepfile"
  24462. + ;;
  24463. +
  24464. +hp2)
  24465. + # The "hp" stanza above does not work with aCC (C++) and HP's ia64
  24466. + # compilers, which have integrated preprocessors. The correct option
  24467. + # to use with these is +Maked; it writes dependencies to a file named
  24468. + # 'foo.d', which lands next to the object file, wherever that
  24469. + # happens to be.
  24470. + # Much of this is similar to the tru64 case; see comments there.
  24471. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  24472. + test "x$dir" = "x$object" && dir=
  24473. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  24474. + if test "$libtool" = yes; then
  24475. + tmpdepfile1=$dir$base.d
  24476. + tmpdepfile2=$dir.libs/$base.d
  24477. + "$@" -Wc,+Maked
  24478. + else
  24479. + tmpdepfile1=$dir$base.d
  24480. + tmpdepfile2=$dir$base.d
  24481. + "$@" +Maked
  24482. + fi
  24483. + stat=$?
  24484. + if test $stat -eq 0; then :
  24485. + else
  24486. + rm -f "$tmpdepfile1" "$tmpdepfile2"
  24487. + exit $stat
  24488. + fi
  24489. +
  24490. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
  24491. + do
  24492. + test -f "$tmpdepfile" && break
  24493. + done
  24494. + if test -f "$tmpdepfile"; then
  24495. + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  24496. + # Add `dependent.h:' lines.
  24497. + sed -ne '2,${
  24498. + s/^ *//
  24499. + s/ \\*$//
  24500. + s/$/:/
  24501. + p
  24502. + }' "$tmpdepfile" >> "$depfile"
  24503. + else
  24504. + echo "#dummy" > "$depfile"
  24505. + fi
  24506. + rm -f "$tmpdepfile" "$tmpdepfile2"
  24507. + ;;
  24508. +
  24509. +tru64)
  24510. + # The Tru64 compiler uses -MD to generate dependencies as a side
  24511. + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
  24512. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
  24513. + # dependencies in `foo.d' instead, so we check for that too.
  24514. + # Subdirectories are respected.
  24515. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  24516. + test "x$dir" = "x$object" && dir=
  24517. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  24518. +
  24519. + if test "$libtool" = yes; then
  24520. + # With Tru64 cc, shared objects can also be used to make a
  24521. + # static library. This mechanism is used in libtool 1.4 series to
  24522. + # handle both shared and static libraries in a single compilation.
  24523. + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
  24524. + #
  24525. + # With libtool 1.5 this exception was removed, and libtool now
  24526. + # generates 2 separate objects for the 2 libraries. These two
  24527. + # compilations output dependencies in $dir.libs/$base.o.d and
  24528. + # in $dir$base.o.d. We have to check for both files, because
  24529. + # one of the two compilations can be disabled. We should prefer
  24530. + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
  24531. + # automatically cleaned when .libs/ is deleted, while ignoring
  24532. + # the former would cause a distcleancheck panic.
  24533. + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
  24534. + tmpdepfile2=$dir$base.o.d # libtool 1.5
  24535. + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
  24536. + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
  24537. + "$@" -Wc,-MD
  24538. + else
  24539. + tmpdepfile1=$dir$base.o.d
  24540. + tmpdepfile2=$dir$base.d
  24541. + tmpdepfile3=$dir$base.d
  24542. + tmpdepfile4=$dir$base.d
  24543. + "$@" -MD
  24544. + fi
  24545. +
  24546. + stat=$?
  24547. + if test $stat -eq 0; then :
  24548. + else
  24549. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  24550. + exit $stat
  24551. + fi
  24552. +
  24553. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  24554. + do
  24555. + test -f "$tmpdepfile" && break
  24556. + done
  24557. + if test -f "$tmpdepfile"; then
  24558. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  24559. + # That's a tab and a space in the [].
  24560. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  24561. + else
  24562. + echo "#dummy" > "$depfile"
  24563. + fi
  24564. + rm -f "$tmpdepfile"
  24565. + ;;
  24566. +
  24567. +#nosideeffect)
  24568. + # This comment above is used by automake to tell side-effect
  24569. + # dependency tracking mechanisms from slower ones.
  24570. +
  24571. +dashmstdout)
  24572. + # Important note: in order to support this mode, a compiler *must*
  24573. + # always write the preprocessed file to stdout, regardless of -o.
  24574. + "$@" || exit $?
  24575. +
  24576. + # Remove the call to Libtool.
  24577. + if test "$libtool" = yes; then
  24578. + while test "X$1" != 'X--mode=compile'; do
  24579. + shift
  24580. + done
  24581. + shift
  24582. + fi
  24583. +
  24584. + # Remove `-o $object'.
  24585. + IFS=" "
  24586. + for arg
  24587. + do
  24588. + case $arg in
  24589. + -o)
  24590. + shift
  24591. + ;;
  24592. + $object)
  24593. + shift
  24594. + ;;
  24595. + *)
  24596. + set fnord "$@" "$arg"
  24597. + shift # fnord
  24598. + shift # $arg
  24599. + ;;
  24600. + esac
  24601. + done
  24602. +
  24603. + test -z "$dashmflag" && dashmflag=-M
  24604. + # Require at least two characters before searching for `:'
  24605. + # in the target name. This is to cope with DOS-style filenames:
  24606. + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
  24607. + "$@" $dashmflag |
  24608. + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
  24609. + rm -f "$depfile"
  24610. + cat < "$tmpdepfile" > "$depfile"
  24611. + tr ' ' '
  24612. +' < "$tmpdepfile" | \
  24613. +## Some versions of the HPUX 10.20 sed can't process this invocation
  24614. +## correctly. Breaking it into two sed invocations is a workaround.
  24615. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  24616. + rm -f "$tmpdepfile"
  24617. + ;;
  24618. +
  24619. +dashXmstdout)
  24620. + # This case only exists to satisfy depend.m4. It is never actually
  24621. + # run, as this mode is specially recognized in the preamble.
  24622. + exit 1
  24623. + ;;
  24624. +
  24625. +makedepend)
  24626. + "$@" || exit $?
  24627. + # Remove any Libtool call
  24628. + if test "$libtool" = yes; then
  24629. + while test "X$1" != 'X--mode=compile'; do
  24630. + shift
  24631. + done
  24632. + shift
  24633. + fi
  24634. + # X makedepend
  24635. + shift
  24636. + cleared=no eat=no
  24637. + for arg
  24638. + do
  24639. + case $cleared in
  24640. + no)
  24641. + set ""; shift
  24642. + cleared=yes ;;
  24643. + esac
  24644. + if test $eat = yes; then
  24645. + eat=no
  24646. + continue
  24647. + fi
  24648. + case "$arg" in
  24649. + -D*|-I*)
  24650. + set fnord "$@" "$arg"; shift ;;
  24651. + # Strip any option that makedepend may not understand. Remove
  24652. + # the object too, otherwise makedepend will parse it as a source file.
  24653. + -arch)
  24654. + eat=yes ;;
  24655. + -*|$object)
  24656. + ;;
  24657. + *)
  24658. + set fnord "$@" "$arg"; shift ;;
  24659. + esac
  24660. + done
  24661. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  24662. + touch "$tmpdepfile"
  24663. + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  24664. + rm -f "$depfile"
  24665. + cat < "$tmpdepfile" > "$depfile"
  24666. + sed '1,2d' "$tmpdepfile" | tr ' ' '
  24667. +' | \
  24668. +## Some versions of the HPUX 10.20 sed can't process this invocation
  24669. +## correctly. Breaking it into two sed invocations is a workaround.
  24670. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  24671. + rm -f "$tmpdepfile" "$tmpdepfile".bak
  24672. + ;;
  24673. +
  24674. +cpp)
  24675. + # Important note: in order to support this mode, a compiler *must*
  24676. + # always write the preprocessed file to stdout.
  24677. + "$@" || exit $?
  24678. +
  24679. + # Remove the call to Libtool.
  24680. + if test "$libtool" = yes; then
  24681. + while test "X$1" != 'X--mode=compile'; do
  24682. + shift
  24683. + done
  24684. + shift
  24685. + fi
  24686. +
  24687. + # Remove `-o $object'.
  24688. + IFS=" "
  24689. + for arg
  24690. + do
  24691. + case $arg in
  24692. + -o)
  24693. + shift
  24694. + ;;
  24695. + $object)
  24696. + shift
  24697. + ;;
  24698. + *)
  24699. + set fnord "$@" "$arg"
  24700. + shift # fnord
  24701. + shift # $arg
  24702. + ;;
  24703. + esac
  24704. + done
  24705. +
  24706. + "$@" -E |
  24707. + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
  24708. + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
  24709. + sed '$ s: \\$::' > "$tmpdepfile"
  24710. + rm -f "$depfile"
  24711. + echo "$object : \\" > "$depfile"
  24712. + cat < "$tmpdepfile" >> "$depfile"
  24713. + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
  24714. + rm -f "$tmpdepfile"
  24715. + ;;
  24716. +
  24717. +msvisualcpp)
  24718. + # Important note: in order to support this mode, a compiler *must*
  24719. + # always write the preprocessed file to stdout.
  24720. + "$@" || exit $?
  24721. +
  24722. + # Remove the call to Libtool.
  24723. + if test "$libtool" = yes; then
  24724. + while test "X$1" != 'X--mode=compile'; do
  24725. + shift
  24726. + done
  24727. + shift
  24728. + fi
  24729. +
  24730. + IFS=" "
  24731. + for arg
  24732. + do
  24733. + case "$arg" in
  24734. + -o)
  24735. + shift
  24736. + ;;
  24737. + $object)
  24738. + shift
  24739. + ;;
  24740. + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  24741. + set fnord "$@"
  24742. + shift
  24743. + shift
  24744. + ;;
  24745. + *)
  24746. + set fnord "$@" "$arg"
  24747. + shift
  24748. + shift
  24749. + ;;
  24750. + esac
  24751. + done
  24752. + "$@" -E 2>/dev/null |
  24753. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  24754. + rm -f "$depfile"
  24755. + echo "$object : \\" > "$depfile"
  24756. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  24757. + echo " " >> "$depfile"
  24758. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  24759. + rm -f "$tmpdepfile"
  24760. + ;;
  24761. +
  24762. +msvcmsys)
  24763. + # This case exists only to let depend.m4 do its work. It works by
  24764. + # looking at the text of this script. This case will never be run,
  24765. + # since it is checked for above.
  24766. + exit 1
  24767. + ;;
  24768. +
  24769. +none)
  24770. + exec "$@"
  24771. + ;;
  24772. +
  24773. +*)
  24774. + echo "Unknown depmode $depmode" 1>&2
  24775. + exit 1
  24776. + ;;
  24777. +esac
  24778. +
  24779. +exit 0
  24780. +
  24781. +# Local Variables:
  24782. +# mode: shell-script
  24783. +# sh-indentation: 2
  24784. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  24785. +# time-stamp-start: "scriptversion="
  24786. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  24787. +# time-stamp-time-zone: "UTC"
  24788. +# time-stamp-end: "; # UTC"
  24789. +# End:
  24790. diff -Nur tslib-1.0.orig/etc/Makefile.in tslib-1.0/etc/Makefile.in
  24791. --- tslib-1.0.orig/etc/Makefile.in 1970-01-01 01:00:00.000000000 +0100
  24792. +++ tslib-1.0/etc/Makefile.in 2010-07-29 13:39:38.000000000 +0200
  24793. @@ -0,0 +1,430 @@
  24794. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  24795. +# @configure_input@
  24796. +
  24797. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  24798. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  24799. +# Inc.
  24800. +# This Makefile.in is free software; the Free Software Foundation
  24801. +# gives unlimited permission to copy and/or distribute it,
  24802. +# with or without modifications, as long as this notice is preserved.
  24803. +
  24804. +# This program is distributed in the hope that it will be useful,
  24805. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  24806. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  24807. +# PARTICULAR PURPOSE.
  24808. +
  24809. +@SET_MAKE@
  24810. +
  24811. +#
  24812. +# etc/Makefile.am
  24813. +#
  24814. +# Copyright (C) 2001 Russell King.
  24815. +#
  24816. +# This file is placed under the LGPL. Please see the file
  24817. +# COPYING for more details.
  24818. +#
  24819. +# $Id: Makefile.am,v 1.1.1.1 2001/12/22 21:12:06 rmk Exp $
  24820. +#
  24821. +
  24822. +VPATH = @srcdir@
  24823. +pkgdatadir = $(datadir)/@PACKAGE@
  24824. +pkgincludedir = $(includedir)/@PACKAGE@
  24825. +pkglibdir = $(libdir)/@PACKAGE@
  24826. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  24827. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  24828. +install_sh_DATA = $(install_sh) -c -m 644
  24829. +install_sh_PROGRAM = $(install_sh) -c
  24830. +install_sh_SCRIPT = $(install_sh) -c
  24831. +INSTALL_HEADER = $(INSTALL_DATA)
  24832. +transform = $(program_transform_name)
  24833. +NORMAL_INSTALL = :
  24834. +PRE_INSTALL = :
  24835. +POST_INSTALL = :
  24836. +NORMAL_UNINSTALL = :
  24837. +PRE_UNINSTALL = :
  24838. +POST_UNINSTALL = :
  24839. +build_triplet = @build@
  24840. +host_triplet = @host@
  24841. +subdir = etc
  24842. +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  24843. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  24844. +am__aclocal_m4_deps = $(top_srcdir)/m4/internal/libtool.m4 \
  24845. + $(top_srcdir)/m4/internal/ltoptions.m4 \
  24846. + $(top_srcdir)/m4/internal/ltsugar.m4 \
  24847. + $(top_srcdir)/m4/internal/ltversion.m4 \
  24848. + $(top_srcdir)/m4/internal/lt~obsolete.m4 \
  24849. + $(top_srcdir)/m4/internal/visibility.m4 \
  24850. + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  24851. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  24852. + $(ACLOCAL_M4)
  24853. +mkinstalldirs = $(install_sh) -d
  24854. +CONFIG_HEADER = $(top_builddir)/config.h
  24855. +CONFIG_CLEAN_FILES =
  24856. +CONFIG_CLEAN_VPATH_FILES =
  24857. +SOURCES =
  24858. +DIST_SOURCES =
  24859. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  24860. +am__vpath_adj = case $$p in \
  24861. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  24862. + *) f=$$p;; \
  24863. + esac;
  24864. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  24865. +am__install_max = 40
  24866. +am__nobase_strip_setup = \
  24867. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  24868. +am__nobase_strip = \
  24869. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  24870. +am__nobase_list = $(am__nobase_strip_setup); \
  24871. + for p in $$list; do echo "$$p $$p"; done | \
  24872. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  24873. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  24874. + if (++n[$$2] == $(am__install_max)) \
  24875. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  24876. + END { for (dir in files) print dir, files[dir] }'
  24877. +am__base_list = \
  24878. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  24879. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  24880. +am__installdirs = "$(DESTDIR)$(sysconfdir)"
  24881. +DATA = $(sysconf_DATA)
  24882. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  24883. +ACLOCAL = @ACLOCAL@
  24884. +ALLOCA = @ALLOCA@
  24885. +AMTAR = @AMTAR@
  24886. +AR = @AR@
  24887. +AUTOCONF = @AUTOCONF@
  24888. +AUTOHEADER = @AUTOHEADER@
  24889. +AUTOMAKE = @AUTOMAKE@
  24890. +AWK = @AWK@
  24891. +CC = @CC@
  24892. +CCDEPMODE = @CCDEPMODE@
  24893. +CFLAGS = @CFLAGS@
  24894. +CPP = @CPP@
  24895. +CPPFLAGS = @CPPFLAGS@
  24896. +CXX = @CXX@
  24897. +CXXCPP = @CXXCPP@
  24898. +CXXDEPMODE = @CXXDEPMODE@
  24899. +CXXFLAGS = @CXXFLAGS@
  24900. +CYGPATH_W = @CYGPATH_W@
  24901. +DEBUGFLAGS = @DEBUGFLAGS@
  24902. +DEFS = @DEFS@
  24903. +DEPDIR = @DEPDIR@
  24904. +DSYMUTIL = @DSYMUTIL@
  24905. +DUMPBIN = @DUMPBIN@
  24906. +ECHO_C = @ECHO_C@
  24907. +ECHO_N = @ECHO_N@
  24908. +ECHO_T = @ECHO_T@
  24909. +EGREP = @EGREP@
  24910. +EXEEXT = @EXEEXT@
  24911. +FGREP = @FGREP@
  24912. +GREP = @GREP@
  24913. +INSTALL = @INSTALL@
  24914. +INSTALL_DATA = @INSTALL_DATA@
  24915. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  24916. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  24917. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  24918. +LD = @LD@
  24919. +LDFLAGS = @LDFLAGS@
  24920. +LIBFLAGS = @LIBFLAGS@
  24921. +LIBOBJS = @LIBOBJS@
  24922. +LIBS = @LIBS@
  24923. +LIBTOOL = @LIBTOOL@
  24924. +LIPO = @LIPO@
  24925. +LN_S = @LN_S@
  24926. +LTLIBOBJS = @LTLIBOBJS@
  24927. +LT_AGE = @LT_AGE@
  24928. +LT_CURRENT = @LT_CURRENT@
  24929. +LT_RELEASE = @LT_RELEASE@
  24930. +LT_REVISION = @LT_REVISION@
  24931. +MAKEINFO = @MAKEINFO@
  24932. +MKDIR_P = @MKDIR_P@
  24933. +NM = @NM@
  24934. +NMEDIT = @NMEDIT@
  24935. +OBJDUMP = @OBJDUMP@
  24936. +OBJEXT = @OBJEXT@
  24937. +OTOOL = @OTOOL@
  24938. +OTOOL64 = @OTOOL64@
  24939. +PACKAGE = @PACKAGE@
  24940. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  24941. +PACKAGE_DESCRIPTION = @PACKAGE_DESCRIPTION@
  24942. +PACKAGE_NAME = @PACKAGE_NAME@
  24943. +PACKAGE_STRING = @PACKAGE_STRING@
  24944. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  24945. +PACKAGE_URL = @PACKAGE_URL@
  24946. +PACKAGE_VERSION = @PACKAGE_VERSION@
  24947. +PATH_SEPARATOR = @PATH_SEPARATOR@
  24948. +PLUGIN_DIR = @PLUGIN_DIR@
  24949. +RANLIB = @RANLIB@
  24950. +SED = @SED@
  24951. +SET_MAKE = @SET_MAKE@
  24952. +SHELL = @SHELL@
  24953. +STRIP = @STRIP@
  24954. +TS_CONF = @TS_CONF@
  24955. +VERSION = @VERSION@
  24956. +VIS_CFLAGS = @VIS_CFLAGS@
  24957. +abs_builddir = @abs_builddir@
  24958. +abs_srcdir = @abs_srcdir@
  24959. +abs_top_builddir = @abs_top_builddir@
  24960. +abs_top_srcdir = @abs_top_srcdir@
  24961. +ac_ct_CC = @ac_ct_CC@
  24962. +ac_ct_CXX = @ac_ct_CXX@
  24963. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  24964. +am__include = @am__include@
  24965. +am__leading_dot = @am__leading_dot@
  24966. +am__quote = @am__quote@
  24967. +am__tar = @am__tar@
  24968. +am__untar = @am__untar@
  24969. +bindir = @bindir@
  24970. +build = @build@
  24971. +build_alias = @build_alias@
  24972. +build_cpu = @build_cpu@
  24973. +build_os = @build_os@
  24974. +build_vendor = @build_vendor@
  24975. +builddir = @builddir@
  24976. +datadir = @datadir@
  24977. +datarootdir = @datarootdir@
  24978. +docdir = @docdir@
  24979. +dvidir = @dvidir@
  24980. +exec_prefix = @exec_prefix@
  24981. +host = @host@
  24982. +host_alias = @host_alias@
  24983. +host_cpu = @host_cpu@
  24984. +host_os = @host_os@
  24985. +host_vendor = @host_vendor@
  24986. +htmldir = @htmldir@
  24987. +includedir = @includedir@
  24988. +infodir = @infodir@
  24989. +install_sh = @install_sh@
  24990. +libdir = @libdir@
  24991. +libexecdir = @libexecdir@
  24992. +localedir = @localedir@
  24993. +localstatedir = @localstatedir@
  24994. +lt_ECHO = @lt_ECHO@
  24995. +mandir = @mandir@
  24996. +mkdir_p = @mkdir_p@
  24997. +oldincludedir = @oldincludedir@
  24998. +pdfdir = @pdfdir@
  24999. +prefix = @prefix@
  25000. +program_transform_name = @program_transform_name@
  25001. +psdir = @psdir@
  25002. +sbindir = @sbindir@
  25003. +sharedstatedir = @sharedstatedir@
  25004. +srcdir = @srcdir@
  25005. +sysconfdir = @sysconfdir@
  25006. +target_alias = @target_alias@
  25007. +top_build_prefix = @top_build_prefix@
  25008. +top_builddir = @top_builddir@
  25009. +top_srcdir = @top_srcdir@
  25010. +sysconf_DATA = ts.conf
  25011. +EXTRA_DIST = $(sysconf_DATA)
  25012. +all: all-am
  25013. +
  25014. +.SUFFIXES:
  25015. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  25016. + @for dep in $?; do \
  25017. + case '$(am__configure_deps)' in \
  25018. + *$$dep*) \
  25019. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  25020. + && { if test -f $@; then exit 0; else break; fi; }; \
  25021. + exit 1;; \
  25022. + esac; \
  25023. + done; \
  25024. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu etc/Makefile'; \
  25025. + $(am__cd) $(top_srcdir) && \
  25026. + $(AUTOMAKE) --gnu etc/Makefile
  25027. +.PRECIOUS: Makefile
  25028. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  25029. + @case '$?' in \
  25030. + *config.status*) \
  25031. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  25032. + *) \
  25033. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  25034. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  25035. + esac;
  25036. +
  25037. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  25038. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  25039. +
  25040. +$(top_srcdir)/configure: $(am__configure_deps)
  25041. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  25042. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  25043. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  25044. +$(am__aclocal_m4_deps):
  25045. +
  25046. +mostlyclean-libtool:
  25047. + -rm -f *.lo
  25048. +
  25049. +clean-libtool:
  25050. + -rm -rf .libs _libs
  25051. +install-sysconfDATA: $(sysconf_DATA)
  25052. + @$(NORMAL_INSTALL)
  25053. + #test -z "$(sysconfdir)" || $(MKDIR_P) "$(DESTDIR)$(sysconfdir)"
  25054. + @list='$(sysconf_DATA)'; test -n "$(sysconfdir)" || list=; \
  25055. + for p in $$list; do \
  25056. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  25057. + echo "$$d$$p"; \
  25058. + done | $(am__base_list) | \
  25059. + while read files; do \
  25060. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(sysconfdir)'"; \
  25061. + $(INSTALL_DATA) $$files "$(DESTDIR)$(sysconfdir)" || exit $$?; \
  25062. + done
  25063. +
  25064. +uninstall-sysconfDATA:
  25065. + @$(NORMAL_UNINSTALL)
  25066. + @list='$(sysconf_DATA)'; test -n "$(sysconfdir)" || list=; \
  25067. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  25068. + test -n "$$files" || exit 0; \
  25069. + echo " ( cd '$(DESTDIR)$(sysconfdir)' && rm -f" $$files ")"; \
  25070. + cd "$(DESTDIR)$(sysconfdir)" && rm -f $$files
  25071. +tags: TAGS
  25072. +TAGS:
  25073. +
  25074. +ctags: CTAGS
  25075. +CTAGS:
  25076. +
  25077. +
  25078. +distdir: $(DISTFILES)
  25079. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  25080. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  25081. + list='$(DISTFILES)'; \
  25082. + dist_files=`for file in $$list; do echo $$file; done | \
  25083. + sed -e "s|^$$srcdirstrip/||;t" \
  25084. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  25085. + case $$dist_files in \
  25086. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  25087. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  25088. + sort -u` ;; \
  25089. + esac; \
  25090. + for file in $$dist_files; do \
  25091. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  25092. + if test -d $$d/$$file; then \
  25093. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  25094. + if test -d "$(distdir)/$$file"; then \
  25095. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  25096. + fi; \
  25097. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  25098. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  25099. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  25100. + fi; \
  25101. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  25102. + else \
  25103. + test -f "$(distdir)/$$file" \
  25104. + || cp -p $$d/$$file "$(distdir)/$$file" \
  25105. + || exit 1; \
  25106. + fi; \
  25107. + done
  25108. +check-am: all-am
  25109. +check: check-am
  25110. +all-am: Makefile $(DATA)
  25111. +installdirs:
  25112. + for dir in "$(DESTDIR)$(sysconfdir)"; do \
  25113. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  25114. + done
  25115. +install: install-am
  25116. +install-exec: install-exec-am
  25117. +install-data: install-data-am
  25118. +uninstall: uninstall-am
  25119. +
  25120. +install-am: all-am
  25121. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  25122. +
  25123. +installcheck: installcheck-am
  25124. +install-strip:
  25125. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  25126. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  25127. + `test -z '$(STRIP)' || \
  25128. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  25129. +mostlyclean-generic:
  25130. +
  25131. +clean-generic:
  25132. +
  25133. +distclean-generic:
  25134. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  25135. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  25136. +
  25137. +maintainer-clean-generic:
  25138. + @echo "This command is intended for maintainers to use"
  25139. + @echo "it deletes files that may require special tools to rebuild."
  25140. +clean: clean-am
  25141. +
  25142. +clean-am: clean-generic clean-libtool mostlyclean-am
  25143. +
  25144. +distclean: distclean-am
  25145. + -rm -f Makefile
  25146. +distclean-am: clean-am distclean-generic
  25147. +
  25148. +dvi: dvi-am
  25149. +
  25150. +dvi-am:
  25151. +
  25152. +html: html-am
  25153. +
  25154. +html-am:
  25155. +
  25156. +info: info-am
  25157. +
  25158. +info-am:
  25159. +
  25160. +install-data-am:
  25161. +
  25162. +install-dvi: install-dvi-am
  25163. +
  25164. +install-dvi-am:
  25165. +
  25166. +install-exec-am: install-sysconfDATA
  25167. +
  25168. +install-html: install-html-am
  25169. +
  25170. +install-html-am:
  25171. +
  25172. +install-info: install-info-am
  25173. +
  25174. +install-info-am:
  25175. +
  25176. +install-man:
  25177. +
  25178. +install-pdf: install-pdf-am
  25179. +
  25180. +install-pdf-am:
  25181. +
  25182. +install-ps: install-ps-am
  25183. +
  25184. +install-ps-am:
  25185. +
  25186. +installcheck-am:
  25187. +
  25188. +maintainer-clean: maintainer-clean-am
  25189. + -rm -f Makefile
  25190. +maintainer-clean-am: distclean-am maintainer-clean-generic
  25191. +
  25192. +mostlyclean: mostlyclean-am
  25193. +
  25194. +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  25195. +
  25196. +pdf: pdf-am
  25197. +
  25198. +pdf-am:
  25199. +
  25200. +ps: ps-am
  25201. +
  25202. +ps-am:
  25203. +
  25204. +uninstall-am: uninstall-sysconfDATA
  25205. +
  25206. +.MAKE: install-am install-strip
  25207. +
  25208. +.PHONY: all all-am check check-am clean clean-generic clean-libtool \
  25209. + distclean distclean-generic distclean-libtool distdir dvi \
  25210. + dvi-am html html-am info info-am install install-am \
  25211. + install-data install-data-am install-dvi install-dvi-am \
  25212. + install-exec install-exec-am install-html install-html-am \
  25213. + install-info install-info-am install-man install-pdf \
  25214. + install-pdf-am install-ps install-ps-am install-strip \
  25215. + install-sysconfDATA installcheck installcheck-am installdirs \
  25216. + maintainer-clean maintainer-clean-generic mostlyclean \
  25217. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  25218. + uninstall uninstall-am uninstall-sysconfDATA
  25219. +
  25220. +
  25221. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  25222. +# Otherwise a system limit (for SysV at least) may be exceeded.
  25223. +.NOEXPORT:
  25224. diff -Nur tslib-1.0.orig/install-sh tslib-1.0/install-sh
  25225. --- tslib-1.0.orig/install-sh 1970-01-01 01:00:00.000000000 +0100
  25226. +++ tslib-1.0/install-sh 2010-07-29 13:39:15.000000000 +0200
  25227. @@ -0,0 +1,520 @@
  25228. +#!/bin/sh
  25229. +# install - install a program, script, or datafile
  25230. +
  25231. +scriptversion=2009-04-28.21; # UTC
  25232. +
  25233. +# This originates from X11R5 (mit/util/scripts/install.sh), which was
  25234. +# later released in X11R6 (xc/config/util/install.sh) with the
  25235. +# following copyright and license.
  25236. +#
  25237. +# Copyright (C) 1994 X Consortium
  25238. +#
  25239. +# Permission is hereby granted, free of charge, to any person obtaining a copy
  25240. +# of this software and associated documentation files (the "Software"), to
  25241. +# deal in the Software without restriction, including without limitation the
  25242. +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  25243. +# sell copies of the Software, and to permit persons to whom the Software is
  25244. +# furnished to do so, subject to the following conditions:
  25245. +#
  25246. +# The above copyright notice and this permission notice shall be included in
  25247. +# all copies or substantial portions of the Software.
  25248. +#
  25249. +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  25250. +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  25251. +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  25252. +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  25253. +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
  25254. +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25255. +#
  25256. +# Except as contained in this notice, the name of the X Consortium shall not
  25257. +# be used in advertising or otherwise to promote the sale, use or other deal-
  25258. +# ings in this Software without prior written authorization from the X Consor-
  25259. +# tium.
  25260. +#
  25261. +#
  25262. +# FSF changes to this file are in the public domain.
  25263. +#
  25264. +# Calling this script install-sh is preferred over install.sh, to prevent
  25265. +# `make' implicit rules from creating a file called install from it
  25266. +# when there is no Makefile.
  25267. +#
  25268. +# This script is compatible with the BSD install script, but was written
  25269. +# from scratch.
  25270. +
  25271. +nl='
  25272. +'
  25273. +IFS=" "" $nl"
  25274. +
  25275. +# set DOITPROG to echo to test this script
  25276. +
  25277. +# Don't use :- since 4.3BSD and earlier shells don't like it.
  25278. +doit=${DOITPROG-}
  25279. +if test -z "$doit"; then
  25280. + doit_exec=exec
  25281. +else
  25282. + doit_exec=$doit
  25283. +fi
  25284. +
  25285. +# Put in absolute file names if you don't have them in your path;
  25286. +# or use environment vars.
  25287. +
  25288. +chgrpprog=${CHGRPPROG-chgrp}
  25289. +chmodprog=${CHMODPROG-chmod}
  25290. +chownprog=${CHOWNPROG-chown}
  25291. +cmpprog=${CMPPROG-cmp}
  25292. +cpprog=${CPPROG-cp}
  25293. +mkdirprog=${MKDIRPROG-mkdir}
  25294. +mvprog=${MVPROG-mv}
  25295. +rmprog=${RMPROG-rm}
  25296. +stripprog=${STRIPPROG-strip}
  25297. +
  25298. +posix_glob='?'
  25299. +initialize_posix_glob='
  25300. + test "$posix_glob" != "?" || {
  25301. + if (set -f) 2>/dev/null; then
  25302. + posix_glob=
  25303. + else
  25304. + posix_glob=:
  25305. + fi
  25306. + }
  25307. +'
  25308. +
  25309. +posix_mkdir=
  25310. +
  25311. +# Desired mode of installed file.
  25312. +mode=0755
  25313. +
  25314. +chgrpcmd=
  25315. +chmodcmd=$chmodprog
  25316. +chowncmd=
  25317. +mvcmd=$mvprog
  25318. +rmcmd="$rmprog -f"
  25319. +stripcmd=
  25320. +
  25321. +src=
  25322. +dst=
  25323. +dir_arg=
  25324. +dst_arg=
  25325. +
  25326. +copy_on_change=false
  25327. +no_target_directory=
  25328. +
  25329. +usage="\
  25330. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  25331. + or: $0 [OPTION]... SRCFILES... DIRECTORY
  25332. + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  25333. + or: $0 [OPTION]... -d DIRECTORIES...
  25334. +
  25335. +In the 1st form, copy SRCFILE to DSTFILE.
  25336. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
  25337. +In the 4th, create DIRECTORIES.
  25338. +
  25339. +Options:
  25340. + --help display this help and exit.
  25341. + --version display version info and exit.
  25342. +
  25343. + -c (ignored)
  25344. + -C install only if different (preserve the last data modification time)
  25345. + -d create directories instead of installing files.
  25346. + -g GROUP $chgrpprog installed files to GROUP.
  25347. + -m MODE $chmodprog installed files to MODE.
  25348. + -o USER $chownprog installed files to USER.
  25349. + -s $stripprog installed files.
  25350. + -t DIRECTORY install into DIRECTORY.
  25351. + -T report an error if DSTFILE is a directory.
  25352. +
  25353. +Environment variables override the default commands:
  25354. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  25355. + RMPROG STRIPPROG
  25356. +"
  25357. +
  25358. +while test $# -ne 0; do
  25359. + case $1 in
  25360. + -c) ;;
  25361. +
  25362. + -C) copy_on_change=true;;
  25363. +
  25364. + -d) dir_arg=true;;
  25365. +
  25366. + -g) chgrpcmd="$chgrpprog $2"
  25367. + shift;;
  25368. +
  25369. + --help) echo "$usage"; exit $?;;
  25370. +
  25371. + -m) mode=$2
  25372. + case $mode in
  25373. + *' '* | *' '* | *'
  25374. +'* | *'*'* | *'?'* | *'['*)
  25375. + echo "$0: invalid mode: $mode" >&2
  25376. + exit 1;;
  25377. + esac
  25378. + shift;;
  25379. +
  25380. + -o) chowncmd="$chownprog $2"
  25381. + shift;;
  25382. +
  25383. + -s) stripcmd=$stripprog;;
  25384. +
  25385. + -t) dst_arg=$2
  25386. + shift;;
  25387. +
  25388. + -T) no_target_directory=true;;
  25389. +
  25390. + --version) echo "$0 $scriptversion"; exit $?;;
  25391. +
  25392. + --) shift
  25393. + break;;
  25394. +
  25395. + -*) echo "$0: invalid option: $1" >&2
  25396. + exit 1;;
  25397. +
  25398. + *) break;;
  25399. + esac
  25400. + shift
  25401. +done
  25402. +
  25403. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  25404. + # When -d is used, all remaining arguments are directories to create.
  25405. + # When -t is used, the destination is already specified.
  25406. + # Otherwise, the last argument is the destination. Remove it from $@.
  25407. + for arg
  25408. + do
  25409. + if test -n "$dst_arg"; then
  25410. + # $@ is not empty: it contains at least $arg.
  25411. + set fnord "$@" "$dst_arg"
  25412. + shift # fnord
  25413. + fi
  25414. + shift # arg
  25415. + dst_arg=$arg
  25416. + done
  25417. +fi
  25418. +
  25419. +if test $# -eq 0; then
  25420. + if test -z "$dir_arg"; then
  25421. + echo "$0: no input file specified." >&2
  25422. + exit 1
  25423. + fi
  25424. + # It's OK to call `install-sh -d' without argument.
  25425. + # This can happen when creating conditional directories.
  25426. + exit 0
  25427. +fi
  25428. +
  25429. +if test -z "$dir_arg"; then
  25430. + trap '(exit $?); exit' 1 2 13 15
  25431. +
  25432. + # Set umask so as not to create temps with too-generous modes.
  25433. + # However, 'strip' requires both read and write access to temps.
  25434. + case $mode in
  25435. + # Optimize common cases.
  25436. + *644) cp_umask=133;;
  25437. + *755) cp_umask=22;;
  25438. +
  25439. + *[0-7])
  25440. + if test -z "$stripcmd"; then
  25441. + u_plus_rw=
  25442. + else
  25443. + u_plus_rw='% 200'
  25444. + fi
  25445. + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
  25446. + *)
  25447. + if test -z "$stripcmd"; then
  25448. + u_plus_rw=
  25449. + else
  25450. + u_plus_rw=,u+rw
  25451. + fi
  25452. + cp_umask=$mode$u_plus_rw;;
  25453. + esac
  25454. +fi
  25455. +
  25456. +for src
  25457. +do
  25458. + # Protect names starting with `-'.
  25459. + case $src in
  25460. + -*) src=./$src;;
  25461. + esac
  25462. +
  25463. + if test -n "$dir_arg"; then
  25464. + dst=$src
  25465. + dstdir=$dst
  25466. + test -d "$dstdir"
  25467. + dstdir_status=$?
  25468. + else
  25469. +
  25470. + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  25471. + # might cause directories to be created, which would be especially bad
  25472. + # if $src (and thus $dsttmp) contains '*'.
  25473. + if test ! -f "$src" && test ! -d "$src"; then
  25474. + echo "$0: $src does not exist." >&2
  25475. + exit 1
  25476. + fi
  25477. +
  25478. + if test -z "$dst_arg"; then
  25479. + echo "$0: no destination specified." >&2
  25480. + exit 1
  25481. + fi
  25482. +
  25483. + dst=$dst_arg
  25484. + # Protect names starting with `-'.
  25485. + case $dst in
  25486. + -*) dst=./$dst;;
  25487. + esac
  25488. +
  25489. + # If destination is a directory, append the input filename; won't work
  25490. + # if double slashes aren't ignored.
  25491. + if test -d "$dst"; then
  25492. + if test -n "$no_target_directory"; then
  25493. + echo "$0: $dst_arg: Is a directory" >&2
  25494. + exit 1
  25495. + fi
  25496. + dstdir=$dst
  25497. + dst=$dstdir/`basename "$src"`
  25498. + dstdir_status=0
  25499. + else
  25500. + # Prefer dirname, but fall back on a substitute if dirname fails.
  25501. + dstdir=`
  25502. + (dirname "$dst") 2>/dev/null ||
  25503. + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25504. + X"$dst" : 'X\(//\)[^/]' \| \
  25505. + X"$dst" : 'X\(//\)$' \| \
  25506. + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
  25507. + echo X"$dst" |
  25508. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25509. + s//\1/
  25510. + q
  25511. + }
  25512. + /^X\(\/\/\)[^/].*/{
  25513. + s//\1/
  25514. + q
  25515. + }
  25516. + /^X\(\/\/\)$/{
  25517. + s//\1/
  25518. + q
  25519. + }
  25520. + /^X\(\/\).*/{
  25521. + s//\1/
  25522. + q
  25523. + }
  25524. + s/.*/./; q'
  25525. + `
  25526. +
  25527. + test -d "$dstdir"
  25528. + dstdir_status=$?
  25529. + fi
  25530. + fi
  25531. +
  25532. + obsolete_mkdir_used=false
  25533. +
  25534. + if test $dstdir_status != 0; then
  25535. + case $posix_mkdir in
  25536. + '')
  25537. + # Create intermediate dirs using mode 755 as modified by the umask.
  25538. + # This is like FreeBSD 'install' as of 1997-10-28.
  25539. + umask=`umask`
  25540. + case $stripcmd.$umask in
  25541. + # Optimize common cases.
  25542. + *[2367][2367]) mkdir_umask=$umask;;
  25543. + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
  25544. +
  25545. + *[0-7])
  25546. + mkdir_umask=`expr $umask + 22 \
  25547. + - $umask % 100 % 40 + $umask % 20 \
  25548. + - $umask % 10 % 4 + $umask % 2
  25549. + `;;
  25550. + *) mkdir_umask=$umask,go-w;;
  25551. + esac
  25552. +
  25553. + # With -d, create the new directory with the user-specified mode.
  25554. + # Otherwise, rely on $mkdir_umask.
  25555. + if test -n "$dir_arg"; then
  25556. + mkdir_mode=-m$mode
  25557. + else
  25558. + mkdir_mode=
  25559. + fi
  25560. +
  25561. + posix_mkdir=false
  25562. + case $umask in
  25563. + *[123567][0-7][0-7])
  25564. + # POSIX mkdir -p sets u+wx bits regardless of umask, which
  25565. + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
  25566. + ;;
  25567. + *)
  25568. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
  25569. + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
  25570. +
  25571. + if (umask $mkdir_umask &&
  25572. + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
  25573. + then
  25574. + if test -z "$dir_arg" || {
  25575. + # Check for POSIX incompatibilities with -m.
  25576. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
  25577. + # other-writeable bit of parent directory when it shouldn't.
  25578. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
  25579. + ls_ld_tmpdir=`ls -ld "$tmpdir"`
  25580. + case $ls_ld_tmpdir in
  25581. + d????-?r-*) different_mode=700;;
  25582. + d????-?--*) different_mode=755;;
  25583. + *) false;;
  25584. + esac &&
  25585. + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
  25586. + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
  25587. + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
  25588. + }
  25589. + }
  25590. + then posix_mkdir=:
  25591. + fi
  25592. + rmdir "$tmpdir/d" "$tmpdir"
  25593. + else
  25594. + # Remove any dirs left behind by ancient mkdir implementations.
  25595. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
  25596. + fi
  25597. + trap '' 0;;
  25598. + esac;;
  25599. + esac
  25600. +
  25601. + if
  25602. + $posix_mkdir && (
  25603. + umask $mkdir_umask &&
  25604. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
  25605. + )
  25606. + then :
  25607. + else
  25608. +
  25609. + # The umask is ridiculous, or mkdir does not conform to POSIX,
  25610. + # or it failed possibly due to a race condition. Create the
  25611. + # directory the slow way, step by step, checking for races as we go.
  25612. +
  25613. + case $dstdir in
  25614. + /*) prefix='/';;
  25615. + -*) prefix='./';;
  25616. + *) prefix='';;
  25617. + esac
  25618. +
  25619. + eval "$initialize_posix_glob"
  25620. +
  25621. + oIFS=$IFS
  25622. + IFS=/
  25623. + $posix_glob set -f
  25624. + set fnord $dstdir
  25625. + shift
  25626. + $posix_glob set +f
  25627. + IFS=$oIFS
  25628. +
  25629. + prefixes=
  25630. +
  25631. + for d
  25632. + do
  25633. + test -z "$d" && continue
  25634. +
  25635. + prefix=$prefix$d
  25636. + if test -d "$prefix"; then
  25637. + prefixes=
  25638. + else
  25639. + if $posix_mkdir; then
  25640. + (umask=$mkdir_umask &&
  25641. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
  25642. + # Don't fail if two instances are running concurrently.
  25643. + test -d "$prefix" || exit 1
  25644. + else
  25645. + case $prefix in
  25646. + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
  25647. + *) qprefix=$prefix;;
  25648. + esac
  25649. + prefixes="$prefixes '$qprefix'"
  25650. + fi
  25651. + fi
  25652. + prefix=$prefix/
  25653. + done
  25654. +
  25655. + if test -n "$prefixes"; then
  25656. + # Don't fail if two instances are running concurrently.
  25657. + (umask $mkdir_umask &&
  25658. + eval "\$doit_exec \$mkdirprog $prefixes") ||
  25659. + test -d "$dstdir" || exit 1
  25660. + obsolete_mkdir_used=true
  25661. + fi
  25662. + fi
  25663. + fi
  25664. +
  25665. + if test -n "$dir_arg"; then
  25666. + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
  25667. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
  25668. + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
  25669. + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  25670. + else
  25671. +
  25672. + # Make a couple of temp file names in the proper directory.
  25673. + dsttmp=$dstdir/_inst.$$_
  25674. + rmtmp=$dstdir/_rm.$$_
  25675. +
  25676. + # Trap to clean up those temp files at exit.
  25677. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  25678. +
  25679. + # Copy the file name to the temp name.
  25680. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
  25681. +
  25682. + # and set any options; do chmod last to preserve setuid bits.
  25683. + #
  25684. + # If any of these fail, we abort the whole thing. If we want to
  25685. + # ignore errors from any of these, just make sure not to ignore
  25686. + # errors from the above "$doit $cpprog $src $dsttmp" command.
  25687. + #
  25688. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  25689. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  25690. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  25691. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  25692. +
  25693. + # If -C, don't bother to copy if it wouldn't change the file.
  25694. + if $copy_on_change &&
  25695. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  25696. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  25697. +
  25698. + eval "$initialize_posix_glob" &&
  25699. + $posix_glob set -f &&
  25700. + set X $old && old=:$2:$4:$5:$6 &&
  25701. + set X $new && new=:$2:$4:$5:$6 &&
  25702. + $posix_glob set +f &&
  25703. +
  25704. + test "$old" = "$new" &&
  25705. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  25706. + then
  25707. + rm -f "$dsttmp"
  25708. + else
  25709. + # Rename the file to the real destination.
  25710. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  25711. +
  25712. + # The rename failed, perhaps because mv can't rename something else
  25713. + # to itself, or perhaps because mv is so ancient that it does not
  25714. + # support -f.
  25715. + {
  25716. + # Now remove or move aside any old file at destination location.
  25717. + # We try this two ways since rm can't unlink itself on some
  25718. + # systems and the destination file might be busy for other
  25719. + # reasons. In this case, the final cleanup might fail but the new
  25720. + # file should still install successfully.
  25721. + {
  25722. + test ! -f "$dst" ||
  25723. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  25724. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  25725. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  25726. + } ||
  25727. + { echo "$0: cannot unlink or rename $dst" >&2
  25728. + (exit 1); exit 1
  25729. + }
  25730. + } &&
  25731. +
  25732. + # Now rename the file to the real destination.
  25733. + $doit $mvcmd "$dsttmp" "$dst"
  25734. + }
  25735. + fi || exit 1
  25736. +
  25737. + trap '' 0
  25738. + fi
  25739. +done
  25740. +
  25741. +# Local variables:
  25742. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  25743. +# time-stamp-start: "scriptversion="
  25744. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  25745. +# time-stamp-time-zone: "UTC"
  25746. +# time-stamp-end: "; # UTC"
  25747. +# End:
  25748. diff -Nur tslib-1.0.orig/ltmain.sh tslib-1.0/ltmain.sh
  25749. --- tslib-1.0.orig/ltmain.sh 1970-01-01 01:00:00.000000000 +0100
  25750. +++ tslib-1.0/ltmain.sh 2010-07-29 13:39:16.000000000 +0200
  25751. @@ -0,0 +1,8413 @@
  25752. +# Generated from ltmain.m4sh.
  25753. +
  25754. +# ltmain.sh (GNU libtool) 2.2.6b
  25755. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  25756. +
  25757. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  25758. +# This is free software; see the source for copying conditions. There is NO
  25759. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  25760. +
  25761. +# GNU Libtool is free software; you can redistribute it and/or modify
  25762. +# it under the terms of the GNU General Public License as published by
  25763. +# the Free Software Foundation; either version 2 of the License, or
  25764. +# (at your option) any later version.
  25765. +#
  25766. +# As a special exception to the GNU General Public License,
  25767. +# if you distribute this file as part of a program or library that
  25768. +# is built using GNU Libtool, you may include this file under the
  25769. +# same distribution terms that you use for the rest of that program.
  25770. +#
  25771. +# GNU Libtool is distributed in the hope that it will be useful, but
  25772. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  25773. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  25774. +# General Public License for more details.
  25775. +#
  25776. +# You should have received a copy of the GNU General Public License
  25777. +# along with GNU Libtool; see the file COPYING. If not, a copy
  25778. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  25779. +# or obtained by writing to the Free Software Foundation, Inc.,
  25780. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  25781. +
  25782. +# Usage: $progname [OPTION]... [MODE-ARG]...
  25783. +#
  25784. +# Provide generalized library-building support services.
  25785. +#
  25786. +# --config show all configuration variables
  25787. +# --debug enable verbose shell tracing
  25788. +# -n, --dry-run display commands without modifying any files
  25789. +# --features display basic configuration information and exit
  25790. +# --mode=MODE use operation mode MODE
  25791. +# --preserve-dup-deps don't remove duplicate dependency libraries
  25792. +# --quiet, --silent don't print informational messages
  25793. +# --tag=TAG use configuration variables from tag TAG
  25794. +# -v, --verbose print informational messages (default)
  25795. +# --version print version information
  25796. +# -h, --help print short or long help message
  25797. +#
  25798. +# MODE must be one of the following:
  25799. +#
  25800. +# clean remove files from the build directory
  25801. +# compile compile a source file into a libtool object
  25802. +# execute automatically set library path, then run a program
  25803. +# finish complete the installation of libtool libraries
  25804. +# install install libraries or executables
  25805. +# link create a library or an executable
  25806. +# uninstall remove libraries from an installed directory
  25807. +#
  25808. +# MODE-ARGS vary depending on the MODE.
  25809. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  25810. +#
  25811. +# When reporting a bug, please describe a test case to reproduce it and
  25812. +# include the following information:
  25813. +#
  25814. +# host-triplet: $host
  25815. +# shell: $SHELL
  25816. +# compiler: $LTCC
  25817. +# compiler flags: $LTCFLAGS
  25818. +# linker: $LD (gnu? $with_gnu_ld)
  25819. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  25820. +# automake: $automake_version
  25821. +# autoconf: $autoconf_version
  25822. +#
  25823. +# Report bugs to <bug-libtool@gnu.org>.
  25824. +
  25825. +PROGRAM=ltmain.sh
  25826. +PACKAGE=libtool
  25827. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  25828. +TIMESTAMP=""
  25829. +package_revision=1.3017
  25830. +
  25831. +# Be Bourne compatible
  25832. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  25833. + emulate sh
  25834. + NULLCMD=:
  25835. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  25836. + # is contrary to our usage. Disable this feature.
  25837. + alias -g '${1+"$@"}'='"$@"'
  25838. + setopt NO_GLOB_SUBST
  25839. +else
  25840. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  25841. +fi
  25842. +BIN_SH=xpg4; export BIN_SH # for Tru64
  25843. +DUALCASE=1; export DUALCASE # for MKS sh
  25844. +
  25845. +# NLS nuisances: We save the old values to restore during execute mode.
  25846. +# Only set LANG and LC_ALL to C if already set.
  25847. +# These must not be set unconditionally because not all systems understand
  25848. +# e.g. LANG=C (notably SCO).
  25849. +lt_user_locale=
  25850. +lt_safe_locale=
  25851. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  25852. +do
  25853. + eval "if test \"\${$lt_var+set}\" = set; then
  25854. + save_$lt_var=\$$lt_var
  25855. + $lt_var=C
  25856. + export $lt_var
  25857. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  25858. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  25859. + fi"
  25860. +done
  25861. +
  25862. +$lt_unset CDPATH
  25863. +
  25864. +
  25865. +
  25866. +
  25867. +
  25868. +: ${CP="cp -f"}
  25869. +: ${ECHO="echo"}
  25870. +: ${EGREP="/bin/grep -E"}
  25871. +: ${FGREP="/bin/grep -F"}
  25872. +: ${GREP="/bin/grep"}
  25873. +: ${LN_S="ln -s"}
  25874. +: ${MAKE="make"}
  25875. +: ${MKDIR="mkdir"}
  25876. +: ${MV="mv -f"}
  25877. +: ${RM="rm -f"}
  25878. +: ${SED="/bin/sed"}
  25879. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  25880. +: ${Xsed="$SED -e 1s/^X//"}
  25881. +
  25882. +# Global variables:
  25883. +EXIT_SUCCESS=0
  25884. +EXIT_FAILURE=1
  25885. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  25886. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  25887. +
  25888. +exit_status=$EXIT_SUCCESS
  25889. +
  25890. +# Make sure IFS has a sensible default
  25891. +lt_nl='
  25892. +'
  25893. +IFS=" $lt_nl"
  25894. +
  25895. +dirname="s,/[^/]*$,,"
  25896. +basename="s,^.*/,,"
  25897. +
  25898. +# func_dirname_and_basename file append nondir_replacement
  25899. +# perform func_basename and func_dirname in a single function
  25900. +# call:
  25901. +# dirname: Compute the dirname of FILE. If nonempty,
  25902. +# add APPEND to the result, otherwise set result
  25903. +# to NONDIR_REPLACEMENT.
  25904. +# value returned in "$func_dirname_result"
  25905. +# basename: Compute filename of FILE.
  25906. +# value retuned in "$func_basename_result"
  25907. +# Implementation must be kept synchronized with func_dirname
  25908. +# and func_basename. For efficiency, we do not delegate to
  25909. +# those functions but instead duplicate the functionality here.
  25910. +func_dirname_and_basename ()
  25911. +{
  25912. + # Extract subdirectory from the argument.
  25913. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  25914. + if test "X$func_dirname_result" = "X${1}"; then
  25915. + func_dirname_result="${3}"
  25916. + else
  25917. + func_dirname_result="$func_dirname_result${2}"
  25918. + fi
  25919. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  25920. +}
  25921. +
  25922. +# Generated shell functions inserted here.
  25923. +
  25924. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  25925. +# is ksh but when the shell is invoked as "sh" and the current value of
  25926. +# the _XPG environment variable is not equal to 1 (one), the special
  25927. +# positional parameter $0, within a function call, is the name of the
  25928. +# function.
  25929. +progpath="$0"
  25930. +
  25931. +# The name of this program:
  25932. +# In the unlikely event $progname began with a '-', it would play havoc with
  25933. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  25934. +func_dirname_and_basename "$progpath"
  25935. +progname=$func_basename_result
  25936. +case $progname in
  25937. + -*) progname=./$progname ;;
  25938. +esac
  25939. +
  25940. +# Make sure we have an absolute path for reexecution:
  25941. +case $progpath in
  25942. + [\\/]*|[A-Za-z]:\\*) ;;
  25943. + *[\\/]*)
  25944. + progdir=$func_dirname_result
  25945. + progdir=`cd "$progdir" && pwd`
  25946. + progpath="$progdir/$progname"
  25947. + ;;
  25948. + *)
  25949. + save_IFS="$IFS"
  25950. + IFS=:
  25951. + for progdir in $PATH; do
  25952. + IFS="$save_IFS"
  25953. + test -x "$progdir/$progname" && break
  25954. + done
  25955. + IFS="$save_IFS"
  25956. + test -n "$progdir" || progdir=`pwd`
  25957. + progpath="$progdir/$progname"
  25958. + ;;
  25959. +esac
  25960. +
  25961. +# Sed substitution that helps us do robust quoting. It backslashifies
  25962. +# metacharacters that are still active within double-quoted strings.
  25963. +Xsed="${SED}"' -e 1s/^X//'
  25964. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  25965. +
  25966. +# Same as above, but do not quote variable references.
  25967. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  25968. +
  25969. +# Re-`\' parameter expansions in output of double_quote_subst that were
  25970. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  25971. +# in input to double_quote_subst, that '$' was protected from expansion.
  25972. +# Since each input `\' is now two `\'s, look for any number of runs of
  25973. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  25974. +bs='\\'
  25975. +bs2='\\\\'
  25976. +bs4='\\\\\\\\'
  25977. +dollar='\$'
  25978. +sed_double_backslash="\
  25979. + s/$bs4/&\\
  25980. +/g
  25981. + s/^$bs2$dollar/$bs&/
  25982. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  25983. + s/\n//g"
  25984. +
  25985. +# Standard options:
  25986. +opt_dry_run=false
  25987. +opt_help=false
  25988. +opt_quiet=false
  25989. +opt_verbose=false
  25990. +opt_warning=:
  25991. +
  25992. +# func_echo arg...
  25993. +# Echo program name prefixed message, along with the current mode
  25994. +# name if it has been set yet.
  25995. +func_echo ()
  25996. +{
  25997. + $ECHO "$progname${mode+: }$mode: $*"
  25998. +}
  25999. +
  26000. +# func_verbose arg...
  26001. +# Echo program name prefixed message in verbose mode only.
  26002. +func_verbose ()
  26003. +{
  26004. + $opt_verbose && func_echo ${1+"$@"}
  26005. +
  26006. + # A bug in bash halts the script if the last line of a function
  26007. + # fails when set -e is in force, so we need another command to
  26008. + # work around that:
  26009. + :
  26010. +}
  26011. +
  26012. +# func_error arg...
  26013. +# Echo program name prefixed message to standard error.
  26014. +func_error ()
  26015. +{
  26016. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  26017. +}
  26018. +
  26019. +# func_warning arg...
  26020. +# Echo program name prefixed warning message to standard error.
  26021. +func_warning ()
  26022. +{
  26023. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  26024. +
  26025. + # bash bug again:
  26026. + :
  26027. +}
  26028. +
  26029. +# func_fatal_error arg...
  26030. +# Echo program name prefixed message to standard error, and exit.
  26031. +func_fatal_error ()
  26032. +{
  26033. + func_error ${1+"$@"}
  26034. + exit $EXIT_FAILURE
  26035. +}
  26036. +
  26037. +# func_fatal_help arg...
  26038. +# Echo program name prefixed message to standard error, followed by
  26039. +# a help hint, and exit.
  26040. +func_fatal_help ()
  26041. +{
  26042. + func_error ${1+"$@"}
  26043. + func_fatal_error "$help"
  26044. +}
  26045. +help="Try \`$progname --help' for more information." ## default
  26046. +
  26047. +
  26048. +# func_grep expression filename
  26049. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  26050. +func_grep ()
  26051. +{
  26052. + $GREP "$1" "$2" >/dev/null 2>&1
  26053. +}
  26054. +
  26055. +
  26056. +# func_mkdir_p directory-path
  26057. +# Make sure the entire path to DIRECTORY-PATH is available.
  26058. +func_mkdir_p ()
  26059. +{
  26060. + my_directory_path="$1"
  26061. + my_dir_list=
  26062. +
  26063. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  26064. +
  26065. + # Protect directory names starting with `-'
  26066. + case $my_directory_path in
  26067. + -*) my_directory_path="./$my_directory_path" ;;
  26068. + esac
  26069. +
  26070. + # While some portion of DIR does not yet exist...
  26071. + while test ! -d "$my_directory_path"; do
  26072. + # ...make a list in topmost first order. Use a colon delimited
  26073. + # list incase some portion of path contains whitespace.
  26074. + my_dir_list="$my_directory_path:$my_dir_list"
  26075. +
  26076. + # If the last portion added has no slash in it, the list is done
  26077. + case $my_directory_path in */*) ;; *) break ;; esac
  26078. +
  26079. + # ...otherwise throw away the child directory and loop
  26080. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  26081. + done
  26082. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  26083. +
  26084. + save_mkdir_p_IFS="$IFS"; IFS=':'
  26085. + for my_dir in $my_dir_list; do
  26086. + IFS="$save_mkdir_p_IFS"
  26087. + # mkdir can fail with a `File exist' error if two processes
  26088. + # try to create one of the directories concurrently. Don't
  26089. + # stop in that case!
  26090. + $MKDIR "$my_dir" 2>/dev/null || :
  26091. + done
  26092. + IFS="$save_mkdir_p_IFS"
  26093. +
  26094. + # Bail out if we (or some other process) failed to create a directory.
  26095. + test -d "$my_directory_path" || \
  26096. + func_fatal_error "Failed to create \`$1'"
  26097. + fi
  26098. +}
  26099. +
  26100. +
  26101. +# func_mktempdir [string]
  26102. +# Make a temporary directory that won't clash with other running
  26103. +# libtool processes, and avoids race conditions if possible. If
  26104. +# given, STRING is the basename for that directory.
  26105. +func_mktempdir ()
  26106. +{
  26107. + my_template="${TMPDIR-/tmp}/${1-$progname}"
  26108. +
  26109. + if test "$opt_dry_run" = ":"; then
  26110. + # Return a directory name, but don't create it in dry-run mode
  26111. + my_tmpdir="${my_template}-$$"
  26112. + else
  26113. +
  26114. + # If mktemp works, use that first and foremost
  26115. + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  26116. +
  26117. + if test ! -d "$my_tmpdir"; then
  26118. + # Failing that, at least try and use $RANDOM to avoid a race
  26119. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  26120. +
  26121. + save_mktempdir_umask=`umask`
  26122. + umask 0077
  26123. + $MKDIR "$my_tmpdir"
  26124. + umask $save_mktempdir_umask
  26125. + fi
  26126. +
  26127. + # If we're not in dry-run mode, bomb out on failure
  26128. + test -d "$my_tmpdir" || \
  26129. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  26130. + fi
  26131. +
  26132. + $ECHO "X$my_tmpdir" | $Xsed
  26133. +}
  26134. +
  26135. +
  26136. +# func_quote_for_eval arg
  26137. +# Aesthetically quote ARG to be evaled later.
  26138. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  26139. +# is double-quoted, suitable for a subsequent eval, whereas
  26140. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  26141. +# which are still active within double quotes backslashified.
  26142. +func_quote_for_eval ()
  26143. +{
  26144. + case $1 in
  26145. + *[\\\`\"\$]*)
  26146. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  26147. + *)
  26148. + func_quote_for_eval_unquoted_result="$1" ;;
  26149. + esac
  26150. +
  26151. + case $func_quote_for_eval_unquoted_result in
  26152. + # Double-quote args containing shell metacharacters to delay
  26153. + # word splitting, command substitution and and variable
  26154. + # expansion for a subsequent eval.
  26155. + # Many Bourne shells cannot handle close brackets correctly
  26156. + # in scan sets, so we specify it separately.
  26157. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  26158. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  26159. + ;;
  26160. + *)
  26161. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  26162. + esac
  26163. +}
  26164. +
  26165. +
  26166. +# func_quote_for_expand arg
  26167. +# Aesthetically quote ARG to be evaled later; same as above,
  26168. +# but do not quote variable references.
  26169. +func_quote_for_expand ()
  26170. +{
  26171. + case $1 in
  26172. + *[\\\`\"]*)
  26173. + my_arg=`$ECHO "X$1" | $Xsed \
  26174. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  26175. + *)
  26176. + my_arg="$1" ;;
  26177. + esac
  26178. +
  26179. + case $my_arg in
  26180. + # Double-quote args containing shell metacharacters to delay
  26181. + # word splitting and command substitution for a subsequent eval.
  26182. + # Many Bourne shells cannot handle close brackets correctly
  26183. + # in scan sets, so we specify it separately.
  26184. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  26185. + my_arg="\"$my_arg\""
  26186. + ;;
  26187. + esac
  26188. +
  26189. + func_quote_for_expand_result="$my_arg"
  26190. +}
  26191. +
  26192. +
  26193. +# func_show_eval cmd [fail_exp]
  26194. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  26195. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  26196. +# is given, then evaluate it.
  26197. +func_show_eval ()
  26198. +{
  26199. + my_cmd="$1"
  26200. + my_fail_exp="${2-:}"
  26201. +
  26202. + ${opt_silent-false} || {
  26203. + func_quote_for_expand "$my_cmd"
  26204. + eval "func_echo $func_quote_for_expand_result"
  26205. + }
  26206. +
  26207. + if ${opt_dry_run-false}; then :; else
  26208. + eval "$my_cmd"
  26209. + my_status=$?
  26210. + if test "$my_status" -eq 0; then :; else
  26211. + eval "(exit $my_status); $my_fail_exp"
  26212. + fi
  26213. + fi
  26214. +}
  26215. +
  26216. +
  26217. +# func_show_eval_locale cmd [fail_exp]
  26218. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  26219. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  26220. +# is given, then evaluate it. Use the saved locale for evaluation.
  26221. +func_show_eval_locale ()
  26222. +{
  26223. + my_cmd="$1"
  26224. + my_fail_exp="${2-:}"
  26225. +
  26226. + ${opt_silent-false} || {
  26227. + func_quote_for_expand "$my_cmd"
  26228. + eval "func_echo $func_quote_for_expand_result"
  26229. + }
  26230. +
  26231. + if ${opt_dry_run-false}; then :; else
  26232. + eval "$lt_user_locale
  26233. + $my_cmd"
  26234. + my_status=$?
  26235. + eval "$lt_safe_locale"
  26236. + if test "$my_status" -eq 0; then :; else
  26237. + eval "(exit $my_status); $my_fail_exp"
  26238. + fi
  26239. + fi
  26240. +}
  26241. +
  26242. +
  26243. +
  26244. +
  26245. +
  26246. +# func_version
  26247. +# Echo version message to standard output and exit.
  26248. +func_version ()
  26249. +{
  26250. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  26251. + s/^# //
  26252. + s/^# *$//
  26253. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  26254. + p
  26255. + }' < "$progpath"
  26256. + exit $?
  26257. +}
  26258. +
  26259. +# func_usage
  26260. +# Echo short help message to standard output and exit.
  26261. +func_usage ()
  26262. +{
  26263. + $SED -n '/^# Usage:/,/# -h/ {
  26264. + s/^# //
  26265. + s/^# *$//
  26266. + s/\$progname/'$progname'/
  26267. + p
  26268. + }' < "$progpath"
  26269. + $ECHO
  26270. + $ECHO "run \`$progname --help | more' for full usage"
  26271. + exit $?
  26272. +}
  26273. +
  26274. +# func_help
  26275. +# Echo long help message to standard output and exit.
  26276. +func_help ()
  26277. +{
  26278. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  26279. + s/^# //
  26280. + s/^# *$//
  26281. + s*\$progname*'$progname'*
  26282. + s*\$host*'"$host"'*
  26283. + s*\$SHELL*'"$SHELL"'*
  26284. + s*\$LTCC*'"$LTCC"'*
  26285. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  26286. + s*\$LD*'"$LD"'*
  26287. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  26288. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  26289. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  26290. + p
  26291. + }' < "$progpath"
  26292. + exit $?
  26293. +}
  26294. +
  26295. +# func_missing_arg argname
  26296. +# Echo program name prefixed message to standard error and set global
  26297. +# exit_cmd.
  26298. +func_missing_arg ()
  26299. +{
  26300. + func_error "missing argument for $1"
  26301. + exit_cmd=exit
  26302. +}
  26303. +
  26304. +exit_cmd=:
  26305. +
  26306. +
  26307. +
  26308. +
  26309. +
  26310. +# Check that we have a working $ECHO.
  26311. +if test "X$1" = X--no-reexec; then
  26312. + # Discard the --no-reexec flag, and continue.
  26313. + shift
  26314. +elif test "X$1" = X--fallback-echo; then
  26315. + # Avoid inline document here, it may be left over
  26316. + :
  26317. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  26318. + # Yippee, $ECHO works!
  26319. + :
  26320. +else
  26321. + # Restart under the correct shell, and then maybe $ECHO will work.
  26322. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  26323. +fi
  26324. +
  26325. +if test "X$1" = X--fallback-echo; then
  26326. + # used as fallback echo
  26327. + shift
  26328. + cat <<EOF
  26329. +$*
  26330. +EOF
  26331. + exit $EXIT_SUCCESS
  26332. +fi
  26333. +
  26334. +magic="%%%MAGIC variable%%%"
  26335. +magic_exe="%%%MAGIC EXE variable%%%"
  26336. +
  26337. +# Global variables.
  26338. +# $mode is unset
  26339. +nonopt=
  26340. +execute_dlfiles=
  26341. +preserve_args=
  26342. +lo2o="s/\\.lo\$/.${objext}/"
  26343. +o2lo="s/\\.${objext}\$/.lo/"
  26344. +extracted_archives=
  26345. +extracted_serial=0
  26346. +
  26347. +opt_dry_run=false
  26348. +opt_duplicate_deps=false
  26349. +opt_silent=false
  26350. +opt_debug=:
  26351. +
  26352. +# If this variable is set in any of the actions, the command in it
  26353. +# will be execed at the end. This prevents here-documents from being
  26354. +# left over by shells.
  26355. +exec_cmd=
  26356. +
  26357. +# func_fatal_configuration arg...
  26358. +# Echo program name prefixed message to standard error, followed by
  26359. +# a configuration failure hint, and exit.
  26360. +func_fatal_configuration ()
  26361. +{
  26362. + func_error ${1+"$@"}
  26363. + func_error "See the $PACKAGE documentation for more information."
  26364. + func_fatal_error "Fatal configuration error."
  26365. +}
  26366. +
  26367. +
  26368. +# func_config
  26369. +# Display the configuration for all the tags in this script.
  26370. +func_config ()
  26371. +{
  26372. + re_begincf='^# ### BEGIN LIBTOOL'
  26373. + re_endcf='^# ### END LIBTOOL'
  26374. +
  26375. + # Default configuration.
  26376. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  26377. +
  26378. + # Now print the configurations for the tags.
  26379. + for tagname in $taglist; do
  26380. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  26381. + done
  26382. +
  26383. + exit $?
  26384. +}
  26385. +
  26386. +# func_features
  26387. +# Display the features supported by this script.
  26388. +func_features ()
  26389. +{
  26390. + $ECHO "host: $host"
  26391. + if test "$build_libtool_libs" = yes; then
  26392. + $ECHO "enable shared libraries"
  26393. + else
  26394. + $ECHO "disable shared libraries"
  26395. + fi
  26396. + if test "$build_old_libs" = yes; then
  26397. + $ECHO "enable static libraries"
  26398. + else
  26399. + $ECHO "disable static libraries"
  26400. + fi
  26401. +
  26402. + exit $?
  26403. +}
  26404. +
  26405. +# func_enable_tag tagname
  26406. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  26407. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  26408. +# variable here.
  26409. +func_enable_tag ()
  26410. +{
  26411. + # Global variable:
  26412. + tagname="$1"
  26413. +
  26414. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  26415. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  26416. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  26417. +
  26418. + # Validate tagname.
  26419. + case $tagname in
  26420. + *[!-_A-Za-z0-9,/]*)
  26421. + func_fatal_error "invalid tag name: $tagname"
  26422. + ;;
  26423. + esac
  26424. +
  26425. + # Don't test for the "default" C tag, as we know it's
  26426. + # there but not specially marked.
  26427. + case $tagname in
  26428. + CC) ;;
  26429. + *)
  26430. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  26431. + taglist="$taglist $tagname"
  26432. +
  26433. + # Evaluate the configuration. Be careful to quote the path
  26434. + # and the sed script, to avoid splitting on whitespace, but
  26435. + # also don't use non-portable quotes within backquotes within
  26436. + # quotes we have to do it in 2 steps:
  26437. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  26438. + eval "$extractedcf"
  26439. + else
  26440. + func_error "ignoring unknown tag $tagname"
  26441. + fi
  26442. + ;;
  26443. + esac
  26444. +}
  26445. +
  26446. +# Parse options once, thoroughly. This comes as soon as possible in
  26447. +# the script to make things like `libtool --version' happen quickly.
  26448. +{
  26449. +
  26450. + # Shorthand for --mode=foo, only valid as the first argument
  26451. + case $1 in
  26452. + clean|clea|cle|cl)
  26453. + shift; set dummy --mode clean ${1+"$@"}; shift
  26454. + ;;
  26455. + compile|compil|compi|comp|com|co|c)
  26456. + shift; set dummy --mode compile ${1+"$@"}; shift
  26457. + ;;
  26458. + execute|execut|execu|exec|exe|ex|e)
  26459. + shift; set dummy --mode execute ${1+"$@"}; shift
  26460. + ;;
  26461. + finish|finis|fini|fin|fi|f)
  26462. + shift; set dummy --mode finish ${1+"$@"}; shift
  26463. + ;;
  26464. + install|instal|insta|inst|ins|in|i)
  26465. + shift; set dummy --mode install ${1+"$@"}; shift
  26466. + ;;
  26467. + link|lin|li|l)
  26468. + shift; set dummy --mode link ${1+"$@"}; shift
  26469. + ;;
  26470. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  26471. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  26472. + ;;
  26473. + esac
  26474. +
  26475. + # Parse non-mode specific arguments:
  26476. + while test "$#" -gt 0; do
  26477. + opt="$1"
  26478. + shift
  26479. +
  26480. + case $opt in
  26481. + --config) func_config ;;
  26482. +
  26483. + --debug) preserve_args="$preserve_args $opt"
  26484. + func_echo "enabling shell trace mode"
  26485. + opt_debug='set -x'
  26486. + $opt_debug
  26487. + ;;
  26488. +
  26489. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  26490. + execute_dlfiles="$execute_dlfiles $1"
  26491. + shift
  26492. + ;;
  26493. +
  26494. + --dry-run | -n) opt_dry_run=: ;;
  26495. + --features) func_features ;;
  26496. + --finish) mode="finish" ;;
  26497. +
  26498. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  26499. + case $1 in
  26500. + # Valid mode arguments:
  26501. + clean) ;;
  26502. + compile) ;;
  26503. + execute) ;;
  26504. + finish) ;;
  26505. + install) ;;
  26506. + link) ;;
  26507. + relink) ;;
  26508. + uninstall) ;;
  26509. +
  26510. + # Catch anything else as an error
  26511. + *) func_error "invalid argument for $opt"
  26512. + exit_cmd=exit
  26513. + break
  26514. + ;;
  26515. + esac
  26516. +
  26517. + mode="$1"
  26518. + shift
  26519. + ;;
  26520. +
  26521. + --preserve-dup-deps)
  26522. + opt_duplicate_deps=: ;;
  26523. +
  26524. + --quiet|--silent) preserve_args="$preserve_args $opt"
  26525. + opt_silent=:
  26526. + ;;
  26527. +
  26528. + --verbose| -v) preserve_args="$preserve_args $opt"
  26529. + opt_silent=false
  26530. + ;;
  26531. +
  26532. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  26533. + preserve_args="$preserve_args $opt $1"
  26534. + func_enable_tag "$1" # tagname is set here
  26535. + shift
  26536. + ;;
  26537. +
  26538. + # Separate optargs to long options:
  26539. + -dlopen=*|--mode=*|--tag=*)
  26540. + func_opt_split "$opt"
  26541. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  26542. + shift
  26543. + ;;
  26544. +
  26545. + -\?|-h) func_usage ;;
  26546. + --help) opt_help=: ;;
  26547. + --version) func_version ;;
  26548. +
  26549. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  26550. +
  26551. + *) nonopt="$opt"
  26552. + break
  26553. + ;;
  26554. + esac
  26555. + done
  26556. +
  26557. +
  26558. + case $host in
  26559. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  26560. + # don't eliminate duplications in $postdeps and $predeps
  26561. + opt_duplicate_compiler_generated_deps=:
  26562. + ;;
  26563. + *)
  26564. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  26565. + ;;
  26566. + esac
  26567. +
  26568. + # Having warned about all mis-specified options, bail out if
  26569. + # anything was wrong.
  26570. + $exit_cmd $EXIT_FAILURE
  26571. +}
  26572. +
  26573. +# func_check_version_match
  26574. +# Ensure that we are using m4 macros, and libtool script from the same
  26575. +# release of libtool.
  26576. +func_check_version_match ()
  26577. +{
  26578. + if test "$package_revision" != "$macro_revision"; then
  26579. + if test "$VERSION" != "$macro_version"; then
  26580. + if test -z "$macro_version"; then
  26581. + cat >&2 <<_LT_EOF
  26582. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  26583. +$progname: definition of this LT_INIT comes from an older release.
  26584. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  26585. +$progname: and run autoconf again.
  26586. +_LT_EOF
  26587. + else
  26588. + cat >&2 <<_LT_EOF
  26589. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  26590. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  26591. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  26592. +$progname: and run autoconf again.
  26593. +_LT_EOF
  26594. + fi
  26595. + else
  26596. + cat >&2 <<_LT_EOF
  26597. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  26598. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  26599. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  26600. +$progname: of $PACKAGE $VERSION and run autoconf again.
  26601. +_LT_EOF
  26602. + fi
  26603. +
  26604. + exit $EXIT_MISMATCH
  26605. + fi
  26606. +}
  26607. +
  26608. +
  26609. +## ----------- ##
  26610. +## Main. ##
  26611. +## ----------- ##
  26612. +
  26613. +$opt_help || {
  26614. + # Sanity checks first:
  26615. + func_check_version_match
  26616. +
  26617. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  26618. + func_fatal_configuration "not configured to build any kind of library"
  26619. + fi
  26620. +
  26621. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  26622. +
  26623. +
  26624. + # Darwin sucks
  26625. + eval std_shrext=\"$shrext_cmds\"
  26626. +
  26627. +
  26628. + # Only execute mode is allowed to have -dlopen flags.
  26629. + if test -n "$execute_dlfiles" && test "$mode" != execute; then
  26630. + func_error "unrecognized option \`-dlopen'"
  26631. + $ECHO "$help" 1>&2
  26632. + exit $EXIT_FAILURE
  26633. + fi
  26634. +
  26635. + # Change the help message to a mode-specific one.
  26636. + generic_help="$help"
  26637. + help="Try \`$progname --help --mode=$mode' for more information."
  26638. +}
  26639. +
  26640. +
  26641. +# func_lalib_p file
  26642. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  26643. +# This function is only a basic sanity check; it will hardly flush out
  26644. +# determined imposters.
  26645. +func_lalib_p ()
  26646. +{
  26647. + test -f "$1" &&
  26648. + $SED -e 4q "$1" 2>/dev/null \
  26649. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  26650. +}
  26651. +
  26652. +# func_lalib_unsafe_p file
  26653. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  26654. +# This function implements the same check as func_lalib_p without
  26655. +# resorting to external programs. To this end, it redirects stdin and
  26656. +# closes it afterwards, without saving the original file descriptor.
  26657. +# As a safety measure, use it only where a negative result would be
  26658. +# fatal anyway. Works if `file' does not exist.
  26659. +func_lalib_unsafe_p ()
  26660. +{
  26661. + lalib_p=no
  26662. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  26663. + for lalib_p_l in 1 2 3 4
  26664. + do
  26665. + read lalib_p_line
  26666. + case "$lalib_p_line" in
  26667. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  26668. + esac
  26669. + done
  26670. + exec 0<&5 5<&-
  26671. + fi
  26672. + test "$lalib_p" = yes
  26673. +}
  26674. +
  26675. +# func_ltwrapper_script_p file
  26676. +# True iff FILE is a libtool wrapper script
  26677. +# This function is only a basic sanity check; it will hardly flush out
  26678. +# determined imposters.
  26679. +func_ltwrapper_script_p ()
  26680. +{
  26681. + func_lalib_p "$1"
  26682. +}
  26683. +
  26684. +# func_ltwrapper_executable_p file
  26685. +# True iff FILE is a libtool wrapper executable
  26686. +# This function is only a basic sanity check; it will hardly flush out
  26687. +# determined imposters.
  26688. +func_ltwrapper_executable_p ()
  26689. +{
  26690. + func_ltwrapper_exec_suffix=
  26691. + case $1 in
  26692. + *.exe) ;;
  26693. + *) func_ltwrapper_exec_suffix=.exe ;;
  26694. + esac
  26695. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  26696. +}
  26697. +
  26698. +# func_ltwrapper_scriptname file
  26699. +# Assumes file is an ltwrapper_executable
  26700. +# uses $file to determine the appropriate filename for a
  26701. +# temporary ltwrapper_script.
  26702. +func_ltwrapper_scriptname ()
  26703. +{
  26704. + func_ltwrapper_scriptname_result=""
  26705. + if func_ltwrapper_executable_p "$1"; then
  26706. + func_dirname_and_basename "$1" "" "."
  26707. + func_stripname '' '.exe' "$func_basename_result"
  26708. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  26709. + fi
  26710. +}
  26711. +
  26712. +# func_ltwrapper_p file
  26713. +# True iff FILE is a libtool wrapper script or wrapper executable
  26714. +# This function is only a basic sanity check; it will hardly flush out
  26715. +# determined imposters.
  26716. +func_ltwrapper_p ()
  26717. +{
  26718. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  26719. +}
  26720. +
  26721. +
  26722. +# func_execute_cmds commands fail_cmd
  26723. +# Execute tilde-delimited COMMANDS.
  26724. +# If FAIL_CMD is given, eval that upon failure.
  26725. +# FAIL_CMD may read-access the current command in variable CMD!
  26726. +func_execute_cmds ()
  26727. +{
  26728. + $opt_debug
  26729. + save_ifs=$IFS; IFS='~'
  26730. + for cmd in $1; do
  26731. + IFS=$save_ifs
  26732. + eval cmd=\"$cmd\"
  26733. + func_show_eval "$cmd" "${2-:}"
  26734. + done
  26735. + IFS=$save_ifs
  26736. +}
  26737. +
  26738. +
  26739. +# func_source file
  26740. +# Source FILE, adding directory component if necessary.
  26741. +# Note that it is not necessary on cygwin/mingw to append a dot to
  26742. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  26743. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  26744. +# `FILE.' does not work on cygwin managed mounts.
  26745. +func_source ()
  26746. +{
  26747. + $opt_debug
  26748. + case $1 in
  26749. + */* | *\\*) . "$1" ;;
  26750. + *) . "./$1" ;;
  26751. + esac
  26752. +}
  26753. +
  26754. +
  26755. +# func_infer_tag arg
  26756. +# Infer tagged configuration to use if any are available and
  26757. +# if one wasn't chosen via the "--tag" command line option.
  26758. +# Only attempt this if the compiler in the base compile
  26759. +# command doesn't match the default compiler.
  26760. +# arg is usually of the form 'gcc ...'
  26761. +func_infer_tag ()
  26762. +{
  26763. + $opt_debug
  26764. + if test -n "$available_tags" && test -z "$tagname"; then
  26765. + CC_quoted=
  26766. + for arg in $CC; do
  26767. + func_quote_for_eval "$arg"
  26768. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  26769. + done
  26770. + case $@ in
  26771. + # Blanks in the command may have been stripped by the calling shell,
  26772. + # but not from the CC environment variable when configure was run.
  26773. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  26774. + # Blanks at the start of $base_compile will cause this to fail
  26775. + # if we don't check for them as well.
  26776. + *)
  26777. + for z in $available_tags; do
  26778. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  26779. + # Evaluate the configuration.
  26780. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  26781. + CC_quoted=
  26782. + for arg in $CC; do
  26783. + # Double-quote args containing other shell metacharacters.
  26784. + func_quote_for_eval "$arg"
  26785. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  26786. + done
  26787. + case "$@ " in
  26788. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  26789. + # The compiler in the base compile command matches
  26790. + # the one in the tagged configuration.
  26791. + # Assume this is the tagged configuration we want.
  26792. + tagname=$z
  26793. + break
  26794. + ;;
  26795. + esac
  26796. + fi
  26797. + done
  26798. + # If $tagname still isn't set, then no tagged configuration
  26799. + # was found and let the user know that the "--tag" command
  26800. + # line option must be used.
  26801. + if test -z "$tagname"; then
  26802. + func_echo "unable to infer tagged configuration"
  26803. + func_fatal_error "specify a tag with \`--tag'"
  26804. +# else
  26805. +# func_verbose "using $tagname tagged configuration"
  26806. + fi
  26807. + ;;
  26808. + esac
  26809. + fi
  26810. +}
  26811. +
  26812. +
  26813. +
  26814. +# func_write_libtool_object output_name pic_name nonpic_name
  26815. +# Create a libtool object file (analogous to a ".la" file),
  26816. +# but don't create it if we're doing a dry run.
  26817. +func_write_libtool_object ()
  26818. +{
  26819. + write_libobj=${1}
  26820. + if test "$build_libtool_libs" = yes; then
  26821. + write_lobj=\'${2}\'
  26822. + else
  26823. + write_lobj=none
  26824. + fi
  26825. +
  26826. + if test "$build_old_libs" = yes; then
  26827. + write_oldobj=\'${3}\'
  26828. + else
  26829. + write_oldobj=none
  26830. + fi
  26831. +
  26832. + $opt_dry_run || {
  26833. + cat >${write_libobj}T <<EOF
  26834. +# $write_libobj - a libtool object file
  26835. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  26836. +#
  26837. +# Please DO NOT delete this file!
  26838. +# It is necessary for linking the library.
  26839. +
  26840. +# Name of the PIC object.
  26841. +pic_object=$write_lobj
  26842. +
  26843. +# Name of the non-PIC object
  26844. +non_pic_object=$write_oldobj
  26845. +
  26846. +EOF
  26847. + $MV "${write_libobj}T" "${write_libobj}"
  26848. + }
  26849. +}
  26850. +
  26851. +# func_mode_compile arg...
  26852. +func_mode_compile ()
  26853. +{
  26854. + $opt_debug
  26855. + # Get the compilation command and the source file.
  26856. + base_compile=
  26857. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  26858. + suppress_opt=yes
  26859. + suppress_output=
  26860. + arg_mode=normal
  26861. + libobj=
  26862. + later=
  26863. + pie_flag=
  26864. +
  26865. + for arg
  26866. + do
  26867. + case $arg_mode in
  26868. + arg )
  26869. + # do not "continue". Instead, add this to base_compile
  26870. + lastarg="$arg"
  26871. + arg_mode=normal
  26872. + ;;
  26873. +
  26874. + target )
  26875. + libobj="$arg"
  26876. + arg_mode=normal
  26877. + continue
  26878. + ;;
  26879. +
  26880. + normal )
  26881. + # Accept any command-line options.
  26882. + case $arg in
  26883. + -o)
  26884. + test -n "$libobj" && \
  26885. + func_fatal_error "you cannot specify \`-o' more than once"
  26886. + arg_mode=target
  26887. + continue
  26888. + ;;
  26889. +
  26890. + -pie | -fpie | -fPIE)
  26891. + pie_flag="$pie_flag $arg"
  26892. + continue
  26893. + ;;
  26894. +
  26895. + -shared | -static | -prefer-pic | -prefer-non-pic)
  26896. + later="$later $arg"
  26897. + continue
  26898. + ;;
  26899. +
  26900. + -no-suppress)
  26901. + suppress_opt=no
  26902. + continue
  26903. + ;;
  26904. +
  26905. + -Xcompiler)
  26906. + arg_mode=arg # the next one goes into the "base_compile" arg list
  26907. + continue # The current "srcfile" will either be retained or
  26908. + ;; # replaced later. I would guess that would be a bug.
  26909. +
  26910. + -Wc,*)
  26911. + func_stripname '-Wc,' '' "$arg"
  26912. + args=$func_stripname_result
  26913. + lastarg=
  26914. + save_ifs="$IFS"; IFS=','
  26915. + for arg in $args; do
  26916. + IFS="$save_ifs"
  26917. + func_quote_for_eval "$arg"
  26918. + lastarg="$lastarg $func_quote_for_eval_result"
  26919. + done
  26920. + IFS="$save_ifs"
  26921. + func_stripname ' ' '' "$lastarg"
  26922. + lastarg=$func_stripname_result
  26923. +
  26924. + # Add the arguments to base_compile.
  26925. + base_compile="$base_compile $lastarg"
  26926. + continue
  26927. + ;;
  26928. +
  26929. + *)
  26930. + # Accept the current argument as the source file.
  26931. + # The previous "srcfile" becomes the current argument.
  26932. + #
  26933. + lastarg="$srcfile"
  26934. + srcfile="$arg"
  26935. + ;;
  26936. + esac # case $arg
  26937. + ;;
  26938. + esac # case $arg_mode
  26939. +
  26940. + # Aesthetically quote the previous argument.
  26941. + func_quote_for_eval "$lastarg"
  26942. + base_compile="$base_compile $func_quote_for_eval_result"
  26943. + done # for arg
  26944. +
  26945. + case $arg_mode in
  26946. + arg)
  26947. + func_fatal_error "you must specify an argument for -Xcompile"
  26948. + ;;
  26949. + target)
  26950. + func_fatal_error "you must specify a target with \`-o'"
  26951. + ;;
  26952. + *)
  26953. + # Get the name of the library object.
  26954. + test -z "$libobj" && {
  26955. + func_basename "$srcfile"
  26956. + libobj="$func_basename_result"
  26957. + }
  26958. + ;;
  26959. + esac
  26960. +
  26961. + # Recognize several different file suffixes.
  26962. + # If the user specifies -o file.o, it is replaced with file.lo
  26963. + case $libobj in
  26964. + *.[cCFSifmso] | \
  26965. + *.ada | *.adb | *.ads | *.asm | \
  26966. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  26967. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  26968. + func_xform "$libobj"
  26969. + libobj=$func_xform_result
  26970. + ;;
  26971. + esac
  26972. +
  26973. + case $libobj in
  26974. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  26975. + *)
  26976. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  26977. + ;;
  26978. + esac
  26979. +
  26980. + func_infer_tag $base_compile
  26981. +
  26982. + for arg in $later; do
  26983. + case $arg in
  26984. + -shared)
  26985. + test "$build_libtool_libs" != yes && \
  26986. + func_fatal_configuration "can not build a shared library"
  26987. + build_old_libs=no
  26988. + continue
  26989. + ;;
  26990. +
  26991. + -static)
  26992. + build_libtool_libs=no
  26993. + build_old_libs=yes
  26994. + continue
  26995. + ;;
  26996. +
  26997. + -prefer-pic)
  26998. + pic_mode=yes
  26999. + continue
  27000. + ;;
  27001. +
  27002. + -prefer-non-pic)
  27003. + pic_mode=no
  27004. + continue
  27005. + ;;
  27006. + esac
  27007. + done
  27008. +
  27009. + func_quote_for_eval "$libobj"
  27010. + test "X$libobj" != "X$func_quote_for_eval_result" \
  27011. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  27012. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  27013. + func_dirname_and_basename "$obj" "/" ""
  27014. + objname="$func_basename_result"
  27015. + xdir="$func_dirname_result"
  27016. + lobj=${xdir}$objdir/$objname
  27017. +
  27018. + test -z "$base_compile" && \
  27019. + func_fatal_help "you must specify a compilation command"
  27020. +
  27021. + # Delete any leftover library objects.
  27022. + if test "$build_old_libs" = yes; then
  27023. + removelist="$obj $lobj $libobj ${libobj}T"
  27024. + else
  27025. + removelist="$lobj $libobj ${libobj}T"
  27026. + fi
  27027. +
  27028. + # On Cygwin there's no "real" PIC flag so we must build both object types
  27029. + case $host_os in
  27030. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  27031. + pic_mode=default
  27032. + ;;
  27033. + esac
  27034. + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  27035. + # non-PIC code in shared libraries is not supported
  27036. + pic_mode=default
  27037. + fi
  27038. +
  27039. + # Calculate the filename of the output object if compiler does
  27040. + # not support -o with -c
  27041. + if test "$compiler_c_o" = no; then
  27042. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  27043. + lockfile="$output_obj.lock"
  27044. + else
  27045. + output_obj=
  27046. + need_locks=no
  27047. + lockfile=
  27048. + fi
  27049. +
  27050. + # Lock this critical section if it is needed
  27051. + # We use this script file to make the link, it avoids creating a new file
  27052. + if test "$need_locks" = yes; then
  27053. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  27054. + func_echo "Waiting for $lockfile to be removed"
  27055. + sleep 2
  27056. + done
  27057. + elif test "$need_locks" = warn; then
  27058. + if test -f "$lockfile"; then
  27059. + $ECHO "\
  27060. +*** ERROR, $lockfile exists and contains:
  27061. +`cat $lockfile 2>/dev/null`
  27062. +
  27063. +This indicates that another process is trying to use the same
  27064. +temporary object file, and libtool could not work around it because
  27065. +your compiler does not support \`-c' and \`-o' together. If you
  27066. +repeat this compilation, it may succeed, by chance, but you had better
  27067. +avoid parallel builds (make -j) in this platform, or get a better
  27068. +compiler."
  27069. +
  27070. + $opt_dry_run || $RM $removelist
  27071. + exit $EXIT_FAILURE
  27072. + fi
  27073. + removelist="$removelist $output_obj"
  27074. + $ECHO "$srcfile" > "$lockfile"
  27075. + fi
  27076. +
  27077. + $opt_dry_run || $RM $removelist
  27078. + removelist="$removelist $lockfile"
  27079. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  27080. +
  27081. + if test -n "$fix_srcfile_path"; then
  27082. + eval srcfile=\"$fix_srcfile_path\"
  27083. + fi
  27084. + func_quote_for_eval "$srcfile"
  27085. + qsrcfile=$func_quote_for_eval_result
  27086. +
  27087. + # Only build a PIC object if we are building libtool libraries.
  27088. + if test "$build_libtool_libs" = yes; then
  27089. + # Without this assignment, base_compile gets emptied.
  27090. + fbsd_hideous_sh_bug=$base_compile
  27091. +
  27092. + if test "$pic_mode" != no; then
  27093. + command="$base_compile $qsrcfile $pic_flag"
  27094. + else
  27095. + # Don't build PIC code
  27096. + command="$base_compile $qsrcfile"
  27097. + fi
  27098. +
  27099. + func_mkdir_p "$xdir$objdir"
  27100. +
  27101. + if test -z "$output_obj"; then
  27102. + # Place PIC objects in $objdir
  27103. + command="$command -o $lobj"
  27104. + fi
  27105. +
  27106. + func_show_eval_locale "$command" \
  27107. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  27108. +
  27109. + if test "$need_locks" = warn &&
  27110. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  27111. + $ECHO "\
  27112. +*** ERROR, $lockfile contains:
  27113. +`cat $lockfile 2>/dev/null`
  27114. +
  27115. +but it should contain:
  27116. +$srcfile
  27117. +
  27118. +This indicates that another process is trying to use the same
  27119. +temporary object file, and libtool could not work around it because
  27120. +your compiler does not support \`-c' and \`-o' together. If you
  27121. +repeat this compilation, it may succeed, by chance, but you had better
  27122. +avoid parallel builds (make -j) in this platform, or get a better
  27123. +compiler."
  27124. +
  27125. + $opt_dry_run || $RM $removelist
  27126. + exit $EXIT_FAILURE
  27127. + fi
  27128. +
  27129. + # Just move the object if needed, then go on to compile the next one
  27130. + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  27131. + func_show_eval '$MV "$output_obj" "$lobj"' \
  27132. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  27133. + fi
  27134. +
  27135. + # Allow error messages only from the first compilation.
  27136. + if test "$suppress_opt" = yes; then
  27137. + suppress_output=' >/dev/null 2>&1'
  27138. + fi
  27139. + fi
  27140. +
  27141. + # Only build a position-dependent object if we build old libraries.
  27142. + if test "$build_old_libs" = yes; then
  27143. + if test "$pic_mode" != yes; then
  27144. + # Don't build PIC code
  27145. + command="$base_compile $qsrcfile$pie_flag"
  27146. + else
  27147. + command="$base_compile $qsrcfile $pic_flag"
  27148. + fi
  27149. + if test "$compiler_c_o" = yes; then
  27150. + command="$command -o $obj"
  27151. + fi
  27152. +
  27153. + # Suppress compiler output if we already did a PIC compilation.
  27154. + command="$command$suppress_output"
  27155. + func_show_eval_locale "$command" \
  27156. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  27157. +
  27158. + if test "$need_locks" = warn &&
  27159. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  27160. + $ECHO "\
  27161. +*** ERROR, $lockfile contains:
  27162. +`cat $lockfile 2>/dev/null`
  27163. +
  27164. +but it should contain:
  27165. +$srcfile
  27166. +
  27167. +This indicates that another process is trying to use the same
  27168. +temporary object file, and libtool could not work around it because
  27169. +your compiler does not support \`-c' and \`-o' together. If you
  27170. +repeat this compilation, it may succeed, by chance, but you had better
  27171. +avoid parallel builds (make -j) in this platform, or get a better
  27172. +compiler."
  27173. +
  27174. + $opt_dry_run || $RM $removelist
  27175. + exit $EXIT_FAILURE
  27176. + fi
  27177. +
  27178. + # Just move the object if needed
  27179. + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  27180. + func_show_eval '$MV "$output_obj" "$obj"' \
  27181. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  27182. + fi
  27183. + fi
  27184. +
  27185. + $opt_dry_run || {
  27186. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  27187. +
  27188. + # Unlock the critical section if it was locked
  27189. + if test "$need_locks" != no; then
  27190. + removelist=$lockfile
  27191. + $RM "$lockfile"
  27192. + fi
  27193. + }
  27194. +
  27195. + exit $EXIT_SUCCESS
  27196. +}
  27197. +
  27198. +$opt_help || {
  27199. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  27200. +}
  27201. +
  27202. +func_mode_help ()
  27203. +{
  27204. + # We need to display help for each of the modes.
  27205. + case $mode in
  27206. + "")
  27207. + # Generic help is extracted from the usage comments
  27208. + # at the start of this file.
  27209. + func_help
  27210. + ;;
  27211. +
  27212. + clean)
  27213. + $ECHO \
  27214. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  27215. +
  27216. +Remove files from the build directory.
  27217. +
  27218. +RM is the name of the program to use to delete files associated with each FILE
  27219. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  27220. +to RM.
  27221. +
  27222. +If FILE is a libtool library, object or program, all the files associated
  27223. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  27224. + ;;
  27225. +
  27226. + compile)
  27227. + $ECHO \
  27228. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  27229. +
  27230. +Compile a source file into a libtool library object.
  27231. +
  27232. +This mode accepts the following additional options:
  27233. +
  27234. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  27235. + -no-suppress do not suppress compiler output for multiple passes
  27236. + -prefer-pic try to building PIC objects only
  27237. + -prefer-non-pic try to building non-PIC objects only
  27238. + -shared do not build a \`.o' file suitable for static linking
  27239. + -static only build a \`.o' file suitable for static linking
  27240. +
  27241. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  27242. +from the given SOURCEFILE.
  27243. +
  27244. +The output file name is determined by removing the directory component from
  27245. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  27246. +library object suffix, \`.lo'."
  27247. + ;;
  27248. +
  27249. + execute)
  27250. + $ECHO \
  27251. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  27252. +
  27253. +Automatically set library path, then run a program.
  27254. +
  27255. +This mode accepts the following additional options:
  27256. +
  27257. + -dlopen FILE add the directory containing FILE to the library path
  27258. +
  27259. +This mode sets the library path environment variable according to \`-dlopen'
  27260. +flags.
  27261. +
  27262. +If any of the ARGS are libtool executable wrappers, then they are translated
  27263. +into their corresponding uninstalled binary, and any of their required library
  27264. +directories are added to the library path.
  27265. +
  27266. +Then, COMMAND is executed, with ARGS as arguments."
  27267. + ;;
  27268. +
  27269. + finish)
  27270. + $ECHO \
  27271. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  27272. +
  27273. +Complete the installation of libtool libraries.
  27274. +
  27275. +Each LIBDIR is a directory that contains libtool libraries.
  27276. +
  27277. +The commands that this mode executes may require superuser privileges. Use
  27278. +the \`--dry-run' option if you just want to see what would be executed."
  27279. + ;;
  27280. +
  27281. + install)
  27282. + $ECHO \
  27283. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  27284. +
  27285. +Install executables or libraries.
  27286. +
  27287. +INSTALL-COMMAND is the installation command. The first component should be
  27288. +either the \`install' or \`cp' program.
  27289. +
  27290. +The following components of INSTALL-COMMAND are treated specially:
  27291. +
  27292. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  27293. +
  27294. +The rest of the components are interpreted as arguments to that command (only
  27295. +BSD-compatible install options are recognized)."
  27296. + ;;
  27297. +
  27298. + link)
  27299. + $ECHO \
  27300. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  27301. +
  27302. +Link object files or libraries together to form another library, or to
  27303. +create an executable program.
  27304. +
  27305. +LINK-COMMAND is a command using the C compiler that you would use to create
  27306. +a program from several object files.
  27307. +
  27308. +The following components of LINK-COMMAND are treated specially:
  27309. +
  27310. + -all-static do not do any dynamic linking at all
  27311. + -avoid-version do not add a version suffix if possible
  27312. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  27313. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  27314. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  27315. + -export-symbols SYMFILE
  27316. + try to export only the symbols listed in SYMFILE
  27317. + -export-symbols-regex REGEX
  27318. + try to export only the symbols matching REGEX
  27319. + -LLIBDIR search LIBDIR for required installed libraries
  27320. + -lNAME OUTPUT-FILE requires the installed library libNAME
  27321. + -module build a library that can dlopened
  27322. + -no-fast-install disable the fast-install mode
  27323. + -no-install link a not-installable executable
  27324. + -no-undefined declare that a library does not refer to external symbols
  27325. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  27326. + -objectlist FILE Use a list of object files found in FILE to specify objects
  27327. + -precious-files-regex REGEX
  27328. + don't remove output files matching REGEX
  27329. + -release RELEASE specify package release information
  27330. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  27331. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  27332. + -shared only do dynamic linking of libtool libraries
  27333. + -shrext SUFFIX override the standard shared library file extension
  27334. + -static do not do any dynamic linking of uninstalled libtool libraries
  27335. + -static-libtool-libs
  27336. + do not do any dynamic linking of libtool libraries
  27337. + -version-info CURRENT[:REVISION[:AGE]]
  27338. + specify library version info [each variable defaults to 0]
  27339. + -weak LIBNAME declare that the target provides the LIBNAME interface
  27340. +
  27341. +All other options (arguments beginning with \`-') are ignored.
  27342. +
  27343. +Every other argument is treated as a filename. Files ending in \`.la' are
  27344. +treated as uninstalled libtool libraries, other files are standard or library
  27345. +object files.
  27346. +
  27347. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  27348. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  27349. +required, except when creating a convenience library.
  27350. +
  27351. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  27352. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  27353. +
  27354. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  27355. +is created, otherwise an executable program is created."
  27356. + ;;
  27357. +
  27358. + uninstall)
  27359. + $ECHO \
  27360. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  27361. +
  27362. +Remove libraries from an installation directory.
  27363. +
  27364. +RM is the name of the program to use to delete files associated with each FILE
  27365. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  27366. +to RM.
  27367. +
  27368. +If FILE is a libtool library, all the files associated with it are deleted.
  27369. +Otherwise, only FILE itself is deleted using RM."
  27370. + ;;
  27371. +
  27372. + *)
  27373. + func_fatal_help "invalid operation mode \`$mode'"
  27374. + ;;
  27375. + esac
  27376. +
  27377. + $ECHO
  27378. + $ECHO "Try \`$progname --help' for more information about other modes."
  27379. +
  27380. + exit $?
  27381. +}
  27382. +
  27383. + # Now that we've collected a possible --mode arg, show help if necessary
  27384. + $opt_help && func_mode_help
  27385. +
  27386. +
  27387. +# func_mode_execute arg...
  27388. +func_mode_execute ()
  27389. +{
  27390. + $opt_debug
  27391. + # The first argument is the command name.
  27392. + cmd="$nonopt"
  27393. + test -z "$cmd" && \
  27394. + func_fatal_help "you must specify a COMMAND"
  27395. +
  27396. + # Handle -dlopen flags immediately.
  27397. + for file in $execute_dlfiles; do
  27398. + test -f "$file" \
  27399. + || func_fatal_help "\`$file' is not a file"
  27400. +
  27401. + dir=
  27402. + case $file in
  27403. + *.la)
  27404. + # Check to see that this really is a libtool archive.
  27405. + func_lalib_unsafe_p "$file" \
  27406. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  27407. +
  27408. + # Read the libtool library.
  27409. + dlname=
  27410. + library_names=
  27411. + func_source "$file"
  27412. +
  27413. + # Skip this library if it cannot be dlopened.
  27414. + if test -z "$dlname"; then
  27415. + # Warn if it was a shared library.
  27416. + test -n "$library_names" && \
  27417. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  27418. + continue
  27419. + fi
  27420. +
  27421. + func_dirname "$file" "" "."
  27422. + dir="$func_dirname_result"
  27423. +
  27424. + if test -f "$dir/$objdir/$dlname"; then
  27425. + dir="$dir/$objdir"
  27426. + else
  27427. + if test ! -f "$dir/$dlname"; then
  27428. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  27429. + fi
  27430. + fi
  27431. + ;;
  27432. +
  27433. + *.lo)
  27434. + # Just add the directory containing the .lo file.
  27435. + func_dirname "$file" "" "."
  27436. + dir="$func_dirname_result"
  27437. + ;;
  27438. +
  27439. + *)
  27440. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  27441. + continue
  27442. + ;;
  27443. + esac
  27444. +
  27445. + # Get the absolute pathname.
  27446. + absdir=`cd "$dir" && pwd`
  27447. + test -n "$absdir" && dir="$absdir"
  27448. +
  27449. + # Now add the directory to shlibpath_var.
  27450. + if eval "test -z \"\$$shlibpath_var\""; then
  27451. + eval "$shlibpath_var=\"\$dir\""
  27452. + else
  27453. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  27454. + fi
  27455. + done
  27456. +
  27457. + # This variable tells wrapper scripts just to set shlibpath_var
  27458. + # rather than running their programs.
  27459. + libtool_execute_magic="$magic"
  27460. +
  27461. + # Check if any of the arguments is a wrapper script.
  27462. + args=
  27463. + for file
  27464. + do
  27465. + case $file in
  27466. + -*) ;;
  27467. + *)
  27468. + # Do a test to see if this is really a libtool program.
  27469. + if func_ltwrapper_script_p "$file"; then
  27470. + func_source "$file"
  27471. + # Transform arg to wrapped name.
  27472. + file="$progdir/$program"
  27473. + elif func_ltwrapper_executable_p "$file"; then
  27474. + func_ltwrapper_scriptname "$file"
  27475. + func_source "$func_ltwrapper_scriptname_result"
  27476. + # Transform arg to wrapped name.
  27477. + file="$progdir/$program"
  27478. + fi
  27479. + ;;
  27480. + esac
  27481. + # Quote arguments (to preserve shell metacharacters).
  27482. + func_quote_for_eval "$file"
  27483. + args="$args $func_quote_for_eval_result"
  27484. + done
  27485. +
  27486. + if test "X$opt_dry_run" = Xfalse; then
  27487. + if test -n "$shlibpath_var"; then
  27488. + # Export the shlibpath_var.
  27489. + eval "export $shlibpath_var"
  27490. + fi
  27491. +
  27492. + # Restore saved environment variables
  27493. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  27494. + do
  27495. + eval "if test \"\${save_$lt_var+set}\" = set; then
  27496. + $lt_var=\$save_$lt_var; export $lt_var
  27497. + else
  27498. + $lt_unset $lt_var
  27499. + fi"
  27500. + done
  27501. +
  27502. + # Now prepare to actually exec the command.
  27503. + exec_cmd="\$cmd$args"
  27504. + else
  27505. + # Display what would be done.
  27506. + if test -n "$shlibpath_var"; then
  27507. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  27508. + $ECHO "export $shlibpath_var"
  27509. + fi
  27510. + $ECHO "$cmd$args"
  27511. + exit $EXIT_SUCCESS
  27512. + fi
  27513. +}
  27514. +
  27515. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  27516. +
  27517. +
  27518. +# func_mode_finish arg...
  27519. +func_mode_finish ()
  27520. +{
  27521. + $opt_debug
  27522. + libdirs="$nonopt"
  27523. + admincmds=
  27524. +
  27525. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  27526. + for dir
  27527. + do
  27528. + libdirs="$libdirs $dir"
  27529. + done
  27530. +
  27531. + for libdir in $libdirs; do
  27532. + if test -n "$finish_cmds"; then
  27533. + # Do each command in the finish commands.
  27534. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  27535. +'"$cmd"'"'
  27536. + fi
  27537. + if test -n "$finish_eval"; then
  27538. + # Do the single finish_eval.
  27539. + eval cmds=\"$finish_eval\"
  27540. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  27541. + $cmds"
  27542. + fi
  27543. + done
  27544. + fi
  27545. +
  27546. + # Exit here if they wanted silent mode.
  27547. + $opt_silent && exit $EXIT_SUCCESS
  27548. +
  27549. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  27550. + $ECHO "Libraries have been installed in:"
  27551. + for libdir in $libdirs; do
  27552. + $ECHO " $libdir"
  27553. + done
  27554. + $ECHO
  27555. + $ECHO "If you ever happen to want to link against installed libraries"
  27556. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  27557. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  27558. + $ECHO "flag during linking and do at least one of the following:"
  27559. + if test -n "$shlibpath_var"; then
  27560. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  27561. + $ECHO " during execution"
  27562. + fi
  27563. + if test -n "$runpath_var"; then
  27564. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  27565. + $ECHO " during linking"
  27566. + fi
  27567. + if test -n "$hardcode_libdir_flag_spec"; then
  27568. + libdir=LIBDIR
  27569. + eval flag=\"$hardcode_libdir_flag_spec\"
  27570. +
  27571. + $ECHO " - use the \`$flag' linker flag"
  27572. + fi
  27573. + if test -n "$admincmds"; then
  27574. + $ECHO " - have your system administrator run these commands:$admincmds"
  27575. + fi
  27576. + if test -f /etc/ld.so.conf; then
  27577. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  27578. + fi
  27579. + $ECHO
  27580. +
  27581. + $ECHO "See any operating system documentation about shared libraries for"
  27582. + case $host in
  27583. + solaris2.[6789]|solaris2.1[0-9])
  27584. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  27585. + $ECHO "pages."
  27586. + ;;
  27587. + *)
  27588. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  27589. + ;;
  27590. + esac
  27591. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  27592. + exit $EXIT_SUCCESS
  27593. +}
  27594. +
  27595. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  27596. +
  27597. +
  27598. +# func_mode_install arg...
  27599. +func_mode_install ()
  27600. +{
  27601. + $opt_debug
  27602. + # There may be an optional sh(1) argument at the beginning of
  27603. + # install_prog (especially on Windows NT).
  27604. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  27605. + # Allow the use of GNU shtool's install command.
  27606. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  27607. + # Aesthetically quote it.
  27608. + func_quote_for_eval "$nonopt"
  27609. + install_prog="$func_quote_for_eval_result "
  27610. + arg=$1
  27611. + shift
  27612. + else
  27613. + install_prog=
  27614. + arg=$nonopt
  27615. + fi
  27616. +
  27617. + # The real first argument should be the name of the installation program.
  27618. + # Aesthetically quote it.
  27619. + func_quote_for_eval "$arg"
  27620. + install_prog="$install_prog$func_quote_for_eval_result"
  27621. +
  27622. + # We need to accept at least all the BSD install flags.
  27623. + dest=
  27624. + files=
  27625. + opts=
  27626. + prev=
  27627. + install_type=
  27628. + isdir=no
  27629. + stripme=
  27630. + for arg
  27631. + do
  27632. + if test -n "$dest"; then
  27633. + files="$files $dest"
  27634. + dest=$arg
  27635. + continue
  27636. + fi
  27637. +
  27638. + case $arg in
  27639. + -d) isdir=yes ;;
  27640. + -f)
  27641. + case " $install_prog " in
  27642. + *[\\\ /]cp\ *) ;;
  27643. + *) prev=$arg ;;
  27644. + esac
  27645. + ;;
  27646. + -g | -m | -o)
  27647. + prev=$arg
  27648. + ;;
  27649. + -s)
  27650. + stripme=" -s"
  27651. + continue
  27652. + ;;
  27653. + -*)
  27654. + ;;
  27655. + *)
  27656. + # If the previous option needed an argument, then skip it.
  27657. + if test -n "$prev"; then
  27658. + prev=
  27659. + else
  27660. + dest=$arg
  27661. + continue
  27662. + fi
  27663. + ;;
  27664. + esac
  27665. +
  27666. + # Aesthetically quote the argument.
  27667. + func_quote_for_eval "$arg"
  27668. + install_prog="$install_prog $func_quote_for_eval_result"
  27669. + done
  27670. +
  27671. + test -z "$install_prog" && \
  27672. + func_fatal_help "you must specify an install program"
  27673. +
  27674. + test -n "$prev" && \
  27675. + func_fatal_help "the \`$prev' option requires an argument"
  27676. +
  27677. + if test -z "$files"; then
  27678. + if test -z "$dest"; then
  27679. + func_fatal_help "no file or destination specified"
  27680. + else
  27681. + func_fatal_help "you must specify a destination"
  27682. + fi
  27683. + fi
  27684. +
  27685. + # Strip any trailing slash from the destination.
  27686. + func_stripname '' '/' "$dest"
  27687. + dest=$func_stripname_result
  27688. +
  27689. + # Check to see that the destination is a directory.
  27690. + test -d "$dest" && isdir=yes
  27691. + if test "$isdir" = yes; then
  27692. + destdir="$dest"
  27693. + destname=
  27694. + else
  27695. + func_dirname_and_basename "$dest" "" "."
  27696. + destdir="$func_dirname_result"
  27697. + destname="$func_basename_result"
  27698. +
  27699. + # Not a directory, so check to see that there is only one file specified.
  27700. + set dummy $files; shift
  27701. + test "$#" -gt 1 && \
  27702. + func_fatal_help "\`$dest' is not a directory"
  27703. + fi
  27704. + case $destdir in
  27705. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  27706. + *)
  27707. + for file in $files; do
  27708. + case $file in
  27709. + *.lo) ;;
  27710. + *)
  27711. + func_fatal_help "\`$destdir' must be an absolute directory name"
  27712. + ;;
  27713. + esac
  27714. + done
  27715. + ;;
  27716. + esac
  27717. +
  27718. + # This variable tells wrapper scripts just to set variables rather
  27719. + # than running their programs.
  27720. + libtool_install_magic="$magic"
  27721. +
  27722. + staticlibs=
  27723. + future_libdirs=
  27724. + current_libdirs=
  27725. + for file in $files; do
  27726. +
  27727. + # Do each installation.
  27728. + case $file in
  27729. + *.$libext)
  27730. + # Do the static libraries later.
  27731. + staticlibs="$staticlibs $file"
  27732. + ;;
  27733. +
  27734. + *.la)
  27735. + # Check to see that this really is a libtool archive.
  27736. + func_lalib_unsafe_p "$file" \
  27737. + || func_fatal_help "\`$file' is not a valid libtool archive"
  27738. +
  27739. + library_names=
  27740. + old_library=
  27741. + relink_command=
  27742. + func_source "$file"
  27743. +
  27744. + # Add the libdir to current_libdirs if it is the destination.
  27745. + if test "X$destdir" = "X$libdir"; then
  27746. + case "$current_libdirs " in
  27747. + *" $libdir "*) ;;
  27748. + *) current_libdirs="$current_libdirs $libdir" ;;
  27749. + esac
  27750. + else
  27751. + # Note the libdir as a future libdir.
  27752. + case "$future_libdirs " in
  27753. + *" $libdir "*) ;;
  27754. + *) future_libdirs="$future_libdirs $libdir" ;;
  27755. + esac
  27756. + fi
  27757. +
  27758. + func_dirname "$file" "/" ""
  27759. + dir="$func_dirname_result"
  27760. + dir="$dir$objdir"
  27761. +
  27762. + if test -n "$relink_command"; then
  27763. + # Determine the prefix the user has applied to our future dir.
  27764. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  27765. +
  27766. + # Don't allow the user to place us outside of our expected
  27767. + # location b/c this prevents finding dependent libraries that
  27768. + # are installed to the same prefix.
  27769. + # At present, this check doesn't affect windows .dll's that
  27770. + # are installed into $libdir/../bin (currently, that works fine)
  27771. + # but it's something to keep an eye on.
  27772. + test "$inst_prefix_dir" = "$destdir" && \
  27773. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  27774. +
  27775. + if test -n "$inst_prefix_dir"; then
  27776. + # Stick the inst_prefix_dir data into the link command.
  27777. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  27778. + else
  27779. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  27780. + fi
  27781. +
  27782. + func_warning "relinking \`$file'"
  27783. + func_show_eval "$relink_command" \
  27784. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  27785. + fi
  27786. +
  27787. + # See the names of the shared library.
  27788. + set dummy $library_names; shift
  27789. + if test -n "$1"; then
  27790. + realname="$1"
  27791. + shift
  27792. +
  27793. + srcname="$realname"
  27794. + test -n "$relink_command" && srcname="$realname"T
  27795. +
  27796. + # Install the shared library and build the symlinks.
  27797. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  27798. + 'exit $?'
  27799. + tstripme="$stripme"
  27800. + case $host_os in
  27801. + cygwin* | mingw* | pw32* | cegcc*)
  27802. + case $realname in
  27803. + *.dll.a)
  27804. + tstripme=""
  27805. + ;;
  27806. + esac
  27807. + ;;
  27808. + esac
  27809. + if test -n "$tstripme" && test -n "$striplib"; then
  27810. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  27811. + fi
  27812. +
  27813. + if test "$#" -gt 0; then
  27814. + # Delete the old symlinks, and create new ones.
  27815. + # Try `ln -sf' first, because the `ln' binary might depend on
  27816. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  27817. + # so we also need to try rm && ln -s.
  27818. + for linkname
  27819. + do
  27820. + test "$linkname" != "$realname" \
  27821. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  27822. + done
  27823. + fi
  27824. +
  27825. + # Do each command in the postinstall commands.
  27826. + lib="$destdir/$realname"
  27827. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  27828. + fi
  27829. +
  27830. + # Install the pseudo-library for information purposes.
  27831. + func_basename "$file"
  27832. + name="$func_basename_result"
  27833. + instname="$dir/$name"i
  27834. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  27835. +
  27836. + # Maybe install the static library, too.
  27837. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  27838. + ;;
  27839. +
  27840. + *.lo)
  27841. + # Install (i.e. copy) a libtool object.
  27842. +
  27843. + # Figure out destination file name, if it wasn't already specified.
  27844. + if test -n "$destname"; then
  27845. + destfile="$destdir/$destname"
  27846. + else
  27847. + func_basename "$file"
  27848. + destfile="$func_basename_result"
  27849. + destfile="$destdir/$destfile"
  27850. + fi
  27851. +
  27852. + # Deduce the name of the destination old-style object file.
  27853. + case $destfile in
  27854. + *.lo)
  27855. + func_lo2o "$destfile"
  27856. + staticdest=$func_lo2o_result
  27857. + ;;
  27858. + *.$objext)
  27859. + staticdest="$destfile"
  27860. + destfile=
  27861. + ;;
  27862. + *)
  27863. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  27864. + ;;
  27865. + esac
  27866. +
  27867. + # Install the libtool object if requested.
  27868. + test -n "$destfile" && \
  27869. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  27870. +
  27871. + # Install the old object if enabled.
  27872. + if test "$build_old_libs" = yes; then
  27873. + # Deduce the name of the old-style object file.
  27874. + func_lo2o "$file"
  27875. + staticobj=$func_lo2o_result
  27876. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  27877. + fi
  27878. + exit $EXIT_SUCCESS
  27879. + ;;
  27880. +
  27881. + *)
  27882. + # Figure out destination file name, if it wasn't already specified.
  27883. + if test -n "$destname"; then
  27884. + destfile="$destdir/$destname"
  27885. + else
  27886. + func_basename "$file"
  27887. + destfile="$func_basename_result"
  27888. + destfile="$destdir/$destfile"
  27889. + fi
  27890. +
  27891. + # If the file is missing, and there is a .exe on the end, strip it
  27892. + # because it is most likely a libtool script we actually want to
  27893. + # install
  27894. + stripped_ext=""
  27895. + case $file in
  27896. + *.exe)
  27897. + if test ! -f "$file"; then
  27898. + func_stripname '' '.exe' "$file"
  27899. + file=$func_stripname_result
  27900. + stripped_ext=".exe"
  27901. + fi
  27902. + ;;
  27903. + esac
  27904. +
  27905. + # Do a test to see if this is really a libtool program.
  27906. + case $host in
  27907. + *cygwin* | *mingw*)
  27908. + if func_ltwrapper_executable_p "$file"; then
  27909. + func_ltwrapper_scriptname "$file"
  27910. + wrapper=$func_ltwrapper_scriptname_result
  27911. + else
  27912. + func_stripname '' '.exe' "$file"
  27913. + wrapper=$func_stripname_result
  27914. + fi
  27915. + ;;
  27916. + *)
  27917. + wrapper=$file
  27918. + ;;
  27919. + esac
  27920. + if func_ltwrapper_script_p "$wrapper"; then
  27921. + notinst_deplibs=
  27922. + relink_command=
  27923. +
  27924. + func_source "$wrapper"
  27925. +
  27926. + # Check the variables that should have been set.
  27927. + test -z "$generated_by_libtool_version" && \
  27928. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  27929. +
  27930. + finalize=yes
  27931. + for lib in $notinst_deplibs; do
  27932. + # Check to see that each library is installed.
  27933. + libdir=
  27934. + if test -f "$lib"; then
  27935. + func_source "$lib"
  27936. + fi
  27937. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  27938. + if test -n "$libdir" && test ! -f "$libfile"; then
  27939. + func_warning "\`$lib' has not been installed in \`$libdir'"
  27940. + finalize=no
  27941. + fi
  27942. + done
  27943. +
  27944. + relink_command=
  27945. + func_source "$wrapper"
  27946. +
  27947. + outputname=
  27948. + if test "$fast_install" = no && test -n "$relink_command"; then
  27949. + $opt_dry_run || {
  27950. + if test "$finalize" = yes; then
  27951. + tmpdir=`func_mktempdir`
  27952. + func_basename "$file$stripped_ext"
  27953. + file="$func_basename_result"
  27954. + outputname="$tmpdir/$file"
  27955. + # Replace the output file specification.
  27956. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  27957. +
  27958. + $opt_silent || {
  27959. + func_quote_for_expand "$relink_command"
  27960. + eval "func_echo $func_quote_for_expand_result"
  27961. + }
  27962. + if eval "$relink_command"; then :
  27963. + else
  27964. + func_error "error: relink \`$file' with the above command before installing it"
  27965. + $opt_dry_run || ${RM}r "$tmpdir"
  27966. + continue
  27967. + fi
  27968. + file="$outputname"
  27969. + else
  27970. + func_warning "cannot relink \`$file'"
  27971. + fi
  27972. + }
  27973. + else
  27974. + # Install the binary that we compiled earlier.
  27975. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  27976. + fi
  27977. + fi
  27978. +
  27979. + # remove .exe since cygwin /usr/bin/install will append another
  27980. + # one anyway
  27981. + case $install_prog,$host in
  27982. + */usr/bin/install*,*cygwin*)
  27983. + case $file:$destfile in
  27984. + *.exe:*.exe)
  27985. + # this is ok
  27986. + ;;
  27987. + *.exe:*)
  27988. + destfile=$destfile.exe
  27989. + ;;
  27990. + *:*.exe)
  27991. + func_stripname '' '.exe' "$destfile"
  27992. + destfile=$func_stripname_result
  27993. + ;;
  27994. + esac
  27995. + ;;
  27996. + esac
  27997. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  27998. + $opt_dry_run || if test -n "$outputname"; then
  27999. + ${RM}r "$tmpdir"
  28000. + fi
  28001. + ;;
  28002. + esac
  28003. + done
  28004. +
  28005. + for file in $staticlibs; do
  28006. + func_basename "$file"
  28007. + name="$func_basename_result"
  28008. +
  28009. + # Set up the ranlib parameters.
  28010. + oldlib="$destdir/$name"
  28011. +
  28012. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  28013. +
  28014. + if test -n "$stripme" && test -n "$old_striplib"; then
  28015. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  28016. + fi
  28017. +
  28018. + # Do each command in the postinstall commands.
  28019. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  28020. + done
  28021. +
  28022. + test -n "$future_libdirs" && \
  28023. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  28024. +
  28025. + if test -n "$current_libdirs"; then
  28026. + # Maybe just do a dry run.
  28027. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  28028. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  28029. + else
  28030. + exit $EXIT_SUCCESS
  28031. + fi
  28032. +}
  28033. +
  28034. +test "$mode" = install && func_mode_install ${1+"$@"}
  28035. +
  28036. +
  28037. +# func_generate_dlsyms outputname originator pic_p
  28038. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  28039. +# a dlpreopen symbol table.
  28040. +func_generate_dlsyms ()
  28041. +{
  28042. + $opt_debug
  28043. + my_outputname="$1"
  28044. + my_originator="$2"
  28045. + my_pic_p="${3-no}"
  28046. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  28047. + my_dlsyms=
  28048. +
  28049. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  28050. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  28051. + my_dlsyms="${my_outputname}S.c"
  28052. + else
  28053. + func_error "not configured to extract global symbols from dlpreopened files"
  28054. + fi
  28055. + fi
  28056. +
  28057. + if test -n "$my_dlsyms"; then
  28058. + case $my_dlsyms in
  28059. + "") ;;
  28060. + *.c)
  28061. + # Discover the nlist of each of the dlfiles.
  28062. + nlist="$output_objdir/${my_outputname}.nm"
  28063. +
  28064. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  28065. +
  28066. + # Parse the name list into a source file.
  28067. + func_verbose "creating $output_objdir/$my_dlsyms"
  28068. +
  28069. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  28070. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  28071. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  28072. +
  28073. +#ifdef __cplusplus
  28074. +extern \"C\" {
  28075. +#endif
  28076. +
  28077. +/* External symbol declarations for the compiler. */\
  28078. +"
  28079. +
  28080. + if test "$dlself" = yes; then
  28081. + func_verbose "generating symbol list for \`$output'"
  28082. +
  28083. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  28084. +
  28085. + # Add our own program objects to the symbol list.
  28086. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  28087. + for progfile in $progfiles; do
  28088. + func_verbose "extracting global C symbols from \`$progfile'"
  28089. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  28090. + done
  28091. +
  28092. + if test -n "$exclude_expsyms"; then
  28093. + $opt_dry_run || {
  28094. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  28095. + eval '$MV "$nlist"T "$nlist"'
  28096. + }
  28097. + fi
  28098. +
  28099. + if test -n "$export_symbols_regex"; then
  28100. + $opt_dry_run || {
  28101. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  28102. + eval '$MV "$nlist"T "$nlist"'
  28103. + }
  28104. + fi
  28105. +
  28106. + # Prepare the list of exported symbols
  28107. + if test -z "$export_symbols"; then
  28108. + export_symbols="$output_objdir/$outputname.exp"
  28109. + $opt_dry_run || {
  28110. + $RM $export_symbols
  28111. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  28112. + case $host in
  28113. + *cygwin* | *mingw* | *cegcc* )
  28114. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  28115. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  28116. + ;;
  28117. + esac
  28118. + }
  28119. + else
  28120. + $opt_dry_run || {
  28121. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  28122. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  28123. + eval '$MV "$nlist"T "$nlist"'
  28124. + case $host in
  28125. + *cygwin | *mingw* | *cegcc* )
  28126. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  28127. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  28128. + ;;
  28129. + esac
  28130. + }
  28131. + fi
  28132. + fi
  28133. +
  28134. + for dlprefile in $dlprefiles; do
  28135. + func_verbose "extracting global C symbols from \`$dlprefile'"
  28136. + func_basename "$dlprefile"
  28137. + name="$func_basename_result"
  28138. + $opt_dry_run || {
  28139. + eval '$ECHO ": $name " >> "$nlist"'
  28140. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  28141. + }
  28142. + done
  28143. +
  28144. + $opt_dry_run || {
  28145. + # Make sure we have at least an empty file.
  28146. + test -f "$nlist" || : > "$nlist"
  28147. +
  28148. + if test -n "$exclude_expsyms"; then
  28149. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  28150. + $MV "$nlist"T "$nlist"
  28151. + fi
  28152. +
  28153. + # Try sorting and uniquifying the output.
  28154. + if $GREP -v "^: " < "$nlist" |
  28155. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  28156. + sort -k 3
  28157. + else
  28158. + sort +2
  28159. + fi |
  28160. + uniq > "$nlist"S; then
  28161. + :
  28162. + else
  28163. + $GREP -v "^: " < "$nlist" > "$nlist"S
  28164. + fi
  28165. +
  28166. + if test -f "$nlist"S; then
  28167. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  28168. + else
  28169. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  28170. + fi
  28171. +
  28172. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  28173. +
  28174. +/* The mapping between symbol names and symbols. */
  28175. +typedef struct {
  28176. + const char *name;
  28177. + void *address;
  28178. +} lt_dlsymlist;
  28179. +"
  28180. + case $host in
  28181. + *cygwin* | *mingw* | *cegcc* )
  28182. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  28183. +/* DATA imports from DLLs on WIN32 con't be const, because
  28184. + runtime relocations are performed -- see ld's documentation
  28185. + on pseudo-relocs. */"
  28186. + lt_dlsym_const= ;;
  28187. + *osf5*)
  28188. + echo >> "$output_objdir/$my_dlsyms" "\
  28189. +/* This system does not cope well with relocations in const data */"
  28190. + lt_dlsym_const= ;;
  28191. + *)
  28192. + lt_dlsym_const=const ;;
  28193. + esac
  28194. +
  28195. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  28196. +extern $lt_dlsym_const lt_dlsymlist
  28197. +lt_${my_prefix}_LTX_preloaded_symbols[];
  28198. +$lt_dlsym_const lt_dlsymlist
  28199. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  28200. +{\
  28201. + { \"$my_originator\", (void *) 0 },"
  28202. +
  28203. + case $need_lib_prefix in
  28204. + no)
  28205. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  28206. + ;;
  28207. + *)
  28208. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  28209. + ;;
  28210. + esac
  28211. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  28212. + {0, (void *) 0}
  28213. +};
  28214. +
  28215. +/* This works around a problem in FreeBSD linker */
  28216. +#ifdef FREEBSD_WORKAROUND
  28217. +static const void *lt_preloaded_setup() {
  28218. + return lt_${my_prefix}_LTX_preloaded_symbols;
  28219. +}
  28220. +#endif
  28221. +
  28222. +#ifdef __cplusplus
  28223. +}
  28224. +#endif\
  28225. +"
  28226. + } # !$opt_dry_run
  28227. +
  28228. + pic_flag_for_symtable=
  28229. + case "$compile_command " in
  28230. + *" -static "*) ;;
  28231. + *)
  28232. + case $host in
  28233. + # compiling the symbol table file with pic_flag works around
  28234. + # a FreeBSD bug that causes programs to crash when -lm is
  28235. + # linked before any other PIC object. But we must not use
  28236. + # pic_flag when linking with -static. The problem exists in
  28237. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  28238. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  28239. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  28240. + *-*-hpux*)
  28241. + pic_flag_for_symtable=" $pic_flag" ;;
  28242. + *)
  28243. + if test "X$my_pic_p" != Xno; then
  28244. + pic_flag_for_symtable=" $pic_flag"
  28245. + fi
  28246. + ;;
  28247. + esac
  28248. + ;;
  28249. + esac
  28250. + symtab_cflags=
  28251. + for arg in $LTCFLAGS; do
  28252. + case $arg in
  28253. + -pie | -fpie | -fPIE) ;;
  28254. + *) symtab_cflags="$symtab_cflags $arg" ;;
  28255. + esac
  28256. + done
  28257. +
  28258. + # Now compile the dynamic symbol file.
  28259. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  28260. +
  28261. + # Clean up the generated files.
  28262. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  28263. +
  28264. + # Transform the symbol file into the correct name.
  28265. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  28266. + case $host in
  28267. + *cygwin* | *mingw* | *cegcc* )
  28268. + if test -f "$output_objdir/$my_outputname.def"; then
  28269. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  28270. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  28271. + else
  28272. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  28273. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  28274. + fi
  28275. + ;;
  28276. + *)
  28277. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  28278. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  28279. + ;;
  28280. + esac
  28281. + ;;
  28282. + *)
  28283. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  28284. + ;;
  28285. + esac
  28286. + else
  28287. + # We keep going just in case the user didn't refer to
  28288. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  28289. + # really was required.
  28290. +
  28291. + # Nullify the symbol file.
  28292. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  28293. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  28294. + fi
  28295. +}
  28296. +
  28297. +# func_win32_libid arg
  28298. +# return the library type of file 'arg'
  28299. +#
  28300. +# Need a lot of goo to handle *both* DLLs and import libs
  28301. +# Has to be a shell function in order to 'eat' the argument
  28302. +# that is supplied when $file_magic_command is called.
  28303. +func_win32_libid ()
  28304. +{
  28305. + $opt_debug
  28306. + win32_libid_type="unknown"
  28307. + win32_fileres=`file -L $1 2>/dev/null`
  28308. + case $win32_fileres in
  28309. + *ar\ archive\ import\ library*) # definitely import
  28310. + win32_libid_type="x86 archive import"
  28311. + ;;
  28312. + *ar\ archive*) # could be an import, or static
  28313. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  28314. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  28315. + win32_nmres=`eval $NM -f posix -A $1 |
  28316. + $SED -n -e '
  28317. + 1,100{
  28318. + / I /{
  28319. + s,.*,import,
  28320. + p
  28321. + q
  28322. + }
  28323. + }'`
  28324. + case $win32_nmres in
  28325. + import*) win32_libid_type="x86 archive import";;
  28326. + *) win32_libid_type="x86 archive static";;
  28327. + esac
  28328. + fi
  28329. + ;;
  28330. + *DLL*)
  28331. + win32_libid_type="x86 DLL"
  28332. + ;;
  28333. + *executable*) # but shell scripts are "executable" too...
  28334. + case $win32_fileres in
  28335. + *MS\ Windows\ PE\ Intel*)
  28336. + win32_libid_type="x86 DLL"
  28337. + ;;
  28338. + esac
  28339. + ;;
  28340. + esac
  28341. + $ECHO "$win32_libid_type"
  28342. +}
  28343. +
  28344. +
  28345. +
  28346. +# func_extract_an_archive dir oldlib
  28347. +func_extract_an_archive ()
  28348. +{
  28349. + $opt_debug
  28350. + f_ex_an_ar_dir="$1"; shift
  28351. + f_ex_an_ar_oldlib="$1"
  28352. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  28353. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  28354. + :
  28355. + else
  28356. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  28357. + fi
  28358. +}
  28359. +
  28360. +
  28361. +# func_extract_archives gentop oldlib ...
  28362. +func_extract_archives ()
  28363. +{
  28364. + $opt_debug
  28365. + my_gentop="$1"; shift
  28366. + my_oldlibs=${1+"$@"}
  28367. + my_oldobjs=""
  28368. + my_xlib=""
  28369. + my_xabs=""
  28370. + my_xdir=""
  28371. +
  28372. + for my_xlib in $my_oldlibs; do
  28373. + # Extract the objects.
  28374. + case $my_xlib in
  28375. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  28376. + *) my_xabs=`pwd`"/$my_xlib" ;;
  28377. + esac
  28378. + func_basename "$my_xlib"
  28379. + my_xlib="$func_basename_result"
  28380. + my_xlib_u=$my_xlib
  28381. + while :; do
  28382. + case " $extracted_archives " in
  28383. + *" $my_xlib_u "*)
  28384. + func_arith $extracted_serial + 1
  28385. + extracted_serial=$func_arith_result
  28386. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  28387. + *) break ;;
  28388. + esac
  28389. + done
  28390. + extracted_archives="$extracted_archives $my_xlib_u"
  28391. + my_xdir="$my_gentop/$my_xlib_u"
  28392. +
  28393. + func_mkdir_p "$my_xdir"
  28394. +
  28395. + case $host in
  28396. + *-darwin*)
  28397. + func_verbose "Extracting $my_xabs"
  28398. + # Do not bother doing anything if just a dry run
  28399. + $opt_dry_run || {
  28400. + darwin_orig_dir=`pwd`
  28401. + cd $my_xdir || exit $?
  28402. + darwin_archive=$my_xabs
  28403. + darwin_curdir=`pwd`
  28404. + darwin_base_archive=`basename "$darwin_archive"`
  28405. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  28406. + if test -n "$darwin_arches"; then
  28407. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  28408. + darwin_arch=
  28409. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  28410. + for darwin_arch in $darwin_arches ; do
  28411. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  28412. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  28413. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  28414. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  28415. + cd "$darwin_curdir"
  28416. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  28417. + done # $darwin_arches
  28418. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  28419. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  28420. + darwin_file=
  28421. + darwin_files=
  28422. + for darwin_file in $darwin_filelist; do
  28423. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  28424. + $LIPO -create -output "$darwin_file" $darwin_files
  28425. + done # $darwin_filelist
  28426. + $RM -rf unfat-$$
  28427. + cd "$darwin_orig_dir"
  28428. + else
  28429. + cd $darwin_orig_dir
  28430. + func_extract_an_archive "$my_xdir" "$my_xabs"
  28431. + fi # $darwin_arches
  28432. + } # !$opt_dry_run
  28433. + ;;
  28434. + *)
  28435. + func_extract_an_archive "$my_xdir" "$my_xabs"
  28436. + ;;
  28437. + esac
  28438. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  28439. + done
  28440. +
  28441. + func_extract_archives_result="$my_oldobjs"
  28442. +}
  28443. +
  28444. +
  28445. +
  28446. +# func_emit_wrapper_part1 [arg=no]
  28447. +#
  28448. +# Emit the first part of a libtool wrapper script on stdout.
  28449. +# For more information, see the description associated with
  28450. +# func_emit_wrapper(), below.
  28451. +func_emit_wrapper_part1 ()
  28452. +{
  28453. + func_emit_wrapper_part1_arg1=no
  28454. + if test -n "$1" ; then
  28455. + func_emit_wrapper_part1_arg1=$1
  28456. + fi
  28457. +
  28458. + $ECHO "\
  28459. +#! $SHELL
  28460. +
  28461. +# $output - temporary wrapper script for $objdir/$outputname
  28462. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  28463. +#
  28464. +# The $output program cannot be directly executed until all the libtool
  28465. +# libraries that it depends on are installed.
  28466. +#
  28467. +# This wrapper script should never be moved out of the build directory.
  28468. +# If it is, it will not operate correctly.
  28469. +
  28470. +# Sed substitution that helps us do robust quoting. It backslashifies
  28471. +# metacharacters that are still active within double-quoted strings.
  28472. +Xsed='${SED} -e 1s/^X//'
  28473. +sed_quote_subst='$sed_quote_subst'
  28474. +
  28475. +# Be Bourne compatible
  28476. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  28477. + emulate sh
  28478. + NULLCMD=:
  28479. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  28480. + # is contrary to our usage. Disable this feature.
  28481. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  28482. + setopt NO_GLOB_SUBST
  28483. +else
  28484. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  28485. +fi
  28486. +BIN_SH=xpg4; export BIN_SH # for Tru64
  28487. +DUALCASE=1; export DUALCASE # for MKS sh
  28488. +
  28489. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  28490. +# if CDPATH is set.
  28491. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  28492. +
  28493. +relink_command=\"$relink_command\"
  28494. +
  28495. +# This environment variable determines our operation mode.
  28496. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  28497. + # install mode needs the following variables:
  28498. + generated_by_libtool_version='$macro_version'
  28499. + notinst_deplibs='$notinst_deplibs'
  28500. +else
  28501. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  28502. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  28503. + ECHO=\"$qecho\"
  28504. + file=\"\$0\"
  28505. + # Make sure echo works.
  28506. + if test \"X\$1\" = X--no-reexec; then
  28507. + # Discard the --no-reexec flag, and continue.
  28508. + shift
  28509. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  28510. + # Yippee, \$ECHO works!
  28511. + :
  28512. + else
  28513. + # Restart under the correct shell, and then maybe \$ECHO will work.
  28514. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  28515. + fi
  28516. + fi\
  28517. +"
  28518. + $ECHO "\
  28519. +
  28520. + # Find the directory that this script lives in.
  28521. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  28522. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  28523. +
  28524. + # Follow symbolic links until we get to the real thisdir.
  28525. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  28526. + while test -n \"\$file\"; do
  28527. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  28528. +
  28529. + # If there was a directory component, then change thisdir.
  28530. + if test \"x\$destdir\" != \"x\$file\"; then
  28531. + case \"\$destdir\" in
  28532. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  28533. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  28534. + esac
  28535. + fi
  28536. +
  28537. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  28538. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  28539. + done
  28540. +"
  28541. +}
  28542. +# end: func_emit_wrapper_part1
  28543. +
  28544. +# func_emit_wrapper_part2 [arg=no]
  28545. +#
  28546. +# Emit the second part of a libtool wrapper script on stdout.
  28547. +# For more information, see the description associated with
  28548. +# func_emit_wrapper(), below.
  28549. +func_emit_wrapper_part2 ()
  28550. +{
  28551. + func_emit_wrapper_part2_arg1=no
  28552. + if test -n "$1" ; then
  28553. + func_emit_wrapper_part2_arg1=$1
  28554. + fi
  28555. +
  28556. + $ECHO "\
  28557. +
  28558. + # Usually 'no', except on cygwin/mingw when embedded into
  28559. + # the cwrapper.
  28560. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  28561. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  28562. + # special case for '.'
  28563. + if test \"\$thisdir\" = \".\"; then
  28564. + thisdir=\`pwd\`
  28565. + fi
  28566. + # remove .libs from thisdir
  28567. + case \"\$thisdir\" in
  28568. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  28569. + $objdir ) thisdir=. ;;
  28570. + esac
  28571. + fi
  28572. +
  28573. + # Try to get the absolute directory name.
  28574. + absdir=\`cd \"\$thisdir\" && pwd\`
  28575. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  28576. +"
  28577. +
  28578. + if test "$fast_install" = yes; then
  28579. + $ECHO "\
  28580. + program=lt-'$outputname'$exeext
  28581. + progdir=\"\$thisdir/$objdir\"
  28582. +
  28583. + if test ! -f \"\$progdir/\$program\" ||
  28584. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  28585. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  28586. +
  28587. + file=\"\$\$-\$program\"
  28588. +
  28589. + if test ! -d \"\$progdir\"; then
  28590. + $MKDIR \"\$progdir\"
  28591. + else
  28592. + $RM \"\$progdir/\$file\"
  28593. + fi"
  28594. +
  28595. + $ECHO "\
  28596. +
  28597. + # relink executable if necessary
  28598. + if test -n \"\$relink_command\"; then
  28599. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  28600. + else
  28601. + $ECHO \"\$relink_command_output\" >&2
  28602. + $RM \"\$progdir/\$file\"
  28603. + exit 1
  28604. + fi
  28605. + fi
  28606. +
  28607. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  28608. + { $RM \"\$progdir/\$program\";
  28609. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  28610. + $RM \"\$progdir/\$file\"
  28611. + fi"
  28612. + else
  28613. + $ECHO "\
  28614. + program='$outputname'
  28615. + progdir=\"\$thisdir/$objdir\"
  28616. +"
  28617. + fi
  28618. +
  28619. + $ECHO "\
  28620. +
  28621. + if test -f \"\$progdir/\$program\"; then"
  28622. +
  28623. + # Export our shlibpath_var if we have one.
  28624. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  28625. + $ECHO "\
  28626. + # Add our own library path to $shlibpath_var
  28627. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  28628. +
  28629. + # Some systems cannot cope with colon-terminated $shlibpath_var
  28630. + # The second colon is a workaround for a bug in BeOS R4 sed
  28631. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  28632. +
  28633. + export $shlibpath_var
  28634. +"
  28635. + fi
  28636. +
  28637. + # fixup the dll searchpath if we need to.
  28638. + if test -n "$dllsearchpath"; then
  28639. + $ECHO "\
  28640. + # Add the dll search path components to the executable PATH
  28641. + PATH=$dllsearchpath:\$PATH
  28642. +"
  28643. + fi
  28644. +
  28645. + $ECHO "\
  28646. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  28647. + # Run the actual program with our arguments.
  28648. +"
  28649. + case $host in
  28650. + # Backslashes separate directories on plain windows
  28651. + *-*-mingw | *-*-os2* | *-cegcc*)
  28652. + $ECHO "\
  28653. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  28654. +"
  28655. + ;;
  28656. +
  28657. + *)
  28658. + $ECHO "\
  28659. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  28660. +"
  28661. + ;;
  28662. + esac
  28663. + $ECHO "\
  28664. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  28665. + exit 1
  28666. + fi
  28667. + else
  28668. + # The program doesn't exist.
  28669. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  28670. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  28671. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  28672. + exit 1
  28673. + fi
  28674. +fi\
  28675. +"
  28676. +}
  28677. +# end: func_emit_wrapper_part2
  28678. +
  28679. +
  28680. +# func_emit_wrapper [arg=no]
  28681. +#
  28682. +# Emit a libtool wrapper script on stdout.
  28683. +# Don't directly open a file because we may want to
  28684. +# incorporate the script contents within a cygwin/mingw
  28685. +# wrapper executable. Must ONLY be called from within
  28686. +# func_mode_link because it depends on a number of variables
  28687. +# set therein.
  28688. +#
  28689. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  28690. +# variable will take. If 'yes', then the emitted script
  28691. +# will assume that the directory in which it is stored is
  28692. +# the $objdir directory. This is a cygwin/mingw-specific
  28693. +# behavior.
  28694. +func_emit_wrapper ()
  28695. +{
  28696. + func_emit_wrapper_arg1=no
  28697. + if test -n "$1" ; then
  28698. + func_emit_wrapper_arg1=$1
  28699. + fi
  28700. +
  28701. + # split this up so that func_emit_cwrapperexe_src
  28702. + # can call each part independently.
  28703. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  28704. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  28705. +}
  28706. +
  28707. +
  28708. +# func_to_host_path arg
  28709. +#
  28710. +# Convert paths to host format when used with build tools.
  28711. +# Intended for use with "native" mingw (where libtool itself
  28712. +# is running under the msys shell), or in the following cross-
  28713. +# build environments:
  28714. +# $build $host
  28715. +# mingw (msys) mingw [e.g. native]
  28716. +# cygwin mingw
  28717. +# *nix + wine mingw
  28718. +# where wine is equipped with the `winepath' executable.
  28719. +# In the native mingw case, the (msys) shell automatically
  28720. +# converts paths for any non-msys applications it launches,
  28721. +# but that facility isn't available from inside the cwrapper.
  28722. +# Similar accommodations are necessary for $host mingw and
  28723. +# $build cygwin. Calling this function does no harm for other
  28724. +# $host/$build combinations not listed above.
  28725. +#
  28726. +# ARG is the path (on $build) that should be converted to
  28727. +# the proper representation for $host. The result is stored
  28728. +# in $func_to_host_path_result.
  28729. +func_to_host_path ()
  28730. +{
  28731. + func_to_host_path_result="$1"
  28732. + if test -n "$1" ; then
  28733. + case $host in
  28734. + *mingw* )
  28735. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  28736. + case $build in
  28737. + *mingw* ) # actually, msys
  28738. + # awkward: cmd appends spaces to result
  28739. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  28740. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  28741. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  28742. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  28743. + $SED -e "$lt_sed_naive_backslashify"`
  28744. + ;;
  28745. + *cygwin* )
  28746. + func_to_host_path_tmp1=`cygpath -w "$1"`
  28747. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  28748. + $SED -e "$lt_sed_naive_backslashify"`
  28749. + ;;
  28750. + * )
  28751. + # Unfortunately, winepath does not exit with a non-zero
  28752. + # error code, so we are forced to check the contents of
  28753. + # stdout. On the other hand, if the command is not
  28754. + # found, the shell will set an exit code of 127 and print
  28755. + # *an error message* to stdout. So we must check for both
  28756. + # error code of zero AND non-empty stdout, which explains
  28757. + # the odd construction:
  28758. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  28759. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  28760. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  28761. + $SED -e "$lt_sed_naive_backslashify"`
  28762. + else
  28763. + # Allow warning below.
  28764. + func_to_host_path_result=""
  28765. + fi
  28766. + ;;
  28767. + esac
  28768. + if test -z "$func_to_host_path_result" ; then
  28769. + func_error "Could not determine host path corresponding to"
  28770. + func_error " '$1'"
  28771. + func_error "Continuing, but uninstalled executables may not work."
  28772. + # Fallback:
  28773. + func_to_host_path_result="$1"
  28774. + fi
  28775. + ;;
  28776. + esac
  28777. + fi
  28778. +}
  28779. +# end: func_to_host_path
  28780. +
  28781. +# func_to_host_pathlist arg
  28782. +#
  28783. +# Convert pathlists to host format when used with build tools.
  28784. +# See func_to_host_path(), above. This function supports the
  28785. +# following $build/$host combinations (but does no harm for
  28786. +# combinations not listed here):
  28787. +# $build $host
  28788. +# mingw (msys) mingw [e.g. native]
  28789. +# cygwin mingw
  28790. +# *nix + wine mingw
  28791. +#
  28792. +# Path separators are also converted from $build format to
  28793. +# $host format. If ARG begins or ends with a path separator
  28794. +# character, it is preserved (but converted to $host format)
  28795. +# on output.
  28796. +#
  28797. +# ARG is a pathlist (on $build) that should be converted to
  28798. +# the proper representation on $host. The result is stored
  28799. +# in $func_to_host_pathlist_result.
  28800. +func_to_host_pathlist ()
  28801. +{
  28802. + func_to_host_pathlist_result="$1"
  28803. + if test -n "$1" ; then
  28804. + case $host in
  28805. + *mingw* )
  28806. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  28807. + # Remove leading and trailing path separator characters from
  28808. + # ARG. msys behavior is inconsistent here, cygpath turns them
  28809. + # into '.;' and ';.', and winepath ignores them completely.
  28810. + func_to_host_pathlist_tmp2="$1"
  28811. + # Once set for this call, this variable should not be
  28812. + # reassigned. It is used in tha fallback case.
  28813. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  28814. + $SED -e 's|^:*||' -e 's|:*$||'`
  28815. + case $build in
  28816. + *mingw* ) # Actually, msys.
  28817. + # Awkward: cmd appends spaces to result.
  28818. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  28819. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  28820. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  28821. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  28822. + $SED -e "$lt_sed_naive_backslashify"`
  28823. + ;;
  28824. + *cygwin* )
  28825. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  28826. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  28827. + $SED -e "$lt_sed_naive_backslashify"`
  28828. + ;;
  28829. + * )
  28830. + # unfortunately, winepath doesn't convert pathlists
  28831. + func_to_host_pathlist_result=""
  28832. + func_to_host_pathlist_oldIFS=$IFS
  28833. + IFS=:
  28834. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  28835. + IFS=$func_to_host_pathlist_oldIFS
  28836. + if test -n "$func_to_host_pathlist_f" ; then
  28837. + func_to_host_path "$func_to_host_pathlist_f"
  28838. + if test -n "$func_to_host_path_result" ; then
  28839. + if test -z "$func_to_host_pathlist_result" ; then
  28840. + func_to_host_pathlist_result="$func_to_host_path_result"
  28841. + else
  28842. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  28843. + fi
  28844. + fi
  28845. + fi
  28846. + IFS=:
  28847. + done
  28848. + IFS=$func_to_host_pathlist_oldIFS
  28849. + ;;
  28850. + esac
  28851. + if test -z "$func_to_host_pathlist_result" ; then
  28852. + func_error "Could not determine the host path(s) corresponding to"
  28853. + func_error " '$1'"
  28854. + func_error "Continuing, but uninstalled executables may not work."
  28855. + # Fallback. This may break if $1 contains DOS-style drive
  28856. + # specifications. The fix is not to complicate the expression
  28857. + # below, but for the user to provide a working wine installation
  28858. + # with winepath so that path translation in the cross-to-mingw
  28859. + # case works properly.
  28860. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  28861. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  28862. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  28863. + fi
  28864. + # Now, add the leading and trailing path separators back
  28865. + case "$1" in
  28866. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  28867. + ;;
  28868. + esac
  28869. + case "$1" in
  28870. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  28871. + ;;
  28872. + esac
  28873. + ;;
  28874. + esac
  28875. + fi
  28876. +}
  28877. +# end: func_to_host_pathlist
  28878. +
  28879. +# func_emit_cwrapperexe_src
  28880. +# emit the source code for a wrapper executable on stdout
  28881. +# Must ONLY be called from within func_mode_link because
  28882. +# it depends on a number of variable set therein.
  28883. +func_emit_cwrapperexe_src ()
  28884. +{
  28885. + cat <<EOF
  28886. +
  28887. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  28888. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  28889. +
  28890. + The $output program cannot be directly executed until all the libtool
  28891. + libraries that it depends on are installed.
  28892. +
  28893. + This wrapper executable should never be moved out of the build directory.
  28894. + If it is, it will not operate correctly.
  28895. +
  28896. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  28897. + but could eventually absorb all of the scripts functionality and
  28898. + exec $objdir/$outputname directly.
  28899. +*/
  28900. +EOF
  28901. + cat <<"EOF"
  28902. +#include <stdio.h>
  28903. +#include <stdlib.h>
  28904. +#ifdef _MSC_VER
  28905. +# include <direct.h>
  28906. +# include <process.h>
  28907. +# include <io.h>
  28908. +# define setmode _setmode
  28909. +#else
  28910. +# include <unistd.h>
  28911. +# include <stdint.h>
  28912. +# ifdef __CYGWIN__
  28913. +# include <io.h>
  28914. +# define HAVE_SETENV
  28915. +# ifdef __STRICT_ANSI__
  28916. +char *realpath (const char *, char *);
  28917. +int putenv (char *);
  28918. +int setenv (const char *, const char *, int);
  28919. +# endif
  28920. +# endif
  28921. +#endif
  28922. +#include <malloc.h>
  28923. +#include <stdarg.h>
  28924. +#include <assert.h>
  28925. +#include <string.h>
  28926. +#include <ctype.h>
  28927. +#include <errno.h>
  28928. +#include <fcntl.h>
  28929. +#include <sys/stat.h>
  28930. +
  28931. +#if defined(PATH_MAX)
  28932. +# define LT_PATHMAX PATH_MAX
  28933. +#elif defined(MAXPATHLEN)
  28934. +# define LT_PATHMAX MAXPATHLEN
  28935. +#else
  28936. +# define LT_PATHMAX 1024
  28937. +#endif
  28938. +
  28939. +#ifndef S_IXOTH
  28940. +# define S_IXOTH 0
  28941. +#endif
  28942. +#ifndef S_IXGRP
  28943. +# define S_IXGRP 0
  28944. +#endif
  28945. +
  28946. +#ifdef _MSC_VER
  28947. +# define S_IXUSR _S_IEXEC
  28948. +# define stat _stat
  28949. +# ifndef _INTPTR_T_DEFINED
  28950. +# define intptr_t int
  28951. +# endif
  28952. +#endif
  28953. +
  28954. +#ifndef DIR_SEPARATOR
  28955. +# define DIR_SEPARATOR '/'
  28956. +# define PATH_SEPARATOR ':'
  28957. +#endif
  28958. +
  28959. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  28960. + defined (__OS2__)
  28961. +# define HAVE_DOS_BASED_FILE_SYSTEM
  28962. +# define FOPEN_WB "wb"
  28963. +# ifndef DIR_SEPARATOR_2
  28964. +# define DIR_SEPARATOR_2 '\\'
  28965. +# endif
  28966. +# ifndef PATH_SEPARATOR_2
  28967. +# define PATH_SEPARATOR_2 ';'
  28968. +# endif
  28969. +#endif
  28970. +
  28971. +#ifndef DIR_SEPARATOR_2
  28972. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  28973. +#else /* DIR_SEPARATOR_2 */
  28974. +# define IS_DIR_SEPARATOR(ch) \
  28975. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  28976. +#endif /* DIR_SEPARATOR_2 */
  28977. +
  28978. +#ifndef PATH_SEPARATOR_2
  28979. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  28980. +#else /* PATH_SEPARATOR_2 */
  28981. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  28982. +#endif /* PATH_SEPARATOR_2 */
  28983. +
  28984. +#ifdef __CYGWIN__
  28985. +# define FOPEN_WB "wb"
  28986. +#endif
  28987. +
  28988. +#ifndef FOPEN_WB
  28989. +# define FOPEN_WB "w"
  28990. +#endif
  28991. +#ifndef _O_BINARY
  28992. +# define _O_BINARY 0
  28993. +#endif
  28994. +
  28995. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  28996. +#define XFREE(stale) do { \
  28997. + if (stale) { free ((void *) stale); stale = 0; } \
  28998. +} while (0)
  28999. +
  29000. +#undef LTWRAPPER_DEBUGPRINTF
  29001. +#if defined DEBUGWRAPPER
  29002. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  29003. +static void
  29004. +ltwrapper_debugprintf (const char *fmt, ...)
  29005. +{
  29006. + va_list args;
  29007. + va_start (args, fmt);
  29008. + (void) vfprintf (stderr, fmt, args);
  29009. + va_end (args);
  29010. +}
  29011. +#else
  29012. +# define LTWRAPPER_DEBUGPRINTF(args)
  29013. +#endif
  29014. +
  29015. +const char *program_name = NULL;
  29016. +
  29017. +void *xmalloc (size_t num);
  29018. +char *xstrdup (const char *string);
  29019. +const char *base_name (const char *name);
  29020. +char *find_executable (const char *wrapper);
  29021. +char *chase_symlinks (const char *pathspec);
  29022. +int make_executable (const char *path);
  29023. +int check_executable (const char *path);
  29024. +char *strendzap (char *str, const char *pat);
  29025. +void lt_fatal (const char *message, ...);
  29026. +void lt_setenv (const char *name, const char *value);
  29027. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  29028. +void lt_opt_process_env_set (const char *arg);
  29029. +void lt_opt_process_env_prepend (const char *arg);
  29030. +void lt_opt_process_env_append (const char *arg);
  29031. +int lt_split_name_value (const char *arg, char** name, char** value);
  29032. +void lt_update_exe_path (const char *name, const char *value);
  29033. +void lt_update_lib_path (const char *name, const char *value);
  29034. +
  29035. +static const char *script_text_part1 =
  29036. +EOF
  29037. +
  29038. + func_emit_wrapper_part1 yes |
  29039. + $SED -e 's/\([\\"]\)/\\\1/g' \
  29040. + -e 's/^/ "/' -e 's/$/\\n"/'
  29041. + echo ";"
  29042. + cat <<EOF
  29043. +
  29044. +static const char *script_text_part2 =
  29045. +EOF
  29046. + func_emit_wrapper_part2 yes |
  29047. + $SED -e 's/\([\\"]\)/\\\1/g' \
  29048. + -e 's/^/ "/' -e 's/$/\\n"/'
  29049. + echo ";"
  29050. +
  29051. + cat <<EOF
  29052. +const char * MAGIC_EXE = "$magic_exe";
  29053. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  29054. +EOF
  29055. +
  29056. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  29057. + func_to_host_pathlist "$temp_rpath"
  29058. + cat <<EOF
  29059. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  29060. +EOF
  29061. + else
  29062. + cat <<"EOF"
  29063. +const char * LIB_PATH_VALUE = "";
  29064. +EOF
  29065. + fi
  29066. +
  29067. + if test -n "$dllsearchpath"; then
  29068. + func_to_host_pathlist "$dllsearchpath:"
  29069. + cat <<EOF
  29070. +const char * EXE_PATH_VARNAME = "PATH";
  29071. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  29072. +EOF
  29073. + else
  29074. + cat <<"EOF"
  29075. +const char * EXE_PATH_VARNAME = "";
  29076. +const char * EXE_PATH_VALUE = "";
  29077. +EOF
  29078. + fi
  29079. +
  29080. + if test "$fast_install" = yes; then
  29081. + cat <<EOF
  29082. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  29083. +EOF
  29084. + else
  29085. + cat <<EOF
  29086. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  29087. +EOF
  29088. + fi
  29089. +
  29090. +
  29091. + cat <<"EOF"
  29092. +
  29093. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  29094. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  29095. +
  29096. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  29097. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  29098. +
  29099. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  29100. +
  29101. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  29102. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  29103. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  29104. +
  29105. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  29106. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  29107. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  29108. +
  29109. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  29110. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  29111. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  29112. +
  29113. +int
  29114. +main (int argc, char *argv[])
  29115. +{
  29116. + char **newargz;
  29117. + int newargc;
  29118. + char *tmp_pathspec;
  29119. + char *actual_cwrapper_path;
  29120. + char *actual_cwrapper_name;
  29121. + char *target_name;
  29122. + char *lt_argv_zero;
  29123. + intptr_t rval = 127;
  29124. +
  29125. + int i;
  29126. +
  29127. + program_name = (char *) xstrdup (base_name (argv[0]));
  29128. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  29129. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  29130. +
  29131. + /* very simple arg parsing; don't want to rely on getopt */
  29132. + for (i = 1; i < argc; i++)
  29133. + {
  29134. + if (strcmp (argv[i], dumpscript_opt) == 0)
  29135. + {
  29136. +EOF
  29137. + case "$host" in
  29138. + *mingw* | *cygwin* )
  29139. + # make stdout use "unix" line endings
  29140. + echo " setmode(1,_O_BINARY);"
  29141. + ;;
  29142. + esac
  29143. +
  29144. + cat <<"EOF"
  29145. + printf ("%s", script_text_part1);
  29146. + printf ("%s", script_text_part2);
  29147. + return 0;
  29148. + }
  29149. + }
  29150. +
  29151. + newargz = XMALLOC (char *, argc + 1);
  29152. + tmp_pathspec = find_executable (argv[0]);
  29153. + if (tmp_pathspec == NULL)
  29154. + lt_fatal ("Couldn't find %s", argv[0]);
  29155. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  29156. + tmp_pathspec));
  29157. +
  29158. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  29159. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  29160. + actual_cwrapper_path));
  29161. + XFREE (tmp_pathspec);
  29162. +
  29163. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  29164. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  29165. +
  29166. + /* wrapper name transforms */
  29167. + strendzap (actual_cwrapper_name, ".exe");
  29168. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  29169. + XFREE (actual_cwrapper_name);
  29170. + actual_cwrapper_name = tmp_pathspec;
  29171. + tmp_pathspec = 0;
  29172. +
  29173. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  29174. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  29175. + strendzap (target_name, ".exe");
  29176. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  29177. + XFREE (target_name);
  29178. + target_name = tmp_pathspec;
  29179. + tmp_pathspec = 0;
  29180. +
  29181. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  29182. + target_name));
  29183. +EOF
  29184. +
  29185. + cat <<EOF
  29186. + newargz[0] =
  29187. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  29188. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  29189. + strcpy (newargz[0], actual_cwrapper_path);
  29190. + strcat (newargz[0], "$objdir");
  29191. + strcat (newargz[0], "/");
  29192. +EOF
  29193. +
  29194. + cat <<"EOF"
  29195. + /* stop here, and copy so we don't have to do this twice */
  29196. + tmp_pathspec = xstrdup (newargz[0]);
  29197. +
  29198. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  29199. + strcat (newargz[0], actual_cwrapper_name);
  29200. +
  29201. + /* DO want the lt- prefix here if it exists, so use target_name */
  29202. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  29203. + XFREE (tmp_pathspec);
  29204. + tmp_pathspec = NULL;
  29205. +EOF
  29206. +
  29207. + case $host_os in
  29208. + mingw*)
  29209. + cat <<"EOF"
  29210. + {
  29211. + char* p;
  29212. + while ((p = strchr (newargz[0], '\\')) != NULL)
  29213. + {
  29214. + *p = '/';
  29215. + }
  29216. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  29217. + {
  29218. + *p = '/';
  29219. + }
  29220. + }
  29221. +EOF
  29222. + ;;
  29223. + esac
  29224. +
  29225. + cat <<"EOF"
  29226. + XFREE (target_name);
  29227. + XFREE (actual_cwrapper_path);
  29228. + XFREE (actual_cwrapper_name);
  29229. +
  29230. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  29231. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  29232. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  29233. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  29234. +
  29235. + newargc=0;
  29236. + for (i = 1; i < argc; i++)
  29237. + {
  29238. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  29239. + {
  29240. + if (argv[i][env_set_opt_len] == '=')
  29241. + {
  29242. + const char *p = argv[i] + env_set_opt_len + 1;
  29243. + lt_opt_process_env_set (p);
  29244. + }
  29245. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  29246. + {
  29247. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  29248. + }
  29249. + else
  29250. + lt_fatal ("%s missing required argument", env_set_opt);
  29251. + continue;
  29252. + }
  29253. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  29254. + {
  29255. + if (argv[i][env_prepend_opt_len] == '=')
  29256. + {
  29257. + const char *p = argv[i] + env_prepend_opt_len + 1;
  29258. + lt_opt_process_env_prepend (p);
  29259. + }
  29260. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  29261. + {
  29262. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  29263. + }
  29264. + else
  29265. + lt_fatal ("%s missing required argument", env_prepend_opt);
  29266. + continue;
  29267. + }
  29268. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  29269. + {
  29270. + if (argv[i][env_append_opt_len] == '=')
  29271. + {
  29272. + const char *p = argv[i] + env_append_opt_len + 1;
  29273. + lt_opt_process_env_append (p);
  29274. + }
  29275. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  29276. + {
  29277. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  29278. + }
  29279. + else
  29280. + lt_fatal ("%s missing required argument", env_append_opt);
  29281. + continue;
  29282. + }
  29283. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  29284. + {
  29285. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  29286. + namespace, but it is not one of the ones we know about and
  29287. + have already dealt with, above (inluding dump-script), then
  29288. + report an error. Otherwise, targets might begin to believe
  29289. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  29290. + namespace. The first time any user complains about this, we'll
  29291. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  29292. + or a configure.ac-settable value.
  29293. + */
  29294. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  29295. + ltwrapper_option_prefix, argv[i]);
  29296. + }
  29297. + /* otherwise ... */
  29298. + newargz[++newargc] = xstrdup (argv[i]);
  29299. + }
  29300. + newargz[++newargc] = NULL;
  29301. +
  29302. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  29303. + for (i = 0; i < newargc; i++)
  29304. + {
  29305. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  29306. + }
  29307. +
  29308. +EOF
  29309. +
  29310. + case $host_os in
  29311. + mingw*)
  29312. + cat <<"EOF"
  29313. + /* execv doesn't actually work on mingw as expected on unix */
  29314. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  29315. + if (rval == -1)
  29316. + {
  29317. + /* failed to start process */
  29318. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  29319. + return 127;
  29320. + }
  29321. + return rval;
  29322. +EOF
  29323. + ;;
  29324. + *)
  29325. + cat <<"EOF"
  29326. + execv (lt_argv_zero, newargz);
  29327. + return rval; /* =127, but avoids unused variable warning */
  29328. +EOF
  29329. + ;;
  29330. + esac
  29331. +
  29332. + cat <<"EOF"
  29333. +}
  29334. +
  29335. +void *
  29336. +xmalloc (size_t num)
  29337. +{
  29338. + void *p = (void *) malloc (num);
  29339. + if (!p)
  29340. + lt_fatal ("Memory exhausted");
  29341. +
  29342. + return p;
  29343. +}
  29344. +
  29345. +char *
  29346. +xstrdup (const char *string)
  29347. +{
  29348. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  29349. + string) : NULL;
  29350. +}
  29351. +
  29352. +const char *
  29353. +base_name (const char *name)
  29354. +{
  29355. + const char *base;
  29356. +
  29357. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  29358. + /* Skip over the disk name in MSDOS pathnames. */
  29359. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  29360. + name += 2;
  29361. +#endif
  29362. +
  29363. + for (base = name; *name; name++)
  29364. + if (IS_DIR_SEPARATOR (*name))
  29365. + base = name + 1;
  29366. + return base;
  29367. +}
  29368. +
  29369. +int
  29370. +check_executable (const char *path)
  29371. +{
  29372. + struct stat st;
  29373. +
  29374. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  29375. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  29376. + if ((!path) || (!*path))
  29377. + return 0;
  29378. +
  29379. + if ((stat (path, &st) >= 0)
  29380. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  29381. + return 1;
  29382. + else
  29383. + return 0;
  29384. +}
  29385. +
  29386. +int
  29387. +make_executable (const char *path)
  29388. +{
  29389. + int rval = 0;
  29390. + struct stat st;
  29391. +
  29392. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  29393. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  29394. + if ((!path) || (!*path))
  29395. + return 0;
  29396. +
  29397. + if (stat (path, &st) >= 0)
  29398. + {
  29399. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  29400. + }
  29401. + return rval;
  29402. +}
  29403. +
  29404. +/* Searches for the full path of the wrapper. Returns
  29405. + newly allocated full path name if found, NULL otherwise
  29406. + Does not chase symlinks, even on platforms that support them.
  29407. +*/
  29408. +char *
  29409. +find_executable (const char *wrapper)
  29410. +{
  29411. + int has_slash = 0;
  29412. + const char *p;
  29413. + const char *p_next;
  29414. + /* static buffer for getcwd */
  29415. + char tmp[LT_PATHMAX + 1];
  29416. + int tmp_len;
  29417. + char *concat_name;
  29418. +
  29419. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  29420. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  29421. +
  29422. + if ((wrapper == NULL) || (*wrapper == '\0'))
  29423. + return NULL;
  29424. +
  29425. + /* Absolute path? */
  29426. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  29427. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  29428. + {
  29429. + concat_name = xstrdup (wrapper);
  29430. + if (check_executable (concat_name))
  29431. + return concat_name;
  29432. + XFREE (concat_name);
  29433. + }
  29434. + else
  29435. + {
  29436. +#endif
  29437. + if (IS_DIR_SEPARATOR (wrapper[0]))
  29438. + {
  29439. + concat_name = xstrdup (wrapper);
  29440. + if (check_executable (concat_name))
  29441. + return concat_name;
  29442. + XFREE (concat_name);
  29443. + }
  29444. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  29445. + }
  29446. +#endif
  29447. +
  29448. + for (p = wrapper; *p; p++)
  29449. + if (*p == '/')
  29450. + {
  29451. + has_slash = 1;
  29452. + break;
  29453. + }
  29454. + if (!has_slash)
  29455. + {
  29456. + /* no slashes; search PATH */
  29457. + const char *path = getenv ("PATH");
  29458. + if (path != NULL)
  29459. + {
  29460. + for (p = path; *p; p = p_next)
  29461. + {
  29462. + const char *q;
  29463. + size_t p_len;
  29464. + for (q = p; *q; q++)
  29465. + if (IS_PATH_SEPARATOR (*q))
  29466. + break;
  29467. + p_len = q - p;
  29468. + p_next = (*q == '\0' ? q : q + 1);
  29469. + if (p_len == 0)
  29470. + {
  29471. + /* empty path: current directory */
  29472. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  29473. + lt_fatal ("getcwd failed");
  29474. + tmp_len = strlen (tmp);
  29475. + concat_name =
  29476. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  29477. + memcpy (concat_name, tmp, tmp_len);
  29478. + concat_name[tmp_len] = '/';
  29479. + strcpy (concat_name + tmp_len + 1, wrapper);
  29480. + }
  29481. + else
  29482. + {
  29483. + concat_name =
  29484. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  29485. + memcpy (concat_name, p, p_len);
  29486. + concat_name[p_len] = '/';
  29487. + strcpy (concat_name + p_len + 1, wrapper);
  29488. + }
  29489. + if (check_executable (concat_name))
  29490. + return concat_name;
  29491. + XFREE (concat_name);
  29492. + }
  29493. + }
  29494. + /* not found in PATH; assume curdir */
  29495. + }
  29496. + /* Relative path | not found in path: prepend cwd */
  29497. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  29498. + lt_fatal ("getcwd failed");
  29499. + tmp_len = strlen (tmp);
  29500. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  29501. + memcpy (concat_name, tmp, tmp_len);
  29502. + concat_name[tmp_len] = '/';
  29503. + strcpy (concat_name + tmp_len + 1, wrapper);
  29504. +
  29505. + if (check_executable (concat_name))
  29506. + return concat_name;
  29507. + XFREE (concat_name);
  29508. + return NULL;
  29509. +}
  29510. +
  29511. +char *
  29512. +chase_symlinks (const char *pathspec)
  29513. +{
  29514. +#ifndef S_ISLNK
  29515. + return xstrdup (pathspec);
  29516. +#else
  29517. + char buf[LT_PATHMAX];
  29518. + struct stat s;
  29519. + char *tmp_pathspec = xstrdup (pathspec);
  29520. + char *p;
  29521. + int has_symlinks = 0;
  29522. + while (strlen (tmp_pathspec) && !has_symlinks)
  29523. + {
  29524. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  29525. + tmp_pathspec));
  29526. + if (lstat (tmp_pathspec, &s) == 0)
  29527. + {
  29528. + if (S_ISLNK (s.st_mode) != 0)
  29529. + {
  29530. + has_symlinks = 1;
  29531. + break;
  29532. + }
  29533. +
  29534. + /* search backwards for last DIR_SEPARATOR */
  29535. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  29536. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  29537. + p--;
  29538. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  29539. + {
  29540. + /* no more DIR_SEPARATORS left */
  29541. + break;
  29542. + }
  29543. + *p = '\0';
  29544. + }
  29545. + else
  29546. + {
  29547. + char *errstr = strerror (errno);
  29548. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  29549. + }
  29550. + }
  29551. + XFREE (tmp_pathspec);
  29552. +
  29553. + if (!has_symlinks)
  29554. + {
  29555. + return xstrdup (pathspec);
  29556. + }
  29557. +
  29558. + tmp_pathspec = realpath (pathspec, buf);
  29559. + if (tmp_pathspec == 0)
  29560. + {
  29561. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  29562. + }
  29563. + return xstrdup (tmp_pathspec);
  29564. +#endif
  29565. +}
  29566. +
  29567. +char *
  29568. +strendzap (char *str, const char *pat)
  29569. +{
  29570. + size_t len, patlen;
  29571. +
  29572. + assert (str != NULL);
  29573. + assert (pat != NULL);
  29574. +
  29575. + len = strlen (str);
  29576. + patlen = strlen (pat);
  29577. +
  29578. + if (patlen <= len)
  29579. + {
  29580. + str += len - patlen;
  29581. + if (strcmp (str, pat) == 0)
  29582. + *str = '\0';
  29583. + }
  29584. + return str;
  29585. +}
  29586. +
  29587. +static void
  29588. +lt_error_core (int exit_status, const char *mode,
  29589. + const char *message, va_list ap)
  29590. +{
  29591. + fprintf (stderr, "%s: %s: ", program_name, mode);
  29592. + vfprintf (stderr, message, ap);
  29593. + fprintf (stderr, ".\n");
  29594. +
  29595. + if (exit_status >= 0)
  29596. + exit (exit_status);
  29597. +}
  29598. +
  29599. +void
  29600. +lt_fatal (const char *message, ...)
  29601. +{
  29602. + va_list ap;
  29603. + va_start (ap, message);
  29604. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  29605. + va_end (ap);
  29606. +}
  29607. +
  29608. +void
  29609. +lt_setenv (const char *name, const char *value)
  29610. +{
  29611. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  29612. + (name ? name : "<NULL>"),
  29613. + (value ? value : "<NULL>")));
  29614. + {
  29615. +#ifdef HAVE_SETENV
  29616. + /* always make a copy, for consistency with !HAVE_SETENV */
  29617. + char *str = xstrdup (value);
  29618. + setenv (name, str, 1);
  29619. +#else
  29620. + int len = strlen (name) + 1 + strlen (value) + 1;
  29621. + char *str = XMALLOC (char, len);
  29622. + sprintf (str, "%s=%s", name, value);
  29623. + if (putenv (str) != EXIT_SUCCESS)
  29624. + {
  29625. + XFREE (str);
  29626. + }
  29627. +#endif
  29628. + }
  29629. +}
  29630. +
  29631. +char *
  29632. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  29633. +{
  29634. + char *new_value;
  29635. + if (orig_value && *orig_value)
  29636. + {
  29637. + int orig_value_len = strlen (orig_value);
  29638. + int add_len = strlen (add);
  29639. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  29640. + if (to_end)
  29641. + {
  29642. + strcpy (new_value, orig_value);
  29643. + strcpy (new_value + orig_value_len, add);
  29644. + }
  29645. + else
  29646. + {
  29647. + strcpy (new_value, add);
  29648. + strcpy (new_value + add_len, orig_value);
  29649. + }
  29650. + }
  29651. + else
  29652. + {
  29653. + new_value = xstrdup (add);
  29654. + }
  29655. + return new_value;
  29656. +}
  29657. +
  29658. +int
  29659. +lt_split_name_value (const char *arg, char** name, char** value)
  29660. +{
  29661. + const char *p;
  29662. + int len;
  29663. + if (!arg || !*arg)
  29664. + return 1;
  29665. +
  29666. + p = strchr (arg, (int)'=');
  29667. +
  29668. + if (!p)
  29669. + return 1;
  29670. +
  29671. + *value = xstrdup (++p);
  29672. +
  29673. + len = strlen (arg) - strlen (*value);
  29674. + *name = XMALLOC (char, len);
  29675. + strncpy (*name, arg, len-1);
  29676. + (*name)[len - 1] = '\0';
  29677. +
  29678. + return 0;
  29679. +}
  29680. +
  29681. +void
  29682. +lt_opt_process_env_set (const char *arg)
  29683. +{
  29684. + char *name = NULL;
  29685. + char *value = NULL;
  29686. +
  29687. + if (lt_split_name_value (arg, &name, &value) != 0)
  29688. + {
  29689. + XFREE (name);
  29690. + XFREE (value);
  29691. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  29692. + }
  29693. +
  29694. + lt_setenv (name, value);
  29695. + XFREE (name);
  29696. + XFREE (value);
  29697. +}
  29698. +
  29699. +void
  29700. +lt_opt_process_env_prepend (const char *arg)
  29701. +{
  29702. + char *name = NULL;
  29703. + char *value = NULL;
  29704. + char *new_value = NULL;
  29705. +
  29706. + if (lt_split_name_value (arg, &name, &value) != 0)
  29707. + {
  29708. + XFREE (name);
  29709. + XFREE (value);
  29710. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  29711. + }
  29712. +
  29713. + new_value = lt_extend_str (getenv (name), value, 0);
  29714. + lt_setenv (name, new_value);
  29715. + XFREE (new_value);
  29716. + XFREE (name);
  29717. + XFREE (value);
  29718. +}
  29719. +
  29720. +void
  29721. +lt_opt_process_env_append (const char *arg)
  29722. +{
  29723. + char *name = NULL;
  29724. + char *value = NULL;
  29725. + char *new_value = NULL;
  29726. +
  29727. + if (lt_split_name_value (arg, &name, &value) != 0)
  29728. + {
  29729. + XFREE (name);
  29730. + XFREE (value);
  29731. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  29732. + }
  29733. +
  29734. + new_value = lt_extend_str (getenv (name), value, 1);
  29735. + lt_setenv (name, new_value);
  29736. + XFREE (new_value);
  29737. + XFREE (name);
  29738. + XFREE (value);
  29739. +}
  29740. +
  29741. +void
  29742. +lt_update_exe_path (const char *name, const char *value)
  29743. +{
  29744. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  29745. + (name ? name : "<NULL>"),
  29746. + (value ? value : "<NULL>")));
  29747. +
  29748. + if (name && *name && value && *value)
  29749. + {
  29750. + char *new_value = lt_extend_str (getenv (name), value, 0);
  29751. + /* some systems can't cope with a ':'-terminated path #' */
  29752. + int len = strlen (new_value);
  29753. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  29754. + {
  29755. + new_value[len-1] = '\0';
  29756. + }
  29757. + lt_setenv (name, new_value);
  29758. + XFREE (new_value);
  29759. + }
  29760. +}
  29761. +
  29762. +void
  29763. +lt_update_lib_path (const char *name, const char *value)
  29764. +{
  29765. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  29766. + (name ? name : "<NULL>"),
  29767. + (value ? value : "<NULL>")));
  29768. +
  29769. + if (name && *name && value && *value)
  29770. + {
  29771. + char *new_value = lt_extend_str (getenv (name), value, 0);
  29772. + lt_setenv (name, new_value);
  29773. + XFREE (new_value);
  29774. + }
  29775. +}
  29776. +
  29777. +
  29778. +EOF
  29779. +}
  29780. +# end: func_emit_cwrapperexe_src
  29781. +
  29782. +# func_mode_link arg...
  29783. +func_mode_link ()
  29784. +{
  29785. + $opt_debug
  29786. + case $host in
  29787. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  29788. + # It is impossible to link a dll without this setting, and
  29789. + # we shouldn't force the makefile maintainer to figure out
  29790. + # which system we are compiling for in order to pass an extra
  29791. + # flag for every libtool invocation.
  29792. + # allow_undefined=no
  29793. +
  29794. + # FIXME: Unfortunately, there are problems with the above when trying
  29795. + # to make a dll which has undefined symbols, in which case not
  29796. + # even a static library is built. For now, we need to specify
  29797. + # -no-undefined on the libtool link line when we can be certain
  29798. + # that all symbols are satisfied, otherwise we get a static library.
  29799. + allow_undefined=yes
  29800. + ;;
  29801. + *)
  29802. + allow_undefined=yes
  29803. + ;;
  29804. + esac
  29805. + libtool_args=$nonopt
  29806. + base_compile="$nonopt $@"
  29807. + compile_command=$nonopt
  29808. + finalize_command=$nonopt
  29809. +
  29810. + compile_rpath=
  29811. + finalize_rpath=
  29812. + compile_shlibpath=
  29813. + finalize_shlibpath=
  29814. + convenience=
  29815. + old_convenience=
  29816. + deplibs=
  29817. + old_deplibs=
  29818. + compiler_flags=
  29819. + linker_flags=
  29820. + dllsearchpath=
  29821. + lib_search_path=`pwd`
  29822. + inst_prefix_dir=
  29823. + new_inherited_linker_flags=
  29824. +
  29825. + avoid_version=no
  29826. + dlfiles=
  29827. + dlprefiles=
  29828. + dlself=no
  29829. + export_dynamic=no
  29830. + export_symbols=
  29831. + export_symbols_regex=
  29832. + generated=
  29833. + libobjs=
  29834. + ltlibs=
  29835. + module=no
  29836. + no_install=no
  29837. + objs=
  29838. + non_pic_objects=
  29839. + precious_files_regex=
  29840. + prefer_static_libs=no
  29841. + preload=no
  29842. + prev=
  29843. + prevarg=
  29844. + release=
  29845. + rpath=
  29846. + xrpath=
  29847. + perm_rpath=
  29848. + temp_rpath=
  29849. + thread_safe=no
  29850. + vinfo=
  29851. + vinfo_number=no
  29852. + weak_libs=
  29853. + single_module="${wl}-single_module"
  29854. + func_infer_tag $base_compile
  29855. +
  29856. + # We need to know -static, to get the right output filenames.
  29857. + for arg
  29858. + do
  29859. + case $arg in
  29860. + -shared)
  29861. + test "$build_libtool_libs" != yes && \
  29862. + func_fatal_configuration "can not build a shared library"
  29863. + build_old_libs=no
  29864. + break
  29865. + ;;
  29866. + -all-static | -static | -static-libtool-libs)
  29867. + case $arg in
  29868. + -all-static)
  29869. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  29870. + func_warning "complete static linking is impossible in this configuration"
  29871. + fi
  29872. + if test -n "$link_static_flag"; then
  29873. + dlopen_self=$dlopen_self_static
  29874. + fi
  29875. + prefer_static_libs=yes
  29876. + ;;
  29877. + -static)
  29878. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  29879. + dlopen_self=$dlopen_self_static
  29880. + fi
  29881. + prefer_static_libs=built
  29882. + ;;
  29883. + -static-libtool-libs)
  29884. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  29885. + dlopen_self=$dlopen_self_static
  29886. + fi
  29887. + prefer_static_libs=yes
  29888. + ;;
  29889. + esac
  29890. + build_libtool_libs=no
  29891. + build_old_libs=yes
  29892. + break
  29893. + ;;
  29894. + esac
  29895. + done
  29896. +
  29897. + # See if our shared archives depend on static archives.
  29898. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  29899. +
  29900. + # Go through the arguments, transforming them on the way.
  29901. + while test "$#" -gt 0; do
  29902. + arg="$1"
  29903. + shift
  29904. + func_quote_for_eval "$arg"
  29905. + qarg=$func_quote_for_eval_unquoted_result
  29906. + func_append libtool_args " $func_quote_for_eval_result"
  29907. +
  29908. + # If the previous option needs an argument, assign it.
  29909. + if test -n "$prev"; then
  29910. + case $prev in
  29911. + output)
  29912. + func_append compile_command " @OUTPUT@"
  29913. + func_append finalize_command " @OUTPUT@"
  29914. + ;;
  29915. + esac
  29916. +
  29917. + case $prev in
  29918. + dlfiles|dlprefiles)
  29919. + if test "$preload" = no; then
  29920. + # Add the symbol object into the linking commands.
  29921. + func_append compile_command " @SYMFILE@"
  29922. + func_append finalize_command " @SYMFILE@"
  29923. + preload=yes
  29924. + fi
  29925. + case $arg in
  29926. + *.la | *.lo) ;; # We handle these cases below.
  29927. + force)
  29928. + if test "$dlself" = no; then
  29929. + dlself=needless
  29930. + export_dynamic=yes
  29931. + fi
  29932. + prev=
  29933. + continue
  29934. + ;;
  29935. + self)
  29936. + if test "$prev" = dlprefiles; then
  29937. + dlself=yes
  29938. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  29939. + dlself=yes
  29940. + else
  29941. + dlself=needless
  29942. + export_dynamic=yes
  29943. + fi
  29944. + prev=
  29945. + continue
  29946. + ;;
  29947. + *)
  29948. + if test "$prev" = dlfiles; then
  29949. + dlfiles="$dlfiles $arg"
  29950. + else
  29951. + dlprefiles="$dlprefiles $arg"
  29952. + fi
  29953. + prev=
  29954. + continue
  29955. + ;;
  29956. + esac
  29957. + ;;
  29958. + expsyms)
  29959. + export_symbols="$arg"
  29960. + test -f "$arg" \
  29961. + || func_fatal_error "symbol file \`$arg' does not exist"
  29962. + prev=
  29963. + continue
  29964. + ;;
  29965. + expsyms_regex)
  29966. + export_symbols_regex="$arg"
  29967. + prev=
  29968. + continue
  29969. + ;;
  29970. + framework)
  29971. + case $host in
  29972. + *-*-darwin*)
  29973. + case "$deplibs " in
  29974. + *" $qarg.ltframework "*) ;;
  29975. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  29976. + ;;
  29977. + esac
  29978. + ;;
  29979. + esac
  29980. + prev=
  29981. + continue
  29982. + ;;
  29983. + inst_prefix)
  29984. + inst_prefix_dir="$arg"
  29985. + prev=
  29986. + continue
  29987. + ;;
  29988. + objectlist)
  29989. + if test -f "$arg"; then
  29990. + save_arg=$arg
  29991. + moreargs=
  29992. + for fil in `cat "$save_arg"`
  29993. + do
  29994. +# moreargs="$moreargs $fil"
  29995. + arg=$fil
  29996. + # A libtool-controlled object.
  29997. +
  29998. + # Check to see that this really is a libtool object.
  29999. + if func_lalib_unsafe_p "$arg"; then
  30000. + pic_object=
  30001. + non_pic_object=
  30002. +
  30003. + # Read the .lo file
  30004. + func_source "$arg"
  30005. +
  30006. + if test -z "$pic_object" ||
  30007. + test -z "$non_pic_object" ||
  30008. + test "$pic_object" = none &&
  30009. + test "$non_pic_object" = none; then
  30010. + func_fatal_error "cannot find name of object for \`$arg'"
  30011. + fi
  30012. +
  30013. + # Extract subdirectory from the argument.
  30014. + func_dirname "$arg" "/" ""
  30015. + xdir="$func_dirname_result"
  30016. +
  30017. + if test "$pic_object" != none; then
  30018. + # Prepend the subdirectory the object is found in.
  30019. + pic_object="$xdir$pic_object"
  30020. +
  30021. + if test "$prev" = dlfiles; then
  30022. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  30023. + dlfiles="$dlfiles $pic_object"
  30024. + prev=
  30025. + continue
  30026. + else
  30027. + # If libtool objects are unsupported, then we need to preload.
  30028. + prev=dlprefiles
  30029. + fi
  30030. + fi
  30031. +
  30032. + # CHECK ME: I think I busted this. -Ossama
  30033. + if test "$prev" = dlprefiles; then
  30034. + # Preload the old-style object.
  30035. + dlprefiles="$dlprefiles $pic_object"
  30036. + prev=
  30037. + fi
  30038. +
  30039. + # A PIC object.
  30040. + func_append libobjs " $pic_object"
  30041. + arg="$pic_object"
  30042. + fi
  30043. +
  30044. + # Non-PIC object.
  30045. + if test "$non_pic_object" != none; then
  30046. + # Prepend the subdirectory the object is found in.
  30047. + non_pic_object="$xdir$non_pic_object"
  30048. +
  30049. + # A standard non-PIC object
  30050. + func_append non_pic_objects " $non_pic_object"
  30051. + if test -z "$pic_object" || test "$pic_object" = none ; then
  30052. + arg="$non_pic_object"
  30053. + fi
  30054. + else
  30055. + # If the PIC object exists, use it instead.
  30056. + # $xdir was prepended to $pic_object above.
  30057. + non_pic_object="$pic_object"
  30058. + func_append non_pic_objects " $non_pic_object"
  30059. + fi
  30060. + else
  30061. + # Only an error if not doing a dry-run.
  30062. + if $opt_dry_run; then
  30063. + # Extract subdirectory from the argument.
  30064. + func_dirname "$arg" "/" ""
  30065. + xdir="$func_dirname_result"
  30066. +
  30067. + func_lo2o "$arg"
  30068. + pic_object=$xdir$objdir/$func_lo2o_result
  30069. + non_pic_object=$xdir$func_lo2o_result
  30070. + func_append libobjs " $pic_object"
  30071. + func_append non_pic_objects " $non_pic_object"
  30072. + else
  30073. + func_fatal_error "\`$arg' is not a valid libtool object"
  30074. + fi
  30075. + fi
  30076. + done
  30077. + else
  30078. + func_fatal_error "link input file \`$arg' does not exist"
  30079. + fi
  30080. + arg=$save_arg
  30081. + prev=
  30082. + continue
  30083. + ;;
  30084. + precious_regex)
  30085. + precious_files_regex="$arg"
  30086. + prev=
  30087. + continue
  30088. + ;;
  30089. + release)
  30090. + release="-$arg"
  30091. + prev=
  30092. + continue
  30093. + ;;
  30094. + rpath | xrpath)
  30095. + # We need an absolute path.
  30096. + case $arg in
  30097. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  30098. + *)
  30099. + func_fatal_error "only absolute run-paths are allowed"
  30100. + ;;
  30101. + esac
  30102. + if test "$prev" = rpath; then
  30103. + case "$rpath " in
  30104. + *" $arg "*) ;;
  30105. + *) rpath="$rpath $arg" ;;
  30106. + esac
  30107. + else
  30108. + case "$xrpath " in
  30109. + *" $arg "*) ;;
  30110. + *) xrpath="$xrpath $arg" ;;
  30111. + esac
  30112. + fi
  30113. + prev=
  30114. + continue
  30115. + ;;
  30116. + shrext)
  30117. + shrext_cmds="$arg"
  30118. + prev=
  30119. + continue
  30120. + ;;
  30121. + weak)
  30122. + weak_libs="$weak_libs $arg"
  30123. + prev=
  30124. + continue
  30125. + ;;
  30126. + xcclinker)
  30127. + linker_flags="$linker_flags $qarg"
  30128. + compiler_flags="$compiler_flags $qarg"
  30129. + prev=
  30130. + func_append compile_command " $qarg"
  30131. + func_append finalize_command " $qarg"
  30132. + continue
  30133. + ;;
  30134. + xcompiler)
  30135. + compiler_flags="$compiler_flags $qarg"
  30136. + prev=
  30137. + func_append compile_command " $qarg"
  30138. + func_append finalize_command " $qarg"
  30139. + continue
  30140. + ;;
  30141. + xlinker)
  30142. + linker_flags="$linker_flags $qarg"
  30143. + compiler_flags="$compiler_flags $wl$qarg"
  30144. + prev=
  30145. + func_append compile_command " $wl$qarg"
  30146. + func_append finalize_command " $wl$qarg"
  30147. + continue
  30148. + ;;
  30149. + *)
  30150. + eval "$prev=\"\$arg\""
  30151. + prev=
  30152. + continue
  30153. + ;;
  30154. + esac
  30155. + fi # test -n "$prev"
  30156. +
  30157. + prevarg="$arg"
  30158. +
  30159. + case $arg in
  30160. + -all-static)
  30161. + if test -n "$link_static_flag"; then
  30162. + # See comment for -static flag below, for more details.
  30163. + func_append compile_command " $link_static_flag"
  30164. + func_append finalize_command " $link_static_flag"
  30165. + fi
  30166. + continue
  30167. + ;;
  30168. +
  30169. + -allow-undefined)
  30170. + # FIXME: remove this flag sometime in the future.
  30171. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  30172. + ;;
  30173. +
  30174. + -avoid-version)
  30175. + avoid_version=yes
  30176. + continue
  30177. + ;;
  30178. +
  30179. + -dlopen)
  30180. + prev=dlfiles
  30181. + continue
  30182. + ;;
  30183. +
  30184. + -dlpreopen)
  30185. + prev=dlprefiles
  30186. + continue
  30187. + ;;
  30188. +
  30189. + -export-dynamic)
  30190. + export_dynamic=yes
  30191. + continue
  30192. + ;;
  30193. +
  30194. + -export-symbols | -export-symbols-regex)
  30195. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  30196. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  30197. + fi
  30198. + if test "X$arg" = "X-export-symbols"; then
  30199. + prev=expsyms
  30200. + else
  30201. + prev=expsyms_regex
  30202. + fi
  30203. + continue
  30204. + ;;
  30205. +
  30206. + -framework)
  30207. + prev=framework
  30208. + continue
  30209. + ;;
  30210. +
  30211. + -inst-prefix-dir)
  30212. + prev=inst_prefix
  30213. + continue
  30214. + ;;
  30215. +
  30216. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  30217. + # so, if we see these flags be careful not to treat them like -L
  30218. + -L[A-Z][A-Z]*:*)
  30219. + case $with_gcc/$host in
  30220. + no/*-*-irix* | /*-*-irix*)
  30221. + func_append compile_command " $arg"
  30222. + func_append finalize_command " $arg"
  30223. + ;;
  30224. + esac
  30225. + continue
  30226. + ;;
  30227. +
  30228. + -L*)
  30229. + func_stripname '-L' '' "$arg"
  30230. + dir=$func_stripname_result
  30231. + if test -z "$dir"; then
  30232. + if test "$#" -gt 0; then
  30233. + func_fatal_error "require no space between \`-L' and \`$1'"
  30234. + else
  30235. + func_fatal_error "need path for \`-L' option"
  30236. + fi
  30237. + fi
  30238. + # We need an absolute path.
  30239. + case $dir in
  30240. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  30241. + *)
  30242. + absdir=`cd "$dir" && pwd`
  30243. + test -z "$absdir" && \
  30244. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  30245. + dir="$absdir"
  30246. + ;;
  30247. + esac
  30248. + case "$deplibs " in
  30249. + *" -L$dir "*) ;;
  30250. + *)
  30251. + deplibs="$deplibs -L$dir"
  30252. + lib_search_path="$lib_search_path $dir"
  30253. + ;;
  30254. + esac
  30255. + case $host in
  30256. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  30257. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  30258. + case :$dllsearchpath: in
  30259. + *":$dir:"*) ;;
  30260. + ::) dllsearchpath=$dir;;
  30261. + *) dllsearchpath="$dllsearchpath:$dir";;
  30262. + esac
  30263. + case :$dllsearchpath: in
  30264. + *":$testbindir:"*) ;;
  30265. + ::) dllsearchpath=$testbindir;;
  30266. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  30267. + esac
  30268. + ;;
  30269. + esac
  30270. + continue
  30271. + ;;
  30272. +
  30273. + -l*)
  30274. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  30275. + case $host in
  30276. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  30277. + # These systems don't actually have a C or math library (as such)
  30278. + continue
  30279. + ;;
  30280. + *-*-os2*)
  30281. + # These systems don't actually have a C library (as such)
  30282. + test "X$arg" = "X-lc" && continue
  30283. + ;;
  30284. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  30285. + # Do not include libc due to us having libc/libc_r.
  30286. + test "X$arg" = "X-lc" && continue
  30287. + ;;
  30288. + *-*-rhapsody* | *-*-darwin1.[012])
  30289. + # Rhapsody C and math libraries are in the System framework
  30290. + deplibs="$deplibs System.ltframework"
  30291. + continue
  30292. + ;;
  30293. + *-*-sco3.2v5* | *-*-sco5v6*)
  30294. + # Causes problems with __ctype
  30295. + test "X$arg" = "X-lc" && continue
  30296. + ;;
  30297. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  30298. + # Compiler inserts libc in the correct place for threads to work
  30299. + test "X$arg" = "X-lc" && continue
  30300. + ;;
  30301. + esac
  30302. + elif test "X$arg" = "X-lc_r"; then
  30303. + case $host in
  30304. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  30305. + # Do not include libc_r directly, use -pthread flag.
  30306. + continue
  30307. + ;;
  30308. + esac
  30309. + fi
  30310. + deplibs="$deplibs $arg"
  30311. + continue
  30312. + ;;
  30313. +
  30314. + -module)
  30315. + module=yes
  30316. + continue
  30317. + ;;
  30318. +
  30319. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  30320. + # classes, name mangling, and exception handling.
  30321. + # Darwin uses the -arch flag to determine output architecture.
  30322. + -model|-arch|-isysroot)
  30323. + compiler_flags="$compiler_flags $arg"
  30324. + func_append compile_command " $arg"
  30325. + func_append finalize_command " $arg"
  30326. + prev=xcompiler
  30327. + continue
  30328. + ;;
  30329. +
  30330. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  30331. + compiler_flags="$compiler_flags $arg"
  30332. + func_append compile_command " $arg"
  30333. + func_append finalize_command " $arg"
  30334. + case "$new_inherited_linker_flags " in
  30335. + *" $arg "*) ;;
  30336. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  30337. + esac
  30338. + continue
  30339. + ;;
  30340. +
  30341. + -multi_module)
  30342. + single_module="${wl}-multi_module"
  30343. + continue
  30344. + ;;
  30345. +
  30346. + -no-fast-install)
  30347. + fast_install=no
  30348. + continue
  30349. + ;;
  30350. +
  30351. + -no-install)
  30352. + case $host in
  30353. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  30354. + # The PATH hackery in wrapper scripts is required on Windows
  30355. + # and Darwin in order for the loader to find any dlls it needs.
  30356. + func_warning "\`-no-install' is ignored for $host"
  30357. + func_warning "assuming \`-no-fast-install' instead"
  30358. + fast_install=no
  30359. + ;;
  30360. + *) no_install=yes ;;
  30361. + esac
  30362. + continue
  30363. + ;;
  30364. +
  30365. + -no-undefined)
  30366. + allow_undefined=no
  30367. + continue
  30368. + ;;
  30369. +
  30370. + -objectlist)
  30371. + prev=objectlist
  30372. + continue
  30373. + ;;
  30374. +
  30375. + -o) prev=output ;;
  30376. +
  30377. + -precious-files-regex)
  30378. + prev=precious_regex
  30379. + continue
  30380. + ;;
  30381. +
  30382. + -release)
  30383. + prev=release
  30384. + continue
  30385. + ;;
  30386. +
  30387. + -rpath)
  30388. + prev=rpath
  30389. + continue
  30390. + ;;
  30391. +
  30392. + -R)
  30393. + prev=xrpath
  30394. + continue
  30395. + ;;
  30396. +
  30397. + -R*)
  30398. + func_stripname '-R' '' "$arg"
  30399. + dir=$func_stripname_result
  30400. + # We need an absolute path.
  30401. + case $dir in
  30402. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  30403. + *)
  30404. + func_fatal_error "only absolute run-paths are allowed"
  30405. + ;;
  30406. + esac
  30407. + case "$xrpath " in
  30408. + *" $dir "*) ;;
  30409. + *) xrpath="$xrpath $dir" ;;
  30410. + esac
  30411. + continue
  30412. + ;;
  30413. +
  30414. + -shared)
  30415. + # The effects of -shared are defined in a previous loop.
  30416. + continue
  30417. + ;;
  30418. +
  30419. + -shrext)
  30420. + prev=shrext
  30421. + continue
  30422. + ;;
  30423. +
  30424. + -static | -static-libtool-libs)
  30425. + # The effects of -static are defined in a previous loop.
  30426. + # We used to do the same as -all-static on platforms that
  30427. + # didn't have a PIC flag, but the assumption that the effects
  30428. + # would be equivalent was wrong. It would break on at least
  30429. + # Digital Unix and AIX.
  30430. + continue
  30431. + ;;
  30432. +
  30433. + -thread-safe)
  30434. + thread_safe=yes
  30435. + continue
  30436. + ;;
  30437. +
  30438. + -version-info)
  30439. + prev=vinfo
  30440. + continue
  30441. + ;;
  30442. +
  30443. + -version-number)
  30444. + prev=vinfo
  30445. + vinfo_number=yes
  30446. + continue
  30447. + ;;
  30448. +
  30449. + -weak)
  30450. + prev=weak
  30451. + continue
  30452. + ;;
  30453. +
  30454. + -Wc,*)
  30455. + func_stripname '-Wc,' '' "$arg"
  30456. + args=$func_stripname_result
  30457. + arg=
  30458. + save_ifs="$IFS"; IFS=','
  30459. + for flag in $args; do
  30460. + IFS="$save_ifs"
  30461. + func_quote_for_eval "$flag"
  30462. + arg="$arg $wl$func_quote_for_eval_result"
  30463. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  30464. + done
  30465. + IFS="$save_ifs"
  30466. + func_stripname ' ' '' "$arg"
  30467. + arg=$func_stripname_result
  30468. + ;;
  30469. +
  30470. + -Wl,*)
  30471. + func_stripname '-Wl,' '' "$arg"
  30472. + args=$func_stripname_result
  30473. + arg=
  30474. + save_ifs="$IFS"; IFS=','
  30475. + for flag in $args; do
  30476. + IFS="$save_ifs"
  30477. + func_quote_for_eval "$flag"
  30478. + arg="$arg $wl$func_quote_for_eval_result"
  30479. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  30480. + linker_flags="$linker_flags $func_quote_for_eval_result"
  30481. + done
  30482. + IFS="$save_ifs"
  30483. + func_stripname ' ' '' "$arg"
  30484. + arg=$func_stripname_result
  30485. + ;;
  30486. +
  30487. + -Xcompiler)
  30488. + prev=xcompiler
  30489. + continue
  30490. + ;;
  30491. +
  30492. + -Xlinker)
  30493. + prev=xlinker
  30494. + continue
  30495. + ;;
  30496. +
  30497. + -XCClinker)
  30498. + prev=xcclinker
  30499. + continue
  30500. + ;;
  30501. +
  30502. + # -msg_* for osf cc
  30503. + -msg_*)
  30504. + func_quote_for_eval "$arg"
  30505. + arg="$func_quote_for_eval_result"
  30506. + ;;
  30507. +
  30508. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  30509. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  30510. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  30511. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  30512. + # -q* pass through compiler args for the IBM compiler
  30513. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  30514. + # compiler args for GCC
  30515. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  30516. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  30517. + # @file GCC response files
  30518. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  30519. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
  30520. + func_quote_for_eval "$arg"
  30521. + arg="$func_quote_for_eval_result"
  30522. + func_append compile_command " $arg"
  30523. + func_append finalize_command " $arg"
  30524. + compiler_flags="$compiler_flags $arg"
  30525. + continue
  30526. + ;;
  30527. +
  30528. + # Some other compiler flag.
  30529. + -* | +*)
  30530. + func_quote_for_eval "$arg"
  30531. + arg="$func_quote_for_eval_result"
  30532. + ;;
  30533. +
  30534. + *.$objext)
  30535. + # A standard object.
  30536. + objs="$objs $arg"
  30537. + ;;
  30538. +
  30539. + *.lo)
  30540. + # A libtool-controlled object.
  30541. +
  30542. + # Check to see that this really is a libtool object.
  30543. + if func_lalib_unsafe_p "$arg"; then
  30544. + pic_object=
  30545. + non_pic_object=
  30546. +
  30547. + # Read the .lo file
  30548. + func_source "$arg"
  30549. +
  30550. + if test -z "$pic_object" ||
  30551. + test -z "$non_pic_object" ||
  30552. + test "$pic_object" = none &&
  30553. + test "$non_pic_object" = none; then
  30554. + func_fatal_error "cannot find name of object for \`$arg'"
  30555. + fi
  30556. +
  30557. + # Extract subdirectory from the argument.
  30558. + func_dirname "$arg" "/" ""
  30559. + xdir="$func_dirname_result"
  30560. +
  30561. + if test "$pic_object" != none; then
  30562. + # Prepend the subdirectory the object is found in.
  30563. + pic_object="$xdir$pic_object"
  30564. +
  30565. + if test "$prev" = dlfiles; then
  30566. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  30567. + dlfiles="$dlfiles $pic_object"
  30568. + prev=
  30569. + continue
  30570. + else
  30571. + # If libtool objects are unsupported, then we need to preload.
  30572. + prev=dlprefiles
  30573. + fi
  30574. + fi
  30575. +
  30576. + # CHECK ME: I think I busted this. -Ossama
  30577. + if test "$prev" = dlprefiles; then
  30578. + # Preload the old-style object.
  30579. + dlprefiles="$dlprefiles $pic_object"
  30580. + prev=
  30581. + fi
  30582. +
  30583. + # A PIC object.
  30584. + func_append libobjs " $pic_object"
  30585. + arg="$pic_object"
  30586. + fi
  30587. +
  30588. + # Non-PIC object.
  30589. + if test "$non_pic_object" != none; then
  30590. + # Prepend the subdirectory the object is found in.
  30591. + non_pic_object="$xdir$non_pic_object"
  30592. +
  30593. + # A standard non-PIC object
  30594. + func_append non_pic_objects " $non_pic_object"
  30595. + if test -z "$pic_object" || test "$pic_object" = none ; then
  30596. + arg="$non_pic_object"
  30597. + fi
  30598. + else
  30599. + # If the PIC object exists, use it instead.
  30600. + # $xdir was prepended to $pic_object above.
  30601. + non_pic_object="$pic_object"
  30602. + func_append non_pic_objects " $non_pic_object"
  30603. + fi
  30604. + else
  30605. + # Only an error if not doing a dry-run.
  30606. + if $opt_dry_run; then
  30607. + # Extract subdirectory from the argument.
  30608. + func_dirname "$arg" "/" ""
  30609. + xdir="$func_dirname_result"
  30610. +
  30611. + func_lo2o "$arg"
  30612. + pic_object=$xdir$objdir/$func_lo2o_result
  30613. + non_pic_object=$xdir$func_lo2o_result
  30614. + func_append libobjs " $pic_object"
  30615. + func_append non_pic_objects " $non_pic_object"
  30616. + else
  30617. + func_fatal_error "\`$arg' is not a valid libtool object"
  30618. + fi
  30619. + fi
  30620. + ;;
  30621. +
  30622. + *.$libext)
  30623. + # An archive.
  30624. + deplibs="$deplibs $arg"
  30625. + old_deplibs="$old_deplibs $arg"
  30626. + continue
  30627. + ;;
  30628. +
  30629. + *.la)
  30630. + # A libtool-controlled library.
  30631. +
  30632. + if test "$prev" = dlfiles; then
  30633. + # This library was specified with -dlopen.
  30634. + dlfiles="$dlfiles $arg"
  30635. + prev=
  30636. + elif test "$prev" = dlprefiles; then
  30637. + # The library was specified with -dlpreopen.
  30638. + dlprefiles="$dlprefiles $arg"
  30639. + prev=
  30640. + else
  30641. + deplibs="$deplibs $arg"
  30642. + fi
  30643. + continue
  30644. + ;;
  30645. +
  30646. + # Some other compiler argument.
  30647. + *)
  30648. + # Unknown arguments in both finalize_command and compile_command need
  30649. + # to be aesthetically quoted because they are evaled later.
  30650. + func_quote_for_eval "$arg"
  30651. + arg="$func_quote_for_eval_result"
  30652. + ;;
  30653. + esac # arg
  30654. +
  30655. + # Now actually substitute the argument into the commands.
  30656. + if test -n "$arg"; then
  30657. + func_append compile_command " $arg"
  30658. + func_append finalize_command " $arg"
  30659. + fi
  30660. + done # argument parsing loop
  30661. +
  30662. + test -n "$prev" && \
  30663. + func_fatal_help "the \`$prevarg' option requires an argument"
  30664. +
  30665. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  30666. + eval arg=\"$export_dynamic_flag_spec\"
  30667. + func_append compile_command " $arg"
  30668. + func_append finalize_command " $arg"
  30669. + fi
  30670. +
  30671. + oldlibs=
  30672. + # calculate the name of the file, without its directory
  30673. + func_basename "$output"
  30674. + outputname="$func_basename_result"
  30675. + libobjs_save="$libobjs"
  30676. +
  30677. + if test -n "$shlibpath_var"; then
  30678. + # get the directories listed in $shlibpath_var
  30679. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  30680. + else
  30681. + shlib_search_path=
  30682. + fi
  30683. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  30684. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  30685. +
  30686. + func_dirname "$output" "/" ""
  30687. + output_objdir="$func_dirname_result$objdir"
  30688. + # Create the object directory.
  30689. + func_mkdir_p "$output_objdir"
  30690. +
  30691. + # Determine the type of output
  30692. + case $output in
  30693. + "")
  30694. + func_fatal_help "you must specify an output file"
  30695. + ;;
  30696. + *.$libext) linkmode=oldlib ;;
  30697. + *.lo | *.$objext) linkmode=obj ;;
  30698. + *.la) linkmode=lib ;;
  30699. + *) linkmode=prog ;; # Anything else should be a program.
  30700. + esac
  30701. +
  30702. + specialdeplibs=
  30703. +
  30704. + libs=
  30705. + # Find all interdependent deplibs by searching for libraries
  30706. + # that are linked more than once (e.g. -la -lb -la)
  30707. + for deplib in $deplibs; do
  30708. + if $opt_duplicate_deps ; then
  30709. + case "$libs " in
  30710. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  30711. + esac
  30712. + fi
  30713. + libs="$libs $deplib"
  30714. + done
  30715. +
  30716. + if test "$linkmode" = lib; then
  30717. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  30718. +
  30719. + # Compute libraries that are listed more than once in $predeps
  30720. + # $postdeps and mark them as special (i.e., whose duplicates are
  30721. + # not to be eliminated).
  30722. + pre_post_deps=
  30723. + if $opt_duplicate_compiler_generated_deps; then
  30724. + for pre_post_dep in $predeps $postdeps; do
  30725. + case "$pre_post_deps " in
  30726. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  30727. + esac
  30728. + pre_post_deps="$pre_post_deps $pre_post_dep"
  30729. + done
  30730. + fi
  30731. + pre_post_deps=
  30732. + fi
  30733. +
  30734. + deplibs=
  30735. + newdependency_libs=
  30736. + newlib_search_path=
  30737. + need_relink=no # whether we're linking any uninstalled libtool libraries
  30738. + notinst_deplibs= # not-installed libtool libraries
  30739. + notinst_path= # paths that contain not-installed libtool libraries
  30740. +
  30741. + case $linkmode in
  30742. + lib)
  30743. + passes="conv dlpreopen link"
  30744. + for file in $dlfiles $dlprefiles; do
  30745. + case $file in
  30746. + *.la) ;;
  30747. + *)
  30748. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  30749. + ;;
  30750. + esac
  30751. + done
  30752. + ;;
  30753. + prog)
  30754. + compile_deplibs=
  30755. + finalize_deplibs=
  30756. + alldeplibs=no
  30757. + newdlfiles=
  30758. + newdlprefiles=
  30759. + passes="conv scan dlopen dlpreopen link"
  30760. + ;;
  30761. + *) passes="conv"
  30762. + ;;
  30763. + esac
  30764. +
  30765. + for pass in $passes; do
  30766. + # The preopen pass in lib mode reverses $deplibs; put it back here
  30767. + # so that -L comes before libs that need it for instance...
  30768. + if test "$linkmode,$pass" = "lib,link"; then
  30769. + ## FIXME: Find the place where the list is rebuilt in the wrong
  30770. + ## order, and fix it there properly
  30771. + tmp_deplibs=
  30772. + for deplib in $deplibs; do
  30773. + tmp_deplibs="$deplib $tmp_deplibs"
  30774. + done
  30775. + deplibs="$tmp_deplibs"
  30776. + fi
  30777. +
  30778. + if test "$linkmode,$pass" = "lib,link" ||
  30779. + test "$linkmode,$pass" = "prog,scan"; then
  30780. + libs="$deplibs"
  30781. + deplibs=
  30782. + fi
  30783. + if test "$linkmode" = prog; then
  30784. + case $pass in
  30785. + dlopen) libs="$dlfiles" ;;
  30786. + dlpreopen) libs="$dlprefiles" ;;
  30787. + link)
  30788. + libs="$deplibs %DEPLIBS%"
  30789. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  30790. + ;;
  30791. + esac
  30792. + fi
  30793. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  30794. + # Collect and forward deplibs of preopened libtool libs
  30795. + for lib in $dlprefiles; do
  30796. + # Ignore non-libtool-libs
  30797. + dependency_libs=
  30798. + case $lib in
  30799. + *.la) func_source "$lib" ;;
  30800. + esac
  30801. +
  30802. + # Collect preopened libtool deplibs, except any this library
  30803. + # has declared as weak libs
  30804. + for deplib in $dependency_libs; do
  30805. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  30806. + case " $weak_libs " in
  30807. + *" $deplib_base "*) ;;
  30808. + *) deplibs="$deplibs $deplib" ;;
  30809. + esac
  30810. + done
  30811. + done
  30812. + libs="$dlprefiles"
  30813. + fi
  30814. + if test "$pass" = dlopen; then
  30815. + # Collect dlpreopened libraries
  30816. + save_deplibs="$deplibs"
  30817. + deplibs=
  30818. + fi
  30819. +
  30820. + for deplib in $libs; do
  30821. + lib=
  30822. + found=no
  30823. + case $deplib in
  30824. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  30825. + if test "$linkmode,$pass" = "prog,link"; then
  30826. + compile_deplibs="$deplib $compile_deplibs"
  30827. + finalize_deplibs="$deplib $finalize_deplibs"
  30828. + else
  30829. + compiler_flags="$compiler_flags $deplib"
  30830. + if test "$linkmode" = lib ; then
  30831. + case "$new_inherited_linker_flags " in
  30832. + *" $deplib "*) ;;
  30833. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  30834. + esac
  30835. + fi
  30836. + fi
  30837. + continue
  30838. + ;;
  30839. + -l*)
  30840. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  30841. + func_warning "\`-l' is ignored for archives/objects"
  30842. + continue
  30843. + fi
  30844. + func_stripname '-l' '' "$deplib"
  30845. + name=$func_stripname_result
  30846. + if test "$linkmode" = lib; then
  30847. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  30848. + else
  30849. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  30850. + fi
  30851. + for searchdir in $searchdirs; do
  30852. + for search_ext in .la $std_shrext .so .a; do
  30853. + # Search the libtool library
  30854. + lib="$searchdir/lib${name}${search_ext}"
  30855. + if test -f "$lib"; then
  30856. + if test "$search_ext" = ".la"; then
  30857. + found=yes
  30858. + else
  30859. + found=no
  30860. + fi
  30861. + break 2
  30862. + fi
  30863. + done
  30864. + done
  30865. + if test "$found" != yes; then
  30866. + # deplib doesn't seem to be a libtool library
  30867. + if test "$linkmode,$pass" = "prog,link"; then
  30868. + compile_deplibs="$deplib $compile_deplibs"
  30869. + finalize_deplibs="$deplib $finalize_deplibs"
  30870. + else
  30871. + deplibs="$deplib $deplibs"
  30872. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  30873. + fi
  30874. + continue
  30875. + else # deplib is a libtool library
  30876. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  30877. + # We need to do some special things here, and not later.
  30878. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  30879. + case " $predeps $postdeps " in
  30880. + *" $deplib "*)
  30881. + if func_lalib_p "$lib"; then
  30882. + library_names=
  30883. + old_library=
  30884. + func_source "$lib"
  30885. + for l in $old_library $library_names; do
  30886. + ll="$l"
  30887. + done
  30888. + if test "X$ll" = "X$old_library" ; then # only static version available
  30889. + found=no
  30890. + func_dirname "$lib" "" "."
  30891. + ladir="$func_dirname_result"
  30892. + lib=$ladir/$old_library
  30893. + if test "$linkmode,$pass" = "prog,link"; then
  30894. + compile_deplibs="$deplib $compile_deplibs"
  30895. + finalize_deplibs="$deplib $finalize_deplibs"
  30896. + else
  30897. + deplibs="$deplib $deplibs"
  30898. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  30899. + fi
  30900. + continue
  30901. + fi
  30902. + fi
  30903. + ;;
  30904. + *) ;;
  30905. + esac
  30906. + fi
  30907. + fi
  30908. + ;; # -l
  30909. + *.ltframework)
  30910. + if test "$linkmode,$pass" = "prog,link"; then
  30911. + compile_deplibs="$deplib $compile_deplibs"
  30912. + finalize_deplibs="$deplib $finalize_deplibs"
  30913. + else
  30914. + deplibs="$deplib $deplibs"
  30915. + if test "$linkmode" = lib ; then
  30916. + case "$new_inherited_linker_flags " in
  30917. + *" $deplib "*) ;;
  30918. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  30919. + esac
  30920. + fi
  30921. + fi
  30922. + continue
  30923. + ;;
  30924. + -L*)
  30925. + case $linkmode in
  30926. + lib)
  30927. + deplibs="$deplib $deplibs"
  30928. + test "$pass" = conv && continue
  30929. + newdependency_libs="$deplib $newdependency_libs"
  30930. + func_stripname '-L' '' "$deplib"
  30931. + newlib_search_path="$newlib_search_path $func_stripname_result"
  30932. + ;;
  30933. + prog)
  30934. + if test "$pass" = conv; then
  30935. + deplibs="$deplib $deplibs"
  30936. + continue
  30937. + fi
  30938. + if test "$pass" = scan; then
  30939. + deplibs="$deplib $deplibs"
  30940. + else
  30941. + compile_deplibs="$deplib $compile_deplibs"
  30942. + finalize_deplibs="$deplib $finalize_deplibs"
  30943. + fi
  30944. + func_stripname '-L' '' "$deplib"
  30945. + newlib_search_path="$newlib_search_path $func_stripname_result"
  30946. + ;;
  30947. + *)
  30948. + func_warning "\`-L' is ignored for archives/objects"
  30949. + ;;
  30950. + esac # linkmode
  30951. + continue
  30952. + ;; # -L
  30953. + -R*)
  30954. + if test "$pass" = link; then
  30955. + func_stripname '-R' '' "$deplib"
  30956. + dir=$func_stripname_result
  30957. + # Make sure the xrpath contains only unique directories.
  30958. + case "$xrpath " in
  30959. + *" $dir "*) ;;
  30960. + *) xrpath="$xrpath $dir" ;;
  30961. + esac
  30962. + fi
  30963. + deplibs="$deplib $deplibs"
  30964. + continue
  30965. + ;;
  30966. + *.la) lib="$deplib" ;;
  30967. + *.$libext)
  30968. + if test "$pass" = conv; then
  30969. + deplibs="$deplib $deplibs"
  30970. + continue
  30971. + fi
  30972. + case $linkmode in
  30973. + lib)
  30974. + # Linking convenience modules into shared libraries is allowed,
  30975. + # but linking other static libraries is non-portable.
  30976. + case " $dlpreconveniencelibs " in
  30977. + *" $deplib "*) ;;
  30978. + *)
  30979. + valid_a_lib=no
  30980. + case $deplibs_check_method in
  30981. + match_pattern*)
  30982. + set dummy $deplibs_check_method; shift
  30983. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  30984. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  30985. + | $EGREP "$match_pattern_regex" > /dev/null; then
  30986. + valid_a_lib=yes
  30987. + fi
  30988. + ;;
  30989. + pass_all)
  30990. + valid_a_lib=yes
  30991. + ;;
  30992. + esac
  30993. + if test "$valid_a_lib" != yes; then
  30994. + $ECHO
  30995. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  30996. + $ECHO "*** I have the capability to make that library automatically link in when"
  30997. + $ECHO "*** you link to this library. But I can only do this if you have a"
  30998. + $ECHO "*** shared version of the library, which you do not appear to have"
  30999. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  31000. + $ECHO "*** that it is just a static archive that I should not use here."
  31001. + else
  31002. + $ECHO
  31003. + $ECHO "*** Warning: Linking the shared library $output against the"
  31004. + $ECHO "*** static library $deplib is not portable!"
  31005. + deplibs="$deplib $deplibs"
  31006. + fi
  31007. + ;;
  31008. + esac
  31009. + continue
  31010. + ;;
  31011. + prog)
  31012. + if test "$pass" != link; then
  31013. + deplibs="$deplib $deplibs"
  31014. + else
  31015. + compile_deplibs="$deplib $compile_deplibs"
  31016. + finalize_deplibs="$deplib $finalize_deplibs"
  31017. + fi
  31018. + continue
  31019. + ;;
  31020. + esac # linkmode
  31021. + ;; # *.$libext
  31022. + *.lo | *.$objext)
  31023. + if test "$pass" = conv; then
  31024. + deplibs="$deplib $deplibs"
  31025. + elif test "$linkmode" = prog; then
  31026. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  31027. + # If there is no dlopen support or we're linking statically,
  31028. + # we need to preload.
  31029. + newdlprefiles="$newdlprefiles $deplib"
  31030. + compile_deplibs="$deplib $compile_deplibs"
  31031. + finalize_deplibs="$deplib $finalize_deplibs"
  31032. + else
  31033. + newdlfiles="$newdlfiles $deplib"
  31034. + fi
  31035. + fi
  31036. + continue
  31037. + ;;
  31038. + %DEPLIBS%)
  31039. + alldeplibs=yes
  31040. + continue
  31041. + ;;
  31042. + esac # case $deplib
  31043. +
  31044. + if test "$found" = yes || test -f "$lib"; then :
  31045. + else
  31046. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  31047. + fi
  31048. +
  31049. + # Check to see that this really is a libtool archive.
  31050. + func_lalib_unsafe_p "$lib" \
  31051. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  31052. +
  31053. + func_dirname "$lib" "" "."
  31054. + ladir="$func_dirname_result"
  31055. +
  31056. + dlname=
  31057. + dlopen=
  31058. + dlpreopen=
  31059. + libdir=
  31060. + library_names=
  31061. + old_library=
  31062. + inherited_linker_flags=
  31063. + # If the library was installed with an old release of libtool,
  31064. + # it will not redefine variables installed, or shouldnotlink
  31065. + installed=yes
  31066. + shouldnotlink=no
  31067. + avoidtemprpath=
  31068. +
  31069. +
  31070. + # Read the .la file
  31071. + func_source "$lib"
  31072. +
  31073. + # Convert "-framework foo" to "foo.ltframework"
  31074. + if test -n "$inherited_linker_flags"; then
  31075. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  31076. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  31077. + case " $new_inherited_linker_flags " in
  31078. + *" $tmp_inherited_linker_flag "*) ;;
  31079. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  31080. + esac
  31081. + done
  31082. + fi
  31083. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  31084. + if test "$linkmode,$pass" = "lib,link" ||
  31085. + test "$linkmode,$pass" = "prog,scan" ||
  31086. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  31087. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  31088. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  31089. + fi
  31090. +
  31091. + if test "$pass" = conv; then
  31092. + # Only check for convenience libraries
  31093. + deplibs="$lib $deplibs"
  31094. + if test -z "$libdir"; then
  31095. + if test -z "$old_library"; then
  31096. + func_fatal_error "cannot find name of link library for \`$lib'"
  31097. + fi
  31098. + # It is a libtool convenience library, so add in its objects.
  31099. + convenience="$convenience $ladir/$objdir/$old_library"
  31100. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  31101. + tmp_libs=
  31102. + for deplib in $dependency_libs; do
  31103. + deplibs="$deplib $deplibs"
  31104. + if $opt_duplicate_deps ; then
  31105. + case "$tmp_libs " in
  31106. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  31107. + esac
  31108. + fi
  31109. + tmp_libs="$tmp_libs $deplib"
  31110. + done
  31111. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  31112. + func_fatal_error "\`$lib' is not a convenience library"
  31113. + fi
  31114. + continue
  31115. + fi # $pass = conv
  31116. +
  31117. +
  31118. + # Get the name of the library we link against.
  31119. + linklib=
  31120. + for l in $old_library $library_names; do
  31121. + linklib="$l"
  31122. + done
  31123. + if test -z "$linklib"; then
  31124. + func_fatal_error "cannot find name of link library for \`$lib'"
  31125. + fi
  31126. +
  31127. + # This library was specified with -dlopen.
  31128. + if test "$pass" = dlopen; then
  31129. + if test -z "$libdir"; then
  31130. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  31131. + fi
  31132. + if test -z "$dlname" ||
  31133. + test "$dlopen_support" != yes ||
  31134. + test "$build_libtool_libs" = no; then
  31135. + # If there is no dlname, no dlopen support or we're linking
  31136. + # statically, we need to preload. We also need to preload any
  31137. + # dependent libraries so libltdl's deplib preloader doesn't
  31138. + # bomb out in the load deplibs phase.
  31139. + dlprefiles="$dlprefiles $lib $dependency_libs"
  31140. + else
  31141. + newdlfiles="$newdlfiles $lib"
  31142. + fi
  31143. + continue
  31144. + fi # $pass = dlopen
  31145. +
  31146. + # We need an absolute path.
  31147. + case $ladir in
  31148. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  31149. + *)
  31150. + abs_ladir=`cd "$ladir" && pwd`
  31151. + if test -z "$abs_ladir"; then
  31152. + func_warning "cannot determine absolute directory name of \`$ladir'"
  31153. + func_warning "passing it literally to the linker, although it might fail"
  31154. + abs_ladir="$ladir"
  31155. + fi
  31156. + ;;
  31157. + esac
  31158. + func_basename "$lib"
  31159. + laname="$func_basename_result"
  31160. +
  31161. + # Find the relevant object directory and library name.
  31162. + if test "X$installed" = Xyes; then
  31163. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  31164. + func_warning "library \`$lib' was moved."
  31165. + dir="$ladir"
  31166. + absdir="$abs_ladir"
  31167. + libdir="$abs_ladir"
  31168. + else
  31169. + dir="$libdir"
  31170. + absdir="$libdir"
  31171. + fi
  31172. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  31173. + else
  31174. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  31175. + dir="$ladir"
  31176. + absdir="$abs_ladir"
  31177. + # Remove this search path later
  31178. + notinst_path="$notinst_path $abs_ladir"
  31179. + else
  31180. + dir="$ladir/$objdir"
  31181. + absdir="$abs_ladir/$objdir"
  31182. + # Remove this search path later
  31183. + notinst_path="$notinst_path $abs_ladir"
  31184. + fi
  31185. + fi # $installed = yes
  31186. + func_stripname 'lib' '.la' "$laname"
  31187. + name=$func_stripname_result
  31188. +
  31189. + # This library was specified with -dlpreopen.
  31190. + if test "$pass" = dlpreopen; then
  31191. + if test -z "$libdir" && test "$linkmode" = prog; then
  31192. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  31193. + fi
  31194. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  31195. + # are required to link).
  31196. + if test -n "$old_library"; then
  31197. + newdlprefiles="$newdlprefiles $dir/$old_library"
  31198. + # Keep a list of preopened convenience libraries to check
  31199. + # that they are being used correctly in the link pass.
  31200. + test -z "$libdir" && \
  31201. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  31202. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  31203. + elif test -n "$dlname"; then
  31204. + newdlprefiles="$newdlprefiles $dir/$dlname"
  31205. + else
  31206. + newdlprefiles="$newdlprefiles $dir/$linklib"
  31207. + fi
  31208. + fi # $pass = dlpreopen
  31209. +
  31210. + if test -z "$libdir"; then
  31211. + # Link the convenience library
  31212. + if test "$linkmode" = lib; then
  31213. + deplibs="$dir/$old_library $deplibs"
  31214. + elif test "$linkmode,$pass" = "prog,link"; then
  31215. + compile_deplibs="$dir/$old_library $compile_deplibs"
  31216. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  31217. + else
  31218. + deplibs="$lib $deplibs" # used for prog,scan pass
  31219. + fi
  31220. + continue
  31221. + fi
  31222. +
  31223. +
  31224. + if test "$linkmode" = prog && test "$pass" != link; then
  31225. + newlib_search_path="$newlib_search_path $ladir"
  31226. + deplibs="$lib $deplibs"
  31227. +
  31228. + linkalldeplibs=no
  31229. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  31230. + test "$build_libtool_libs" = no; then
  31231. + linkalldeplibs=yes
  31232. + fi
  31233. +
  31234. + tmp_libs=
  31235. + for deplib in $dependency_libs; do
  31236. + case $deplib in
  31237. + -L*) func_stripname '-L' '' "$deplib"
  31238. + newlib_search_path="$newlib_search_path $func_stripname_result"
  31239. + ;;
  31240. + esac
  31241. + # Need to link against all dependency_libs?
  31242. + if test "$linkalldeplibs" = yes; then
  31243. + deplibs="$deplib $deplibs"
  31244. + else
  31245. + # Need to hardcode shared library paths
  31246. + # or/and link against static libraries
  31247. + newdependency_libs="$deplib $newdependency_libs"
  31248. + fi
  31249. + if $opt_duplicate_deps ; then
  31250. + case "$tmp_libs " in
  31251. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  31252. + esac
  31253. + fi
  31254. + tmp_libs="$tmp_libs $deplib"
  31255. + done # for deplib
  31256. + continue
  31257. + fi # $linkmode = prog...
  31258. +
  31259. + if test "$linkmode,$pass" = "prog,link"; then
  31260. + if test -n "$library_names" &&
  31261. + { { test "$prefer_static_libs" = no ||
  31262. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  31263. + test -z "$old_library"; }; then
  31264. + # We need to hardcode the library path
  31265. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  31266. + # Make sure the rpath contains only unique directories.
  31267. + case "$temp_rpath:" in
  31268. + *"$absdir:"*) ;;
  31269. + *) temp_rpath="$temp_rpath$absdir:" ;;
  31270. + esac
  31271. + fi
  31272. +
  31273. + # Hardcode the library path.
  31274. + # Skip directories that are in the system default run-time
  31275. + # search path.
  31276. + case " $sys_lib_dlsearch_path " in
  31277. + *" $absdir "*) ;;
  31278. + *)
  31279. + case "$compile_rpath " in
  31280. + *" $absdir "*) ;;
  31281. + *) compile_rpath="$compile_rpath $absdir"
  31282. + esac
  31283. + ;;
  31284. + esac
  31285. + case " $sys_lib_dlsearch_path " in
  31286. + *" $libdir "*) ;;
  31287. + *)
  31288. + case "$finalize_rpath " in
  31289. + *" $libdir "*) ;;
  31290. + *) finalize_rpath="$finalize_rpath $libdir"
  31291. + esac
  31292. + ;;
  31293. + esac
  31294. + fi # $linkmode,$pass = prog,link...
  31295. +
  31296. + if test "$alldeplibs" = yes &&
  31297. + { test "$deplibs_check_method" = pass_all ||
  31298. + { test "$build_libtool_libs" = yes &&
  31299. + test -n "$library_names"; }; }; then
  31300. + # We only need to search for static libraries
  31301. + continue
  31302. + fi
  31303. + fi
  31304. +
  31305. + link_static=no # Whether the deplib will be linked statically
  31306. + use_static_libs=$prefer_static_libs
  31307. + if test "$use_static_libs" = built && test "$installed" = yes; then
  31308. + use_static_libs=no
  31309. + fi
  31310. + if test -n "$library_names" &&
  31311. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  31312. + case $host in
  31313. + *cygwin* | *mingw* | *cegcc*)
  31314. + # No point in relinking DLLs because paths are not encoded
  31315. + notinst_deplibs="$notinst_deplibs $lib"
  31316. + need_relink=no
  31317. + ;;
  31318. + *)
  31319. + if test "$installed" = no; then
  31320. + notinst_deplibs="$notinst_deplibs $lib"
  31321. + need_relink=yes
  31322. + fi
  31323. + ;;
  31324. + esac
  31325. + # This is a shared library
  31326. +
  31327. + # Warn about portability, can't link against -module's on some
  31328. + # systems (darwin). Don't bleat about dlopened modules though!
  31329. + dlopenmodule=""
  31330. + for dlpremoduletest in $dlprefiles; do
  31331. + if test "X$dlpremoduletest" = "X$lib"; then
  31332. + dlopenmodule="$dlpremoduletest"
  31333. + break
  31334. + fi
  31335. + done
  31336. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  31337. + $ECHO
  31338. + if test "$linkmode" = prog; then
  31339. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  31340. + else
  31341. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  31342. + fi
  31343. + $ECHO "*** $linklib is not portable!"
  31344. + fi
  31345. + if test "$linkmode" = lib &&
  31346. + test "$hardcode_into_libs" = yes; then
  31347. + # Hardcode the library path.
  31348. + # Skip directories that are in the system default run-time
  31349. + # search path.
  31350. + case " $sys_lib_dlsearch_path " in
  31351. + *" $absdir "*) ;;
  31352. + *)
  31353. + case "$compile_rpath " in
  31354. + *" $absdir "*) ;;
  31355. + *) compile_rpath="$compile_rpath $absdir"
  31356. + esac
  31357. + ;;
  31358. + esac
  31359. + case " $sys_lib_dlsearch_path " in
  31360. + *" $libdir "*) ;;
  31361. + *)
  31362. + case "$finalize_rpath " in
  31363. + *" $libdir "*) ;;
  31364. + *) finalize_rpath="$finalize_rpath $libdir"
  31365. + esac
  31366. + ;;
  31367. + esac
  31368. + fi
  31369. +
  31370. + if test -n "$old_archive_from_expsyms_cmds"; then
  31371. + # figure out the soname
  31372. + set dummy $library_names
  31373. + shift
  31374. + realname="$1"
  31375. + shift
  31376. + libname=`eval "\\$ECHO \"$libname_spec\""`
  31377. + # use dlname if we got it. it's perfectly good, no?
  31378. + if test -n "$dlname"; then
  31379. + soname="$dlname"
  31380. + elif test -n "$soname_spec"; then
  31381. + # bleh windows
  31382. + case $host in
  31383. + *cygwin* | mingw* | *cegcc*)
  31384. + func_arith $current - $age
  31385. + major=$func_arith_result
  31386. + versuffix="-$major"
  31387. + ;;
  31388. + esac
  31389. + eval soname=\"$soname_spec\"
  31390. + else
  31391. + soname="$realname"
  31392. + fi
  31393. +
  31394. + # Make a new name for the extract_expsyms_cmds to use
  31395. + soroot="$soname"
  31396. + func_basename "$soroot"
  31397. + soname="$func_basename_result"
  31398. + func_stripname 'lib' '.dll' "$soname"
  31399. + newlib=libimp-$func_stripname_result.a
  31400. +
  31401. + # If the library has no export list, then create one now
  31402. + if test -f "$output_objdir/$soname-def"; then :
  31403. + else
  31404. + func_verbose "extracting exported symbol list from \`$soname'"
  31405. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  31406. + fi
  31407. +
  31408. + # Create $newlib
  31409. + if test -f "$output_objdir/$newlib"; then :; else
  31410. + func_verbose "generating import library for \`$soname'"
  31411. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  31412. + fi
  31413. + # make sure the library variables are pointing to the new library
  31414. + dir=$output_objdir
  31415. + linklib=$newlib
  31416. + fi # test -n "$old_archive_from_expsyms_cmds"
  31417. +
  31418. + if test "$linkmode" = prog || test "$mode" != relink; then
  31419. + add_shlibpath=
  31420. + add_dir=
  31421. + add=
  31422. + lib_linked=yes
  31423. + case $hardcode_action in
  31424. + immediate | unsupported)
  31425. + if test "$hardcode_direct" = no; then
  31426. + add="$dir/$linklib"
  31427. + case $host in
  31428. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  31429. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  31430. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  31431. + *-*-unixware7*) add_dir="-L$dir" ;;
  31432. + *-*-darwin* )
  31433. + # if the lib is a (non-dlopened) module then we can not
  31434. + # link against it, someone is ignoring the earlier warnings
  31435. + if /usr/bin/file -L $add 2> /dev/null |
  31436. + $GREP ": [^:]* bundle" >/dev/null ; then
  31437. + if test "X$dlopenmodule" != "X$lib"; then
  31438. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  31439. + if test -z "$old_library" ; then
  31440. + $ECHO
  31441. + $ECHO "*** And there doesn't seem to be a static archive available"
  31442. + $ECHO "*** The link will probably fail, sorry"
  31443. + else
  31444. + add="$dir/$old_library"
  31445. + fi
  31446. + elif test -n "$old_library"; then
  31447. + add="$dir/$old_library"
  31448. + fi
  31449. + fi
  31450. + esac
  31451. + elif test "$hardcode_minus_L" = no; then
  31452. + case $host in
  31453. + *-*-sunos*) add_shlibpath="$dir" ;;
  31454. + esac
  31455. + add_dir="-L$dir"
  31456. + add="-l$name"
  31457. + elif test "$hardcode_shlibpath_var" = no; then
  31458. + add_shlibpath="$dir"
  31459. + add="-l$name"
  31460. + else
  31461. + lib_linked=no
  31462. + fi
  31463. + ;;
  31464. + relink)
  31465. + if test "$hardcode_direct" = yes &&
  31466. + test "$hardcode_direct_absolute" = no; then
  31467. + add="$dir/$linklib"
  31468. + elif test "$hardcode_minus_L" = yes; then
  31469. + add_dir="-L$dir"
  31470. + # Try looking first in the location we're being installed to.
  31471. + if test -n "$inst_prefix_dir"; then
  31472. + case $libdir in
  31473. + [\\/]*)
  31474. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  31475. + ;;
  31476. + esac
  31477. + fi
  31478. + add="-l$name"
  31479. + elif test "$hardcode_shlibpath_var" = yes; then
  31480. + add_shlibpath="$dir"
  31481. + add="-l$name"
  31482. + else
  31483. + lib_linked=no
  31484. + fi
  31485. + ;;
  31486. + *) lib_linked=no ;;
  31487. + esac
  31488. +
  31489. + if test "$lib_linked" != yes; then
  31490. + func_fatal_configuration "unsupported hardcode properties"
  31491. + fi
  31492. +
  31493. + if test -n "$add_shlibpath"; then
  31494. + case :$compile_shlibpath: in
  31495. + *":$add_shlibpath:"*) ;;
  31496. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  31497. + esac
  31498. + fi
  31499. + if test "$linkmode" = prog; then
  31500. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  31501. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  31502. + else
  31503. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  31504. + test -n "$add" && deplibs="$add $deplibs"
  31505. + if test "$hardcode_direct" != yes &&
  31506. + test "$hardcode_minus_L" != yes &&
  31507. + test "$hardcode_shlibpath_var" = yes; then
  31508. + case :$finalize_shlibpath: in
  31509. + *":$libdir:"*) ;;
  31510. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  31511. + esac
  31512. + fi
  31513. + fi
  31514. + fi
  31515. +
  31516. + if test "$linkmode" = prog || test "$mode" = relink; then
  31517. + add_shlibpath=
  31518. + add_dir=
  31519. + add=
  31520. + # Finalize command for both is simple: just hardcode it.
  31521. + if test "$hardcode_direct" = yes &&
  31522. + test "$hardcode_direct_absolute" = no; then
  31523. + add="$libdir/$linklib"
  31524. + elif test "$hardcode_minus_L" = yes; then
  31525. + add_dir="-L$libdir"
  31526. + add="-l$name"
  31527. + elif test "$hardcode_shlibpath_var" = yes; then
  31528. + case :$finalize_shlibpath: in
  31529. + *":$libdir:"*) ;;
  31530. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  31531. + esac
  31532. + add="-l$name"
  31533. + elif test "$hardcode_automatic" = yes; then
  31534. + if test -n "$inst_prefix_dir" &&
  31535. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  31536. + add="$inst_prefix_dir$libdir/$linklib"
  31537. + else
  31538. + add="$libdir/$linklib"
  31539. + fi
  31540. + else
  31541. + # We cannot seem to hardcode it, guess we'll fake it.
  31542. + add_dir="-L$libdir"
  31543. + # Try looking first in the location we're being installed to.
  31544. + if test -n "$inst_prefix_dir"; then
  31545. + case $libdir in
  31546. + [\\/]*)
  31547. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  31548. + ;;
  31549. + esac
  31550. + fi
  31551. + add="-l$name"
  31552. + fi
  31553. +
  31554. + if test "$linkmode" = prog; then
  31555. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  31556. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  31557. + else
  31558. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  31559. + test -n "$add" && deplibs="$add $deplibs"
  31560. + fi
  31561. + fi
  31562. + elif test "$linkmode" = prog; then
  31563. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  31564. + # is not unsupported. This is valid on all known static and
  31565. + # shared platforms.
  31566. + if test "$hardcode_direct" != unsupported; then
  31567. + test -n "$old_library" && linklib="$old_library"
  31568. + compile_deplibs="$dir/$linklib $compile_deplibs"
  31569. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  31570. + else
  31571. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  31572. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  31573. + fi
  31574. + elif test "$build_libtool_libs" = yes; then
  31575. + # Not a shared library
  31576. + if test "$deplibs_check_method" != pass_all; then
  31577. + # We're trying link a shared library against a static one
  31578. + # but the system doesn't support it.
  31579. +
  31580. + # Just print a warning and add the library to dependency_libs so
  31581. + # that the program can be linked against the static library.
  31582. + $ECHO
  31583. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  31584. + $ECHO "*** I have the capability to make that library automatically link in when"
  31585. + $ECHO "*** you link to this library. But I can only do this if you have a"
  31586. + $ECHO "*** shared version of the library, which you do not appear to have."
  31587. + if test "$module" = yes; then
  31588. + $ECHO "*** But as you try to build a module library, libtool will still create "
  31589. + $ECHO "*** a static module, that should work as long as the dlopening application"
  31590. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  31591. + if test -z "$global_symbol_pipe"; then
  31592. + $ECHO
  31593. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  31594. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  31595. + $ECHO "*** not find such a program. So, this module is probably useless."
  31596. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  31597. + fi
  31598. + if test "$build_old_libs" = no; then
  31599. + build_libtool_libs=module
  31600. + build_old_libs=yes
  31601. + else
  31602. + build_libtool_libs=no
  31603. + fi
  31604. + fi
  31605. + else
  31606. + deplibs="$dir/$old_library $deplibs"
  31607. + link_static=yes
  31608. + fi
  31609. + fi # link shared/static library?
  31610. +
  31611. + if test "$linkmode" = lib; then
  31612. + if test -n "$dependency_libs" &&
  31613. + { test "$hardcode_into_libs" != yes ||
  31614. + test "$build_old_libs" = yes ||
  31615. + test "$link_static" = yes; }; then
  31616. + # Extract -R from dependency_libs
  31617. + temp_deplibs=
  31618. + for libdir in $dependency_libs; do
  31619. + case $libdir in
  31620. + -R*) func_stripname '-R' '' "$libdir"
  31621. + temp_xrpath=$func_stripname_result
  31622. + case " $xrpath " in
  31623. + *" $temp_xrpath "*) ;;
  31624. + *) xrpath="$xrpath $temp_xrpath";;
  31625. + esac;;
  31626. + *) temp_deplibs="$temp_deplibs $libdir";;
  31627. + esac
  31628. + done
  31629. + dependency_libs="$temp_deplibs"
  31630. + fi
  31631. +
  31632. + newlib_search_path="$newlib_search_path $absdir"
  31633. + # Link against this library
  31634. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  31635. + # ... and its dependency_libs
  31636. + tmp_libs=
  31637. + for deplib in $dependency_libs; do
  31638. + newdependency_libs="$deplib $newdependency_libs"
  31639. + if $opt_duplicate_deps ; then
  31640. + case "$tmp_libs " in
  31641. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  31642. + esac
  31643. + fi
  31644. + tmp_libs="$tmp_libs $deplib"
  31645. + done
  31646. +
  31647. + if test "$link_all_deplibs" != no; then
  31648. + # Add the search paths of all dependency libraries
  31649. + for deplib in $dependency_libs; do
  31650. + path=
  31651. + case $deplib in
  31652. + -L*) path="$deplib" ;;
  31653. + *.la)
  31654. + func_dirname "$deplib" "" "."
  31655. + dir="$func_dirname_result"
  31656. + # We need an absolute path.
  31657. + case $dir in
  31658. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  31659. + *)
  31660. + absdir=`cd "$dir" && pwd`
  31661. + if test -z "$absdir"; then
  31662. + func_warning "cannot determine absolute directory name of \`$dir'"
  31663. + absdir="$dir"
  31664. + fi
  31665. + ;;
  31666. + esac
  31667. + if $GREP "^installed=no" $deplib > /dev/null; then
  31668. + case $host in
  31669. + *-*-darwin*)
  31670. + depdepl=
  31671. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  31672. + if test -n "$deplibrary_names" ; then
  31673. + for tmp in $deplibrary_names ; do
  31674. + depdepl=$tmp
  31675. + done
  31676. + if test -f "$absdir/$objdir/$depdepl" ; then
  31677. + depdepl="$absdir/$objdir/$depdepl"
  31678. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  31679. + if test -z "$darwin_install_name"; then
  31680. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  31681. + fi
  31682. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  31683. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  31684. + path=
  31685. + fi
  31686. + fi
  31687. + ;;
  31688. + *)
  31689. + path="-L$absdir/$objdir"
  31690. + ;;
  31691. + esac
  31692. + else
  31693. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  31694. + test -z "$libdir" && \
  31695. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  31696. + test "$absdir" != "$libdir" && \
  31697. + func_warning "\`$deplib' seems to be moved"
  31698. +
  31699. + path="-L$absdir"
  31700. + fi
  31701. + ;;
  31702. + esac
  31703. + case " $deplibs " in
  31704. + *" $path "*) ;;
  31705. + *) deplibs="$path $deplibs" ;;
  31706. + esac
  31707. + done
  31708. + fi # link_all_deplibs != no
  31709. + fi # linkmode = lib
  31710. + done # for deplib in $libs
  31711. + if test "$pass" = link; then
  31712. + if test "$linkmode" = "prog"; then
  31713. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  31714. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  31715. + else
  31716. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  31717. + fi
  31718. + fi
  31719. + dependency_libs="$newdependency_libs"
  31720. + if test "$pass" = dlpreopen; then
  31721. + # Link the dlpreopened libraries before other libraries
  31722. + for deplib in $save_deplibs; do
  31723. + deplibs="$deplib $deplibs"
  31724. + done
  31725. + fi
  31726. + if test "$pass" != dlopen; then
  31727. + if test "$pass" != conv; then
  31728. + # Make sure lib_search_path contains only unique directories.
  31729. + lib_search_path=
  31730. + for dir in $newlib_search_path; do
  31731. + case "$lib_search_path " in
  31732. + *" $dir "*) ;;
  31733. + *) lib_search_path="$lib_search_path $dir" ;;
  31734. + esac
  31735. + done
  31736. + newlib_search_path=
  31737. + fi
  31738. +
  31739. + if test "$linkmode,$pass" != "prog,link"; then
  31740. + vars="deplibs"
  31741. + else
  31742. + vars="compile_deplibs finalize_deplibs"
  31743. + fi
  31744. + for var in $vars dependency_libs; do
  31745. + # Add libraries to $var in reverse order
  31746. + eval tmp_libs=\"\$$var\"
  31747. + new_libs=
  31748. + for deplib in $tmp_libs; do
  31749. + # FIXME: Pedantically, this is the right thing to do, so
  31750. + # that some nasty dependency loop isn't accidentally
  31751. + # broken:
  31752. + #new_libs="$deplib $new_libs"
  31753. + # Pragmatically, this seems to cause very few problems in
  31754. + # practice:
  31755. + case $deplib in
  31756. + -L*) new_libs="$deplib $new_libs" ;;
  31757. + -R*) ;;
  31758. + *)
  31759. + # And here is the reason: when a library appears more
  31760. + # than once as an explicit dependence of a library, or
  31761. + # is implicitly linked in more than once by the
  31762. + # compiler, it is considered special, and multiple
  31763. + # occurrences thereof are not removed. Compare this
  31764. + # with having the same library being listed as a
  31765. + # dependency of multiple other libraries: in this case,
  31766. + # we know (pedantically, we assume) the library does not
  31767. + # need to be listed more than once, so we keep only the
  31768. + # last copy. This is not always right, but it is rare
  31769. + # enough that we require users that really mean to play
  31770. + # such unportable linking tricks to link the library
  31771. + # using -Wl,-lname, so that libtool does not consider it
  31772. + # for duplicate removal.
  31773. + case " $specialdeplibs " in
  31774. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  31775. + *)
  31776. + case " $new_libs " in
  31777. + *" $deplib "*) ;;
  31778. + *) new_libs="$deplib $new_libs" ;;
  31779. + esac
  31780. + ;;
  31781. + esac
  31782. + ;;
  31783. + esac
  31784. + done
  31785. + tmp_libs=
  31786. + for deplib in $new_libs; do
  31787. + case $deplib in
  31788. + -L*)
  31789. + case " $tmp_libs " in
  31790. + *" $deplib "*) ;;
  31791. + *) tmp_libs="$tmp_libs $deplib" ;;
  31792. + esac
  31793. + ;;
  31794. + *) tmp_libs="$tmp_libs $deplib" ;;
  31795. + esac
  31796. + done
  31797. + eval $var=\"$tmp_libs\"
  31798. + done # for var
  31799. + fi
  31800. + # Last step: remove runtime libs from dependency_libs
  31801. + # (they stay in deplibs)
  31802. + tmp_libs=
  31803. + for i in $dependency_libs ; do
  31804. + case " $predeps $postdeps $compiler_lib_search_path " in
  31805. + *" $i "*)
  31806. + i=""
  31807. + ;;
  31808. + esac
  31809. + if test -n "$i" ; then
  31810. + tmp_libs="$tmp_libs $i"
  31811. + fi
  31812. + done
  31813. + dependency_libs=$tmp_libs
  31814. + done # for pass
  31815. + if test "$linkmode" = prog; then
  31816. + dlfiles="$newdlfiles"
  31817. + fi
  31818. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  31819. + dlprefiles="$newdlprefiles"
  31820. + fi
  31821. +
  31822. + case $linkmode in
  31823. + oldlib)
  31824. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  31825. + func_warning "\`-dlopen' is ignored for archives"
  31826. + fi
  31827. +
  31828. + case " $deplibs" in
  31829. + *\ -l* | *\ -L*)
  31830. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  31831. + esac
  31832. +
  31833. + test -n "$rpath" && \
  31834. + func_warning "\`-rpath' is ignored for archives"
  31835. +
  31836. + test -n "$xrpath" && \
  31837. + func_warning "\`-R' is ignored for archives"
  31838. +
  31839. + test -n "$vinfo" && \
  31840. + func_warning "\`-version-info/-version-number' is ignored for archives"
  31841. +
  31842. + test -n "$release" && \
  31843. + func_warning "\`-release' is ignored for archives"
  31844. +
  31845. + test -n "$export_symbols$export_symbols_regex" && \
  31846. + func_warning "\`-export-symbols' is ignored for archives"
  31847. +
  31848. + # Now set the variables for building old libraries.
  31849. + build_libtool_libs=no
  31850. + oldlibs="$output"
  31851. + objs="$objs$old_deplibs"
  31852. + ;;
  31853. +
  31854. + lib)
  31855. + # Make sure we only generate libraries of the form `libNAME.la'.
  31856. + case $outputname in
  31857. + lib*)
  31858. + func_stripname 'lib' '.la' "$outputname"
  31859. + name=$func_stripname_result
  31860. + eval shared_ext=\"$shrext_cmds\"
  31861. + eval libname=\"$libname_spec\"
  31862. + ;;
  31863. + *)
  31864. + test "$module" = no && \
  31865. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  31866. +
  31867. + if test "$need_lib_prefix" != no; then
  31868. + # Add the "lib" prefix for modules if required
  31869. + func_stripname '' '.la' "$outputname"
  31870. + name=$func_stripname_result
  31871. + eval shared_ext=\"$shrext_cmds\"
  31872. + eval libname=\"$libname_spec\"
  31873. + else
  31874. + func_stripname '' '.la' "$outputname"
  31875. + libname=$func_stripname_result
  31876. + fi
  31877. + ;;
  31878. + esac
  31879. +
  31880. + if test -n "$objs"; then
  31881. + if test "$deplibs_check_method" != pass_all; then
  31882. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  31883. + else
  31884. + $ECHO
  31885. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  31886. + $ECHO "*** objects $objs is not portable!"
  31887. + libobjs="$libobjs $objs"
  31888. + fi
  31889. + fi
  31890. +
  31891. + test "$dlself" != no && \
  31892. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  31893. +
  31894. + set dummy $rpath
  31895. + shift
  31896. + test "$#" -gt 1 && \
  31897. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  31898. +
  31899. + install_libdir="$1"
  31900. +
  31901. + oldlibs=
  31902. + if test -z "$rpath"; then
  31903. + if test "$build_libtool_libs" = yes; then
  31904. + # Building a libtool convenience library.
  31905. + # Some compilers have problems with a `.al' extension so
  31906. + # convenience libraries should have the same extension an
  31907. + # archive normally would.
  31908. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  31909. + build_libtool_libs=convenience
  31910. + build_old_libs=yes
  31911. + fi
  31912. +
  31913. + test -n "$vinfo" && \
  31914. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  31915. +
  31916. + test -n "$release" && \
  31917. + func_warning "\`-release' is ignored for convenience libraries"
  31918. + else
  31919. +
  31920. + # Parse the version information argument.
  31921. + save_ifs="$IFS"; IFS=':'
  31922. + set dummy $vinfo 0 0 0
  31923. + shift
  31924. + IFS="$save_ifs"
  31925. +
  31926. + test -n "$7" && \
  31927. + func_fatal_help "too many parameters to \`-version-info'"
  31928. +
  31929. + # convert absolute version numbers to libtool ages
  31930. + # this retains compatibility with .la files and attempts
  31931. + # to make the code below a bit more comprehensible
  31932. +
  31933. + case $vinfo_number in
  31934. + yes)
  31935. + number_major="$1"
  31936. + number_minor="$2"
  31937. + number_revision="$3"
  31938. + #
  31939. + # There are really only two kinds -- those that
  31940. + # use the current revision as the major version
  31941. + # and those that subtract age and use age as
  31942. + # a minor version. But, then there is irix
  31943. + # which has an extra 1 added just for fun
  31944. + #
  31945. + case $version_type in
  31946. + darwin|linux|osf|windows|none)
  31947. + func_arith $number_major + $number_minor
  31948. + current=$func_arith_result
  31949. + age="$number_minor"
  31950. + revision="$number_revision"
  31951. + ;;
  31952. + freebsd-aout|freebsd-elf|sunos)
  31953. + current="$number_major"
  31954. + revision="$number_minor"
  31955. + age="0"
  31956. + ;;
  31957. + irix|nonstopux)
  31958. + func_arith $number_major + $number_minor
  31959. + current=$func_arith_result
  31960. + age="$number_minor"
  31961. + revision="$number_minor"
  31962. + lt_irix_increment=no
  31963. + ;;
  31964. + *)
  31965. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  31966. + ;;
  31967. + esac
  31968. + ;;
  31969. + no)
  31970. + current="$1"
  31971. + revision="$2"
  31972. + age="$3"
  31973. + ;;
  31974. + esac
  31975. +
  31976. + # Check that each of the things are valid numbers.
  31977. + case $current in
  31978. + 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]) ;;
  31979. + *)
  31980. + func_error "CURRENT \`$current' must be a nonnegative integer"
  31981. + func_fatal_error "\`$vinfo' is not valid version information"
  31982. + ;;
  31983. + esac
  31984. +
  31985. + case $revision in
  31986. + 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]) ;;
  31987. + *)
  31988. + func_error "REVISION \`$revision' must be a nonnegative integer"
  31989. + func_fatal_error "\`$vinfo' is not valid version information"
  31990. + ;;
  31991. + esac
  31992. +
  31993. + case $age in
  31994. + 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]) ;;
  31995. + *)
  31996. + func_error "AGE \`$age' must be a nonnegative integer"
  31997. + func_fatal_error "\`$vinfo' is not valid version information"
  31998. + ;;
  31999. + esac
  32000. +
  32001. + if test "$age" -gt "$current"; then
  32002. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  32003. + func_fatal_error "\`$vinfo' is not valid version information"
  32004. + fi
  32005. +
  32006. + # Calculate the version variables.
  32007. + major=
  32008. + versuffix=
  32009. + verstring=
  32010. + case $version_type in
  32011. + none) ;;
  32012. +
  32013. + darwin)
  32014. + # Like Linux, but with the current version available in
  32015. + # verstring for coding it into the library header
  32016. + func_arith $current - $age
  32017. + major=.$func_arith_result
  32018. + versuffix="$major.$age.$revision"
  32019. + # Darwin ld doesn't like 0 for these options...
  32020. + func_arith $current + 1
  32021. + minor_current=$func_arith_result
  32022. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  32023. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  32024. + ;;
  32025. +
  32026. + freebsd-aout)
  32027. + major=".$current"
  32028. + versuffix=".$current.$revision";
  32029. + ;;
  32030. +
  32031. + freebsd-elf)
  32032. + major=".$current"
  32033. + versuffix=".$current"
  32034. + ;;
  32035. +
  32036. + irix | nonstopux)
  32037. + if test "X$lt_irix_increment" = "Xno"; then
  32038. + func_arith $current - $age
  32039. + else
  32040. + func_arith $current - $age + 1
  32041. + fi
  32042. + major=$func_arith_result
  32043. +
  32044. + case $version_type in
  32045. + nonstopux) verstring_prefix=nonstopux ;;
  32046. + *) verstring_prefix=sgi ;;
  32047. + esac
  32048. + verstring="$verstring_prefix$major.$revision"
  32049. +
  32050. + # Add in all the interfaces that we are compatible with.
  32051. + loop=$revision
  32052. + while test "$loop" -ne 0; do
  32053. + func_arith $revision - $loop
  32054. + iface=$func_arith_result
  32055. + func_arith $loop - 1
  32056. + loop=$func_arith_result
  32057. + verstring="$verstring_prefix$major.$iface:$verstring"
  32058. + done
  32059. +
  32060. + # Before this point, $major must not contain `.'.
  32061. + major=.$major
  32062. + versuffix="$major.$revision"
  32063. + ;;
  32064. +
  32065. + linux)
  32066. + func_arith $current - $age
  32067. + major=.$func_arith_result
  32068. + versuffix="$major.$age.$revision"
  32069. + ;;
  32070. +
  32071. + osf)
  32072. + func_arith $current - $age
  32073. + major=.$func_arith_result
  32074. + versuffix=".$current.$age.$revision"
  32075. + verstring="$current.$age.$revision"
  32076. +
  32077. + # Add in all the interfaces that we are compatible with.
  32078. + loop=$age
  32079. + while test "$loop" -ne 0; do
  32080. + func_arith $current - $loop
  32081. + iface=$func_arith_result
  32082. + func_arith $loop - 1
  32083. + loop=$func_arith_result
  32084. + verstring="$verstring:${iface}.0"
  32085. + done
  32086. +
  32087. + # Make executables depend on our current version.
  32088. + verstring="$verstring:${current}.0"
  32089. + ;;
  32090. +
  32091. + qnx)
  32092. + major=".$current"
  32093. + versuffix=".$current"
  32094. + ;;
  32095. +
  32096. + sunos)
  32097. + major=".$current"
  32098. + versuffix=".$current.$revision"
  32099. + ;;
  32100. +
  32101. + windows)
  32102. + # Use '-' rather than '.', since we only want one
  32103. + # extension on DOS 8.3 filesystems.
  32104. + func_arith $current - $age
  32105. + major=$func_arith_result
  32106. + versuffix="-$major"
  32107. + ;;
  32108. +
  32109. + *)
  32110. + func_fatal_configuration "unknown library version type \`$version_type'"
  32111. + ;;
  32112. + esac
  32113. +
  32114. + # Clear the version info if we defaulted, and they specified a release.
  32115. + if test -z "$vinfo" && test -n "$release"; then
  32116. + major=
  32117. + case $version_type in
  32118. + darwin)
  32119. + # we can't check for "0.0" in archive_cmds due to quoting
  32120. + # problems, so we reset it completely
  32121. + verstring=
  32122. + ;;
  32123. + *)
  32124. + verstring="0.0"
  32125. + ;;
  32126. + esac
  32127. + if test "$need_version" = no; then
  32128. + versuffix=
  32129. + else
  32130. + versuffix=".0.0"
  32131. + fi
  32132. + fi
  32133. +
  32134. + # Remove version info from name if versioning should be avoided
  32135. + if test "$avoid_version" = yes && test "$need_version" = no; then
  32136. + major=
  32137. + versuffix=
  32138. + verstring=""
  32139. + fi
  32140. +
  32141. + # Check to see if the archive will have undefined symbols.
  32142. + if test "$allow_undefined" = yes; then
  32143. + if test "$allow_undefined_flag" = unsupported; then
  32144. + func_warning "undefined symbols not allowed in $host shared libraries"
  32145. + build_libtool_libs=no
  32146. + build_old_libs=yes
  32147. + fi
  32148. + else
  32149. + # Don't allow undefined symbols.
  32150. + allow_undefined_flag="$no_undefined_flag"
  32151. + fi
  32152. +
  32153. + fi
  32154. +
  32155. + func_generate_dlsyms "$libname" "$libname" "yes"
  32156. + libobjs="$libobjs $symfileobj"
  32157. + test "X$libobjs" = "X " && libobjs=
  32158. +
  32159. + if test "$mode" != relink; then
  32160. + # Remove our outputs, but don't remove object files since they
  32161. + # may have been created when compiling PIC objects.
  32162. + removelist=
  32163. + tempremovelist=`$ECHO "$output_objdir/*"`
  32164. + for p in $tempremovelist; do
  32165. + case $p in
  32166. + *.$objext | *.gcno)
  32167. + ;;
  32168. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  32169. + if test "X$precious_files_regex" != "X"; then
  32170. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  32171. + then
  32172. + continue
  32173. + fi
  32174. + fi
  32175. + removelist="$removelist $p"
  32176. + ;;
  32177. + *) ;;
  32178. + esac
  32179. + done
  32180. + test -n "$removelist" && \
  32181. + func_show_eval "${RM}r \$removelist"
  32182. + fi
  32183. +
  32184. + # Now set the variables for building old libraries.
  32185. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  32186. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  32187. +
  32188. + # Transform .lo files to .o files.
  32189. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  32190. + fi
  32191. +
  32192. + # Eliminate all temporary directories.
  32193. + #for path in $notinst_path; do
  32194. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  32195. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  32196. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  32197. + #done
  32198. +
  32199. + if test -n "$xrpath"; then
  32200. + # If the user specified any rpath flags, then add them.
  32201. + temp_xrpath=
  32202. + for libdir in $xrpath; do
  32203. + temp_xrpath="$temp_xrpath -R$libdir"
  32204. + case "$finalize_rpath " in
  32205. + *" $libdir "*) ;;
  32206. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  32207. + esac
  32208. + done
  32209. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  32210. + dependency_libs="$temp_xrpath $dependency_libs"
  32211. + fi
  32212. + fi
  32213. +
  32214. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  32215. + old_dlfiles="$dlfiles"
  32216. + dlfiles=
  32217. + for lib in $old_dlfiles; do
  32218. + case " $dlprefiles $dlfiles " in
  32219. + *" $lib "*) ;;
  32220. + *) dlfiles="$dlfiles $lib" ;;
  32221. + esac
  32222. + done
  32223. +
  32224. + # Make sure dlprefiles contains only unique files
  32225. + old_dlprefiles="$dlprefiles"
  32226. + dlprefiles=
  32227. + for lib in $old_dlprefiles; do
  32228. + case "$dlprefiles " in
  32229. + *" $lib "*) ;;
  32230. + *) dlprefiles="$dlprefiles $lib" ;;
  32231. + esac
  32232. + done
  32233. +
  32234. + if test "$build_libtool_libs" = yes; then
  32235. + if test -n "$rpath"; then
  32236. + case $host in
  32237. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  32238. + # these systems don't actually have a c library (as such)!
  32239. + ;;
  32240. + *-*-rhapsody* | *-*-darwin1.[012])
  32241. + # Rhapsody C library is in the System framework
  32242. + deplibs="$deplibs System.ltframework"
  32243. + ;;
  32244. + *-*-netbsd*)
  32245. + # Don't link with libc until the a.out ld.so is fixed.
  32246. + ;;
  32247. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  32248. + # Do not include libc due to us having libc/libc_r.
  32249. + ;;
  32250. + *-*-sco3.2v5* | *-*-sco5v6*)
  32251. + # Causes problems with __ctype
  32252. + ;;
  32253. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  32254. + # Compiler inserts libc in the correct place for threads to work
  32255. + ;;
  32256. + *)
  32257. + # Add libc to deplibs on all other systems if necessary.
  32258. + if test "$build_libtool_need_lc" = "yes"; then
  32259. + deplibs="$deplibs -lc"
  32260. + fi
  32261. + ;;
  32262. + esac
  32263. + fi
  32264. +
  32265. + # Transform deplibs into only deplibs that can be linked in shared.
  32266. + name_save=$name
  32267. + libname_save=$libname
  32268. + release_save=$release
  32269. + versuffix_save=$versuffix
  32270. + major_save=$major
  32271. + # I'm not sure if I'm treating the release correctly. I think
  32272. + # release should show up in the -l (ie -lgmp5) so we don't want to
  32273. + # add it in twice. Is that correct?
  32274. + release=""
  32275. + versuffix=""
  32276. + major=""
  32277. + newdeplibs=
  32278. + droppeddeps=no
  32279. + case $deplibs_check_method in
  32280. + pass_all)
  32281. + # Don't check for shared/static. Everything works.
  32282. + # This might be a little naive. We might want to check
  32283. + # whether the library exists or not. But this is on
  32284. + # osf3 & osf4 and I'm not really sure... Just
  32285. + # implementing what was already the behavior.
  32286. + newdeplibs=$deplibs
  32287. + ;;
  32288. + test_compile)
  32289. + # This code stresses the "libraries are programs" paradigm to its
  32290. + # limits. Maybe even breaks it. We compile a program, linking it
  32291. + # against the deplibs as a proxy for the library. Then we can check
  32292. + # whether they linked in statically or dynamically with ldd.
  32293. + $opt_dry_run || $RM conftest.c
  32294. + cat > conftest.c <<EOF
  32295. + int main() { return 0; }
  32296. +EOF
  32297. + $opt_dry_run || $RM conftest
  32298. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  32299. + ldd_output=`ldd conftest`
  32300. + for i in $deplibs; do
  32301. + case $i in
  32302. + -l*)
  32303. + func_stripname -l '' "$i"
  32304. + name=$func_stripname_result
  32305. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  32306. + case " $predeps $postdeps " in
  32307. + *" $i "*)
  32308. + newdeplibs="$newdeplibs $i"
  32309. + i=""
  32310. + ;;
  32311. + esac
  32312. + fi
  32313. + if test -n "$i" ; then
  32314. + libname=`eval "\\$ECHO \"$libname_spec\""`
  32315. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  32316. + set dummy $deplib_matches; shift
  32317. + deplib_match=$1
  32318. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  32319. + newdeplibs="$newdeplibs $i"
  32320. + else
  32321. + droppeddeps=yes
  32322. + $ECHO
  32323. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  32324. + $ECHO "*** I have the capability to make that library automatically link in when"
  32325. + $ECHO "*** you link to this library. But I can only do this if you have a"
  32326. + $ECHO "*** shared version of the library, which I believe you do not have"
  32327. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  32328. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  32329. + fi
  32330. + fi
  32331. + ;;
  32332. + *)
  32333. + newdeplibs="$newdeplibs $i"
  32334. + ;;
  32335. + esac
  32336. + done
  32337. + else
  32338. + # Error occurred in the first compile. Let's try to salvage
  32339. + # the situation: Compile a separate program for each library.
  32340. + for i in $deplibs; do
  32341. + case $i in
  32342. + -l*)
  32343. + func_stripname -l '' "$i"
  32344. + name=$func_stripname_result
  32345. + $opt_dry_run || $RM conftest
  32346. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  32347. + ldd_output=`ldd conftest`
  32348. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  32349. + case " $predeps $postdeps " in
  32350. + *" $i "*)
  32351. + newdeplibs="$newdeplibs $i"
  32352. + i=""
  32353. + ;;
  32354. + esac
  32355. + fi
  32356. + if test -n "$i" ; then
  32357. + libname=`eval "\\$ECHO \"$libname_spec\""`
  32358. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  32359. + set dummy $deplib_matches; shift
  32360. + deplib_match=$1
  32361. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  32362. + newdeplibs="$newdeplibs $i"
  32363. + else
  32364. + droppeddeps=yes
  32365. + $ECHO
  32366. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  32367. + $ECHO "*** I have the capability to make that library automatically link in when"
  32368. + $ECHO "*** you link to this library. But I can only do this if you have a"
  32369. + $ECHO "*** shared version of the library, which you do not appear to have"
  32370. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  32371. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  32372. + fi
  32373. + fi
  32374. + else
  32375. + droppeddeps=yes
  32376. + $ECHO
  32377. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  32378. + $ECHO "*** make it link in! You will probably need to install it or some"
  32379. + $ECHO "*** library that it depends on before this library will be fully"
  32380. + $ECHO "*** functional. Installing it before continuing would be even better."
  32381. + fi
  32382. + ;;
  32383. + *)
  32384. + newdeplibs="$newdeplibs $i"
  32385. + ;;
  32386. + esac
  32387. + done
  32388. + fi
  32389. + ;;
  32390. + file_magic*)
  32391. + set dummy $deplibs_check_method; shift
  32392. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  32393. + for a_deplib in $deplibs; do
  32394. + case $a_deplib in
  32395. + -l*)
  32396. + func_stripname -l '' "$a_deplib"
  32397. + name=$func_stripname_result
  32398. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  32399. + case " $predeps $postdeps " in
  32400. + *" $a_deplib "*)
  32401. + newdeplibs="$newdeplibs $a_deplib"
  32402. + a_deplib=""
  32403. + ;;
  32404. + esac
  32405. + fi
  32406. + if test -n "$a_deplib" ; then
  32407. + libname=`eval "\\$ECHO \"$libname_spec\""`
  32408. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  32409. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  32410. + for potent_lib in $potential_libs; do
  32411. + # Follow soft links.
  32412. + if ls -lLd "$potent_lib" 2>/dev/null |
  32413. + $GREP " -> " >/dev/null; then
  32414. + continue
  32415. + fi
  32416. + # The statement above tries to avoid entering an
  32417. + # endless loop below, in case of cyclic links.
  32418. + # We might still enter an endless loop, since a link
  32419. + # loop can be closed while we follow links,
  32420. + # but so what?
  32421. + potlib="$potent_lib"
  32422. + while test -h "$potlib" 2>/dev/null; do
  32423. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  32424. + case $potliblink in
  32425. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  32426. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  32427. + esac
  32428. + done
  32429. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  32430. + $SED -e 10q |
  32431. + $EGREP "$file_magic_regex" > /dev/null; then
  32432. + newdeplibs="$newdeplibs $a_deplib"
  32433. + a_deplib=""
  32434. + break 2
  32435. + fi
  32436. + done
  32437. + done
  32438. + fi
  32439. + if test -n "$a_deplib" ; then
  32440. + droppeddeps=yes
  32441. + $ECHO
  32442. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  32443. + $ECHO "*** I have the capability to make that library automatically link in when"
  32444. + $ECHO "*** you link to this library. But I can only do this if you have a"
  32445. + $ECHO "*** shared version of the library, which you do not appear to have"
  32446. + $ECHO "*** because I did check the linker path looking for a file starting"
  32447. + if test -z "$potlib" ; then
  32448. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  32449. + else
  32450. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  32451. + $ECHO "*** using a file magic. Last file checked: $potlib"
  32452. + fi
  32453. + fi
  32454. + ;;
  32455. + *)
  32456. + # Add a -L argument.
  32457. + newdeplibs="$newdeplibs $a_deplib"
  32458. + ;;
  32459. + esac
  32460. + done # Gone through all deplibs.
  32461. + ;;
  32462. + match_pattern*)
  32463. + set dummy $deplibs_check_method; shift
  32464. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  32465. + for a_deplib in $deplibs; do
  32466. + case $a_deplib in
  32467. + -l*)
  32468. + func_stripname -l '' "$a_deplib"
  32469. + name=$func_stripname_result
  32470. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  32471. + case " $predeps $postdeps " in
  32472. + *" $a_deplib "*)
  32473. + newdeplibs="$newdeplibs $a_deplib"
  32474. + a_deplib=""
  32475. + ;;
  32476. + esac
  32477. + fi
  32478. + if test -n "$a_deplib" ; then
  32479. + libname=`eval "\\$ECHO \"$libname_spec\""`
  32480. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  32481. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  32482. + for potent_lib in $potential_libs; do
  32483. + potlib="$potent_lib" # see symlink-check above in file_magic test
  32484. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  32485. + $EGREP "$match_pattern_regex" > /dev/null; then
  32486. + newdeplibs="$newdeplibs $a_deplib"
  32487. + a_deplib=""
  32488. + break 2
  32489. + fi
  32490. + done
  32491. + done
  32492. + fi
  32493. + if test -n "$a_deplib" ; then
  32494. + droppeddeps=yes
  32495. + $ECHO
  32496. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  32497. + $ECHO "*** I have the capability to make that library automatically link in when"
  32498. + $ECHO "*** you link to this library. But I can only do this if you have a"
  32499. + $ECHO "*** shared version of the library, which you do not appear to have"
  32500. + $ECHO "*** because I did check the linker path looking for a file starting"
  32501. + if test -z "$potlib" ; then
  32502. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  32503. + else
  32504. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  32505. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  32506. + fi
  32507. + fi
  32508. + ;;
  32509. + *)
  32510. + # Add a -L argument.
  32511. + newdeplibs="$newdeplibs $a_deplib"
  32512. + ;;
  32513. + esac
  32514. + done # Gone through all deplibs.
  32515. + ;;
  32516. + none | unknown | *)
  32517. + newdeplibs=""
  32518. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  32519. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  32520. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  32521. + for i in $predeps $postdeps ; do
  32522. + # can't use Xsed below, because $i might contain '/'
  32523. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  32524. + done
  32525. + fi
  32526. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  32527. + $GREP . >/dev/null; then
  32528. + $ECHO
  32529. + if test "X$deplibs_check_method" = "Xnone"; then
  32530. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  32531. + else
  32532. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  32533. + fi
  32534. + $ECHO "*** All declared inter-library dependencies are being dropped."
  32535. + droppeddeps=yes
  32536. + fi
  32537. + ;;
  32538. + esac
  32539. + versuffix=$versuffix_save
  32540. + major=$major_save
  32541. + release=$release_save
  32542. + libname=$libname_save
  32543. + name=$name_save
  32544. +
  32545. + case $host in
  32546. + *-*-rhapsody* | *-*-darwin1.[012])
  32547. + # On Rhapsody replace the C library with the System framework
  32548. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  32549. + ;;
  32550. + esac
  32551. +
  32552. + if test "$droppeddeps" = yes; then
  32553. + if test "$module" = yes; then
  32554. + $ECHO
  32555. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  32556. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  32557. + $ECHO "*** a static module, that should work as long as the dlopening"
  32558. + $ECHO "*** application is linked with the -dlopen flag."
  32559. + if test -z "$global_symbol_pipe"; then
  32560. + $ECHO
  32561. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  32562. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  32563. + $ECHO "*** not find such a program. So, this module is probably useless."
  32564. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  32565. + fi
  32566. + if test "$build_old_libs" = no; then
  32567. + oldlibs="$output_objdir/$libname.$libext"
  32568. + build_libtool_libs=module
  32569. + build_old_libs=yes
  32570. + else
  32571. + build_libtool_libs=no
  32572. + fi
  32573. + else
  32574. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  32575. + $ECHO "*** automatically added whenever a program is linked with this library"
  32576. + $ECHO "*** or is declared to -dlopen it."
  32577. +
  32578. + if test "$allow_undefined" = no; then
  32579. + $ECHO
  32580. + $ECHO "*** Since this library must not contain undefined symbols,"
  32581. + $ECHO "*** because either the platform does not support them or"
  32582. + $ECHO "*** it was explicitly requested with -no-undefined,"
  32583. + $ECHO "*** libtool will only create a static version of it."
  32584. + if test "$build_old_libs" = no; then
  32585. + oldlibs="$output_objdir/$libname.$libext"
  32586. + build_libtool_libs=module
  32587. + build_old_libs=yes
  32588. + else
  32589. + build_libtool_libs=no
  32590. + fi
  32591. + fi
  32592. + fi
  32593. + fi
  32594. + # Done checking deplibs!
  32595. + deplibs=$newdeplibs
  32596. + fi
  32597. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  32598. + case $host in
  32599. + *-*-darwin*)
  32600. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  32601. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  32602. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  32603. + ;;
  32604. + esac
  32605. +
  32606. + # move library search paths that coincide with paths to not yet
  32607. + # installed libraries to the beginning of the library search list
  32608. + new_libs=
  32609. + for path in $notinst_path; do
  32610. + case " $new_libs " in
  32611. + *" -L$path/$objdir "*) ;;
  32612. + *)
  32613. + case " $deplibs " in
  32614. + *" -L$path/$objdir "*)
  32615. + new_libs="$new_libs -L$path/$objdir" ;;
  32616. + esac
  32617. + ;;
  32618. + esac
  32619. + done
  32620. + for deplib in $deplibs; do
  32621. + case $deplib in
  32622. + -L*)
  32623. + case " $new_libs " in
  32624. + *" $deplib "*) ;;
  32625. + *) new_libs="$new_libs $deplib" ;;
  32626. + esac
  32627. + ;;
  32628. + *) new_libs="$new_libs $deplib" ;;
  32629. + esac
  32630. + done
  32631. + deplibs="$new_libs"
  32632. +
  32633. + # All the library-specific variables (install_libdir is set above).
  32634. + library_names=
  32635. + old_library=
  32636. + dlname=
  32637. +
  32638. + # Test again, we may have decided not to build it any more
  32639. + if test "$build_libtool_libs" = yes; then
  32640. + if test "$hardcode_into_libs" = yes; then
  32641. + # Hardcode the library paths
  32642. + hardcode_libdirs=
  32643. + dep_rpath=
  32644. + rpath="$finalize_rpath"
  32645. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  32646. + for libdir in $rpath; do
  32647. + if test -n "$hardcode_libdir_flag_spec"; then
  32648. + if test -n "$hardcode_libdir_separator"; then
  32649. + if test -z "$hardcode_libdirs"; then
  32650. + hardcode_libdirs="$libdir"
  32651. + else
  32652. + # Just accumulate the unique libdirs.
  32653. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  32654. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  32655. + ;;
  32656. + *)
  32657. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  32658. + ;;
  32659. + esac
  32660. + fi
  32661. + else
  32662. + eval flag=\"$hardcode_libdir_flag_spec\"
  32663. + dep_rpath="$dep_rpath $flag"
  32664. + fi
  32665. + elif test -n "$runpath_var"; then
  32666. + case "$perm_rpath " in
  32667. + *" $libdir "*) ;;
  32668. + *) perm_rpath="$perm_rpath $libdir" ;;
  32669. + esac
  32670. + fi
  32671. + done
  32672. + # Substitute the hardcoded libdirs into the rpath.
  32673. + if test -n "$hardcode_libdir_separator" &&
  32674. + test -n "$hardcode_libdirs"; then
  32675. + libdir="$hardcode_libdirs"
  32676. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  32677. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  32678. + else
  32679. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  32680. + fi
  32681. + fi
  32682. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  32683. + # We should set the runpath_var.
  32684. + rpath=
  32685. + for dir in $perm_rpath; do
  32686. + rpath="$rpath$dir:"
  32687. + done
  32688. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  32689. + fi
  32690. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  32691. + fi
  32692. +
  32693. + shlibpath="$finalize_shlibpath"
  32694. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  32695. + if test -n "$shlibpath"; then
  32696. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  32697. + fi
  32698. +
  32699. + # Get the real and link names of the library.
  32700. + eval shared_ext=\"$shrext_cmds\"
  32701. + eval library_names=\"$library_names_spec\"
  32702. + set dummy $library_names
  32703. + shift
  32704. + realname="$1"
  32705. + shift
  32706. +
  32707. + if test -n "$soname_spec"; then
  32708. + eval soname=\"$soname_spec\"
  32709. + else
  32710. + soname="$realname"
  32711. + fi
  32712. + if test -z "$dlname"; then
  32713. + dlname=$soname
  32714. + fi
  32715. +
  32716. + lib="$output_objdir/$realname"
  32717. + linknames=
  32718. + for link
  32719. + do
  32720. + linknames="$linknames $link"
  32721. + done
  32722. +
  32723. + # Use standard objects if they are pic
  32724. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  32725. + test "X$libobjs" = "X " && libobjs=
  32726. +
  32727. + delfiles=
  32728. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  32729. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  32730. + export_symbols="$output_objdir/$libname.uexp"
  32731. + delfiles="$delfiles $export_symbols"
  32732. + fi
  32733. +
  32734. + orig_export_symbols=
  32735. + case $host_os in
  32736. + cygwin* | mingw* | cegcc*)
  32737. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  32738. + # exporting using user supplied symfile
  32739. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  32740. + # and it's NOT already a .def file. Must figure out
  32741. + # which of the given symbols are data symbols and tag
  32742. + # them as such. So, trigger use of export_symbols_cmds.
  32743. + # export_symbols gets reassigned inside the "prepare
  32744. + # the list of exported symbols" if statement, so the
  32745. + # include_expsyms logic still works.
  32746. + orig_export_symbols="$export_symbols"
  32747. + export_symbols=
  32748. + always_export_symbols=yes
  32749. + fi
  32750. + fi
  32751. + ;;
  32752. + esac
  32753. +
  32754. + # Prepare the list of exported symbols
  32755. + if test -z "$export_symbols"; then
  32756. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  32757. + func_verbose "generating symbol list for \`$libname.la'"
  32758. + export_symbols="$output_objdir/$libname.exp"
  32759. + $opt_dry_run || $RM $export_symbols
  32760. + cmds=$export_symbols_cmds
  32761. + save_ifs="$IFS"; IFS='~'
  32762. + for cmd in $cmds; do
  32763. + IFS="$save_ifs"
  32764. + eval cmd=\"$cmd\"
  32765. + func_len " $cmd"
  32766. + len=$func_len_result
  32767. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  32768. + func_show_eval "$cmd" 'exit $?'
  32769. + skipped_export=false
  32770. + else
  32771. + # The command line is too long to execute in one step.
  32772. + func_verbose "using reloadable object file for export list..."
  32773. + skipped_export=:
  32774. + # Break out early, otherwise skipped_export may be
  32775. + # set to false by a later but shorter cmd.
  32776. + break
  32777. + fi
  32778. + done
  32779. + IFS="$save_ifs"
  32780. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  32781. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  32782. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  32783. + fi
  32784. + fi
  32785. + fi
  32786. +
  32787. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  32788. + tmp_export_symbols="$export_symbols"
  32789. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  32790. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  32791. + fi
  32792. +
  32793. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  32794. + # The given exports_symbols file has to be filtered, so filter it.
  32795. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  32796. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  32797. + # 's' commands which not all seds can handle. GNU sed should be fine
  32798. + # though. Also, the filter scales superlinearly with the number of
  32799. + # global variables. join(1) would be nice here, but unfortunately
  32800. + # isn't a blessed tool.
  32801. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  32802. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  32803. + export_symbols=$output_objdir/$libname.def
  32804. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  32805. + fi
  32806. +
  32807. + tmp_deplibs=
  32808. + for test_deplib in $deplibs; do
  32809. + case " $convenience " in
  32810. + *" $test_deplib "*) ;;
  32811. + *)
  32812. + tmp_deplibs="$tmp_deplibs $test_deplib"
  32813. + ;;
  32814. + esac
  32815. + done
  32816. + deplibs="$tmp_deplibs"
  32817. +
  32818. + if test -n "$convenience"; then
  32819. + if test -n "$whole_archive_flag_spec" &&
  32820. + test "$compiler_needs_object" = yes &&
  32821. + test -z "$libobjs"; then
  32822. + # extract the archives, so we have objects to list.
  32823. + # TODO: could optimize this to just extract one archive.
  32824. + whole_archive_flag_spec=
  32825. + fi
  32826. + if test -n "$whole_archive_flag_spec"; then
  32827. + save_libobjs=$libobjs
  32828. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  32829. + test "X$libobjs" = "X " && libobjs=
  32830. + else
  32831. + gentop="$output_objdir/${outputname}x"
  32832. + generated="$generated $gentop"
  32833. +
  32834. + func_extract_archives $gentop $convenience
  32835. + libobjs="$libobjs $func_extract_archives_result"
  32836. + test "X$libobjs" = "X " && libobjs=
  32837. + fi
  32838. + fi
  32839. +
  32840. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  32841. + eval flag=\"$thread_safe_flag_spec\"
  32842. + linker_flags="$linker_flags $flag"
  32843. + fi
  32844. +
  32845. + # Make a backup of the uninstalled library when relinking
  32846. + if test "$mode" = relink; then
  32847. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  32848. + fi
  32849. +
  32850. + # Do each of the archive commands.
  32851. + if test "$module" = yes && test -n "$module_cmds" ; then
  32852. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  32853. + eval test_cmds=\"$module_expsym_cmds\"
  32854. + cmds=$module_expsym_cmds
  32855. + else
  32856. + eval test_cmds=\"$module_cmds\"
  32857. + cmds=$module_cmds
  32858. + fi
  32859. + else
  32860. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  32861. + eval test_cmds=\"$archive_expsym_cmds\"
  32862. + cmds=$archive_expsym_cmds
  32863. + else
  32864. + eval test_cmds=\"$archive_cmds\"
  32865. + cmds=$archive_cmds
  32866. + fi
  32867. + fi
  32868. +
  32869. + if test "X$skipped_export" != "X:" &&
  32870. + func_len " $test_cmds" &&
  32871. + len=$func_len_result &&
  32872. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  32873. + :
  32874. + else
  32875. + # The command line is too long to link in one step, link piecewise
  32876. + # or, if using GNU ld and skipped_export is not :, use a linker
  32877. + # script.
  32878. +
  32879. + # Save the value of $output and $libobjs because we want to
  32880. + # use them later. If we have whole_archive_flag_spec, we
  32881. + # want to use save_libobjs as it was before
  32882. + # whole_archive_flag_spec was expanded, because we can't
  32883. + # assume the linker understands whole_archive_flag_spec.
  32884. + # This may have to be revisited, in case too many
  32885. + # convenience libraries get linked in and end up exceeding
  32886. + # the spec.
  32887. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  32888. + save_libobjs=$libobjs
  32889. + fi
  32890. + save_output=$output
  32891. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  32892. +
  32893. + # Clear the reloadable object creation command queue and
  32894. + # initialize k to one.
  32895. + test_cmds=
  32896. + concat_cmds=
  32897. + objlist=
  32898. + last_robj=
  32899. + k=1
  32900. +
  32901. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  32902. + output=${output_objdir}/${output_la}.lnkscript
  32903. + func_verbose "creating GNU ld script: $output"
  32904. + $ECHO 'INPUT (' > $output
  32905. + for obj in $save_libobjs
  32906. + do
  32907. + $ECHO "$obj" >> $output
  32908. + done
  32909. + $ECHO ')' >> $output
  32910. + delfiles="$delfiles $output"
  32911. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  32912. + output=${output_objdir}/${output_la}.lnk
  32913. + func_verbose "creating linker input file list: $output"
  32914. + : > $output
  32915. + set x $save_libobjs
  32916. + shift
  32917. + firstobj=
  32918. + if test "$compiler_needs_object" = yes; then
  32919. + firstobj="$1 "
  32920. + shift
  32921. + fi
  32922. + for obj
  32923. + do
  32924. + $ECHO "$obj" >> $output
  32925. + done
  32926. + delfiles="$delfiles $output"
  32927. + output=$firstobj\"$file_list_spec$output\"
  32928. + else
  32929. + if test -n "$save_libobjs"; then
  32930. + func_verbose "creating reloadable object files..."
  32931. + output=$output_objdir/$output_la-${k}.$objext
  32932. + eval test_cmds=\"$reload_cmds\"
  32933. + func_len " $test_cmds"
  32934. + len0=$func_len_result
  32935. + len=$len0
  32936. +
  32937. + # Loop over the list of objects to be linked.
  32938. + for obj in $save_libobjs
  32939. + do
  32940. + func_len " $obj"
  32941. + func_arith $len + $func_len_result
  32942. + len=$func_arith_result
  32943. + if test "X$objlist" = X ||
  32944. + test "$len" -lt "$max_cmd_len"; then
  32945. + func_append objlist " $obj"
  32946. + else
  32947. + # The command $test_cmds is almost too long, add a
  32948. + # command to the queue.
  32949. + if test "$k" -eq 1 ; then
  32950. + # The first file doesn't have a previous command to add.
  32951. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  32952. + else
  32953. + # All subsequent reloadable object files will link in
  32954. + # the last one created.
  32955. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  32956. + fi
  32957. + last_robj=$output_objdir/$output_la-${k}.$objext
  32958. + func_arith $k + 1
  32959. + k=$func_arith_result
  32960. + output=$output_objdir/$output_la-${k}.$objext
  32961. + objlist=$obj
  32962. + func_len " $last_robj"
  32963. + func_arith $len0 + $func_len_result
  32964. + len=$func_arith_result
  32965. + fi
  32966. + done
  32967. + # Handle the remaining objects by creating one last
  32968. + # reloadable object file. All subsequent reloadable object
  32969. + # files will link in the last one created.
  32970. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  32971. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  32972. + if test -n "$last_robj"; then
  32973. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  32974. + fi
  32975. + delfiles="$delfiles $output"
  32976. +
  32977. + else
  32978. + output=
  32979. + fi
  32980. +
  32981. + if ${skipped_export-false}; then
  32982. + func_verbose "generating symbol list for \`$libname.la'"
  32983. + export_symbols="$output_objdir/$libname.exp"
  32984. + $opt_dry_run || $RM $export_symbols
  32985. + libobjs=$output
  32986. + # Append the command to create the export file.
  32987. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  32988. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  32989. + if test -n "$last_robj"; then
  32990. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  32991. + fi
  32992. + fi
  32993. +
  32994. + test -n "$save_libobjs" &&
  32995. + func_verbose "creating a temporary reloadable object file: $output"
  32996. +
  32997. + # Loop through the commands generated above and execute them.
  32998. + save_ifs="$IFS"; IFS='~'
  32999. + for cmd in $concat_cmds; do
  33000. + IFS="$save_ifs"
  33001. + $opt_silent || {
  33002. + func_quote_for_expand "$cmd"
  33003. + eval "func_echo $func_quote_for_expand_result"
  33004. + }
  33005. + $opt_dry_run || eval "$cmd" || {
  33006. + lt_exit=$?
  33007. +
  33008. + # Restore the uninstalled library and exit
  33009. + if test "$mode" = relink; then
  33010. + ( cd "$output_objdir" && \
  33011. + $RM "${realname}T" && \
  33012. + $MV "${realname}U" "$realname" )
  33013. + fi
  33014. +
  33015. + exit $lt_exit
  33016. + }
  33017. + done
  33018. + IFS="$save_ifs"
  33019. +
  33020. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  33021. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  33022. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  33023. + fi
  33024. + fi
  33025. +
  33026. + if ${skipped_export-false}; then
  33027. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  33028. + tmp_export_symbols="$export_symbols"
  33029. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  33030. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  33031. + fi
  33032. +
  33033. + if test -n "$orig_export_symbols"; then
  33034. + # The given exports_symbols file has to be filtered, so filter it.
  33035. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  33036. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  33037. + # 's' commands which not all seds can handle. GNU sed should be fine
  33038. + # though. Also, the filter scales superlinearly with the number of
  33039. + # global variables. join(1) would be nice here, but unfortunately
  33040. + # isn't a blessed tool.
  33041. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  33042. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  33043. + export_symbols=$output_objdir/$libname.def
  33044. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  33045. + fi
  33046. + fi
  33047. +
  33048. + libobjs=$output
  33049. + # Restore the value of output.
  33050. + output=$save_output
  33051. +
  33052. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  33053. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  33054. + test "X$libobjs" = "X " && libobjs=
  33055. + fi
  33056. + # Expand the library linking commands again to reset the
  33057. + # value of $libobjs for piecewise linking.
  33058. +
  33059. + # Do each of the archive commands.
  33060. + if test "$module" = yes && test -n "$module_cmds" ; then
  33061. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  33062. + cmds=$module_expsym_cmds
  33063. + else
  33064. + cmds=$module_cmds
  33065. + fi
  33066. + else
  33067. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  33068. + cmds=$archive_expsym_cmds
  33069. + else
  33070. + cmds=$archive_cmds
  33071. + fi
  33072. + fi
  33073. + fi
  33074. +
  33075. + if test -n "$delfiles"; then
  33076. + # Append the command to remove temporary files to $cmds.
  33077. + eval cmds=\"\$cmds~\$RM $delfiles\"
  33078. + fi
  33079. +
  33080. + # Add any objects from preloaded convenience libraries
  33081. + if test -n "$dlprefiles"; then
  33082. + gentop="$output_objdir/${outputname}x"
  33083. + generated="$generated $gentop"
  33084. +
  33085. + func_extract_archives $gentop $dlprefiles
  33086. + libobjs="$libobjs $func_extract_archives_result"
  33087. + test "X$libobjs" = "X " && libobjs=
  33088. + fi
  33089. +
  33090. + save_ifs="$IFS"; IFS='~'
  33091. + for cmd in $cmds; do
  33092. + IFS="$save_ifs"
  33093. + eval cmd=\"$cmd\"
  33094. + $opt_silent || {
  33095. + func_quote_for_expand "$cmd"
  33096. + eval "func_echo $func_quote_for_expand_result"
  33097. + }
  33098. + $opt_dry_run || eval "$cmd" || {
  33099. + lt_exit=$?
  33100. +
  33101. + # Restore the uninstalled library and exit
  33102. + if test "$mode" = relink; then
  33103. + ( cd "$output_objdir" && \
  33104. + $RM "${realname}T" && \
  33105. + $MV "${realname}U" "$realname" )
  33106. + fi
  33107. +
  33108. + exit $lt_exit
  33109. + }
  33110. + done
  33111. + IFS="$save_ifs"
  33112. +
  33113. + # Restore the uninstalled library and exit
  33114. + if test "$mode" = relink; then
  33115. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  33116. +
  33117. + if test -n "$convenience"; then
  33118. + if test -z "$whole_archive_flag_spec"; then
  33119. + func_show_eval '${RM}r "$gentop"'
  33120. + fi
  33121. + fi
  33122. +
  33123. + exit $EXIT_SUCCESS
  33124. + fi
  33125. +
  33126. + # Create links to the real library.
  33127. + for linkname in $linknames; do
  33128. + if test "$realname" != "$linkname"; then
  33129. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  33130. + fi
  33131. + done
  33132. +
  33133. + # If -module or -export-dynamic was specified, set the dlname.
  33134. + if test "$module" = yes || test "$export_dynamic" = yes; then
  33135. + # On all known operating systems, these are identical.
  33136. + dlname="$soname"
  33137. + fi
  33138. + fi
  33139. + ;;
  33140. +
  33141. + obj)
  33142. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  33143. + func_warning "\`-dlopen' is ignored for objects"
  33144. + fi
  33145. +
  33146. + case " $deplibs" in
  33147. + *\ -l* | *\ -L*)
  33148. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  33149. + esac
  33150. +
  33151. + test -n "$rpath" && \
  33152. + func_warning "\`-rpath' is ignored for objects"
  33153. +
  33154. + test -n "$xrpath" && \
  33155. + func_warning "\`-R' is ignored for objects"
  33156. +
  33157. + test -n "$vinfo" && \
  33158. + func_warning "\`-version-info' is ignored for objects"
  33159. +
  33160. + test -n "$release" && \
  33161. + func_warning "\`-release' is ignored for objects"
  33162. +
  33163. + case $output in
  33164. + *.lo)
  33165. + test -n "$objs$old_deplibs" && \
  33166. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  33167. +
  33168. + libobj=$output
  33169. + func_lo2o "$libobj"
  33170. + obj=$func_lo2o_result
  33171. + ;;
  33172. + *)
  33173. + libobj=
  33174. + obj="$output"
  33175. + ;;
  33176. + esac
  33177. +
  33178. + # Delete the old objects.
  33179. + $opt_dry_run || $RM $obj $libobj
  33180. +
  33181. + # Objects from convenience libraries. This assumes
  33182. + # single-version convenience libraries. Whenever we create
  33183. + # different ones for PIC/non-PIC, this we'll have to duplicate
  33184. + # the extraction.
  33185. + reload_conv_objs=
  33186. + gentop=
  33187. + # reload_cmds runs $LD directly, so let us get rid of
  33188. + # -Wl from whole_archive_flag_spec and hope we can get by with
  33189. + # turning comma into space..
  33190. + wl=
  33191. +
  33192. + if test -n "$convenience"; then
  33193. + if test -n "$whole_archive_flag_spec"; then
  33194. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  33195. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  33196. + else
  33197. + gentop="$output_objdir/${obj}x"
  33198. + generated="$generated $gentop"
  33199. +
  33200. + func_extract_archives $gentop $convenience
  33201. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  33202. + fi
  33203. + fi
  33204. +
  33205. + # Create the old-style object.
  33206. + 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
  33207. +
  33208. + output="$obj"
  33209. + func_execute_cmds "$reload_cmds" 'exit $?'
  33210. +
  33211. + # Exit if we aren't doing a library object file.
  33212. + if test -z "$libobj"; then
  33213. + if test -n "$gentop"; then
  33214. + func_show_eval '${RM}r "$gentop"'
  33215. + fi
  33216. +
  33217. + exit $EXIT_SUCCESS
  33218. + fi
  33219. +
  33220. + if test "$build_libtool_libs" != yes; then
  33221. + if test -n "$gentop"; then
  33222. + func_show_eval '${RM}r "$gentop"'
  33223. + fi
  33224. +
  33225. + # Create an invalid libtool object if no PIC, so that we don't
  33226. + # accidentally link it into a program.
  33227. + # $show "echo timestamp > $libobj"
  33228. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  33229. + exit $EXIT_SUCCESS
  33230. + fi
  33231. +
  33232. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  33233. + # Only do commands if we really have different PIC objects.
  33234. + reload_objs="$libobjs $reload_conv_objs"
  33235. + output="$libobj"
  33236. + func_execute_cmds "$reload_cmds" 'exit $?'
  33237. + fi
  33238. +
  33239. + if test -n "$gentop"; then
  33240. + func_show_eval '${RM}r "$gentop"'
  33241. + fi
  33242. +
  33243. + exit $EXIT_SUCCESS
  33244. + ;;
  33245. +
  33246. + prog)
  33247. + case $host in
  33248. + *cygwin*) func_stripname '' '.exe' "$output"
  33249. + output=$func_stripname_result.exe;;
  33250. + esac
  33251. + test -n "$vinfo" && \
  33252. + func_warning "\`-version-info' is ignored for programs"
  33253. +
  33254. + test -n "$release" && \
  33255. + func_warning "\`-release' is ignored for programs"
  33256. +
  33257. + test "$preload" = yes \
  33258. + && test "$dlopen_support" = unknown \
  33259. + && test "$dlopen_self" = unknown \
  33260. + && test "$dlopen_self_static" = unknown && \
  33261. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  33262. +
  33263. + case $host in
  33264. + *-*-rhapsody* | *-*-darwin1.[012])
  33265. + # On Rhapsody replace the C library is the System framework
  33266. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  33267. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  33268. + ;;
  33269. + esac
  33270. +
  33271. + case $host in
  33272. + *-*-darwin*)
  33273. + # Don't allow lazy linking, it breaks C++ global constructors
  33274. + # But is supposedly fixed on 10.4 or later (yay!).
  33275. + if test "$tagname" = CXX ; then
  33276. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  33277. + 10.[0123])
  33278. + compile_command="$compile_command ${wl}-bind_at_load"
  33279. + finalize_command="$finalize_command ${wl}-bind_at_load"
  33280. + ;;
  33281. + esac
  33282. + fi
  33283. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  33284. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  33285. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  33286. + ;;
  33287. + esac
  33288. +
  33289. +
  33290. + # move library search paths that coincide with paths to not yet
  33291. + # installed libraries to the beginning of the library search list
  33292. + new_libs=
  33293. + for path in $notinst_path; do
  33294. + case " $new_libs " in
  33295. + *" -L$path/$objdir "*) ;;
  33296. + *)
  33297. + case " $compile_deplibs " in
  33298. + *" -L$path/$objdir "*)
  33299. + new_libs="$new_libs -L$path/$objdir" ;;
  33300. + esac
  33301. + ;;
  33302. + esac
  33303. + done
  33304. + for deplib in $compile_deplibs; do
  33305. + case $deplib in
  33306. + -L*)
  33307. + case " $new_libs " in
  33308. + *" $deplib "*) ;;
  33309. + *) new_libs="$new_libs $deplib" ;;
  33310. + esac
  33311. + ;;
  33312. + *) new_libs="$new_libs $deplib" ;;
  33313. + esac
  33314. + done
  33315. + compile_deplibs="$new_libs"
  33316. +
  33317. +
  33318. + compile_command="$compile_command $compile_deplibs"
  33319. + finalize_command="$finalize_command $finalize_deplibs"
  33320. +
  33321. + if test -n "$rpath$xrpath"; then
  33322. + # If the user specified any rpath flags, then add them.
  33323. + for libdir in $rpath $xrpath; do
  33324. + # This is the magic to use -rpath.
  33325. + case "$finalize_rpath " in
  33326. + *" $libdir "*) ;;
  33327. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  33328. + esac
  33329. + done
  33330. + fi
  33331. +
  33332. + # Now hardcode the library paths
  33333. + rpath=
  33334. + hardcode_libdirs=
  33335. + for libdir in $compile_rpath $finalize_rpath; do
  33336. + if test -n "$hardcode_libdir_flag_spec"; then
  33337. + if test -n "$hardcode_libdir_separator"; then
  33338. + if test -z "$hardcode_libdirs"; then
  33339. + hardcode_libdirs="$libdir"
  33340. + else
  33341. + # Just accumulate the unique libdirs.
  33342. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  33343. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  33344. + ;;
  33345. + *)
  33346. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  33347. + ;;
  33348. + esac
  33349. + fi
  33350. + else
  33351. + eval flag=\"$hardcode_libdir_flag_spec\"
  33352. + rpath="$rpath $flag"
  33353. + fi
  33354. + elif test -n "$runpath_var"; then
  33355. + case "$perm_rpath " in
  33356. + *" $libdir "*) ;;
  33357. + *) perm_rpath="$perm_rpath $libdir" ;;
  33358. + esac
  33359. + fi
  33360. + case $host in
  33361. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  33362. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  33363. + case :$dllsearchpath: in
  33364. + *":$libdir:"*) ;;
  33365. + ::) dllsearchpath=$libdir;;
  33366. + *) dllsearchpath="$dllsearchpath:$libdir";;
  33367. + esac
  33368. + case :$dllsearchpath: in
  33369. + *":$testbindir:"*) ;;
  33370. + ::) dllsearchpath=$testbindir;;
  33371. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  33372. + esac
  33373. + ;;
  33374. + esac
  33375. + done
  33376. + # Substitute the hardcoded libdirs into the rpath.
  33377. + if test -n "$hardcode_libdir_separator" &&
  33378. + test -n "$hardcode_libdirs"; then
  33379. + libdir="$hardcode_libdirs"
  33380. + eval rpath=\" $hardcode_libdir_flag_spec\"
  33381. + fi
  33382. + compile_rpath="$rpath"
  33383. +
  33384. + rpath=
  33385. + hardcode_libdirs=
  33386. + for libdir in $finalize_rpath; do
  33387. + if test -n "$hardcode_libdir_flag_spec"; then
  33388. + if test -n "$hardcode_libdir_separator"; then
  33389. + if test -z "$hardcode_libdirs"; then
  33390. + hardcode_libdirs="$libdir"
  33391. + else
  33392. + # Just accumulate the unique libdirs.
  33393. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  33394. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  33395. + ;;
  33396. + *)
  33397. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  33398. + ;;
  33399. + esac
  33400. + fi
  33401. + else
  33402. + eval flag=\"$hardcode_libdir_flag_spec\"
  33403. + rpath="$rpath $flag"
  33404. + fi
  33405. + elif test -n "$runpath_var"; then
  33406. + case "$finalize_perm_rpath " in
  33407. + *" $libdir "*) ;;
  33408. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  33409. + esac
  33410. + fi
  33411. + done
  33412. + # Substitute the hardcoded libdirs into the rpath.
  33413. + if test -n "$hardcode_libdir_separator" &&
  33414. + test -n "$hardcode_libdirs"; then
  33415. + libdir="$hardcode_libdirs"
  33416. + eval rpath=\" $hardcode_libdir_flag_spec\"
  33417. + fi
  33418. + finalize_rpath="$rpath"
  33419. +
  33420. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  33421. + # Transform all the library objects into standard objects.
  33422. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  33423. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  33424. + fi
  33425. +
  33426. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  33427. +
  33428. + # template prelinking step
  33429. + if test -n "$prelink_cmds"; then
  33430. + func_execute_cmds "$prelink_cmds" 'exit $?'
  33431. + fi
  33432. +
  33433. + wrappers_required=yes
  33434. + case $host in
  33435. + *cygwin* | *mingw* )
  33436. + if test "$build_libtool_libs" != yes; then
  33437. + wrappers_required=no
  33438. + fi
  33439. + ;;
  33440. + *cegcc)
  33441. + # Disable wrappers for cegcc, we are cross compiling anyway.
  33442. + wrappers_required=no
  33443. + ;;
  33444. + *)
  33445. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  33446. + wrappers_required=no
  33447. + fi
  33448. + ;;
  33449. + esac
  33450. + if test "$wrappers_required" = no; then
  33451. + # Replace the output file specification.
  33452. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  33453. + link_command="$compile_command$compile_rpath"
  33454. +
  33455. + # We have no uninstalled library dependencies, so finalize right now.
  33456. + exit_status=0
  33457. + func_show_eval "$link_command" 'exit_status=$?'
  33458. +
  33459. + # Delete the generated files.
  33460. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  33461. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  33462. + fi
  33463. +
  33464. + exit $exit_status
  33465. + fi
  33466. +
  33467. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  33468. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  33469. + fi
  33470. + if test -n "$finalize_shlibpath"; then
  33471. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  33472. + fi
  33473. +
  33474. + compile_var=
  33475. + finalize_var=
  33476. + if test -n "$runpath_var"; then
  33477. + if test -n "$perm_rpath"; then
  33478. + # We should set the runpath_var.
  33479. + rpath=
  33480. + for dir in $perm_rpath; do
  33481. + rpath="$rpath$dir:"
  33482. + done
  33483. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  33484. + fi
  33485. + if test -n "$finalize_perm_rpath"; then
  33486. + # We should set the runpath_var.
  33487. + rpath=
  33488. + for dir in $finalize_perm_rpath; do
  33489. + rpath="$rpath$dir:"
  33490. + done
  33491. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  33492. + fi
  33493. + fi
  33494. +
  33495. + if test "$no_install" = yes; then
  33496. + # We don't need to create a wrapper script.
  33497. + link_command="$compile_var$compile_command$compile_rpath"
  33498. + # Replace the output file specification.
  33499. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  33500. + # Delete the old output file.
  33501. + $opt_dry_run || $RM $output
  33502. + # Link the executable and exit
  33503. + func_show_eval "$link_command" 'exit $?'
  33504. + exit $EXIT_SUCCESS
  33505. + fi
  33506. +
  33507. + if test "$hardcode_action" = relink; then
  33508. + # Fast installation is not supported
  33509. + link_command="$compile_var$compile_command$compile_rpath"
  33510. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  33511. +
  33512. + func_warning "this platform does not like uninstalled shared libraries"
  33513. + func_warning "\`$output' will be relinked during installation"
  33514. + else
  33515. + if test "$fast_install" != no; then
  33516. + link_command="$finalize_var$compile_command$finalize_rpath"
  33517. + if test "$fast_install" = yes; then
  33518. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  33519. + else
  33520. + # fast_install is set to needless
  33521. + relink_command=
  33522. + fi
  33523. + else
  33524. + link_command="$compile_var$compile_command$compile_rpath"
  33525. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  33526. + fi
  33527. + fi
  33528. +
  33529. + # Replace the output file specification.
  33530. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  33531. +
  33532. + # Delete the old output files.
  33533. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  33534. +
  33535. + func_show_eval "$link_command" 'exit $?'
  33536. +
  33537. + # Now create the wrapper script.
  33538. + func_verbose "creating $output"
  33539. +
  33540. + # Quote the relink command for shipping.
  33541. + if test -n "$relink_command"; then
  33542. + # Preserve any variables that may affect compiler behavior
  33543. + for var in $variables_saved_for_relink; do
  33544. + if eval test -z \"\${$var+set}\"; then
  33545. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  33546. + elif eval var_value=\$$var; test -z "$var_value"; then
  33547. + relink_command="$var=; export $var; $relink_command"
  33548. + else
  33549. + func_quote_for_eval "$var_value"
  33550. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  33551. + fi
  33552. + done
  33553. + relink_command="(cd `pwd`; $relink_command)"
  33554. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  33555. + fi
  33556. +
  33557. + # Quote $ECHO for shipping.
  33558. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  33559. + case $progpath in
  33560. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  33561. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  33562. + esac
  33563. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  33564. + else
  33565. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  33566. + fi
  33567. +
  33568. + # Only actually do things if not in dry run mode.
  33569. + $opt_dry_run || {
  33570. + # win32 will think the script is a binary if it has
  33571. + # a .exe suffix, so we strip it off here.
  33572. + case $output in
  33573. + *.exe) func_stripname '' '.exe' "$output"
  33574. + output=$func_stripname_result ;;
  33575. + esac
  33576. + # test for cygwin because mv fails w/o .exe extensions
  33577. + case $host in
  33578. + *cygwin*)
  33579. + exeext=.exe
  33580. + func_stripname '' '.exe' "$outputname"
  33581. + outputname=$func_stripname_result ;;
  33582. + *) exeext= ;;
  33583. + esac
  33584. + case $host in
  33585. + *cygwin* | *mingw* )
  33586. + func_dirname_and_basename "$output" "" "."
  33587. + output_name=$func_basename_result
  33588. + output_path=$func_dirname_result
  33589. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  33590. + cwrapper="$output_path/$output_name.exe"
  33591. + $RM $cwrappersource $cwrapper
  33592. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  33593. +
  33594. + func_emit_cwrapperexe_src > $cwrappersource
  33595. +
  33596. + # The wrapper executable is built using the $host compiler,
  33597. + # because it contains $host paths and files. If cross-
  33598. + # compiling, it, like the target executable, must be
  33599. + # executed on the $host or under an emulation environment.
  33600. + $opt_dry_run || {
  33601. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  33602. + $STRIP $cwrapper
  33603. + }
  33604. +
  33605. + # Now, create the wrapper script for func_source use:
  33606. + func_ltwrapper_scriptname $cwrapper
  33607. + $RM $func_ltwrapper_scriptname_result
  33608. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  33609. + $opt_dry_run || {
  33610. + # note: this script will not be executed, so do not chmod.
  33611. + if test "x$build" = "x$host" ; then
  33612. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  33613. + else
  33614. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  33615. + fi
  33616. + }
  33617. + ;;
  33618. + * )
  33619. + $RM $output
  33620. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  33621. +
  33622. + func_emit_wrapper no > $output
  33623. + chmod +x $output
  33624. + ;;
  33625. + esac
  33626. + }
  33627. + exit $EXIT_SUCCESS
  33628. + ;;
  33629. + esac
  33630. +
  33631. + # See if we need to build an old-fashioned archive.
  33632. + for oldlib in $oldlibs; do
  33633. +
  33634. + if test "$build_libtool_libs" = convenience; then
  33635. + oldobjs="$libobjs_save $symfileobj"
  33636. + addlibs="$convenience"
  33637. + build_libtool_libs=no
  33638. + else
  33639. + if test "$build_libtool_libs" = module; then
  33640. + oldobjs="$libobjs_save"
  33641. + build_libtool_libs=no
  33642. + else
  33643. + oldobjs="$old_deplibs $non_pic_objects"
  33644. + if test "$preload" = yes && test -f "$symfileobj"; then
  33645. + oldobjs="$oldobjs $symfileobj"
  33646. + fi
  33647. + fi
  33648. + addlibs="$old_convenience"
  33649. + fi
  33650. +
  33651. + if test -n "$addlibs"; then
  33652. + gentop="$output_objdir/${outputname}x"
  33653. + generated="$generated $gentop"
  33654. +
  33655. + func_extract_archives $gentop $addlibs
  33656. + oldobjs="$oldobjs $func_extract_archives_result"
  33657. + fi
  33658. +
  33659. + # Do each command in the archive commands.
  33660. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  33661. + cmds=$old_archive_from_new_cmds
  33662. + else
  33663. +
  33664. + # Add any objects from preloaded convenience libraries
  33665. + if test -n "$dlprefiles"; then
  33666. + gentop="$output_objdir/${outputname}x"
  33667. + generated="$generated $gentop"
  33668. +
  33669. + func_extract_archives $gentop $dlprefiles
  33670. + oldobjs="$oldobjs $func_extract_archives_result"
  33671. + fi
  33672. +
  33673. + # POSIX demands no paths to be encoded in archives. We have
  33674. + # to avoid creating archives with duplicate basenames if we
  33675. + # might have to extract them afterwards, e.g., when creating a
  33676. + # static archive out of a convenience library, or when linking
  33677. + # the entirety of a libtool archive into another (currently
  33678. + # not supported by libtool).
  33679. + if (for obj in $oldobjs
  33680. + do
  33681. + func_basename "$obj"
  33682. + $ECHO "$func_basename_result"
  33683. + done | sort | sort -uc >/dev/null 2>&1); then
  33684. + :
  33685. + else
  33686. + $ECHO "copying selected object files to avoid basename conflicts..."
  33687. + gentop="$output_objdir/${outputname}x"
  33688. + generated="$generated $gentop"
  33689. + func_mkdir_p "$gentop"
  33690. + save_oldobjs=$oldobjs
  33691. + oldobjs=
  33692. + counter=1
  33693. + for obj in $save_oldobjs
  33694. + do
  33695. + func_basename "$obj"
  33696. + objbase="$func_basename_result"
  33697. + case " $oldobjs " in
  33698. + " ") oldobjs=$obj ;;
  33699. + *[\ /]"$objbase "*)
  33700. + while :; do
  33701. + # Make sure we don't pick an alternate name that also
  33702. + # overlaps.
  33703. + newobj=lt$counter-$objbase
  33704. + func_arith $counter + 1
  33705. + counter=$func_arith_result
  33706. + case " $oldobjs " in
  33707. + *[\ /]"$newobj "*) ;;
  33708. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  33709. + esac
  33710. + done
  33711. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  33712. + oldobjs="$oldobjs $gentop/$newobj"
  33713. + ;;
  33714. + *) oldobjs="$oldobjs $obj" ;;
  33715. + esac
  33716. + done
  33717. + fi
  33718. + eval cmds=\"$old_archive_cmds\"
  33719. +
  33720. + func_len " $cmds"
  33721. + len=$func_len_result
  33722. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  33723. + cmds=$old_archive_cmds
  33724. + else
  33725. + # the command line is too long to link in one step, link in parts
  33726. + func_verbose "using piecewise archive linking..."
  33727. + save_RANLIB=$RANLIB
  33728. + RANLIB=:
  33729. + objlist=
  33730. + concat_cmds=
  33731. + save_oldobjs=$oldobjs
  33732. + oldobjs=
  33733. + # Is there a better way of finding the last object in the list?
  33734. + for obj in $save_oldobjs
  33735. + do
  33736. + last_oldobj=$obj
  33737. + done
  33738. + eval test_cmds=\"$old_archive_cmds\"
  33739. + func_len " $test_cmds"
  33740. + len0=$func_len_result
  33741. + len=$len0
  33742. + for obj in $save_oldobjs
  33743. + do
  33744. + func_len " $obj"
  33745. + func_arith $len + $func_len_result
  33746. + len=$func_arith_result
  33747. + func_append objlist " $obj"
  33748. + if test "$len" -lt "$max_cmd_len"; then
  33749. + :
  33750. + else
  33751. + # the above command should be used before it gets too long
  33752. + oldobjs=$objlist
  33753. + if test "$obj" = "$last_oldobj" ; then
  33754. + RANLIB=$save_RANLIB
  33755. + fi
  33756. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  33757. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  33758. + objlist=
  33759. + len=$len0
  33760. + fi
  33761. + done
  33762. + RANLIB=$save_RANLIB
  33763. + oldobjs=$objlist
  33764. + if test "X$oldobjs" = "X" ; then
  33765. + eval cmds=\"\$concat_cmds\"
  33766. + else
  33767. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  33768. + fi
  33769. + fi
  33770. + fi
  33771. + func_execute_cmds "$cmds" 'exit $?'
  33772. + done
  33773. +
  33774. + test -n "$generated" && \
  33775. + func_show_eval "${RM}r$generated"
  33776. +
  33777. + # Now create the libtool archive.
  33778. + case $output in
  33779. + *.la)
  33780. + old_library=
  33781. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  33782. + func_verbose "creating $output"
  33783. +
  33784. + # Preserve any variables that may affect compiler behavior
  33785. + for var in $variables_saved_for_relink; do
  33786. + if eval test -z \"\${$var+set}\"; then
  33787. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  33788. + elif eval var_value=\$$var; test -z "$var_value"; then
  33789. + relink_command="$var=; export $var; $relink_command"
  33790. + else
  33791. + func_quote_for_eval "$var_value"
  33792. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  33793. + fi
  33794. + done
  33795. + # Quote the link command for shipping.
  33796. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  33797. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  33798. + if test "$hardcode_automatic" = yes ; then
  33799. + relink_command=
  33800. + fi
  33801. +
  33802. + # Only create the output if not a dry run.
  33803. + $opt_dry_run || {
  33804. + for installed in no yes; do
  33805. + if test "$installed" = yes; then
  33806. + if test -z "$install_libdir"; then
  33807. + break
  33808. + fi
  33809. + output="$output_objdir/$outputname"i
  33810. + # Replace all uninstalled libtool libraries with the installed ones
  33811. + newdependency_libs=
  33812. + for deplib in $dependency_libs; do
  33813. + case $deplib in
  33814. + *.la)
  33815. + func_basename "$deplib"
  33816. + name="$func_basename_result"
  33817. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  33818. + test -z "$libdir" && \
  33819. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  33820. + newdependency_libs="$newdependency_libs $libdir/$name"
  33821. + ;;
  33822. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  33823. + esac
  33824. + done
  33825. + dependency_libs="$newdependency_libs"
  33826. + newdlfiles=
  33827. +
  33828. + for lib in $dlfiles; do
  33829. + case $lib in
  33830. + *.la)
  33831. + func_basename "$lib"
  33832. + name="$func_basename_result"
  33833. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  33834. + test -z "$libdir" && \
  33835. + func_fatal_error "\`$lib' is not a valid libtool archive"
  33836. + newdlfiles="$newdlfiles $libdir/$name"
  33837. + ;;
  33838. + *) newdlfiles="$newdlfiles $lib" ;;
  33839. + esac
  33840. + done
  33841. + dlfiles="$newdlfiles"
  33842. + newdlprefiles=
  33843. + for lib in $dlprefiles; do
  33844. + case $lib in
  33845. + *.la)
  33846. + # Only pass preopened files to the pseudo-archive (for
  33847. + # eventual linking with the app. that links it) if we
  33848. + # didn't already link the preopened objects directly into
  33849. + # the library:
  33850. + func_basename "$lib"
  33851. + name="$func_basename_result"
  33852. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  33853. + test -z "$libdir" && \
  33854. + func_fatal_error "\`$lib' is not a valid libtool archive"
  33855. + newdlprefiles="$newdlprefiles $libdir/$name"
  33856. + ;;
  33857. + esac
  33858. + done
  33859. + dlprefiles="$newdlprefiles"
  33860. + else
  33861. + newdlfiles=
  33862. + for lib in $dlfiles; do
  33863. + case $lib in
  33864. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  33865. + *) abs=`pwd`"/$lib" ;;
  33866. + esac
  33867. + newdlfiles="$newdlfiles $abs"
  33868. + done
  33869. + dlfiles="$newdlfiles"
  33870. + newdlprefiles=
  33871. + for lib in $dlprefiles; do
  33872. + case $lib in
  33873. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  33874. + *) abs=`pwd`"/$lib" ;;
  33875. + esac
  33876. + newdlprefiles="$newdlprefiles $abs"
  33877. + done
  33878. + dlprefiles="$newdlprefiles"
  33879. + fi
  33880. + $RM $output
  33881. + # place dlname in correct position for cygwin
  33882. + tdlname=$dlname
  33883. + case $host,$output,$installed,$module,$dlname in
  33884. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  33885. + esac
  33886. + $ECHO > $output "\
  33887. +# $outputname - a libtool library file
  33888. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  33889. +#
  33890. +# Please DO NOT delete this file!
  33891. +# It is necessary for linking the library.
  33892. +
  33893. +# The name that we can dlopen(3).
  33894. +dlname='$tdlname'
  33895. +
  33896. +# Names of this library.
  33897. +library_names='$library_names'
  33898. +
  33899. +# The name of the static archive.
  33900. +old_library='$old_library'
  33901. +
  33902. +# Linker flags that can not go in dependency_libs.
  33903. +inherited_linker_flags='$new_inherited_linker_flags'
  33904. +
  33905. +# Libraries that this one depends upon.
  33906. +dependency_libs='$dependency_libs'
  33907. +
  33908. +# Names of additional weak libraries provided by this library
  33909. +weak_library_names='$weak_libs'
  33910. +
  33911. +# Version information for $libname.
  33912. +current=$current
  33913. +age=$age
  33914. +revision=$revision
  33915. +
  33916. +# Is this an already installed library?
  33917. +installed=$installed
  33918. +
  33919. +# Should we warn about portability when linking against -modules?
  33920. +shouldnotlink=$module
  33921. +
  33922. +# Files to dlopen/dlpreopen
  33923. +dlopen='$dlfiles'
  33924. +dlpreopen='$dlprefiles'
  33925. +
  33926. +# Directory that this library needs to be installed in:
  33927. +libdir='$install_libdir'"
  33928. + if test "$installed" = no && test "$need_relink" = yes; then
  33929. + $ECHO >> $output "\
  33930. +relink_command=\"$relink_command\""
  33931. + fi
  33932. + done
  33933. + }
  33934. +
  33935. + # Do a symbolic link so that the libtool archive can be found in
  33936. + # LD_LIBRARY_PATH before the program is installed.
  33937. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  33938. + ;;
  33939. + esac
  33940. + exit $EXIT_SUCCESS
  33941. +}
  33942. +
  33943. +{ test "$mode" = link || test "$mode" = relink; } &&
  33944. + func_mode_link ${1+"$@"}
  33945. +
  33946. +
  33947. +# func_mode_uninstall arg...
  33948. +func_mode_uninstall ()
  33949. +{
  33950. + $opt_debug
  33951. + RM="$nonopt"
  33952. + files=
  33953. + rmforce=
  33954. + exit_status=0
  33955. +
  33956. + # This variable tells wrapper scripts just to set variables rather
  33957. + # than running their programs.
  33958. + libtool_install_magic="$magic"
  33959. +
  33960. + for arg
  33961. + do
  33962. + case $arg in
  33963. + -f) RM="$RM $arg"; rmforce=yes ;;
  33964. + -*) RM="$RM $arg" ;;
  33965. + *) files="$files $arg" ;;
  33966. + esac
  33967. + done
  33968. +
  33969. + test -z "$RM" && \
  33970. + func_fatal_help "you must specify an RM program"
  33971. +
  33972. + rmdirs=
  33973. +
  33974. + origobjdir="$objdir"
  33975. + for file in $files; do
  33976. + func_dirname "$file" "" "."
  33977. + dir="$func_dirname_result"
  33978. + if test "X$dir" = X.; then
  33979. + objdir="$origobjdir"
  33980. + else
  33981. + objdir="$dir/$origobjdir"
  33982. + fi
  33983. + func_basename "$file"
  33984. + name="$func_basename_result"
  33985. + test "$mode" = uninstall && objdir="$dir"
  33986. +
  33987. + # Remember objdir for removal later, being careful to avoid duplicates
  33988. + if test "$mode" = clean; then
  33989. + case " $rmdirs " in
  33990. + *" $objdir "*) ;;
  33991. + *) rmdirs="$rmdirs $objdir" ;;
  33992. + esac
  33993. + fi
  33994. +
  33995. + # Don't error if the file doesn't exist and rm -f was used.
  33996. + if { test -L "$file"; } >/dev/null 2>&1 ||
  33997. + { test -h "$file"; } >/dev/null 2>&1 ||
  33998. + test -f "$file"; then
  33999. + :
  34000. + elif test -d "$file"; then
  34001. + exit_status=1
  34002. + continue
  34003. + elif test "$rmforce" = yes; then
  34004. + continue
  34005. + fi
  34006. +
  34007. + rmfiles="$file"
  34008. +
  34009. + case $name in
  34010. + *.la)
  34011. + # Possibly a libtool archive, so verify it.
  34012. + if func_lalib_p "$file"; then
  34013. + func_source $dir/$name
  34014. +
  34015. + # Delete the libtool libraries and symlinks.
  34016. + for n in $library_names; do
  34017. + rmfiles="$rmfiles $objdir/$n"
  34018. + done
  34019. + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
  34020. +
  34021. + case "$mode" in
  34022. + clean)
  34023. + case " $library_names " in
  34024. + # " " in the beginning catches empty $dlname
  34025. + *" $dlname "*) ;;
  34026. + *) rmfiles="$rmfiles $objdir/$dlname" ;;
  34027. + esac
  34028. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  34029. + ;;
  34030. + uninstall)
  34031. + if test -n "$library_names"; then
  34032. + # Do each command in the postuninstall commands.
  34033. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  34034. + fi
  34035. +
  34036. + if test -n "$old_library"; then
  34037. + # Do each command in the old_postuninstall commands.
  34038. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  34039. + fi
  34040. + # FIXME: should reinstall the best remaining shared library.
  34041. + ;;
  34042. + esac
  34043. + fi
  34044. + ;;
  34045. +
  34046. + *.lo)
  34047. + # Possibly a libtool object, so verify it.
  34048. + if func_lalib_p "$file"; then
  34049. +
  34050. + # Read the .lo file
  34051. + func_source $dir/$name
  34052. +
  34053. + # Add PIC object to the list of files to remove.
  34054. + if test -n "$pic_object" &&
  34055. + test "$pic_object" != none; then
  34056. + rmfiles="$rmfiles $dir/$pic_object"
  34057. + fi
  34058. +
  34059. + # Add non-PIC object to the list of files to remove.
  34060. + if test -n "$non_pic_object" &&
  34061. + test "$non_pic_object" != none; then
  34062. + rmfiles="$rmfiles $dir/$non_pic_object"
  34063. + fi
  34064. + fi
  34065. + ;;
  34066. +
  34067. + *)
  34068. + if test "$mode" = clean ; then
  34069. + noexename=$name
  34070. + case $file in
  34071. + *.exe)
  34072. + func_stripname '' '.exe' "$file"
  34073. + file=$func_stripname_result
  34074. + func_stripname '' '.exe' "$name"
  34075. + noexename=$func_stripname_result
  34076. + # $file with .exe has already been added to rmfiles,
  34077. + # add $file without .exe
  34078. + rmfiles="$rmfiles $file"
  34079. + ;;
  34080. + esac
  34081. + # Do a test to see if this is a libtool program.
  34082. + if func_ltwrapper_p "$file"; then
  34083. + if func_ltwrapper_executable_p "$file"; then
  34084. + func_ltwrapper_scriptname "$file"
  34085. + relink_command=
  34086. + func_source $func_ltwrapper_scriptname_result
  34087. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  34088. + else
  34089. + relink_command=
  34090. + func_source $dir/$noexename
  34091. + fi
  34092. +
  34093. + # note $name still contains .exe if it was in $file originally
  34094. + # as does the version of $file that was added into $rmfiles
  34095. + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
  34096. + if test "$fast_install" = yes && test -n "$relink_command"; then
  34097. + rmfiles="$rmfiles $objdir/lt-$name"
  34098. + fi
  34099. + if test "X$noexename" != "X$name" ; then
  34100. + rmfiles="$rmfiles $objdir/lt-${noexename}.c"
  34101. + fi
  34102. + fi
  34103. + fi
  34104. + ;;
  34105. + esac
  34106. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  34107. + done
  34108. + objdir="$origobjdir"
  34109. +
  34110. + # Try to remove the ${objdir}s in the directories where we deleted files
  34111. + for dir in $rmdirs; do
  34112. + if test -d "$dir"; then
  34113. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  34114. + fi
  34115. + done
  34116. +
  34117. + exit $exit_status
  34118. +}
  34119. +
  34120. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  34121. + func_mode_uninstall ${1+"$@"}
  34122. +
  34123. +test -z "$mode" && {
  34124. + help="$generic_help"
  34125. + func_fatal_help "you must specify a MODE"
  34126. +}
  34127. +
  34128. +test -z "$exec_cmd" && \
  34129. + func_fatal_help "invalid operation mode \`$mode'"
  34130. +
  34131. +if test -n "$exec_cmd"; then
  34132. + eval exec "$exec_cmd"
  34133. + exit $EXIT_FAILURE
  34134. +fi
  34135. +
  34136. +exit $exit_status
  34137. +
  34138. +
  34139. +# The TAGs below are defined such that we never get into a situation
  34140. +# in which we disable both kinds of libraries. Given conflicting
  34141. +# choices, we go for a static library, that is the most portable,
  34142. +# since we can't tell whether shared libraries were disabled because
  34143. +# the user asked for that or because the platform doesn't support
  34144. +# them. This is particularly important on AIX, because we don't
  34145. +# support having both static and shared libraries enabled at the same
  34146. +# time on that platform, so we default to a shared-only configuration.
  34147. +# If a disable-shared tag is given, we'll fallback to a static-only
  34148. +# configuration. But we'll never go from static-only to shared-only.
  34149. +
  34150. +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  34151. +build_libtool_libs=no
  34152. +build_old_libs=yes
  34153. +# ### END LIBTOOL TAG CONFIG: disable-shared
  34154. +
  34155. +# ### BEGIN LIBTOOL TAG CONFIG: disable-static
  34156. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  34157. +# ### END LIBTOOL TAG CONFIG: disable-static
  34158. +
  34159. +# Local Variables:
  34160. +# mode:shell-script
  34161. +# sh-indentation:2
  34162. +# End:
  34163. +# vi:sw=2
  34164. +
  34165. diff -Nur tslib-1.0.orig/m4/internal/libtool.m4 tslib-1.0/m4/internal/libtool.m4
  34166. --- tslib-1.0.orig/m4/internal/libtool.m4 1970-01-01 01:00:00.000000000 +0100
  34167. +++ tslib-1.0/m4/internal/libtool.m4 2010-07-29 13:39:16.000000000 +0200
  34168. @@ -0,0 +1,7377 @@
  34169. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  34170. +#
  34171. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  34172. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  34173. +# Written by Gordon Matzigkeit, 1996
  34174. +#
  34175. +# This file is free software; the Free Software Foundation gives
  34176. +# unlimited permission to copy and/or distribute it, with or without
  34177. +# modifications, as long as this notice is preserved.
  34178. +
  34179. +m4_define([_LT_COPYING], [dnl
  34180. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  34181. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  34182. +# Written by Gordon Matzigkeit, 1996
  34183. +#
  34184. +# This file is part of GNU Libtool.
  34185. +#
  34186. +# GNU Libtool is free software; you can redistribute it and/or
  34187. +# modify it under the terms of the GNU General Public License as
  34188. +# published by the Free Software Foundation; either version 2 of
  34189. +# the License, or (at your option) any later version.
  34190. +#
  34191. +# As a special exception to the GNU General Public License,
  34192. +# if you distribute this file as part of a program or library that
  34193. +# is built using GNU Libtool, you may include this file under the
  34194. +# same distribution terms that you use for the rest of that program.
  34195. +#
  34196. +# GNU Libtool is distributed in the hope that it will be useful,
  34197. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  34198. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  34199. +# GNU General Public License for more details.
  34200. +#
  34201. +# You should have received a copy of the GNU General Public License
  34202. +# along with GNU Libtool; see the file COPYING. If not, a copy
  34203. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  34204. +# obtained by writing to the Free Software Foundation, Inc.,
  34205. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  34206. +])
  34207. +
  34208. +# serial 56 LT_INIT
  34209. +
  34210. +
  34211. +# LT_PREREQ(VERSION)
  34212. +# ------------------
  34213. +# Complain and exit if this libtool version is less that VERSION.
  34214. +m4_defun([LT_PREREQ],
  34215. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  34216. + [m4_default([$3],
  34217. + [m4_fatal([Libtool version $1 or higher is required],
  34218. + 63)])],
  34219. + [$2])])
  34220. +
  34221. +
  34222. +# _LT_CHECK_BUILDDIR
  34223. +# ------------------
  34224. +# Complain if the absolute build directory name contains unusual characters
  34225. +m4_defun([_LT_CHECK_BUILDDIR],
  34226. +[case `pwd` in
  34227. + *\ * | *\ *)
  34228. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  34229. +esac
  34230. +])
  34231. +
  34232. +
  34233. +# LT_INIT([OPTIONS])
  34234. +# ------------------
  34235. +AC_DEFUN([LT_INIT],
  34236. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  34237. +AC_BEFORE([$0], [LT_LANG])dnl
  34238. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  34239. +AC_BEFORE([$0], [LTDL_INIT])dnl
  34240. +m4_require([_LT_CHECK_BUILDDIR])dnl
  34241. +
  34242. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  34243. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  34244. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  34245. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  34246. +dnl unless we require an AC_DEFUNed macro:
  34247. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  34248. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  34249. +AC_REQUIRE([LTVERSION_VERSION])dnl
  34250. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  34251. +m4_require([_LT_PROG_LTMAIN])dnl
  34252. +
  34253. +dnl Parse OPTIONS
  34254. +_LT_SET_OPTIONS([$0], [$1])
  34255. +
  34256. +# This can be used to rebuild libtool when needed
  34257. +LIBTOOL_DEPS="$ltmain"
  34258. +
  34259. +# Always use our own libtool.
  34260. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  34261. +AC_SUBST(LIBTOOL)dnl
  34262. +
  34263. +_LT_SETUP
  34264. +
  34265. +# Only expand once:
  34266. +m4_define([LT_INIT])
  34267. +])# LT_INIT
  34268. +
  34269. +# Old names:
  34270. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  34271. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  34272. +dnl aclocal-1.4 backwards compatibility:
  34273. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  34274. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  34275. +
  34276. +
  34277. +# _LT_CC_BASENAME(CC)
  34278. +# -------------------
  34279. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  34280. +m4_defun([_LT_CC_BASENAME],
  34281. +[for cc_temp in $1""; do
  34282. + case $cc_temp in
  34283. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  34284. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  34285. + \-*) ;;
  34286. + *) break;;
  34287. + esac
  34288. +done
  34289. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  34290. +])
  34291. +
  34292. +
  34293. +# _LT_FILEUTILS_DEFAULTS
  34294. +# ----------------------
  34295. +# It is okay to use these file commands and assume they have been set
  34296. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  34297. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  34298. +[: ${CP="cp -f"}
  34299. +: ${MV="mv -f"}
  34300. +: ${RM="rm -f"}
  34301. +])# _LT_FILEUTILS_DEFAULTS
  34302. +
  34303. +
  34304. +# _LT_SETUP
  34305. +# ---------
  34306. +m4_defun([_LT_SETUP],
  34307. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  34308. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  34309. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  34310. +_LT_DECL([], [host], [0])dnl
  34311. +_LT_DECL([], [host_os], [0])dnl
  34312. +dnl
  34313. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  34314. +_LT_DECL([], [build], [0])dnl
  34315. +_LT_DECL([], [build_os], [0])dnl
  34316. +dnl
  34317. +AC_REQUIRE([AC_PROG_CC])dnl
  34318. +AC_REQUIRE([LT_PATH_LD])dnl
  34319. +AC_REQUIRE([LT_PATH_NM])dnl
  34320. +dnl
  34321. +AC_REQUIRE([AC_PROG_LN_S])dnl
  34322. +test -z "$LN_S" && LN_S="ln -s"
  34323. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  34324. +dnl
  34325. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  34326. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  34327. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  34328. +dnl
  34329. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  34330. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  34331. +m4_require([_LT_CMD_RELOAD])dnl
  34332. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  34333. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  34334. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  34335. +
  34336. +_LT_CONFIG_LIBTOOL_INIT([
  34337. +# See if we are running on zsh, and set the options which allow our
  34338. +# commands through without removal of \ escapes INIT.
  34339. +if test -n "\${ZSH_VERSION+set}" ; then
  34340. + setopt NO_GLOB_SUBST
  34341. +fi
  34342. +])
  34343. +if test -n "${ZSH_VERSION+set}" ; then
  34344. + setopt NO_GLOB_SUBST
  34345. +fi
  34346. +
  34347. +_LT_CHECK_OBJDIR
  34348. +
  34349. +m4_require([_LT_TAG_COMPILER])dnl
  34350. +_LT_PROG_ECHO_BACKSLASH
  34351. +
  34352. +case $host_os in
  34353. +aix3*)
  34354. + # AIX sometimes has problems with the GCC collect2 program. For some
  34355. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  34356. + # vanish in a puff of smoke.
  34357. + if test "X${COLLECT_NAMES+set}" != Xset; then
  34358. + COLLECT_NAMES=
  34359. + export COLLECT_NAMES
  34360. + fi
  34361. + ;;
  34362. +esac
  34363. +
  34364. +# Sed substitution that helps us do robust quoting. It backslashifies
  34365. +# metacharacters that are still active within double-quoted strings.
  34366. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  34367. +
  34368. +# Same as above, but do not quote variable references.
  34369. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  34370. +
  34371. +# Sed substitution to delay expansion of an escaped shell variable in a
  34372. +# double_quote_subst'ed string.
  34373. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  34374. +
  34375. +# Sed substitution to delay expansion of an escaped single quote.
  34376. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  34377. +
  34378. +# Sed substitution to avoid accidental globbing in evaled expressions
  34379. +no_glob_subst='s/\*/\\\*/g'
  34380. +
  34381. +# Global variables:
  34382. +ofile=libtool
  34383. +can_build_shared=yes
  34384. +
  34385. +# All known linkers require a `.a' archive for static linking (except MSVC,
  34386. +# which needs '.lib').
  34387. +libext=a
  34388. +
  34389. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  34390. +
  34391. +old_CC="$CC"
  34392. +old_CFLAGS="$CFLAGS"
  34393. +
  34394. +# Set sane defaults for various variables
  34395. +test -z "$CC" && CC=cc
  34396. +test -z "$LTCC" && LTCC=$CC
  34397. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  34398. +test -z "$LD" && LD=ld
  34399. +test -z "$ac_objext" && ac_objext=o
  34400. +
  34401. +_LT_CC_BASENAME([$compiler])
  34402. +
  34403. +# Only perform the check for file, if the check method requires it
  34404. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  34405. +case $deplibs_check_method in
  34406. +file_magic*)
  34407. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  34408. + _LT_PATH_MAGIC
  34409. + fi
  34410. + ;;
  34411. +esac
  34412. +
  34413. +# Use C for the default configuration in the libtool script
  34414. +LT_SUPPORTED_TAG([CC])
  34415. +_LT_LANG_C_CONFIG
  34416. +_LT_LANG_DEFAULT_CONFIG
  34417. +_LT_CONFIG_COMMANDS
  34418. +])# _LT_SETUP
  34419. +
  34420. +
  34421. +# _LT_PROG_LTMAIN
  34422. +# ---------------
  34423. +# Note that this code is called both from `configure', and `config.status'
  34424. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  34425. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  34426. +# so we pass a copy along to make sure it has a sensible value anyway.
  34427. +m4_defun([_LT_PROG_LTMAIN],
  34428. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  34429. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  34430. +ltmain="$ac_aux_dir/ltmain.sh"
  34431. +])# _LT_PROG_LTMAIN
  34432. +
  34433. +
  34434. +## ------------------------------------- ##
  34435. +## Accumulate code for creating libtool. ##
  34436. +## ------------------------------------- ##
  34437. +
  34438. +# So that we can recreate a full libtool script including additional
  34439. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  34440. +# in macros and then make a single call at the end using the `libtool'
  34441. +# label.
  34442. +
  34443. +
  34444. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  34445. +# ----------------------------------------
  34446. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  34447. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  34448. +[m4_ifval([$1],
  34449. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  34450. + [$1
  34451. +])])])
  34452. +
  34453. +# Initialize.
  34454. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  34455. +
  34456. +
  34457. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  34458. +# ------------------------------
  34459. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  34460. +m4_define([_LT_CONFIG_LIBTOOL],
  34461. +[m4_ifval([$1],
  34462. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  34463. + [$1
  34464. +])])])
  34465. +
  34466. +# Initialize.
  34467. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  34468. +
  34469. +
  34470. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  34471. +# -----------------------------------------------------
  34472. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  34473. +[_LT_CONFIG_LIBTOOL([$1])
  34474. +_LT_CONFIG_LIBTOOL_INIT([$2])
  34475. +])
  34476. +
  34477. +
  34478. +# _LT_FORMAT_COMMENT([COMMENT])
  34479. +# -----------------------------
  34480. +# Add leading comment marks to the start of each line, and a trailing
  34481. +# full-stop to the whole comment if one is not present already.
  34482. +m4_define([_LT_FORMAT_COMMENT],
  34483. +[m4_ifval([$1], [
  34484. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  34485. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  34486. +)])
  34487. +
  34488. +
  34489. +
  34490. +## ------------------------ ##
  34491. +## FIXME: Eliminate VARNAME ##
  34492. +## ------------------------ ##
  34493. +
  34494. +
  34495. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  34496. +# -------------------------------------------------------------------
  34497. +# CONFIGNAME is the name given to the value in the libtool script.
  34498. +# VARNAME is the (base) name used in the configure script.
  34499. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  34500. +# VARNAME. Any other value will be used directly.
  34501. +m4_define([_LT_DECL],
  34502. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  34503. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  34504. + [m4_ifval([$1], [$1], [$2])])
  34505. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  34506. + m4_ifval([$4],
  34507. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  34508. + lt_dict_add_subkey([lt_decl_dict], [$2],
  34509. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  34510. +])
  34511. +
  34512. +
  34513. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  34514. +# --------------------------------------------------------
  34515. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  34516. +
  34517. +
  34518. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  34519. +# ------------------------------------------------
  34520. +m4_define([lt_decl_tag_varnames],
  34521. +[_lt_decl_filter([tagged?], [yes], $@)])
  34522. +
  34523. +
  34524. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  34525. +# ---------------------------------------------------------
  34526. +m4_define([_lt_decl_filter],
  34527. +[m4_case([$#],
  34528. + [0], [m4_fatal([$0: too few arguments: $#])],
  34529. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  34530. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  34531. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  34532. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  34533. +])
  34534. +
  34535. +
  34536. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  34537. +# --------------------------------------------------
  34538. +m4_define([lt_decl_quote_varnames],
  34539. +[_lt_decl_filter([value], [1], $@)])
  34540. +
  34541. +
  34542. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  34543. +# ---------------------------------------------------
  34544. +m4_define([lt_decl_dquote_varnames],
  34545. +[_lt_decl_filter([value], [2], $@)])
  34546. +
  34547. +
  34548. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  34549. +# ---------------------------------------------------
  34550. +m4_define([lt_decl_varnames_tagged],
  34551. +[m4_assert([$# <= 2])dnl
  34552. +_$0(m4_quote(m4_default([$1], [[, ]])),
  34553. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  34554. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  34555. +m4_define([_lt_decl_varnames_tagged],
  34556. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  34557. +
  34558. +
  34559. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  34560. +# ------------------------------------------------
  34561. +m4_define([lt_decl_all_varnames],
  34562. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  34563. + m4_if([$2], [],
  34564. + m4_quote(lt_decl_varnames),
  34565. + m4_quote(m4_shift($@))))[]dnl
  34566. +])
  34567. +m4_define([_lt_decl_all_varnames],
  34568. +[lt_join($@, lt_decl_varnames_tagged([$1],
  34569. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  34570. +])
  34571. +
  34572. +
  34573. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  34574. +# ------------------------------------
  34575. +# Quote a variable value, and forward it to `config.status' so that its
  34576. +# declaration there will have the same value as in `configure'. VARNAME
  34577. +# must have a single quote delimited value for this to work.
  34578. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  34579. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  34580. +
  34581. +
  34582. +# _LT_CONFIG_STATUS_DECLARATIONS
  34583. +# ------------------------------
  34584. +# We delimit libtool config variables with single quotes, so when
  34585. +# we write them to config.status, we have to be sure to quote all
  34586. +# embedded single quotes properly. In configure, this macro expands
  34587. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  34588. +#
  34589. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  34590. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  34591. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  34592. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  34593. +
  34594. +
  34595. +# _LT_LIBTOOL_TAGS
  34596. +# ----------------
  34597. +# Output comment and list of tags supported by the script
  34598. +m4_defun([_LT_LIBTOOL_TAGS],
  34599. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  34600. +available_tags="_LT_TAGS"dnl
  34601. +])
  34602. +
  34603. +
  34604. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  34605. +# -----------------------------------
  34606. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  34607. +# expand to a commented shell variable setting:
  34608. +#
  34609. +# # Some comment about what VAR is for.
  34610. +# visible_name=$lt_internal_name
  34611. +m4_define([_LT_LIBTOOL_DECLARE],
  34612. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  34613. + [description])))[]dnl
  34614. +m4_pushdef([_libtool_name],
  34615. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  34616. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  34617. + [0], [_libtool_name=[$]$1],
  34618. + [1], [_libtool_name=$lt_[]$1],
  34619. + [2], [_libtool_name=$lt_[]$1],
  34620. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  34621. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  34622. +])
  34623. +
  34624. +
  34625. +# _LT_LIBTOOL_CONFIG_VARS
  34626. +# -----------------------
  34627. +# Produce commented declarations of non-tagged libtool config variables
  34628. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  34629. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  34630. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  34631. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  34632. +[m4_foreach([_lt_var],
  34633. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  34634. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  34635. +
  34636. +
  34637. +# _LT_LIBTOOL_TAG_VARS(TAG)
  34638. +# -------------------------
  34639. +m4_define([_LT_LIBTOOL_TAG_VARS],
  34640. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  34641. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  34642. +
  34643. +
  34644. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  34645. +# ------------------------------
  34646. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  34647. +
  34648. +
  34649. +# _LT_CONFIG_COMMANDS
  34650. +# -------------------
  34651. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  34652. +# variables for single and double quote escaping we saved from calls
  34653. +# to _LT_DECL, we can put quote escaped variables declarations
  34654. +# into `config.status', and then the shell code to quote escape them in
  34655. +# for loops in `config.status'. Finally, any additional code accumulated
  34656. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  34657. +m4_defun([_LT_CONFIG_COMMANDS],
  34658. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  34659. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  34660. + dnl instead of duplicating it all over again into config.status,
  34661. + dnl then we will have config.status run $CONFIG_LT later, so it
  34662. + dnl needs to know what name is stored there:
  34663. + [AC_CONFIG_COMMANDS([libtool],
  34664. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  34665. + dnl If the libtool generation code is destined for config.status,
  34666. + dnl expand the accumulated commands and init code now:
  34667. + [AC_CONFIG_COMMANDS([libtool],
  34668. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  34669. +])#_LT_CONFIG_COMMANDS
  34670. +
  34671. +
  34672. +# Initialize.
  34673. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  34674. +[
  34675. +
  34676. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  34677. +# if CDPATH is set.
  34678. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  34679. +
  34680. +sed_quote_subst='$sed_quote_subst'
  34681. +double_quote_subst='$double_quote_subst'
  34682. +delay_variable_subst='$delay_variable_subst'
  34683. +_LT_CONFIG_STATUS_DECLARATIONS
  34684. +LTCC='$LTCC'
  34685. +LTCFLAGS='$LTCFLAGS'
  34686. +compiler='$compiler_DEFAULT'
  34687. +
  34688. +# Quote evaled strings.
  34689. +for var in lt_decl_all_varnames([[ \
  34690. +]], lt_decl_quote_varnames); do
  34691. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  34692. + *[[\\\\\\\`\\"\\\$]]*)
  34693. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  34694. + ;;
  34695. + *)
  34696. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  34697. + ;;
  34698. + esac
  34699. +done
  34700. +
  34701. +# Double-quote double-evaled strings.
  34702. +for var in lt_decl_all_varnames([[ \
  34703. +]], lt_decl_dquote_varnames); do
  34704. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  34705. + *[[\\\\\\\`\\"\\\$]]*)
  34706. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  34707. + ;;
  34708. + *)
  34709. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  34710. + ;;
  34711. + esac
  34712. +done
  34713. +
  34714. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  34715. +case \$lt_ECHO in
  34716. +*'\\\[$]0 --fallback-echo"')dnl "
  34717. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  34718. + ;;
  34719. +esac
  34720. +
  34721. +_LT_OUTPUT_LIBTOOL_INIT
  34722. +])
  34723. +
  34724. +
  34725. +# LT_OUTPUT
  34726. +# ---------
  34727. +# This macro allows early generation of the libtool script (before
  34728. +# AC_OUTPUT is called), incase it is used in configure for compilation
  34729. +# tests.
  34730. +AC_DEFUN([LT_OUTPUT],
  34731. +[: ${CONFIG_LT=./config.lt}
  34732. +AC_MSG_NOTICE([creating $CONFIG_LT])
  34733. +cat >"$CONFIG_LT" <<_LTEOF
  34734. +#! $SHELL
  34735. +# Generated by $as_me.
  34736. +# Run this file to recreate a libtool stub with the current configuration.
  34737. +
  34738. +lt_cl_silent=false
  34739. +SHELL=\${CONFIG_SHELL-$SHELL}
  34740. +_LTEOF
  34741. +
  34742. +cat >>"$CONFIG_LT" <<\_LTEOF
  34743. +AS_SHELL_SANITIZE
  34744. +_AS_PREPARE
  34745. +
  34746. +exec AS_MESSAGE_FD>&1
  34747. +exec AS_MESSAGE_LOG_FD>>config.log
  34748. +{
  34749. + echo
  34750. + AS_BOX([Running $as_me.])
  34751. +} >&AS_MESSAGE_LOG_FD
  34752. +
  34753. +lt_cl_help="\
  34754. +\`$as_me' creates a local libtool stub from the current configuration,
  34755. +for use in further configure time tests before the real libtool is
  34756. +generated.
  34757. +
  34758. +Usage: $[0] [[OPTIONS]]
  34759. +
  34760. + -h, --help print this help, then exit
  34761. + -V, --version print version number, then exit
  34762. + -q, --quiet do not print progress messages
  34763. + -d, --debug don't remove temporary files
  34764. +
  34765. +Report bugs to <bug-libtool@gnu.org>."
  34766. +
  34767. +lt_cl_version="\
  34768. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  34769. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  34770. +configured by $[0], generated by m4_PACKAGE_STRING.
  34771. +
  34772. +Copyright (C) 2008 Free Software Foundation, Inc.
  34773. +This config.lt script is free software; the Free Software Foundation
  34774. +gives unlimited permision to copy, distribute and modify it."
  34775. +
  34776. +while test $[#] != 0
  34777. +do
  34778. + case $[1] in
  34779. + --version | --v* | -V )
  34780. + echo "$lt_cl_version"; exit 0 ;;
  34781. + --help | --h* | -h )
  34782. + echo "$lt_cl_help"; exit 0 ;;
  34783. + --debug | --d* | -d )
  34784. + debug=: ;;
  34785. + --quiet | --q* | --silent | --s* | -q )
  34786. + lt_cl_silent=: ;;
  34787. +
  34788. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  34789. +Try \`$[0] --help' for more information.]) ;;
  34790. +
  34791. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  34792. +Try \`$[0] --help' for more information.]) ;;
  34793. + esac
  34794. + shift
  34795. +done
  34796. +
  34797. +if $lt_cl_silent; then
  34798. + exec AS_MESSAGE_FD>/dev/null
  34799. +fi
  34800. +_LTEOF
  34801. +
  34802. +cat >>"$CONFIG_LT" <<_LTEOF
  34803. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  34804. +_LTEOF
  34805. +
  34806. +cat >>"$CONFIG_LT" <<\_LTEOF
  34807. +AC_MSG_NOTICE([creating $ofile])
  34808. +_LT_OUTPUT_LIBTOOL_COMMANDS
  34809. +AS_EXIT(0)
  34810. +_LTEOF
  34811. +chmod +x "$CONFIG_LT"
  34812. +
  34813. +# configure is writing to config.log, but config.lt does its own redirection,
  34814. +# appending to config.log, which fails on DOS, as config.log is still kept
  34815. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  34816. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  34817. +if test "$no_create" != yes; then
  34818. + lt_cl_success=:
  34819. + test "$silent" = yes &&
  34820. + lt_config_lt_args="$lt_config_lt_args --quiet"
  34821. + exec AS_MESSAGE_LOG_FD>/dev/null
  34822. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  34823. + exec AS_MESSAGE_LOG_FD>>config.log
  34824. + $lt_cl_success || AS_EXIT(1)
  34825. +fi
  34826. +])# LT_OUTPUT
  34827. +
  34828. +
  34829. +# _LT_CONFIG(TAG)
  34830. +# ---------------
  34831. +# If TAG is the built-in tag, create an initial libtool script with a
  34832. +# default configuration from the untagged config vars. Otherwise add code
  34833. +# to config.status for appending the configuration named by TAG from the
  34834. +# matching tagged config vars.
  34835. +m4_defun([_LT_CONFIG],
  34836. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  34837. +_LT_CONFIG_SAVE_COMMANDS([
  34838. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  34839. + m4_if(_LT_TAG, [C], [
  34840. + # See if we are running on zsh, and set the options which allow our
  34841. + # commands through without removal of \ escapes.
  34842. + if test -n "${ZSH_VERSION+set}" ; then
  34843. + setopt NO_GLOB_SUBST
  34844. + fi
  34845. +
  34846. + cfgfile="${ofile}T"
  34847. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  34848. + $RM "$cfgfile"
  34849. +
  34850. + cat <<_LT_EOF >> "$cfgfile"
  34851. +#! $SHELL
  34852. +
  34853. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  34854. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  34855. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  34856. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  34857. +#
  34858. +_LT_COPYING
  34859. +_LT_LIBTOOL_TAGS
  34860. +
  34861. +# ### BEGIN LIBTOOL CONFIG
  34862. +_LT_LIBTOOL_CONFIG_VARS
  34863. +_LT_LIBTOOL_TAG_VARS
  34864. +# ### END LIBTOOL CONFIG
  34865. +
  34866. +_LT_EOF
  34867. +
  34868. + case $host_os in
  34869. + aix3*)
  34870. + cat <<\_LT_EOF >> "$cfgfile"
  34871. +# AIX sometimes has problems with the GCC collect2 program. For some
  34872. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  34873. +# vanish in a puff of smoke.
  34874. +if test "X${COLLECT_NAMES+set}" != Xset; then
  34875. + COLLECT_NAMES=
  34876. + export COLLECT_NAMES
  34877. +fi
  34878. +_LT_EOF
  34879. + ;;
  34880. + esac
  34881. +
  34882. + _LT_PROG_LTMAIN
  34883. +
  34884. + # We use sed instead of cat because bash on DJGPP gets confused if
  34885. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  34886. + # text mode, it properly converts lines to CR/LF. This bash problem
  34887. + # is reportedly fixed, but why not run on old versions too?
  34888. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  34889. + || (rm -f "$cfgfile"; exit 1)
  34890. +
  34891. + _LT_PROG_XSI_SHELLFNS
  34892. +
  34893. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  34894. + || (rm -f "$cfgfile"; exit 1)
  34895. +
  34896. + mv -f "$cfgfile" "$ofile" ||
  34897. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  34898. + chmod +x "$ofile"
  34899. +],
  34900. +[cat <<_LT_EOF >> "$ofile"
  34901. +
  34902. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  34903. +dnl in a comment (ie after a #).
  34904. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  34905. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  34906. +# ### END LIBTOOL TAG CONFIG: $1
  34907. +_LT_EOF
  34908. +])dnl /m4_if
  34909. +],
  34910. +[m4_if([$1], [], [
  34911. + PACKAGE='$PACKAGE'
  34912. + VERSION='$VERSION'
  34913. + TIMESTAMP='$TIMESTAMP'
  34914. + RM='$RM'
  34915. + ofile='$ofile'], [])
  34916. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  34917. +])# _LT_CONFIG
  34918. +
  34919. +
  34920. +# LT_SUPPORTED_TAG(TAG)
  34921. +# ---------------------
  34922. +# Trace this macro to discover what tags are supported by the libtool
  34923. +# --tag option, using:
  34924. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  34925. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  34926. +
  34927. +
  34928. +# C support is built-in for now
  34929. +m4_define([_LT_LANG_C_enabled], [])
  34930. +m4_define([_LT_TAGS], [])
  34931. +
  34932. +
  34933. +# LT_LANG(LANG)
  34934. +# -------------
  34935. +# Enable libtool support for the given language if not already enabled.
  34936. +AC_DEFUN([LT_LANG],
  34937. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  34938. +m4_case([$1],
  34939. + [C], [_LT_LANG(C)],
  34940. + [C++], [_LT_LANG(CXX)],
  34941. + [Java], [_LT_LANG(GCJ)],
  34942. + [Fortran 77], [_LT_LANG(F77)],
  34943. + [Fortran], [_LT_LANG(FC)],
  34944. + [Windows Resource], [_LT_LANG(RC)],
  34945. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  34946. + [_LT_LANG($1)],
  34947. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  34948. +])# LT_LANG
  34949. +
  34950. +
  34951. +# _LT_LANG(LANGNAME)
  34952. +# ------------------
  34953. +m4_defun([_LT_LANG],
  34954. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  34955. + [LT_SUPPORTED_TAG([$1])dnl
  34956. + m4_append([_LT_TAGS], [$1 ])dnl
  34957. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  34958. + _LT_LANG_$1_CONFIG($1)])dnl
  34959. +])# _LT_LANG
  34960. +
  34961. +
  34962. +# _LT_LANG_DEFAULT_CONFIG
  34963. +# -----------------------
  34964. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  34965. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  34966. + [LT_LANG(CXX)],
  34967. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  34968. +
  34969. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  34970. + [LT_LANG(F77)],
  34971. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  34972. +
  34973. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  34974. + [LT_LANG(FC)],
  34975. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  34976. +
  34977. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  34978. +dnl pulling things in needlessly.
  34979. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  34980. + [LT_LANG(GCJ)],
  34981. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  34982. + [LT_LANG(GCJ)],
  34983. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  34984. + [LT_LANG(GCJ)],
  34985. + [m4_ifdef([AC_PROG_GCJ],
  34986. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  34987. + m4_ifdef([A][M_PROG_GCJ],
  34988. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  34989. + m4_ifdef([LT_PROG_GCJ],
  34990. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  34991. +
  34992. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  34993. + [LT_LANG(RC)],
  34994. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  34995. +])# _LT_LANG_DEFAULT_CONFIG
  34996. +
  34997. +# Obsolete macros:
  34998. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  34999. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  35000. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  35001. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  35002. +dnl aclocal-1.4 backwards compatibility:
  35003. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  35004. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  35005. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  35006. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  35007. +
  35008. +
  35009. +# _LT_TAG_COMPILER
  35010. +# ----------------
  35011. +m4_defun([_LT_TAG_COMPILER],
  35012. +[AC_REQUIRE([AC_PROG_CC])dnl
  35013. +
  35014. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  35015. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  35016. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  35017. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  35018. +
  35019. +# If no C compiler was specified, use CC.
  35020. +LTCC=${LTCC-"$CC"}
  35021. +
  35022. +# If no C compiler flags were specified, use CFLAGS.
  35023. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  35024. +
  35025. +# Allow CC to be a program name with arguments.
  35026. +compiler=$CC
  35027. +])# _LT_TAG_COMPILER
  35028. +
  35029. +
  35030. +# _LT_COMPILER_BOILERPLATE
  35031. +# ------------------------
  35032. +# Check for compiler boilerplate output or warnings with
  35033. +# the simple compiler test code.
  35034. +m4_defun([_LT_COMPILER_BOILERPLATE],
  35035. +[m4_require([_LT_DECL_SED])dnl
  35036. +ac_outfile=conftest.$ac_objext
  35037. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  35038. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  35039. +_lt_compiler_boilerplate=`cat conftest.err`
  35040. +$RM conftest*
  35041. +])# _LT_COMPILER_BOILERPLATE
  35042. +
  35043. +
  35044. +# _LT_LINKER_BOILERPLATE
  35045. +# ----------------------
  35046. +# Check for linker boilerplate output or warnings with
  35047. +# the simple link test code.
  35048. +m4_defun([_LT_LINKER_BOILERPLATE],
  35049. +[m4_require([_LT_DECL_SED])dnl
  35050. +ac_outfile=conftest.$ac_objext
  35051. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  35052. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  35053. +_lt_linker_boilerplate=`cat conftest.err`
  35054. +$RM -r conftest*
  35055. +])# _LT_LINKER_BOILERPLATE
  35056. +
  35057. +# _LT_REQUIRED_DARWIN_CHECKS
  35058. +# -------------------------
  35059. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  35060. + case $host_os in
  35061. + rhapsody* | darwin*)
  35062. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  35063. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  35064. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  35065. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  35066. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  35067. + _LT_DECL([], [DSYMUTIL], [1],
  35068. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  35069. + _LT_DECL([], [NMEDIT], [1],
  35070. + [Tool to change global to local symbols on Mac OS X])
  35071. + _LT_DECL([], [LIPO], [1],
  35072. + [Tool to manipulate fat objects and archives on Mac OS X])
  35073. + _LT_DECL([], [OTOOL], [1],
  35074. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  35075. + _LT_DECL([], [OTOOL64], [1],
  35076. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  35077. +
  35078. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  35079. + [lt_cv_apple_cc_single_mod=no
  35080. + if test -z "${LT_MULTI_MODULE}"; then
  35081. + # By default we will add the -single_module flag. You can override
  35082. + # by either setting the environment variable LT_MULTI_MODULE
  35083. + # non-empty at configure time, or by adding -multi_module to the
  35084. + # link flags.
  35085. + rm -rf libconftest.dylib*
  35086. + echo "int foo(void){return 1;}" > conftest.c
  35087. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  35088. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  35089. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  35090. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  35091. + _lt_result=$?
  35092. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  35093. + lt_cv_apple_cc_single_mod=yes
  35094. + else
  35095. + cat conftest.err >&AS_MESSAGE_LOG_FD
  35096. + fi
  35097. + rm -rf libconftest.dylib*
  35098. + rm -f conftest.*
  35099. + fi])
  35100. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  35101. + [lt_cv_ld_exported_symbols_list],
  35102. + [lt_cv_ld_exported_symbols_list=no
  35103. + save_LDFLAGS=$LDFLAGS
  35104. + echo "_main" > conftest.sym
  35105. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  35106. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  35107. + [lt_cv_ld_exported_symbols_list=yes],
  35108. + [lt_cv_ld_exported_symbols_list=no])
  35109. + LDFLAGS="$save_LDFLAGS"
  35110. + ])
  35111. + case $host_os in
  35112. + rhapsody* | darwin1.[[012]])
  35113. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  35114. + darwin1.*)
  35115. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  35116. + darwin*) # darwin 5.x on
  35117. + # if running on 10.5 or later, the deployment target defaults
  35118. + # to the OS version, if on x86, and 10.4, the deployment
  35119. + # target defaults to 10.4. Don't you love it?
  35120. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  35121. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  35122. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  35123. + 10.[[012]]*)
  35124. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  35125. + 10.*)
  35126. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  35127. + esac
  35128. + ;;
  35129. + esac
  35130. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  35131. + _lt_dar_single_mod='$single_module'
  35132. + fi
  35133. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  35134. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  35135. + else
  35136. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  35137. + fi
  35138. + if test "$DSYMUTIL" != ":"; then
  35139. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  35140. + else
  35141. + _lt_dsymutil=
  35142. + fi
  35143. + ;;
  35144. + esac
  35145. +])
  35146. +
  35147. +
  35148. +# _LT_DARWIN_LINKER_FEATURES
  35149. +# --------------------------
  35150. +# Checks for linker and compiler features on darwin
  35151. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  35152. +[
  35153. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  35154. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  35155. + _LT_TAGVAR(hardcode_direct, $1)=no
  35156. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  35157. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  35158. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  35159. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  35160. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  35161. + case $cc_basename in
  35162. + ifort*) _lt_dar_can_shared=yes ;;
  35163. + *) _lt_dar_can_shared=$GCC ;;
  35164. + esac
  35165. + if test "$_lt_dar_can_shared" = "yes"; then
  35166. + output_verbose_link_cmd=echo
  35167. + _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}"
  35168. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  35169. + _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}"
  35170. + _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}"
  35171. + m4_if([$1], [CXX],
  35172. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  35173. + _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}"
  35174. + _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}"
  35175. + fi
  35176. +],[])
  35177. + else
  35178. + _LT_TAGVAR(ld_shlibs, $1)=no
  35179. + fi
  35180. +])
  35181. +
  35182. +# _LT_SYS_MODULE_PATH_AIX
  35183. +# -----------------------
  35184. +# Links a minimal program and checks the executable
  35185. +# for the system default hardcoded library path. In most cases,
  35186. +# this is /usr/lib:/lib, but when the MPI compilers are used
  35187. +# the location of the communication and MPI libs are included too.
  35188. +# If we don't find anything, use the default library path according
  35189. +# to the aix ld manual.
  35190. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  35191. +[m4_require([_LT_DECL_SED])dnl
  35192. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  35193. +lt_aix_libpath_sed='
  35194. + /Import File Strings/,/^$/ {
  35195. + /^0/ {
  35196. + s/^0 *\(.*\)$/\1/
  35197. + p
  35198. + }
  35199. + }'
  35200. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35201. +# Check for a 64-bit object if we didn't find anything.
  35202. +if test -z "$aix_libpath"; then
  35203. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35204. +fi],[])
  35205. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35206. +])# _LT_SYS_MODULE_PATH_AIX
  35207. +
  35208. +
  35209. +# _LT_SHELL_INIT(ARG)
  35210. +# -------------------
  35211. +m4_define([_LT_SHELL_INIT],
  35212. +[ifdef([AC_DIVERSION_NOTICE],
  35213. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  35214. + [AC_DIVERT_PUSH(NOTICE)])
  35215. +$1
  35216. +AC_DIVERT_POP
  35217. +])# _LT_SHELL_INIT
  35218. +
  35219. +
  35220. +# _LT_PROG_ECHO_BACKSLASH
  35221. +# -----------------------
  35222. +# Add some code to the start of the generated configure script which
  35223. +# will find an echo command which doesn't interpret backslashes.
  35224. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  35225. +[_LT_SHELL_INIT([
  35226. +# Check that we are running under the correct shell.
  35227. +SHELL=${CONFIG_SHELL-/bin/sh}
  35228. +
  35229. +case X$lt_ECHO in
  35230. +X*--fallback-echo)
  35231. + # Remove one level of quotation (which was required for Make).
  35232. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  35233. + ;;
  35234. +esac
  35235. +
  35236. +ECHO=${lt_ECHO-echo}
  35237. +if test "X[$]1" = X--no-reexec; then
  35238. + # Discard the --no-reexec flag, and continue.
  35239. + shift
  35240. +elif test "X[$]1" = X--fallback-echo; then
  35241. + # Avoid inline document here, it may be left over
  35242. + :
  35243. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  35244. + # Yippee, $ECHO works!
  35245. + :
  35246. +else
  35247. + # Restart under the correct shell.
  35248. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  35249. +fi
  35250. +
  35251. +if test "X[$]1" = X--fallback-echo; then
  35252. + # used as fallback echo
  35253. + shift
  35254. + cat <<_LT_EOF
  35255. +[$]*
  35256. +_LT_EOF
  35257. + exit 0
  35258. +fi
  35259. +
  35260. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  35261. +# if CDPATH is set.
  35262. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  35263. +
  35264. +if test -z "$lt_ECHO"; then
  35265. + if test "X${echo_test_string+set}" != Xset; then
  35266. + # find a string as large as possible, as long as the shell can cope with it
  35267. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  35268. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  35269. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  35270. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  35271. + then
  35272. + break
  35273. + fi
  35274. + done
  35275. + fi
  35276. +
  35277. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  35278. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  35279. + test "X$echo_testing_string" = "X$echo_test_string"; then
  35280. + :
  35281. + else
  35282. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  35283. + # backslashes. This makes it impossible to quote backslashes using
  35284. + # echo "$something" | sed 's/\\/\\\\/g'
  35285. + #
  35286. + # So, first we look for a working echo in the user's PATH.
  35287. +
  35288. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  35289. + for dir in $PATH /usr/ucb; do
  35290. + IFS="$lt_save_ifs"
  35291. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  35292. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  35293. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  35294. + test "X$echo_testing_string" = "X$echo_test_string"; then
  35295. + ECHO="$dir/echo"
  35296. + break
  35297. + fi
  35298. + done
  35299. + IFS="$lt_save_ifs"
  35300. +
  35301. + if test "X$ECHO" = Xecho; then
  35302. + # We didn't find a better echo, so look for alternatives.
  35303. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  35304. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  35305. + test "X$echo_testing_string" = "X$echo_test_string"; then
  35306. + # This shell has a builtin print -r that does the trick.
  35307. + ECHO='print -r'
  35308. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  35309. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  35310. + # If we have ksh, try running configure again with it.
  35311. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  35312. + export ORIGINAL_CONFIG_SHELL
  35313. + CONFIG_SHELL=/bin/ksh
  35314. + export CONFIG_SHELL
  35315. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  35316. + else
  35317. + # Try using printf.
  35318. + ECHO='printf %s\n'
  35319. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  35320. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  35321. + test "X$echo_testing_string" = "X$echo_test_string"; then
  35322. + # Cool, printf works
  35323. + :
  35324. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  35325. + test "X$echo_testing_string" = 'X\t' &&
  35326. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  35327. + test "X$echo_testing_string" = "X$echo_test_string"; then
  35328. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  35329. + export CONFIG_SHELL
  35330. + SHELL="$CONFIG_SHELL"
  35331. + export SHELL
  35332. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  35333. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  35334. + test "X$echo_testing_string" = 'X\t' &&
  35335. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  35336. + test "X$echo_testing_string" = "X$echo_test_string"; then
  35337. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  35338. + else
  35339. + # maybe with a smaller string...
  35340. + prev=:
  35341. +
  35342. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  35343. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  35344. + then
  35345. + break
  35346. + fi
  35347. + prev="$cmd"
  35348. + done
  35349. +
  35350. + if test "$prev" != 'sed 50q "[$]0"'; then
  35351. + echo_test_string=`eval $prev`
  35352. + export echo_test_string
  35353. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  35354. + else
  35355. + # Oops. We lost completely, so just stick with echo.
  35356. + ECHO=echo
  35357. + fi
  35358. + fi
  35359. + fi
  35360. + fi
  35361. + fi
  35362. +fi
  35363. +
  35364. +# Copy echo and quote the copy suitably for passing to libtool from
  35365. +# the Makefile, instead of quoting the original, which is used later.
  35366. +lt_ECHO=$ECHO
  35367. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  35368. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  35369. +fi
  35370. +
  35371. +AC_SUBST(lt_ECHO)
  35372. +])
  35373. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  35374. +_LT_DECL([], [ECHO], [1],
  35375. + [An echo program that does not interpret backslashes])
  35376. +])# _LT_PROG_ECHO_BACKSLASH
  35377. +
  35378. +
  35379. +# _LT_ENABLE_LOCK
  35380. +# ---------------
  35381. +m4_defun([_LT_ENABLE_LOCK],
  35382. +[AC_ARG_ENABLE([libtool-lock],
  35383. + [AS_HELP_STRING([--disable-libtool-lock],
  35384. + [avoid locking (might break parallel builds)])])
  35385. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  35386. +
  35387. +# Some flags need to be propagated to the compiler or linker for good
  35388. +# libtool support.
  35389. +case $host in
  35390. +ia64-*-hpux*)
  35391. + # Find out which ABI we are using.
  35392. + echo 'int i;' > conftest.$ac_ext
  35393. + if AC_TRY_EVAL(ac_compile); then
  35394. + case `/usr/bin/file conftest.$ac_objext` in
  35395. + *ELF-32*)
  35396. + HPUX_IA64_MODE="32"
  35397. + ;;
  35398. + *ELF-64*)
  35399. + HPUX_IA64_MODE="64"
  35400. + ;;
  35401. + esac
  35402. + fi
  35403. + rm -rf conftest*
  35404. + ;;
  35405. +*-*-irix6*)
  35406. + # Find out which ABI we are using.
  35407. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  35408. + if AC_TRY_EVAL(ac_compile); then
  35409. + if test "$lt_cv_prog_gnu_ld" = yes; then
  35410. + case `/usr/bin/file conftest.$ac_objext` in
  35411. + *32-bit*)
  35412. + LD="${LD-ld} -melf32bsmip"
  35413. + ;;
  35414. + *N32*)
  35415. + LD="${LD-ld} -melf32bmipn32"
  35416. + ;;
  35417. + *64-bit*)
  35418. + LD="${LD-ld} -melf64bmip"
  35419. + ;;
  35420. + esac
  35421. + else
  35422. + case `/usr/bin/file conftest.$ac_objext` in
  35423. + *32-bit*)
  35424. + LD="${LD-ld} -32"
  35425. + ;;
  35426. + *N32*)
  35427. + LD="${LD-ld} -n32"
  35428. + ;;
  35429. + *64-bit*)
  35430. + LD="${LD-ld} -64"
  35431. + ;;
  35432. + esac
  35433. + fi
  35434. + fi
  35435. + rm -rf conftest*
  35436. + ;;
  35437. +
  35438. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  35439. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  35440. + # Find out which ABI we are using.
  35441. + echo 'int i;' > conftest.$ac_ext
  35442. + if AC_TRY_EVAL(ac_compile); then
  35443. + case `/usr/bin/file conftest.o` in
  35444. + *32-bit*)
  35445. + case $host in
  35446. + x86_64-*kfreebsd*-gnu)
  35447. + LD="${LD-ld} -m elf_i386_fbsd"
  35448. + ;;
  35449. + x86_64-*linux*)
  35450. + LD="${LD-ld} -m elf_i386"
  35451. + ;;
  35452. + ppc64-*linux*|powerpc64-*linux*)
  35453. + LD="${LD-ld} -m elf32ppclinux"
  35454. + ;;
  35455. + s390x-*linux*)
  35456. + LD="${LD-ld} -m elf_s390"
  35457. + ;;
  35458. + sparc64-*linux*)
  35459. + LD="${LD-ld} -m elf32_sparc"
  35460. + ;;
  35461. + esac
  35462. + ;;
  35463. + *64-bit*)
  35464. + case $host in
  35465. + x86_64-*kfreebsd*-gnu)
  35466. + LD="${LD-ld} -m elf_x86_64_fbsd"
  35467. + ;;
  35468. + x86_64-*linux*)
  35469. + LD="${LD-ld} -m elf_x86_64"
  35470. + ;;
  35471. + ppc*-*linux*|powerpc*-*linux*)
  35472. + LD="${LD-ld} -m elf64ppc"
  35473. + ;;
  35474. + s390*-*linux*|s390*-*tpf*)
  35475. + LD="${LD-ld} -m elf64_s390"
  35476. + ;;
  35477. + sparc*-*linux*)
  35478. + LD="${LD-ld} -m elf64_sparc"
  35479. + ;;
  35480. + esac
  35481. + ;;
  35482. + esac
  35483. + fi
  35484. + rm -rf conftest*
  35485. + ;;
  35486. +
  35487. +*-*-sco3.2v5*)
  35488. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  35489. + SAVE_CFLAGS="$CFLAGS"
  35490. + CFLAGS="$CFLAGS -belf"
  35491. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  35492. + [AC_LANG_PUSH(C)
  35493. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  35494. + AC_LANG_POP])
  35495. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  35496. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  35497. + CFLAGS="$SAVE_CFLAGS"
  35498. + fi
  35499. + ;;
  35500. +sparc*-*solaris*)
  35501. + # Find out which ABI we are using.
  35502. + echo 'int i;' > conftest.$ac_ext
  35503. + if AC_TRY_EVAL(ac_compile); then
  35504. + case `/usr/bin/file conftest.o` in
  35505. + *64-bit*)
  35506. + case $lt_cv_prog_gnu_ld in
  35507. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  35508. + *)
  35509. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  35510. + LD="${LD-ld} -64"
  35511. + fi
  35512. + ;;
  35513. + esac
  35514. + ;;
  35515. + esac
  35516. + fi
  35517. + rm -rf conftest*
  35518. + ;;
  35519. +esac
  35520. +
  35521. +need_locks="$enable_libtool_lock"
  35522. +])# _LT_ENABLE_LOCK
  35523. +
  35524. +
  35525. +# _LT_CMD_OLD_ARCHIVE
  35526. +# -------------------
  35527. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  35528. +[AC_CHECK_TOOL(AR, ar, false)
  35529. +test -z "$AR" && AR=ar
  35530. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  35531. +_LT_DECL([], [AR], [1], [The archiver])
  35532. +_LT_DECL([], [AR_FLAGS], [1])
  35533. +
  35534. +AC_CHECK_TOOL(STRIP, strip, :)
  35535. +test -z "$STRIP" && STRIP=:
  35536. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  35537. +
  35538. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  35539. +test -z "$RANLIB" && RANLIB=:
  35540. +_LT_DECL([], [RANLIB], [1],
  35541. + [Commands used to install an old-style archive])
  35542. +
  35543. +# Determine commands to create old-style static archives.
  35544. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  35545. +old_postinstall_cmds='chmod 644 $oldlib'
  35546. +old_postuninstall_cmds=
  35547. +
  35548. +if test -n "$RANLIB"; then
  35549. + case $host_os in
  35550. + openbsd*)
  35551. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  35552. + ;;
  35553. + *)
  35554. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  35555. + ;;
  35556. + esac
  35557. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  35558. +fi
  35559. +_LT_DECL([], [old_postinstall_cmds], [2])
  35560. +_LT_DECL([], [old_postuninstall_cmds], [2])
  35561. +_LT_TAGDECL([], [old_archive_cmds], [2],
  35562. + [Commands used to build an old-style archive])
  35563. +])# _LT_CMD_OLD_ARCHIVE
  35564. +
  35565. +
  35566. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  35567. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  35568. +# ----------------------------------------------------------------
  35569. +# Check whether the given compiler option works
  35570. +AC_DEFUN([_LT_COMPILER_OPTION],
  35571. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  35572. +m4_require([_LT_DECL_SED])dnl
  35573. +AC_CACHE_CHECK([$1], [$2],
  35574. + [$2=no
  35575. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  35576. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  35577. + lt_compiler_flag="$3"
  35578. + # Insert the option either (1) after the last *FLAGS variable, or
  35579. + # (2) before a word containing "conftest.", or (3) at the end.
  35580. + # Note that $ac_compile itself does not contain backslashes and begins
  35581. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  35582. + # The option is referenced via a variable to avoid confusing sed.
  35583. + lt_compile=`echo "$ac_compile" | $SED \
  35584. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  35585. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  35586. + -e 's:$: $lt_compiler_flag:'`
  35587. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  35588. + (eval "$lt_compile" 2>conftest.err)
  35589. + ac_status=$?
  35590. + cat conftest.err >&AS_MESSAGE_LOG_FD
  35591. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  35592. + if (exit $ac_status) && test -s "$ac_outfile"; then
  35593. + # The compiler can only warn and ignore the option if not recognized
  35594. + # So say no if there are warnings other than the usual output.
  35595. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  35596. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  35597. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  35598. + $2=yes
  35599. + fi
  35600. + fi
  35601. + $RM conftest*
  35602. +])
  35603. +
  35604. +if test x"[$]$2" = xyes; then
  35605. + m4_if([$5], , :, [$5])
  35606. +else
  35607. + m4_if([$6], , :, [$6])
  35608. +fi
  35609. +])# _LT_COMPILER_OPTION
  35610. +
  35611. +# Old name:
  35612. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  35613. +dnl aclocal-1.4 backwards compatibility:
  35614. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  35615. +
  35616. +
  35617. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  35618. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  35619. +# ----------------------------------------------------
  35620. +# Check whether the given linker option works
  35621. +AC_DEFUN([_LT_LINKER_OPTION],
  35622. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  35623. +m4_require([_LT_DECL_SED])dnl
  35624. +AC_CACHE_CHECK([$1], [$2],
  35625. + [$2=no
  35626. + save_LDFLAGS="$LDFLAGS"
  35627. + LDFLAGS="$LDFLAGS $3"
  35628. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  35629. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  35630. + # The linker can only warn and ignore the option if not recognized
  35631. + # So say no if there are warnings
  35632. + if test -s conftest.err; then
  35633. + # Append any errors to the config.log.
  35634. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  35635. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  35636. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  35637. + if diff conftest.exp conftest.er2 >/dev/null; then
  35638. + $2=yes
  35639. + fi
  35640. + else
  35641. + $2=yes
  35642. + fi
  35643. + fi
  35644. + $RM -r conftest*
  35645. + LDFLAGS="$save_LDFLAGS"
  35646. +])
  35647. +
  35648. +if test x"[$]$2" = xyes; then
  35649. + m4_if([$4], , :, [$4])
  35650. +else
  35651. + m4_if([$5], , :, [$5])
  35652. +fi
  35653. +])# _LT_LINKER_OPTION
  35654. +
  35655. +# Old name:
  35656. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  35657. +dnl aclocal-1.4 backwards compatibility:
  35658. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  35659. +
  35660. +
  35661. +# LT_CMD_MAX_LEN
  35662. +#---------------
  35663. +AC_DEFUN([LT_CMD_MAX_LEN],
  35664. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  35665. +# find the maximum length of command line arguments
  35666. +AC_MSG_CHECKING([the maximum length of command line arguments])
  35667. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  35668. + i=0
  35669. + teststring="ABCD"
  35670. +
  35671. + case $build_os in
  35672. + msdosdjgpp*)
  35673. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  35674. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  35675. + # during glob expansion). Even if it were fixed, the result of this
  35676. + # check would be larger than it should be.
  35677. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  35678. + ;;
  35679. +
  35680. + gnu*)
  35681. + # Under GNU Hurd, this test is not required because there is
  35682. + # no limit to the length of command line arguments.
  35683. + # Libtool will interpret -1 as no limit whatsoever
  35684. + lt_cv_sys_max_cmd_len=-1;
  35685. + ;;
  35686. +
  35687. + cygwin* | mingw* | cegcc*)
  35688. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  35689. + # about 5 minutes as the teststring grows exponentially.
  35690. + # Worse, since 9x/ME are not pre-emptively multitasking,
  35691. + # you end up with a "frozen" computer, even though with patience
  35692. + # the test eventually succeeds (with a max line length of 256k).
  35693. + # Instead, let's just punt: use the minimum linelength reported by
  35694. + # all of the supported platforms: 8192 (on NT/2K/XP).
  35695. + lt_cv_sys_max_cmd_len=8192;
  35696. + ;;
  35697. +
  35698. + amigaos*)
  35699. + # On AmigaOS with pdksh, this test takes hours, literally.
  35700. + # So we just punt and use a minimum line length of 8192.
  35701. + lt_cv_sys_max_cmd_len=8192;
  35702. + ;;
  35703. +
  35704. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  35705. + # This has been around since 386BSD, at least. Likely further.
  35706. + if test -x /sbin/sysctl; then
  35707. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  35708. + elif test -x /usr/sbin/sysctl; then
  35709. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  35710. + else
  35711. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  35712. + fi
  35713. + # And add a safety zone
  35714. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  35715. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  35716. + ;;
  35717. +
  35718. + interix*)
  35719. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  35720. + lt_cv_sys_max_cmd_len=196608
  35721. + ;;
  35722. +
  35723. + osf*)
  35724. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  35725. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  35726. + # nice to cause kernel panics so lets avoid the loop below.
  35727. + # First set a reasonable default.
  35728. + lt_cv_sys_max_cmd_len=16384
  35729. + #
  35730. + if test -x /sbin/sysconfig; then
  35731. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  35732. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  35733. + esac
  35734. + fi
  35735. + ;;
  35736. + sco3.2v5*)
  35737. + lt_cv_sys_max_cmd_len=102400
  35738. + ;;
  35739. + sysv5* | sco5v6* | sysv4.2uw2*)
  35740. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  35741. + if test -n "$kargmax"; then
  35742. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  35743. + else
  35744. + lt_cv_sys_max_cmd_len=32768
  35745. + fi
  35746. + ;;
  35747. + *)
  35748. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  35749. + if test -n "$lt_cv_sys_max_cmd_len"; then
  35750. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  35751. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  35752. + else
  35753. + # Make teststring a little bigger before we do anything with it.
  35754. + # a 1K string should be a reasonable start.
  35755. + for i in 1 2 3 4 5 6 7 8 ; do
  35756. + teststring=$teststring$teststring
  35757. + done
  35758. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  35759. + # If test is not a shell built-in, we'll probably end up computing a
  35760. + # maximum length that is only half of the actual maximum length, but
  35761. + # we can't tell.
  35762. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  35763. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  35764. + test $i != 17 # 1/2 MB should be enough
  35765. + do
  35766. + i=`expr $i + 1`
  35767. + teststring=$teststring$teststring
  35768. + done
  35769. + # Only check the string length outside the loop.
  35770. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  35771. + teststring=
  35772. + # Add a significant safety factor because C++ compilers can tack on
  35773. + # massive amounts of additional arguments before passing them to the
  35774. + # linker. It appears as though 1/2 is a usable value.
  35775. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  35776. + fi
  35777. + ;;
  35778. + esac
  35779. +])
  35780. +if test -n $lt_cv_sys_max_cmd_len ; then
  35781. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  35782. +else
  35783. + AC_MSG_RESULT(none)
  35784. +fi
  35785. +max_cmd_len=$lt_cv_sys_max_cmd_len
  35786. +_LT_DECL([], [max_cmd_len], [0],
  35787. + [What is the maximum length of a command?])
  35788. +])# LT_CMD_MAX_LEN
  35789. +
  35790. +# Old name:
  35791. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  35792. +dnl aclocal-1.4 backwards compatibility:
  35793. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  35794. +
  35795. +
  35796. +# _LT_HEADER_DLFCN
  35797. +# ----------------
  35798. +m4_defun([_LT_HEADER_DLFCN],
  35799. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  35800. +])# _LT_HEADER_DLFCN
  35801. +
  35802. +
  35803. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  35804. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  35805. +# ----------------------------------------------------------------
  35806. +m4_defun([_LT_TRY_DLOPEN_SELF],
  35807. +[m4_require([_LT_HEADER_DLFCN])dnl
  35808. +if test "$cross_compiling" = yes; then :
  35809. + [$4]
  35810. +else
  35811. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  35812. + lt_status=$lt_dlunknown
  35813. + cat > conftest.$ac_ext <<_LT_EOF
  35814. +[#line __oline__ "configure"
  35815. +#include "confdefs.h"
  35816. +
  35817. +#if HAVE_DLFCN_H
  35818. +#include <dlfcn.h>
  35819. +#endif
  35820. +
  35821. +#include <stdio.h>
  35822. +
  35823. +#ifdef RTLD_GLOBAL
  35824. +# define LT_DLGLOBAL RTLD_GLOBAL
  35825. +#else
  35826. +# ifdef DL_GLOBAL
  35827. +# define LT_DLGLOBAL DL_GLOBAL
  35828. +# else
  35829. +# define LT_DLGLOBAL 0
  35830. +# endif
  35831. +#endif
  35832. +
  35833. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  35834. + find out it does not work in some platform. */
  35835. +#ifndef LT_DLLAZY_OR_NOW
  35836. +# ifdef RTLD_LAZY
  35837. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  35838. +# else
  35839. +# ifdef DL_LAZY
  35840. +# define LT_DLLAZY_OR_NOW DL_LAZY
  35841. +# else
  35842. +# ifdef RTLD_NOW
  35843. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  35844. +# else
  35845. +# ifdef DL_NOW
  35846. +# define LT_DLLAZY_OR_NOW DL_NOW
  35847. +# else
  35848. +# define LT_DLLAZY_OR_NOW 0
  35849. +# endif
  35850. +# endif
  35851. +# endif
  35852. +# endif
  35853. +#endif
  35854. +
  35855. +void fnord() { int i=42;}
  35856. +int main ()
  35857. +{
  35858. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  35859. + int status = $lt_dlunknown;
  35860. +
  35861. + if (self)
  35862. + {
  35863. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  35864. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  35865. + /* dlclose (self); */
  35866. + }
  35867. + else
  35868. + puts (dlerror ());
  35869. +
  35870. + return status;
  35871. +}]
  35872. +_LT_EOF
  35873. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  35874. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  35875. + lt_status=$?
  35876. + case x$lt_status in
  35877. + x$lt_dlno_uscore) $1 ;;
  35878. + x$lt_dlneed_uscore) $2 ;;
  35879. + x$lt_dlunknown|x*) $3 ;;
  35880. + esac
  35881. + else :
  35882. + # compilation failed
  35883. + $3
  35884. + fi
  35885. +fi
  35886. +rm -fr conftest*
  35887. +])# _LT_TRY_DLOPEN_SELF
  35888. +
  35889. +
  35890. +# LT_SYS_DLOPEN_SELF
  35891. +# ------------------
  35892. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  35893. +[m4_require([_LT_HEADER_DLFCN])dnl
  35894. +if test "x$enable_dlopen" != xyes; then
  35895. + enable_dlopen=unknown
  35896. + enable_dlopen_self=unknown
  35897. + enable_dlopen_self_static=unknown
  35898. +else
  35899. + lt_cv_dlopen=no
  35900. + lt_cv_dlopen_libs=
  35901. +
  35902. + case $host_os in
  35903. + beos*)
  35904. + lt_cv_dlopen="load_add_on"
  35905. + lt_cv_dlopen_libs=
  35906. + lt_cv_dlopen_self=yes
  35907. + ;;
  35908. +
  35909. + mingw* | pw32* | cegcc*)
  35910. + lt_cv_dlopen="LoadLibrary"
  35911. + lt_cv_dlopen_libs=
  35912. + ;;
  35913. +
  35914. + cygwin*)
  35915. + lt_cv_dlopen="dlopen"
  35916. + lt_cv_dlopen_libs=
  35917. + ;;
  35918. +
  35919. + darwin*)
  35920. + # if libdl is installed we need to link against it
  35921. + AC_CHECK_LIB([dl], [dlopen],
  35922. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  35923. + lt_cv_dlopen="dyld"
  35924. + lt_cv_dlopen_libs=
  35925. + lt_cv_dlopen_self=yes
  35926. + ])
  35927. + ;;
  35928. +
  35929. + *)
  35930. + AC_CHECK_FUNC([shl_load],
  35931. + [lt_cv_dlopen="shl_load"],
  35932. + [AC_CHECK_LIB([dld], [shl_load],
  35933. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  35934. + [AC_CHECK_FUNC([dlopen],
  35935. + [lt_cv_dlopen="dlopen"],
  35936. + [AC_CHECK_LIB([dl], [dlopen],
  35937. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  35938. + [AC_CHECK_LIB([svld], [dlopen],
  35939. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  35940. + [AC_CHECK_LIB([dld], [dld_link],
  35941. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  35942. + ])
  35943. + ])
  35944. + ])
  35945. + ])
  35946. + ])
  35947. + ;;
  35948. + esac
  35949. +
  35950. + if test "x$lt_cv_dlopen" != xno; then
  35951. + enable_dlopen=yes
  35952. + else
  35953. + enable_dlopen=no
  35954. + fi
  35955. +
  35956. + case $lt_cv_dlopen in
  35957. + dlopen)
  35958. + save_CPPFLAGS="$CPPFLAGS"
  35959. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  35960. +
  35961. + save_LDFLAGS="$LDFLAGS"
  35962. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  35963. +
  35964. + save_LIBS="$LIBS"
  35965. + LIBS="$lt_cv_dlopen_libs $LIBS"
  35966. +
  35967. + AC_CACHE_CHECK([whether a program can dlopen itself],
  35968. + lt_cv_dlopen_self, [dnl
  35969. + _LT_TRY_DLOPEN_SELF(
  35970. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  35971. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  35972. + ])
  35973. +
  35974. + if test "x$lt_cv_dlopen_self" = xyes; then
  35975. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  35976. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  35977. + lt_cv_dlopen_self_static, [dnl
  35978. + _LT_TRY_DLOPEN_SELF(
  35979. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  35980. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  35981. + ])
  35982. + fi
  35983. +
  35984. + CPPFLAGS="$save_CPPFLAGS"
  35985. + LDFLAGS="$save_LDFLAGS"
  35986. + LIBS="$save_LIBS"
  35987. + ;;
  35988. + esac
  35989. +
  35990. + case $lt_cv_dlopen_self in
  35991. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  35992. + *) enable_dlopen_self=unknown ;;
  35993. + esac
  35994. +
  35995. + case $lt_cv_dlopen_self_static in
  35996. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  35997. + *) enable_dlopen_self_static=unknown ;;
  35998. + esac
  35999. +fi
  36000. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  36001. + [Whether dlopen is supported])
  36002. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  36003. + [Whether dlopen of programs is supported])
  36004. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  36005. + [Whether dlopen of statically linked programs is supported])
  36006. +])# LT_SYS_DLOPEN_SELF
  36007. +
  36008. +# Old name:
  36009. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  36010. +dnl aclocal-1.4 backwards compatibility:
  36011. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  36012. +
  36013. +
  36014. +# _LT_COMPILER_C_O([TAGNAME])
  36015. +# ---------------------------
  36016. +# Check to see if options -c and -o are simultaneously supported by compiler.
  36017. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  36018. +m4_defun([_LT_COMPILER_C_O],
  36019. +[m4_require([_LT_DECL_SED])dnl
  36020. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  36021. +m4_require([_LT_TAG_COMPILER])dnl
  36022. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  36023. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  36024. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  36025. + $RM -r conftest 2>/dev/null
  36026. + mkdir conftest
  36027. + cd conftest
  36028. + mkdir out
  36029. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  36030. +
  36031. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  36032. + # Insert the option either (1) after the last *FLAGS variable, or
  36033. + # (2) before a word containing "conftest.", or (3) at the end.
  36034. + # Note that $ac_compile itself does not contain backslashes and begins
  36035. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  36036. + lt_compile=`echo "$ac_compile" | $SED \
  36037. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  36038. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  36039. + -e 's:$: $lt_compiler_flag:'`
  36040. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  36041. + (eval "$lt_compile" 2>out/conftest.err)
  36042. + ac_status=$?
  36043. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  36044. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  36045. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  36046. + then
  36047. + # The compiler can only warn and ignore the option if not recognized
  36048. + # So say no if there are warnings
  36049. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  36050. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  36051. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  36052. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  36053. + fi
  36054. + fi
  36055. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  36056. + $RM conftest*
  36057. + # SGI C++ compiler will create directory out/ii_files/ for
  36058. + # template instantiation
  36059. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  36060. + $RM out/* && rmdir out
  36061. + cd ..
  36062. + $RM -r conftest
  36063. + $RM conftest*
  36064. +])
  36065. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  36066. + [Does compiler simultaneously support -c and -o options?])
  36067. +])# _LT_COMPILER_C_O
  36068. +
  36069. +
  36070. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  36071. +# ----------------------------------
  36072. +# Check to see if we can do hard links to lock some files if needed
  36073. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  36074. +[m4_require([_LT_ENABLE_LOCK])dnl
  36075. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  36076. +_LT_COMPILER_C_O([$1])
  36077. +
  36078. +hard_links="nottested"
  36079. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  36080. + # do not overwrite the value of need_locks provided by the user
  36081. + AC_MSG_CHECKING([if we can lock with hard links])
  36082. + hard_links=yes
  36083. + $RM conftest*
  36084. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  36085. + touch conftest.a
  36086. + ln conftest.a conftest.b 2>&5 || hard_links=no
  36087. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  36088. + AC_MSG_RESULT([$hard_links])
  36089. + if test "$hard_links" = no; then
  36090. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  36091. + need_locks=warn
  36092. + fi
  36093. +else
  36094. + need_locks=no
  36095. +fi
  36096. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  36097. +])# _LT_COMPILER_FILE_LOCKS
  36098. +
  36099. +
  36100. +# _LT_CHECK_OBJDIR
  36101. +# ----------------
  36102. +m4_defun([_LT_CHECK_OBJDIR],
  36103. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  36104. +[rm -f .libs 2>/dev/null
  36105. +mkdir .libs 2>/dev/null
  36106. +if test -d .libs; then
  36107. + lt_cv_objdir=.libs
  36108. +else
  36109. + # MS-DOS does not allow filenames that begin with a dot.
  36110. + lt_cv_objdir=_libs
  36111. +fi
  36112. +rmdir .libs 2>/dev/null])
  36113. +objdir=$lt_cv_objdir
  36114. +_LT_DECL([], [objdir], [0],
  36115. + [The name of the directory that contains temporary libtool files])dnl
  36116. +m4_pattern_allow([LT_OBJDIR])dnl
  36117. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  36118. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  36119. +])# _LT_CHECK_OBJDIR
  36120. +
  36121. +
  36122. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  36123. +# --------------------------------------
  36124. +# Check hardcoding attributes.
  36125. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  36126. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  36127. +_LT_TAGVAR(hardcode_action, $1)=
  36128. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  36129. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  36130. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  36131. +
  36132. + # We can hardcode non-existent directories.
  36133. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  36134. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  36135. + # have to relink, otherwise we might link with an installed library
  36136. + # when we should be linking with a yet-to-be-installed one
  36137. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  36138. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  36139. + # Linking always hardcodes the temporary library directory.
  36140. + _LT_TAGVAR(hardcode_action, $1)=relink
  36141. + else
  36142. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  36143. + _LT_TAGVAR(hardcode_action, $1)=immediate
  36144. + fi
  36145. +else
  36146. + # We cannot hardcode anything, or else we can only hardcode existing
  36147. + # directories.
  36148. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  36149. +fi
  36150. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  36151. +
  36152. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  36153. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  36154. + # Fast installation is not supported
  36155. + enable_fast_install=no
  36156. +elif test "$shlibpath_overrides_runpath" = yes ||
  36157. + test "$enable_shared" = no; then
  36158. + # Fast installation is not necessary
  36159. + enable_fast_install=needless
  36160. +fi
  36161. +_LT_TAGDECL([], [hardcode_action], [0],
  36162. + [How to hardcode a shared library path into an executable])
  36163. +])# _LT_LINKER_HARDCODE_LIBPATH
  36164. +
  36165. +
  36166. +# _LT_CMD_STRIPLIB
  36167. +# ----------------
  36168. +m4_defun([_LT_CMD_STRIPLIB],
  36169. +[m4_require([_LT_DECL_EGREP])
  36170. +striplib=
  36171. +old_striplib=
  36172. +AC_MSG_CHECKING([whether stripping libraries is possible])
  36173. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  36174. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  36175. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  36176. + AC_MSG_RESULT([yes])
  36177. +else
  36178. +# FIXME - insert some real tests, host_os isn't really good enough
  36179. + case $host_os in
  36180. + darwin*)
  36181. + if test -n "$STRIP" ; then
  36182. + striplib="$STRIP -x"
  36183. + old_striplib="$STRIP -S"
  36184. + AC_MSG_RESULT([yes])
  36185. + else
  36186. + AC_MSG_RESULT([no])
  36187. + fi
  36188. + ;;
  36189. + *)
  36190. + AC_MSG_RESULT([no])
  36191. + ;;
  36192. + esac
  36193. +fi
  36194. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  36195. +_LT_DECL([], [striplib], [1])
  36196. +])# _LT_CMD_STRIPLIB
  36197. +
  36198. +
  36199. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  36200. +# -----------------------------
  36201. +# PORTME Fill in your ld.so characteristics
  36202. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  36203. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  36204. +m4_require([_LT_DECL_EGREP])dnl
  36205. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  36206. +m4_require([_LT_DECL_OBJDUMP])dnl
  36207. +m4_require([_LT_DECL_SED])dnl
  36208. +AC_MSG_CHECKING([dynamic linker characteristics])
  36209. +m4_if([$1],
  36210. + [], [
  36211. +if test "$GCC" = yes; then
  36212. + case $host_os in
  36213. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  36214. + *) lt_awk_arg="/^libraries:/" ;;
  36215. + esac
  36216. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36217. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  36218. + # if the path contains ";" then we assume it to be the separator
  36219. + # otherwise default to the standard path separator (i.e. ":") - it is
  36220. + # assumed that no part of a normal pathname contains ";" but that should
  36221. + # okay in the real world where ";" in dirpaths is itself problematic.
  36222. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  36223. + else
  36224. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36225. + fi
  36226. + # Ok, now we have the path, separated by spaces, we can step through it
  36227. + # and add multilib dir if necessary.
  36228. + lt_tmp_lt_search_path_spec=
  36229. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  36230. + for lt_sys_path in $lt_search_path_spec; do
  36231. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  36232. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  36233. + else
  36234. + test -d "$lt_sys_path" && \
  36235. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  36236. + fi
  36237. + done
  36238. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  36239. +BEGIN {RS=" "; FS="/|\n";} {
  36240. + lt_foo="";
  36241. + lt_count=0;
  36242. + for (lt_i = NF; lt_i > 0; lt_i--) {
  36243. + if ($lt_i != "" && $lt_i != ".") {
  36244. + if ($lt_i == "..") {
  36245. + lt_count++;
  36246. + } else {
  36247. + if (lt_count == 0) {
  36248. + lt_foo="/" $lt_i lt_foo;
  36249. + } else {
  36250. + lt_count--;
  36251. + }
  36252. + }
  36253. + }
  36254. + }
  36255. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  36256. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  36257. +}'`
  36258. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  36259. +else
  36260. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  36261. +fi])
  36262. +library_names_spec=
  36263. +libname_spec='lib$name'
  36264. +soname_spec=
  36265. +shrext_cmds=".so"
  36266. +postinstall_cmds=
  36267. +postuninstall_cmds=
  36268. +finish_cmds=
  36269. +finish_eval=
  36270. +shlibpath_var=
  36271. +shlibpath_overrides_runpath=unknown
  36272. +version_type=none
  36273. +dynamic_linker="$host_os ld.so"
  36274. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  36275. +need_lib_prefix=unknown
  36276. +hardcode_into_libs=no
  36277. +
  36278. +# when you set need_version to no, make sure it does not cause -set_version
  36279. +# flags to be left without arguments
  36280. +need_version=unknown
  36281. +
  36282. +case $host_os in
  36283. +aix3*)
  36284. + version_type=linux
  36285. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  36286. + shlibpath_var=LIBPATH
  36287. +
  36288. + # AIX 3 has no versioning support, so we append a major version to the name.
  36289. + soname_spec='${libname}${release}${shared_ext}$major'
  36290. + ;;
  36291. +
  36292. +aix[[4-9]]*)
  36293. + version_type=linux
  36294. + need_lib_prefix=no
  36295. + need_version=no
  36296. + hardcode_into_libs=yes
  36297. + if test "$host_cpu" = ia64; then
  36298. + # AIX 5 supports IA64
  36299. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  36300. + shlibpath_var=LD_LIBRARY_PATH
  36301. + else
  36302. + # With GCC up to 2.95.x, collect2 would create an import file
  36303. + # for dependence libraries. The import file would start with
  36304. + # the line `#! .'. This would cause the generated library to
  36305. + # depend on `.', always an invalid library. This was fixed in
  36306. + # development snapshots of GCC prior to 3.0.
  36307. + case $host_os in
  36308. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  36309. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  36310. + echo ' yes '
  36311. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  36312. + :
  36313. + else
  36314. + can_build_shared=no
  36315. + fi
  36316. + ;;
  36317. + esac
  36318. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  36319. + # soname into executable. Probably we can add versioning support to
  36320. + # collect2, so additional links can be useful in future.
  36321. + if test "$aix_use_runtimelinking" = yes; then
  36322. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  36323. + # instead of lib<name>.a to let people know that these are not
  36324. + # typical AIX shared libraries.
  36325. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36326. + else
  36327. + # We preserve .a as extension for shared libraries through AIX4.2
  36328. + # and later when we are not doing run time linking.
  36329. + library_names_spec='${libname}${release}.a $libname.a'
  36330. + soname_spec='${libname}${release}${shared_ext}$major'
  36331. + fi
  36332. + shlibpath_var=LIBPATH
  36333. + fi
  36334. + ;;
  36335. +
  36336. +amigaos*)
  36337. + case $host_cpu in
  36338. + powerpc)
  36339. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  36340. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  36341. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36342. + ;;
  36343. + m68k)
  36344. + library_names_spec='$libname.ixlibrary $libname.a'
  36345. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  36346. + 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'
  36347. + ;;
  36348. + esac
  36349. + ;;
  36350. +
  36351. +beos*)
  36352. + library_names_spec='${libname}${shared_ext}'
  36353. + dynamic_linker="$host_os ld.so"
  36354. + shlibpath_var=LIBRARY_PATH
  36355. + ;;
  36356. +
  36357. +bsdi[[45]]*)
  36358. + version_type=linux
  36359. + need_version=no
  36360. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36361. + soname_spec='${libname}${release}${shared_ext}$major'
  36362. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  36363. + shlibpath_var=LD_LIBRARY_PATH
  36364. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  36365. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  36366. + # the default ld.so.conf also contains /usr/contrib/lib and
  36367. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  36368. + # libtool to hard-code these into programs
  36369. + ;;
  36370. +
  36371. +cygwin* | mingw* | pw32* | cegcc*)
  36372. + version_type=windows
  36373. + shrext_cmds=".dll"
  36374. + need_version=no
  36375. + need_lib_prefix=no
  36376. +
  36377. + case $GCC,$host_os in
  36378. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  36379. + library_names_spec='$libname.dll.a'
  36380. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  36381. + postinstall_cmds='base_file=`basename \${file}`~
  36382. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  36383. + dldir=$destdir/`dirname \$dlpath`~
  36384. + test -d \$dldir || mkdir -p \$dldir~
  36385. + $install_prog $dir/$dlname \$dldir/$dlname~
  36386. + chmod a+x \$dldir/$dlname~
  36387. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  36388. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  36389. + fi'
  36390. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  36391. + dlpath=$dir/\$dldll~
  36392. + $RM \$dlpath'
  36393. + shlibpath_overrides_runpath=yes
  36394. +
  36395. + case $host_os in
  36396. + cygwin*)
  36397. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  36398. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  36399. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  36400. + ;;
  36401. + mingw* | cegcc*)
  36402. + # MinGW DLLs use traditional 'lib' prefix
  36403. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  36404. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36405. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  36406. + # It is most probably a Windows format PATH printed by
  36407. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  36408. + # path with ; separators, and with drive letters. We can handle the
  36409. + # drive letters (cygwin fileutils understands them), so leave them,
  36410. + # especially as we might pass files found there to a mingw objdump,
  36411. + # which wouldn't understand a cygwinified path. Ahh.
  36412. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36413. + else
  36414. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36415. + fi
  36416. + ;;
  36417. + pw32*)
  36418. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  36419. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  36420. + ;;
  36421. + esac
  36422. + ;;
  36423. +
  36424. + *)
  36425. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  36426. + ;;
  36427. + esac
  36428. + dynamic_linker='Win32 ld.exe'
  36429. + # FIXME: first we should search . and the directory the executable is in
  36430. + shlibpath_var=PATH
  36431. + ;;
  36432. +
  36433. +darwin* | rhapsody*)
  36434. + dynamic_linker="$host_os dyld"
  36435. + version_type=darwin
  36436. + need_lib_prefix=no
  36437. + need_version=no
  36438. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  36439. + soname_spec='${libname}${release}${major}$shared_ext'
  36440. + shlibpath_overrides_runpath=yes
  36441. + shlibpath_var=DYLD_LIBRARY_PATH
  36442. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  36443. +m4_if([$1], [],[
  36444. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  36445. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  36446. + ;;
  36447. +
  36448. +dgux*)
  36449. + version_type=linux
  36450. + need_lib_prefix=no
  36451. + need_version=no
  36452. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  36453. + soname_spec='${libname}${release}${shared_ext}$major'
  36454. + shlibpath_var=LD_LIBRARY_PATH
  36455. + ;;
  36456. +
  36457. +freebsd1*)
  36458. + dynamic_linker=no
  36459. + ;;
  36460. +
  36461. +freebsd* | dragonfly*)
  36462. + # DragonFly does not have aout. When/if they implement a new
  36463. + # versioning mechanism, adjust this.
  36464. + if test -x /usr/bin/objformat; then
  36465. + objformat=`/usr/bin/objformat`
  36466. + else
  36467. + case $host_os in
  36468. + freebsd[[123]]*) objformat=aout ;;
  36469. + *) objformat=elf ;;
  36470. + esac
  36471. + fi
  36472. + version_type=freebsd-$objformat
  36473. + case $version_type in
  36474. + freebsd-elf*)
  36475. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  36476. + need_version=no
  36477. + need_lib_prefix=no
  36478. + ;;
  36479. + freebsd-*)
  36480. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  36481. + need_version=yes
  36482. + ;;
  36483. + esac
  36484. + shlibpath_var=LD_LIBRARY_PATH
  36485. + case $host_os in
  36486. + freebsd2*)
  36487. + shlibpath_overrides_runpath=yes
  36488. + ;;
  36489. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  36490. + shlibpath_overrides_runpath=yes
  36491. + hardcode_into_libs=yes
  36492. + ;;
  36493. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  36494. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  36495. + shlibpath_overrides_runpath=no
  36496. + hardcode_into_libs=yes
  36497. + ;;
  36498. + *) # from 4.6 on, and DragonFly
  36499. + shlibpath_overrides_runpath=yes
  36500. + hardcode_into_libs=yes
  36501. + ;;
  36502. + esac
  36503. + ;;
  36504. +
  36505. +gnu*)
  36506. + version_type=linux
  36507. + need_lib_prefix=no
  36508. + need_version=no
  36509. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  36510. + soname_spec='${libname}${release}${shared_ext}$major'
  36511. + shlibpath_var=LD_LIBRARY_PATH
  36512. + hardcode_into_libs=yes
  36513. + ;;
  36514. +
  36515. +hpux9* | hpux10* | hpux11*)
  36516. + # Give a soname corresponding to the major version so that dld.sl refuses to
  36517. + # link against other versions.
  36518. + version_type=sunos
  36519. + need_lib_prefix=no
  36520. + need_version=no
  36521. + case $host_cpu in
  36522. + ia64*)
  36523. + shrext_cmds='.so'
  36524. + hardcode_into_libs=yes
  36525. + dynamic_linker="$host_os dld.so"
  36526. + shlibpath_var=LD_LIBRARY_PATH
  36527. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36528. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36529. + soname_spec='${libname}${release}${shared_ext}$major'
  36530. + if test "X$HPUX_IA64_MODE" = X32; then
  36531. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  36532. + else
  36533. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  36534. + fi
  36535. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36536. + ;;
  36537. + hppa*64*)
  36538. + shrext_cmds='.sl'
  36539. + hardcode_into_libs=yes
  36540. + dynamic_linker="$host_os dld.sl"
  36541. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  36542. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36543. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36544. + soname_spec='${libname}${release}${shared_ext}$major'
  36545. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  36546. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36547. + ;;
  36548. + *)
  36549. + shrext_cmds='.sl'
  36550. + dynamic_linker="$host_os dld.sl"
  36551. + shlibpath_var=SHLIB_PATH
  36552. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  36553. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36554. + soname_spec='${libname}${release}${shared_ext}$major'
  36555. + ;;
  36556. + esac
  36557. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  36558. + postinstall_cmds='chmod 555 $lib'
  36559. + ;;
  36560. +
  36561. +interix[[3-9]]*)
  36562. + version_type=linux
  36563. + need_lib_prefix=no
  36564. + need_version=no
  36565. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36566. + soname_spec='${libname}${release}${shared_ext}$major'
  36567. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  36568. + shlibpath_var=LD_LIBRARY_PATH
  36569. + shlibpath_overrides_runpath=no
  36570. + hardcode_into_libs=yes
  36571. + ;;
  36572. +
  36573. +irix5* | irix6* | nonstopux*)
  36574. + case $host_os in
  36575. + nonstopux*) version_type=nonstopux ;;
  36576. + *)
  36577. + if test "$lt_cv_prog_gnu_ld" = yes; then
  36578. + version_type=linux
  36579. + else
  36580. + version_type=irix
  36581. + fi ;;
  36582. + esac
  36583. + need_lib_prefix=no
  36584. + need_version=no
  36585. + soname_spec='${libname}${release}${shared_ext}$major'
  36586. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  36587. + case $host_os in
  36588. + irix5* | nonstopux*)
  36589. + libsuff= shlibsuff=
  36590. + ;;
  36591. + *)
  36592. + case $LD in # libtool.m4 will add one of these switches to LD
  36593. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  36594. + libsuff= shlibsuff= libmagic=32-bit;;
  36595. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  36596. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  36597. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  36598. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  36599. + *) libsuff= shlibsuff= libmagic=never-match;;
  36600. + esac
  36601. + ;;
  36602. + esac
  36603. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  36604. + shlibpath_overrides_runpath=no
  36605. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  36606. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  36607. + hardcode_into_libs=yes
  36608. + ;;
  36609. +
  36610. +# No shared lib support for Linux oldld, aout, or coff.
  36611. +linux*oldld* | linux*aout* | linux*coff*)
  36612. + dynamic_linker=no
  36613. + ;;
  36614. +
  36615. +# This must be Linux ELF.
  36616. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  36617. + version_type=linux
  36618. + need_lib_prefix=no
  36619. + need_version=no
  36620. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36621. + soname_spec='${libname}${release}${shared_ext}$major'
  36622. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  36623. + shlibpath_var=LD_LIBRARY_PATH
  36624. + shlibpath_overrides_runpath=no
  36625. + # Some binutils ld are patched to set DT_RUNPATH
  36626. + save_LDFLAGS=$LDFLAGS
  36627. + save_libdir=$libdir
  36628. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  36629. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  36630. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  36631. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  36632. + [shlibpath_overrides_runpath=yes])])
  36633. + LDFLAGS=$save_LDFLAGS
  36634. + libdir=$save_libdir
  36635. +
  36636. + # This implies no fast_install, which is unacceptable.
  36637. + # Some rework will be needed to allow for fast_install
  36638. + # before this can be enabled.
  36639. + hardcode_into_libs=yes
  36640. +
  36641. + # Append ld.so.conf contents to the search path
  36642. + if test -f /etc/ld.so.conf; then
  36643. + 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' ' '`
  36644. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  36645. + fi
  36646. +
  36647. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  36648. + # powerpc, because MkLinux only supported shared libraries with the
  36649. + # GNU dynamic linker. Since this was broken with cross compilers,
  36650. + # most powerpc-linux boxes support dynamic linking these days and
  36651. + # people can always --disable-shared, the test was removed, and we
  36652. + # assume the GNU/Linux dynamic linker is in use.
  36653. + dynamic_linker='GNU/Linux ld.so'
  36654. + ;;
  36655. +
  36656. +netbsdelf*-gnu)
  36657. + version_type=linux
  36658. + need_lib_prefix=no
  36659. + need_version=no
  36660. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36661. + soname_spec='${libname}${release}${shared_ext}$major'
  36662. + shlibpath_var=LD_LIBRARY_PATH
  36663. + shlibpath_overrides_runpath=no
  36664. + hardcode_into_libs=yes
  36665. + dynamic_linker='NetBSD ld.elf_so'
  36666. + ;;
  36667. +
  36668. +netbsd*)
  36669. + version_type=sunos
  36670. + need_lib_prefix=no
  36671. + need_version=no
  36672. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  36673. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36674. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36675. + dynamic_linker='NetBSD (a.out) ld.so'
  36676. + else
  36677. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36678. + soname_spec='${libname}${release}${shared_ext}$major'
  36679. + dynamic_linker='NetBSD ld.elf_so'
  36680. + fi
  36681. + shlibpath_var=LD_LIBRARY_PATH
  36682. + shlibpath_overrides_runpath=yes
  36683. + hardcode_into_libs=yes
  36684. + ;;
  36685. +
  36686. +newsos6)
  36687. + version_type=linux
  36688. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36689. + shlibpath_var=LD_LIBRARY_PATH
  36690. + shlibpath_overrides_runpath=yes
  36691. + ;;
  36692. +
  36693. +*nto* | *qnx*)
  36694. + version_type=qnx
  36695. + need_lib_prefix=no
  36696. + need_version=no
  36697. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36698. + soname_spec='${libname}${release}${shared_ext}$major'
  36699. + shlibpath_var=LD_LIBRARY_PATH
  36700. + shlibpath_overrides_runpath=no
  36701. + hardcode_into_libs=yes
  36702. + dynamic_linker='ldqnx.so'
  36703. + ;;
  36704. +
  36705. +openbsd*)
  36706. + version_type=sunos
  36707. + sys_lib_dlsearch_path_spec="/usr/lib"
  36708. + need_lib_prefix=no
  36709. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  36710. + case $host_os in
  36711. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  36712. + *) need_version=no ;;
  36713. + esac
  36714. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36715. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36716. + shlibpath_var=LD_LIBRARY_PATH
  36717. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36718. + case $host_os in
  36719. + openbsd2.[[89]] | openbsd2.[[89]].*)
  36720. + shlibpath_overrides_runpath=no
  36721. + ;;
  36722. + *)
  36723. + shlibpath_overrides_runpath=yes
  36724. + ;;
  36725. + esac
  36726. + else
  36727. + shlibpath_overrides_runpath=yes
  36728. + fi
  36729. + ;;
  36730. +
  36731. +os2*)
  36732. + libname_spec='$name'
  36733. + shrext_cmds=".dll"
  36734. + need_lib_prefix=no
  36735. + library_names_spec='$libname${shared_ext} $libname.a'
  36736. + dynamic_linker='OS/2 ld.exe'
  36737. + shlibpath_var=LIBPATH
  36738. + ;;
  36739. +
  36740. +osf3* | osf4* | osf5*)
  36741. + version_type=osf
  36742. + need_lib_prefix=no
  36743. + need_version=no
  36744. + soname_spec='${libname}${release}${shared_ext}$major'
  36745. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36746. + shlibpath_var=LD_LIBRARY_PATH
  36747. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  36748. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  36749. + ;;
  36750. +
  36751. +rdos*)
  36752. + dynamic_linker=no
  36753. + ;;
  36754. +
  36755. +solaris*)
  36756. + version_type=linux
  36757. + need_lib_prefix=no
  36758. + need_version=no
  36759. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36760. + soname_spec='${libname}${release}${shared_ext}$major'
  36761. + shlibpath_var=LD_LIBRARY_PATH
  36762. + shlibpath_overrides_runpath=yes
  36763. + hardcode_into_libs=yes
  36764. + # ldd complains unless libraries are executable
  36765. + postinstall_cmds='chmod +x $lib'
  36766. + ;;
  36767. +
  36768. +sunos4*)
  36769. + version_type=sunos
  36770. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36771. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  36772. + shlibpath_var=LD_LIBRARY_PATH
  36773. + shlibpath_overrides_runpath=yes
  36774. + if test "$with_gnu_ld" = yes; then
  36775. + need_lib_prefix=no
  36776. + fi
  36777. + need_version=yes
  36778. + ;;
  36779. +
  36780. +sysv4 | sysv4.3*)
  36781. + version_type=linux
  36782. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36783. + soname_spec='${libname}${release}${shared_ext}$major'
  36784. + shlibpath_var=LD_LIBRARY_PATH
  36785. + case $host_vendor in
  36786. + sni)
  36787. + shlibpath_overrides_runpath=no
  36788. + need_lib_prefix=no
  36789. + runpath_var=LD_RUN_PATH
  36790. + ;;
  36791. + siemens)
  36792. + need_lib_prefix=no
  36793. + ;;
  36794. + motorola)
  36795. + need_lib_prefix=no
  36796. + need_version=no
  36797. + shlibpath_overrides_runpath=no
  36798. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  36799. + ;;
  36800. + esac
  36801. + ;;
  36802. +
  36803. +sysv4*MP*)
  36804. + if test -d /usr/nec ;then
  36805. + version_type=linux
  36806. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  36807. + soname_spec='$libname${shared_ext}.$major'
  36808. + shlibpath_var=LD_LIBRARY_PATH
  36809. + fi
  36810. + ;;
  36811. +
  36812. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  36813. + version_type=freebsd-elf
  36814. + need_lib_prefix=no
  36815. + need_version=no
  36816. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  36817. + soname_spec='${libname}${release}${shared_ext}$major'
  36818. + shlibpath_var=LD_LIBRARY_PATH
  36819. + shlibpath_overrides_runpath=yes
  36820. + hardcode_into_libs=yes
  36821. + if test "$with_gnu_ld" = yes; then
  36822. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  36823. + else
  36824. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  36825. + case $host_os in
  36826. + sco3.2v5*)
  36827. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  36828. + ;;
  36829. + esac
  36830. + fi
  36831. + sys_lib_dlsearch_path_spec='/usr/lib'
  36832. + ;;
  36833. +
  36834. +tpf*)
  36835. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  36836. + version_type=linux
  36837. + need_lib_prefix=no
  36838. + need_version=no
  36839. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36840. + shlibpath_var=LD_LIBRARY_PATH
  36841. + shlibpath_overrides_runpath=no
  36842. + hardcode_into_libs=yes
  36843. + ;;
  36844. +
  36845. +uts4*)
  36846. + version_type=linux
  36847. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36848. + soname_spec='${libname}${release}${shared_ext}$major'
  36849. + shlibpath_var=LD_LIBRARY_PATH
  36850. + ;;
  36851. +
  36852. +*)
  36853. + dynamic_linker=no
  36854. + ;;
  36855. +esac
  36856. +AC_MSG_RESULT([$dynamic_linker])
  36857. +test "$dynamic_linker" = no && can_build_shared=no
  36858. +
  36859. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  36860. +if test "$GCC" = yes; then
  36861. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  36862. +fi
  36863. +
  36864. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  36865. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  36866. +fi
  36867. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  36868. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  36869. +fi
  36870. +
  36871. +_LT_DECL([], [variables_saved_for_relink], [1],
  36872. + [Variables whose values should be saved in libtool wrapper scripts and
  36873. + restored at link time])
  36874. +_LT_DECL([], [need_lib_prefix], [0],
  36875. + [Do we need the "lib" prefix for modules?])
  36876. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  36877. +_LT_DECL([], [version_type], [0], [Library versioning type])
  36878. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  36879. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  36880. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  36881. + [Is shlibpath searched before the hard-coded library search path?])
  36882. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  36883. +_LT_DECL([], [library_names_spec], [1],
  36884. + [[List of archive names. First name is the real one, the rest are links.
  36885. + The last name is the one that the linker finds with -lNAME]])
  36886. +_LT_DECL([], [soname_spec], [1],
  36887. + [[The coded name of the library, if different from the real name]])
  36888. +_LT_DECL([], [postinstall_cmds], [2],
  36889. + [Command to use after installation of a shared archive])
  36890. +_LT_DECL([], [postuninstall_cmds], [2],
  36891. + [Command to use after uninstallation of a shared archive])
  36892. +_LT_DECL([], [finish_cmds], [2],
  36893. + [Commands used to finish a libtool library installation in a directory])
  36894. +_LT_DECL([], [finish_eval], [1],
  36895. + [[As "finish_cmds", except a single script fragment to be evaled but
  36896. + not shown]])
  36897. +_LT_DECL([], [hardcode_into_libs], [0],
  36898. + [Whether we should hardcode library paths into libraries])
  36899. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  36900. + [Compile-time system search path for libraries])
  36901. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  36902. + [Run-time system search path for libraries])
  36903. +])# _LT_SYS_DYNAMIC_LINKER
  36904. +
  36905. +
  36906. +# _LT_PATH_TOOL_PREFIX(TOOL)
  36907. +# --------------------------
  36908. +# find a file program which can recognize shared library
  36909. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  36910. +[m4_require([_LT_DECL_EGREP])dnl
  36911. +AC_MSG_CHECKING([for $1])
  36912. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  36913. +[case $MAGIC_CMD in
  36914. +[[\\/*] | ?:[\\/]*])
  36915. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  36916. + ;;
  36917. +*)
  36918. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  36919. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  36920. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  36921. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  36922. +dnl not every word. This closes a longstanding sh security hole.
  36923. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  36924. + for ac_dir in $ac_dummy; do
  36925. + IFS="$lt_save_ifs"
  36926. + test -z "$ac_dir" && ac_dir=.
  36927. + if test -f $ac_dir/$1; then
  36928. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  36929. + if test -n "$file_magic_test_file"; then
  36930. + case $deplibs_check_method in
  36931. + "file_magic "*)
  36932. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  36933. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  36934. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  36935. + $EGREP "$file_magic_regex" > /dev/null; then
  36936. + :
  36937. + else
  36938. + cat <<_LT_EOF 1>&2
  36939. +
  36940. +*** Warning: the command libtool uses to detect shared libraries,
  36941. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  36942. +*** The result is that libtool may fail to recognize shared libraries
  36943. +*** as such. This will affect the creation of libtool libraries that
  36944. +*** depend on shared libraries, but programs linked with such libtool
  36945. +*** libraries will work regardless of this problem. Nevertheless, you
  36946. +*** may want to report the problem to your system manager and/or to
  36947. +*** bug-libtool@gnu.org
  36948. +
  36949. +_LT_EOF
  36950. + fi ;;
  36951. + esac
  36952. + fi
  36953. + break
  36954. + fi
  36955. + done
  36956. + IFS="$lt_save_ifs"
  36957. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  36958. + ;;
  36959. +esac])
  36960. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  36961. +if test -n "$MAGIC_CMD"; then
  36962. + AC_MSG_RESULT($MAGIC_CMD)
  36963. +else
  36964. + AC_MSG_RESULT(no)
  36965. +fi
  36966. +_LT_DECL([], [MAGIC_CMD], [0],
  36967. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  36968. +])# _LT_PATH_TOOL_PREFIX
  36969. +
  36970. +# Old name:
  36971. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  36972. +dnl aclocal-1.4 backwards compatibility:
  36973. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  36974. +
  36975. +
  36976. +# _LT_PATH_MAGIC
  36977. +# --------------
  36978. +# find a file program which can recognize a shared library
  36979. +m4_defun([_LT_PATH_MAGIC],
  36980. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  36981. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  36982. + if test -n "$ac_tool_prefix"; then
  36983. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  36984. + else
  36985. + MAGIC_CMD=:
  36986. + fi
  36987. +fi
  36988. +])# _LT_PATH_MAGIC
  36989. +
  36990. +
  36991. +# LT_PATH_LD
  36992. +# ----------
  36993. +# find the pathname to the GNU or non-GNU linker
  36994. +AC_DEFUN([LT_PATH_LD],
  36995. +[AC_REQUIRE([AC_PROG_CC])dnl
  36996. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  36997. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  36998. +m4_require([_LT_DECL_SED])dnl
  36999. +m4_require([_LT_DECL_EGREP])dnl
  37000. +
  37001. +AC_ARG_WITH([gnu-ld],
  37002. + [AS_HELP_STRING([--with-gnu-ld],
  37003. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  37004. + [test "$withval" = no || with_gnu_ld=yes],
  37005. + [with_gnu_ld=no])dnl
  37006. +
  37007. +ac_prog=ld
  37008. +if test "$GCC" = yes; then
  37009. + # Check if gcc -print-prog-name=ld gives a path.
  37010. + AC_MSG_CHECKING([for ld used by $CC])
  37011. + case $host in
  37012. + *-*-mingw*)
  37013. + # gcc leaves a trailing carriage return which upsets mingw
  37014. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  37015. + *)
  37016. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  37017. + esac
  37018. + case $ac_prog in
  37019. + # Accept absolute paths.
  37020. + [[\\/]]* | ?:[[\\/]]*)
  37021. + re_direlt='/[[^/]][[^/]]*/\.\./'
  37022. + # Canonicalize the pathname of ld
  37023. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  37024. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  37025. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  37026. + done
  37027. + test -z "$LD" && LD="$ac_prog"
  37028. + ;;
  37029. + "")
  37030. + # If it fails, then pretend we aren't using GCC.
  37031. + ac_prog=ld
  37032. + ;;
  37033. + *)
  37034. + # If it is relative, then search for the first ld in PATH.
  37035. + with_gnu_ld=unknown
  37036. + ;;
  37037. + esac
  37038. +elif test "$with_gnu_ld" = yes; then
  37039. + AC_MSG_CHECKING([for GNU ld])
  37040. +else
  37041. + AC_MSG_CHECKING([for non-GNU ld])
  37042. +fi
  37043. +AC_CACHE_VAL(lt_cv_path_LD,
  37044. +[if test -z "$LD"; then
  37045. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  37046. + for ac_dir in $PATH; do
  37047. + IFS="$lt_save_ifs"
  37048. + test -z "$ac_dir" && ac_dir=.
  37049. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  37050. + lt_cv_path_LD="$ac_dir/$ac_prog"
  37051. + # Check to see if the program is GNU ld. I'd rather use --version,
  37052. + # but apparently some variants of GNU ld only accept -v.
  37053. + # Break only if it was the GNU/non-GNU ld that we prefer.
  37054. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  37055. + *GNU* | *'with BFD'*)
  37056. + test "$with_gnu_ld" != no && break
  37057. + ;;
  37058. + *)
  37059. + test "$with_gnu_ld" != yes && break
  37060. + ;;
  37061. + esac
  37062. + fi
  37063. + done
  37064. + IFS="$lt_save_ifs"
  37065. +else
  37066. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  37067. +fi])
  37068. +LD="$lt_cv_path_LD"
  37069. +if test -n "$LD"; then
  37070. + AC_MSG_RESULT($LD)
  37071. +else
  37072. + AC_MSG_RESULT(no)
  37073. +fi
  37074. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  37075. +_LT_PATH_LD_GNU
  37076. +AC_SUBST([LD])
  37077. +
  37078. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  37079. +])# LT_PATH_LD
  37080. +
  37081. +# Old names:
  37082. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  37083. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  37084. +dnl aclocal-1.4 backwards compatibility:
  37085. +dnl AC_DEFUN([AM_PROG_LD], [])
  37086. +dnl AC_DEFUN([AC_PROG_LD], [])
  37087. +
  37088. +
  37089. +# _LT_PATH_LD_GNU
  37090. +#- --------------
  37091. +m4_defun([_LT_PATH_LD_GNU],
  37092. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  37093. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  37094. +case `$LD -v 2>&1 </dev/null` in
  37095. +*GNU* | *'with BFD'*)
  37096. + lt_cv_prog_gnu_ld=yes
  37097. + ;;
  37098. +*)
  37099. + lt_cv_prog_gnu_ld=no
  37100. + ;;
  37101. +esac])
  37102. +with_gnu_ld=$lt_cv_prog_gnu_ld
  37103. +])# _LT_PATH_LD_GNU
  37104. +
  37105. +
  37106. +# _LT_CMD_RELOAD
  37107. +# --------------
  37108. +# find reload flag for linker
  37109. +# -- PORTME Some linkers may need a different reload flag.
  37110. +m4_defun([_LT_CMD_RELOAD],
  37111. +[AC_CACHE_CHECK([for $LD option to reload object files],
  37112. + lt_cv_ld_reload_flag,
  37113. + [lt_cv_ld_reload_flag='-r'])
  37114. +reload_flag=$lt_cv_ld_reload_flag
  37115. +case $reload_flag in
  37116. +"" | " "*) ;;
  37117. +*) reload_flag=" $reload_flag" ;;
  37118. +esac
  37119. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  37120. +case $host_os in
  37121. + darwin*)
  37122. + if test "$GCC" = yes; then
  37123. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  37124. + else
  37125. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  37126. + fi
  37127. + ;;
  37128. +esac
  37129. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  37130. +_LT_DECL([], [reload_cmds], [2])dnl
  37131. +])# _LT_CMD_RELOAD
  37132. +
  37133. +
  37134. +# _LT_CHECK_MAGIC_METHOD
  37135. +# ----------------------
  37136. +# how to check for library dependencies
  37137. +# -- PORTME fill in with the dynamic library characteristics
  37138. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  37139. +[m4_require([_LT_DECL_EGREP])
  37140. +m4_require([_LT_DECL_OBJDUMP])
  37141. +AC_CACHE_CHECK([how to recognize dependent libraries],
  37142. +lt_cv_deplibs_check_method,
  37143. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  37144. +lt_cv_file_magic_test_file=
  37145. +lt_cv_deplibs_check_method='unknown'
  37146. +# Need to set the preceding variable on all platforms that support
  37147. +# interlibrary dependencies.
  37148. +# 'none' -- dependencies not supported.
  37149. +# `unknown' -- same as none, but documents that we really don't know.
  37150. +# 'pass_all' -- all dependencies passed with no checks.
  37151. +# 'test_compile' -- check by making test program.
  37152. +# 'file_magic [[regex]]' -- check by looking for files in library path
  37153. +# which responds to the $file_magic_cmd with a given extended regex.
  37154. +# If you have `file' or equivalent on your system and you're not sure
  37155. +# whether `pass_all' will *always* work, you probably want this one.
  37156. +
  37157. +case $host_os in
  37158. +aix[[4-9]]*)
  37159. + lt_cv_deplibs_check_method=pass_all
  37160. + ;;
  37161. +
  37162. +beos*)
  37163. + lt_cv_deplibs_check_method=pass_all
  37164. + ;;
  37165. +
  37166. +bsdi[[45]]*)
  37167. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  37168. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  37169. + lt_cv_file_magic_test_file=/shlib/libc.so
  37170. + ;;
  37171. +
  37172. +cygwin*)
  37173. + # func_win32_libid is a shell function defined in ltmain.sh
  37174. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  37175. + lt_cv_file_magic_cmd='func_win32_libid'
  37176. + ;;
  37177. +
  37178. +mingw* | pw32*)
  37179. + # Base MSYS/MinGW do not provide the 'file' command needed by
  37180. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  37181. + # unless we find 'file', for example because we are cross-compiling.
  37182. + if ( file / ) >/dev/null 2>&1; then
  37183. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  37184. + lt_cv_file_magic_cmd='func_win32_libid'
  37185. + else
  37186. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  37187. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  37188. + fi
  37189. + ;;
  37190. +
  37191. +cegcc)
  37192. + # use the weaker test based on 'objdump'. See mingw*.
  37193. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  37194. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  37195. + ;;
  37196. +
  37197. +darwin* | rhapsody*)
  37198. + lt_cv_deplibs_check_method=pass_all
  37199. + ;;
  37200. +
  37201. +freebsd* | dragonfly*)
  37202. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  37203. + case $host_cpu in
  37204. + i*86 )
  37205. + # Not sure whether the presence of OpenBSD here was a mistake.
  37206. + # Let's accept both of them until this is cleared up.
  37207. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  37208. + lt_cv_file_magic_cmd=/usr/bin/file
  37209. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  37210. + ;;
  37211. + esac
  37212. + else
  37213. + lt_cv_deplibs_check_method=pass_all
  37214. + fi
  37215. + ;;
  37216. +
  37217. +gnu*)
  37218. + lt_cv_deplibs_check_method=pass_all
  37219. + ;;
  37220. +
  37221. +hpux10.20* | hpux11*)
  37222. + lt_cv_file_magic_cmd=/usr/bin/file
  37223. + case $host_cpu in
  37224. + ia64*)
  37225. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  37226. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  37227. + ;;
  37228. + hppa*64*)
  37229. + [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]']
  37230. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  37231. + ;;
  37232. + *)
  37233. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  37234. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  37235. + ;;
  37236. + esac
  37237. + ;;
  37238. +
  37239. +interix[[3-9]]*)
  37240. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  37241. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  37242. + ;;
  37243. +
  37244. +irix5* | irix6* | nonstopux*)
  37245. + case $LD in
  37246. + *-32|*"-32 ") libmagic=32-bit;;
  37247. + *-n32|*"-n32 ") libmagic=N32;;
  37248. + *-64|*"-64 ") libmagic=64-bit;;
  37249. + *) libmagic=never-match;;
  37250. + esac
  37251. + lt_cv_deplibs_check_method=pass_all
  37252. + ;;
  37253. +
  37254. +# This must be Linux ELF.
  37255. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  37256. + lt_cv_deplibs_check_method=pass_all
  37257. + ;;
  37258. +
  37259. +netbsd* | netbsdelf*-gnu)
  37260. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  37261. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  37262. + else
  37263. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  37264. + fi
  37265. + ;;
  37266. +
  37267. +newos6*)
  37268. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  37269. + lt_cv_file_magic_cmd=/usr/bin/file
  37270. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  37271. + ;;
  37272. +
  37273. +*nto* | *qnx*)
  37274. + lt_cv_deplibs_check_method=pass_all
  37275. + ;;
  37276. +
  37277. +openbsd*)
  37278. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  37279. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  37280. + else
  37281. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  37282. + fi
  37283. + ;;
  37284. +
  37285. +osf3* | osf4* | osf5*)
  37286. + lt_cv_deplibs_check_method=pass_all
  37287. + ;;
  37288. +
  37289. +rdos*)
  37290. + lt_cv_deplibs_check_method=pass_all
  37291. + ;;
  37292. +
  37293. +solaris*)
  37294. + lt_cv_deplibs_check_method=pass_all
  37295. + ;;
  37296. +
  37297. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  37298. + lt_cv_deplibs_check_method=pass_all
  37299. + ;;
  37300. +
  37301. +sysv4 | sysv4.3*)
  37302. + case $host_vendor in
  37303. + motorola)
  37304. + 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]]'
  37305. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  37306. + ;;
  37307. + ncr)
  37308. + lt_cv_deplibs_check_method=pass_all
  37309. + ;;
  37310. + sequent)
  37311. + lt_cv_file_magic_cmd='/bin/file'
  37312. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  37313. + ;;
  37314. + sni)
  37315. + lt_cv_file_magic_cmd='/bin/file'
  37316. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  37317. + lt_cv_file_magic_test_file=/lib/libc.so
  37318. + ;;
  37319. + siemens)
  37320. + lt_cv_deplibs_check_method=pass_all
  37321. + ;;
  37322. + pc)
  37323. + lt_cv_deplibs_check_method=pass_all
  37324. + ;;
  37325. + esac
  37326. + ;;
  37327. +
  37328. +tpf*)
  37329. + lt_cv_deplibs_check_method=pass_all
  37330. + ;;
  37331. +esac
  37332. +])
  37333. +file_magic_cmd=$lt_cv_file_magic_cmd
  37334. +deplibs_check_method=$lt_cv_deplibs_check_method
  37335. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  37336. +
  37337. +_LT_DECL([], [deplibs_check_method], [1],
  37338. + [Method to check whether dependent libraries are shared objects])
  37339. +_LT_DECL([], [file_magic_cmd], [1],
  37340. + [Command to use when deplibs_check_method == "file_magic"])
  37341. +])# _LT_CHECK_MAGIC_METHOD
  37342. +
  37343. +
  37344. +# LT_PATH_NM
  37345. +# ----------
  37346. +# find the pathname to a BSD- or MS-compatible name lister
  37347. +AC_DEFUN([LT_PATH_NM],
  37348. +[AC_REQUIRE([AC_PROG_CC])dnl
  37349. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  37350. +[if test -n "$NM"; then
  37351. + # Let the user override the test.
  37352. + lt_cv_path_NM="$NM"
  37353. +else
  37354. + lt_nm_to_check="${ac_tool_prefix}nm"
  37355. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  37356. + lt_nm_to_check="$lt_nm_to_check nm"
  37357. + fi
  37358. + for lt_tmp_nm in $lt_nm_to_check; do
  37359. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  37360. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  37361. + IFS="$lt_save_ifs"
  37362. + test -z "$ac_dir" && ac_dir=.
  37363. + tmp_nm="$ac_dir/$lt_tmp_nm"
  37364. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  37365. + # Check to see if the nm accepts a BSD-compat flag.
  37366. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  37367. + # nm: unknown option "B" ignored
  37368. + # Tru64's nm complains that /dev/null is an invalid object file
  37369. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  37370. + */dev/null* | *'Invalid file or object type'*)
  37371. + lt_cv_path_NM="$tmp_nm -B"
  37372. + break
  37373. + ;;
  37374. + *)
  37375. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  37376. + */dev/null*)
  37377. + lt_cv_path_NM="$tmp_nm -p"
  37378. + break
  37379. + ;;
  37380. + *)
  37381. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  37382. + continue # so that we can try to find one that supports BSD flags
  37383. + ;;
  37384. + esac
  37385. + ;;
  37386. + esac
  37387. + fi
  37388. + done
  37389. + IFS="$lt_save_ifs"
  37390. + done
  37391. + : ${lt_cv_path_NM=no}
  37392. +fi])
  37393. +if test "$lt_cv_path_NM" != "no"; then
  37394. + NM="$lt_cv_path_NM"
  37395. +else
  37396. + # Didn't find any BSD compatible name lister, look for dumpbin.
  37397. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  37398. + AC_SUBST([DUMPBIN])
  37399. + if test "$DUMPBIN" != ":"; then
  37400. + NM="$DUMPBIN"
  37401. + fi
  37402. +fi
  37403. +test -z "$NM" && NM=nm
  37404. +AC_SUBST([NM])
  37405. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  37406. +
  37407. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  37408. + [lt_cv_nm_interface="BSD nm"
  37409. + echo "int some_variable = 0;" > conftest.$ac_ext
  37410. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  37411. + (eval "$ac_compile" 2>conftest.err)
  37412. + cat conftest.err >&AS_MESSAGE_LOG_FD
  37413. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  37414. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  37415. + cat conftest.err >&AS_MESSAGE_LOG_FD
  37416. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  37417. + cat conftest.out >&AS_MESSAGE_LOG_FD
  37418. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  37419. + lt_cv_nm_interface="MS dumpbin"
  37420. + fi
  37421. + rm -f conftest*])
  37422. +])# LT_PATH_NM
  37423. +
  37424. +# Old names:
  37425. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  37426. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  37427. +dnl aclocal-1.4 backwards compatibility:
  37428. +dnl AC_DEFUN([AM_PROG_NM], [])
  37429. +dnl AC_DEFUN([AC_PROG_NM], [])
  37430. +
  37431. +
  37432. +# LT_LIB_M
  37433. +# --------
  37434. +# check for math library
  37435. +AC_DEFUN([LT_LIB_M],
  37436. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  37437. +LIBM=
  37438. +case $host in
  37439. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  37440. + # These system don't have libm, or don't need it
  37441. + ;;
  37442. +*-ncr-sysv4.3*)
  37443. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  37444. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  37445. + ;;
  37446. +*)
  37447. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  37448. + ;;
  37449. +esac
  37450. +AC_SUBST([LIBM])
  37451. +])# LT_LIB_M
  37452. +
  37453. +# Old name:
  37454. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  37455. +dnl aclocal-1.4 backwards compatibility:
  37456. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  37457. +
  37458. +
  37459. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  37460. +# -------------------------------
  37461. +m4_defun([_LT_COMPILER_NO_RTTI],
  37462. +[m4_require([_LT_TAG_COMPILER])dnl
  37463. +
  37464. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  37465. +
  37466. +if test "$GCC" = yes; then
  37467. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  37468. +
  37469. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  37470. + lt_cv_prog_compiler_rtti_exceptions,
  37471. + [-fno-rtti -fno-exceptions], [],
  37472. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  37473. +fi
  37474. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  37475. + [Compiler flag to turn off builtin functions])
  37476. +])# _LT_COMPILER_NO_RTTI
  37477. +
  37478. +
  37479. +# _LT_CMD_GLOBAL_SYMBOLS
  37480. +# ----------------------
  37481. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  37482. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  37483. +AC_REQUIRE([AC_PROG_CC])dnl
  37484. +AC_REQUIRE([LT_PATH_NM])dnl
  37485. +AC_REQUIRE([LT_PATH_LD])dnl
  37486. +m4_require([_LT_DECL_SED])dnl
  37487. +m4_require([_LT_DECL_EGREP])dnl
  37488. +m4_require([_LT_TAG_COMPILER])dnl
  37489. +
  37490. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  37491. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  37492. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  37493. +[
  37494. +# These are sane defaults that work on at least a few old systems.
  37495. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  37496. +
  37497. +# Character class describing NM global symbol codes.
  37498. +symcode='[[BCDEGRST]]'
  37499. +
  37500. +# Regexp to match symbols that can be accessed directly from C.
  37501. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  37502. +
  37503. +# Define system-specific variables.
  37504. +case $host_os in
  37505. +aix*)
  37506. + symcode='[[BCDT]]'
  37507. + ;;
  37508. +cygwin* | mingw* | pw32* | cegcc*)
  37509. + symcode='[[ABCDGISTW]]'
  37510. + ;;
  37511. +hpux*)
  37512. + if test "$host_cpu" = ia64; then
  37513. + symcode='[[ABCDEGRST]]'
  37514. + fi
  37515. + ;;
  37516. +irix* | nonstopux*)
  37517. + symcode='[[BCDEGRST]]'
  37518. + ;;
  37519. +osf*)
  37520. + symcode='[[BCDEGQRST]]'
  37521. + ;;
  37522. +solaris*)
  37523. + symcode='[[BDRT]]'
  37524. + ;;
  37525. +sco3.2v5*)
  37526. + symcode='[[DT]]'
  37527. + ;;
  37528. +sysv4.2uw2*)
  37529. + symcode='[[DT]]'
  37530. + ;;
  37531. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  37532. + symcode='[[ABDT]]'
  37533. + ;;
  37534. +sysv4)
  37535. + symcode='[[DFNSTU]]'
  37536. + ;;
  37537. +esac
  37538. +
  37539. +# If we're using GNU nm, then use its standard symbol codes.
  37540. +case `$NM -V 2>&1` in
  37541. +*GNU* | *'with BFD'*)
  37542. + symcode='[[ABCDGIRSTW]]' ;;
  37543. +esac
  37544. +
  37545. +# Transform an extracted symbol line into a proper C declaration.
  37546. +# Some systems (esp. on ia64) link data and code symbols differently,
  37547. +# so use this general approach.
  37548. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  37549. +
  37550. +# Transform an extracted symbol line into symbol name and symbol address
  37551. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  37552. +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'"
  37553. +
  37554. +# Handle CRLF in mingw tool chain
  37555. +opt_cr=
  37556. +case $build_os in
  37557. +mingw*)
  37558. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  37559. + ;;
  37560. +esac
  37561. +
  37562. +# Try without a prefix underscore, then with it.
  37563. +for ac_symprfx in "" "_"; do
  37564. +
  37565. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  37566. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  37567. +
  37568. + # Write the raw and C identifiers.
  37569. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  37570. + # Fake it for dumpbin and say T for any non-static function
  37571. + # and D for any global variable.
  37572. + # Also find C++ and __fastcall symbols from MSVC++,
  37573. + # which start with @ or ?.
  37574. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  37575. +" {last_section=section; section=\$ 3};"\
  37576. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  37577. +" \$ 0!~/External *\|/{next};"\
  37578. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  37579. +" {if(hide[section]) next};"\
  37580. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  37581. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  37582. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  37583. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  37584. +" ' prfx=^$ac_symprfx]"
  37585. + else
  37586. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  37587. + fi
  37588. +
  37589. + # Check to see that the pipe works correctly.
  37590. + pipe_works=no
  37591. +
  37592. + rm -f conftest*
  37593. + cat > conftest.$ac_ext <<_LT_EOF
  37594. +#ifdef __cplusplus
  37595. +extern "C" {
  37596. +#endif
  37597. +char nm_test_var;
  37598. +void nm_test_func(void);
  37599. +void nm_test_func(void){}
  37600. +#ifdef __cplusplus
  37601. +}
  37602. +#endif
  37603. +int main(){nm_test_var='a';nm_test_func();return(0);}
  37604. +_LT_EOF
  37605. +
  37606. + if AC_TRY_EVAL(ac_compile); then
  37607. + # Now try to grab the symbols.
  37608. + nlist=conftest.nm
  37609. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  37610. + # Try sorting and uniquifying the output.
  37611. + if sort "$nlist" | uniq > "$nlist"T; then
  37612. + mv -f "$nlist"T "$nlist"
  37613. + else
  37614. + rm -f "$nlist"T
  37615. + fi
  37616. +
  37617. + # Make sure that we snagged all the symbols we need.
  37618. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  37619. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  37620. + cat <<_LT_EOF > conftest.$ac_ext
  37621. +#ifdef __cplusplus
  37622. +extern "C" {
  37623. +#endif
  37624. +
  37625. +_LT_EOF
  37626. + # Now generate the symbol file.
  37627. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  37628. +
  37629. + cat <<_LT_EOF >> conftest.$ac_ext
  37630. +
  37631. +/* The mapping between symbol names and symbols. */
  37632. +const struct {
  37633. + const char *name;
  37634. + void *address;
  37635. +}
  37636. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  37637. +{
  37638. + { "@PROGRAM@", (void *) 0 },
  37639. +_LT_EOF
  37640. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  37641. + cat <<\_LT_EOF >> conftest.$ac_ext
  37642. + {0, (void *) 0}
  37643. +};
  37644. +
  37645. +/* This works around a problem in FreeBSD linker */
  37646. +#ifdef FREEBSD_WORKAROUND
  37647. +static const void *lt_preloaded_setup() {
  37648. + return lt__PROGRAM__LTX_preloaded_symbols;
  37649. +}
  37650. +#endif
  37651. +
  37652. +#ifdef __cplusplus
  37653. +}
  37654. +#endif
  37655. +_LT_EOF
  37656. + # Now try linking the two files.
  37657. + mv conftest.$ac_objext conftstm.$ac_objext
  37658. + lt_save_LIBS="$LIBS"
  37659. + lt_save_CFLAGS="$CFLAGS"
  37660. + LIBS="conftstm.$ac_objext"
  37661. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  37662. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  37663. + pipe_works=yes
  37664. + fi
  37665. + LIBS="$lt_save_LIBS"
  37666. + CFLAGS="$lt_save_CFLAGS"
  37667. + else
  37668. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  37669. + fi
  37670. + else
  37671. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  37672. + fi
  37673. + else
  37674. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  37675. + fi
  37676. + else
  37677. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  37678. + cat conftest.$ac_ext >&5
  37679. + fi
  37680. + rm -rf conftest* conftst*
  37681. +
  37682. + # Do not use the global_symbol_pipe unless it works.
  37683. + if test "$pipe_works" = yes; then
  37684. + break
  37685. + else
  37686. + lt_cv_sys_global_symbol_pipe=
  37687. + fi
  37688. +done
  37689. +])
  37690. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  37691. + lt_cv_sys_global_symbol_to_cdecl=
  37692. +fi
  37693. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  37694. + AC_MSG_RESULT(failed)
  37695. +else
  37696. + AC_MSG_RESULT(ok)
  37697. +fi
  37698. +
  37699. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  37700. + [Take the output of nm and produce a listing of raw symbols and C names])
  37701. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  37702. + [Transform the output of nm in a proper C declaration])
  37703. +_LT_DECL([global_symbol_to_c_name_address],
  37704. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  37705. + [Transform the output of nm in a C name address pair])
  37706. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  37707. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  37708. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  37709. +]) # _LT_CMD_GLOBAL_SYMBOLS
  37710. +
  37711. +
  37712. +# _LT_COMPILER_PIC([TAGNAME])
  37713. +# ---------------------------
  37714. +m4_defun([_LT_COMPILER_PIC],
  37715. +[m4_require([_LT_TAG_COMPILER])dnl
  37716. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  37717. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  37718. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  37719. +
  37720. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  37721. +m4_if([$1], [CXX], [
  37722. + # C++ specific cases for pic, static, wl, etc.
  37723. + if test "$GXX" = yes; then
  37724. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37725. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  37726. +
  37727. + case $host_os in
  37728. + aix*)
  37729. + # All AIX code is PIC.
  37730. + if test "$host_cpu" = ia64; then
  37731. + # AIX 5 now supports IA64 processor
  37732. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37733. + fi
  37734. + ;;
  37735. +
  37736. + amigaos*)
  37737. + case $host_cpu in
  37738. + powerpc)
  37739. + # see comment about AmigaOS4 .so support
  37740. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  37741. + ;;
  37742. + m68k)
  37743. + # FIXME: we need at least 68020 code to build shared libraries, but
  37744. + # adding the `-m68020' flag to GCC prevents building anything better,
  37745. + # like `-m68040'.
  37746. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  37747. + ;;
  37748. + esac
  37749. + ;;
  37750. +
  37751. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  37752. + # PIC is the default for these OSes.
  37753. + ;;
  37754. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  37755. + # This hack is so that the source file can tell whether it is being
  37756. + # built for inclusion in a dll (and should export symbols for example).
  37757. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  37758. + # (--disable-auto-import) libraries
  37759. + m4_if([$1], [GCJ], [],
  37760. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  37761. + ;;
  37762. + darwin* | rhapsody*)
  37763. + # PIC is the default on this platform
  37764. + # Common symbols not allowed in MH_DYLIB files
  37765. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  37766. + ;;
  37767. + *djgpp*)
  37768. + # DJGPP does not support shared libraries at all
  37769. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  37770. + ;;
  37771. + interix[[3-9]]*)
  37772. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  37773. + # Instead, we relocate shared libraries at runtime.
  37774. + ;;
  37775. + sysv4*MP*)
  37776. + if test -d /usr/nec; then
  37777. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  37778. + fi
  37779. + ;;
  37780. + hpux*)
  37781. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  37782. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  37783. + # sets the default TLS model and affects inlining.
  37784. + case $host_cpu in
  37785. + hppa*64*)
  37786. + ;;
  37787. + *)
  37788. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  37789. + ;;
  37790. + esac
  37791. + ;;
  37792. + *qnx* | *nto*)
  37793. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  37794. + # it will coredump.
  37795. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  37796. + ;;
  37797. + *)
  37798. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  37799. + ;;
  37800. + esac
  37801. + else
  37802. + case $host_os in
  37803. + aix[[4-9]]*)
  37804. + # All AIX code is PIC.
  37805. + if test "$host_cpu" = ia64; then
  37806. + # AIX 5 now supports IA64 processor
  37807. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37808. + else
  37809. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  37810. + fi
  37811. + ;;
  37812. + chorus*)
  37813. + case $cc_basename in
  37814. + cxch68*)
  37815. + # Green Hills C++ Compiler
  37816. + # _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"
  37817. + ;;
  37818. + esac
  37819. + ;;
  37820. + dgux*)
  37821. + case $cc_basename in
  37822. + ec++*)
  37823. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37824. + ;;
  37825. + ghcx*)
  37826. + # Green Hills C++ Compiler
  37827. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  37828. + ;;
  37829. + *)
  37830. + ;;
  37831. + esac
  37832. + ;;
  37833. + freebsd* | dragonfly*)
  37834. + # FreeBSD uses GNU C++
  37835. + ;;
  37836. + hpux9* | hpux10* | hpux11*)
  37837. + case $cc_basename in
  37838. + CC*)
  37839. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37840. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  37841. + if test "$host_cpu" != ia64; then
  37842. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  37843. + fi
  37844. + ;;
  37845. + aCC*)
  37846. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37847. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  37848. + case $host_cpu in
  37849. + hppa*64*|ia64*)
  37850. + # +Z the default
  37851. + ;;
  37852. + *)
  37853. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  37854. + ;;
  37855. + esac
  37856. + ;;
  37857. + *)
  37858. + ;;
  37859. + esac
  37860. + ;;
  37861. + interix*)
  37862. + # This is c89, which is MS Visual C++ (no shared libs)
  37863. + # Anyone wants to do a port?
  37864. + ;;
  37865. + irix5* | irix6* | nonstopux*)
  37866. + case $cc_basename in
  37867. + CC*)
  37868. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37869. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  37870. + # CC pic flag -KPIC is the default.
  37871. + ;;
  37872. + *)
  37873. + ;;
  37874. + esac
  37875. + ;;
  37876. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  37877. + case $cc_basename in
  37878. + KCC*)
  37879. + # KAI C++ Compiler
  37880. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  37881. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  37882. + ;;
  37883. + ecpc* )
  37884. + # old Intel C++ for x86_64 which still supported -KPIC.
  37885. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37886. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37887. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  37888. + ;;
  37889. + icpc* )
  37890. + # Intel C++, used to be incompatible with GCC.
  37891. + # ICC 10 doesn't accept -KPIC any more.
  37892. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37893. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  37894. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  37895. + ;;
  37896. + pgCC* | pgcpp*)
  37897. + # Portland Group C++ compiler
  37898. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37899. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  37900. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37901. + ;;
  37902. + cxx*)
  37903. + # Compaq C++
  37904. + # Make sure the PIC flag is empty. It appears that all Alpha
  37905. + # Linux and Compaq Tru64 Unix objects are PIC.
  37906. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  37907. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  37908. + ;;
  37909. + xlc* | xlC*)
  37910. + # IBM XL 8.0 on PPC
  37911. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37912. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  37913. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  37914. + ;;
  37915. + *)
  37916. + case `$CC -V 2>&1 | sed 5q` in
  37917. + *Sun\ C*)
  37918. + # Sun C++ 5.9
  37919. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37920. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37921. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  37922. + ;;
  37923. + esac
  37924. + ;;
  37925. + esac
  37926. + ;;
  37927. + lynxos*)
  37928. + ;;
  37929. + m88k*)
  37930. + ;;
  37931. + mvs*)
  37932. + case $cc_basename in
  37933. + cxx*)
  37934. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  37935. + ;;
  37936. + *)
  37937. + ;;
  37938. + esac
  37939. + ;;
  37940. + netbsd* | netbsdelf*-gnu)
  37941. + ;;
  37942. + *qnx* | *nto*)
  37943. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  37944. + # it will coredump.
  37945. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  37946. + ;;
  37947. + osf3* | osf4* | osf5*)
  37948. + case $cc_basename in
  37949. + KCC*)
  37950. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  37951. + ;;
  37952. + RCC*)
  37953. + # Rational C++ 2.4.1
  37954. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  37955. + ;;
  37956. + cxx*)
  37957. + # Digital/Compaq C++
  37958. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  37959. + # Make sure the PIC flag is empty. It appears that all Alpha
  37960. + # Linux and Compaq Tru64 Unix objects are PIC.
  37961. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  37962. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  37963. + ;;
  37964. + *)
  37965. + ;;
  37966. + esac
  37967. + ;;
  37968. + psos*)
  37969. + ;;
  37970. + solaris*)
  37971. + case $cc_basename in
  37972. + CC*)
  37973. + # Sun C++ 4.2, 5.x and Centerline C++
  37974. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  37975. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37976. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  37977. + ;;
  37978. + gcx*)
  37979. + # Green Hills C++ Compiler
  37980. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  37981. + ;;
  37982. + *)
  37983. + ;;
  37984. + esac
  37985. + ;;
  37986. + sunos4*)
  37987. + case $cc_basename in
  37988. + CC*)
  37989. + # Sun C++ 4.x
  37990. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  37991. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  37992. + ;;
  37993. + lcc*)
  37994. + # Lucid
  37995. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  37996. + ;;
  37997. + *)
  37998. + ;;
  37999. + esac
  38000. + ;;
  38001. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  38002. + case $cc_basename in
  38003. + CC*)
  38004. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38005. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  38006. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  38007. + ;;
  38008. + esac
  38009. + ;;
  38010. + tandem*)
  38011. + case $cc_basename in
  38012. + NCC*)
  38013. + # NonStop-UX NCC 3.20
  38014. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  38015. + ;;
  38016. + *)
  38017. + ;;
  38018. + esac
  38019. + ;;
  38020. + vxworks*)
  38021. + ;;
  38022. + *)
  38023. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  38024. + ;;
  38025. + esac
  38026. + fi
  38027. +],
  38028. +[
  38029. + if test "$GCC" = yes; then
  38030. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38031. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  38032. +
  38033. + case $host_os in
  38034. + aix*)
  38035. + # All AIX code is PIC.
  38036. + if test "$host_cpu" = ia64; then
  38037. + # AIX 5 now supports IA64 processor
  38038. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  38039. + fi
  38040. + ;;
  38041. +
  38042. + amigaos*)
  38043. + case $host_cpu in
  38044. + powerpc)
  38045. + # see comment about AmigaOS4 .so support
  38046. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  38047. + ;;
  38048. + m68k)
  38049. + # FIXME: we need at least 68020 code to build shared libraries, but
  38050. + # adding the `-m68020' flag to GCC prevents building anything better,
  38051. + # like `-m68040'.
  38052. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  38053. + ;;
  38054. + esac
  38055. + ;;
  38056. +
  38057. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  38058. + # PIC is the default for these OSes.
  38059. + ;;
  38060. +
  38061. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  38062. + # This hack is so that the source file can tell whether it is being
  38063. + # built for inclusion in a dll (and should export symbols for example).
  38064. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  38065. + # (--disable-auto-import) libraries
  38066. + m4_if([$1], [GCJ], [],
  38067. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  38068. + ;;
  38069. +
  38070. + darwin* | rhapsody*)
  38071. + # PIC is the default on this platform
  38072. + # Common symbols not allowed in MH_DYLIB files
  38073. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  38074. + ;;
  38075. +
  38076. + hpux*)
  38077. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  38078. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  38079. + # sets the default TLS model and affects inlining.
  38080. + case $host_cpu in
  38081. + hppa*64*)
  38082. + # +Z the default
  38083. + ;;
  38084. + *)
  38085. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  38086. + ;;
  38087. + esac
  38088. + ;;
  38089. +
  38090. + interix[[3-9]]*)
  38091. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  38092. + # Instead, we relocate shared libraries at runtime.
  38093. + ;;
  38094. +
  38095. + msdosdjgpp*)
  38096. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  38097. + # on systems that don't support them.
  38098. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  38099. + enable_shared=no
  38100. + ;;
  38101. +
  38102. + *nto* | *qnx*)
  38103. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  38104. + # it will coredump.
  38105. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  38106. + ;;
  38107. +
  38108. + sysv4*MP*)
  38109. + if test -d /usr/nec; then
  38110. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  38111. + fi
  38112. + ;;
  38113. +
  38114. + *)
  38115. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  38116. + ;;
  38117. + esac
  38118. + else
  38119. + # PORTME Check for flag to pass linker flags through the system compiler.
  38120. + case $host_os in
  38121. + aix*)
  38122. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38123. + if test "$host_cpu" = ia64; then
  38124. + # AIX 5 now supports IA64 processor
  38125. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  38126. + else
  38127. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  38128. + fi
  38129. + ;;
  38130. +
  38131. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  38132. + # This hack is so that the source file can tell whether it is being
  38133. + # built for inclusion in a dll (and should export symbols for example).
  38134. + m4_if([$1], [GCJ], [],
  38135. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  38136. + ;;
  38137. +
  38138. + hpux9* | hpux10* | hpux11*)
  38139. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38140. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  38141. + # not for PA HP-UX.
  38142. + case $host_cpu in
  38143. + hppa*64*|ia64*)
  38144. + # +Z the default
  38145. + ;;
  38146. + *)
  38147. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  38148. + ;;
  38149. + esac
  38150. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  38151. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  38152. + ;;
  38153. +
  38154. + irix5* | irix6* | nonstopux*)
  38155. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38156. + # PIC (with -KPIC) is the default.
  38157. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  38158. + ;;
  38159. +
  38160. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  38161. + case $cc_basename in
  38162. + # old Intel for x86_64 which still supported -KPIC.
  38163. + ecc*)
  38164. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38165. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  38166. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  38167. + ;;
  38168. + # icc used to be incompatible with GCC.
  38169. + # ICC 10 doesn't accept -KPIC any more.
  38170. + icc* | ifort*)
  38171. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38172. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  38173. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  38174. + ;;
  38175. + # Lahey Fortran 8.1.
  38176. + lf95*)
  38177. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38178. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  38179. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  38180. + ;;
  38181. + pgcc* | pgf77* | pgf90* | pgf95*)
  38182. + # Portland Group compilers (*not* the Pentium gcc compiler,
  38183. + # which looks to be a dead project)
  38184. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38185. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  38186. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  38187. + ;;
  38188. + ccc*)
  38189. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38190. + # All Alpha code is PIC.
  38191. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  38192. + ;;
  38193. + xl*)
  38194. + # IBM XL C 8.0/Fortran 10.1 on PPC
  38195. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38196. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  38197. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  38198. + ;;
  38199. + *)
  38200. + case `$CC -V 2>&1 | sed 5q` in
  38201. + *Sun\ C*)
  38202. + # Sun C 5.9
  38203. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  38204. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  38205. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38206. + ;;
  38207. + *Sun\ F*)
  38208. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  38209. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  38210. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  38211. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  38212. + ;;
  38213. + esac
  38214. + ;;
  38215. + esac
  38216. + ;;
  38217. +
  38218. + newsos6)
  38219. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  38220. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  38221. + ;;
  38222. +
  38223. + *nto* | *qnx*)
  38224. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  38225. + # it will coredump.
  38226. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  38227. + ;;
  38228. +
  38229. + osf3* | osf4* | osf5*)
  38230. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38231. + # All OSF/1 code is PIC.
  38232. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  38233. + ;;
  38234. +
  38235. + rdos*)
  38236. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  38237. + ;;
  38238. +
  38239. + solaris*)
  38240. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  38241. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  38242. + case $cc_basename in
  38243. + f77* | f90* | f95*)
  38244. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  38245. + *)
  38246. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  38247. + esac
  38248. + ;;
  38249. +
  38250. + sunos4*)
  38251. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  38252. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  38253. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  38254. + ;;
  38255. +
  38256. + sysv4 | sysv4.2uw2* | sysv4.3*)
  38257. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38258. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  38259. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  38260. + ;;
  38261. +
  38262. + sysv4*MP*)
  38263. + if test -d /usr/nec ;then
  38264. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  38265. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  38266. + fi
  38267. + ;;
  38268. +
  38269. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  38270. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38271. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  38272. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  38273. + ;;
  38274. +
  38275. + unicos*)
  38276. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  38277. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  38278. + ;;
  38279. +
  38280. + uts4*)
  38281. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  38282. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  38283. + ;;
  38284. +
  38285. + *)
  38286. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  38287. + ;;
  38288. + esac
  38289. + fi
  38290. +])
  38291. +case $host_os in
  38292. + # For platforms which do not support PIC, -DPIC is meaningless:
  38293. + *djgpp*)
  38294. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  38295. + ;;
  38296. + *)
  38297. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  38298. + ;;
  38299. +esac
  38300. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  38301. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  38302. + [How to pass a linker flag through the compiler])
  38303. +
  38304. +#
  38305. +# Check to make sure the PIC flag actually works.
  38306. +#
  38307. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  38308. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  38309. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  38310. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  38311. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  38312. + "" | " "*) ;;
  38313. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  38314. + esac],
  38315. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  38316. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  38317. +fi
  38318. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  38319. + [Additional compiler flags for building library objects])
  38320. +
  38321. +#
  38322. +# Check to make sure the static flag actually works.
  38323. +#
  38324. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  38325. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  38326. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  38327. + $lt_tmp_static_flag,
  38328. + [],
  38329. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  38330. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  38331. + [Compiler flag to prevent dynamic linking])
  38332. +])# _LT_COMPILER_PIC
  38333. +
  38334. +
  38335. +# _LT_LINKER_SHLIBS([TAGNAME])
  38336. +# ----------------------------
  38337. +# See if the linker supports building shared libraries.
  38338. +m4_defun([_LT_LINKER_SHLIBS],
  38339. +[AC_REQUIRE([LT_PATH_LD])dnl
  38340. +AC_REQUIRE([LT_PATH_NM])dnl
  38341. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  38342. +m4_require([_LT_DECL_EGREP])dnl
  38343. +m4_require([_LT_DECL_SED])dnl
  38344. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  38345. +m4_require([_LT_TAG_COMPILER])dnl
  38346. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  38347. +m4_if([$1], [CXX], [
  38348. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  38349. + case $host_os in
  38350. + aix[[4-9]]*)
  38351. + # If we're using GNU nm, then we don't want the "-C" option.
  38352. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  38353. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  38354. + _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'
  38355. + else
  38356. + _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'
  38357. + fi
  38358. + ;;
  38359. + pw32*)
  38360. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  38361. + ;;
  38362. + cygwin* | mingw* | cegcc*)
  38363. + _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'
  38364. + ;;
  38365. + linux* | k*bsd*-gnu)
  38366. + _LT_TAGVAR(link_all_deplibs, $1)=no
  38367. + ;;
  38368. + *)
  38369. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  38370. + ;;
  38371. + esac
  38372. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  38373. +], [
  38374. + runpath_var=
  38375. + _LT_TAGVAR(allow_undefined_flag, $1)=
  38376. + _LT_TAGVAR(always_export_symbols, $1)=no
  38377. + _LT_TAGVAR(archive_cmds, $1)=
  38378. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  38379. + _LT_TAGVAR(compiler_needs_object, $1)=no
  38380. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  38381. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  38382. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  38383. + _LT_TAGVAR(hardcode_automatic, $1)=no
  38384. + _LT_TAGVAR(hardcode_direct, $1)=no
  38385. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  38386. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  38387. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  38388. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  38389. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  38390. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  38391. + _LT_TAGVAR(inherit_rpath, $1)=no
  38392. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  38393. + _LT_TAGVAR(module_cmds, $1)=
  38394. + _LT_TAGVAR(module_expsym_cmds, $1)=
  38395. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  38396. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  38397. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  38398. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  38399. + # include_expsyms should be a list of space-separated symbols to be *always*
  38400. + # included in the symbol list
  38401. + _LT_TAGVAR(include_expsyms, $1)=
  38402. + # exclude_expsyms can be an extended regexp of symbols to exclude
  38403. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  38404. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  38405. + # as well as any symbol that contains `d'.
  38406. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  38407. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  38408. + # platforms (ab)use it in PIC code, but their linkers get confused if
  38409. + # the symbol is explicitly referenced. Since portable code cannot
  38410. + # rely on this symbol name, it's probably fine to never include it in
  38411. + # preloaded symbol tables.
  38412. + # Exclude shared library initialization/finalization symbols.
  38413. +dnl Note also adjust exclude_expsyms for C++ above.
  38414. + extract_expsyms_cmds=
  38415. +
  38416. + case $host_os in
  38417. + cygwin* | mingw* | pw32* | cegcc*)
  38418. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  38419. + # When not using gcc, we currently assume that we are using
  38420. + # Microsoft Visual C++.
  38421. + if test "$GCC" != yes; then
  38422. + with_gnu_ld=no
  38423. + fi
  38424. + ;;
  38425. + interix*)
  38426. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  38427. + with_gnu_ld=yes
  38428. + ;;
  38429. + openbsd*)
  38430. + with_gnu_ld=no
  38431. + ;;
  38432. + linux* | k*bsd*-gnu)
  38433. + _LT_TAGVAR(link_all_deplibs, $1)=no
  38434. + ;;
  38435. + esac
  38436. +
  38437. + _LT_TAGVAR(ld_shlibs, $1)=yes
  38438. + if test "$with_gnu_ld" = yes; then
  38439. + # If archive_cmds runs LD, not CC, wlarc should be empty
  38440. + wlarc='${wl}'
  38441. +
  38442. + # Set some defaults for GNU ld with shared library support. These
  38443. + # are reset later if shared libraries are not supported. Putting them
  38444. + # here allows them to be overridden if necessary.
  38445. + runpath_var=LD_RUN_PATH
  38446. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  38447. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  38448. + # ancient GNU ld didn't support --whole-archive et. al.
  38449. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  38450. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  38451. + else
  38452. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  38453. + fi
  38454. + supports_anon_versioning=no
  38455. + case `$LD -v 2>&1` in
  38456. + *GNU\ gold*) supports_anon_versioning=yes ;;
  38457. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  38458. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  38459. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  38460. + *\ 2.11.*) ;; # other 2.11 versions
  38461. + *) supports_anon_versioning=yes ;;
  38462. + esac
  38463. +
  38464. + # See if GNU ld supports shared libraries.
  38465. + case $host_os in
  38466. + aix[[3-9]]*)
  38467. + # On AIX/PPC, the GNU linker is very broken
  38468. + if test "$host_cpu" != ia64; then
  38469. + _LT_TAGVAR(ld_shlibs, $1)=no
  38470. + cat <<_LT_EOF 1>&2
  38471. +
  38472. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  38473. +*** to be unable to reliably create shared libraries on AIX.
  38474. +*** Therefore, libtool is disabling shared libraries support. If you
  38475. +*** really care for shared libraries, you may want to modify your PATH
  38476. +*** so that a non-GNU linker is found, and then restart.
  38477. +
  38478. +_LT_EOF
  38479. + fi
  38480. + ;;
  38481. +
  38482. + amigaos*)
  38483. + case $host_cpu in
  38484. + powerpc)
  38485. + # see comment about AmigaOS4 .so support
  38486. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38487. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  38488. + ;;
  38489. + m68k)
  38490. + _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)'
  38491. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  38492. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  38493. + ;;
  38494. + esac
  38495. + ;;
  38496. +
  38497. + beos*)
  38498. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  38499. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  38500. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  38501. + # support --undefined. This deserves some investigation. FIXME
  38502. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38503. + else
  38504. + _LT_TAGVAR(ld_shlibs, $1)=no
  38505. + fi
  38506. + ;;
  38507. +
  38508. + cygwin* | mingw* | pw32* | cegcc*)
  38509. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  38510. + # as there is no search path for DLLs.
  38511. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  38512. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  38513. + _LT_TAGVAR(always_export_symbols, $1)=no
  38514. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  38515. + _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'
  38516. +
  38517. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  38518. + _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'
  38519. + # If the export-symbols file already is a .def file (1st line
  38520. + # is EXPORTS), use it as is; otherwise, prepend...
  38521. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  38522. + cp $export_symbols $output_objdir/$soname.def;
  38523. + else
  38524. + echo EXPORTS > $output_objdir/$soname.def;
  38525. + cat $export_symbols >> $output_objdir/$soname.def;
  38526. + fi~
  38527. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  38528. + else
  38529. + _LT_TAGVAR(ld_shlibs, $1)=no
  38530. + fi
  38531. + ;;
  38532. +
  38533. + interix[[3-9]]*)
  38534. + _LT_TAGVAR(hardcode_direct, $1)=no
  38535. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38536. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  38537. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  38538. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  38539. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  38540. + # default) and relocated if they conflict, which is a slow very memory
  38541. + # consuming and fragmenting process. To avoid this, we pick a random,
  38542. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  38543. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  38544. + _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'
  38545. + _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'
  38546. + ;;
  38547. +
  38548. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  38549. + tmp_diet=no
  38550. + if test "$host_os" = linux-dietlibc; then
  38551. + case $cc_basename in
  38552. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  38553. + esac
  38554. + fi
  38555. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  38556. + && test "$tmp_diet" = no
  38557. + then
  38558. + tmp_addflag=
  38559. + tmp_sharedflag='-shared'
  38560. + case $cc_basename,$host_cpu in
  38561. + pgcc*) # Portland Group C compiler
  38562. + _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'
  38563. + tmp_addflag=' $pic_flag'
  38564. + ;;
  38565. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  38566. + _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'
  38567. + tmp_addflag=' $pic_flag -Mnomain' ;;
  38568. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  38569. + tmp_addflag=' -i_dynamic' ;;
  38570. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  38571. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  38572. + ifc* | ifort*) # Intel Fortran compiler
  38573. + tmp_addflag=' -nofor_main' ;;
  38574. + lf95*) # Lahey Fortran 8.1
  38575. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  38576. + tmp_sharedflag='--shared' ;;
  38577. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  38578. + tmp_sharedflag='-qmkshrobj'
  38579. + tmp_addflag= ;;
  38580. + esac
  38581. + case `$CC -V 2>&1 | sed 5q` in
  38582. + *Sun\ C*) # Sun C 5.9
  38583. + _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'
  38584. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  38585. + tmp_sharedflag='-G' ;;
  38586. + *Sun\ F*) # Sun Fortran 8.3
  38587. + tmp_sharedflag='-G' ;;
  38588. + esac
  38589. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38590. +
  38591. + if test "x$supports_anon_versioning" = xyes; then
  38592. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  38593. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  38594. + echo "local: *; };" >> $output_objdir/$libname.ver~
  38595. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  38596. + fi
  38597. +
  38598. + case $cc_basename in
  38599. + xlf*)
  38600. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  38601. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  38602. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  38603. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  38604. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  38605. + if test "x$supports_anon_versioning" = xyes; then
  38606. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  38607. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  38608. + echo "local: *; };" >> $output_objdir/$libname.ver~
  38609. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  38610. + fi
  38611. + ;;
  38612. + esac
  38613. + else
  38614. + _LT_TAGVAR(ld_shlibs, $1)=no
  38615. + fi
  38616. + ;;
  38617. +
  38618. + netbsd* | netbsdelf*-gnu)
  38619. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  38620. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  38621. + wlarc=
  38622. + else
  38623. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38624. + _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'
  38625. + fi
  38626. + ;;
  38627. +
  38628. + solaris*)
  38629. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  38630. + _LT_TAGVAR(ld_shlibs, $1)=no
  38631. + cat <<_LT_EOF 1>&2
  38632. +
  38633. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  38634. +*** create shared libraries on Solaris systems. Therefore, libtool
  38635. +*** is disabling shared libraries support. We urge you to upgrade GNU
  38636. +*** binutils to release 2.9.1 or newer. Another option is to modify
  38637. +*** your PATH or compiler configuration so that the native linker is
  38638. +*** used, and then restart.
  38639. +
  38640. +_LT_EOF
  38641. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  38642. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38643. + _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'
  38644. + else
  38645. + _LT_TAGVAR(ld_shlibs, $1)=no
  38646. + fi
  38647. + ;;
  38648. +
  38649. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  38650. + case `$LD -v 2>&1` in
  38651. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  38652. + _LT_TAGVAR(ld_shlibs, $1)=no
  38653. + cat <<_LT_EOF 1>&2
  38654. +
  38655. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  38656. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  38657. +*** is disabling shared libraries support. We urge you to upgrade GNU
  38658. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  38659. +*** your PATH or compiler configuration so that the native linker is
  38660. +*** used, and then restart.
  38661. +
  38662. +_LT_EOF
  38663. + ;;
  38664. + *)
  38665. + # For security reasons, it is highly recommended that you always
  38666. + # use absolute paths for naming shared libraries, and exclude the
  38667. + # DT_RUNPATH tag from executables and libraries. But doing so
  38668. + # requires that you compile everything twice, which is a pain.
  38669. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  38670. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  38671. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38672. + _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'
  38673. + else
  38674. + _LT_TAGVAR(ld_shlibs, $1)=no
  38675. + fi
  38676. + ;;
  38677. + esac
  38678. + ;;
  38679. +
  38680. + sunos4*)
  38681. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  38682. + wlarc=
  38683. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38684. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38685. + ;;
  38686. +
  38687. + *)
  38688. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  38689. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38690. + _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'
  38691. + else
  38692. + _LT_TAGVAR(ld_shlibs, $1)=no
  38693. + fi
  38694. + ;;
  38695. + esac
  38696. +
  38697. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  38698. + runpath_var=
  38699. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  38700. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  38701. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  38702. + fi
  38703. + else
  38704. + # PORTME fill in a description of your system's linker (not GNU ld)
  38705. + case $host_os in
  38706. + aix3*)
  38707. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  38708. + _LT_TAGVAR(always_export_symbols, $1)=yes
  38709. + _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'
  38710. + # Note: this linker hardcodes the directories in LIBPATH if there
  38711. + # are no directories specified by -L.
  38712. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  38713. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  38714. + # Neither direct hardcoding nor static linking is supported with a
  38715. + # broken collect2.
  38716. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  38717. + fi
  38718. + ;;
  38719. +
  38720. + aix[[4-9]]*)
  38721. + if test "$host_cpu" = ia64; then
  38722. + # On IA64, the linker does run time linking by default, so we don't
  38723. + # have to do anything special.
  38724. + aix_use_runtimelinking=no
  38725. + exp_sym_flag='-Bexport'
  38726. + no_entry_flag=""
  38727. + else
  38728. + # If we're using GNU nm, then we don't want the "-C" option.
  38729. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  38730. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  38731. + _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'
  38732. + else
  38733. + _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'
  38734. + fi
  38735. + aix_use_runtimelinking=no
  38736. +
  38737. + # Test if we are trying to use run time linking or normal
  38738. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  38739. + # need to do runtime linking.
  38740. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  38741. + for ld_flag in $LDFLAGS; do
  38742. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  38743. + aix_use_runtimelinking=yes
  38744. + break
  38745. + fi
  38746. + done
  38747. + ;;
  38748. + esac
  38749. +
  38750. + exp_sym_flag='-bexport'
  38751. + no_entry_flag='-bnoentry'
  38752. + fi
  38753. +
  38754. + # When large executables or shared objects are built, AIX ld can
  38755. + # have problems creating the table of contents. If linking a library
  38756. + # or program results in "error TOC overflow" add -mminimal-toc to
  38757. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  38758. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  38759. +
  38760. + _LT_TAGVAR(archive_cmds, $1)=''
  38761. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38762. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  38763. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  38764. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  38765. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  38766. +
  38767. + if test "$GCC" = yes; then
  38768. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  38769. + # We only want to do this on AIX 4.2 and lower, the check
  38770. + # below for broken collect2 doesn't work under 4.3+
  38771. + collect2name=`${CC} -print-prog-name=collect2`
  38772. + if test -f "$collect2name" &&
  38773. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  38774. + then
  38775. + # We have reworked collect2
  38776. + :
  38777. + else
  38778. + # We have old collect2
  38779. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  38780. + # It fails to find uninstalled libraries when the uninstalled
  38781. + # path is not listed in the libpath. Setting hardcode_minus_L
  38782. + # to unsupported forces relinking
  38783. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  38784. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  38785. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  38786. + fi
  38787. + ;;
  38788. + esac
  38789. + shared_flag='-shared'
  38790. + if test "$aix_use_runtimelinking" = yes; then
  38791. + shared_flag="$shared_flag "'${wl}-G'
  38792. + fi
  38793. + _LT_TAGVAR(link_all_deplibs, $1)=no
  38794. + else
  38795. + # not using gcc
  38796. + if test "$host_cpu" = ia64; then
  38797. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  38798. + # chokes on -Wl,-G. The following line is correct:
  38799. + shared_flag='-G'
  38800. + else
  38801. + if test "$aix_use_runtimelinking" = yes; then
  38802. + shared_flag='${wl}-G'
  38803. + else
  38804. + shared_flag='${wl}-bM:SRE'
  38805. + fi
  38806. + fi
  38807. + fi
  38808. +
  38809. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  38810. + # It seems that -bexpall does not export symbols beginning with
  38811. + # underscore (_), so it is better to generate a list of symbols to export.
  38812. + _LT_TAGVAR(always_export_symbols, $1)=yes
  38813. + if test "$aix_use_runtimelinking" = yes; then
  38814. + # Warning - without using the other runtime loading flags (-brtl),
  38815. + # -berok will link without error, but may produce a broken library.
  38816. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  38817. + # Determine the default libpath from the value encoded in an
  38818. + # empty executable.
  38819. + _LT_SYS_MODULE_PATH_AIX
  38820. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  38821. + _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"
  38822. + else
  38823. + if test "$host_cpu" = ia64; then
  38824. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  38825. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  38826. + _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"
  38827. + else
  38828. + # Determine the default libpath from the value encoded in an
  38829. + # empty executable.
  38830. + _LT_SYS_MODULE_PATH_AIX
  38831. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  38832. + # Warning - without using the other run time loading flags,
  38833. + # -berok will link without error, but may produce a broken library.
  38834. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  38835. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  38836. + # Exported symbols can be pulled into shared objects from archives
  38837. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  38838. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  38839. + # This is similar to how AIX traditionally builds its shared libraries.
  38840. + _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'
  38841. + fi
  38842. + fi
  38843. + ;;
  38844. +
  38845. + amigaos*)
  38846. + case $host_cpu in
  38847. + powerpc)
  38848. + # see comment about AmigaOS4 .so support
  38849. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38850. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  38851. + ;;
  38852. + m68k)
  38853. + _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)'
  38854. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  38855. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  38856. + ;;
  38857. + esac
  38858. + ;;
  38859. +
  38860. + bsdi[[45]]*)
  38861. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  38862. + ;;
  38863. +
  38864. + cygwin* | mingw* | pw32* | cegcc*)
  38865. + # When not using gcc, we currently assume that we are using
  38866. + # Microsoft Visual C++.
  38867. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  38868. + # no search path for DLLs.
  38869. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  38870. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  38871. + # Tell ltmain to make .lib files, not .a files.
  38872. + libext=lib
  38873. + # Tell ltmain to make .dll files, not .so files.
  38874. + shrext_cmds=".dll"
  38875. + # FIXME: Setting linknames here is a bad hack.
  38876. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  38877. + # The linker will automatically build a .lib file if we build a DLL.
  38878. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  38879. + # FIXME: Should let the user specify the lib program.
  38880. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  38881. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  38882. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  38883. + ;;
  38884. +
  38885. + darwin* | rhapsody*)
  38886. + _LT_DARWIN_LINKER_FEATURES($1)
  38887. + ;;
  38888. +
  38889. + dgux*)
  38890. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38891. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  38892. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38893. + ;;
  38894. +
  38895. + freebsd1*)
  38896. + _LT_TAGVAR(ld_shlibs, $1)=no
  38897. + ;;
  38898. +
  38899. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  38900. + # support. Future versions do this automatically, but an explicit c++rt0.o
  38901. + # does not break anything, and helps significantly (at the cost of a little
  38902. + # extra space).
  38903. + freebsd2.2*)
  38904. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  38905. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  38906. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38907. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38908. + ;;
  38909. +
  38910. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  38911. + freebsd2*)
  38912. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  38913. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38914. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  38915. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38916. + ;;
  38917. +
  38918. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  38919. + freebsd* | dragonfly*)
  38920. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  38921. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  38922. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38923. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38924. + ;;
  38925. +
  38926. + hpux9*)
  38927. + if test "$GCC" = yes; then
  38928. + _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'
  38929. + else
  38930. + _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'
  38931. + fi
  38932. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  38933. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  38934. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38935. +
  38936. + # hardcode_minus_L: Not really in the search PATH,
  38937. + # but as the default location of the library.
  38938. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  38939. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  38940. + ;;
  38941. +
  38942. + hpux10*)
  38943. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  38944. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  38945. + else
  38946. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  38947. + fi
  38948. + if test "$with_gnu_ld" = no; then
  38949. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  38950. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  38951. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  38952. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38953. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  38954. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  38955. + # hardcode_minus_L: Not really in the search PATH,
  38956. + # but as the default location of the library.
  38957. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  38958. + fi
  38959. + ;;
  38960. +
  38961. + hpux11*)
  38962. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  38963. + case $host_cpu in
  38964. + hppa*64*)
  38965. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38966. + ;;
  38967. + ia64*)
  38968. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  38969. + ;;
  38970. + *)
  38971. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  38972. + ;;
  38973. + esac
  38974. + else
  38975. + case $host_cpu in
  38976. + hppa*64*)
  38977. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38978. + ;;
  38979. + ia64*)
  38980. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  38981. + ;;
  38982. + *)
  38983. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  38984. + ;;
  38985. + esac
  38986. + fi
  38987. + if test "$with_gnu_ld" = no; then
  38988. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  38989. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  38990. +
  38991. + case $host_cpu in
  38992. + hppa*64*|ia64*)
  38993. + _LT_TAGVAR(hardcode_direct, $1)=no
  38994. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  38995. + ;;
  38996. + *)
  38997. + _LT_TAGVAR(hardcode_direct, $1)=yes
  38998. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  38999. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  39000. +
  39001. + # hardcode_minus_L: Not really in the search PATH,
  39002. + # but as the default location of the library.
  39003. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  39004. + ;;
  39005. + esac
  39006. + fi
  39007. + ;;
  39008. +
  39009. + irix5* | irix6* | nonstopux*)
  39010. + if test "$GCC" = yes; then
  39011. + _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'
  39012. + # Try to use the -exported_symbol ld option, if it does not
  39013. + # work, assume that -exports_file does not work either and
  39014. + # implicitly export all symbols.
  39015. + save_LDFLAGS="$LDFLAGS"
  39016. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  39017. + AC_LINK_IFELSE(int foo(void) {},
  39018. + _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'
  39019. + )
  39020. + LDFLAGS="$save_LDFLAGS"
  39021. + else
  39022. + _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'
  39023. + _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'
  39024. + fi
  39025. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  39026. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  39027. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  39028. + _LT_TAGVAR(inherit_rpath, $1)=yes
  39029. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  39030. + ;;
  39031. +
  39032. + netbsd* | netbsdelf*-gnu)
  39033. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  39034. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  39035. + else
  39036. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  39037. + fi
  39038. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  39039. + _LT_TAGVAR(hardcode_direct, $1)=yes
  39040. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39041. + ;;
  39042. +
  39043. + newsos6)
  39044. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39045. + _LT_TAGVAR(hardcode_direct, $1)=yes
  39046. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  39047. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  39048. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39049. + ;;
  39050. +
  39051. + *nto* | *qnx*)
  39052. + ;;
  39053. +
  39054. + openbsd*)
  39055. + if test -f /usr/libexec/ld.so; then
  39056. + _LT_TAGVAR(hardcode_direct, $1)=yes
  39057. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39058. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  39059. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  39060. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  39061. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  39062. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  39063. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  39064. + else
  39065. + case $host_os in
  39066. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  39067. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  39068. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  39069. + ;;
  39070. + *)
  39071. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  39072. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  39073. + ;;
  39074. + esac
  39075. + fi
  39076. + else
  39077. + _LT_TAGVAR(ld_shlibs, $1)=no
  39078. + fi
  39079. + ;;
  39080. +
  39081. + os2*)
  39082. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  39083. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  39084. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  39085. + _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'
  39086. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  39087. + ;;
  39088. +
  39089. + osf3*)
  39090. + if test "$GCC" = yes; then
  39091. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  39092. + _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'
  39093. + else
  39094. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  39095. + _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'
  39096. + fi
  39097. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  39098. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  39099. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  39100. + ;;
  39101. +
  39102. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  39103. + if test "$GCC" = yes; then
  39104. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  39105. + _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'
  39106. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  39107. + else
  39108. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  39109. + _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'
  39110. + _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~
  39111. + $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'
  39112. +
  39113. + # Both c and cxx compiler support -rpath directly
  39114. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  39115. + fi
  39116. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  39117. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  39118. + ;;
  39119. +
  39120. + solaris*)
  39121. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  39122. + if test "$GCC" = yes; then
  39123. + wlarc='${wl}'
  39124. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  39125. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  39126. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  39127. + else
  39128. + case `$CC -V 2>&1` in
  39129. + *"Compilers 5.0"*)
  39130. + wlarc=''
  39131. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39132. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  39133. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  39134. + ;;
  39135. + *)
  39136. + wlarc='${wl}'
  39137. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  39138. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  39139. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  39140. + ;;
  39141. + esac
  39142. + fi
  39143. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  39144. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39145. + case $host_os in
  39146. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  39147. + *)
  39148. + # The compiler driver will combine and reorder linker options,
  39149. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  39150. + # but is careful enough not to reorder.
  39151. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  39152. + if test "$GCC" = yes; then
  39153. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  39154. + else
  39155. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  39156. + fi
  39157. + ;;
  39158. + esac
  39159. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  39160. + ;;
  39161. +
  39162. + sunos4*)
  39163. + if test "x$host_vendor" = xsequent; then
  39164. + # Use $CC to link under sequent, because it throws in some extra .o
  39165. + # files that make .init and .fini sections work.
  39166. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  39167. + else
  39168. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  39169. + fi
  39170. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  39171. + _LT_TAGVAR(hardcode_direct, $1)=yes
  39172. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  39173. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39174. + ;;
  39175. +
  39176. + sysv4)
  39177. + case $host_vendor in
  39178. + sni)
  39179. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39180. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  39181. + ;;
  39182. + siemens)
  39183. + ## LD is ld it makes a PLAMLIB
  39184. + ## CC just makes a GrossModule.
  39185. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  39186. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  39187. + _LT_TAGVAR(hardcode_direct, $1)=no
  39188. + ;;
  39189. + motorola)
  39190. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39191. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  39192. + ;;
  39193. + esac
  39194. + runpath_var='LD_RUN_PATH'
  39195. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39196. + ;;
  39197. +
  39198. + sysv4.3*)
  39199. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39200. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39201. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  39202. + ;;
  39203. +
  39204. + sysv4*MP*)
  39205. + if test -d /usr/nec; then
  39206. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39207. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39208. + runpath_var=LD_RUN_PATH
  39209. + hardcode_runpath_var=yes
  39210. + _LT_TAGVAR(ld_shlibs, $1)=yes
  39211. + fi
  39212. + ;;
  39213. +
  39214. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  39215. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  39216. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  39217. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39218. + runpath_var='LD_RUN_PATH'
  39219. +
  39220. + if test "$GCC" = yes; then
  39221. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39222. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39223. + else
  39224. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39225. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39226. + fi
  39227. + ;;
  39228. +
  39229. + sysv5* | sco3.2v5* | sco5v6*)
  39230. + # Note: We can NOT use -z defs as we might desire, because we do not
  39231. + # link with -lc, and that would cause any symbols used from libc to
  39232. + # always be unresolved, which means just about no library would
  39233. + # ever link correctly. If we're not using GNU ld we use -z text
  39234. + # though, which does catch some bad symbols but isn't as heavy-handed
  39235. + # as -z defs.
  39236. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  39237. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  39238. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  39239. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39240. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  39241. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  39242. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  39243. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  39244. + runpath_var='LD_RUN_PATH'
  39245. +
  39246. + if test "$GCC" = yes; then
  39247. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39248. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39249. + else
  39250. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39251. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  39252. + fi
  39253. + ;;
  39254. +
  39255. + uts4*)
  39256. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  39257. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  39258. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39259. + ;;
  39260. +
  39261. + *)
  39262. + _LT_TAGVAR(ld_shlibs, $1)=no
  39263. + ;;
  39264. + esac
  39265. +
  39266. + if test x$host_vendor = xsni; then
  39267. + case $host in
  39268. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  39269. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  39270. + ;;
  39271. + esac
  39272. + fi
  39273. + fi
  39274. +])
  39275. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  39276. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  39277. +
  39278. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  39279. +
  39280. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  39281. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  39282. +_LT_DECL([], [extract_expsyms_cmds], [2],
  39283. + [The commands to extract the exported symbol list from a shared archive])
  39284. +
  39285. +#
  39286. +# Do we need to explicitly link libc?
  39287. +#
  39288. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  39289. +x|xyes)
  39290. + # Assume -lc should be added
  39291. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  39292. +
  39293. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  39294. + case $_LT_TAGVAR(archive_cmds, $1) in
  39295. + *'~'*)
  39296. + # FIXME: we may have to deal with multi-command sequences.
  39297. + ;;
  39298. + '$CC '*)
  39299. + # Test whether the compiler implicitly links with -lc since on some
  39300. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  39301. + # to ld, don't add -lc before -lgcc.
  39302. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  39303. + $RM conftest*
  39304. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  39305. +
  39306. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  39307. + soname=conftest
  39308. + lib=conftest
  39309. + libobjs=conftest.$ac_objext
  39310. + deplibs=
  39311. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  39312. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  39313. + compiler_flags=-v
  39314. + linker_flags=-v
  39315. + verstring=
  39316. + output_objdir=.
  39317. + libname=conftest
  39318. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  39319. + _LT_TAGVAR(allow_undefined_flag, $1)=
  39320. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  39321. + then
  39322. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  39323. + else
  39324. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  39325. + fi
  39326. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  39327. + else
  39328. + cat conftest.err 1>&5
  39329. + fi
  39330. + $RM conftest*
  39331. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  39332. + ;;
  39333. + esac
  39334. + fi
  39335. + ;;
  39336. +esac
  39337. +
  39338. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  39339. + [Whether or not to add -lc for building shared libraries])
  39340. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  39341. + [enable_shared_with_static_runtimes], [0],
  39342. + [Whether or not to disallow shared libs when runtime libs are static])
  39343. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  39344. + [Compiler flag to allow reflexive dlopens])
  39345. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  39346. + [Compiler flag to generate shared objects directly from archives])
  39347. +_LT_TAGDECL([], [compiler_needs_object], [1],
  39348. + [Whether the compiler copes with passing no objects directly])
  39349. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  39350. + [Create an old-style archive from a shared archive])
  39351. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  39352. + [Create a temporary old-style archive to link instead of a shared archive])
  39353. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  39354. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  39355. +_LT_TAGDECL([], [module_cmds], [2],
  39356. + [Commands used to build a loadable module if different from building
  39357. + a shared archive.])
  39358. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  39359. +_LT_TAGDECL([], [with_gnu_ld], [1],
  39360. + [Whether we are building with GNU ld or not])
  39361. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  39362. + [Flag that allows shared libraries with undefined symbols to be built])
  39363. +_LT_TAGDECL([], [no_undefined_flag], [1],
  39364. + [Flag that enforces no undefined symbols])
  39365. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  39366. + [Flag to hardcode $libdir into a binary during linking.
  39367. + This must work even if $libdir does not exist])
  39368. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  39369. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  39370. + during linking. This must work even if $libdir does not exist]])
  39371. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  39372. + [Whether we need a single "-rpath" flag with a separated argument])
  39373. +_LT_TAGDECL([], [hardcode_direct], [0],
  39374. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  39375. + DIR into the resulting binary])
  39376. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  39377. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  39378. + DIR into the resulting binary and the resulting library dependency is
  39379. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  39380. + library is relocated])
  39381. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  39382. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  39383. + into the resulting binary])
  39384. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  39385. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  39386. + into the resulting binary])
  39387. +_LT_TAGDECL([], [hardcode_automatic], [0],
  39388. + [Set to "yes" if building a shared library automatically hardcodes DIR
  39389. + into the library and all subsequent libraries and executables linked
  39390. + against it])
  39391. +_LT_TAGDECL([], [inherit_rpath], [0],
  39392. + [Set to yes if linker adds runtime paths of dependent libraries
  39393. + to runtime path list])
  39394. +_LT_TAGDECL([], [link_all_deplibs], [0],
  39395. + [Whether libtool must link a program against all its dependency libraries])
  39396. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  39397. + [Fix the shell variable $srcfile for the compiler])
  39398. +_LT_TAGDECL([], [always_export_symbols], [0],
  39399. + [Set to "yes" if exported symbols are required])
  39400. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  39401. + [The commands to list exported symbols])
  39402. +_LT_TAGDECL([], [exclude_expsyms], [1],
  39403. + [Symbols that should not be listed in the preloaded symbols])
  39404. +_LT_TAGDECL([], [include_expsyms], [1],
  39405. + [Symbols that must always be exported])
  39406. +_LT_TAGDECL([], [prelink_cmds], [2],
  39407. + [Commands necessary for linking programs (against libraries) with templates])
  39408. +_LT_TAGDECL([], [file_list_spec], [1],
  39409. + [Specify filename containing input files])
  39410. +dnl FIXME: Not yet implemented
  39411. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  39412. +dnl [Compiler flag to generate thread safe objects])
  39413. +])# _LT_LINKER_SHLIBS
  39414. +
  39415. +
  39416. +# _LT_LANG_C_CONFIG([TAG])
  39417. +# ------------------------
  39418. +# Ensure that the configuration variables for a C compiler are suitably
  39419. +# defined. These variables are subsequently used by _LT_CONFIG to write
  39420. +# the compiler configuration to `libtool'.
  39421. +m4_defun([_LT_LANG_C_CONFIG],
  39422. +[m4_require([_LT_DECL_EGREP])dnl
  39423. +lt_save_CC="$CC"
  39424. +AC_LANG_PUSH(C)
  39425. +
  39426. +# Source file extension for C test sources.
  39427. +ac_ext=c
  39428. +
  39429. +# Object file extension for compiled C test sources.
  39430. +objext=o
  39431. +_LT_TAGVAR(objext, $1)=$objext
  39432. +
  39433. +# Code to be used in simple compile tests
  39434. +lt_simple_compile_test_code="int some_variable = 0;"
  39435. +
  39436. +# Code to be used in simple link tests
  39437. +lt_simple_link_test_code='int main(){return(0);}'
  39438. +
  39439. +_LT_TAG_COMPILER
  39440. +# Save the default compiler, since it gets overwritten when the other
  39441. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  39442. +compiler_DEFAULT=$CC
  39443. +
  39444. +# save warnings/boilerplate of simple test code
  39445. +_LT_COMPILER_BOILERPLATE
  39446. +_LT_LINKER_BOILERPLATE
  39447. +
  39448. +## CAVEAT EMPTOR:
  39449. +## There is no encapsulation within the following macros, do not change
  39450. +## the running order or otherwise move them around unless you know exactly
  39451. +## what you are doing...
  39452. +if test -n "$compiler"; then
  39453. + _LT_COMPILER_NO_RTTI($1)
  39454. + _LT_COMPILER_PIC($1)
  39455. + _LT_COMPILER_C_O($1)
  39456. + _LT_COMPILER_FILE_LOCKS($1)
  39457. + _LT_LINKER_SHLIBS($1)
  39458. + _LT_SYS_DYNAMIC_LINKER($1)
  39459. + _LT_LINKER_HARDCODE_LIBPATH($1)
  39460. + LT_SYS_DLOPEN_SELF
  39461. + _LT_CMD_STRIPLIB
  39462. +
  39463. + # Report which library types will actually be built
  39464. + AC_MSG_CHECKING([if libtool supports shared libraries])
  39465. + AC_MSG_RESULT([$can_build_shared])
  39466. +
  39467. + AC_MSG_CHECKING([whether to build shared libraries])
  39468. + test "$can_build_shared" = "no" && enable_shared=no
  39469. +
  39470. + # On AIX, shared libraries and static libraries use the same namespace, and
  39471. + # are all built from PIC.
  39472. + case $host_os in
  39473. + aix3*)
  39474. + test "$enable_shared" = yes && enable_static=no
  39475. + if test -n "$RANLIB"; then
  39476. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  39477. + postinstall_cmds='$RANLIB $lib'
  39478. + fi
  39479. + ;;
  39480. +
  39481. + aix[[4-9]]*)
  39482. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  39483. + test "$enable_shared" = yes && enable_static=no
  39484. + fi
  39485. + ;;
  39486. + esac
  39487. + AC_MSG_RESULT([$enable_shared])
  39488. +
  39489. + AC_MSG_CHECKING([whether to build static libraries])
  39490. + # Make sure either enable_shared or enable_static is yes.
  39491. + test "$enable_shared" = yes || enable_static=yes
  39492. + AC_MSG_RESULT([$enable_static])
  39493. +
  39494. + _LT_CONFIG($1)
  39495. +fi
  39496. +AC_LANG_POP
  39497. +CC="$lt_save_CC"
  39498. +])# _LT_LANG_C_CONFIG
  39499. +
  39500. +
  39501. +# _LT_PROG_CXX
  39502. +# ------------
  39503. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  39504. +# compiler, we have our own version here.
  39505. +m4_defun([_LT_PROG_CXX],
  39506. +[
  39507. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  39508. +AC_PROG_CXX
  39509. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  39510. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  39511. + (test "X$CXX" != "Xg++"))) ; then
  39512. + AC_PROG_CXXCPP
  39513. +else
  39514. + _lt_caught_CXX_error=yes
  39515. +fi
  39516. +popdef([AC_MSG_ERROR])
  39517. +])# _LT_PROG_CXX
  39518. +
  39519. +dnl aclocal-1.4 backwards compatibility:
  39520. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  39521. +
  39522. +
  39523. +# _LT_LANG_CXX_CONFIG([TAG])
  39524. +# --------------------------
  39525. +# Ensure that the configuration variables for a C++ compiler are suitably
  39526. +# defined. These variables are subsequently used by _LT_CONFIG to write
  39527. +# the compiler configuration to `libtool'.
  39528. +m4_defun([_LT_LANG_CXX_CONFIG],
  39529. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  39530. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  39531. +m4_require([_LT_DECL_EGREP])dnl
  39532. +
  39533. +AC_LANG_PUSH(C++)
  39534. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  39535. +_LT_TAGVAR(allow_undefined_flag, $1)=
  39536. +_LT_TAGVAR(always_export_symbols, $1)=no
  39537. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  39538. +_LT_TAGVAR(compiler_needs_object, $1)=no
  39539. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  39540. +_LT_TAGVAR(hardcode_direct, $1)=no
  39541. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  39542. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  39543. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  39544. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  39545. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  39546. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  39547. +_LT_TAGVAR(hardcode_automatic, $1)=no
  39548. +_LT_TAGVAR(inherit_rpath, $1)=no
  39549. +_LT_TAGVAR(module_cmds, $1)=
  39550. +_LT_TAGVAR(module_expsym_cmds, $1)=
  39551. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  39552. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  39553. +_LT_TAGVAR(no_undefined_flag, $1)=
  39554. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  39555. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  39556. +
  39557. +# Source file extension for C++ test sources.
  39558. +ac_ext=cpp
  39559. +
  39560. +# Object file extension for compiled C++ test sources.
  39561. +objext=o
  39562. +_LT_TAGVAR(objext, $1)=$objext
  39563. +
  39564. +# No sense in running all these tests if we already determined that
  39565. +# the CXX compiler isn't working. Some variables (like enable_shared)
  39566. +# are currently assumed to apply to all compilers on this platform,
  39567. +# and will be corrupted by setting them based on a non-working compiler.
  39568. +if test "$_lt_caught_CXX_error" != yes; then
  39569. + # Code to be used in simple compile tests
  39570. + lt_simple_compile_test_code="int some_variable = 0;"
  39571. +
  39572. + # Code to be used in simple link tests
  39573. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  39574. +
  39575. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  39576. + _LT_TAG_COMPILER
  39577. +
  39578. + # save warnings/boilerplate of simple test code
  39579. + _LT_COMPILER_BOILERPLATE
  39580. + _LT_LINKER_BOILERPLATE
  39581. +
  39582. + # Allow CC to be a program name with arguments.
  39583. + lt_save_CC=$CC
  39584. + lt_save_LD=$LD
  39585. + lt_save_GCC=$GCC
  39586. + GCC=$GXX
  39587. + lt_save_with_gnu_ld=$with_gnu_ld
  39588. + lt_save_path_LD=$lt_cv_path_LD
  39589. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  39590. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  39591. + else
  39592. + $as_unset lt_cv_prog_gnu_ld
  39593. + fi
  39594. + if test -n "${lt_cv_path_LDCXX+set}"; then
  39595. + lt_cv_path_LD=$lt_cv_path_LDCXX
  39596. + else
  39597. + $as_unset lt_cv_path_LD
  39598. + fi
  39599. + test -z "${LDCXX+set}" || LD=$LDCXX
  39600. + CC=${CXX-"c++"}
  39601. + compiler=$CC
  39602. + _LT_TAGVAR(compiler, $1)=$CC
  39603. + _LT_CC_BASENAME([$compiler])
  39604. +
  39605. + if test -n "$compiler"; then
  39606. + # We don't want -fno-exception when compiling C++ code, so set the
  39607. + # no_builtin_flag separately
  39608. + if test "$GXX" = yes; then
  39609. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  39610. + else
  39611. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  39612. + fi
  39613. +
  39614. + if test "$GXX" = yes; then
  39615. + # Set up default GNU C++ configuration
  39616. +
  39617. + LT_PATH_LD
  39618. +
  39619. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  39620. + # archiving commands below assume that GNU ld is being used.
  39621. + if test "$with_gnu_ld" = yes; then
  39622. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  39623. + _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'
  39624. +
  39625. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  39626. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  39627. +
  39628. + # If archive_cmds runs LD, not CC, wlarc should be empty
  39629. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  39630. + # investigate it a little bit more. (MM)
  39631. + wlarc='${wl}'
  39632. +
  39633. + # ancient GNU ld didn't support --whole-archive et. al.
  39634. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  39635. + $GREP 'no-whole-archive' > /dev/null; then
  39636. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  39637. + else
  39638. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  39639. + fi
  39640. + else
  39641. + with_gnu_ld=no
  39642. + wlarc=
  39643. +
  39644. + # A generic and very simple default shared library creation
  39645. + # command for GNU C++ for the case where it uses the native
  39646. + # linker, instead of GNU ld. If possible, this setting should
  39647. + # overridden to take advantage of the native linker features on
  39648. + # the platform it is being used on.
  39649. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  39650. + fi
  39651. +
  39652. + # Commands to make compiler produce verbose output that lists
  39653. + # what "hidden" libraries, object files and flags are used when
  39654. + # linking a shared library.
  39655. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  39656. +
  39657. + else
  39658. + GXX=no
  39659. + with_gnu_ld=no
  39660. + wlarc=
  39661. + fi
  39662. +
  39663. + # PORTME: fill in a description of your system's C++ link characteristics
  39664. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  39665. + _LT_TAGVAR(ld_shlibs, $1)=yes
  39666. + case $host_os in
  39667. + aix3*)
  39668. + # FIXME: insert proper C++ library support
  39669. + _LT_TAGVAR(ld_shlibs, $1)=no
  39670. + ;;
  39671. + aix[[4-9]]*)
  39672. + if test "$host_cpu" = ia64; then
  39673. + # On IA64, the linker does run time linking by default, so we don't
  39674. + # have to do anything special.
  39675. + aix_use_runtimelinking=no
  39676. + exp_sym_flag='-Bexport'
  39677. + no_entry_flag=""
  39678. + else
  39679. + aix_use_runtimelinking=no
  39680. +
  39681. + # Test if we are trying to use run time linking or normal
  39682. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  39683. + # need to do runtime linking.
  39684. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  39685. + for ld_flag in $LDFLAGS; do
  39686. + case $ld_flag in
  39687. + *-brtl*)
  39688. + aix_use_runtimelinking=yes
  39689. + break
  39690. + ;;
  39691. + esac
  39692. + done
  39693. + ;;
  39694. + esac
  39695. +
  39696. + exp_sym_flag='-bexport'
  39697. + no_entry_flag='-bnoentry'
  39698. + fi
  39699. +
  39700. + # When large executables or shared objects are built, AIX ld can
  39701. + # have problems creating the table of contents. If linking a library
  39702. + # or program results in "error TOC overflow" add -mminimal-toc to
  39703. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  39704. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  39705. +
  39706. + _LT_TAGVAR(archive_cmds, $1)=''
  39707. + _LT_TAGVAR(hardcode_direct, $1)=yes
  39708. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  39709. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  39710. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  39711. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  39712. +
  39713. + if test "$GXX" = yes; then
  39714. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  39715. + # We only want to do this on AIX 4.2 and lower, the check
  39716. + # below for broken collect2 doesn't work under 4.3+
  39717. + collect2name=`${CC} -print-prog-name=collect2`
  39718. + if test -f "$collect2name" &&
  39719. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  39720. + then
  39721. + # We have reworked collect2
  39722. + :
  39723. + else
  39724. + # We have old collect2
  39725. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  39726. + # It fails to find uninstalled libraries when the uninstalled
  39727. + # path is not listed in the libpath. Setting hardcode_minus_L
  39728. + # to unsupported forces relinking
  39729. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  39730. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  39731. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  39732. + fi
  39733. + esac
  39734. + shared_flag='-shared'
  39735. + if test "$aix_use_runtimelinking" = yes; then
  39736. + shared_flag="$shared_flag "'${wl}-G'
  39737. + fi
  39738. + else
  39739. + # not using gcc
  39740. + if test "$host_cpu" = ia64; then
  39741. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  39742. + # chokes on -Wl,-G. The following line is correct:
  39743. + shared_flag='-G'
  39744. + else
  39745. + if test "$aix_use_runtimelinking" = yes; then
  39746. + shared_flag='${wl}-G'
  39747. + else
  39748. + shared_flag='${wl}-bM:SRE'
  39749. + fi
  39750. + fi
  39751. + fi
  39752. +
  39753. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  39754. + # It seems that -bexpall does not export symbols beginning with
  39755. + # underscore (_), so it is better to generate a list of symbols to
  39756. + # export.
  39757. + _LT_TAGVAR(always_export_symbols, $1)=yes
  39758. + if test "$aix_use_runtimelinking" = yes; then
  39759. + # Warning - without using the other runtime loading flags (-brtl),
  39760. + # -berok will link without error, but may produce a broken library.
  39761. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  39762. + # Determine the default libpath from the value encoded in an empty
  39763. + # executable.
  39764. + _LT_SYS_MODULE_PATH_AIX
  39765. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  39766. +
  39767. + _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"
  39768. + else
  39769. + if test "$host_cpu" = ia64; then
  39770. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  39771. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  39772. + _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"
  39773. + else
  39774. + # Determine the default libpath from the value encoded in an
  39775. + # empty executable.
  39776. + _LT_SYS_MODULE_PATH_AIX
  39777. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  39778. + # Warning - without using the other run time loading flags,
  39779. + # -berok will link without error, but may produce a broken library.
  39780. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  39781. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  39782. + # Exported symbols can be pulled into shared objects from archives
  39783. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  39784. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  39785. + # This is similar to how AIX traditionally builds its shared
  39786. + # libraries.
  39787. + _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'
  39788. + fi
  39789. + fi
  39790. + ;;
  39791. +
  39792. + beos*)
  39793. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  39794. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  39795. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  39796. + # support --undefined. This deserves some investigation. FIXME
  39797. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  39798. + else
  39799. + _LT_TAGVAR(ld_shlibs, $1)=no
  39800. + fi
  39801. + ;;
  39802. +
  39803. + chorus*)
  39804. + case $cc_basename in
  39805. + *)
  39806. + # FIXME: insert proper C++ library support
  39807. + _LT_TAGVAR(ld_shlibs, $1)=no
  39808. + ;;
  39809. + esac
  39810. + ;;
  39811. +
  39812. + cygwin* | mingw* | pw32* | cegcc*)
  39813. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  39814. + # as there is no search path for DLLs.
  39815. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  39816. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  39817. + _LT_TAGVAR(always_export_symbols, $1)=no
  39818. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  39819. +
  39820. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  39821. + _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'
  39822. + # If the export-symbols file already is a .def file (1st line
  39823. + # is EXPORTS), use it as is; otherwise, prepend...
  39824. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  39825. + cp $export_symbols $output_objdir/$soname.def;
  39826. + else
  39827. + echo EXPORTS > $output_objdir/$soname.def;
  39828. + cat $export_symbols >> $output_objdir/$soname.def;
  39829. + fi~
  39830. + $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'
  39831. + else
  39832. + _LT_TAGVAR(ld_shlibs, $1)=no
  39833. + fi
  39834. + ;;
  39835. + darwin* | rhapsody*)
  39836. + _LT_DARWIN_LINKER_FEATURES($1)
  39837. + ;;
  39838. +
  39839. + dgux*)
  39840. + case $cc_basename in
  39841. + ec++*)
  39842. + # FIXME: insert proper C++ library support
  39843. + _LT_TAGVAR(ld_shlibs, $1)=no
  39844. + ;;
  39845. + ghcx*)
  39846. + # Green Hills C++ Compiler
  39847. + # FIXME: insert proper C++ library support
  39848. + _LT_TAGVAR(ld_shlibs, $1)=no
  39849. + ;;
  39850. + *)
  39851. + # FIXME: insert proper C++ library support
  39852. + _LT_TAGVAR(ld_shlibs, $1)=no
  39853. + ;;
  39854. + esac
  39855. + ;;
  39856. +
  39857. + freebsd[[12]]*)
  39858. + # C++ shared libraries reported to be fairly broken before
  39859. + # switch to ELF
  39860. + _LT_TAGVAR(ld_shlibs, $1)=no
  39861. + ;;
  39862. +
  39863. + freebsd-elf*)
  39864. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  39865. + ;;
  39866. +
  39867. + freebsd* | dragonfly*)
  39868. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  39869. + # conventions
  39870. + _LT_TAGVAR(ld_shlibs, $1)=yes
  39871. + ;;
  39872. +
  39873. + gnu*)
  39874. + ;;
  39875. +
  39876. + hpux9*)
  39877. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  39878. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  39879. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  39880. + _LT_TAGVAR(hardcode_direct, $1)=yes
  39881. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  39882. + # but as the default
  39883. + # location of the library.
  39884. +
  39885. + case $cc_basename in
  39886. + CC*)
  39887. + # FIXME: insert proper C++ library support
  39888. + _LT_TAGVAR(ld_shlibs, $1)=no
  39889. + ;;
  39890. + aCC*)
  39891. + _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'
  39892. + # Commands to make compiler produce verbose output that lists
  39893. + # what "hidden" libraries, object files and flags are used when
  39894. + # linking a shared library.
  39895. + #
  39896. + # There doesn't appear to be a way to prevent this compiler from
  39897. + # explicitly linking system object files so we need to strip them
  39898. + # from the output so that they don't get included in the library
  39899. + # dependencies.
  39900. + 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'
  39901. + ;;
  39902. + *)
  39903. + if test "$GXX" = yes; then
  39904. + _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'
  39905. + else
  39906. + # FIXME: insert proper C++ library support
  39907. + _LT_TAGVAR(ld_shlibs, $1)=no
  39908. + fi
  39909. + ;;
  39910. + esac
  39911. + ;;
  39912. +
  39913. + hpux10*|hpux11*)
  39914. + if test $with_gnu_ld = no; then
  39915. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  39916. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  39917. +
  39918. + case $host_cpu in
  39919. + hppa*64*|ia64*)
  39920. + ;;
  39921. + *)
  39922. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  39923. + ;;
  39924. + esac
  39925. + fi
  39926. + case $host_cpu in
  39927. + hppa*64*|ia64*)
  39928. + _LT_TAGVAR(hardcode_direct, $1)=no
  39929. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39930. + ;;
  39931. + *)
  39932. + _LT_TAGVAR(hardcode_direct, $1)=yes
  39933. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  39934. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  39935. + # but as the default
  39936. + # location of the library.
  39937. + ;;
  39938. + esac
  39939. +
  39940. + case $cc_basename in
  39941. + CC*)
  39942. + # FIXME: insert proper C++ library support
  39943. + _LT_TAGVAR(ld_shlibs, $1)=no
  39944. + ;;
  39945. + aCC*)
  39946. + case $host_cpu in
  39947. + hppa*64*)
  39948. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  39949. + ;;
  39950. + ia64*)
  39951. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  39952. + ;;
  39953. + *)
  39954. + _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'
  39955. + ;;
  39956. + esac
  39957. + # Commands to make compiler produce verbose output that lists
  39958. + # what "hidden" libraries, object files and flags are used when
  39959. + # linking a shared library.
  39960. + #
  39961. + # There doesn't appear to be a way to prevent this compiler from
  39962. + # explicitly linking system object files so we need to strip them
  39963. + # from the output so that they don't get included in the library
  39964. + # dependencies.
  39965. + 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'
  39966. + ;;
  39967. + *)
  39968. + if test "$GXX" = yes; then
  39969. + if test $with_gnu_ld = no; then
  39970. + case $host_cpu in
  39971. + hppa*64*)
  39972. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  39973. + ;;
  39974. + ia64*)
  39975. + _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'
  39976. + ;;
  39977. + *)
  39978. + _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'
  39979. + ;;
  39980. + esac
  39981. + fi
  39982. + else
  39983. + # FIXME: insert proper C++ library support
  39984. + _LT_TAGVAR(ld_shlibs, $1)=no
  39985. + fi
  39986. + ;;
  39987. + esac
  39988. + ;;
  39989. +
  39990. + interix[[3-9]]*)
  39991. + _LT_TAGVAR(hardcode_direct, $1)=no
  39992. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  39993. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  39994. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  39995. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  39996. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  39997. + # default) and relocated if they conflict, which is a slow very memory
  39998. + # consuming and fragmenting process. To avoid this, we pick a random,
  39999. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  40000. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  40001. + _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'
  40002. + _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'
  40003. + ;;
  40004. + irix5* | irix6*)
  40005. + case $cc_basename in
  40006. + CC*)
  40007. + # SGI C++
  40008. + _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'
  40009. +
  40010. + # Archives containing C++ object files must be created using
  40011. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  40012. + # necessary to make sure instantiated templates are included
  40013. + # in the archive.
  40014. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  40015. + ;;
  40016. + *)
  40017. + if test "$GXX" = yes; then
  40018. + if test "$with_gnu_ld" = no; then
  40019. + _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'
  40020. + else
  40021. + _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'
  40022. + fi
  40023. + fi
  40024. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  40025. + ;;
  40026. + esac
  40027. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  40028. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  40029. + _LT_TAGVAR(inherit_rpath, $1)=yes
  40030. + ;;
  40031. +
  40032. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  40033. + case $cc_basename in
  40034. + KCC*)
  40035. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  40036. +
  40037. + # KCC will only create a shared library if the output file
  40038. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  40039. + # to its proper name (with version) after linking.
  40040. + _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'
  40041. + _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'
  40042. + # Commands to make compiler produce verbose output that lists
  40043. + # what "hidden" libraries, object files and flags are used when
  40044. + # linking a shared library.
  40045. + #
  40046. + # There doesn't appear to be a way to prevent this compiler from
  40047. + # explicitly linking system object files so we need to strip them
  40048. + # from the output so that they don't get included in the library
  40049. + # dependencies.
  40050. + 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'
  40051. +
  40052. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  40053. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  40054. +
  40055. + # Archives containing C++ object files must be created using
  40056. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  40057. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  40058. + ;;
  40059. + icpc* | ecpc* )
  40060. + # Intel C++
  40061. + with_gnu_ld=yes
  40062. + # version 8.0 and above of icpc choke on multiply defined symbols
  40063. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  40064. + # earlier do not add the objects themselves.
  40065. + case `$CC -V 2>&1` in
  40066. + *"Version 7."*)
  40067. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  40068. + _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'
  40069. + ;;
  40070. + *) # Version 8.0 or newer
  40071. + tmp_idyn=
  40072. + case $host_cpu in
  40073. + ia64*) tmp_idyn=' -i_dynamic';;
  40074. + esac
  40075. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  40076. + _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'
  40077. + ;;
  40078. + esac
  40079. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  40080. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  40081. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  40082. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  40083. + ;;
  40084. + pgCC* | pgcpp*)
  40085. + # Portland Group C++ compiler
  40086. + case `$CC -V` in
  40087. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  40088. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  40089. + rm -rf $tpldir~
  40090. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  40091. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  40092. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  40093. + rm -rf $tpldir~
  40094. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  40095. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  40096. + $RANLIB $oldlib'
  40097. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  40098. + rm -rf $tpldir~
  40099. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  40100. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  40101. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  40102. + rm -rf $tpldir~
  40103. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  40104. + $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'
  40105. + ;;
  40106. + *) # Version 6 will use weak symbols
  40107. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  40108. + _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'
  40109. + ;;
  40110. + esac
  40111. +
  40112. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  40113. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  40114. + _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'
  40115. + ;;
  40116. + cxx*)
  40117. + # Compaq C++
  40118. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  40119. + _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'
  40120. +
  40121. + runpath_var=LD_RUN_PATH
  40122. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  40123. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  40124. +
  40125. + # Commands to make compiler produce verbose output that lists
  40126. + # what "hidden" libraries, object files and flags are used when
  40127. + # linking a shared library.
  40128. + #
  40129. + # There doesn't appear to be a way to prevent this compiler from
  40130. + # explicitly linking system object files so we need to strip them
  40131. + # from the output so that they don't get included in the library
  40132. + # dependencies.
  40133. + 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'
  40134. + ;;
  40135. + xl*)
  40136. + # IBM XL 8.0 on PPC, with GNU ld
  40137. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  40138. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  40139. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  40140. + if test "x$supports_anon_versioning" = xyes; then
  40141. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  40142. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  40143. + echo "local: *; };" >> $output_objdir/$libname.ver~
  40144. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  40145. + fi
  40146. + ;;
  40147. + *)
  40148. + case `$CC -V 2>&1 | sed 5q` in
  40149. + *Sun\ C*)
  40150. + # Sun C++ 5.9
  40151. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  40152. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  40153. + _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'
  40154. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  40155. + _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'
  40156. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  40157. +
  40158. + # Not sure whether something based on
  40159. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  40160. + # would be better.
  40161. + output_verbose_link_cmd='echo'
  40162. +
  40163. + # Archives containing C++ object files must be created using
  40164. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  40165. + # necessary to make sure instantiated templates are included
  40166. + # in the archive.
  40167. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  40168. + ;;
  40169. + esac
  40170. + ;;
  40171. + esac
  40172. + ;;
  40173. +
  40174. + lynxos*)
  40175. + # FIXME: insert proper C++ library support
  40176. + _LT_TAGVAR(ld_shlibs, $1)=no
  40177. + ;;
  40178. +
  40179. + m88k*)
  40180. + # FIXME: insert proper C++ library support
  40181. + _LT_TAGVAR(ld_shlibs, $1)=no
  40182. + ;;
  40183. +
  40184. + mvs*)
  40185. + case $cc_basename in
  40186. + cxx*)
  40187. + # FIXME: insert proper C++ library support
  40188. + _LT_TAGVAR(ld_shlibs, $1)=no
  40189. + ;;
  40190. + *)
  40191. + # FIXME: insert proper C++ library support
  40192. + _LT_TAGVAR(ld_shlibs, $1)=no
  40193. + ;;
  40194. + esac
  40195. + ;;
  40196. +
  40197. + netbsd*)
  40198. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  40199. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  40200. + wlarc=
  40201. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  40202. + _LT_TAGVAR(hardcode_direct, $1)=yes
  40203. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  40204. + fi
  40205. + # Workaround some broken pre-1.5 toolchains
  40206. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  40207. + ;;
  40208. +
  40209. + *nto* | *qnx*)
  40210. + _LT_TAGVAR(ld_shlibs, $1)=yes
  40211. + ;;
  40212. +
  40213. + openbsd2*)
  40214. + # C++ shared libraries are fairly broken
  40215. + _LT_TAGVAR(ld_shlibs, $1)=no
  40216. + ;;
  40217. +
  40218. + openbsd*)
  40219. + if test -f /usr/libexec/ld.so; then
  40220. + _LT_TAGVAR(hardcode_direct, $1)=yes
  40221. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  40222. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  40223. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  40224. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  40225. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  40226. + _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'
  40227. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  40228. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  40229. + fi
  40230. + output_verbose_link_cmd=echo
  40231. + else
  40232. + _LT_TAGVAR(ld_shlibs, $1)=no
  40233. + fi
  40234. + ;;
  40235. +
  40236. + osf3* | osf4* | osf5*)
  40237. + case $cc_basename in
  40238. + KCC*)
  40239. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  40240. +
  40241. + # KCC will only create a shared library if the output file
  40242. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  40243. + # to its proper name (with version) after linking.
  40244. + _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'
  40245. +
  40246. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  40247. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  40248. +
  40249. + # Archives containing C++ object files must be created using
  40250. + # the KAI C++ compiler.
  40251. + case $host in
  40252. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  40253. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  40254. + esac
  40255. + ;;
  40256. + RCC*)
  40257. + # Rational C++ 2.4.1
  40258. + # FIXME: insert proper C++ library support
  40259. + _LT_TAGVAR(ld_shlibs, $1)=no
  40260. + ;;
  40261. + cxx*)
  40262. + case $host in
  40263. + osf3*)
  40264. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  40265. + _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'
  40266. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  40267. + ;;
  40268. + *)
  40269. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  40270. + _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'
  40271. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  40272. + echo "-hidden">> $lib.exp~
  40273. + $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~
  40274. + $RM $lib.exp'
  40275. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  40276. + ;;
  40277. + esac
  40278. +
  40279. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  40280. +
  40281. + # Commands to make compiler produce verbose output that lists
  40282. + # what "hidden" libraries, object files and flags are used when
  40283. + # linking a shared library.
  40284. + #
  40285. + # There doesn't appear to be a way to prevent this compiler from
  40286. + # explicitly linking system object files so we need to strip them
  40287. + # from the output so that they don't get included in the library
  40288. + # dependencies.
  40289. + 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'
  40290. + ;;
  40291. + *)
  40292. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  40293. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  40294. + case $host in
  40295. + osf3*)
  40296. + _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'
  40297. + ;;
  40298. + *)
  40299. + _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'
  40300. + ;;
  40301. + esac
  40302. +
  40303. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  40304. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  40305. +
  40306. + # Commands to make compiler produce verbose output that lists
  40307. + # what "hidden" libraries, object files and flags are used when
  40308. + # linking a shared library.
  40309. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  40310. +
  40311. + else
  40312. + # FIXME: insert proper C++ library support
  40313. + _LT_TAGVAR(ld_shlibs, $1)=no
  40314. + fi
  40315. + ;;
  40316. + esac
  40317. + ;;
  40318. +
  40319. + psos*)
  40320. + # FIXME: insert proper C++ library support
  40321. + _LT_TAGVAR(ld_shlibs, $1)=no
  40322. + ;;
  40323. +
  40324. + sunos4*)
  40325. + case $cc_basename in
  40326. + CC*)
  40327. + # Sun C++ 4.x
  40328. + # FIXME: insert proper C++ library support
  40329. + _LT_TAGVAR(ld_shlibs, $1)=no
  40330. + ;;
  40331. + lcc*)
  40332. + # Lucid
  40333. + # FIXME: insert proper C++ library support
  40334. + _LT_TAGVAR(ld_shlibs, $1)=no
  40335. + ;;
  40336. + *)
  40337. + # FIXME: insert proper C++ library support
  40338. + _LT_TAGVAR(ld_shlibs, $1)=no
  40339. + ;;
  40340. + esac
  40341. + ;;
  40342. +
  40343. + solaris*)
  40344. + case $cc_basename in
  40345. + CC*)
  40346. + # Sun C++ 4.2, 5.x and Centerline C++
  40347. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  40348. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  40349. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  40350. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  40351. + $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'
  40352. +
  40353. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  40354. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  40355. + case $host_os in
  40356. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  40357. + *)
  40358. + # The compiler driver will combine and reorder linker options,
  40359. + # but understands `-z linker_flag'.
  40360. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  40361. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  40362. + ;;
  40363. + esac
  40364. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  40365. +
  40366. + output_verbose_link_cmd='echo'
  40367. +
  40368. + # Archives containing C++ object files must be created using
  40369. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  40370. + # necessary to make sure instantiated templates are included
  40371. + # in the archive.
  40372. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  40373. + ;;
  40374. + gcx*)
  40375. + # Green Hills C++ Compiler
  40376. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  40377. +
  40378. + # The C++ compiler must be used to create the archive.
  40379. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  40380. + ;;
  40381. + *)
  40382. + # GNU C++ compiler with Solaris linker
  40383. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  40384. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  40385. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  40386. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  40387. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  40388. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  40389. +
  40390. + # Commands to make compiler produce verbose output that lists
  40391. + # what "hidden" libraries, object files and flags are used when
  40392. + # linking a shared library.
  40393. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  40394. + else
  40395. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  40396. + # platform.
  40397. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  40398. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  40399. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  40400. +
  40401. + # Commands to make compiler produce verbose output that lists
  40402. + # what "hidden" libraries, object files and flags are used when
  40403. + # linking a shared library.
  40404. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  40405. + fi
  40406. +
  40407. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  40408. + case $host_os in
  40409. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  40410. + *)
  40411. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  40412. + ;;
  40413. + esac
  40414. + fi
  40415. + ;;
  40416. + esac
  40417. + ;;
  40418. +
  40419. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  40420. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  40421. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  40422. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  40423. + runpath_var='LD_RUN_PATH'
  40424. +
  40425. + case $cc_basename in
  40426. + CC*)
  40427. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  40428. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  40429. + ;;
  40430. + *)
  40431. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  40432. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  40433. + ;;
  40434. + esac
  40435. + ;;
  40436. +
  40437. + sysv5* | sco3.2v5* | sco5v6*)
  40438. + # Note: We can NOT use -z defs as we might desire, because we do not
  40439. + # link with -lc, and that would cause any symbols used from libc to
  40440. + # always be unresolved, which means just about no library would
  40441. + # ever link correctly. If we're not using GNU ld we use -z text
  40442. + # though, which does catch some bad symbols but isn't as heavy-handed
  40443. + # as -z defs.
  40444. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  40445. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  40446. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  40447. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  40448. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  40449. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  40450. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  40451. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  40452. + runpath_var='LD_RUN_PATH'
  40453. +
  40454. + case $cc_basename in
  40455. + CC*)
  40456. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  40457. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  40458. + ;;
  40459. + *)
  40460. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  40461. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  40462. + ;;
  40463. + esac
  40464. + ;;
  40465. +
  40466. + tandem*)
  40467. + case $cc_basename in
  40468. + NCC*)
  40469. + # NonStop-UX NCC 3.20
  40470. + # FIXME: insert proper C++ library support
  40471. + _LT_TAGVAR(ld_shlibs, $1)=no
  40472. + ;;
  40473. + *)
  40474. + # FIXME: insert proper C++ library support
  40475. + _LT_TAGVAR(ld_shlibs, $1)=no
  40476. + ;;
  40477. + esac
  40478. + ;;
  40479. +
  40480. + vxworks*)
  40481. + # FIXME: insert proper C++ library support
  40482. + _LT_TAGVAR(ld_shlibs, $1)=no
  40483. + ;;
  40484. +
  40485. + *)
  40486. + # FIXME: insert proper C++ library support
  40487. + _LT_TAGVAR(ld_shlibs, $1)=no
  40488. + ;;
  40489. + esac
  40490. +
  40491. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  40492. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  40493. +
  40494. + _LT_TAGVAR(GCC, $1)="$GXX"
  40495. + _LT_TAGVAR(LD, $1)="$LD"
  40496. +
  40497. + ## CAVEAT EMPTOR:
  40498. + ## There is no encapsulation within the following macros, do not change
  40499. + ## the running order or otherwise move them around unless you know exactly
  40500. + ## what you are doing...
  40501. + _LT_SYS_HIDDEN_LIBDEPS($1)
  40502. + _LT_COMPILER_PIC($1)
  40503. + _LT_COMPILER_C_O($1)
  40504. + _LT_COMPILER_FILE_LOCKS($1)
  40505. + _LT_LINKER_SHLIBS($1)
  40506. + _LT_SYS_DYNAMIC_LINKER($1)
  40507. + _LT_LINKER_HARDCODE_LIBPATH($1)
  40508. +
  40509. + _LT_CONFIG($1)
  40510. + fi # test -n "$compiler"
  40511. +
  40512. + CC=$lt_save_CC
  40513. + LDCXX=$LD
  40514. + LD=$lt_save_LD
  40515. + GCC=$lt_save_GCC
  40516. + with_gnu_ld=$lt_save_with_gnu_ld
  40517. + lt_cv_path_LDCXX=$lt_cv_path_LD
  40518. + lt_cv_path_LD=$lt_save_path_LD
  40519. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  40520. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  40521. +fi # test "$_lt_caught_CXX_error" != yes
  40522. +
  40523. +AC_LANG_POP
  40524. +])# _LT_LANG_CXX_CONFIG
  40525. +
  40526. +
  40527. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  40528. +# ---------------------------------
  40529. +# Figure out "hidden" library dependencies from verbose
  40530. +# compiler output when linking a shared library.
  40531. +# Parse the compiler output and extract the necessary
  40532. +# objects, libraries and library flags.
  40533. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  40534. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  40535. +# Dependencies to place before and after the object being linked:
  40536. +_LT_TAGVAR(predep_objects, $1)=
  40537. +_LT_TAGVAR(postdep_objects, $1)=
  40538. +_LT_TAGVAR(predeps, $1)=
  40539. +_LT_TAGVAR(postdeps, $1)=
  40540. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  40541. +
  40542. +dnl we can't use the lt_simple_compile_test_code here,
  40543. +dnl because it contains code intended for an executable,
  40544. +dnl not a library. It's possible we should let each
  40545. +dnl tag define a new lt_????_link_test_code variable,
  40546. +dnl but it's only used here...
  40547. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  40548. +int a;
  40549. +void foo (void) { a = 0; }
  40550. +_LT_EOF
  40551. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  40552. +class Foo
  40553. +{
  40554. +public:
  40555. + Foo (void) { a = 0; }
  40556. +private:
  40557. + int a;
  40558. +};
  40559. +_LT_EOF
  40560. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  40561. + subroutine foo
  40562. + implicit none
  40563. + integer*4 a
  40564. + a=0
  40565. + return
  40566. + end
  40567. +_LT_EOF
  40568. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  40569. + subroutine foo
  40570. + implicit none
  40571. + integer a
  40572. + a=0
  40573. + return
  40574. + end
  40575. +_LT_EOF
  40576. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  40577. +public class foo {
  40578. + private int a;
  40579. + public void bar (void) {
  40580. + a = 0;
  40581. + }
  40582. +};
  40583. +_LT_EOF
  40584. +])
  40585. +dnl Parse the compiler output and extract the necessary
  40586. +dnl objects, libraries and library flags.
  40587. +if AC_TRY_EVAL(ac_compile); then
  40588. + # Parse the compiler output and extract the necessary
  40589. + # objects, libraries and library flags.
  40590. +
  40591. + # Sentinel used to keep track of whether or not we are before
  40592. + # the conftest object file.
  40593. + pre_test_object_deps_done=no
  40594. +
  40595. + for p in `eval "$output_verbose_link_cmd"`; do
  40596. + case $p in
  40597. +
  40598. + -L* | -R* | -l*)
  40599. + # Some compilers place space between "-{L,R}" and the path.
  40600. + # Remove the space.
  40601. + if test $p = "-L" ||
  40602. + test $p = "-R"; then
  40603. + prev=$p
  40604. + continue
  40605. + else
  40606. + prev=
  40607. + fi
  40608. +
  40609. + if test "$pre_test_object_deps_done" = no; then
  40610. + case $p in
  40611. + -L* | -R*)
  40612. + # Internal compiler library paths should come after those
  40613. + # provided the user. The postdeps already come after the
  40614. + # user supplied libs so there is no need to process them.
  40615. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  40616. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  40617. + else
  40618. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  40619. + fi
  40620. + ;;
  40621. + # The "-l" case would never come before the object being
  40622. + # linked, so don't bother handling this case.
  40623. + esac
  40624. + else
  40625. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  40626. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  40627. + else
  40628. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  40629. + fi
  40630. + fi
  40631. + ;;
  40632. +
  40633. + *.$objext)
  40634. + # This assumes that the test object file only shows up
  40635. + # once in the compiler output.
  40636. + if test "$p" = "conftest.$objext"; then
  40637. + pre_test_object_deps_done=yes
  40638. + continue
  40639. + fi
  40640. +
  40641. + if test "$pre_test_object_deps_done" = no; then
  40642. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  40643. + _LT_TAGVAR(predep_objects, $1)="$p"
  40644. + else
  40645. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  40646. + fi
  40647. + else
  40648. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  40649. + _LT_TAGVAR(postdep_objects, $1)="$p"
  40650. + else
  40651. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  40652. + fi
  40653. + fi
  40654. + ;;
  40655. +
  40656. + *) ;; # Ignore the rest.
  40657. +
  40658. + esac
  40659. + done
  40660. +
  40661. + # Clean up.
  40662. + rm -f a.out a.exe
  40663. +else
  40664. + echo "libtool.m4: error: problem compiling $1 test program"
  40665. +fi
  40666. +
  40667. +$RM -f confest.$objext
  40668. +
  40669. +# PORTME: override above test on systems where it is broken
  40670. +m4_if([$1], [CXX],
  40671. +[case $host_os in
  40672. +interix[[3-9]]*)
  40673. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  40674. + # hack all around it, let's just trust "g++" to DTRT.
  40675. + _LT_TAGVAR(predep_objects,$1)=
  40676. + _LT_TAGVAR(postdep_objects,$1)=
  40677. + _LT_TAGVAR(postdeps,$1)=
  40678. + ;;
  40679. +
  40680. +linux*)
  40681. + case `$CC -V 2>&1 | sed 5q` in
  40682. + *Sun\ C*)
  40683. + # Sun C++ 5.9
  40684. +
  40685. + # The more standards-conforming stlport4 library is
  40686. + # incompatible with the Cstd library. Avoid specifying
  40687. + # it if it's in CXXFLAGS. Ignore libCrun as
  40688. + # -library=stlport4 depends on it.
  40689. + case " $CXX $CXXFLAGS " in
  40690. + *" -library=stlport4 "*)
  40691. + solaris_use_stlport4=yes
  40692. + ;;
  40693. + esac
  40694. +
  40695. + if test "$solaris_use_stlport4" != yes; then
  40696. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  40697. + fi
  40698. + ;;
  40699. + esac
  40700. + ;;
  40701. +
  40702. +solaris*)
  40703. + case $cc_basename in
  40704. + CC*)
  40705. + # The more standards-conforming stlport4 library is
  40706. + # incompatible with the Cstd library. Avoid specifying
  40707. + # it if it's in CXXFLAGS. Ignore libCrun as
  40708. + # -library=stlport4 depends on it.
  40709. + case " $CXX $CXXFLAGS " in
  40710. + *" -library=stlport4 "*)
  40711. + solaris_use_stlport4=yes
  40712. + ;;
  40713. + esac
  40714. +
  40715. + # Adding this requires a known-good setup of shared libraries for
  40716. + # Sun compiler versions before 5.6, else PIC objects from an old
  40717. + # archive will be linked into the output, leading to subtle bugs.
  40718. + if test "$solaris_use_stlport4" != yes; then
  40719. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  40720. + fi
  40721. + ;;
  40722. + esac
  40723. + ;;
  40724. +esac
  40725. +])
  40726. +
  40727. +case " $_LT_TAGVAR(postdeps, $1) " in
  40728. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  40729. +esac
  40730. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  40731. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  40732. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  40733. +fi
  40734. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  40735. + [The directories searched by this compiler when creating a shared library])
  40736. +_LT_TAGDECL([], [predep_objects], [1],
  40737. + [Dependencies to place before and after the objects being linked to
  40738. + create a shared library])
  40739. +_LT_TAGDECL([], [postdep_objects], [1])
  40740. +_LT_TAGDECL([], [predeps], [1])
  40741. +_LT_TAGDECL([], [postdeps], [1])
  40742. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  40743. + [The library search path used internally by the compiler when linking
  40744. + a shared library])
  40745. +])# _LT_SYS_HIDDEN_LIBDEPS
  40746. +
  40747. +
  40748. +# _LT_PROG_F77
  40749. +# ------------
  40750. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  40751. +# if there is no fortran compiler, we have our own version here.
  40752. +m4_defun([_LT_PROG_F77],
  40753. +[
  40754. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  40755. +AC_PROG_F77
  40756. +if test -z "$F77" || test "X$F77" = "Xno"; then
  40757. + _lt_disable_F77=yes
  40758. +fi
  40759. +popdef([AC_MSG_ERROR])
  40760. +])# _LT_PROG_F77
  40761. +
  40762. +dnl aclocal-1.4 backwards compatibility:
  40763. +dnl AC_DEFUN([_LT_PROG_F77], [])
  40764. +
  40765. +
  40766. +# _LT_LANG_F77_CONFIG([TAG])
  40767. +# --------------------------
  40768. +# Ensure that the configuration variables for a Fortran 77 compiler are
  40769. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  40770. +# to write the compiler configuration to `libtool'.
  40771. +m4_defun([_LT_LANG_F77_CONFIG],
  40772. +[AC_REQUIRE([_LT_PROG_F77])dnl
  40773. +AC_LANG_PUSH(Fortran 77)
  40774. +
  40775. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  40776. +_LT_TAGVAR(allow_undefined_flag, $1)=
  40777. +_LT_TAGVAR(always_export_symbols, $1)=no
  40778. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  40779. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  40780. +_LT_TAGVAR(hardcode_direct, $1)=no
  40781. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  40782. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  40783. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  40784. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  40785. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  40786. +_LT_TAGVAR(hardcode_automatic, $1)=no
  40787. +_LT_TAGVAR(inherit_rpath, $1)=no
  40788. +_LT_TAGVAR(module_cmds, $1)=
  40789. +_LT_TAGVAR(module_expsym_cmds, $1)=
  40790. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  40791. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  40792. +_LT_TAGVAR(no_undefined_flag, $1)=
  40793. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  40794. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  40795. +
  40796. +# Source file extension for f77 test sources.
  40797. +ac_ext=f
  40798. +
  40799. +# Object file extension for compiled f77 test sources.
  40800. +objext=o
  40801. +_LT_TAGVAR(objext, $1)=$objext
  40802. +
  40803. +# No sense in running all these tests if we already determined that
  40804. +# the F77 compiler isn't working. Some variables (like enable_shared)
  40805. +# are currently assumed to apply to all compilers on this platform,
  40806. +# and will be corrupted by setting them based on a non-working compiler.
  40807. +if test "$_lt_disable_F77" != yes; then
  40808. + # Code to be used in simple compile tests
  40809. + lt_simple_compile_test_code="\
  40810. + subroutine t
  40811. + return
  40812. + end
  40813. +"
  40814. +
  40815. + # Code to be used in simple link tests
  40816. + lt_simple_link_test_code="\
  40817. + program t
  40818. + end
  40819. +"
  40820. +
  40821. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  40822. + _LT_TAG_COMPILER
  40823. +
  40824. + # save warnings/boilerplate of simple test code
  40825. + _LT_COMPILER_BOILERPLATE
  40826. + _LT_LINKER_BOILERPLATE
  40827. +
  40828. + # Allow CC to be a program name with arguments.
  40829. + lt_save_CC="$CC"
  40830. + lt_save_GCC=$GCC
  40831. + CC=${F77-"f77"}
  40832. + compiler=$CC
  40833. + _LT_TAGVAR(compiler, $1)=$CC
  40834. + _LT_CC_BASENAME([$compiler])
  40835. + GCC=$G77
  40836. + if test -n "$compiler"; then
  40837. + AC_MSG_CHECKING([if libtool supports shared libraries])
  40838. + AC_MSG_RESULT([$can_build_shared])
  40839. +
  40840. + AC_MSG_CHECKING([whether to build shared libraries])
  40841. + test "$can_build_shared" = "no" && enable_shared=no
  40842. +
  40843. + # On AIX, shared libraries and static libraries use the same namespace, and
  40844. + # are all built from PIC.
  40845. + case $host_os in
  40846. + aix3*)
  40847. + test "$enable_shared" = yes && enable_static=no
  40848. + if test -n "$RANLIB"; then
  40849. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  40850. + postinstall_cmds='$RANLIB $lib'
  40851. + fi
  40852. + ;;
  40853. + aix[[4-9]]*)
  40854. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  40855. + test "$enable_shared" = yes && enable_static=no
  40856. + fi
  40857. + ;;
  40858. + esac
  40859. + AC_MSG_RESULT([$enable_shared])
  40860. +
  40861. + AC_MSG_CHECKING([whether to build static libraries])
  40862. + # Make sure either enable_shared or enable_static is yes.
  40863. + test "$enable_shared" = yes || enable_static=yes
  40864. + AC_MSG_RESULT([$enable_static])
  40865. +
  40866. + _LT_TAGVAR(GCC, $1)="$G77"
  40867. + _LT_TAGVAR(LD, $1)="$LD"
  40868. +
  40869. + ## CAVEAT EMPTOR:
  40870. + ## There is no encapsulation within the following macros, do not change
  40871. + ## the running order or otherwise move them around unless you know exactly
  40872. + ## what you are doing...
  40873. + _LT_COMPILER_PIC($1)
  40874. + _LT_COMPILER_C_O($1)
  40875. + _LT_COMPILER_FILE_LOCKS($1)
  40876. + _LT_LINKER_SHLIBS($1)
  40877. + _LT_SYS_DYNAMIC_LINKER($1)
  40878. + _LT_LINKER_HARDCODE_LIBPATH($1)
  40879. +
  40880. + _LT_CONFIG($1)
  40881. + fi # test -n "$compiler"
  40882. +
  40883. + GCC=$lt_save_GCC
  40884. + CC="$lt_save_CC"
  40885. +fi # test "$_lt_disable_F77" != yes
  40886. +
  40887. +AC_LANG_POP
  40888. +])# _LT_LANG_F77_CONFIG
  40889. +
  40890. +
  40891. +# _LT_PROG_FC
  40892. +# -----------
  40893. +# Since AC_PROG_FC is broken, in that it returns the empty string
  40894. +# if there is no fortran compiler, we have our own version here.
  40895. +m4_defun([_LT_PROG_FC],
  40896. +[
  40897. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  40898. +AC_PROG_FC
  40899. +if test -z "$FC" || test "X$FC" = "Xno"; then
  40900. + _lt_disable_FC=yes
  40901. +fi
  40902. +popdef([AC_MSG_ERROR])
  40903. +])# _LT_PROG_FC
  40904. +
  40905. +dnl aclocal-1.4 backwards compatibility:
  40906. +dnl AC_DEFUN([_LT_PROG_FC], [])
  40907. +
  40908. +
  40909. +# _LT_LANG_FC_CONFIG([TAG])
  40910. +# -------------------------
  40911. +# Ensure that the configuration variables for a Fortran compiler are
  40912. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  40913. +# to write the compiler configuration to `libtool'.
  40914. +m4_defun([_LT_LANG_FC_CONFIG],
  40915. +[AC_REQUIRE([_LT_PROG_FC])dnl
  40916. +AC_LANG_PUSH(Fortran)
  40917. +
  40918. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  40919. +_LT_TAGVAR(allow_undefined_flag, $1)=
  40920. +_LT_TAGVAR(always_export_symbols, $1)=no
  40921. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  40922. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  40923. +_LT_TAGVAR(hardcode_direct, $1)=no
  40924. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  40925. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  40926. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  40927. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  40928. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  40929. +_LT_TAGVAR(hardcode_automatic, $1)=no
  40930. +_LT_TAGVAR(inherit_rpath, $1)=no
  40931. +_LT_TAGVAR(module_cmds, $1)=
  40932. +_LT_TAGVAR(module_expsym_cmds, $1)=
  40933. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  40934. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  40935. +_LT_TAGVAR(no_undefined_flag, $1)=
  40936. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  40937. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  40938. +
  40939. +# Source file extension for fc test sources.
  40940. +ac_ext=${ac_fc_srcext-f}
  40941. +
  40942. +# Object file extension for compiled fc test sources.
  40943. +objext=o
  40944. +_LT_TAGVAR(objext, $1)=$objext
  40945. +
  40946. +# No sense in running all these tests if we already determined that
  40947. +# the FC compiler isn't working. Some variables (like enable_shared)
  40948. +# are currently assumed to apply to all compilers on this platform,
  40949. +# and will be corrupted by setting them based on a non-working compiler.
  40950. +if test "$_lt_disable_FC" != yes; then
  40951. + # Code to be used in simple compile tests
  40952. + lt_simple_compile_test_code="\
  40953. + subroutine t
  40954. + return
  40955. + end
  40956. +"
  40957. +
  40958. + # Code to be used in simple link tests
  40959. + lt_simple_link_test_code="\
  40960. + program t
  40961. + end
  40962. +"
  40963. +
  40964. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  40965. + _LT_TAG_COMPILER
  40966. +
  40967. + # save warnings/boilerplate of simple test code
  40968. + _LT_COMPILER_BOILERPLATE
  40969. + _LT_LINKER_BOILERPLATE
  40970. +
  40971. + # Allow CC to be a program name with arguments.
  40972. + lt_save_CC="$CC"
  40973. + lt_save_GCC=$GCC
  40974. + CC=${FC-"f95"}
  40975. + compiler=$CC
  40976. + GCC=$ac_cv_fc_compiler_gnu
  40977. +
  40978. + _LT_TAGVAR(compiler, $1)=$CC
  40979. + _LT_CC_BASENAME([$compiler])
  40980. +
  40981. + if test -n "$compiler"; then
  40982. + AC_MSG_CHECKING([if libtool supports shared libraries])
  40983. + AC_MSG_RESULT([$can_build_shared])
  40984. +
  40985. + AC_MSG_CHECKING([whether to build shared libraries])
  40986. + test "$can_build_shared" = "no" && enable_shared=no
  40987. +
  40988. + # On AIX, shared libraries and static libraries use the same namespace, and
  40989. + # are all built from PIC.
  40990. + case $host_os in
  40991. + aix3*)
  40992. + test "$enable_shared" = yes && enable_static=no
  40993. + if test -n "$RANLIB"; then
  40994. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  40995. + postinstall_cmds='$RANLIB $lib'
  40996. + fi
  40997. + ;;
  40998. + aix[[4-9]]*)
  40999. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  41000. + test "$enable_shared" = yes && enable_static=no
  41001. + fi
  41002. + ;;
  41003. + esac
  41004. + AC_MSG_RESULT([$enable_shared])
  41005. +
  41006. + AC_MSG_CHECKING([whether to build static libraries])
  41007. + # Make sure either enable_shared or enable_static is yes.
  41008. + test "$enable_shared" = yes || enable_static=yes
  41009. + AC_MSG_RESULT([$enable_static])
  41010. +
  41011. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  41012. + _LT_TAGVAR(LD, $1)="$LD"
  41013. +
  41014. + ## CAVEAT EMPTOR:
  41015. + ## There is no encapsulation within the following macros, do not change
  41016. + ## the running order or otherwise move them around unless you know exactly
  41017. + ## what you are doing...
  41018. + _LT_SYS_HIDDEN_LIBDEPS($1)
  41019. + _LT_COMPILER_PIC($1)
  41020. + _LT_COMPILER_C_O($1)
  41021. + _LT_COMPILER_FILE_LOCKS($1)
  41022. + _LT_LINKER_SHLIBS($1)
  41023. + _LT_SYS_DYNAMIC_LINKER($1)
  41024. + _LT_LINKER_HARDCODE_LIBPATH($1)
  41025. +
  41026. + _LT_CONFIG($1)
  41027. + fi # test -n "$compiler"
  41028. +
  41029. + GCC=$lt_save_GCC
  41030. + CC="$lt_save_CC"
  41031. +fi # test "$_lt_disable_FC" != yes
  41032. +
  41033. +AC_LANG_POP
  41034. +])# _LT_LANG_FC_CONFIG
  41035. +
  41036. +
  41037. +# _LT_LANG_GCJ_CONFIG([TAG])
  41038. +# --------------------------
  41039. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  41040. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  41041. +# to write the compiler configuration to `libtool'.
  41042. +m4_defun([_LT_LANG_GCJ_CONFIG],
  41043. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  41044. +AC_LANG_SAVE
  41045. +
  41046. +# Source file extension for Java test sources.
  41047. +ac_ext=java
  41048. +
  41049. +# Object file extension for compiled Java test sources.
  41050. +objext=o
  41051. +_LT_TAGVAR(objext, $1)=$objext
  41052. +
  41053. +# Code to be used in simple compile tests
  41054. +lt_simple_compile_test_code="class foo {}"
  41055. +
  41056. +# Code to be used in simple link tests
  41057. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  41058. +
  41059. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  41060. +_LT_TAG_COMPILER
  41061. +
  41062. +# save warnings/boilerplate of simple test code
  41063. +_LT_COMPILER_BOILERPLATE
  41064. +_LT_LINKER_BOILERPLATE
  41065. +
  41066. +# Allow CC to be a program name with arguments.
  41067. +lt_save_CC="$CC"
  41068. +lt_save_GCC=$GCC
  41069. +GCC=yes
  41070. +CC=${GCJ-"gcj"}
  41071. +compiler=$CC
  41072. +_LT_TAGVAR(compiler, $1)=$CC
  41073. +_LT_TAGVAR(LD, $1)="$LD"
  41074. +_LT_CC_BASENAME([$compiler])
  41075. +
  41076. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  41077. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  41078. +
  41079. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  41080. +
  41081. +## CAVEAT EMPTOR:
  41082. +## There is no encapsulation within the following macros, do not change
  41083. +## the running order or otherwise move them around unless you know exactly
  41084. +## what you are doing...
  41085. +if test -n "$compiler"; then
  41086. + _LT_COMPILER_NO_RTTI($1)
  41087. + _LT_COMPILER_PIC($1)
  41088. + _LT_COMPILER_C_O($1)
  41089. + _LT_COMPILER_FILE_LOCKS($1)
  41090. + _LT_LINKER_SHLIBS($1)
  41091. + _LT_LINKER_HARDCODE_LIBPATH($1)
  41092. +
  41093. + _LT_CONFIG($1)
  41094. +fi
  41095. +
  41096. +AC_LANG_RESTORE
  41097. +
  41098. +GCC=$lt_save_GCC
  41099. +CC="$lt_save_CC"
  41100. +])# _LT_LANG_GCJ_CONFIG
  41101. +
  41102. +
  41103. +# _LT_LANG_RC_CONFIG([TAG])
  41104. +# -------------------------
  41105. +# Ensure that the configuration variables for the Windows resource compiler
  41106. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  41107. +# to write the compiler configuration to `libtool'.
  41108. +m4_defun([_LT_LANG_RC_CONFIG],
  41109. +[AC_REQUIRE([LT_PROG_RC])dnl
  41110. +AC_LANG_SAVE
  41111. +
  41112. +# Source file extension for RC test sources.
  41113. +ac_ext=rc
  41114. +
  41115. +# Object file extension for compiled RC test sources.
  41116. +objext=o
  41117. +_LT_TAGVAR(objext, $1)=$objext
  41118. +
  41119. +# Code to be used in simple compile tests
  41120. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  41121. +
  41122. +# Code to be used in simple link tests
  41123. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  41124. +
  41125. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  41126. +_LT_TAG_COMPILER
  41127. +
  41128. +# save warnings/boilerplate of simple test code
  41129. +_LT_COMPILER_BOILERPLATE
  41130. +_LT_LINKER_BOILERPLATE
  41131. +
  41132. +# Allow CC to be a program name with arguments.
  41133. +lt_save_CC="$CC"
  41134. +lt_save_GCC=$GCC
  41135. +GCC=
  41136. +CC=${RC-"windres"}
  41137. +compiler=$CC
  41138. +_LT_TAGVAR(compiler, $1)=$CC
  41139. +_LT_CC_BASENAME([$compiler])
  41140. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  41141. +
  41142. +if test -n "$compiler"; then
  41143. + :
  41144. + _LT_CONFIG($1)
  41145. +fi
  41146. +
  41147. +GCC=$lt_save_GCC
  41148. +AC_LANG_RESTORE
  41149. +CC="$lt_save_CC"
  41150. +])# _LT_LANG_RC_CONFIG
  41151. +
  41152. +
  41153. +# LT_PROG_GCJ
  41154. +# -----------
  41155. +AC_DEFUN([LT_PROG_GCJ],
  41156. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  41157. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  41158. + [AC_CHECK_TOOL(GCJ, gcj,)
  41159. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  41160. + AC_SUBST(GCJFLAGS)])])[]dnl
  41161. +])
  41162. +
  41163. +# Old name:
  41164. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  41165. +dnl aclocal-1.4 backwards compatibility:
  41166. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  41167. +
  41168. +
  41169. +# LT_PROG_RC
  41170. +# ----------
  41171. +AC_DEFUN([LT_PROG_RC],
  41172. +[AC_CHECK_TOOL(RC, windres,)
  41173. +])
  41174. +
  41175. +# Old name:
  41176. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  41177. +dnl aclocal-1.4 backwards compatibility:
  41178. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  41179. +
  41180. +
  41181. +# _LT_DECL_EGREP
  41182. +# --------------
  41183. +# If we don't have a new enough Autoconf to choose the best grep
  41184. +# available, choose the one first in the user's PATH.
  41185. +m4_defun([_LT_DECL_EGREP],
  41186. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  41187. +AC_REQUIRE([AC_PROG_FGREP])dnl
  41188. +test -z "$GREP" && GREP=grep
  41189. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  41190. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  41191. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  41192. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  41193. +AC_SUBST([GREP])
  41194. +])
  41195. +
  41196. +
  41197. +# _LT_DECL_OBJDUMP
  41198. +# --------------
  41199. +# If we don't have a new enough Autoconf to choose the best objdump
  41200. +# available, choose the one first in the user's PATH.
  41201. +m4_defun([_LT_DECL_OBJDUMP],
  41202. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  41203. +test -z "$OBJDUMP" && OBJDUMP=objdump
  41204. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  41205. +AC_SUBST([OBJDUMP])
  41206. +])
  41207. +
  41208. +
  41209. +# _LT_DECL_SED
  41210. +# ------------
  41211. +# Check for a fully-functional sed program, that truncates
  41212. +# as few characters as possible. Prefer GNU sed if found.
  41213. +m4_defun([_LT_DECL_SED],
  41214. +[AC_PROG_SED
  41215. +test -z "$SED" && SED=sed
  41216. +Xsed="$SED -e 1s/^X//"
  41217. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  41218. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  41219. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  41220. +])# _LT_DECL_SED
  41221. +
  41222. +m4_ifndef([AC_PROG_SED], [
  41223. +############################################################
  41224. +# NOTE: This macro has been submitted for inclusion into #
  41225. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  41226. +# a released version of Autoconf we should remove this #
  41227. +# macro and use it instead. #
  41228. +############################################################
  41229. +
  41230. +m4_defun([AC_PROG_SED],
  41231. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  41232. +AC_CACHE_VAL(lt_cv_path_SED,
  41233. +[# Loop through the user's path and test for sed and gsed.
  41234. +# Then use that list of sed's as ones to test for truncation.
  41235. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  41236. +for as_dir in $PATH
  41237. +do
  41238. + IFS=$as_save_IFS
  41239. + test -z "$as_dir" && as_dir=.
  41240. + for lt_ac_prog in sed gsed; do
  41241. + for ac_exec_ext in '' $ac_executable_extensions; do
  41242. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  41243. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  41244. + fi
  41245. + done
  41246. + done
  41247. +done
  41248. +IFS=$as_save_IFS
  41249. +lt_ac_max=0
  41250. +lt_ac_count=0
  41251. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  41252. +# along with /bin/sed that truncates output.
  41253. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  41254. + test ! -f $lt_ac_sed && continue
  41255. + cat /dev/null > conftest.in
  41256. + lt_ac_count=0
  41257. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  41258. + # Check for GNU sed and select it if it is found.
  41259. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  41260. + lt_cv_path_SED=$lt_ac_sed
  41261. + break
  41262. + fi
  41263. + while true; do
  41264. + cat conftest.in conftest.in >conftest.tmp
  41265. + mv conftest.tmp conftest.in
  41266. + cp conftest.in conftest.nl
  41267. + echo >>conftest.nl
  41268. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  41269. + cmp -s conftest.out conftest.nl || break
  41270. + # 10000 chars as input seems more than enough
  41271. + test $lt_ac_count -gt 10 && break
  41272. + lt_ac_count=`expr $lt_ac_count + 1`
  41273. + if test $lt_ac_count -gt $lt_ac_max; then
  41274. + lt_ac_max=$lt_ac_count
  41275. + lt_cv_path_SED=$lt_ac_sed
  41276. + fi
  41277. + done
  41278. +done
  41279. +])
  41280. +SED=$lt_cv_path_SED
  41281. +AC_SUBST([SED])
  41282. +AC_MSG_RESULT([$SED])
  41283. +])#AC_PROG_SED
  41284. +])#m4_ifndef
  41285. +
  41286. +# Old name:
  41287. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  41288. +dnl aclocal-1.4 backwards compatibility:
  41289. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  41290. +
  41291. +
  41292. +# _LT_CHECK_SHELL_FEATURES
  41293. +# ------------------------
  41294. +# Find out whether the shell is Bourne or XSI compatible,
  41295. +# or has some other useful features.
  41296. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  41297. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  41298. +# Try some XSI features
  41299. +xsi_shell=no
  41300. +( _lt_dummy="a/b/c"
  41301. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  41302. + = c,a/b,, \
  41303. + && eval 'test $(( 1 + 1 )) -eq 2 \
  41304. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  41305. + && xsi_shell=yes
  41306. +AC_MSG_RESULT([$xsi_shell])
  41307. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  41308. +
  41309. +AC_MSG_CHECKING([whether the shell understands "+="])
  41310. +lt_shell_append=no
  41311. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  41312. + >/dev/null 2>&1 \
  41313. + && lt_shell_append=yes
  41314. +AC_MSG_RESULT([$lt_shell_append])
  41315. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  41316. +
  41317. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  41318. + lt_unset=unset
  41319. +else
  41320. + lt_unset=false
  41321. +fi
  41322. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  41323. +
  41324. +# test EBCDIC or ASCII
  41325. +case `echo X|tr X '\101'` in
  41326. + A) # ASCII based system
  41327. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  41328. + lt_SP2NL='tr \040 \012'
  41329. + lt_NL2SP='tr \015\012 \040\040'
  41330. + ;;
  41331. + *) # EBCDIC based system
  41332. + lt_SP2NL='tr \100 \n'
  41333. + lt_NL2SP='tr \r\n \100\100'
  41334. + ;;
  41335. +esac
  41336. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  41337. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  41338. +])# _LT_CHECK_SHELL_FEATURES
  41339. +
  41340. +
  41341. +# _LT_PROG_XSI_SHELLFNS
  41342. +# ---------------------
  41343. +# Bourne and XSI compatible variants of some useful shell functions.
  41344. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  41345. +[case $xsi_shell in
  41346. + yes)
  41347. + cat << \_LT_EOF >> "$cfgfile"
  41348. +
  41349. +# func_dirname file append nondir_replacement
  41350. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  41351. +# otherwise set result to NONDIR_REPLACEMENT.
  41352. +func_dirname ()
  41353. +{
  41354. + case ${1} in
  41355. + */*) func_dirname_result="${1%/*}${2}" ;;
  41356. + * ) func_dirname_result="${3}" ;;
  41357. + esac
  41358. +}
  41359. +
  41360. +# func_basename file
  41361. +func_basename ()
  41362. +{
  41363. + func_basename_result="${1##*/}"
  41364. +}
  41365. +
  41366. +# func_dirname_and_basename file append nondir_replacement
  41367. +# perform func_basename and func_dirname in a single function
  41368. +# call:
  41369. +# dirname: Compute the dirname of FILE. If nonempty,
  41370. +# add APPEND to the result, otherwise set result
  41371. +# to NONDIR_REPLACEMENT.
  41372. +# value returned in "$func_dirname_result"
  41373. +# basename: Compute filename of FILE.
  41374. +# value retuned in "$func_basename_result"
  41375. +# Implementation must be kept synchronized with func_dirname
  41376. +# and func_basename. For efficiency, we do not delegate to
  41377. +# those functions but instead duplicate the functionality here.
  41378. +func_dirname_and_basename ()
  41379. +{
  41380. + case ${1} in
  41381. + */*) func_dirname_result="${1%/*}${2}" ;;
  41382. + * ) func_dirname_result="${3}" ;;
  41383. + esac
  41384. + func_basename_result="${1##*/}"
  41385. +}
  41386. +
  41387. +# func_stripname prefix suffix name
  41388. +# strip PREFIX and SUFFIX off of NAME.
  41389. +# PREFIX and SUFFIX must not contain globbing or regex special
  41390. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  41391. +# dot (in which case that matches only a dot).
  41392. +func_stripname ()
  41393. +{
  41394. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  41395. + # positional parameters, so assign one to ordinary parameter first.
  41396. + func_stripname_result=${3}
  41397. + func_stripname_result=${func_stripname_result#"${1}"}
  41398. + func_stripname_result=${func_stripname_result%"${2}"}
  41399. +}
  41400. +
  41401. +# func_opt_split
  41402. +func_opt_split ()
  41403. +{
  41404. + func_opt_split_opt=${1%%=*}
  41405. + func_opt_split_arg=${1#*=}
  41406. +}
  41407. +
  41408. +# func_lo2o object
  41409. +func_lo2o ()
  41410. +{
  41411. + case ${1} in
  41412. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  41413. + *) func_lo2o_result=${1} ;;
  41414. + esac
  41415. +}
  41416. +
  41417. +# func_xform libobj-or-source
  41418. +func_xform ()
  41419. +{
  41420. + func_xform_result=${1%.*}.lo
  41421. +}
  41422. +
  41423. +# func_arith arithmetic-term...
  41424. +func_arith ()
  41425. +{
  41426. + func_arith_result=$(( $[*] ))
  41427. +}
  41428. +
  41429. +# func_len string
  41430. +# STRING may not start with a hyphen.
  41431. +func_len ()
  41432. +{
  41433. + func_len_result=${#1}
  41434. +}
  41435. +
  41436. +_LT_EOF
  41437. + ;;
  41438. + *) # Bourne compatible functions.
  41439. + cat << \_LT_EOF >> "$cfgfile"
  41440. +
  41441. +# func_dirname file append nondir_replacement
  41442. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  41443. +# otherwise set result to NONDIR_REPLACEMENT.
  41444. +func_dirname ()
  41445. +{
  41446. + # Extract subdirectory from the argument.
  41447. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  41448. + if test "X$func_dirname_result" = "X${1}"; then
  41449. + func_dirname_result="${3}"
  41450. + else
  41451. + func_dirname_result="$func_dirname_result${2}"
  41452. + fi
  41453. +}
  41454. +
  41455. +# func_basename file
  41456. +func_basename ()
  41457. +{
  41458. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  41459. +}
  41460. +
  41461. +dnl func_dirname_and_basename
  41462. +dnl A portable version of this function is already defined in general.m4sh
  41463. +dnl so there is no need for it here.
  41464. +
  41465. +# func_stripname prefix suffix name
  41466. +# strip PREFIX and SUFFIX off of NAME.
  41467. +# PREFIX and SUFFIX must not contain globbing or regex special
  41468. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  41469. +# dot (in which case that matches only a dot).
  41470. +# func_strip_suffix prefix name
  41471. +func_stripname ()
  41472. +{
  41473. + case ${2} in
  41474. + .*) func_stripname_result=`$ECHO "X${3}" \
  41475. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  41476. + *) func_stripname_result=`$ECHO "X${3}" \
  41477. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  41478. + esac
  41479. +}
  41480. +
  41481. +# sed scripts:
  41482. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  41483. +my_sed_long_arg='1s/^-[[^=]]*=//'
  41484. +
  41485. +# func_opt_split
  41486. +func_opt_split ()
  41487. +{
  41488. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  41489. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  41490. +}
  41491. +
  41492. +# func_lo2o object
  41493. +func_lo2o ()
  41494. +{
  41495. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  41496. +}
  41497. +
  41498. +# func_xform libobj-or-source
  41499. +func_xform ()
  41500. +{
  41501. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  41502. +}
  41503. +
  41504. +# func_arith arithmetic-term...
  41505. +func_arith ()
  41506. +{
  41507. + func_arith_result=`expr "$[@]"`
  41508. +}
  41509. +
  41510. +# func_len string
  41511. +# STRING may not start with a hyphen.
  41512. +func_len ()
  41513. +{
  41514. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  41515. +}
  41516. +
  41517. +_LT_EOF
  41518. +esac
  41519. +
  41520. +case $lt_shell_append in
  41521. + yes)
  41522. + cat << \_LT_EOF >> "$cfgfile"
  41523. +
  41524. +# func_append var value
  41525. +# Append VALUE to the end of shell variable VAR.
  41526. +func_append ()
  41527. +{
  41528. + eval "$[1]+=\$[2]"
  41529. +}
  41530. +_LT_EOF
  41531. + ;;
  41532. + *)
  41533. + cat << \_LT_EOF >> "$cfgfile"
  41534. +
  41535. +# func_append var value
  41536. +# Append VALUE to the end of shell variable VAR.
  41537. +func_append ()
  41538. +{
  41539. + eval "$[1]=\$$[1]\$[2]"
  41540. +}
  41541. +
  41542. +_LT_EOF
  41543. + ;;
  41544. + esac
  41545. +])
  41546. diff -Nur tslib-1.0.orig/m4/internal/ltoptions.m4 tslib-1.0/m4/internal/ltoptions.m4
  41547. --- tslib-1.0.orig/m4/internal/ltoptions.m4 1970-01-01 01:00:00.000000000 +0100
  41548. +++ tslib-1.0/m4/internal/ltoptions.m4 2010-07-29 13:39:16.000000000 +0200
  41549. @@ -0,0 +1,368 @@
  41550. +# Helper functions for option handling. -*- Autoconf -*-
  41551. +#
  41552. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  41553. +# Written by Gary V. Vaughan, 2004
  41554. +#
  41555. +# This file is free software; the Free Software Foundation gives
  41556. +# unlimited permission to copy and/or distribute it, with or without
  41557. +# modifications, as long as this notice is preserved.
  41558. +
  41559. +# serial 6 ltoptions.m4
  41560. +
  41561. +# This is to help aclocal find these macros, as it can't see m4_define.
  41562. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  41563. +
  41564. +
  41565. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  41566. +# ------------------------------------------
  41567. +m4_define([_LT_MANGLE_OPTION],
  41568. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  41569. +
  41570. +
  41571. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  41572. +# ---------------------------------------
  41573. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  41574. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  41575. +# saved as a flag.
  41576. +m4_define([_LT_SET_OPTION],
  41577. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  41578. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  41579. + _LT_MANGLE_DEFUN([$1], [$2]),
  41580. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  41581. +])
  41582. +
  41583. +
  41584. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  41585. +# ------------------------------------------------------------
  41586. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  41587. +m4_define([_LT_IF_OPTION],
  41588. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  41589. +
  41590. +
  41591. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  41592. +# -------------------------------------------------------
  41593. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  41594. +# are set.
  41595. +m4_define([_LT_UNLESS_OPTIONS],
  41596. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  41597. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  41598. + [m4_define([$0_found])])])[]dnl
  41599. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  41600. +])[]dnl
  41601. +])
  41602. +
  41603. +
  41604. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  41605. +# ----------------------------------------
  41606. +# OPTION-LIST is a space-separated list of Libtool options associated
  41607. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  41608. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  41609. +# the unknown option and exit.
  41610. +m4_defun([_LT_SET_OPTIONS],
  41611. +[# Set options
  41612. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  41613. + [_LT_SET_OPTION([$1], _LT_Option)])
  41614. +
  41615. +m4_if([$1],[LT_INIT],[
  41616. + dnl
  41617. + dnl Simply set some default values (i.e off) if boolean options were not
  41618. + dnl specified:
  41619. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  41620. + ])
  41621. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  41622. + ])
  41623. + dnl
  41624. + dnl If no reference was made to various pairs of opposing options, then
  41625. + dnl we run the default mode handler for the pair. For example, if neither
  41626. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  41627. + dnl archives by default:
  41628. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  41629. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  41630. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  41631. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  41632. + [_LT_ENABLE_FAST_INSTALL])
  41633. + ])
  41634. +])# _LT_SET_OPTIONS
  41635. +
  41636. +
  41637. +## --------------------------------- ##
  41638. +## Macros to handle LT_INIT options. ##
  41639. +## --------------------------------- ##
  41640. +
  41641. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  41642. +# -----------------------------------------
  41643. +m4_define([_LT_MANGLE_DEFUN],
  41644. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  41645. +
  41646. +
  41647. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  41648. +# -----------------------------------------------
  41649. +m4_define([LT_OPTION_DEFINE],
  41650. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  41651. +])# LT_OPTION_DEFINE
  41652. +
  41653. +
  41654. +# dlopen
  41655. +# ------
  41656. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  41657. +])
  41658. +
  41659. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  41660. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  41661. +AC_DIAGNOSE([obsolete],
  41662. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  41663. +put the `dlopen' option into LT_INIT's first parameter.])
  41664. +])
  41665. +
  41666. +dnl aclocal-1.4 backwards compatibility:
  41667. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  41668. +
  41669. +
  41670. +# win32-dll
  41671. +# ---------
  41672. +# Declare package support for building win32 dll's.
  41673. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  41674. +[enable_win32_dll=yes
  41675. +
  41676. +case $host in
  41677. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  41678. + AC_CHECK_TOOL(AS, as, false)
  41679. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  41680. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  41681. + ;;
  41682. +esac
  41683. +
  41684. +test -z "$AS" && AS=as
  41685. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  41686. +
  41687. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  41688. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  41689. +
  41690. +test -z "$OBJDUMP" && OBJDUMP=objdump
  41691. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  41692. +])# win32-dll
  41693. +
  41694. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  41695. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  41696. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  41697. +AC_DIAGNOSE([obsolete],
  41698. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  41699. +put the `win32-dll' option into LT_INIT's first parameter.])
  41700. +])
  41701. +
  41702. +dnl aclocal-1.4 backwards compatibility:
  41703. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  41704. +
  41705. +
  41706. +# _LT_ENABLE_SHARED([DEFAULT])
  41707. +# ----------------------------
  41708. +# implement the --enable-shared flag, and supports the `shared' and
  41709. +# `disable-shared' LT_INIT options.
  41710. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  41711. +m4_define([_LT_ENABLE_SHARED],
  41712. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  41713. +AC_ARG_ENABLE([shared],
  41714. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  41715. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  41716. + [p=${PACKAGE-default}
  41717. + case $enableval in
  41718. + yes) enable_shared=yes ;;
  41719. + no) enable_shared=no ;;
  41720. + *)
  41721. + enable_shared=no
  41722. + # Look at the argument we got. We use all the common list separators.
  41723. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  41724. + for pkg in $enableval; do
  41725. + IFS="$lt_save_ifs"
  41726. + if test "X$pkg" = "X$p"; then
  41727. + enable_shared=yes
  41728. + fi
  41729. + done
  41730. + IFS="$lt_save_ifs"
  41731. + ;;
  41732. + esac],
  41733. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  41734. +
  41735. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  41736. + [Whether or not to build shared libraries])
  41737. +])# _LT_ENABLE_SHARED
  41738. +
  41739. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  41740. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  41741. +
  41742. +# Old names:
  41743. +AC_DEFUN([AC_ENABLE_SHARED],
  41744. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  41745. +])
  41746. +
  41747. +AC_DEFUN([AC_DISABLE_SHARED],
  41748. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  41749. +])
  41750. +
  41751. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  41752. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  41753. +
  41754. +dnl aclocal-1.4 backwards compatibility:
  41755. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  41756. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  41757. +
  41758. +
  41759. +
  41760. +# _LT_ENABLE_STATIC([DEFAULT])
  41761. +# ----------------------------
  41762. +# implement the --enable-static flag, and support the `static' and
  41763. +# `disable-static' LT_INIT options.
  41764. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  41765. +m4_define([_LT_ENABLE_STATIC],
  41766. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  41767. +AC_ARG_ENABLE([static],
  41768. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  41769. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  41770. + [p=${PACKAGE-default}
  41771. + case $enableval in
  41772. + yes) enable_static=yes ;;
  41773. + no) enable_static=no ;;
  41774. + *)
  41775. + enable_static=no
  41776. + # Look at the argument we got. We use all the common list separators.
  41777. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  41778. + for pkg in $enableval; do
  41779. + IFS="$lt_save_ifs"
  41780. + if test "X$pkg" = "X$p"; then
  41781. + enable_static=yes
  41782. + fi
  41783. + done
  41784. + IFS="$lt_save_ifs"
  41785. + ;;
  41786. + esac],
  41787. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  41788. +
  41789. + _LT_DECL([build_old_libs], [enable_static], [0],
  41790. + [Whether or not to build static libraries])
  41791. +])# _LT_ENABLE_STATIC
  41792. +
  41793. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  41794. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  41795. +
  41796. +# Old names:
  41797. +AC_DEFUN([AC_ENABLE_STATIC],
  41798. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  41799. +])
  41800. +
  41801. +AC_DEFUN([AC_DISABLE_STATIC],
  41802. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  41803. +])
  41804. +
  41805. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  41806. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  41807. +
  41808. +dnl aclocal-1.4 backwards compatibility:
  41809. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  41810. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  41811. +
  41812. +
  41813. +
  41814. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  41815. +# ----------------------------------
  41816. +# implement the --enable-fast-install flag, and support the `fast-install'
  41817. +# and `disable-fast-install' LT_INIT options.
  41818. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  41819. +m4_define([_LT_ENABLE_FAST_INSTALL],
  41820. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  41821. +AC_ARG_ENABLE([fast-install],
  41822. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  41823. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  41824. + [p=${PACKAGE-default}
  41825. + case $enableval in
  41826. + yes) enable_fast_install=yes ;;
  41827. + no) enable_fast_install=no ;;
  41828. + *)
  41829. + enable_fast_install=no
  41830. + # Look at the argument we got. We use all the common list separators.
  41831. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  41832. + for pkg in $enableval; do
  41833. + IFS="$lt_save_ifs"
  41834. + if test "X$pkg" = "X$p"; then
  41835. + enable_fast_install=yes
  41836. + fi
  41837. + done
  41838. + IFS="$lt_save_ifs"
  41839. + ;;
  41840. + esac],
  41841. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  41842. +
  41843. +_LT_DECL([fast_install], [enable_fast_install], [0],
  41844. + [Whether or not to optimize for fast installation])dnl
  41845. +])# _LT_ENABLE_FAST_INSTALL
  41846. +
  41847. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  41848. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  41849. +
  41850. +# Old names:
  41851. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  41852. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  41853. +AC_DIAGNOSE([obsolete],
  41854. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  41855. +the `fast-install' option into LT_INIT's first parameter.])
  41856. +])
  41857. +
  41858. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  41859. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  41860. +AC_DIAGNOSE([obsolete],
  41861. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  41862. +the `disable-fast-install' option into LT_INIT's first parameter.])
  41863. +])
  41864. +
  41865. +dnl aclocal-1.4 backwards compatibility:
  41866. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  41867. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  41868. +
  41869. +
  41870. +# _LT_WITH_PIC([MODE])
  41871. +# --------------------
  41872. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  41873. +# LT_INIT options.
  41874. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  41875. +m4_define([_LT_WITH_PIC],
  41876. +[AC_ARG_WITH([pic],
  41877. + [AS_HELP_STRING([--with-pic],
  41878. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  41879. + [pic_mode="$withval"],
  41880. + [pic_mode=default])
  41881. +
  41882. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  41883. +
  41884. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  41885. +])# _LT_WITH_PIC
  41886. +
  41887. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  41888. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  41889. +
  41890. +# Old name:
  41891. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  41892. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  41893. +AC_DIAGNOSE([obsolete],
  41894. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  41895. +put the `pic-only' option into LT_INIT's first parameter.])
  41896. +])
  41897. +
  41898. +dnl aclocal-1.4 backwards compatibility:
  41899. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  41900. +
  41901. +## ----------------- ##
  41902. +## LTDL_INIT Options ##
  41903. +## ----------------- ##
  41904. +
  41905. +m4_define([_LTDL_MODE], [])
  41906. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  41907. + [m4_define([_LTDL_MODE], [nonrecursive])])
  41908. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  41909. + [m4_define([_LTDL_MODE], [recursive])])
  41910. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  41911. + [m4_define([_LTDL_MODE], [subproject])])
  41912. +
  41913. +m4_define([_LTDL_TYPE], [])
  41914. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  41915. + [m4_define([_LTDL_TYPE], [installable])])
  41916. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  41917. + [m4_define([_LTDL_TYPE], [convenience])])
  41918. diff -Nur tslib-1.0.orig/m4/internal/ltsugar.m4 tslib-1.0/m4/internal/ltsugar.m4
  41919. --- tslib-1.0.orig/m4/internal/ltsugar.m4 1970-01-01 01:00:00.000000000 +0100
  41920. +++ tslib-1.0/m4/internal/ltsugar.m4 2010-07-29 13:39:16.000000000 +0200
  41921. @@ -0,0 +1,123 @@
  41922. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  41923. +#
  41924. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  41925. +# Written by Gary V. Vaughan, 2004
  41926. +#
  41927. +# This file is free software; the Free Software Foundation gives
  41928. +# unlimited permission to copy and/or distribute it, with or without
  41929. +# modifications, as long as this notice is preserved.
  41930. +
  41931. +# serial 6 ltsugar.m4
  41932. +
  41933. +# This is to help aclocal find these macros, as it can't see m4_define.
  41934. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  41935. +
  41936. +
  41937. +# lt_join(SEP, ARG1, [ARG2...])
  41938. +# -----------------------------
  41939. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  41940. +# associated separator.
  41941. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  41942. +# versions in m4sugar had bugs.
  41943. +m4_define([lt_join],
  41944. +[m4_if([$#], [1], [],
  41945. + [$#], [2], [[$2]],
  41946. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  41947. +m4_define([_lt_join],
  41948. +[m4_if([$#$2], [2], [],
  41949. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  41950. +
  41951. +
  41952. +# lt_car(LIST)
  41953. +# lt_cdr(LIST)
  41954. +# ------------
  41955. +# Manipulate m4 lists.
  41956. +# These macros are necessary as long as will still need to support
  41957. +# Autoconf-2.59 which quotes differently.
  41958. +m4_define([lt_car], [[$1]])
  41959. +m4_define([lt_cdr],
  41960. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  41961. + [$#], 1, [],
  41962. + [m4_dquote(m4_shift($@))])])
  41963. +m4_define([lt_unquote], $1)
  41964. +
  41965. +
  41966. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  41967. +# ------------------------------------------
  41968. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  41969. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  41970. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  41971. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  41972. +# than defined and empty).
  41973. +#
  41974. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  41975. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  41976. +m4_define([lt_append],
  41977. +[m4_define([$1],
  41978. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  41979. +
  41980. +
  41981. +
  41982. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  41983. +# ----------------------------------------------------------
  41984. +# Produce a SEP delimited list of all paired combinations of elements of
  41985. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  41986. +# has the form PREFIXmINFIXSUFFIXn.
  41987. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  41988. +m4_define([lt_combine],
  41989. +[m4_if(m4_eval([$# > 3]), [1],
  41990. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  41991. +[[m4_foreach([_Lt_prefix], [$2],
  41992. + [m4_foreach([_Lt_suffix],
  41993. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  41994. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  41995. +
  41996. +
  41997. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  41998. +# -----------------------------------------------------------------------
  41999. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  42000. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  42001. +m4_define([lt_if_append_uniq],
  42002. +[m4_ifdef([$1],
  42003. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  42004. + [lt_append([$1], [$2], [$3])$4],
  42005. + [$5])],
  42006. + [lt_append([$1], [$2], [$3])$4])])
  42007. +
  42008. +
  42009. +# lt_dict_add(DICT, KEY, VALUE)
  42010. +# -----------------------------
  42011. +m4_define([lt_dict_add],
  42012. +[m4_define([$1($2)], [$3])])
  42013. +
  42014. +
  42015. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  42016. +# --------------------------------------------
  42017. +m4_define([lt_dict_add_subkey],
  42018. +[m4_define([$1($2:$3)], [$4])])
  42019. +
  42020. +
  42021. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  42022. +# ----------------------------------
  42023. +m4_define([lt_dict_fetch],
  42024. +[m4_ifval([$3],
  42025. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  42026. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  42027. +
  42028. +
  42029. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  42030. +# -----------------------------------------------------------------
  42031. +m4_define([lt_if_dict_fetch],
  42032. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  42033. + [$5],
  42034. + [$6])])
  42035. +
  42036. +
  42037. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  42038. +# --------------------------------------------------------------
  42039. +m4_define([lt_dict_filter],
  42040. +[m4_if([$5], [], [],
  42041. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  42042. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  42043. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  42044. +])
  42045. diff -Nur tslib-1.0.orig/m4/internal/ltversion.m4 tslib-1.0/m4/internal/ltversion.m4
  42046. --- tslib-1.0.orig/m4/internal/ltversion.m4 1970-01-01 01:00:00.000000000 +0100
  42047. +++ tslib-1.0/m4/internal/ltversion.m4 2010-07-29 13:39:16.000000000 +0200
  42048. @@ -0,0 +1,23 @@
  42049. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  42050. +#
  42051. +# Copyright (C) 2004 Free Software Foundation, Inc.
  42052. +# Written by Scott James Remnant, 2004
  42053. +#
  42054. +# This file is free software; the Free Software Foundation gives
  42055. +# unlimited permission to copy and/or distribute it, with or without
  42056. +# modifications, as long as this notice is preserved.
  42057. +
  42058. +# Generated from ltversion.in.
  42059. +
  42060. +# serial 3017 ltversion.m4
  42061. +# This file is part of GNU Libtool
  42062. +
  42063. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  42064. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  42065. +
  42066. +AC_DEFUN([LTVERSION_VERSION],
  42067. +[macro_version='2.2.6b'
  42068. +macro_revision='1.3017'
  42069. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  42070. +_LT_DECL(, macro_revision, 0)
  42071. +])
  42072. diff -Nur tslib-1.0.orig/m4/internal/lt~obsolete.m4 tslib-1.0/m4/internal/lt~obsolete.m4
  42073. --- tslib-1.0.orig/m4/internal/lt~obsolete.m4 1970-01-01 01:00:00.000000000 +0100
  42074. +++ tslib-1.0/m4/internal/lt~obsolete.m4 2010-07-29 13:39:16.000000000 +0200
  42075. @@ -0,0 +1,92 @@
  42076. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  42077. +#
  42078. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  42079. +# Written by Scott James Remnant, 2004.
  42080. +#
  42081. +# This file is free software; the Free Software Foundation gives
  42082. +# unlimited permission to copy and/or distribute it, with or without
  42083. +# modifications, as long as this notice is preserved.
  42084. +
  42085. +# serial 4 lt~obsolete.m4
  42086. +
  42087. +# These exist entirely to fool aclocal when bootstrapping libtool.
  42088. +#
  42089. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  42090. +# which have later been changed to m4_define as they aren't part of the
  42091. +# exported API, or moved to Autoconf or Automake where they belong.
  42092. +#
  42093. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  42094. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  42095. +# using a macro with the same name in our local m4/libtool.m4 it'll
  42096. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  42097. +# and doesn't know about Autoconf macros at all.)
  42098. +#
  42099. +# So we provide this file, which has a silly filename so it's always
  42100. +# included after everything else. This provides aclocal with the
  42101. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  42102. +# because those macros already exist, or will be overwritten later.
  42103. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  42104. +#
  42105. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  42106. +# Yes, that means every name once taken will need to remain here until
  42107. +# we give up compatibility with versions before 1.7, at which point
  42108. +# we need to keep only those names which we still refer to.
  42109. +
  42110. +# This is to help aclocal find these macros, as it can't see m4_define.
  42111. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  42112. +
  42113. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  42114. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  42115. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  42116. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  42117. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  42118. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  42119. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  42120. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  42121. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  42122. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  42123. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  42124. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  42125. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  42126. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  42127. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  42128. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  42129. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  42130. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  42131. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  42132. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  42133. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  42134. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  42135. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  42136. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  42137. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  42138. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  42139. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  42140. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  42141. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  42142. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  42143. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  42144. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  42145. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  42146. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  42147. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  42148. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  42149. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  42150. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  42151. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  42152. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  42153. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  42154. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  42155. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  42156. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  42157. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  42158. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  42159. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  42160. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  42161. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  42162. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  42163. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  42164. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  42165. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  42166. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  42167. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  42168. diff -Nur tslib-1.0.orig/missing tslib-1.0/missing
  42169. --- tslib-1.0.orig/missing 1970-01-01 01:00:00.000000000 +0100
  42170. +++ tslib-1.0/missing 2010-07-29 13:39:16.000000000 +0200
  42171. @@ -0,0 +1,376 @@
  42172. +#! /bin/sh
  42173. +# Common stub for a few missing GNU programs while installing.
  42174. +
  42175. +scriptversion=2009-04-28.21; # UTC
  42176. +
  42177. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  42178. +# 2008, 2009 Free Software Foundation, Inc.
  42179. +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  42180. +
  42181. +# This program is free software; you can redistribute it and/or modify
  42182. +# it under the terms of the GNU General Public License as published by
  42183. +# the Free Software Foundation; either version 2, or (at your option)
  42184. +# any later version.
  42185. +
  42186. +# This program is distributed in the hope that it will be useful,
  42187. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  42188. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  42189. +# GNU General Public License for more details.
  42190. +
  42191. +# You should have received a copy of the GNU General Public License
  42192. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  42193. +
  42194. +# As a special exception to the GNU General Public License, if you
  42195. +# distribute this file as part of a program that contains a
  42196. +# configuration script generated by Autoconf, you may include it under
  42197. +# the same distribution terms that you use for the rest of that program.
  42198. +
  42199. +if test $# -eq 0; then
  42200. + echo 1>&2 "Try \`$0 --help' for more information"
  42201. + exit 1
  42202. +fi
  42203. +
  42204. +run=:
  42205. +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
  42206. +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
  42207. +
  42208. +# In the cases where this matters, `missing' is being run in the
  42209. +# srcdir already.
  42210. +if test -f configure.ac; then
  42211. + configure_ac=configure.ac
  42212. +else
  42213. + configure_ac=configure.in
  42214. +fi
  42215. +
  42216. +msg="missing on your system"
  42217. +
  42218. +case $1 in
  42219. +--run)
  42220. + # Try to run requested program, and just exit if it succeeds.
  42221. + run=
  42222. + shift
  42223. + "$@" && exit 0
  42224. + # Exit code 63 means version mismatch. This often happens
  42225. + # when the user try to use an ancient version of a tool on
  42226. + # a file that requires a minimum version. In this case we
  42227. + # we should proceed has if the program had been absent, or
  42228. + # if --run hadn't been passed.
  42229. + if test $? = 63; then
  42230. + run=:
  42231. + msg="probably too old"
  42232. + fi
  42233. + ;;
  42234. +
  42235. + -h|--h|--he|--hel|--help)
  42236. + echo "\
  42237. +$0 [OPTION]... PROGRAM [ARGUMENT]...
  42238. +
  42239. +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
  42240. +error status if there is no known handling for PROGRAM.
  42241. +
  42242. +Options:
  42243. + -h, --help display this help and exit
  42244. + -v, --version output version information and exit
  42245. + --run try to run the given command, and emulate it if it fails
  42246. +
  42247. +Supported PROGRAM values:
  42248. + aclocal touch file \`aclocal.m4'
  42249. + autoconf touch file \`configure'
  42250. + autoheader touch file \`config.h.in'
  42251. + autom4te touch the output file, or create a stub one
  42252. + automake touch all \`Makefile.in' files
  42253. + bison create \`y.tab.[ch]', if possible, from existing .[ch]
  42254. + flex create \`lex.yy.c', if possible, from existing .c
  42255. + help2man touch the output file
  42256. + lex create \`lex.yy.c', if possible, from existing .c
  42257. + makeinfo touch the output file
  42258. + tar try tar, gnutar, gtar, then tar without non-portable flags
  42259. + yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  42260. +
  42261. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  42262. +\`g' are ignored when checking the name.
  42263. +
  42264. +Send bug reports to <bug-automake@gnu.org>."
  42265. + exit $?
  42266. + ;;
  42267. +
  42268. + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
  42269. + echo "missing $scriptversion (GNU Automake)"
  42270. + exit $?
  42271. + ;;
  42272. +
  42273. + -*)
  42274. + echo 1>&2 "$0: Unknown \`$1' option"
  42275. + echo 1>&2 "Try \`$0 --help' for more information"
  42276. + exit 1
  42277. + ;;
  42278. +
  42279. +esac
  42280. +
  42281. +# normalize program name to check for.
  42282. +program=`echo "$1" | sed '
  42283. + s/^gnu-//; t
  42284. + s/^gnu//; t
  42285. + s/^g//; t'`
  42286. +
  42287. +# Now exit if we have it, but it failed. Also exit now if we
  42288. +# don't have it and --version was passed (most likely to detect
  42289. +# the program). This is about non-GNU programs, so use $1 not
  42290. +# $program.
  42291. +case $1 in
  42292. + lex*|yacc*)
  42293. + # Not GNU programs, they don't have --version.
  42294. + ;;
  42295. +
  42296. + tar*)
  42297. + if test -n "$run"; then
  42298. + echo 1>&2 "ERROR: \`tar' requires --run"
  42299. + exit 1
  42300. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  42301. + exit 1
  42302. + fi
  42303. + ;;
  42304. +
  42305. + *)
  42306. + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  42307. + # We have it, but it failed.
  42308. + exit 1
  42309. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  42310. + # Could not run --version or --help. This is probably someone
  42311. + # running `$TOOL --version' or `$TOOL --help' to check whether
  42312. + # $TOOL exists and not knowing $TOOL uses missing.
  42313. + exit 1
  42314. + fi
  42315. + ;;
  42316. +esac
  42317. +
  42318. +# If it does not exist, or fails to run (possibly an outdated version),
  42319. +# try to emulate it.
  42320. +case $program in
  42321. + aclocal*)
  42322. + echo 1>&2 "\
  42323. +WARNING: \`$1' is $msg. You should only need it if
  42324. + you modified \`acinclude.m4' or \`${configure_ac}'. You might want
  42325. + to install the \`Automake' and \`Perl' packages. Grab them from
  42326. + any GNU archive site."
  42327. + touch aclocal.m4
  42328. + ;;
  42329. +
  42330. + autoconf*)
  42331. + echo 1>&2 "\
  42332. +WARNING: \`$1' is $msg. You should only need it if
  42333. + you modified \`${configure_ac}'. You might want to install the
  42334. + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
  42335. + archive site."
  42336. + touch configure
  42337. + ;;
  42338. +
  42339. + autoheader*)
  42340. + echo 1>&2 "\
  42341. +WARNING: \`$1' is $msg. You should only need it if
  42342. + you modified \`acconfig.h' or \`${configure_ac}'. You might want
  42343. + to install the \`Autoconf' and \`GNU m4' packages. Grab them
  42344. + from any GNU archive site."
  42345. + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
  42346. + test -z "$files" && files="config.h"
  42347. + touch_files=
  42348. + for f in $files; do
  42349. + case $f in
  42350. + *:*) touch_files="$touch_files "`echo "$f" |
  42351. + sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  42352. + *) touch_files="$touch_files $f.in";;
  42353. + esac
  42354. + done
  42355. + touch $touch_files
  42356. + ;;
  42357. +
  42358. + automake*)
  42359. + echo 1>&2 "\
  42360. +WARNING: \`$1' is $msg. You should only need it if
  42361. + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
  42362. + You might want to install the \`Automake' and \`Perl' packages.
  42363. + Grab them from any GNU archive site."
  42364. + find . -type f -name Makefile.am -print |
  42365. + sed 's/\.am$/.in/' |
  42366. + while read f; do touch "$f"; done
  42367. + ;;
  42368. +
  42369. + autom4te*)
  42370. + echo 1>&2 "\
  42371. +WARNING: \`$1' is needed, but is $msg.
  42372. + You might have modified some files without having the
  42373. + proper tools for further handling them.
  42374. + You can get \`$1' as part of \`Autoconf' from any GNU
  42375. + archive site."
  42376. +
  42377. + file=`echo "$*" | sed -n "$sed_output"`
  42378. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  42379. + if test -f "$file"; then
  42380. + touch $file
  42381. + else
  42382. + test -z "$file" || exec >$file
  42383. + echo "#! /bin/sh"
  42384. + echo "# Created by GNU Automake missing as a replacement of"
  42385. + echo "# $ $@"
  42386. + echo "exit 0"
  42387. + chmod +x $file
  42388. + exit 1
  42389. + fi
  42390. + ;;
  42391. +
  42392. + bison*|yacc*)
  42393. + echo 1>&2 "\
  42394. +WARNING: \`$1' $msg. You should only need it if
  42395. + you modified a \`.y' file. You may need the \`Bison' package
  42396. + in order for those modifications to take effect. You can get
  42397. + \`Bison' from any GNU archive site."
  42398. + rm -f y.tab.c y.tab.h
  42399. + if test $# -ne 1; then
  42400. + eval LASTARG="\${$#}"
  42401. + case $LASTARG in
  42402. + *.y)
  42403. + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  42404. + if test -f "$SRCFILE"; then
  42405. + cp "$SRCFILE" y.tab.c
  42406. + fi
  42407. + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  42408. + if test -f "$SRCFILE"; then
  42409. + cp "$SRCFILE" y.tab.h
  42410. + fi
  42411. + ;;
  42412. + esac
  42413. + fi
  42414. + if test ! -f y.tab.h; then
  42415. + echo >y.tab.h
  42416. + fi
  42417. + if test ! -f y.tab.c; then
  42418. + echo 'main() { return 0; }' >y.tab.c
  42419. + fi
  42420. + ;;
  42421. +
  42422. + lex*|flex*)
  42423. + echo 1>&2 "\
  42424. +WARNING: \`$1' is $msg. You should only need it if
  42425. + you modified a \`.l' file. You may need the \`Flex' package
  42426. + in order for those modifications to take effect. You can get
  42427. + \`Flex' from any GNU archive site."
  42428. + rm -f lex.yy.c
  42429. + if test $# -ne 1; then
  42430. + eval LASTARG="\${$#}"
  42431. + case $LASTARG in
  42432. + *.l)
  42433. + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  42434. + if test -f "$SRCFILE"; then
  42435. + cp "$SRCFILE" lex.yy.c
  42436. + fi
  42437. + ;;
  42438. + esac
  42439. + fi
  42440. + if test ! -f lex.yy.c; then
  42441. + echo 'main() { return 0; }' >lex.yy.c
  42442. + fi
  42443. + ;;
  42444. +
  42445. + help2man*)
  42446. + echo 1>&2 "\
  42447. +WARNING: \`$1' is $msg. You should only need it if
  42448. + you modified a dependency of a manual page. You may need the
  42449. + \`Help2man' package in order for those modifications to take
  42450. + effect. You can get \`Help2man' from any GNU archive site."
  42451. +
  42452. + file=`echo "$*" | sed -n "$sed_output"`
  42453. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  42454. + if test -f "$file"; then
  42455. + touch $file
  42456. + else
  42457. + test -z "$file" || exec >$file
  42458. + echo ".ab help2man is required to generate this page"
  42459. + exit $?
  42460. + fi
  42461. + ;;
  42462. +
  42463. + makeinfo*)
  42464. + echo 1>&2 "\
  42465. +WARNING: \`$1' is $msg. You should only need it if
  42466. + you modified a \`.texi' or \`.texinfo' file, or any other file
  42467. + indirectly affecting the aspect of the manual. The spurious
  42468. + call might also be the consequence of using a buggy \`make' (AIX,
  42469. + DU, IRIX). You might want to install the \`Texinfo' package or
  42470. + the \`GNU make' package. Grab either from any GNU archive site."
  42471. + # The file to touch is that specified with -o ...
  42472. + file=`echo "$*" | sed -n "$sed_output"`
  42473. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  42474. + if test -z "$file"; then
  42475. + # ... or it is the one specified with @setfilename ...
  42476. + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  42477. + file=`sed -n '
  42478. + /^@setfilename/{
  42479. + s/.* \([^ ]*\) *$/\1/
  42480. + p
  42481. + q
  42482. + }' $infile`
  42483. + # ... or it is derived from the source name (dir/f.texi becomes f.info)
  42484. + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  42485. + fi
  42486. + # If the file does not exist, the user really needs makeinfo;
  42487. + # let's fail without touching anything.
  42488. + test -f $file || exit 1
  42489. + touch $file
  42490. + ;;
  42491. +
  42492. + tar*)
  42493. + shift
  42494. +
  42495. + # We have already tried tar in the generic part.
  42496. + # Look for gnutar/gtar before invocation to avoid ugly error
  42497. + # messages.
  42498. + if (gnutar --version > /dev/null 2>&1); then
  42499. + gnutar "$@" && exit 0
  42500. + fi
  42501. + if (gtar --version > /dev/null 2>&1); then
  42502. + gtar "$@" && exit 0
  42503. + fi
  42504. + firstarg="$1"
  42505. + if shift; then
  42506. + case $firstarg in
  42507. + *o*)
  42508. + firstarg=`echo "$firstarg" | sed s/o//`
  42509. + tar "$firstarg" "$@" && exit 0
  42510. + ;;
  42511. + esac
  42512. + case $firstarg in
  42513. + *h*)
  42514. + firstarg=`echo "$firstarg" | sed s/h//`
  42515. + tar "$firstarg" "$@" && exit 0
  42516. + ;;
  42517. + esac
  42518. + fi
  42519. +
  42520. + echo 1>&2 "\
  42521. +WARNING: I can't seem to be able to run \`tar' with the given arguments.
  42522. + You may want to install GNU tar or Free paxutils, or check the
  42523. + command line arguments."
  42524. + exit 1
  42525. + ;;
  42526. +
  42527. + *)
  42528. + echo 1>&2 "\
  42529. +WARNING: \`$1' is needed, and is $msg.
  42530. + You might have modified some files without having the
  42531. + proper tools for further handling them. Check the \`README' file,
  42532. + it often tells you about the needed prerequisites for installing
  42533. + this package. You may also peek at any GNU archive site, in case
  42534. + some other package would contain this missing \`$1' program."
  42535. + exit 1
  42536. + ;;
  42537. +esac
  42538. +
  42539. +exit 0
  42540. +
  42541. +# Local variables:
  42542. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  42543. +# time-stamp-start: "scriptversion="
  42544. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  42545. +# time-stamp-time-zone: "UTC"
  42546. +# time-stamp-end: "; # UTC"
  42547. +# End:
  42548. diff -Nur tslib-1.0.orig/plugins/Makefile.in tslib-1.0/plugins/Makefile.in
  42549. --- tslib-1.0.orig/plugins/Makefile.in 1970-01-01 01:00:00.000000000 +0100
  42550. +++ tslib-1.0/plugins/Makefile.in 2010-07-29 13:39:16.000000000 +0200
  42551. @@ -0,0 +1,746 @@
  42552. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  42553. +# @configure_input@
  42554. +
  42555. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  42556. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  42557. +# Inc.
  42558. +# This Makefile.in is free software; the Free Software Foundation
  42559. +# gives unlimited permission to copy and/or distribute it,
  42560. +# with or without modifications, as long as this notice is preserved.
  42561. +
  42562. +# This program is distributed in the hope that it will be useful,
  42563. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  42564. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  42565. +# PARTICULAR PURPOSE.
  42566. +
  42567. +@SET_MAKE@
  42568. +
  42569. +#
  42570. +# tslib/plugins/Makefile.am
  42571. +#
  42572. +# Copyright (C) 2001 Russell King.
  42573. +#
  42574. +# This file is placed under the LGPL. Please see the file
  42575. +# COPYING for more details.
  42576. +#
  42577. +# $Id: Makefile.am,v 1.7 2005/02/28 23:44:12 kergoth Exp $
  42578. +#
  42579. +
  42580. +VPATH = @srcdir@
  42581. +pkgdatadir = $(datadir)/@PACKAGE@
  42582. +pkgincludedir = $(includedir)/@PACKAGE@
  42583. +pkglibdir = $(libdir)/@PACKAGE@
  42584. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  42585. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  42586. +install_sh_DATA = $(install_sh) -c -m 644
  42587. +install_sh_PROGRAM = $(install_sh) -c
  42588. +install_sh_SCRIPT = $(install_sh) -c
  42589. +INSTALL_HEADER = $(INSTALL_DATA)
  42590. +transform = $(program_transform_name)
  42591. +NORMAL_INSTALL = :
  42592. +PRE_INSTALL = :
  42593. +POST_INSTALL = :
  42594. +NORMAL_UNINSTALL = :
  42595. +PRE_UNINSTALL = :
  42596. +POST_UNINSTALL = :
  42597. +build_triplet = @build@
  42598. +host_triplet = @host@
  42599. +subdir = plugins
  42600. +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  42601. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  42602. +am__aclocal_m4_deps = $(top_srcdir)/m4/internal/libtool.m4 \
  42603. + $(top_srcdir)/m4/internal/ltoptions.m4 \
  42604. + $(top_srcdir)/m4/internal/ltsugar.m4 \
  42605. + $(top_srcdir)/m4/internal/ltversion.m4 \
  42606. + $(top_srcdir)/m4/internal/lt~obsolete.m4 \
  42607. + $(top_srcdir)/m4/internal/visibility.m4 \
  42608. + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  42609. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  42610. + $(ACLOCAL_M4)
  42611. +mkinstalldirs = $(install_sh) -d
  42612. +CONFIG_HEADER = $(top_builddir)/config.h
  42613. +CONFIG_CLEAN_FILES =
  42614. +CONFIG_CLEAN_VPATH_FILES =
  42615. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  42616. +am__vpath_adj = case $$p in \
  42617. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  42618. + *) f=$$p;; \
  42619. + esac;
  42620. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  42621. +am__install_max = 40
  42622. +am__nobase_strip_setup = \
  42623. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  42624. +am__nobase_strip = \
  42625. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  42626. +am__nobase_list = $(am__nobase_strip_setup); \
  42627. + for p in $$list; do echo "$$p $$p"; done | \
  42628. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  42629. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  42630. + if (++n[$$2] == $(am__install_max)) \
  42631. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  42632. + END { for (dir in files) print dir, files[dir] }'
  42633. +am__base_list = \
  42634. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  42635. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  42636. +am__installdirs = "$(DESTDIR)$(pluginexecdir)"
  42637. +LTLIBRARIES = $(pluginexec_LTLIBRARIES)
  42638. +arctic2_la_LIBADD =
  42639. +am_arctic2_la_OBJECTS = arctic2-raw.lo
  42640. +arctic2_la_OBJECTS = $(am_arctic2_la_OBJECTS)
  42641. +arctic2_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42642. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42643. + $(arctic2_la_LDFLAGS) $(LDFLAGS) -o $@
  42644. +@ENABLE_ARCTIC2_MODULE_TRUE@am_arctic2_la_rpath = -rpath \
  42645. +@ENABLE_ARCTIC2_MODULE_TRUE@ $(pluginexecdir)
  42646. +collie_la_LIBADD =
  42647. +am_collie_la_OBJECTS = collie-raw.lo
  42648. +collie_la_OBJECTS = $(am_collie_la_OBJECTS)
  42649. +collie_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42650. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42651. + $(collie_la_LDFLAGS) $(LDFLAGS) -o $@
  42652. +@ENABLE_COLLIE_MODULE_TRUE@am_collie_la_rpath = -rpath \
  42653. +@ENABLE_COLLIE_MODULE_TRUE@ $(pluginexecdir)
  42654. +corgi_la_LIBADD =
  42655. +am_corgi_la_OBJECTS = corgi-raw.lo
  42656. +corgi_la_OBJECTS = $(am_corgi_la_OBJECTS)
  42657. +corgi_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  42658. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(corgi_la_LDFLAGS) \
  42659. + $(LDFLAGS) -o $@
  42660. +@ENABLE_CORGI_MODULE_TRUE@am_corgi_la_rpath = -rpath $(pluginexecdir)
  42661. +dejitter_la_LIBADD =
  42662. +am_dejitter_la_OBJECTS = dejitter.lo
  42663. +dejitter_la_OBJECTS = $(am_dejitter_la_OBJECTS)
  42664. +dejitter_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42665. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42666. + $(dejitter_la_LDFLAGS) $(LDFLAGS) -o $@
  42667. +@ENABLE_LINEAR_MODULE_TRUE@am_dejitter_la_rpath = -rpath \
  42668. +@ENABLE_LINEAR_MODULE_TRUE@ $(pluginexecdir)
  42669. +h3600_la_LIBADD =
  42670. +am_h3600_la_OBJECTS = h3600-raw.lo
  42671. +h3600_la_OBJECTS = $(am_h3600_la_OBJECTS)
  42672. +h3600_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  42673. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(h3600_la_LDFLAGS) \
  42674. + $(LDFLAGS) -o $@
  42675. +@ENABLE_H3600_MODULE_TRUE@am_h3600_la_rpath = -rpath $(pluginexecdir)
  42676. +input_la_LIBADD =
  42677. +am_input_la_OBJECTS = input-raw.lo
  42678. +input_la_OBJECTS = $(am_input_la_OBJECTS)
  42679. +input_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  42680. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(input_la_LDFLAGS) \
  42681. + $(LDFLAGS) -o $@
  42682. +@ENABLE_INPUT_MODULE_TRUE@am_input_la_rpath = -rpath $(pluginexecdir)
  42683. +linear_la_LIBADD =
  42684. +am_linear_la_OBJECTS = linear.lo
  42685. +linear_la_OBJECTS = $(am_linear_la_OBJECTS)
  42686. +linear_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42687. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42688. + $(linear_la_LDFLAGS) $(LDFLAGS) -o $@
  42689. +@ENABLE_LINEAR_MODULE_TRUE@am_linear_la_rpath = -rpath \
  42690. +@ENABLE_LINEAR_MODULE_TRUE@ $(pluginexecdir)
  42691. +linear_h2200_la_LIBADD =
  42692. +am_linear_h2200_la_OBJECTS = linear-h2200.lo
  42693. +linear_h2200_la_OBJECTS = $(am_linear_h2200_la_OBJECTS)
  42694. +linear_h2200_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42695. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42696. + $(linear_h2200_la_LDFLAGS) $(LDFLAGS) -o $@
  42697. +@ENABLE_H2200_LINEAR_MODULE_TRUE@am_linear_h2200_la_rpath = -rpath \
  42698. +@ENABLE_H2200_LINEAR_MODULE_TRUE@ $(pluginexecdir)
  42699. +mk712_la_LIBADD =
  42700. +am_mk712_la_OBJECTS = mk712-raw.lo
  42701. +mk712_la_OBJECTS = $(am_mk712_la_OBJECTS)
  42702. +mk712_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  42703. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(mk712_la_LDFLAGS) \
  42704. + $(LDFLAGS) -o $@
  42705. +@ENABLE_MK712_MODULE_TRUE@am_mk712_la_rpath = -rpath $(pluginexecdir)
  42706. +pthres_la_LIBADD =
  42707. +am_pthres_la_OBJECTS = pthres.lo
  42708. +pthres_la_OBJECTS = $(am_pthres_la_OBJECTS)
  42709. +pthres_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42710. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42711. + $(pthres_la_LDFLAGS) $(LDFLAGS) -o $@
  42712. +@ENABLE_PTHRES_MODULE_TRUE@am_pthres_la_rpath = -rpath \
  42713. +@ENABLE_PTHRES_MODULE_TRUE@ $(pluginexecdir)
  42714. +ucb1x00_la_LIBADD =
  42715. +am_ucb1x00_la_OBJECTS = ucb1x00-raw.lo
  42716. +ucb1x00_la_OBJECTS = $(am_ucb1x00_la_OBJECTS)
  42717. +ucb1x00_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42718. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42719. + $(ucb1x00_la_LDFLAGS) $(LDFLAGS) -o $@
  42720. +@ENABLE_UCB1X00_MODULE_TRUE@am_ucb1x00_la_rpath = -rpath \
  42721. +@ENABLE_UCB1X00_MODULE_TRUE@ $(pluginexecdir)
  42722. +variance_la_LIBADD =
  42723. +am_variance_la_OBJECTS = variance.lo
  42724. +variance_la_OBJECTS = $(am_variance_la_OBJECTS)
  42725. +variance_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  42726. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  42727. + $(variance_la_LDFLAGS) $(LDFLAGS) -o $@
  42728. +@ENABLE_VARIANCE_MODULE_TRUE@am_variance_la_rpath = -rpath \
  42729. +@ENABLE_VARIANCE_MODULE_TRUE@ $(pluginexecdir)
  42730. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  42731. +depcomp = $(SHELL) $(top_srcdir)/depcomp
  42732. +am__depfiles_maybe = depfiles
  42733. +am__mv = mv -f
  42734. +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  42735. + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  42736. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  42737. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  42738. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  42739. +CCLD = $(CC)
  42740. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  42741. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  42742. + $(LDFLAGS) -o $@
  42743. +SOURCES = $(arctic2_la_SOURCES) $(collie_la_SOURCES) \
  42744. + $(corgi_la_SOURCES) $(dejitter_la_SOURCES) $(h3600_la_SOURCES) \
  42745. + $(input_la_SOURCES) $(linear_la_SOURCES) \
  42746. + $(linear_h2200_la_SOURCES) $(mk712_la_SOURCES) \
  42747. + $(pthres_la_SOURCES) $(ucb1x00_la_SOURCES) \
  42748. + $(variance_la_SOURCES)
  42749. +DIST_SOURCES = $(arctic2_la_SOURCES) $(collie_la_SOURCES) \
  42750. + $(corgi_la_SOURCES) $(dejitter_la_SOURCES) $(h3600_la_SOURCES) \
  42751. + $(input_la_SOURCES) $(linear_la_SOURCES) \
  42752. + $(linear_h2200_la_SOURCES) $(mk712_la_SOURCES) \
  42753. + $(pthres_la_SOURCES) $(ucb1x00_la_SOURCES) \
  42754. + $(variance_la_SOURCES)
  42755. +ETAGS = etags
  42756. +CTAGS = ctags
  42757. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  42758. +ACLOCAL = @ACLOCAL@
  42759. +ALLOCA = @ALLOCA@
  42760. +AMTAR = @AMTAR@
  42761. +AR = @AR@
  42762. +AUTOCONF = @AUTOCONF@
  42763. +AUTOHEADER = @AUTOHEADER@
  42764. +AUTOMAKE = @AUTOMAKE@
  42765. +AWK = @AWK@
  42766. +CC = @CC@
  42767. +CCDEPMODE = @CCDEPMODE@
  42768. +CFLAGS = @CFLAGS@
  42769. +CPP = @CPP@
  42770. +CPPFLAGS = @CPPFLAGS@
  42771. +CXX = @CXX@
  42772. +CXXCPP = @CXXCPP@
  42773. +CXXDEPMODE = @CXXDEPMODE@
  42774. +CXXFLAGS = @CXXFLAGS@
  42775. +CYGPATH_W = @CYGPATH_W@
  42776. +DEBUGFLAGS = @DEBUGFLAGS@
  42777. +DEFS = @DEFS@
  42778. +DEPDIR = @DEPDIR@
  42779. +DSYMUTIL = @DSYMUTIL@
  42780. +DUMPBIN = @DUMPBIN@
  42781. +ECHO_C = @ECHO_C@
  42782. +ECHO_N = @ECHO_N@
  42783. +ECHO_T = @ECHO_T@
  42784. +EGREP = @EGREP@
  42785. +EXEEXT = @EXEEXT@
  42786. +FGREP = @FGREP@
  42787. +GREP = @GREP@
  42788. +INSTALL = @INSTALL@
  42789. +INSTALL_DATA = @INSTALL_DATA@
  42790. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  42791. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  42792. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  42793. +LD = @LD@
  42794. +LDFLAGS = @LDFLAGS@
  42795. +LIBFLAGS = @LIBFLAGS@
  42796. +LIBOBJS = @LIBOBJS@
  42797. +LIBS =
  42798. +LIBTOOL = @LIBTOOL@
  42799. +LIPO = @LIPO@
  42800. +LN_S = @LN_S@
  42801. +LTLIBOBJS = @LTLIBOBJS@
  42802. +LT_AGE = @LT_AGE@
  42803. +LT_CURRENT = @LT_CURRENT@
  42804. +LT_RELEASE = @LT_RELEASE@
  42805. +LT_REVISION = @LT_REVISION@
  42806. +MAKEINFO = @MAKEINFO@
  42807. +MKDIR_P = @MKDIR_P@
  42808. +NM = @NM@
  42809. +NMEDIT = @NMEDIT@
  42810. +OBJDUMP = @OBJDUMP@
  42811. +OBJEXT = @OBJEXT@
  42812. +OTOOL = @OTOOL@
  42813. +OTOOL64 = @OTOOL64@
  42814. +PACKAGE = @PACKAGE@
  42815. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  42816. +PACKAGE_DESCRIPTION = @PACKAGE_DESCRIPTION@
  42817. +PACKAGE_NAME = @PACKAGE_NAME@
  42818. +PACKAGE_STRING = @PACKAGE_STRING@
  42819. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  42820. +PACKAGE_URL = @PACKAGE_URL@
  42821. +PACKAGE_VERSION = @PACKAGE_VERSION@
  42822. +PATH_SEPARATOR = @PATH_SEPARATOR@
  42823. +PLUGIN_DIR = @PLUGIN_DIR@
  42824. +RANLIB = @RANLIB@
  42825. +SED = @SED@
  42826. +SET_MAKE = @SET_MAKE@
  42827. +SHELL = @SHELL@
  42828. +STRIP = @STRIP@
  42829. +TS_CONF = @TS_CONF@
  42830. +VERSION = @VERSION@
  42831. +VIS_CFLAGS = @VIS_CFLAGS@
  42832. +abs_builddir = @abs_builddir@
  42833. +abs_srcdir = @abs_srcdir@
  42834. +abs_top_builddir = @abs_top_builddir@
  42835. +abs_top_srcdir = @abs_top_srcdir@
  42836. +ac_ct_CC = @ac_ct_CC@
  42837. +ac_ct_CXX = @ac_ct_CXX@
  42838. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  42839. +am__include = @am__include@
  42840. +am__leading_dot = @am__leading_dot@
  42841. +am__quote = @am__quote@
  42842. +am__tar = @am__tar@
  42843. +am__untar = @am__untar@
  42844. +bindir = @bindir@
  42845. +build = @build@
  42846. +build_alias = @build_alias@
  42847. +build_cpu = @build_cpu@
  42848. +build_os = @build_os@
  42849. +build_vendor = @build_vendor@
  42850. +builddir = @builddir@
  42851. +datadir = @datadir@
  42852. +datarootdir = @datarootdir@
  42853. +docdir = @docdir@
  42854. +dvidir = @dvidir@
  42855. +exec_prefix = @exec_prefix@
  42856. +host = @host@
  42857. +host_alias = @host_alias@
  42858. +host_cpu = @host_cpu@
  42859. +host_os = @host_os@
  42860. +host_vendor = @host_vendor@
  42861. +htmldir = @htmldir@
  42862. +includedir = @includedir@
  42863. +infodir = @infodir@
  42864. +install_sh = @install_sh@
  42865. +libdir = @libdir@
  42866. +libexecdir = @libexecdir@
  42867. +localedir = @localedir@
  42868. +localstatedir = @localstatedir@
  42869. +lt_ECHO = @lt_ECHO@
  42870. +mandir = @mandir@
  42871. +mkdir_p = @mkdir_p@
  42872. +oldincludedir = @oldincludedir@
  42873. +pdfdir = @pdfdir@
  42874. +prefix = @prefix@
  42875. +program_transform_name = @program_transform_name@
  42876. +psdir = @psdir@
  42877. +sbindir = @sbindir@
  42878. +sharedstatedir = @sharedstatedir@
  42879. +srcdir = @srcdir@
  42880. +sysconfdir = @sysconfdir@
  42881. +target_alias = @target_alias@
  42882. +top_build_prefix = @top_build_prefix@
  42883. +top_builddir = @top_builddir@
  42884. +top_srcdir = @top_srcdir@
  42885. +AM_CFLAGS = $(DEBUGFLAGS) $(LIBFLAGS) $(VIS_CFLAGS)
  42886. +LDADD = -rpath $(PLUGIN_DIR)
  42887. +INCLUDES = -I$(top_srcdir)/src
  42888. +
  42889. +#LTVSN = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
  42890. +# -release $(LT_RELEASE)
  42891. +LTVSN = -avoid-version
  42892. +pluginexecdir = $(PLUGIN_DIR)
  42893. +@ENABLE_LINEAR_MODULE_FALSE@LINEAR_MODULE =
  42894. +@ENABLE_LINEAR_MODULE_TRUE@LINEAR_MODULE = linear.la
  42895. +@ENABLE_LINEAR_MODULE_FALSE@DEJITTER_MODULE =
  42896. +@ENABLE_LINEAR_MODULE_TRUE@DEJITTER_MODULE = dejitter.la
  42897. +@ENABLE_VARIANCE_MODULE_FALSE@VARIANCE_MODULE =
  42898. +@ENABLE_VARIANCE_MODULE_TRUE@VARIANCE_MODULE = variance.la
  42899. +@ENABLE_PTHRES_MODULE_FALSE@PTHRES_MODULE =
  42900. +@ENABLE_PTHRES_MODULE_TRUE@PTHRES_MODULE = pthres.la
  42901. +@ENABLE_UCB1X00_MODULE_FALSE@UCB1X00_MODULE =
  42902. +@ENABLE_UCB1X00_MODULE_TRUE@UCB1X00_MODULE = ucb1x00.la
  42903. +@ENABLE_CORGI_MODULE_FALSE@CORGI_MODULE =
  42904. +@ENABLE_CORGI_MODULE_TRUE@CORGI_MODULE = corgi.la
  42905. +@ENABLE_COLLIE_MODULE_FALSE@COLLIE_MODULE =
  42906. +@ENABLE_COLLIE_MODULE_TRUE@COLLIE_MODULE = collie.la
  42907. +@ENABLE_H3600_MODULE_FALSE@H3600_MODULE =
  42908. +@ENABLE_H3600_MODULE_TRUE@H3600_MODULE = h3600.la
  42909. +@ENABLE_MK712_MODULE_FALSE@MK712_MODULE =
  42910. +@ENABLE_MK712_MODULE_TRUE@MK712_MODULE = mk712.la
  42911. +@ENABLE_ARCTIC2_MODULE_FALSE@ARCTIC2_MODULE =
  42912. +@ENABLE_ARCTIC2_MODULE_TRUE@ARCTIC2_MODULE = arctic2.la
  42913. +@ENABLE_INPUT_MODULE_FALSE@INPUT_MODULE =
  42914. +@ENABLE_INPUT_MODULE_TRUE@INPUT_MODULE = input.la
  42915. +@ENABLE_H2200_LINEAR_MODULE_FALSE@H2200_LINEAR_MODULE =
  42916. +@ENABLE_H2200_LINEAR_MODULE_TRUE@H2200_LINEAR_MODULE = linear_h2200.la
  42917. +pluginexec_LTLIBRARIES = \
  42918. + $(LINEAR_MODULE) \
  42919. + $(DEJITTER_MODULE) \
  42920. + $(VARIANCE_MODULE) \
  42921. + $(PTHRES_MODULE) \
  42922. + $(UCB1X00_MODULE) \
  42923. + $(CORGI_MODULE) \
  42924. + $(COLLIE_MODULE) \
  42925. + $(H3600_MODULE) \
  42926. + $(MK712_MODULE) \
  42927. + $(ARCTIC2_MODULE) \
  42928. + $(H2200_LINEAR_MODULE) \
  42929. + $(INPUT_MODULE)
  42930. +
  42931. +variance_la_SOURCES = variance.c
  42932. +variance_la_LDFLAGS = -module $(LTVSN)
  42933. +dejitter_la_SOURCES = dejitter.c
  42934. +dejitter_la_LDFLAGS = -module $(LTVSN)
  42935. +linear_la_SOURCES = linear.c
  42936. +linear_la_LDFLAGS = -module $(LTVSN)
  42937. +pthres_la_SOURCES = pthres.c
  42938. +pthres_la_LDFLAGS = -module $(LTVSN)
  42939. +
  42940. +# hw access
  42941. +corgi_la_SOURCES = corgi-raw.c
  42942. +corgi_la_LDFLAGS = -module $(LTVSN)
  42943. +collie_la_SOURCES = collie-raw.c
  42944. +collie_la_LDFLAGS = -module $(LTVSN)
  42945. +ucb1x00_la_SOURCES = ucb1x00-raw.c
  42946. +ucb1x00_la_LDFLAGS = -module $(LTVSN)
  42947. +h3600_la_SOURCES = h3600-raw.c
  42948. +h3600_la_LDFLAGS = -module $(LTVSN)
  42949. +mk712_la_SOURCES = mk712-raw.c
  42950. +mk712_la_LDFLAGS = -module $(LTVSN)
  42951. +arctic2_la_SOURCES = arctic2-raw.c
  42952. +arctic2_la_LDFLAGS = -module $(LTVSN)
  42953. +input_la_SOURCES = input-raw.c
  42954. +input_la_LDFLAGS = -module $(LTVSN)
  42955. +linear_h2200_la_SOURCES = linear-h2200.c
  42956. +linear_h2200_la_LDFLAGS = -module $(LTVSN)
  42957. +all: all-am
  42958. +
  42959. +.SUFFIXES:
  42960. +.SUFFIXES: .c .lo .o .obj
  42961. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  42962. + @for dep in $?; do \
  42963. + case '$(am__configure_deps)' in \
  42964. + *$$dep*) \
  42965. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  42966. + && { if test -f $@; then exit 0; else break; fi; }; \
  42967. + exit 1;; \
  42968. + esac; \
  42969. + done; \
  42970. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/Makefile'; \
  42971. + $(am__cd) $(top_srcdir) && \
  42972. + $(AUTOMAKE) --gnu plugins/Makefile
  42973. +.PRECIOUS: Makefile
  42974. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  42975. + @case '$?' in \
  42976. + *config.status*) \
  42977. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  42978. + *) \
  42979. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  42980. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  42981. + esac;
  42982. +
  42983. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  42984. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  42985. +
  42986. +$(top_srcdir)/configure: $(am__configure_deps)
  42987. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  42988. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  42989. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  42990. +$(am__aclocal_m4_deps):
  42991. +install-pluginexecLTLIBRARIES: $(pluginexec_LTLIBRARIES)
  42992. + @$(NORMAL_INSTALL)
  42993. + test -z "$(pluginexecdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginexecdir)"
  42994. + @list='$(pluginexec_LTLIBRARIES)'; test -n "$(pluginexecdir)" || list=; \
  42995. + list2=; for p in $$list; do \
  42996. + if test -f $$p; then \
  42997. + list2="$$list2 $$p"; \
  42998. + else :; fi; \
  42999. + done; \
  43000. + test -z "$$list2" || { \
  43001. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pluginexecdir)'"; \
  43002. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pluginexecdir)"; \
  43003. + }
  43004. +
  43005. +uninstall-pluginexecLTLIBRARIES:
  43006. + @$(NORMAL_UNINSTALL)
  43007. + @list='$(pluginexec_LTLIBRARIES)'; test -n "$(pluginexecdir)" || list=; \
  43008. + for p in $$list; do \
  43009. + $(am__strip_dir) \
  43010. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginexecdir)/$$f'"; \
  43011. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginexecdir)/$$f"; \
  43012. + done
  43013. +
  43014. +clean-pluginexecLTLIBRARIES:
  43015. + -test -z "$(pluginexec_LTLIBRARIES)" || rm -f $(pluginexec_LTLIBRARIES)
  43016. + @list='$(pluginexec_LTLIBRARIES)'; for p in $$list; do \
  43017. + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  43018. + test "$$dir" != "$$p" || dir=.; \
  43019. + echo "rm -f \"$${dir}/so_locations\""; \
  43020. + rm -f "$${dir}/so_locations"; \
  43021. + done
  43022. +arctic2.la: $(arctic2_la_OBJECTS) $(arctic2_la_DEPENDENCIES)
  43023. + $(arctic2_la_LINK) $(am_arctic2_la_rpath) $(arctic2_la_OBJECTS) $(arctic2_la_LIBADD) $(LIBS)
  43024. +collie.la: $(collie_la_OBJECTS) $(collie_la_DEPENDENCIES)
  43025. + $(collie_la_LINK) $(am_collie_la_rpath) $(collie_la_OBJECTS) $(collie_la_LIBADD) $(LIBS)
  43026. +corgi.la: $(corgi_la_OBJECTS) $(corgi_la_DEPENDENCIES)
  43027. + $(corgi_la_LINK) $(am_corgi_la_rpath) $(corgi_la_OBJECTS) $(corgi_la_LIBADD) $(LIBS)
  43028. +dejitter.la: $(dejitter_la_OBJECTS) $(dejitter_la_DEPENDENCIES)
  43029. + $(dejitter_la_LINK) $(am_dejitter_la_rpath) $(dejitter_la_OBJECTS) $(dejitter_la_LIBADD) $(LIBS)
  43030. +h3600.la: $(h3600_la_OBJECTS) $(h3600_la_DEPENDENCIES)
  43031. + $(h3600_la_LINK) $(am_h3600_la_rpath) $(h3600_la_OBJECTS) $(h3600_la_LIBADD) $(LIBS)
  43032. +input.la: $(input_la_OBJECTS) $(input_la_DEPENDENCIES)
  43033. + $(input_la_LINK) $(am_input_la_rpath) $(input_la_OBJECTS) $(input_la_LIBADD) $(LIBS)
  43034. +linear.la: $(linear_la_OBJECTS) $(linear_la_DEPENDENCIES)
  43035. + $(linear_la_LINK) $(am_linear_la_rpath) $(linear_la_OBJECTS) $(linear_la_LIBADD) $(LIBS)
  43036. +linear_h2200.la: $(linear_h2200_la_OBJECTS) $(linear_h2200_la_DEPENDENCIES)
  43037. + $(linear_h2200_la_LINK) $(am_linear_h2200_la_rpath) $(linear_h2200_la_OBJECTS) $(linear_h2200_la_LIBADD) $(LIBS)
  43038. +mk712.la: $(mk712_la_OBJECTS) $(mk712_la_DEPENDENCIES)
  43039. + $(mk712_la_LINK) $(am_mk712_la_rpath) $(mk712_la_OBJECTS) $(mk712_la_LIBADD) $(LIBS)
  43040. +pthres.la: $(pthres_la_OBJECTS) $(pthres_la_DEPENDENCIES)
  43041. + $(pthres_la_LINK) $(am_pthres_la_rpath) $(pthres_la_OBJECTS) $(pthres_la_LIBADD) $(LIBS)
  43042. +ucb1x00.la: $(ucb1x00_la_OBJECTS) $(ucb1x00_la_DEPENDENCIES)
  43043. + $(ucb1x00_la_LINK) $(am_ucb1x00_la_rpath) $(ucb1x00_la_OBJECTS) $(ucb1x00_la_LIBADD) $(LIBS)
  43044. +variance.la: $(variance_la_OBJECTS) $(variance_la_DEPENDENCIES)
  43045. + $(variance_la_LINK) $(am_variance_la_rpath) $(variance_la_OBJECTS) $(variance_la_LIBADD) $(LIBS)
  43046. +
  43047. +mostlyclean-compile:
  43048. + -rm -f *.$(OBJEXT)
  43049. +
  43050. +distclean-compile:
  43051. + -rm -f *.tab.c
  43052. +
  43053. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arctic2-raw.Plo@am__quote@
  43054. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/collie-raw.Plo@am__quote@
  43055. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/corgi-raw.Plo@am__quote@
  43056. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dejitter.Plo@am__quote@
  43057. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h3600-raw.Plo@am__quote@
  43058. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/input-raw.Plo@am__quote@
  43059. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linear-h2200.Plo@am__quote@
  43060. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linear.Plo@am__quote@
  43061. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mk712-raw.Plo@am__quote@
  43062. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pthres.Plo@am__quote@
  43063. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ucb1x00-raw.Plo@am__quote@
  43064. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/variance.Plo@am__quote@
  43065. +
  43066. +.c.o:
  43067. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  43068. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  43069. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  43070. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  43071. +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
  43072. +
  43073. +.c.obj:
  43074. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  43075. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  43076. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  43077. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  43078. +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  43079. +
  43080. +.c.lo:
  43081. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  43082. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  43083. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  43084. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  43085. +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  43086. +
  43087. +mostlyclean-libtool:
  43088. + -rm -f *.lo
  43089. +
  43090. +clean-libtool:
  43091. + -rm -rf .libs _libs
  43092. +
  43093. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  43094. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  43095. + unique=`for i in $$list; do \
  43096. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  43097. + done | \
  43098. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  43099. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  43100. + mkid -fID $$unique
  43101. +tags: TAGS
  43102. +
  43103. +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  43104. + $(TAGS_FILES) $(LISP)
  43105. + set x; \
  43106. + here=`pwd`; \
  43107. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  43108. + unique=`for i in $$list; do \
  43109. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  43110. + done | \
  43111. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  43112. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  43113. + shift; \
  43114. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  43115. + test -n "$$unique" || unique=$$empty_fix; \
  43116. + if test $$# -gt 0; then \
  43117. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  43118. + "$$@" $$unique; \
  43119. + else \
  43120. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  43121. + $$unique; \
  43122. + fi; \
  43123. + fi
  43124. +ctags: CTAGS
  43125. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  43126. + $(TAGS_FILES) $(LISP)
  43127. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  43128. + unique=`for i in $$list; do \
  43129. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  43130. + done | \
  43131. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  43132. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  43133. + test -z "$(CTAGS_ARGS)$$unique" \
  43134. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  43135. + $$unique
  43136. +
  43137. +GTAGS:
  43138. + here=`$(am__cd) $(top_builddir) && pwd` \
  43139. + && $(am__cd) $(top_srcdir) \
  43140. + && gtags -i $(GTAGS_ARGS) "$$here"
  43141. +
  43142. +distclean-tags:
  43143. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  43144. +
  43145. +distdir: $(DISTFILES)
  43146. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  43147. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  43148. + list='$(DISTFILES)'; \
  43149. + dist_files=`for file in $$list; do echo $$file; done | \
  43150. + sed -e "s|^$$srcdirstrip/||;t" \
  43151. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  43152. + case $$dist_files in \
  43153. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  43154. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  43155. + sort -u` ;; \
  43156. + esac; \
  43157. + for file in $$dist_files; do \
  43158. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  43159. + if test -d $$d/$$file; then \
  43160. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  43161. + if test -d "$(distdir)/$$file"; then \
  43162. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  43163. + fi; \
  43164. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  43165. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  43166. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  43167. + fi; \
  43168. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  43169. + else \
  43170. + test -f "$(distdir)/$$file" \
  43171. + || cp -p $$d/$$file "$(distdir)/$$file" \
  43172. + || exit 1; \
  43173. + fi; \
  43174. + done
  43175. +check-am: all-am
  43176. +check: check-am
  43177. +all-am: Makefile $(LTLIBRARIES)
  43178. +installdirs:
  43179. + for dir in "$(DESTDIR)$(pluginexecdir)"; do \
  43180. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  43181. + done
  43182. +install: install-am
  43183. +install-exec: install-exec-am
  43184. +install-data: install-data-am
  43185. +uninstall: uninstall-am
  43186. +
  43187. +install-am: all-am
  43188. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  43189. +
  43190. +installcheck: installcheck-am
  43191. +install-strip:
  43192. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  43193. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  43194. + `test -z '$(STRIP)' || \
  43195. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  43196. +mostlyclean-generic:
  43197. +
  43198. +clean-generic:
  43199. +
  43200. +distclean-generic:
  43201. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  43202. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  43203. +
  43204. +maintainer-clean-generic:
  43205. + @echo "This command is intended for maintainers to use"
  43206. + @echo "it deletes files that may require special tools to rebuild."
  43207. +clean: clean-am
  43208. +
  43209. +clean-am: clean-generic clean-libtool clean-pluginexecLTLIBRARIES \
  43210. + mostlyclean-am
  43211. +
  43212. +distclean: distclean-am
  43213. + -rm -rf ./$(DEPDIR)
  43214. + -rm -f Makefile
  43215. +distclean-am: clean-am distclean-compile distclean-generic \
  43216. + distclean-tags
  43217. +
  43218. +dvi: dvi-am
  43219. +
  43220. +dvi-am:
  43221. +
  43222. +html: html-am
  43223. +
  43224. +html-am:
  43225. +
  43226. +info: info-am
  43227. +
  43228. +info-am:
  43229. +
  43230. +install-data-am:
  43231. +
  43232. +install-dvi: install-dvi-am
  43233. +
  43234. +install-dvi-am:
  43235. +
  43236. +install-exec-am: install-pluginexecLTLIBRARIES
  43237. +
  43238. +install-html: install-html-am
  43239. +
  43240. +install-html-am:
  43241. +
  43242. +install-info: install-info-am
  43243. +
  43244. +install-info-am:
  43245. +
  43246. +install-man:
  43247. +
  43248. +install-pdf: install-pdf-am
  43249. +
  43250. +install-pdf-am:
  43251. +
  43252. +install-ps: install-ps-am
  43253. +
  43254. +install-ps-am:
  43255. +
  43256. +installcheck-am:
  43257. +
  43258. +maintainer-clean: maintainer-clean-am
  43259. + -rm -rf ./$(DEPDIR)
  43260. + -rm -f Makefile
  43261. +maintainer-clean-am: distclean-am maintainer-clean-generic
  43262. +
  43263. +mostlyclean: mostlyclean-am
  43264. +
  43265. +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  43266. + mostlyclean-libtool
  43267. +
  43268. +pdf: pdf-am
  43269. +
  43270. +pdf-am:
  43271. +
  43272. +ps: ps-am
  43273. +
  43274. +ps-am:
  43275. +
  43276. +uninstall-am: uninstall-pluginexecLTLIBRARIES
  43277. +
  43278. +.MAKE: install-am install-strip
  43279. +
  43280. +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  43281. + clean-libtool clean-pluginexecLTLIBRARIES ctags distclean \
  43282. + distclean-compile distclean-generic distclean-libtool \
  43283. + distclean-tags distdir dvi dvi-am html html-am info info-am \
  43284. + install install-am install-data install-data-am install-dvi \
  43285. + install-dvi-am install-exec install-exec-am install-html \
  43286. + install-html-am install-info install-info-am install-man \
  43287. + install-pdf install-pdf-am install-pluginexecLTLIBRARIES \
  43288. + install-ps install-ps-am install-strip installcheck \
  43289. + installcheck-am installdirs maintainer-clean \
  43290. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  43291. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  43292. + tags uninstall uninstall-am uninstall-pluginexecLTLIBRARIES
  43293. +
  43294. +
  43295. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  43296. +# Otherwise a system limit (for SysV at least) may be exceeded.
  43297. +.NOEXPORT:
  43298. diff -Nur tslib-1.0.orig/src/Makefile.in tslib-1.0/src/Makefile.in
  43299. --- tslib-1.0.orig/src/Makefile.in 1970-01-01 01:00:00.000000000 +0100
  43300. +++ tslib-1.0/src/Makefile.in 2010-07-29 13:39:16.000000000 +0200
  43301. @@ -0,0 +1,594 @@
  43302. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  43303. +# @configure_input@
  43304. +
  43305. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  43306. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  43307. +# Inc.
  43308. +# This Makefile.in is free software; the Free Software Foundation
  43309. +# gives unlimited permission to copy and/or distribute it,
  43310. +# with or without modifications, as long as this notice is preserved.
  43311. +
  43312. +# This program is distributed in the hope that it will be useful,
  43313. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  43314. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  43315. +# PARTICULAR PURPOSE.
  43316. +
  43317. +@SET_MAKE@
  43318. +
  43319. +#
  43320. +# tslib/src/Makefile.am
  43321. +#
  43322. +# Copyright (C) 2001 Russell King.
  43323. +#
  43324. +# This file is placed under the LGPL. Please see the file
  43325. +# COPYING for more details.
  43326. +#
  43327. +# $Id: Makefile.am,v 1.8 2005/02/28 23:44:12 kergoth Exp $
  43328. +#
  43329. +
  43330. +
  43331. +VPATH = @srcdir@
  43332. +pkgdatadir = $(datadir)/@PACKAGE@
  43333. +pkgincludedir = $(includedir)/@PACKAGE@
  43334. +pkglibdir = $(libdir)/@PACKAGE@
  43335. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  43336. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  43337. +install_sh_DATA = $(install_sh) -c -m 644
  43338. +install_sh_PROGRAM = $(install_sh) -c
  43339. +install_sh_SCRIPT = $(install_sh) -c
  43340. +INSTALL_HEADER = $(INSTALL_DATA)
  43341. +transform = $(program_transform_name)
  43342. +NORMAL_INSTALL = :
  43343. +PRE_INSTALL = :
  43344. +POST_INSTALL = :
  43345. +NORMAL_UNINSTALL = :
  43346. +PRE_UNINSTALL = :
  43347. +POST_UNINSTALL = :
  43348. +build_triplet = @build@
  43349. +host_triplet = @host@
  43350. +subdir = src
  43351. +DIST_COMMON = $(include_HEADERS) $(noinst_HEADERS) \
  43352. + $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  43353. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  43354. +am__aclocal_m4_deps = $(top_srcdir)/m4/internal/libtool.m4 \
  43355. + $(top_srcdir)/m4/internal/ltoptions.m4 \
  43356. + $(top_srcdir)/m4/internal/ltsugar.m4 \
  43357. + $(top_srcdir)/m4/internal/ltversion.m4 \
  43358. + $(top_srcdir)/m4/internal/lt~obsolete.m4 \
  43359. + $(top_srcdir)/m4/internal/visibility.m4 \
  43360. + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  43361. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  43362. + $(ACLOCAL_M4)
  43363. +mkinstalldirs = $(install_sh) -d
  43364. +CONFIG_HEADER = $(top_builddir)/config.h
  43365. +CONFIG_CLEAN_FILES =
  43366. +CONFIG_CLEAN_VPATH_FILES =
  43367. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  43368. +am__vpath_adj = case $$p in \
  43369. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  43370. + *) f=$$p;; \
  43371. + esac;
  43372. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  43373. +am__install_max = 40
  43374. +am__nobase_strip_setup = \
  43375. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  43376. +am__nobase_strip = \
  43377. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  43378. +am__nobase_list = $(am__nobase_strip_setup); \
  43379. + for p in $$list; do echo "$$p $$p"; done | \
  43380. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  43381. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  43382. + if (++n[$$2] == $(am__install_max)) \
  43383. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  43384. + END { for (dir in files) print dir, files[dir] }'
  43385. +am__base_list = \
  43386. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  43387. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  43388. +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
  43389. +LTLIBRARIES = $(lib_LTLIBRARIES)
  43390. +libts_la_DEPENDENCIES =
  43391. +am_libts_la_OBJECTS = ts_attach.lo ts_close.lo ts_config.lo \
  43392. + ts_error.lo ts_fd.lo ts_load_module.lo ts_open.lo \
  43393. + ts_parse_vars.lo ts_read.lo ts_read_raw.lo
  43394. +libts_la_OBJECTS = $(am_libts_la_OBJECTS)
  43395. +libts_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  43396. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(libts_la_LDFLAGS) \
  43397. + $(LDFLAGS) -o $@
  43398. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  43399. +depcomp = $(SHELL) $(top_srcdir)/depcomp
  43400. +am__depfiles_maybe = depfiles
  43401. +am__mv = mv -f
  43402. +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  43403. + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  43404. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  43405. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  43406. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  43407. +CCLD = $(CC)
  43408. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  43409. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  43410. + $(LDFLAGS) -o $@
  43411. +SOURCES = $(libts_la_SOURCES)
  43412. +DIST_SOURCES = $(libts_la_SOURCES)
  43413. +HEADERS = $(include_HEADERS) $(noinst_HEADERS)
  43414. +ETAGS = etags
  43415. +CTAGS = ctags
  43416. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  43417. +ACLOCAL = @ACLOCAL@
  43418. +ALLOCA = @ALLOCA@
  43419. +AMTAR = @AMTAR@
  43420. +AR = @AR@
  43421. +AUTOCONF = @AUTOCONF@
  43422. +AUTOHEADER = @AUTOHEADER@
  43423. +AUTOMAKE = @AUTOMAKE@
  43424. +AWK = @AWK@
  43425. +CC = @CC@
  43426. +CCDEPMODE = @CCDEPMODE@
  43427. +CFLAGS = @CFLAGS@
  43428. +CPP = @CPP@
  43429. +CPPFLAGS = @CPPFLAGS@
  43430. +CXX = @CXX@
  43431. +CXXCPP = @CXXCPP@
  43432. +CXXDEPMODE = @CXXDEPMODE@
  43433. +CXXFLAGS = @CXXFLAGS@
  43434. +CYGPATH_W = @CYGPATH_W@
  43435. +DEBUGFLAGS = @DEBUGFLAGS@
  43436. +DEFS = @DEFS@
  43437. +DEPDIR = @DEPDIR@
  43438. +DSYMUTIL = @DSYMUTIL@
  43439. +DUMPBIN = @DUMPBIN@
  43440. +ECHO_C = @ECHO_C@
  43441. +ECHO_N = @ECHO_N@
  43442. +ECHO_T = @ECHO_T@
  43443. +EGREP = @EGREP@
  43444. +EXEEXT = @EXEEXT@
  43445. +FGREP = @FGREP@
  43446. +GREP = @GREP@
  43447. +INSTALL = @INSTALL@
  43448. +INSTALL_DATA = @INSTALL_DATA@
  43449. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  43450. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  43451. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  43452. +LD = @LD@
  43453. +LDFLAGS = @LDFLAGS@
  43454. +LIBFLAGS = @LIBFLAGS@
  43455. +LIBOBJS = @LIBOBJS@
  43456. +LIBS = @LIBS@
  43457. +LIBTOOL = @LIBTOOL@
  43458. +LIPO = @LIPO@
  43459. +LN_S = @LN_S@
  43460. +LTLIBOBJS = @LTLIBOBJS@
  43461. +LT_AGE = @LT_AGE@
  43462. +LT_CURRENT = @LT_CURRENT@
  43463. +LT_RELEASE = @LT_RELEASE@
  43464. +LT_REVISION = @LT_REVISION@
  43465. +MAKEINFO = @MAKEINFO@
  43466. +MKDIR_P = @MKDIR_P@
  43467. +NM = @NM@
  43468. +NMEDIT = @NMEDIT@
  43469. +OBJDUMP = @OBJDUMP@
  43470. +OBJEXT = @OBJEXT@
  43471. +OTOOL = @OTOOL@
  43472. +OTOOL64 = @OTOOL64@
  43473. +PACKAGE = @PACKAGE@
  43474. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  43475. +PACKAGE_DESCRIPTION = @PACKAGE_DESCRIPTION@
  43476. +PACKAGE_NAME = @PACKAGE_NAME@
  43477. +PACKAGE_STRING = @PACKAGE_STRING@
  43478. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  43479. +PACKAGE_URL = @PACKAGE_URL@
  43480. +PACKAGE_VERSION = @PACKAGE_VERSION@
  43481. +PATH_SEPARATOR = @PATH_SEPARATOR@
  43482. +PLUGIN_DIR = @PLUGIN_DIR@
  43483. +RANLIB = @RANLIB@
  43484. +SED = @SED@
  43485. +SET_MAKE = @SET_MAKE@
  43486. +SHELL = @SHELL@
  43487. +STRIP = @STRIP@
  43488. +TS_CONF = @TS_CONF@
  43489. +VERSION = @VERSION@
  43490. +VIS_CFLAGS = @VIS_CFLAGS@
  43491. +abs_builddir = @abs_builddir@
  43492. +abs_srcdir = @abs_srcdir@
  43493. +abs_top_builddir = @abs_top_builddir@
  43494. +abs_top_srcdir = @abs_top_srcdir@
  43495. +ac_ct_CC = @ac_ct_CC@
  43496. +ac_ct_CXX = @ac_ct_CXX@
  43497. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  43498. +am__include = @am__include@
  43499. +am__leading_dot = @am__leading_dot@
  43500. +am__quote = @am__quote@
  43501. +am__tar = @am__tar@
  43502. +am__untar = @am__untar@
  43503. +bindir = @bindir@
  43504. +build = @build@
  43505. +build_alias = @build_alias@
  43506. +build_cpu = @build_cpu@
  43507. +build_os = @build_os@
  43508. +build_vendor = @build_vendor@
  43509. +builddir = @builddir@
  43510. +datadir = @datadir@
  43511. +datarootdir = @datarootdir@
  43512. +docdir = @docdir@
  43513. +dvidir = @dvidir@
  43514. +exec_prefix = @exec_prefix@
  43515. +host = @host@
  43516. +host_alias = @host_alias@
  43517. +host_cpu = @host_cpu@
  43518. +host_os = @host_os@
  43519. +host_vendor = @host_vendor@
  43520. +htmldir = @htmldir@
  43521. +includedir = @includedir@
  43522. +infodir = @infodir@
  43523. +install_sh = @install_sh@
  43524. +libdir = @libdir@
  43525. +libexecdir = @libexecdir@
  43526. +localedir = @localedir@
  43527. +localstatedir = @localstatedir@
  43528. +lt_ECHO = @lt_ECHO@
  43529. +mandir = @mandir@
  43530. +mkdir_p = @mkdir_p@
  43531. +oldincludedir = @oldincludedir@
  43532. +pdfdir = @pdfdir@
  43533. +prefix = @prefix@
  43534. +program_transform_name = @program_transform_name@
  43535. +psdir = @psdir@
  43536. +sbindir = @sbindir@
  43537. +sharedstatedir = @sharedstatedir@
  43538. +srcdir = @srcdir@
  43539. +sysconfdir = @sysconfdir@
  43540. +target_alias = @target_alias@
  43541. +top_build_prefix = @top_build_prefix@
  43542. +top_builddir = @top_builddir@
  43543. +top_srcdir = @top_srcdir@
  43544. +AM_CFLAGS = -DPLUGIN_DIR=\"@PLUGIN_DIR@\" -DTS_CONF=\"@TS_CONF@\" \
  43545. + $(DEBUGFLAGS) $(LIBFLAGS) $(VIS_CFLAGS)
  43546. +
  43547. +noinst_HEADERS = tslib-private.h tslib-filter.h
  43548. +include_HEADERS = tslib.h
  43549. +lib_LTLIBRARIES = libts.la
  43550. +libts_la_SOURCES = ts_attach.c ts_close.c ts_config.c ts_error.c \
  43551. + ts_fd.c ts_load_module.c ts_open.c ts_parse_vars.c \
  43552. + ts_read.c ts_read_raw.c
  43553. +
  43554. +libts_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
  43555. + -release $(LT_RELEASE) -export-dynamic
  43556. +
  43557. +libts_la_LIBADD = -ldl
  43558. +all: all-am
  43559. +
  43560. +.SUFFIXES:
  43561. +.SUFFIXES: .c .lo .o .obj
  43562. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  43563. + @for dep in $?; do \
  43564. + case '$(am__configure_deps)' in \
  43565. + *$$dep*) \
  43566. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  43567. + && { if test -f $@; then exit 0; else break; fi; }; \
  43568. + exit 1;; \
  43569. + esac; \
  43570. + done; \
  43571. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  43572. + $(am__cd) $(top_srcdir) && \
  43573. + $(AUTOMAKE) --gnu src/Makefile
  43574. +.PRECIOUS: Makefile
  43575. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  43576. + @case '$?' in \
  43577. + *config.status*) \
  43578. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  43579. + *) \
  43580. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  43581. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  43582. + esac;
  43583. +
  43584. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  43585. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  43586. +
  43587. +$(top_srcdir)/configure: $(am__configure_deps)
  43588. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  43589. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  43590. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  43591. +$(am__aclocal_m4_deps):
  43592. +install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  43593. + @$(NORMAL_INSTALL)
  43594. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  43595. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  43596. + list2=; for p in $$list; do \
  43597. + if test -f $$p; then \
  43598. + list2="$$list2 $$p"; \
  43599. + else :; fi; \
  43600. + done; \
  43601. + test -z "$$list2" || { \
  43602. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  43603. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  43604. + }
  43605. +
  43606. +uninstall-libLTLIBRARIES:
  43607. + @$(NORMAL_UNINSTALL)
  43608. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  43609. + for p in $$list; do \
  43610. + $(am__strip_dir) \
  43611. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  43612. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  43613. + done
  43614. +
  43615. +clean-libLTLIBRARIES:
  43616. + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
  43617. + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  43618. + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  43619. + test "$$dir" != "$$p" || dir=.; \
  43620. + echo "rm -f \"$${dir}/so_locations\""; \
  43621. + rm -f "$${dir}/so_locations"; \
  43622. + done
  43623. +libts.la: $(libts_la_OBJECTS) $(libts_la_DEPENDENCIES)
  43624. + $(libts_la_LINK) -rpath $(libdir) $(libts_la_OBJECTS) $(libts_la_LIBADD) $(LIBS)
  43625. +
  43626. +mostlyclean-compile:
  43627. + -rm -f *.$(OBJEXT)
  43628. +
  43629. +distclean-compile:
  43630. + -rm -f *.tab.c
  43631. +
  43632. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_attach.Plo@am__quote@
  43633. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_close.Plo@am__quote@
  43634. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_config.Plo@am__quote@
  43635. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_error.Plo@am__quote@
  43636. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_fd.Plo@am__quote@
  43637. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_load_module.Plo@am__quote@
  43638. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_open.Plo@am__quote@
  43639. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_parse_vars.Plo@am__quote@
  43640. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_read.Plo@am__quote@
  43641. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_read_raw.Plo@am__quote@
  43642. +
  43643. +.c.o:
  43644. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  43645. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  43646. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  43647. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  43648. +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
  43649. +
  43650. +.c.obj:
  43651. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  43652. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  43653. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  43654. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  43655. +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  43656. +
  43657. +.c.lo:
  43658. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  43659. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  43660. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  43661. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  43662. +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  43663. +
  43664. +mostlyclean-libtool:
  43665. + -rm -f *.lo
  43666. +
  43667. +clean-libtool:
  43668. + -rm -rf .libs _libs
  43669. +install-includeHEADERS: $(include_HEADERS)
  43670. + @$(NORMAL_INSTALL)
  43671. + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  43672. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  43673. + for p in $$list; do \
  43674. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  43675. + echo "$$d$$p"; \
  43676. + done | $(am__base_list) | \
  43677. + while read files; do \
  43678. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
  43679. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
  43680. + done
  43681. +
  43682. +uninstall-includeHEADERS:
  43683. + @$(NORMAL_UNINSTALL)
  43684. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  43685. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  43686. + test -n "$$files" || exit 0; \
  43687. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  43688. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  43689. +
  43690. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  43691. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  43692. + unique=`for i in $$list; do \
  43693. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  43694. + done | \
  43695. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  43696. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  43697. + mkid -fID $$unique
  43698. +tags: TAGS
  43699. +
  43700. +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  43701. + $(TAGS_FILES) $(LISP)
  43702. + set x; \
  43703. + here=`pwd`; \
  43704. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  43705. + unique=`for i in $$list; do \
  43706. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  43707. + done | \
  43708. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  43709. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  43710. + shift; \
  43711. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  43712. + test -n "$$unique" || unique=$$empty_fix; \
  43713. + if test $$# -gt 0; then \
  43714. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  43715. + "$$@" $$unique; \
  43716. + else \
  43717. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  43718. + $$unique; \
  43719. + fi; \
  43720. + fi
  43721. +ctags: CTAGS
  43722. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  43723. + $(TAGS_FILES) $(LISP)
  43724. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  43725. + unique=`for i in $$list; do \
  43726. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  43727. + done | \
  43728. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  43729. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  43730. + test -z "$(CTAGS_ARGS)$$unique" \
  43731. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  43732. + $$unique
  43733. +
  43734. +GTAGS:
  43735. + here=`$(am__cd) $(top_builddir) && pwd` \
  43736. + && $(am__cd) $(top_srcdir) \
  43737. + && gtags -i $(GTAGS_ARGS) "$$here"
  43738. +
  43739. +distclean-tags:
  43740. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  43741. +
  43742. +distdir: $(DISTFILES)
  43743. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  43744. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  43745. + list='$(DISTFILES)'; \
  43746. + dist_files=`for file in $$list; do echo $$file; done | \
  43747. + sed -e "s|^$$srcdirstrip/||;t" \
  43748. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  43749. + case $$dist_files in \
  43750. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  43751. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  43752. + sort -u` ;; \
  43753. + esac; \
  43754. + for file in $$dist_files; do \
  43755. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  43756. + if test -d $$d/$$file; then \
  43757. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  43758. + if test -d "$(distdir)/$$file"; then \
  43759. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  43760. + fi; \
  43761. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  43762. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  43763. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  43764. + fi; \
  43765. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  43766. + else \
  43767. + test -f "$(distdir)/$$file" \
  43768. + || cp -p $$d/$$file "$(distdir)/$$file" \
  43769. + || exit 1; \
  43770. + fi; \
  43771. + done
  43772. +check-am: all-am
  43773. +check: check-am
  43774. +all-am: Makefile $(LTLIBRARIES) $(HEADERS)
  43775. +installdirs:
  43776. + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
  43777. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  43778. + done
  43779. +install: install-am
  43780. +install-exec: install-exec-am
  43781. +install-data: install-data-am
  43782. +uninstall: uninstall-am
  43783. +
  43784. +install-am: all-am
  43785. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  43786. +
  43787. +installcheck: installcheck-am
  43788. +install-strip:
  43789. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  43790. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  43791. + `test -z '$(STRIP)' || \
  43792. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  43793. +mostlyclean-generic:
  43794. +
  43795. +clean-generic:
  43796. +
  43797. +distclean-generic:
  43798. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  43799. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  43800. +
  43801. +maintainer-clean-generic:
  43802. + @echo "This command is intended for maintainers to use"
  43803. + @echo "it deletes files that may require special tools to rebuild."
  43804. +clean: clean-am
  43805. +
  43806. +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
  43807. + mostlyclean-am
  43808. +
  43809. +distclean: distclean-am
  43810. + -rm -rf ./$(DEPDIR)
  43811. + -rm -f Makefile
  43812. +distclean-am: clean-am distclean-compile distclean-generic \
  43813. + distclean-tags
  43814. +
  43815. +dvi: dvi-am
  43816. +
  43817. +dvi-am:
  43818. +
  43819. +html: html-am
  43820. +
  43821. +html-am:
  43822. +
  43823. +info: info-am
  43824. +
  43825. +info-am:
  43826. +
  43827. +install-data-am: install-includeHEADERS
  43828. +
  43829. +install-dvi: install-dvi-am
  43830. +
  43831. +install-dvi-am:
  43832. +
  43833. +install-exec-am: install-libLTLIBRARIES
  43834. +
  43835. +install-html: install-html-am
  43836. +
  43837. +install-html-am:
  43838. +
  43839. +install-info: install-info-am
  43840. +
  43841. +install-info-am:
  43842. +
  43843. +install-man:
  43844. +
  43845. +install-pdf: install-pdf-am
  43846. +
  43847. +install-pdf-am:
  43848. +
  43849. +install-ps: install-ps-am
  43850. +
  43851. +install-ps-am:
  43852. +
  43853. +installcheck-am:
  43854. +
  43855. +maintainer-clean: maintainer-clean-am
  43856. + -rm -rf ./$(DEPDIR)
  43857. + -rm -f Makefile
  43858. +maintainer-clean-am: distclean-am maintainer-clean-generic
  43859. +
  43860. +mostlyclean: mostlyclean-am
  43861. +
  43862. +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  43863. + mostlyclean-libtool
  43864. +
  43865. +pdf: pdf-am
  43866. +
  43867. +pdf-am:
  43868. +
  43869. +ps: ps-am
  43870. +
  43871. +ps-am:
  43872. +
  43873. +uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES
  43874. +
  43875. +.MAKE: install-am install-strip
  43876. +
  43877. +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  43878. + clean-libLTLIBRARIES clean-libtool ctags distclean \
  43879. + distclean-compile distclean-generic distclean-libtool \
  43880. + distclean-tags distdir dvi dvi-am html html-am info info-am \
  43881. + install install-am install-data install-data-am install-dvi \
  43882. + install-dvi-am install-exec install-exec-am install-html \
  43883. + install-html-am install-includeHEADERS install-info \
  43884. + install-info-am install-libLTLIBRARIES install-man install-pdf \
  43885. + install-pdf-am install-ps install-ps-am install-strip \
  43886. + installcheck installcheck-am installdirs maintainer-clean \
  43887. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  43888. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  43889. + tags uninstall uninstall-am uninstall-includeHEADERS \
  43890. + uninstall-libLTLIBRARIES
  43891. +
  43892. +
  43893. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  43894. +# Otherwise a system limit (for SysV at least) may be exceeded.
  43895. +.NOEXPORT:
  43896. diff -Nur tslib-1.0.orig/tests/Makefile.in tslib-1.0/tests/Makefile.in
  43897. --- tslib-1.0.orig/tests/Makefile.in 1970-01-01 01:00:00.000000000 +0100
  43898. +++ tslib-1.0/tests/Makefile.in 2010-07-29 13:39:16.000000000 +0200
  43899. @@ -0,0 +1,584 @@
  43900. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  43901. +# @configure_input@
  43902. +
  43903. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  43904. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  43905. +# Inc.
  43906. +# This Makefile.in is free software; the Free Software Foundation
  43907. +# gives unlimited permission to copy and/or distribute it,
  43908. +# with or without modifications, as long as this notice is preserved.
  43909. +
  43910. +# This program is distributed in the hope that it will be useful,
  43911. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  43912. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  43913. +# PARTICULAR PURPOSE.
  43914. +
  43915. +@SET_MAKE@
  43916. +
  43917. +#
  43918. +# tslib/tests/Makefile.am
  43919. +#
  43920. +# Copyright (C) 2001 Russell King.
  43921. +#
  43922. +# This file is placed under the LGPL. Please see the file
  43923. +# COPYING for more details.
  43924. +#
  43925. +# $Id: Makefile.am,v 1.4 2004/07/21 19:12:59 dlowder Exp $
  43926. +#
  43927. +
  43928. +VPATH = @srcdir@
  43929. +pkgdatadir = $(datadir)/@PACKAGE@
  43930. +pkgincludedir = $(includedir)/@PACKAGE@
  43931. +pkglibdir = $(libdir)/@PACKAGE@
  43932. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  43933. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  43934. +install_sh_DATA = $(install_sh) -c -m 644
  43935. +install_sh_PROGRAM = $(install_sh) -c
  43936. +install_sh_SCRIPT = $(install_sh) -c
  43937. +INSTALL_HEADER = $(INSTALL_DATA)
  43938. +transform = $(program_transform_name)
  43939. +NORMAL_INSTALL = :
  43940. +PRE_INSTALL = :
  43941. +POST_INSTALL = :
  43942. +NORMAL_UNINSTALL = :
  43943. +PRE_UNINSTALL = :
  43944. +POST_UNINSTALL = :
  43945. +build_triplet = @build@
  43946. +host_triplet = @host@
  43947. +bin_PROGRAMS = ts_test$(EXEEXT) ts_calibrate$(EXEEXT) \
  43948. + ts_print$(EXEEXT) ts_print_raw$(EXEEXT) ts_harvest$(EXEEXT)
  43949. +subdir = tests
  43950. +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  43951. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  43952. +am__aclocal_m4_deps = $(top_srcdir)/m4/internal/libtool.m4 \
  43953. + $(top_srcdir)/m4/internal/ltoptions.m4 \
  43954. + $(top_srcdir)/m4/internal/ltsugar.m4 \
  43955. + $(top_srcdir)/m4/internal/ltversion.m4 \
  43956. + $(top_srcdir)/m4/internal/lt~obsolete.m4 \
  43957. + $(top_srcdir)/m4/internal/visibility.m4 \
  43958. + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  43959. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  43960. + $(ACLOCAL_M4)
  43961. +mkinstalldirs = $(install_sh) -d
  43962. +CONFIG_HEADER = $(top_builddir)/config.h
  43963. +CONFIG_CLEAN_FILES =
  43964. +CONFIG_CLEAN_VPATH_FILES =
  43965. +am__installdirs = "$(DESTDIR)$(bindir)"
  43966. +PROGRAMS = $(bin_PROGRAMS)
  43967. +am_ts_calibrate_OBJECTS = ts_calibrate.$(OBJEXT) fbutils.$(OBJEXT) \
  43968. + testutils.$(OBJEXT) font_8x8.$(OBJEXT) font_8x16.$(OBJEXT)
  43969. +ts_calibrate_OBJECTS = $(am_ts_calibrate_OBJECTS)
  43970. +ts_calibrate_DEPENDENCIES = $(top_builddir)/src/libts.la
  43971. +am_ts_harvest_OBJECTS = ts_harvest.$(OBJEXT) fbutils.$(OBJEXT) \
  43972. + testutils.$(OBJEXT) font_8x8.$(OBJEXT) font_8x16.$(OBJEXT)
  43973. +ts_harvest_OBJECTS = $(am_ts_harvest_OBJECTS)
  43974. +ts_harvest_DEPENDENCIES = $(top_builddir)/src/libts.la
  43975. +am_ts_print_OBJECTS = ts_print.$(OBJEXT)
  43976. +ts_print_OBJECTS = $(am_ts_print_OBJECTS)
  43977. +ts_print_DEPENDENCIES = $(top_builddir)/src/libts.la
  43978. +am_ts_print_raw_OBJECTS = ts_print_raw.$(OBJEXT)
  43979. +ts_print_raw_OBJECTS = $(am_ts_print_raw_OBJECTS)
  43980. +ts_print_raw_DEPENDENCIES = $(top_builddir)/src/libts.la
  43981. +am_ts_test_OBJECTS = ts_test.$(OBJEXT) fbutils.$(OBJEXT) \
  43982. + font_8x8.$(OBJEXT) font_8x16.$(OBJEXT)
  43983. +ts_test_OBJECTS = $(am_ts_test_OBJECTS)
  43984. +ts_test_DEPENDENCIES = $(top_builddir)/src/libts.la
  43985. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  43986. +depcomp = $(SHELL) $(top_srcdir)/depcomp
  43987. +am__depfiles_maybe = depfiles
  43988. +am__mv = mv -f
  43989. +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  43990. + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  43991. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  43992. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  43993. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  43994. +CCLD = $(CC)
  43995. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  43996. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  43997. + $(LDFLAGS) -o $@
  43998. +SOURCES = $(ts_calibrate_SOURCES) $(ts_harvest_SOURCES) \
  43999. + $(ts_print_SOURCES) $(ts_print_raw_SOURCES) $(ts_test_SOURCES)
  44000. +DIST_SOURCES = $(ts_calibrate_SOURCES) $(ts_harvest_SOURCES) \
  44001. + $(ts_print_SOURCES) $(ts_print_raw_SOURCES) $(ts_test_SOURCES)
  44002. +ETAGS = etags
  44003. +CTAGS = ctags
  44004. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  44005. +ACLOCAL = @ACLOCAL@
  44006. +ALLOCA = @ALLOCA@
  44007. +AMTAR = @AMTAR@
  44008. +AR = @AR@
  44009. +AUTOCONF = @AUTOCONF@
  44010. +AUTOHEADER = @AUTOHEADER@
  44011. +AUTOMAKE = @AUTOMAKE@
  44012. +AWK = @AWK@
  44013. +CC = @CC@
  44014. +CCDEPMODE = @CCDEPMODE@
  44015. +CFLAGS = @CFLAGS@
  44016. +CPP = @CPP@
  44017. +CPPFLAGS = @CPPFLAGS@
  44018. +CXX = @CXX@
  44019. +CXXCPP = @CXXCPP@
  44020. +CXXDEPMODE = @CXXDEPMODE@
  44021. +CXXFLAGS = @CXXFLAGS@
  44022. +CYGPATH_W = @CYGPATH_W@
  44023. +DEBUGFLAGS = @DEBUGFLAGS@
  44024. +DEFS = @DEFS@
  44025. +DEPDIR = @DEPDIR@
  44026. +DSYMUTIL = @DSYMUTIL@
  44027. +DUMPBIN = @DUMPBIN@
  44028. +ECHO_C = @ECHO_C@
  44029. +ECHO_N = @ECHO_N@
  44030. +ECHO_T = @ECHO_T@
  44031. +EGREP = @EGREP@
  44032. +EXEEXT = @EXEEXT@
  44033. +FGREP = @FGREP@
  44034. +GREP = @GREP@
  44035. +INSTALL = @INSTALL@
  44036. +INSTALL_DATA = @INSTALL_DATA@
  44037. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  44038. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  44039. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  44040. +LD = @LD@
  44041. +LDFLAGS = @LDFLAGS@
  44042. +LIBFLAGS = @LIBFLAGS@
  44043. +LIBOBJS = @LIBOBJS@
  44044. +LIBS = @LIBS@
  44045. +LIBTOOL = @LIBTOOL@
  44046. +LIPO = @LIPO@
  44047. +LN_S = @LN_S@
  44048. +LTLIBOBJS = @LTLIBOBJS@
  44049. +LT_AGE = @LT_AGE@
  44050. +LT_CURRENT = @LT_CURRENT@
  44051. +LT_RELEASE = @LT_RELEASE@
  44052. +LT_REVISION = @LT_REVISION@
  44053. +MAKEINFO = @MAKEINFO@
  44054. +MKDIR_P = @MKDIR_P@
  44055. +NM = @NM@
  44056. +NMEDIT = @NMEDIT@
  44057. +OBJDUMP = @OBJDUMP@
  44058. +OBJEXT = @OBJEXT@
  44059. +OTOOL = @OTOOL@
  44060. +OTOOL64 = @OTOOL64@
  44061. +PACKAGE = @PACKAGE@
  44062. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  44063. +PACKAGE_DESCRIPTION = @PACKAGE_DESCRIPTION@
  44064. +PACKAGE_NAME = @PACKAGE_NAME@
  44065. +PACKAGE_STRING = @PACKAGE_STRING@
  44066. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  44067. +PACKAGE_URL = @PACKAGE_URL@
  44068. +PACKAGE_VERSION = @PACKAGE_VERSION@
  44069. +PATH_SEPARATOR = @PATH_SEPARATOR@
  44070. +PLUGIN_DIR = @PLUGIN_DIR@
  44071. +RANLIB = @RANLIB@
  44072. +SED = @SED@
  44073. +SET_MAKE = @SET_MAKE@
  44074. +SHELL = @SHELL@
  44075. +STRIP = @STRIP@
  44076. +TS_CONF = @TS_CONF@
  44077. +VERSION = @VERSION@
  44078. +VIS_CFLAGS = @VIS_CFLAGS@
  44079. +abs_builddir = @abs_builddir@
  44080. +abs_srcdir = @abs_srcdir@
  44081. +abs_top_builddir = @abs_top_builddir@
  44082. +abs_top_srcdir = @abs_top_srcdir@
  44083. +ac_ct_CC = @ac_ct_CC@
  44084. +ac_ct_CXX = @ac_ct_CXX@
  44085. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  44086. +am__include = @am__include@
  44087. +am__leading_dot = @am__leading_dot@
  44088. +am__quote = @am__quote@
  44089. +am__tar = @am__tar@
  44090. +am__untar = @am__untar@
  44091. +bindir = @bindir@
  44092. +build = @build@
  44093. +build_alias = @build_alias@
  44094. +build_cpu = @build_cpu@
  44095. +build_os = @build_os@
  44096. +build_vendor = @build_vendor@
  44097. +builddir = @builddir@
  44098. +datadir = @datadir@
  44099. +datarootdir = @datarootdir@
  44100. +docdir = @docdir@
  44101. +dvidir = @dvidir@
  44102. +exec_prefix = @exec_prefix@
  44103. +host = @host@
  44104. +host_alias = @host_alias@
  44105. +host_cpu = @host_cpu@
  44106. +host_os = @host_os@
  44107. +host_vendor = @host_vendor@
  44108. +htmldir = @htmldir@
  44109. +includedir = @includedir@
  44110. +infodir = @infodir@
  44111. +install_sh = @install_sh@
  44112. +libdir = @libdir@
  44113. +libexecdir = @libexecdir@
  44114. +localedir = @localedir@
  44115. +localstatedir = @localstatedir@
  44116. +lt_ECHO = @lt_ECHO@
  44117. +mandir = @mandir@
  44118. +mkdir_p = @mkdir_p@
  44119. +oldincludedir = @oldincludedir@
  44120. +pdfdir = @pdfdir@
  44121. +prefix = @prefix@
  44122. +program_transform_name = @program_transform_name@
  44123. +psdir = @psdir@
  44124. +sbindir = @sbindir@
  44125. +sharedstatedir = @sharedstatedir@
  44126. +srcdir = @srcdir@
  44127. +sysconfdir = @sysconfdir@
  44128. +target_alias = @target_alias@
  44129. +top_build_prefix = @top_build_prefix@
  44130. +top_builddir = @top_builddir@
  44131. +top_srcdir = @top_srcdir@
  44132. +AM_CFLAGS = $(DEBUGFLAGS)
  44133. +INCLUDES = -I$(top_srcdir)/src
  44134. +ts_test_SOURCES = ts_test.c fbutils.c fbutils.h font_8x8.c font_8x16.c font.h
  44135. +ts_test_LDADD = $(top_builddir)/src/libts.la
  44136. +ts_print_SOURCES = ts_print.c
  44137. +ts_print_LDADD = $(top_builddir)/src/libts.la
  44138. +ts_print_raw_SOURCES = ts_print_raw.c
  44139. +ts_print_raw_LDADD = $(top_builddir)/src/libts.la
  44140. +ts_calibrate_SOURCES = ts_calibrate.c fbutils.c fbutils.h testutils.c testutils.h font_8x8.c font_8x16.c font.h
  44141. +ts_calibrate_LDADD = $(top_builddir)/src/libts.la
  44142. +ts_harvest_SOURCES = ts_harvest.c fbutils.c fbutils.h testutils.c testutils.h font_8x8.c font_8x16.c font.h
  44143. +ts_harvest_LDADD = $(top_builddir)/src/libts.la
  44144. +all: all-am
  44145. +
  44146. +.SUFFIXES:
  44147. +.SUFFIXES: .c .lo .o .obj
  44148. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
  44149. + @for dep in $?; do \
  44150. + case '$(am__configure_deps)' in \
  44151. + *$$dep*) \
  44152. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  44153. + && { if test -f $@; then exit 0; else break; fi; }; \
  44154. + exit 1;; \
  44155. + esac; \
  44156. + done; \
  44157. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
  44158. + $(am__cd) $(top_srcdir) && \
  44159. + $(AUTOMAKE) --gnu tests/Makefile
  44160. +.PRECIOUS: Makefile
  44161. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  44162. + @case '$?' in \
  44163. + *config.status*) \
  44164. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  44165. + *) \
  44166. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  44167. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  44168. + esac;
  44169. +
  44170. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  44171. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44172. +
  44173. +$(top_srcdir)/configure: $(am__configure_deps)
  44174. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44175. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  44176. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  44177. +$(am__aclocal_m4_deps):
  44178. +install-binPROGRAMS: $(bin_PROGRAMS)
  44179. + @$(NORMAL_INSTALL)
  44180. + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  44181. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  44182. + for p in $$list; do echo "$$p $$p"; done | \
  44183. + sed 's/$(EXEEXT)$$//' | \
  44184. + while read p p1; do if test -f $$p || test -f $$p1; \
  44185. + then echo "$$p"; echo "$$p"; else :; fi; \
  44186. + done | \
  44187. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  44188. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  44189. + sed 'N;N;N;s,\n, ,g' | \
  44190. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  44191. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  44192. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  44193. + else { print "f", $$3 "/" $$4, $$1; } } \
  44194. + END { for (d in files) print "f", d, files[d] }' | \
  44195. + while read type dir files; do \
  44196. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  44197. + test -z "$$files" || { \
  44198. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  44199. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  44200. + } \
  44201. + ; done
  44202. +
  44203. +uninstall-binPROGRAMS:
  44204. + @$(NORMAL_UNINSTALL)
  44205. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  44206. + files=`for p in $$list; do echo "$$p"; done | \
  44207. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  44208. + -e 's/$$/$(EXEEXT)/' `; \
  44209. + test -n "$$list" || exit 0; \
  44210. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  44211. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  44212. +
  44213. +clean-binPROGRAMS:
  44214. + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
  44215. + echo " rm -f" $$list; \
  44216. + rm -f $$list || exit $$?; \
  44217. + test -n "$(EXEEXT)" || exit 0; \
  44218. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  44219. + echo " rm -f" $$list; \
  44220. + rm -f $$list
  44221. +ts_calibrate$(EXEEXT): $(ts_calibrate_OBJECTS) $(ts_calibrate_DEPENDENCIES)
  44222. + @rm -f ts_calibrate$(EXEEXT)
  44223. + $(LINK) $(ts_calibrate_OBJECTS) $(ts_calibrate_LDADD) $(LIBS)
  44224. +ts_harvest$(EXEEXT): $(ts_harvest_OBJECTS) $(ts_harvest_DEPENDENCIES)
  44225. + @rm -f ts_harvest$(EXEEXT)
  44226. + $(LINK) $(ts_harvest_OBJECTS) $(ts_harvest_LDADD) $(LIBS)
  44227. +ts_print$(EXEEXT): $(ts_print_OBJECTS) $(ts_print_DEPENDENCIES)
  44228. + @rm -f ts_print$(EXEEXT)
  44229. + $(LINK) $(ts_print_OBJECTS) $(ts_print_LDADD) $(LIBS)
  44230. +ts_print_raw$(EXEEXT): $(ts_print_raw_OBJECTS) $(ts_print_raw_DEPENDENCIES)
  44231. + @rm -f ts_print_raw$(EXEEXT)
  44232. + $(LINK) $(ts_print_raw_OBJECTS) $(ts_print_raw_LDADD) $(LIBS)
  44233. +ts_test$(EXEEXT): $(ts_test_OBJECTS) $(ts_test_DEPENDENCIES)
  44234. + @rm -f ts_test$(EXEEXT)
  44235. + $(LINK) $(ts_test_OBJECTS) $(ts_test_LDADD) $(LIBS)
  44236. +
  44237. +mostlyclean-compile:
  44238. + -rm -f *.$(OBJEXT)
  44239. +
  44240. +distclean-compile:
  44241. + -rm -f *.tab.c
  44242. +
  44243. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fbutils.Po@am__quote@
  44244. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/font_8x16.Po@am__quote@
  44245. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/font_8x8.Po@am__quote@
  44246. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testutils.Po@am__quote@
  44247. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_calibrate.Po@am__quote@
  44248. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_harvest.Po@am__quote@
  44249. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_print.Po@am__quote@
  44250. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_print_raw.Po@am__quote@
  44251. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ts_test.Po@am__quote@
  44252. +
  44253. +.c.o:
  44254. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  44255. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  44256. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  44257. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  44258. +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
  44259. +
  44260. +.c.obj:
  44261. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  44262. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  44263. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  44264. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  44265. +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  44266. +
  44267. +.c.lo:
  44268. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  44269. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  44270. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  44271. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  44272. +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  44273. +
  44274. +mostlyclean-libtool:
  44275. + -rm -f *.lo
  44276. +
  44277. +clean-libtool:
  44278. + -rm -rf .libs _libs
  44279. +
  44280. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  44281. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  44282. + unique=`for i in $$list; do \
  44283. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44284. + done | \
  44285. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44286. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44287. + mkid -fID $$unique
  44288. +tags: TAGS
  44289. +
  44290. +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  44291. + $(TAGS_FILES) $(LISP)
  44292. + set x; \
  44293. + here=`pwd`; \
  44294. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  44295. + unique=`for i in $$list; do \
  44296. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44297. + done | \
  44298. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44299. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44300. + shift; \
  44301. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  44302. + test -n "$$unique" || unique=$$empty_fix; \
  44303. + if test $$# -gt 0; then \
  44304. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44305. + "$$@" $$unique; \
  44306. + else \
  44307. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  44308. + $$unique; \
  44309. + fi; \
  44310. + fi
  44311. +ctags: CTAGS
  44312. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  44313. + $(TAGS_FILES) $(LISP)
  44314. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  44315. + unique=`for i in $$list; do \
  44316. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  44317. + done | \
  44318. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  44319. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  44320. + test -z "$(CTAGS_ARGS)$$unique" \
  44321. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  44322. + $$unique
  44323. +
  44324. +GTAGS:
  44325. + here=`$(am__cd) $(top_builddir) && pwd` \
  44326. + && $(am__cd) $(top_srcdir) \
  44327. + && gtags -i $(GTAGS_ARGS) "$$here"
  44328. +
  44329. +distclean-tags:
  44330. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  44331. +
  44332. +distdir: $(DISTFILES)
  44333. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  44334. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  44335. + list='$(DISTFILES)'; \
  44336. + dist_files=`for file in $$list; do echo $$file; done | \
  44337. + sed -e "s|^$$srcdirstrip/||;t" \
  44338. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  44339. + case $$dist_files in \
  44340. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  44341. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  44342. + sort -u` ;; \
  44343. + esac; \
  44344. + for file in $$dist_files; do \
  44345. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  44346. + if test -d $$d/$$file; then \
  44347. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  44348. + if test -d "$(distdir)/$$file"; then \
  44349. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  44350. + fi; \
  44351. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  44352. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  44353. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  44354. + fi; \
  44355. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  44356. + else \
  44357. + test -f "$(distdir)/$$file" \
  44358. + || cp -p $$d/$$file "$(distdir)/$$file" \
  44359. + || exit 1; \
  44360. + fi; \
  44361. + done
  44362. +check-am: all-am
  44363. +check: check-am
  44364. +all-am: Makefile $(PROGRAMS)
  44365. +installdirs:
  44366. + for dir in "$(DESTDIR)$(bindir)"; do \
  44367. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  44368. + done
  44369. +install: install-am
  44370. +install-exec: install-exec-am
  44371. +install-data: install-data-am
  44372. +uninstall: uninstall-am
  44373. +
  44374. +install-am: all-am
  44375. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  44376. +
  44377. +installcheck: installcheck-am
  44378. +install-strip:
  44379. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  44380. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  44381. + `test -z '$(STRIP)' || \
  44382. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  44383. +mostlyclean-generic:
  44384. +
  44385. +clean-generic:
  44386. +
  44387. +distclean-generic:
  44388. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  44389. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  44390. +
  44391. +maintainer-clean-generic:
  44392. + @echo "This command is intended for maintainers to use"
  44393. + @echo "it deletes files that may require special tools to rebuild."
  44394. +clean: clean-am
  44395. +
  44396. +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
  44397. +
  44398. +distclean: distclean-am
  44399. + -rm -rf ./$(DEPDIR)
  44400. + -rm -f Makefile
  44401. +distclean-am: clean-am distclean-compile distclean-generic \
  44402. + distclean-tags
  44403. +
  44404. +dvi: dvi-am
  44405. +
  44406. +dvi-am:
  44407. +
  44408. +html: html-am
  44409. +
  44410. +html-am:
  44411. +
  44412. +info: info-am
  44413. +
  44414. +info-am:
  44415. +
  44416. +install-data-am:
  44417. +
  44418. +install-dvi: install-dvi-am
  44419. +
  44420. +install-dvi-am:
  44421. +
  44422. +install-exec-am: install-binPROGRAMS
  44423. +
  44424. +install-html: install-html-am
  44425. +
  44426. +install-html-am:
  44427. +
  44428. +install-info: install-info-am
  44429. +
  44430. +install-info-am:
  44431. +
  44432. +install-man:
  44433. +
  44434. +install-pdf: install-pdf-am
  44435. +
  44436. +install-pdf-am:
  44437. +
  44438. +install-ps: install-ps-am
  44439. +
  44440. +install-ps-am:
  44441. +
  44442. +installcheck-am:
  44443. +
  44444. +maintainer-clean: maintainer-clean-am
  44445. + -rm -rf ./$(DEPDIR)
  44446. + -rm -f Makefile
  44447. +maintainer-clean-am: distclean-am maintainer-clean-generic
  44448. +
  44449. +mostlyclean: mostlyclean-am
  44450. +
  44451. +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  44452. + mostlyclean-libtool
  44453. +
  44454. +pdf: pdf-am
  44455. +
  44456. +pdf-am:
  44457. +
  44458. +ps: ps-am
  44459. +
  44460. +ps-am:
  44461. +
  44462. +uninstall-am: uninstall-binPROGRAMS
  44463. +
  44464. +.MAKE: install-am install-strip
  44465. +
  44466. +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
  44467. + clean-generic clean-libtool ctags distclean distclean-compile \
  44468. + distclean-generic distclean-libtool distclean-tags distdir dvi \
  44469. + dvi-am html html-am info info-am install install-am \
  44470. + install-binPROGRAMS install-data install-data-am install-dvi \
  44471. + install-dvi-am install-exec install-exec-am install-html \
  44472. + install-html-am install-info install-info-am install-man \
  44473. + install-pdf install-pdf-am install-ps install-ps-am \
  44474. + install-strip installcheck installcheck-am installdirs \
  44475. + maintainer-clean maintainer-clean-generic mostlyclean \
  44476. + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  44477. + pdf pdf-am ps ps-am tags uninstall uninstall-am \
  44478. + uninstall-binPROGRAMS
  44479. +
  44480. +
  44481. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  44482. +# Otherwise a system limit (for SysV at least) may be exceeded.
  44483. +.NOEXPORT: