300-no_autotools.patch 777 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686
  1. diff -urN linux-atm.old/aclocal.m4 linux-atm.dev/aclocal.m4
  2. --- linux-atm.old/aclocal.m4 2005-08-23 01:12:10.833789000 +0200
  3. +++ linux-atm.dev/aclocal.m4 2005-08-23 01:12:44.813623720 +0200
  4. @@ -10,6 +10,825 @@
  5. dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  6. dnl PARTICULAR PURPOSE.
  7. +# lib-prefix.m4 serial 4 (gettext-0.14.2)
  8. +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
  9. +dnl This file is free software; the Free Software Foundation
  10. +dnl gives unlimited permission to copy and/or distribute it,
  11. +dnl with or without modifications, as long as this notice is preserved.
  12. +
  13. +dnl From Bruno Haible.
  14. +
  15. +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
  16. +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
  17. +dnl require excessive bracketing.
  18. +ifdef([AC_HELP_STRING],
  19. +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
  20. +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
  21. +
  22. +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
  23. +dnl to access previously installed libraries. The basic assumption is that
  24. +dnl a user will want packages to use other packages he previously installed
  25. +dnl with the same --prefix option.
  26. +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
  27. +dnl libraries, but is otherwise very convenient.
  28. +AC_DEFUN([AC_LIB_PREFIX],
  29. +[
  30. + AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
  31. + AC_REQUIRE([AC_PROG_CC])
  32. + AC_REQUIRE([AC_CANONICAL_HOST])
  33. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  34. + dnl By default, look in $includedir and $libdir.
  35. + use_additional=yes
  36. + AC_LIB_WITH_FINAL_PREFIX([
  37. + eval additional_includedir=\"$includedir\"
  38. + eval additional_libdir=\"$libdir\"
  39. + ])
  40. + AC_LIB_ARG_WITH([lib-prefix],
  41. +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
  42. + --without-lib-prefix don't search for libraries in includedir and libdir],
  43. +[
  44. + if test "X$withval" = "Xno"; then
  45. + use_additional=no
  46. + else
  47. + if test "X$withval" = "X"; then
  48. + AC_LIB_WITH_FINAL_PREFIX([
  49. + eval additional_includedir=\"$includedir\"
  50. + eval additional_libdir=\"$libdir\"
  51. + ])
  52. + else
  53. + additional_includedir="$withval/include"
  54. + additional_libdir="$withval/lib"
  55. + fi
  56. + fi
  57. +])
  58. + if test $use_additional = yes; then
  59. + dnl Potentially add $additional_includedir to $CPPFLAGS.
  60. + dnl But don't add it
  61. + dnl 1. if it's the standard /usr/include,
  62. + dnl 2. if it's already present in $CPPFLAGS,
  63. + dnl 3. if it's /usr/local/include and we are using GCC on Linux,
  64. + dnl 4. if it doesn't exist as a directory.
  65. + if test "X$additional_includedir" != "X/usr/include"; then
  66. + haveit=
  67. + for x in $CPPFLAGS; do
  68. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  69. + if test "X$x" = "X-I$additional_includedir"; then
  70. + haveit=yes
  71. + break
  72. + fi
  73. + done
  74. + if test -z "$haveit"; then
  75. + if test "X$additional_includedir" = "X/usr/local/include"; then
  76. + if test -n "$GCC"; then
  77. + case $host_os in
  78. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  79. + esac
  80. + fi
  81. + fi
  82. + if test -z "$haveit"; then
  83. + if test -d "$additional_includedir"; then
  84. + dnl Really add $additional_includedir to $CPPFLAGS.
  85. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
  86. + fi
  87. + fi
  88. + fi
  89. + fi
  90. + dnl Potentially add $additional_libdir to $LDFLAGS.
  91. + dnl But don't add it
  92. + dnl 1. if it's the standard /usr/lib,
  93. + dnl 2. if it's already present in $LDFLAGS,
  94. + dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
  95. + dnl 4. if it doesn't exist as a directory.
  96. + if test "X$additional_libdir" != "X/usr/lib"; then
  97. + haveit=
  98. + for x in $LDFLAGS; do
  99. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  100. + if test "X$x" = "X-L$additional_libdir"; then
  101. + haveit=yes
  102. + break
  103. + fi
  104. + done
  105. + if test -z "$haveit"; then
  106. + if test "X$additional_libdir" = "X/usr/local/lib"; then
  107. + if test -n "$GCC"; then
  108. + case $host_os in
  109. + linux*) haveit=yes;;
  110. + esac
  111. + fi
  112. + fi
  113. + if test -z "$haveit"; then
  114. + if test -d "$additional_libdir"; then
  115. + dnl Really add $additional_libdir to $LDFLAGS.
  116. + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
  117. + fi
  118. + fi
  119. + fi
  120. + fi
  121. + fi
  122. +])
  123. +
  124. +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
  125. +dnl acl_final_exec_prefix, containing the values to which $prefix and
  126. +dnl $exec_prefix will expand at the end of the configure script.
  127. +AC_DEFUN([AC_LIB_PREPARE_PREFIX],
  128. +[
  129. + dnl Unfortunately, prefix and exec_prefix get only finally determined
  130. + dnl at the end of configure.
  131. + if test "X$prefix" = "XNONE"; then
  132. + acl_final_prefix="$ac_default_prefix"
  133. + else
  134. + acl_final_prefix="$prefix"
  135. + fi
  136. + if test "X$exec_prefix" = "XNONE"; then
  137. + acl_final_exec_prefix='${prefix}'
  138. + else
  139. + acl_final_exec_prefix="$exec_prefix"
  140. + fi
  141. + acl_save_prefix="$prefix"
  142. + prefix="$acl_final_prefix"
  143. + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  144. + prefix="$acl_save_prefix"
  145. +])
  146. +
  147. +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
  148. +dnl variables prefix and exec_prefix bound to the values they will have
  149. +dnl at the end of the configure script.
  150. +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
  151. +[
  152. + acl_save_prefix="$prefix"
  153. + prefix="$acl_final_prefix"
  154. + acl_save_exec_prefix="$exec_prefix"
  155. + exec_prefix="$acl_final_exec_prefix"
  156. + $1
  157. + exec_prefix="$acl_save_exec_prefix"
  158. + prefix="$acl_save_prefix"
  159. +])
  160. +
  161. +# lib-link.m4 serial 6 (gettext-0.14.3)
  162. +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
  163. +dnl This file is free software; the Free Software Foundation
  164. +dnl gives unlimited permission to copy and/or distribute it,
  165. +dnl with or without modifications, as long as this notice is preserved.
  166. +
  167. +dnl From Bruno Haible.
  168. +
  169. +AC_PREREQ(2.50)
  170. +
  171. +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
  172. +dnl the libraries corresponding to explicit and implicit dependencies.
  173. +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
  174. +dnl augments the CPPFLAGS variable.
  175. +AC_DEFUN([AC_LIB_LINKFLAGS],
  176. +[
  177. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  178. + AC_REQUIRE([AC_LIB_RPATH])
  179. + define([Name],[translit([$1],[./-], [___])])
  180. + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  181. + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  182. + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
  183. + AC_LIB_LINKFLAGS_BODY([$1], [$2])
  184. + ac_cv_lib[]Name[]_libs="$LIB[]NAME"
  185. + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
  186. + ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
  187. + ])
  188. + LIB[]NAME="$ac_cv_lib[]Name[]_libs"
  189. + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
  190. + INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
  191. + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  192. + AC_SUBST([LIB]NAME)
  193. + AC_SUBST([LTLIB]NAME)
  194. + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
  195. + dnl results of this search when this library appears as a dependency.
  196. + HAVE_LIB[]NAME=yes
  197. + undefine([Name])
  198. + undefine([NAME])
  199. +])
  200. +
  201. +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
  202. +dnl searches for libname and the libraries corresponding to explicit and
  203. +dnl implicit dependencies, together with the specified include files and
  204. +dnl the ability to compile and link the specified testcode. If found, it
  205. +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
  206. +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
  207. +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
  208. +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
  209. +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
  210. +[
  211. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  212. + AC_REQUIRE([AC_LIB_RPATH])
  213. + define([Name],[translit([$1],[./-], [___])])
  214. + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  215. + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  216. +
  217. + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
  218. + dnl accordingly.
  219. + AC_LIB_LINKFLAGS_BODY([$1], [$2])
  220. +
  221. + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
  222. + dnl because if the user has installed lib[]Name and not disabled its use
  223. + dnl via --without-lib[]Name-prefix, he wants to use it.
  224. + ac_save_CPPFLAGS="$CPPFLAGS"
  225. + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  226. +
  227. + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
  228. + ac_save_LIBS="$LIBS"
  229. + LIBS="$LIBS $LIB[]NAME"
  230. + AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
  231. + LIBS="$ac_save_LIBS"
  232. + ])
  233. + if test "$ac_cv_lib[]Name" = yes; then
  234. + HAVE_LIB[]NAME=yes
  235. + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
  236. + AC_MSG_CHECKING([how to link with lib[]$1])
  237. + AC_MSG_RESULT([$LIB[]NAME])
  238. + else
  239. + HAVE_LIB[]NAME=no
  240. + dnl If $LIB[]NAME didn't lead to a usable library, we don't need
  241. + dnl $INC[]NAME either.
  242. + CPPFLAGS="$ac_save_CPPFLAGS"
  243. + LIB[]NAME=
  244. + LTLIB[]NAME=
  245. + fi
  246. + AC_SUBST([HAVE_LIB]NAME)
  247. + AC_SUBST([LIB]NAME)
  248. + AC_SUBST([LTLIB]NAME)
  249. + undefine([Name])
  250. + undefine([NAME])
  251. +])
  252. +
  253. +dnl Determine the platform dependent parameters needed to use rpath:
  254. +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
  255. +dnl hardcode_direct, hardcode_minus_L.
  256. +AC_DEFUN([AC_LIB_RPATH],
  257. +[
  258. + dnl Tell automake >= 1.10 to complain if config.rpath is missing.
  259. + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
  260. + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
  261. + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
  262. + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
  263. + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
  264. + AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
  265. + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  266. + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  267. + . ./conftest.sh
  268. + rm -f ./conftest.sh
  269. + acl_cv_rpath=done
  270. + ])
  271. + wl="$acl_cv_wl"
  272. + libext="$acl_cv_libext"
  273. + shlibext="$acl_cv_shlibext"
  274. + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  275. + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  276. + hardcode_direct="$acl_cv_hardcode_direct"
  277. + hardcode_minus_L="$acl_cv_hardcode_minus_L"
  278. + dnl Determine whether the user wants rpath handling at all.
  279. + AC_ARG_ENABLE(rpath,
  280. + [ --disable-rpath do not hardcode runtime library paths],
  281. + :, enable_rpath=yes)
  282. +])
  283. +
  284. +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
  285. +dnl the libraries corresponding to explicit and implicit dependencies.
  286. +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
  287. +AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
  288. +[
  289. + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  290. + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  291. + dnl By default, look in $includedir and $libdir.
  292. + use_additional=yes
  293. + AC_LIB_WITH_FINAL_PREFIX([
  294. + eval additional_includedir=\"$includedir\"
  295. + eval additional_libdir=\"$libdir\"
  296. + ])
  297. + AC_LIB_ARG_WITH([lib$1-prefix],
  298. +[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
  299. + --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
  300. +[
  301. + if test "X$withval" = "Xno"; then
  302. + use_additional=no
  303. + else
  304. + if test "X$withval" = "X"; then
  305. + AC_LIB_WITH_FINAL_PREFIX([
  306. + eval additional_includedir=\"$includedir\"
  307. + eval additional_libdir=\"$libdir\"
  308. + ])
  309. + else
  310. + additional_includedir="$withval/include"
  311. + additional_libdir="$withval/lib"
  312. + fi
  313. + fi
  314. +])
  315. + dnl Search the library and its dependencies in $additional_libdir and
  316. + dnl $LDFLAGS. Using breadth-first-seach.
  317. + LIB[]NAME=
  318. + LTLIB[]NAME=
  319. + INC[]NAME=
  320. + rpathdirs=
  321. + ltrpathdirs=
  322. + names_already_handled=
  323. + names_next_round='$1 $2'
  324. + while test -n "$names_next_round"; do
  325. + names_this_round="$names_next_round"
  326. + names_next_round=
  327. + for name in $names_this_round; do
  328. + already_handled=
  329. + for n in $names_already_handled; do
  330. + if test "$n" = "$name"; then
  331. + already_handled=yes
  332. + break
  333. + fi
  334. + done
  335. + if test -z "$already_handled"; then
  336. + names_already_handled="$names_already_handled $name"
  337. + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
  338. + dnl or AC_LIB_HAVE_LINKFLAGS call.
  339. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  340. + eval value=\"\$HAVE_LIB$uppername\"
  341. + if test -n "$value"; then
  342. + if test "$value" = yes; then
  343. + eval value=\"\$LIB$uppername\"
  344. + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
  345. + eval value=\"\$LTLIB$uppername\"
  346. + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
  347. + else
  348. + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
  349. + dnl that this library doesn't exist. So just drop it.
  350. + :
  351. + fi
  352. + else
  353. + dnl Search the library lib$name in $additional_libdir and $LDFLAGS
  354. + dnl and the already constructed $LIBNAME/$LTLIBNAME.
  355. + found_dir=
  356. + found_la=
  357. + found_so=
  358. + found_a=
  359. + if test $use_additional = yes; then
  360. + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  361. + found_dir="$additional_libdir"
  362. + found_so="$additional_libdir/lib$name.$shlibext"
  363. + if test -f "$additional_libdir/lib$name.la"; then
  364. + found_la="$additional_libdir/lib$name.la"
  365. + fi
  366. + else
  367. + if test -f "$additional_libdir/lib$name.$libext"; then
  368. + found_dir="$additional_libdir"
  369. + found_a="$additional_libdir/lib$name.$libext"
  370. + if test -f "$additional_libdir/lib$name.la"; then
  371. + found_la="$additional_libdir/lib$name.la"
  372. + fi
  373. + fi
  374. + fi
  375. + fi
  376. + if test "X$found_dir" = "X"; then
  377. + for x in $LDFLAGS $LTLIB[]NAME; do
  378. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  379. + case "$x" in
  380. + -L*)
  381. + dir=`echo "X$x" | sed -e 's/^X-L//'`
  382. + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  383. + found_dir="$dir"
  384. + found_so="$dir/lib$name.$shlibext"
  385. + if test -f "$dir/lib$name.la"; then
  386. + found_la="$dir/lib$name.la"
  387. + fi
  388. + else
  389. + if test -f "$dir/lib$name.$libext"; then
  390. + found_dir="$dir"
  391. + found_a="$dir/lib$name.$libext"
  392. + if test -f "$dir/lib$name.la"; then
  393. + found_la="$dir/lib$name.la"
  394. + fi
  395. + fi
  396. + fi
  397. + ;;
  398. + esac
  399. + if test "X$found_dir" != "X"; then
  400. + break
  401. + fi
  402. + done
  403. + fi
  404. + if test "X$found_dir" != "X"; then
  405. + dnl Found the library.
  406. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
  407. + if test "X$found_so" != "X"; then
  408. + dnl Linking with a shared library. We attempt to hardcode its
  409. + dnl directory into the executable's runpath, unless it's the
  410. + dnl standard /usr/lib.
  411. + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  412. + dnl No hardcoding is needed.
  413. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  414. + else
  415. + dnl Use an explicit option to hardcode DIR into the resulting
  416. + dnl binary.
  417. + dnl Potentially add DIR to ltrpathdirs.
  418. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  419. + haveit=
  420. + for x in $ltrpathdirs; do
  421. + if test "X$x" = "X$found_dir"; then
  422. + haveit=yes
  423. + break
  424. + fi
  425. + done
  426. + if test -z "$haveit"; then
  427. + ltrpathdirs="$ltrpathdirs $found_dir"
  428. + fi
  429. + dnl The hardcoding into $LIBNAME is system dependent.
  430. + if test "$hardcode_direct" = yes; then
  431. + dnl Using DIR/libNAME.so during linking hardcodes DIR into the
  432. + dnl resulting binary.
  433. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  434. + else
  435. + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  436. + dnl Use an explicit option to hardcode DIR into the resulting
  437. + dnl binary.
  438. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  439. + dnl Potentially add DIR to rpathdirs.
  440. + dnl The rpathdirs will be appended to $LIBNAME at the end.
  441. + haveit=
  442. + for x in $rpathdirs; do
  443. + if test "X$x" = "X$found_dir"; then
  444. + haveit=yes
  445. + break
  446. + fi
  447. + done
  448. + if test -z "$haveit"; then
  449. + rpathdirs="$rpathdirs $found_dir"
  450. + fi
  451. + else
  452. + dnl Rely on "-L$found_dir".
  453. + dnl But don't add it if it's already contained in the LDFLAGS
  454. + dnl or the already constructed $LIBNAME
  455. + haveit=
  456. + for x in $LDFLAGS $LIB[]NAME; do
  457. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  458. + if test "X$x" = "X-L$found_dir"; then
  459. + haveit=yes
  460. + break
  461. + fi
  462. + done
  463. + if test -z "$haveit"; then
  464. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
  465. + fi
  466. + if test "$hardcode_minus_L" != no; then
  467. + dnl FIXME: Not sure whether we should use
  468. + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  469. + dnl here.
  470. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  471. + else
  472. + dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
  473. + dnl here, because this doesn't fit in flags passed to the
  474. + dnl compiler. So give up. No hardcoding. This affects only
  475. + dnl very old systems.
  476. + dnl FIXME: Not sure whether we should use
  477. + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  478. + dnl here.
  479. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  480. + fi
  481. + fi
  482. + fi
  483. + fi
  484. + else
  485. + if test "X$found_a" != "X"; then
  486. + dnl Linking with a static library.
  487. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
  488. + else
  489. + dnl We shouldn't come here, but anyway it's good to have a
  490. + dnl fallback.
  491. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
  492. + fi
  493. + fi
  494. + dnl Assume the include files are nearby.
  495. + additional_includedir=
  496. + case "$found_dir" in
  497. + */lib | */lib/)
  498. + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  499. + additional_includedir="$basedir/include"
  500. + ;;
  501. + esac
  502. + if test "X$additional_includedir" != "X"; then
  503. + dnl Potentially add $additional_includedir to $INCNAME.
  504. + dnl But don't add it
  505. + dnl 1. if it's the standard /usr/include,
  506. + dnl 2. if it's /usr/local/include and we are using GCC on Linux,
  507. + dnl 3. if it's already present in $CPPFLAGS or the already
  508. + dnl constructed $INCNAME,
  509. + dnl 4. if it doesn't exist as a directory.
  510. + if test "X$additional_includedir" != "X/usr/include"; then
  511. + haveit=
  512. + if test "X$additional_includedir" = "X/usr/local/include"; then
  513. + if test -n "$GCC"; then
  514. + case $host_os in
  515. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  516. + esac
  517. + fi
  518. + fi
  519. + if test -z "$haveit"; then
  520. + for x in $CPPFLAGS $INC[]NAME; do
  521. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  522. + if test "X$x" = "X-I$additional_includedir"; then
  523. + haveit=yes
  524. + break
  525. + fi
  526. + done
  527. + if test -z "$haveit"; then
  528. + if test -d "$additional_includedir"; then
  529. + dnl Really add $additional_includedir to $INCNAME.
  530. + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
  531. + fi
  532. + fi
  533. + fi
  534. + fi
  535. + fi
  536. + dnl Look for dependencies.
  537. + if test -n "$found_la"; then
  538. + dnl Read the .la file. It defines the variables
  539. + dnl dlname, library_names, old_library, dependency_libs, current,
  540. + dnl age, revision, installed, dlopen, dlpreopen, libdir.
  541. + save_libdir="$libdir"
  542. + case "$found_la" in
  543. + */* | *\\*) . "$found_la" ;;
  544. + *) . "./$found_la" ;;
  545. + esac
  546. + libdir="$save_libdir"
  547. + dnl We use only dependency_libs.
  548. + for dep in $dependency_libs; do
  549. + case "$dep" in
  550. + -L*)
  551. + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  552. + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
  553. + dnl But don't add it
  554. + dnl 1. if it's the standard /usr/lib,
  555. + dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
  556. + dnl 3. if it's already present in $LDFLAGS or the already
  557. + dnl constructed $LIBNAME,
  558. + dnl 4. if it doesn't exist as a directory.
  559. + if test "X$additional_libdir" != "X/usr/lib"; then
  560. + haveit=
  561. + if test "X$additional_libdir" = "X/usr/local/lib"; then
  562. + if test -n "$GCC"; then
  563. + case $host_os in
  564. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  565. + esac
  566. + fi
  567. + fi
  568. + if test -z "$haveit"; then
  569. + haveit=
  570. + for x in $LDFLAGS $LIB[]NAME; do
  571. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  572. + if test "X$x" = "X-L$additional_libdir"; then
  573. + haveit=yes
  574. + break
  575. + fi
  576. + done
  577. + if test -z "$haveit"; then
  578. + if test -d "$additional_libdir"; then
  579. + dnl Really add $additional_libdir to $LIBNAME.
  580. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
  581. + fi
  582. + fi
  583. + haveit=
  584. + for x in $LDFLAGS $LTLIB[]NAME; do
  585. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  586. + if test "X$x" = "X-L$additional_libdir"; then
  587. + haveit=yes
  588. + break
  589. + fi
  590. + done
  591. + if test -z "$haveit"; then
  592. + if test -d "$additional_libdir"; then
  593. + dnl Really add $additional_libdir to $LTLIBNAME.
  594. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
  595. + fi
  596. + fi
  597. + fi
  598. + fi
  599. + ;;
  600. + -R*)
  601. + dir=`echo "X$dep" | sed -e 's/^X-R//'`
  602. + if test "$enable_rpath" != no; then
  603. + dnl Potentially add DIR to rpathdirs.
  604. + dnl The rpathdirs will be appended to $LIBNAME at the end.
  605. + haveit=
  606. + for x in $rpathdirs; do
  607. + if test "X$x" = "X$dir"; then
  608. + haveit=yes
  609. + break
  610. + fi
  611. + done
  612. + if test -z "$haveit"; then
  613. + rpathdirs="$rpathdirs $dir"
  614. + fi
  615. + dnl Potentially add DIR to ltrpathdirs.
  616. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  617. + haveit=
  618. + for x in $ltrpathdirs; do
  619. + if test "X$x" = "X$dir"; then
  620. + haveit=yes
  621. + break
  622. + fi
  623. + done
  624. + if test -z "$haveit"; then
  625. + ltrpathdirs="$ltrpathdirs $dir"
  626. + fi
  627. + fi
  628. + ;;
  629. + -l*)
  630. + dnl Handle this in the next round.
  631. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  632. + ;;
  633. + *.la)
  634. + dnl Handle this in the next round. Throw away the .la's
  635. + dnl directory; it is already contained in a preceding -L
  636. + dnl option.
  637. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  638. + ;;
  639. + *)
  640. + dnl Most likely an immediate library name.
  641. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
  642. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
  643. + ;;
  644. + esac
  645. + done
  646. + fi
  647. + else
  648. + dnl Didn't find the library; assume it is in the system directories
  649. + dnl known to the linker and runtime loader. (All the system
  650. + dnl directories known to the linker should also be known to the
  651. + dnl runtime loader, otherwise the system is severely misconfigured.)
  652. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  653. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
  654. + fi
  655. + fi
  656. + fi
  657. + done
  658. + done
  659. + if test "X$rpathdirs" != "X"; then
  660. + if test -n "$hardcode_libdir_separator"; then
  661. + dnl Weird platform: only the last -rpath option counts, the user must
  662. + dnl pass all path elements in one option. We can arrange that for a
  663. + dnl single library, but not when more than one $LIBNAMEs are used.
  664. + alldirs=
  665. + for found_dir in $rpathdirs; do
  666. + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  667. + done
  668. + dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
  669. + acl_save_libdir="$libdir"
  670. + libdir="$alldirs"
  671. + eval flag=\"$hardcode_libdir_flag_spec\"
  672. + libdir="$acl_save_libdir"
  673. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  674. + else
  675. + dnl The -rpath options are cumulative.
  676. + for found_dir in $rpathdirs; do
  677. + acl_save_libdir="$libdir"
  678. + libdir="$found_dir"
  679. + eval flag=\"$hardcode_libdir_flag_spec\"
  680. + libdir="$acl_save_libdir"
  681. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  682. + done
  683. + fi
  684. + fi
  685. + if test "X$ltrpathdirs" != "X"; then
  686. + dnl When using libtool, the option that works for both libraries and
  687. + dnl executables is -R. The -R options are cumulative.
  688. + for found_dir in $ltrpathdirs; do
  689. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
  690. + done
  691. + fi
  692. +])
  693. +
  694. +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
  695. +dnl unless already present in VAR.
  696. +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
  697. +dnl contains two or three consecutive elements that belong together.
  698. +AC_DEFUN([AC_LIB_APPENDTOVAR],
  699. +[
  700. + for element in [$2]; do
  701. + haveit=
  702. + for x in $[$1]; do
  703. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  704. + if test "X$x" = "X$element"; then
  705. + haveit=yes
  706. + break
  707. + fi
  708. + done
  709. + if test -z "$haveit"; then
  710. + [$1]="${[$1]}${[$1]:+ }$element"
  711. + fi
  712. + done
  713. +])
  714. +
  715. +# lib-ld.m4 serial 3 (gettext-0.13)
  716. +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
  717. +dnl This file is free software; the Free Software Foundation
  718. +dnl gives unlimited permission to copy and/or distribute it,
  719. +dnl with or without modifications, as long as this notice is preserved.
  720. +
  721. +dnl Subroutines of libtool.m4,
  722. +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
  723. +dnl with libtool.m4.
  724. +
  725. +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
  726. +AC_DEFUN([AC_LIB_PROG_LD_GNU],
  727. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
  728. +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  729. +case `$LD -v 2>&1 </dev/null` in
  730. +*GNU* | *'with BFD'*)
  731. + acl_cv_prog_gnu_ld=yes ;;
  732. +*)
  733. + acl_cv_prog_gnu_ld=no ;;
  734. +esac])
  735. +with_gnu_ld=$acl_cv_prog_gnu_ld
  736. +])
  737. +
  738. +dnl From libtool-1.4. Sets the variable LD.
  739. +AC_DEFUN([AC_LIB_PROG_LD],
  740. +[AC_ARG_WITH(gnu-ld,
  741. +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
  742. +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  743. +AC_REQUIRE([AC_PROG_CC])dnl
  744. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  745. +# Prepare PATH_SEPARATOR.
  746. +# The user is always right.
  747. +if test "${PATH_SEPARATOR+set}" != set; then
  748. + echo "#! /bin/sh" >conf$$.sh
  749. + echo "exit 0" >>conf$$.sh
  750. + chmod +x conf$$.sh
  751. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  752. + PATH_SEPARATOR=';'
  753. + else
  754. + PATH_SEPARATOR=:
  755. + fi
  756. + rm -f conf$$.sh
  757. +fi
  758. +ac_prog=ld
  759. +if test "$GCC" = yes; then
  760. + # Check if gcc -print-prog-name=ld gives a path.
  761. + AC_MSG_CHECKING([for ld used by GCC])
  762. + case $host in
  763. + *-*-mingw*)
  764. + # gcc leaves a trailing carriage return which upsets mingw
  765. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  766. + *)
  767. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  768. + esac
  769. + case $ac_prog in
  770. + # Accept absolute paths.
  771. + [[\\/]* | [A-Za-z]:[\\/]*)]
  772. + [re_direlt='/[^/][^/]*/\.\./']
  773. + # Canonicalize the path of ld
  774. + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  775. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  776. + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  777. + done
  778. + test -z "$LD" && LD="$ac_prog"
  779. + ;;
  780. + "")
  781. + # If it fails, then pretend we aren't using GCC.
  782. + ac_prog=ld
  783. + ;;
  784. + *)
  785. + # If it is relative, then search for the first ld in PATH.
  786. + with_gnu_ld=unknown
  787. + ;;
  788. + esac
  789. +elif test "$with_gnu_ld" = yes; then
  790. + AC_MSG_CHECKING([for GNU ld])
  791. +else
  792. + AC_MSG_CHECKING([for non-GNU ld])
  793. +fi
  794. +AC_CACHE_VAL(acl_cv_path_LD,
  795. +[if test -z "$LD"; then
  796. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  797. + for ac_dir in $PATH; do
  798. + test -z "$ac_dir" && ac_dir=.
  799. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  800. + acl_cv_path_LD="$ac_dir/$ac_prog"
  801. + # Check to see if the program is GNU ld. I'd rather use --version,
  802. + # but apparently some GNU ld's only accept -v.
  803. + # Break only if it was the GNU/non-GNU ld that we prefer.
  804. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  805. + *GNU* | *'with BFD'*)
  806. + test "$with_gnu_ld" != no && break ;;
  807. + *)
  808. + test "$with_gnu_ld" != yes && break ;;
  809. + esac
  810. + fi
  811. + done
  812. + IFS="$ac_save_ifs"
  813. +else
  814. + acl_cv_path_LD="$LD" # Let the user override the test with a path.
  815. +fi])
  816. +LD="$acl_cv_path_LD"
  817. +if test -n "$LD"; then
  818. + AC_MSG_RESULT($LD)
  819. +else
  820. + AC_MSG_RESULT(no)
  821. +fi
  822. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  823. +AC_LIB_PROG_LD_GNU
  824. +])
  825. +
  826. # Like AC_CONFIG_HEADER, but automatically create stamp file.
  827. AC_DEFUN([AM_CONFIG_HEADER],
  828. @@ -164,12 +983,64 @@
  829. AC_PROG_LEX
  830. AC_DECL_YYTEXT])
  831. -# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
  832. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  833. -# serial 46 AC_PROG_LIBTOOL
  834. +# serial 47 AC_PROG_LIBTOOL
  835. +# Debian $Rev: 3112 $
  836. +
  837. +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  838. +# -----------------------------------------------------------
  839. +# If this macro is not defined by Autoconf, define it here.
  840. +m4_ifdef([AC_PROVIDE_IFELSE],
  841. + [],
  842. + [m4_define([AC_PROVIDE_IFELSE],
  843. + [m4_ifdef([AC_PROVIDE_$1],
  844. + [$2], [$3])])])
  845. +
  846. +
  847. +# AC_PROG_LIBTOOL
  848. +# ---------------
  849. AC_DEFUN([AC_PROG_LIBTOOL],
  850. +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  851. +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  852. +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  853. + AC_PROVIDE_IFELSE([AC_PROG_CXX],
  854. + [AC_LIBTOOL_CXX],
  855. + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  856. + ])])
  857. +dnl And a similar setup for Fortran 77 support
  858. + AC_PROVIDE_IFELSE([AC_PROG_F77],
  859. + [AC_LIBTOOL_F77],
  860. + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  861. +])])
  862. +
  863. +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  864. +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  865. +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  866. + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  867. + [AC_LIBTOOL_GCJ],
  868. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  869. + [AC_LIBTOOL_GCJ],
  870. + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  871. + [AC_LIBTOOL_GCJ],
  872. + [ifdef([AC_PROG_GCJ],
  873. + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  874. + ifdef([A][M_PROG_GCJ],
  875. + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  876. + ifdef([LT_AC_PROG_GCJ],
  877. + [define([LT_AC_PROG_GCJ],
  878. + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  879. +])])# AC_PROG_LIBTOOL
  880. +
  881. +
  882. +# _AC_PROG_LIBTOOL
  883. +# ----------------
  884. +AC_DEFUN([_AC_PROG_LIBTOOL],
  885. [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  886. +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  887. +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  888. +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  889. # This can be used to rebuild libtool when needed
  890. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  891. @@ -180,10 +1051,13 @@
  892. # Prevent multiple expansion
  893. define([AC_PROG_LIBTOOL], [])
  894. -])
  895. +])# _AC_PROG_LIBTOOL
  896. +
  897. +# AC_LIBTOOL_SETUP
  898. +# ----------------
  899. AC_DEFUN([AC_LIBTOOL_SETUP],
  900. -[AC_PREREQ(2.13)dnl
  901. +[AC_PREREQ(2.50)dnl
  902. AC_REQUIRE([AC_ENABLE_SHARED])dnl
  903. AC_REQUIRE([AC_ENABLE_STATIC])dnl
  904. AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  905. @@ -193,15 +1067,103 @@
  906. AC_REQUIRE([AC_PROG_LD])dnl
  907. AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  908. AC_REQUIRE([AC_PROG_NM])dnl
  909. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  910. AC_REQUIRE([AC_PROG_LN_S])dnl
  911. AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  912. +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  913. AC_REQUIRE([AC_OBJEXT])dnl
  914. AC_REQUIRE([AC_EXEEXT])dnl
  915. dnl
  916. +AC_LIBTOOL_SYS_MAX_CMD_LEN
  917. +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  918. +AC_LIBTOOL_OBJDIR
  919. +
  920. +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  921. _LT_AC_PROG_ECHO_BACKSLASH
  922. +
  923. +case $host_os in
  924. +aix3*)
  925. + # AIX sometimes has problems with the GCC collect2 program. For some
  926. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  927. + # vanish in a puff of smoke.
  928. + if test "X${COLLECT_NAMES+set}" != Xset; then
  929. + COLLECT_NAMES=
  930. + export COLLECT_NAMES
  931. + fi
  932. + ;;
  933. +esac
  934. +
  935. +# Sed substitution that helps us do robust quoting. It backslashifies
  936. +# metacharacters that are still active within double-quoted strings.
  937. +Xsed='sed -e s/^X//'
  938. +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  939. +
  940. +# Same as above, but do not quote variable references.
  941. +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  942. +
  943. +# Sed substitution to delay expansion of an escaped shell variable in a
  944. +# double_quote_subst'ed string.
  945. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  946. +
  947. +# Sed substitution to avoid accidental globbing in evaled expressions
  948. +no_glob_subst='s/\*/\\\*/g'
  949. +
  950. +# Constants:
  951. +rm="rm -f"
  952. +
  953. +# Global variables:
  954. +default_ofile=libtool
  955. +can_build_shared=yes
  956. +
  957. +# All known linkers require a `.a' archive for static linking (except M$VC,
  958. +# which needs '.lib').
  959. +libext=a
  960. +ltmain="$ac_aux_dir/ltmain.sh"
  961. +ofile="$default_ofile"
  962. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  963. +
  964. +AC_CHECK_TOOL(AR, ar, false)
  965. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  966. +AC_CHECK_TOOL(STRIP, strip, :)
  967. +
  968. +old_CC="$CC"
  969. +old_CFLAGS="$CFLAGS"
  970. +
  971. +# Set sane defaults for various variables
  972. +test -z "$AR" && AR=ar
  973. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  974. +test -z "$AS" && AS=as
  975. +test -z "$CC" && CC=cc
  976. +test -z "$LTCC" && LTCC=$CC
  977. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  978. +test -z "$LD" && LD=ld
  979. +test -z "$LN_S" && LN_S="ln -s"
  980. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  981. +test -z "$NM" && NM=nm
  982. +test -z "$SED" && SED=sed
  983. +test -z "$OBJDUMP" && OBJDUMP=objdump
  984. +test -z "$RANLIB" && RANLIB=:
  985. +test -z "$STRIP" && STRIP=:
  986. +test -z "$ac_objext" && ac_objext=o
  987. +
  988. +# Determine commands to create old-style static archives.
  989. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  990. +old_postinstall_cmds='chmod 644 $oldlib'
  991. +old_postuninstall_cmds=
  992. +
  993. +if test -n "$RANLIB"; then
  994. + case $host_os in
  995. + openbsd*)
  996. + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  997. + ;;
  998. + *)
  999. + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  1000. + ;;
  1001. + esac
  1002. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1003. +fi
  1004. +
  1005. # Only perform the check for file, if the check method requires it
  1006. case $deplibs_check_method in
  1007. file_magic*)
  1008. @@ -211,327 +1173,78 @@
  1009. ;;
  1010. esac
  1011. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  1012. -AC_CHECK_TOOL(STRIP, strip, :)
  1013. -
  1014. -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  1015. -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  1016. +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  1017. +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1018. enable_win32_dll=yes, enable_win32_dll=no)
  1019. -AC_ARG_ENABLE(libtool-lock,
  1020. - [ --disable-libtool-lock avoid locking (might break parallel builds)])
  1021. +AC_ARG_ENABLE([libtool-lock],
  1022. + [AC_HELP_STRING([--disable-libtool-lock],
  1023. + [avoid locking (might break parallel builds)])])
  1024. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1025. -# Some flags need to be propagated to the compiler or linker for good
  1026. -# libtool support.
  1027. -case $host in
  1028. -*-*-irix6*)
  1029. - # Find out which ABI we are using.
  1030. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1031. - if AC_TRY_EVAL(ac_compile); then
  1032. - case `/usr/bin/file conftest.$ac_objext` in
  1033. - *32-bit*)
  1034. - LD="${LD-ld} -32"
  1035. - ;;
  1036. - *N32*)
  1037. - LD="${LD-ld} -n32"
  1038. - ;;
  1039. - *64-bit*)
  1040. - LD="${LD-ld} -64"
  1041. - ;;
  1042. - esac
  1043. - fi
  1044. - rm -rf conftest*
  1045. - ;;
  1046. +AC_ARG_WITH([pic],
  1047. + [AC_HELP_STRING([--with-pic],
  1048. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  1049. + [pic_mode="$withval"],
  1050. + [pic_mode=default])
  1051. +test -z "$pic_mode" && pic_mode=default
  1052. -*-*-sco3.2v5*)
  1053. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1054. - SAVE_CFLAGS="$CFLAGS"
  1055. - CFLAGS="$CFLAGS -belf"
  1056. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1057. - [AC_LANG_SAVE
  1058. - AC_LANG_C
  1059. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1060. - AC_LANG_RESTORE])
  1061. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1062. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1063. - CFLAGS="$SAVE_CFLAGS"
  1064. - fi
  1065. - ;;
  1066. +# Use C for the default configuration in the libtool script
  1067. +tagname=
  1068. +AC_LIBTOOL_LANG_C_CONFIG
  1069. +_LT_AC_TAGCONFIG
  1070. +])# AC_LIBTOOL_SETUP
  1071. -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  1072. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1073. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1074. - AC_CHECK_TOOL(AS, as, false)
  1075. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1076. - # recent cygwin and mingw systems supply a stub DllMain which the user
  1077. - # can override, but on older systems we have to supply one
  1078. - AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
  1079. - [AC_TRY_LINK([],
  1080. - [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
  1081. - DllMain (0, 0, 0);],
  1082. - [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
  1083. -
  1084. - case $host/$CC in
  1085. - *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
  1086. - # old mingw systems require "-dll" to link a DLL, while more recent ones
  1087. - # require "-mdll"
  1088. - SAVE_CFLAGS="$CFLAGS"
  1089. - CFLAGS="$CFLAGS -mdll"
  1090. - AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
  1091. - [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
  1092. - CFLAGS="$SAVE_CFLAGS" ;;
  1093. - *-*-cygwin* | *-*-pw32*)
  1094. - # cygwin systems need to pass --dll to the linker, and not link
  1095. - # crt.o which will require a WinMain@16 definition.
  1096. - lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
  1097. - esac
  1098. - ;;
  1099. - ])
  1100. -esac
  1101. +# _LT_AC_SYS_COMPILER
  1102. +# -------------------
  1103. +AC_DEFUN([_LT_AC_SYS_COMPILER],
  1104. +[AC_REQUIRE([AC_PROG_CC])dnl
  1105. -_LT_AC_LTCONFIG_HACK
  1106. +# If no C compiler was specified, use CC.
  1107. +LTCC=${LTCC-"$CC"}
  1108. -])
  1109. -
  1110. -# AC_LIBTOOL_HEADER_ASSERT
  1111. -# ------------------------
  1112. -AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
  1113. -[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
  1114. - [lt_cv_func_assert_works],
  1115. - [case $host in
  1116. - *-*-solaris*)
  1117. - if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
  1118. - case `$CC --version 2>/dev/null` in
  1119. - [[12]].*) lt_cv_func_assert_works=no ;;
  1120. - *) lt_cv_func_assert_works=yes ;;
  1121. - esac
  1122. - fi
  1123. - ;;
  1124. - esac])
  1125. -
  1126. -if test "x$lt_cv_func_assert_works" = xyes; then
  1127. - AC_CHECK_HEADERS(assert.h)
  1128. -fi
  1129. -])# AC_LIBTOOL_HEADER_ASSERT
  1130. -
  1131. -# _LT_AC_CHECK_DLFCN
  1132. -# --------------------
  1133. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1134. -[AC_CHECK_HEADERS(dlfcn.h)
  1135. -])# _LT_AC_CHECK_DLFCN
  1136. -
  1137. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  1138. -# ---------------------------------
  1139. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  1140. -[AC_REQUIRE([AC_CANONICAL_HOST])
  1141. -AC_REQUIRE([AC_PROG_NM])
  1142. -AC_REQUIRE([AC_OBJEXT])
  1143. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  1144. -AC_MSG_CHECKING([command to parse $NM output])
  1145. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
  1146. -
  1147. -# These are sane defaults that work on at least a few old systems.
  1148. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  1149. -
  1150. -# Character class describing NM global symbol codes.
  1151. -symcode='[[BCDEGRST]]'
  1152. -
  1153. -# Regexp to match symbols that can be accessed directly from C.
  1154. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  1155. -
  1156. -# Transform the above into a raw symbol and a C symbol.
  1157. -symxfrm='\1 \2\3 \3'
  1158. -
  1159. -# Transform an extracted symbol line into a proper C declaration
  1160. -lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  1161. -
  1162. -# Transform an extracted symbol line into symbol name and symbol address
  1163. -lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  1164. -
  1165. -# Define system-specific variables.
  1166. -case $host_os in
  1167. -aix*)
  1168. - symcode='[[BCDT]]'
  1169. - ;;
  1170. -cygwin* | mingw* | pw32*)
  1171. - symcode='[[ABCDGISTW]]'
  1172. - ;;
  1173. -hpux*) # Its linker distinguishes data from code symbols
  1174. - lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1175. - lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  1176. - ;;
  1177. -irix* | nonstopux*)
  1178. - symcode='[[BCDEGRST]]'
  1179. - ;;
  1180. -osf*)
  1181. - symcode='[[BCDEGQRST]]'
  1182. - ;;
  1183. -solaris* | sysv5*)
  1184. - symcode='[[BDT]]'
  1185. - ;;
  1186. -sysv4)
  1187. - symcode='[[DFNSTU]]'
  1188. - ;;
  1189. -esac
  1190. -
  1191. -# Handle CRLF in mingw tool chain
  1192. -opt_cr=
  1193. -case $host_os in
  1194. -mingw*)
  1195. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  1196. - ;;
  1197. -esac
  1198. -
  1199. -# If we're using GNU nm, then use its standard symbol codes.
  1200. -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  1201. - symcode='[[ABCDGISTW]]'
  1202. -fi
  1203. -
  1204. -# Try without a prefix undercore, then with it.
  1205. -for ac_symprfx in "" "_"; do
  1206. -
  1207. - # Write the raw and C identifiers.
  1208. -lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  1209. -
  1210. - # Check to see that the pipe works correctly.
  1211. - pipe_works=no
  1212. - rm -f conftest*
  1213. - cat > conftest.$ac_ext <<EOF
  1214. -#ifdef __cplusplus
  1215. -extern "C" {
  1216. -#endif
  1217. -char nm_test_var;
  1218. -void nm_test_func(){}
  1219. -#ifdef __cplusplus
  1220. -}
  1221. -#endif
  1222. -int main(){nm_test_var='a';nm_test_func();return(0);}
  1223. -EOF
  1224. -
  1225. - if AC_TRY_EVAL(ac_compile); then
  1226. - # Now try to grab the symbols.
  1227. - nlist=conftest.nm
  1228. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  1229. - # Try sorting and uniquifying the output.
  1230. - if sort "$nlist" | uniq > "$nlist"T; then
  1231. - mv -f "$nlist"T "$nlist"
  1232. - else
  1233. - rm -f "$nlist"T
  1234. - fi
  1235. -
  1236. - # Make sure that we snagged all the symbols we need.
  1237. - if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  1238. - if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  1239. - cat <<EOF > conftest.$ac_ext
  1240. -#ifdef __cplusplus
  1241. -extern "C" {
  1242. -#endif
  1243. -
  1244. -EOF
  1245. - # Now generate the symbol file.
  1246. - eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  1247. -
  1248. - cat <<EOF >> conftest.$ac_ext
  1249. -#if defined (__STDC__) && __STDC__
  1250. -# define lt_ptr void *
  1251. -#else
  1252. -# define lt_ptr char *
  1253. -# define const
  1254. -#endif
  1255. -
  1256. -/* The mapping between symbol names and symbols. */
  1257. -const struct {
  1258. - const char *name;
  1259. - lt_ptr address;
  1260. -}
  1261. -lt_preloaded_symbols[[]] =
  1262. -{
  1263. -EOF
  1264. - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  1265. - cat <<\EOF >> conftest.$ac_ext
  1266. - {0, (lt_ptr) 0}
  1267. -};
  1268. +# Allow CC to be a program name with arguments.
  1269. +compiler=$CC
  1270. +])# _LT_AC_SYS_COMPILER
  1271. -#ifdef __cplusplus
  1272. -}
  1273. -#endif
  1274. -EOF
  1275. - # Now try linking the two files.
  1276. - mv conftest.$ac_objext conftstm.$ac_objext
  1277. - save_LIBS="$LIBS"
  1278. - save_CFLAGS="$CFLAGS"
  1279. - LIBS="conftstm.$ac_objext"
  1280. - CFLAGS="$CFLAGS$no_builtin_flag"
  1281. - if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
  1282. - pipe_works=yes
  1283. - fi
  1284. - LIBS="$save_LIBS"
  1285. - CFLAGS="$save_CFLAGS"
  1286. - else
  1287. - echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
  1288. - fi
  1289. - else
  1290. - echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
  1291. - fi
  1292. - else
  1293. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
  1294. - fi
  1295. - else
  1296. - echo "$progname: failed program was:" >&AC_FD_CC
  1297. - cat conftest.$ac_ext >&5
  1298. - fi
  1299. - rm -f conftest* conftst*
  1300. - # Do not use the global_symbol_pipe unless it works.
  1301. - if test "$pipe_works" = yes; then
  1302. - break
  1303. - else
  1304. - lt_cv_sys_global_symbol_pipe=
  1305. - fi
  1306. -done
  1307. -])
  1308. -global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  1309. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  1310. - global_symbol_to_cdecl=
  1311. - global_symbol_to_c_name_address=
  1312. -else
  1313. - global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  1314. - global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  1315. -fi
  1316. -if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  1317. -then
  1318. - AC_MSG_RESULT(failed)
  1319. -else
  1320. - AC_MSG_RESULT(ok)
  1321. -fi
  1322. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  1323. +# _LT_AC_SYS_LIBPATH_AIX
  1324. +# ----------------------
  1325. +# Links a minimal program and checks the executable
  1326. +# for the system default hardcoded library path. In most cases,
  1327. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1328. +# the location of the communication and MPI libs are included too.
  1329. +# If we don't find anything, use the default library path according
  1330. +# to the aix ld manual.
  1331. +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  1332. +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1333. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  1334. +}'`
  1335. +# Check for a 64-bit object if we didn't find anything.
  1336. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  1337. +}'`; fi],[])
  1338. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1339. +])# _LT_AC_SYS_LIBPATH_AIX
  1340. +
  1341. +
  1342. +# _LT_AC_SHELL_INIT(ARG)
  1343. +# ----------------------
  1344. +AC_DEFUN([_LT_AC_SHELL_INIT],
  1345. +[ifdef([AC_DIVERSION_NOTICE],
  1346. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1347. + [AC_DIVERT_PUSH(NOTICE)])
  1348. +$1
  1349. +AC_DIVERT_POP
  1350. +])# _LT_AC_SHELL_INIT
  1351. -# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  1352. -# ---------------------------------
  1353. -AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
  1354. -[# Find the correct PATH separator. Usually this is `:', but
  1355. -# DJGPP uses `;' like DOS.
  1356. -if test "X${PATH_SEPARATOR+set}" != Xset; then
  1357. - UNAME=${UNAME-`uname 2>/dev/null`}
  1358. - case X$UNAME in
  1359. - *-DOS) lt_cv_sys_path_separator=';' ;;
  1360. - *) lt_cv_sys_path_separator=':' ;;
  1361. - esac
  1362. - PATH_SEPARATOR=$lt_cv_sys_path_separator
  1363. -fi
  1364. -])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  1365. # _LT_AC_PROG_ECHO_BACKSLASH
  1366. # --------------------------
  1367. # Add some code to the start of the generated configure script which
  1368. # will find an echo command which doesn't interpret backslashes.
  1369. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  1370. -[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1371. - [AC_DIVERT_PUSH(NOTICE)])
  1372. -_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  1373. -
  1374. +[_LT_AC_SHELL_INIT([
  1375. # Check that we are running under the correct shell.
  1376. SHELL=${CONFIG_SHELL-/bin/sh}
  1377. @@ -549,7 +1262,7 @@
  1378. elif test "X[$]1" = X--fallback-echo; then
  1379. # Avoid inline document here, it may be left over
  1380. :
  1381. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  1382. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  1383. # Yippee, $echo works!
  1384. :
  1385. else
  1386. @@ -561,7 +1274,7 @@
  1387. # used as fallback echo
  1388. shift
  1389. cat <<EOF
  1390. -$*
  1391. +[$]*
  1392. EOF
  1393. exit 0
  1394. fi
  1395. @@ -595,8 +1308,9 @@
  1396. #
  1397. # So, first we look for a working echo in the user's PATH.
  1398. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1399. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1400. for dir in $PATH /usr/ucb; do
  1401. + IFS="$lt_save_ifs"
  1402. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1403. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1404. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1405. @@ -605,7 +1319,7 @@
  1406. break
  1407. fi
  1408. done
  1409. - IFS="$save_ifs"
  1410. + IFS="$lt_save_ifs"
  1411. if test "X$echo" = Xecho; then
  1412. # We didn't find a better echo, so look for alternatives.
  1413. @@ -678,47 +1392,328 @@
  1414. fi
  1415. AC_SUBST(ECHO)
  1416. -AC_DIVERT_POP
  1417. -])# _LT_AC_PROG_ECHO_BACKSLASH
  1418. +])])# _LT_AC_PROG_ECHO_BACKSLASH
  1419. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1420. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1421. -# ------------------------------------------------------------------
  1422. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1423. -[if test "$cross_compiling" = yes; then :
  1424. - [$4]
  1425. -else
  1426. - AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1427. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1428. - lt_status=$lt_dlunknown
  1429. - cat > conftest.$ac_ext <<EOF
  1430. -[#line __oline__ "configure"
  1431. -#include "confdefs.h"
  1432. -#if HAVE_DLFCN_H
  1433. -#include <dlfcn.h>
  1434. -#endif
  1435. +# _LT_AC_LOCK
  1436. +# -----------
  1437. +AC_DEFUN([_LT_AC_LOCK],
  1438. +[AC_ARG_ENABLE([libtool-lock],
  1439. + [AC_HELP_STRING([--disable-libtool-lock],
  1440. + [avoid locking (might break parallel builds)])])
  1441. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1442. -#include <stdio.h>
  1443. +# Some flags need to be propagated to the compiler or linker for good
  1444. +# libtool support.
  1445. +case $host in
  1446. +ia64-*-hpux*)
  1447. + # Find out which ABI we are using.
  1448. + echo 'int i;' > conftest.$ac_ext
  1449. + if AC_TRY_EVAL(ac_compile); then
  1450. + case `/usr/bin/file conftest.$ac_objext` in
  1451. + *ELF-32*)
  1452. + HPUX_IA64_MODE="32"
  1453. + ;;
  1454. + *ELF-64*)
  1455. + HPUX_IA64_MODE="64"
  1456. + ;;
  1457. + esac
  1458. + fi
  1459. + rm -rf conftest*
  1460. + ;;
  1461. +*-*-irix6*)
  1462. + # Find out which ABI we are using.
  1463. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1464. + if AC_TRY_EVAL(ac_compile); then
  1465. + if test "$lt_cv_prog_gnu_ld" = yes; then
  1466. + case `/usr/bin/file conftest.$ac_objext` in
  1467. + *32-bit*)
  1468. + LD="${LD-ld} -melf32bsmip"
  1469. + ;;
  1470. + *N32*)
  1471. + LD="${LD-ld} -melf32bmipn32"
  1472. + ;;
  1473. + *64-bit*)
  1474. + LD="${LD-ld} -melf64bmip"
  1475. + ;;
  1476. + esac
  1477. + else
  1478. + case `/usr/bin/file conftest.$ac_objext` in
  1479. + *32-bit*)
  1480. + LD="${LD-ld} -32"
  1481. + ;;
  1482. + *N32*)
  1483. + LD="${LD-ld} -n32"
  1484. + ;;
  1485. + *64-bit*)
  1486. + LD="${LD-ld} -64"
  1487. + ;;
  1488. + esac
  1489. + fi
  1490. + fi
  1491. + rm -rf conftest*
  1492. + ;;
  1493. -#ifdef RTLD_GLOBAL
  1494. -# define LT_DLGLOBAL RTLD_GLOBAL
  1495. -#else
  1496. -# ifdef DL_GLOBAL
  1497. -# define LT_DLGLOBAL DL_GLOBAL
  1498. -# else
  1499. -# define LT_DLGLOBAL 0
  1500. -# endif
  1501. -#endif
  1502. +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  1503. + # Find out which ABI we are using.
  1504. + echo 'int i;' > conftest.$ac_ext
  1505. + if AC_TRY_EVAL(ac_compile); then
  1506. + case "`/usr/bin/file conftest.o`" in
  1507. + *32-bit*)
  1508. + case $host in
  1509. + x86_64-*linux*)
  1510. + LD="${LD-ld} -m elf_i386"
  1511. + ;;
  1512. + ppc64-*linux*|powerpc64-*linux*)
  1513. + LD="${LD-ld} -m elf32ppclinux"
  1514. + ;;
  1515. + s390x-*linux*)
  1516. + LD="${LD-ld} -m elf_s390"
  1517. + ;;
  1518. + sparc64-*linux*)
  1519. + LD="${LD-ld} -m elf32_sparc"
  1520. + ;;
  1521. + esac
  1522. + ;;
  1523. + *64-bit*)
  1524. + case $host in
  1525. + x86_64-*linux*)
  1526. + LD="${LD-ld} -m elf_x86_64"
  1527. + ;;
  1528. + ppc*-*linux*|powerpc*-*linux*)
  1529. + LD="${LD-ld} -m elf64ppc"
  1530. + ;;
  1531. + s390*-*linux*)
  1532. + LD="${LD-ld} -m elf64_s390"
  1533. + ;;
  1534. + sparc*-*linux*)
  1535. + LD="${LD-ld} -m elf64_sparc"
  1536. + ;;
  1537. + esac
  1538. + ;;
  1539. + esac
  1540. + fi
  1541. + rm -rf conftest*
  1542. + ;;
  1543. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1544. - find out it does not work in some platform. */
  1545. -#ifndef LT_DLLAZY_OR_NOW
  1546. -# ifdef RTLD_LAZY
  1547. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1548. -# else
  1549. -# ifdef DL_LAZY
  1550. -# define LT_DLLAZY_OR_NOW DL_LAZY
  1551. +*-*-sco3.2v5*)
  1552. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1553. + SAVE_CFLAGS="$CFLAGS"
  1554. + CFLAGS="$CFLAGS -belf"
  1555. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1556. + [AC_LANG_PUSH(C)
  1557. + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1558. + AC_LANG_POP])
  1559. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1560. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1561. + CFLAGS="$SAVE_CFLAGS"
  1562. + fi
  1563. + ;;
  1564. +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1565. +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1566. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1567. + AC_CHECK_TOOL(AS, as, false)
  1568. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1569. + ;;
  1570. + ])
  1571. +esac
  1572. +
  1573. +need_locks="$enable_libtool_lock"
  1574. +
  1575. +])# _LT_AC_LOCK
  1576. +
  1577. +
  1578. +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1579. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1580. +# ----------------------------------------------------------------
  1581. +# Check whether the given compiler option works
  1582. +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1583. +[AC_REQUIRE([LT_AC_PROG_SED])
  1584. +AC_CACHE_CHECK([$1], [$2],
  1585. + [$2=no
  1586. + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1587. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1588. + lt_compiler_flag="$3"
  1589. + # Insert the option either (1) after the last *FLAGS variable, or
  1590. + # (2) before a word containing "conftest.", or (3) at the end.
  1591. + # Note that $ac_compile itself does not contain backslashes and begins
  1592. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  1593. + # The option is referenced via a variable to avoid confusing sed.
  1594. + lt_compile=`echo "$ac_compile" | $SED \
  1595. + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  1596. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1597. + -e 's:$: $lt_compiler_flag:'`
  1598. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1599. + (eval "$lt_compile" 2>conftest.err)
  1600. + ac_status=$?
  1601. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1602. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1603. + if (exit $ac_status) && test -s "$ac_outfile"; then
  1604. + # The compiler can only warn and ignore the option if not recognized
  1605. + # So say no if there are warnings
  1606. + if test ! -s conftest.err; then
  1607. + $2=yes
  1608. + fi
  1609. + fi
  1610. + $rm conftest*
  1611. +])
  1612. +
  1613. +if test x"[$]$2" = xyes; then
  1614. + ifelse([$5], , :, [$5])
  1615. +else
  1616. + ifelse([$6], , :, [$6])
  1617. +fi
  1618. +])# AC_LIBTOOL_COMPILER_OPTION
  1619. +
  1620. +
  1621. +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1622. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  1623. +# ------------------------------------------------------------
  1624. +# Check whether the given compiler option works
  1625. +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1626. +[AC_CACHE_CHECK([$1], [$2],
  1627. + [$2=no
  1628. + save_LDFLAGS="$LDFLAGS"
  1629. + LDFLAGS="$LDFLAGS $3"
  1630. + printf "$lt_simple_link_test_code" > conftest.$ac_ext
  1631. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1632. + # The compiler can only warn and ignore the option if not recognized
  1633. + # So say no if there are warnings
  1634. + if test -s conftest.err; then
  1635. + # Append any errors to the config.log.
  1636. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1637. + else
  1638. + $2=yes
  1639. + fi
  1640. + fi
  1641. + $rm conftest*
  1642. + LDFLAGS="$save_LDFLAGS"
  1643. +])
  1644. +
  1645. +if test x"[$]$2" = xyes; then
  1646. + ifelse([$4], , :, [$4])
  1647. +else
  1648. + ifelse([$5], , :, [$5])
  1649. +fi
  1650. +])# AC_LIBTOOL_LINKER_OPTION
  1651. +
  1652. +
  1653. +# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1654. +# --------------------------
  1655. +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1656. +[# find the maximum length of command line arguments
  1657. +AC_MSG_CHECKING([the maximum length of command line arguments])
  1658. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1659. + i=0
  1660. + teststring="ABCD"
  1661. +
  1662. + case $build_os in
  1663. + msdosdjgpp*)
  1664. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  1665. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  1666. + # during glob expansion). Even if it were fixed, the result of this
  1667. + # check would be larger than it should be.
  1668. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1669. + ;;
  1670. +
  1671. + gnu*)
  1672. + # Under GNU Hurd, this test is not required because there is
  1673. + # no limit to the length of command line arguments.
  1674. + # Libtool will interpret -1 as no limit whatsoever
  1675. + lt_cv_sys_max_cmd_len=-1;
  1676. + ;;
  1677. +
  1678. + cygwin* | mingw*)
  1679. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  1680. + # about 5 minutes as the teststring grows exponentially.
  1681. + # Worse, since 9x/ME are not pre-emptively multitasking,
  1682. + # you end up with a "frozen" computer, even though with patience
  1683. + # the test eventually succeeds (with a max line length of 256k).
  1684. + # Instead, let's just punt: use the minimum linelength reported by
  1685. + # all of the supported platforms: 8192 (on NT/2K/XP).
  1686. + lt_cv_sys_max_cmd_len=8192;
  1687. + ;;
  1688. +
  1689. + amigaos*)
  1690. + # On AmigaOS with pdksh, this test takes hours, literally.
  1691. + # So we just punt and use a minimum line length of 8192.
  1692. + lt_cv_sys_max_cmd_len=8192;
  1693. + ;;
  1694. +
  1695. + *)
  1696. + # If test is not a shell built-in, we'll probably end up computing a
  1697. + # maximum length that is only half of the actual maximum length, but
  1698. + # we can't tell.
  1699. + while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1700. + = "XX$teststring") >/dev/null 2>&1 &&
  1701. + new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1702. + lt_cv_sys_max_cmd_len=$new_result &&
  1703. + test $i != 17 # 1/2 MB should be enough
  1704. + do
  1705. + i=`expr $i + 1`
  1706. + teststring=$teststring$teststring
  1707. + done
  1708. + teststring=
  1709. + # Add a significant safety factor because C++ compilers can tack on massive
  1710. + # amounts of additional arguments before passing them to the linker.
  1711. + # It appears as though 1/2 is a usable value.
  1712. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1713. + ;;
  1714. + esac
  1715. +])
  1716. +if test -n $lt_cv_sys_max_cmd_len ; then
  1717. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1718. +else
  1719. + AC_MSG_RESULT(none)
  1720. +fi
  1721. +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1722. +
  1723. +
  1724. +# _LT_AC_CHECK_DLFCN
  1725. +# --------------------
  1726. +AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1727. +[AC_CHECK_HEADERS(dlfcn.h)dnl
  1728. +])# _LT_AC_CHECK_DLFCN
  1729. +
  1730. +
  1731. +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1732. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1733. +# ------------------------------------------------------------------
  1734. +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1735. +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1736. +if test "$cross_compiling" = yes; then :
  1737. + [$4]
  1738. +else
  1739. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1740. + lt_status=$lt_dlunknown
  1741. + cat > conftest.$ac_ext <<EOF
  1742. +[#line __oline__ "configure"
  1743. +#include "confdefs.h"
  1744. +
  1745. +#if HAVE_DLFCN_H
  1746. +#include <dlfcn.h>
  1747. +#endif
  1748. +
  1749. +#include <stdio.h>
  1750. +
  1751. +#ifdef RTLD_GLOBAL
  1752. +# define LT_DLGLOBAL RTLD_GLOBAL
  1753. +#else
  1754. +# ifdef DL_GLOBAL
  1755. +# define LT_DLGLOBAL DL_GLOBAL
  1756. +# else
  1757. +# define LT_DLGLOBAL 0
  1758. +# endif
  1759. +#endif
  1760. +
  1761. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1762. + find out it does not work in some platform. */
  1763. +#ifndef LT_DLLAZY_OR_NOW
  1764. +# ifdef RTLD_LAZY
  1765. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1766. +# else
  1767. +# ifdef DL_LAZY
  1768. +# define LT_DLLAZY_OR_NOW DL_LAZY
  1769. # else
  1770. # ifdef RTLD_NOW
  1771. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1772. @@ -769,10 +1764,12 @@
  1773. rm -fr conftest*
  1774. ])# _LT_AC_TRY_DLOPEN_SELF
  1775. +
  1776. # AC_LIBTOOL_DLOPEN_SELF
  1777. # -------------------
  1778. AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1779. -[if test "x$enable_dlopen" != xyes; then
  1780. +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1781. +if test "x$enable_dlopen" != xyes; then
  1782. enable_dlopen=unknown
  1783. enable_dlopen_self=unknown
  1784. enable_dlopen_self_static=unknown
  1785. @@ -787,24 +1784,39 @@
  1786. lt_cv_dlopen_self=yes
  1787. ;;
  1788. - cygwin* | mingw* | pw32*)
  1789. + mingw* | pw32*)
  1790. lt_cv_dlopen="LoadLibrary"
  1791. lt_cv_dlopen_libs=
  1792. ;;
  1793. + cygwin*)
  1794. + lt_cv_dlopen="dlopen"
  1795. + lt_cv_dlopen_libs=
  1796. + ;;
  1797. +
  1798. + darwin*)
  1799. + # if libdl is installed we need to link against it
  1800. + AC_CHECK_LIB([dl], [dlopen],
  1801. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1802. + lt_cv_dlopen="dyld"
  1803. + lt_cv_dlopen_libs=
  1804. + lt_cv_dlopen_self=yes
  1805. + ])
  1806. + ;;
  1807. +
  1808. *)
  1809. AC_CHECK_FUNC([shl_load],
  1810. - [lt_cv_dlopen="shl_load"],
  1811. + [lt_cv_dlopen="shl_load"],
  1812. [AC_CHECK_LIB([dld], [shl_load],
  1813. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1814. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1815. [AC_CHECK_FUNC([dlopen],
  1816. [lt_cv_dlopen="dlopen"],
  1817. [AC_CHECK_LIB([dl], [dlopen],
  1818. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1819. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1820. [AC_CHECK_LIB([svld], [dlopen],
  1821. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1822. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1823. [AC_CHECK_LIB([dld], [dld_link],
  1824. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1825. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1826. ])
  1827. ])
  1828. ])
  1829. @@ -822,7 +1834,6 @@
  1830. case $lt_cv_dlopen in
  1831. dlopen)
  1832. save_CPPFLAGS="$CPPFLAGS"
  1833. - AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1834. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1835. save_LDFLAGS="$LDFLAGS"
  1836. @@ -866,707 +1877,1838 @@
  1837. fi
  1838. ])# AC_LIBTOOL_DLOPEN_SELF
  1839. -AC_DEFUN([_LT_AC_LTCONFIG_HACK],
  1840. -[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
  1841. -# Sed substitution that helps us do robust quoting. It backslashifies
  1842. -# metacharacters that are still active within double-quoted strings.
  1843. -Xsed='sed -e s/^X//'
  1844. -sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
  1845. -
  1846. -# Same as above, but do not quote variable references.
  1847. -double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
  1848. -
  1849. -# Sed substitution to delay expansion of an escaped shell variable in a
  1850. -# double_quote_subst'ed string.
  1851. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  1852. -# Constants:
  1853. -rm="rm -f"
  1854. +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1855. +# ---------------------------------
  1856. +# Check to see if options -c and -o are simultaneously supported by compiler
  1857. +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1858. +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1859. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1860. + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1861. + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1862. + $rm -r conftest 2>/dev/null
  1863. + mkdir conftest
  1864. + cd conftest
  1865. + mkdir out
  1866. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1867. +
  1868. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  1869. + # Insert the option either (1) after the last *FLAGS variable, or
  1870. + # (2) before a word containing "conftest.", or (3) at the end.
  1871. + # Note that $ac_compile itself does not contain backslashes and begins
  1872. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  1873. + lt_compile=`echo "$ac_compile" | $SED \
  1874. + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  1875. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1876. + -e 's:$: $lt_compiler_flag:'`
  1877. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1878. + (eval "$lt_compile" 2>out/conftest.err)
  1879. + ac_status=$?
  1880. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1881. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1882. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1883. + then
  1884. + # The compiler can only warn and ignore the option if not recognized
  1885. + # So say no if there are warnings
  1886. + if test ! -s out/conftest.err; then
  1887. + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1888. + fi
  1889. + fi
  1890. + chmod u+w .
  1891. + $rm conftest*
  1892. + # SGI C++ compiler will create directory out/ii_files/ for
  1893. + # template instantiation
  1894. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1895. + $rm out/* && rmdir out
  1896. + cd ..
  1897. + rmdir conftest
  1898. + $rm conftest*
  1899. +])
  1900. +])# AC_LIBTOOL_PROG_CC_C_O
  1901. -# Global variables:
  1902. -default_ofile=libtool
  1903. -can_build_shared=yes
  1904. -# All known linkers require a `.a' archive for static linking (except M$VC,
  1905. -# which needs '.lib').
  1906. -libext=a
  1907. -ltmain="$ac_aux_dir/ltmain.sh"
  1908. -ofile="$default_ofile"
  1909. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  1910. -need_locks="$enable_libtool_lock"
  1911. +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1912. +# -----------------------------------------
  1913. +# Check to see if we can do hard links to lock some files if needed
  1914. +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1915. +[AC_REQUIRE([_LT_AC_LOCK])dnl
  1916. -old_CC="$CC"
  1917. -old_CFLAGS="$CFLAGS"
  1918. +hard_links="nottested"
  1919. +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1920. + # do not overwrite the value of need_locks provided by the user
  1921. + AC_MSG_CHECKING([if we can lock with hard links])
  1922. + hard_links=yes
  1923. + $rm conftest*
  1924. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1925. + touch conftest.a
  1926. + ln conftest.a conftest.b 2>&5 || hard_links=no
  1927. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1928. + AC_MSG_RESULT([$hard_links])
  1929. + if test "$hard_links" = no; then
  1930. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1931. + need_locks=warn
  1932. + fi
  1933. +else
  1934. + need_locks=no
  1935. +fi
  1936. +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1937. -# Set sane defaults for various variables
  1938. -test -z "$AR" && AR=ar
  1939. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  1940. -test -z "$AS" && AS=as
  1941. -test -z "$CC" && CC=cc
  1942. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  1943. -test -z "$LD" && LD=ld
  1944. -test -z "$LN_S" && LN_S="ln -s"
  1945. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  1946. -test -z "$NM" && NM=nm
  1947. -test -z "$OBJDUMP" && OBJDUMP=objdump
  1948. -test -z "$RANLIB" && RANLIB=:
  1949. -test -z "$STRIP" && STRIP=:
  1950. -test -z "$ac_objext" && ac_objext=o
  1951. -if test x"$host" != x"$build"; then
  1952. - ac_tool_prefix=${host_alias}-
  1953. +# AC_LIBTOOL_OBJDIR
  1954. +# -----------------
  1955. +AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1956. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1957. +[rm -f .libs 2>/dev/null
  1958. +mkdir .libs 2>/dev/null
  1959. +if test -d .libs; then
  1960. + lt_cv_objdir=.libs
  1961. else
  1962. - ac_tool_prefix=
  1963. + # MS-DOS does not allow filenames that begin with a dot.
  1964. + lt_cv_objdir=_libs
  1965. fi
  1966. +rmdir .libs 2>/dev/null])
  1967. +objdir=$lt_cv_objdir
  1968. +])# AC_LIBTOOL_OBJDIR
  1969. -# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  1970. -case $host_os in
  1971. -linux-gnu*) ;;
  1972. -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  1973. -esac
  1974. -case $host_os in
  1975. -aix3*)
  1976. - # AIX sometimes has problems with the GCC collect2 program. For some
  1977. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  1978. - # vanish in a puff of smoke.
  1979. - if test "X${COLLECT_NAMES+set}" != Xset; then
  1980. - COLLECT_NAMES=
  1981. - export COLLECT_NAMES
  1982. +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1983. +# ----------------------------------------------
  1984. +# Check hardcoding attributes.
  1985. +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  1986. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  1987. +_LT_AC_TAGVAR(hardcode_action, $1)=
  1988. +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1989. + test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
  1990. + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
  1991. +
  1992. + # We can hardcode non-existant directories.
  1993. + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1994. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1995. + # have to relink, otherwise we might link with an installed library
  1996. + # when we should be linking with a yet-to-be-installed one
  1997. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1998. + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  1999. + # Linking always hardcodes the temporary library directory.
  2000. + _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2001. + else
  2002. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2003. + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2004. fi
  2005. - ;;
  2006. -esac
  2007. +else
  2008. + # We cannot hardcode anything, or else we can only hardcode existing
  2009. + # directories.
  2010. + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2011. +fi
  2012. +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2013. -# Determine commands to create old-style static archives.
  2014. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  2015. -old_postinstall_cmds='chmod 644 $oldlib'
  2016. -old_postuninstall_cmds=
  2017. +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2018. + # Fast installation is not supported
  2019. + enable_fast_install=no
  2020. +elif test "$shlibpath_overrides_runpath" = yes ||
  2021. + test "$enable_shared" = no; then
  2022. + # Fast installation is not necessary
  2023. + enable_fast_install=needless
  2024. +fi
  2025. +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2026. -if test -n "$RANLIB"; then
  2027. +
  2028. +# AC_LIBTOOL_SYS_LIB_STRIP
  2029. +# ------------------------
  2030. +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2031. +[striplib=
  2032. +old_striplib=
  2033. +AC_MSG_CHECKING([whether stripping libraries is possible])
  2034. +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2035. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2036. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2037. + AC_MSG_RESULT([yes])
  2038. +else
  2039. +# FIXME - insert some real tests, host_os isn't really good enough
  2040. case $host_os in
  2041. - openbsd*)
  2042. - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  2043. - ;;
  2044. - *)
  2045. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  2046. + darwin*)
  2047. + if test -n "$STRIP" ; then
  2048. + striplib="$STRIP -x"
  2049. + AC_MSG_RESULT([yes])
  2050. + else
  2051. + AC_MSG_RESULT([no])
  2052. +fi
  2053. + ;;
  2054. + *)
  2055. + AC_MSG_RESULT([no])
  2056. ;;
  2057. esac
  2058. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2059. fi
  2060. +])# AC_LIBTOOL_SYS_LIB_STRIP
  2061. -# Allow CC to be a program name with arguments.
  2062. -set dummy $CC
  2063. -compiler="[$]2"
  2064. -AC_MSG_CHECKING([for objdir])
  2065. -rm -f .libs 2>/dev/null
  2066. -mkdir .libs 2>/dev/null
  2067. -if test -d .libs; then
  2068. - objdir=.libs
  2069. +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2070. +# -----------------------------
  2071. +# PORTME Fill in your ld.so characteristics
  2072. +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2073. +[AC_MSG_CHECKING([dynamic linker characteristics])
  2074. +library_names_spec=
  2075. +libname_spec='lib$name'
  2076. +soname_spec=
  2077. +shrext_cmds=".so"
  2078. +postinstall_cmds=
  2079. +postuninstall_cmds=
  2080. +finish_cmds=
  2081. +finish_eval=
  2082. +shlibpath_var=
  2083. +shlibpath_overrides_runpath=unknown
  2084. +version_type=none
  2085. +dynamic_linker="$host_os ld.so"
  2086. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2087. +if test "$GCC" = yes; then
  2088. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2089. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  2090. + # if the path contains ";" then we assume it to be the separator
  2091. + # otherwise default to the standard path separator (i.e. ":") - it is
  2092. + # assumed that no part of a normal pathname contains ";" but that should
  2093. + # okay in the real world where ";" in dirpaths is itself problematic.
  2094. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2095. + else
  2096. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2097. + fi
  2098. else
  2099. - # MS-DOS does not allow filenames that begin with a dot.
  2100. - objdir=_libs
  2101. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2102. fi
  2103. -rmdir .libs 2>/dev/null
  2104. -AC_MSG_RESULT($objdir)
  2105. -
  2106. +need_lib_prefix=unknown
  2107. +hardcode_into_libs=no
  2108. -AC_ARG_WITH(pic,
  2109. -[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
  2110. -pic_mode="$withval", pic_mode=default)
  2111. -test -z "$pic_mode" && pic_mode=default
  2112. +# when you set need_version to no, make sure it does not cause -set_version
  2113. +# flags to be left without arguments
  2114. +need_version=unknown
  2115. -# We assume here that the value for lt_cv_prog_cc_pic will not be cached
  2116. -# in isolation, and that seeing it set (from the cache) indicates that
  2117. -# the associated values are set (in the cache) correctly too.
  2118. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  2119. -AC_CACHE_VAL(lt_cv_prog_cc_pic,
  2120. -[ lt_cv_prog_cc_pic=
  2121. - lt_cv_prog_cc_shlib=
  2122. - lt_cv_prog_cc_wl=
  2123. - lt_cv_prog_cc_static=
  2124. - lt_cv_prog_cc_no_builtin=
  2125. - lt_cv_prog_cc_can_build_shared=$can_build_shared
  2126. +case $host_os in
  2127. +aix3*)
  2128. + version_type=linux
  2129. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2130. + shlibpath_var=LIBPATH
  2131. - if test "$GCC" = yes; then
  2132. - lt_cv_prog_cc_wl='-Wl,'
  2133. - lt_cv_prog_cc_static='-static'
  2134. + # AIX 3 has no versioning support, so we append a major version to the name.
  2135. + soname_spec='${libname}${release}${shared_ext}$major'
  2136. + ;;
  2137. - case $host_os in
  2138. - aix*)
  2139. - # Below there is a dirty hack to force normal static linking with -ldl
  2140. - # The problem is because libdl dynamically linked with both libc and
  2141. - # libC (AIX C++ library), which obviously doesn't included in libraries
  2142. - # list by gcc. This cause undefined symbols with -static flags.
  2143. - # This hack allows C programs to be linked with "-static -ldl", but
  2144. - # not sure about C++ programs.
  2145. - lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  2146. - ;;
  2147. - amigaos*)
  2148. - # FIXME: we need at least 68020 code to build shared libraries, but
  2149. - # adding the `-m68020' flag to GCC prevents building anything better,
  2150. - # like `-m68040'.
  2151. - lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  2152. - ;;
  2153. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  2154. - # PIC is the default for these OSes.
  2155. - ;;
  2156. - darwin* | rhapsody*)
  2157. - # PIC is the default on this platform
  2158. - # Common symbols not allowed in MH_DYLIB files
  2159. - lt_cv_prog_cc_pic='-fno-common'
  2160. - ;;
  2161. - cygwin* | mingw* | pw32* | os2*)
  2162. - # This hack is so that the source file can tell whether it is being
  2163. - # built for inclusion in a dll (and should export symbols for example).
  2164. - lt_cv_prog_cc_pic='-DDLL_EXPORT'
  2165. - ;;
  2166. - sysv4*MP*)
  2167. - if test -d /usr/nec; then
  2168. - lt_cv_prog_cc_pic=-Kconform_pic
  2169. - fi
  2170. - ;;
  2171. - *)
  2172. - lt_cv_prog_cc_pic='-fPIC'
  2173. - ;;
  2174. - esac
  2175. +aix4* | aix5*)
  2176. + version_type=linux
  2177. + need_lib_prefix=no
  2178. + need_version=no
  2179. + hardcode_into_libs=yes
  2180. + if test "$host_cpu" = ia64; then
  2181. + # AIX 5 supports IA64
  2182. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2183. + shlibpath_var=LD_LIBRARY_PATH
  2184. else
  2185. - # PORTME Check for PIC flags for the system compiler.
  2186. + # With GCC up to 2.95.x, collect2 would create an import file
  2187. + # for dependence libraries. The import file would start with
  2188. + # the line `#! .'. This would cause the generated library to
  2189. + # depend on `.', always an invalid library. This was fixed in
  2190. + # development snapshots of GCC prior to 3.0.
  2191. case $host_os in
  2192. - aix3* | aix4* | aix5*)
  2193. - lt_cv_prog_cc_wl='-Wl,'
  2194. - # All AIX code is PIC.
  2195. - if test "$host_cpu" = ia64; then
  2196. - # AIX 5 now supports IA64 processor
  2197. - lt_cv_prog_cc_static='-Bstatic'
  2198. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  2199. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2200. + echo ' yes '
  2201. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2202. + :
  2203. else
  2204. - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  2205. + can_build_shared=no
  2206. fi
  2207. ;;
  2208. + esac
  2209. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2210. + # soname into executable. Probably we can add versioning support to
  2211. + # collect2, so additional links can be useful in future.
  2212. + if test "$aix_use_runtimelinking" = yes; then
  2213. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2214. + # instead of lib<name>.a to let people know that these are not
  2215. + # typical AIX shared libraries.
  2216. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2217. + else
  2218. + # We preserve .a as extension for shared libraries through AIX4.2
  2219. + # and later when we are not doing run time linking.
  2220. + library_names_spec='${libname}${release}.a $libname.a'
  2221. + soname_spec='${libname}${release}${shared_ext}$major'
  2222. + fi
  2223. + shlibpath_var=LIBPATH
  2224. + fi
  2225. + ;;
  2226. - hpux9* | hpux10* | hpux11*)
  2227. - # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  2228. - lt_cv_prog_cc_wl='-Wl,'
  2229. - lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  2230. - lt_cv_prog_cc_pic='+Z'
  2231. - ;;
  2232. -
  2233. - irix5* | irix6* | nonstopux*)
  2234. - lt_cv_prog_cc_wl='-Wl,'
  2235. - lt_cv_prog_cc_static='-non_shared'
  2236. - # PIC (with -KPIC) is the default.
  2237. - ;;
  2238. -
  2239. - cygwin* | mingw* | pw32* | os2*)
  2240. - # This hack is so that the source file can tell whether it is being
  2241. - # built for inclusion in a dll (and should export symbols for example).
  2242. - lt_cv_prog_cc_pic='-DDLL_EXPORT'
  2243. - ;;
  2244. -
  2245. - newsos6)
  2246. - lt_cv_prog_cc_pic='-KPIC'
  2247. - lt_cv_prog_cc_static='-Bstatic'
  2248. - ;;
  2249. -
  2250. - osf3* | osf4* | osf5*)
  2251. - # All OSF/1 code is PIC.
  2252. - lt_cv_prog_cc_wl='-Wl,'
  2253. - lt_cv_prog_cc_static='-non_shared'
  2254. - ;;
  2255. +amigaos*)
  2256. + library_names_spec='$libname.ixlibrary $libname.a'
  2257. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2258. + 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'
  2259. + ;;
  2260. - sco3.2v5*)
  2261. - lt_cv_prog_cc_pic='-Kpic'
  2262. - lt_cv_prog_cc_static='-dn'
  2263. - lt_cv_prog_cc_shlib='-belf'
  2264. - ;;
  2265. +beos*)
  2266. + library_names_spec='${libname}${shared_ext}'
  2267. + dynamic_linker="$host_os ld.so"
  2268. + shlibpath_var=LIBRARY_PATH
  2269. + ;;
  2270. - solaris*)
  2271. - lt_cv_prog_cc_pic='-KPIC'
  2272. - lt_cv_prog_cc_static='-Bstatic'
  2273. - lt_cv_prog_cc_wl='-Wl,'
  2274. - ;;
  2275. +bsdi4*)
  2276. + version_type=linux
  2277. + need_version=no
  2278. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2279. + soname_spec='${libname}${release}${shared_ext}$major'
  2280. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2281. + shlibpath_var=LD_LIBRARY_PATH
  2282. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2283. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2284. + # the default ld.so.conf also contains /usr/contrib/lib and
  2285. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2286. + # libtool to hard-code these into programs
  2287. + ;;
  2288. - sunos4*)
  2289. - lt_cv_prog_cc_pic='-PIC'
  2290. - lt_cv_prog_cc_static='-Bstatic'
  2291. - lt_cv_prog_cc_wl='-Qoption ld '
  2292. - ;;
  2293. +cygwin* | mingw* | pw32*)
  2294. + version_type=windows
  2295. + shrext_cmds=".dll"
  2296. + need_version=no
  2297. + need_lib_prefix=no
  2298. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2299. - lt_cv_prog_cc_pic='-KPIC'
  2300. - lt_cv_prog_cc_static='-Bstatic'
  2301. - lt_cv_prog_cc_wl='-Wl,'
  2302. - ;;
  2303. + case $GCC,$host_os in
  2304. + yes,cygwin* | yes,mingw* | yes,pw32*)
  2305. + library_names_spec='$libname.dll.a'
  2306. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2307. + postinstall_cmds='base_file=`basename \${file}`~
  2308. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2309. + dldir=$destdir/`dirname \$dlpath`~
  2310. + test -d \$dldir || mkdir -p \$dldir~
  2311. + $install_prog $dir/$dlname \$dldir/$dlname'
  2312. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2313. + dlpath=$dir/\$dldll~
  2314. + $rm \$dlpath'
  2315. + shlibpath_overrides_runpath=yes
  2316. - uts4*)
  2317. - lt_cv_prog_cc_pic='-pic'
  2318. - lt_cv_prog_cc_static='-Bstatic'
  2319. + case $host_os in
  2320. + cygwin*)
  2321. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2322. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2323. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2324. ;;
  2325. -
  2326. - sysv4*MP*)
  2327. - if test -d /usr/nec ;then
  2328. - lt_cv_prog_cc_pic='-Kconform_pic'
  2329. - lt_cv_prog_cc_static='-Bstatic'
  2330. + mingw*)
  2331. + # MinGW DLLs use traditional 'lib' prefix
  2332. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2333. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2334. + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2335. + # It is most probably a Windows format PATH printed by
  2336. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2337. + # path with ; separators, and with drive letters. We can handle the
  2338. + # drive letters (cygwin fileutils understands them), so leave them,
  2339. + # especially as we might pass files found there to a mingw objdump,
  2340. + # which wouldn't understand a cygwinified path. Ahh.
  2341. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2342. + else
  2343. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2344. fi
  2345. ;;
  2346. -
  2347. - *)
  2348. - lt_cv_prog_cc_can_build_shared=no
  2349. + pw32*)
  2350. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  2351. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  2352. ;;
  2353. esac
  2354. - fi
  2355. -])
  2356. -if test -z "$lt_cv_prog_cc_pic"; then
  2357. - AC_MSG_RESULT([none])
  2358. -else
  2359. - AC_MSG_RESULT([$lt_cv_prog_cc_pic])
  2360. -
  2361. - # Check to make sure the pic_flag actually works.
  2362. - AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
  2363. - AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
  2364. - save_CFLAGS="$CFLAGS"
  2365. - CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  2366. - AC_TRY_COMPILE([], [], [dnl
  2367. - case $host_os in
  2368. - hpux9* | hpux10* | hpux11*)
  2369. - # On HP-UX, both CC and GCC only warn that PIC is supported... then
  2370. - # they create non-PIC objects. So, if there were any warnings, we
  2371. - # assume that PIC is not supported.
  2372. - if test -s conftest.err; then
  2373. - lt_cv_prog_cc_pic_works=no
  2374. - else
  2375. - lt_cv_prog_cc_pic_works=yes
  2376. - fi
  2377. - ;;
  2378. - *)
  2379. - lt_cv_prog_cc_pic_works=yes
  2380. - ;;
  2381. - esac
  2382. - ], [dnl
  2383. - lt_cv_prog_cc_pic_works=no
  2384. - ])
  2385. - CFLAGS="$save_CFLAGS"
  2386. - ])
  2387. -
  2388. - if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  2389. - lt_cv_prog_cc_pic=
  2390. - lt_cv_prog_cc_can_build_shared=no
  2391. - else
  2392. - lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  2393. - fi
  2394. -
  2395. - AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
  2396. -fi
  2397. -
  2398. -# Check for any special shared library compilation flags.
  2399. -if test -n "$lt_cv_prog_cc_shlib"; then
  2400. - AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
  2401. - if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
  2402. - else
  2403. - AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
  2404. - lt_cv_prog_cc_can_build_shared=no
  2405. - fi
  2406. -fi
  2407. -
  2408. -AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
  2409. -AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
  2410. - lt_cv_prog_cc_static_works=no
  2411. - save_LDFLAGS="$LDFLAGS"
  2412. - LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  2413. - AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
  2414. - LDFLAGS="$save_LDFLAGS"
  2415. -])
  2416. -
  2417. -# Belt *and* braces to stop my trousers falling down:
  2418. -test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  2419. -AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
  2420. -
  2421. -pic_flag="$lt_cv_prog_cc_pic"
  2422. -special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  2423. -wl="$lt_cv_prog_cc_wl"
  2424. -link_static_flag="$lt_cv_prog_cc_static"
  2425. -no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  2426. -can_build_shared="$lt_cv_prog_cc_can_build_shared"
  2427. -
  2428. -
  2429. -# Check to see if options -o and -c are simultaneously supported by compiler
  2430. -AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
  2431. -AC_CACHE_VAL([lt_cv_compiler_c_o], [
  2432. -$rm -r conftest 2>/dev/null
  2433. -mkdir conftest
  2434. -cd conftest
  2435. -echo "int some_variable = 0;" > conftest.$ac_ext
  2436. -mkdir out
  2437. -# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  2438. -# that will create temporary files in the current directory regardless of
  2439. -# the output directory. Thus, making CWD read-only will cause this test
  2440. -# to fail, enabling locking or at least warning the user not to do parallel
  2441. -# builds.
  2442. -chmod -w .
  2443. -save_CFLAGS="$CFLAGS"
  2444. -CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  2445. -compiler_c_o=no
  2446. -if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  2447. - # The compiler can only warn and ignore the option if not recognized
  2448. - # So say no if there are warnings
  2449. - if test -s out/conftest.err; then
  2450. - lt_cv_compiler_c_o=no
  2451. - else
  2452. - lt_cv_compiler_c_o=yes
  2453. - fi
  2454. -else
  2455. - # Append any errors to the config.log.
  2456. - cat out/conftest.err 1>&AC_FD_CC
  2457. - lt_cv_compiler_c_o=no
  2458. -fi
  2459. -CFLAGS="$save_CFLAGS"
  2460. -chmod u+w .
  2461. -$rm conftest* out/*
  2462. -rmdir out
  2463. -cd ..
  2464. -rmdir conftest
  2465. -$rm -r conftest 2>/dev/null
  2466. -])
  2467. -compiler_c_o=$lt_cv_compiler_c_o
  2468. -AC_MSG_RESULT([$compiler_c_o])
  2469. -
  2470. -if test x"$compiler_c_o" = x"yes"; then
  2471. - # Check to see if we can write to a .lo
  2472. - AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
  2473. - AC_CACHE_VAL([lt_cv_compiler_o_lo], [
  2474. - lt_cv_compiler_o_lo=no
  2475. - save_CFLAGS="$CFLAGS"
  2476. - CFLAGS="$CFLAGS -c -o conftest.lo"
  2477. - save_objext="$ac_objext"
  2478. - ac_objext=lo
  2479. - AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
  2480. - # The compiler can only warn and ignore the option if not recognized
  2481. - # So say no if there are warnings
  2482. - if test -s conftest.err; then
  2483. - lt_cv_compiler_o_lo=no
  2484. - else
  2485. - lt_cv_compiler_o_lo=yes
  2486. - fi
  2487. - ])
  2488. - ac_objext="$save_objext"
  2489. - CFLAGS="$save_CFLAGS"
  2490. - ])
  2491. - compiler_o_lo=$lt_cv_compiler_o_lo
  2492. - AC_MSG_RESULT([$compiler_o_lo])
  2493. -else
  2494. - compiler_o_lo=no
  2495. -fi
  2496. -
  2497. -# Check to see if we can do hard links to lock some files if needed
  2498. -hard_links="nottested"
  2499. -if test "$compiler_c_o" = no && test "$need_locks" != no; then
  2500. - # do not overwrite the value of need_locks provided by the user
  2501. - AC_MSG_CHECKING([if we can lock with hard links])
  2502. - hard_links=yes
  2503. - $rm conftest*
  2504. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2505. - touch conftest.a
  2506. - ln conftest.a conftest.b 2>&5 || hard_links=no
  2507. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2508. - AC_MSG_RESULT([$hard_links])
  2509. - if test "$hard_links" = no; then
  2510. - AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
  2511. - need_locks=warn
  2512. - fi
  2513. -else
  2514. - need_locks=no
  2515. -fi
  2516. + ;;
  2517. -if test "$GCC" = yes; then
  2518. - # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  2519. - AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
  2520. - echo "int some_variable = 0;" > conftest.$ac_ext
  2521. - save_CFLAGS="$CFLAGS"
  2522. - CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  2523. - compiler_rtti_exceptions=no
  2524. - AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
  2525. - # The compiler can only warn and ignore the option if not recognized
  2526. - # So say no if there are warnings
  2527. - if test -s conftest.err; then
  2528. - compiler_rtti_exceptions=no
  2529. - else
  2530. - compiler_rtti_exceptions=yes
  2531. - fi
  2532. - ])
  2533. - CFLAGS="$save_CFLAGS"
  2534. - AC_MSG_RESULT([$compiler_rtti_exceptions])
  2535. + *)
  2536. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2537. + ;;
  2538. + esac
  2539. + dynamic_linker='Win32 ld.exe'
  2540. + # FIXME: first we should search . and the directory the executable is in
  2541. + shlibpath_var=PATH
  2542. + ;;
  2543. - if test "$compiler_rtti_exceptions" = "yes"; then
  2544. - no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  2545. +darwin* | rhapsody*)
  2546. + dynamic_linker="$host_os dyld"
  2547. + version_type=darwin
  2548. + need_lib_prefix=no
  2549. + need_version=no
  2550. + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2551. + soname_spec='${libname}${release}${major}$shared_ext'
  2552. + shlibpath_overrides_runpath=yes
  2553. + shlibpath_var=DYLD_LIBRARY_PATH
  2554. + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  2555. + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  2556. + if test "$GCC" = yes; then
  2557. + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  2558. else
  2559. - no_builtin_flag=' -fno-builtin'
  2560. + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  2561. fi
  2562. -fi
  2563. -
  2564. -# See if the linker supports building shared libraries.
  2565. -AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
  2566. -
  2567. -allow_undefined_flag=
  2568. -no_undefined_flag=
  2569. -need_lib_prefix=unknown
  2570. -need_version=unknown
  2571. -# when you set need_version to no, make sure it does not cause -set_version
  2572. -# flags to be left without arguments
  2573. -archive_cmds=
  2574. -archive_expsym_cmds=
  2575. -old_archive_from_new_cmds=
  2576. -old_archive_from_expsyms_cmds=
  2577. -export_dynamic_flag_spec=
  2578. -whole_archive_flag_spec=
  2579. -thread_safe_flag_spec=
  2580. -hardcode_into_libs=no
  2581. -hardcode_libdir_flag_spec=
  2582. -hardcode_libdir_separator=
  2583. -hardcode_direct=no
  2584. -hardcode_minus_L=no
  2585. -hardcode_shlibpath_var=unsupported
  2586. -runpath_var=
  2587. -link_all_deplibs=unknown
  2588. -always_export_symbols=no
  2589. -export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  2590. -# include_expsyms should be a list of space-separated symbols to be *always*
  2591. -# included in the symbol list
  2592. -include_expsyms=
  2593. -# exclude_expsyms can be an egrep regular expression of symbols to exclude
  2594. -# it will be wrapped by ` (' and `)$', so one must not match beginning or
  2595. -# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  2596. -# as well as any symbol that contains `d'.
  2597. -exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  2598. -# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  2599. -# platforms (ab)use it in PIC code, but their linkers get confused if
  2600. -# the symbol is explicitly referenced. Since portable code cannot
  2601. -# rely on this symbol name, it's probably fine to never include it in
  2602. -# preloaded symbol tables.
  2603. -extract_expsyms_cmds=
  2604. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2605. + ;;
  2606. -case $host_os in
  2607. -cygwin* | mingw* | pw32*)
  2608. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  2609. - # When not using gcc, we currently assume that we are using
  2610. - # Microsoft Visual C++.
  2611. - if test "$GCC" != yes; then
  2612. - with_gnu_ld=no
  2613. - fi
  2614. +dgux*)
  2615. + version_type=linux
  2616. + need_lib_prefix=no
  2617. + need_version=no
  2618. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2619. + soname_spec='${libname}${release}${shared_ext}$major'
  2620. + shlibpath_var=LD_LIBRARY_PATH
  2621. ;;
  2622. -openbsd*)
  2623. - with_gnu_ld=no
  2624. +
  2625. +freebsd1*)
  2626. + dynamic_linker=no
  2627. ;;
  2628. -esac
  2629. -ld_shlibs=yes
  2630. -if test "$with_gnu_ld" = yes; then
  2631. - # If archive_cmds runs LD, not CC, wlarc should be empty
  2632. - wlarc='${wl}'
  2633. +kfreebsd*-gnu)
  2634. + version_type=linux
  2635. + need_lib_prefix=no
  2636. + need_version=no
  2637. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2638. + soname_spec='${libname}${release}${shared_ext}$major'
  2639. + shlibpath_var=LD_LIBRARY_PATH
  2640. + shlibpath_overrides_runpath=no
  2641. + hardcode_into_libs=yes
  2642. + dynamic_linker='GNU ld.so'
  2643. + ;;
  2644. - # See if GNU ld supports shared libraries.
  2645. +freebsd*)
  2646. + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  2647. + version_type=freebsd-$objformat
  2648. + case $version_type in
  2649. + freebsd-elf*)
  2650. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2651. + need_version=no
  2652. + need_lib_prefix=no
  2653. + ;;
  2654. + freebsd-*)
  2655. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2656. + need_version=yes
  2657. + ;;
  2658. + esac
  2659. + shlibpath_var=LD_LIBRARY_PATH
  2660. case $host_os in
  2661. - aix3* | aix4* | aix5*)
  2662. - # On AIX, the GNU linker is very broken
  2663. - # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  2664. - ld_shlibs=no
  2665. - cat <<EOF 1>&2
  2666. -
  2667. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  2668. -*** to be unable to reliably create shared libraries on AIX.
  2669. -*** Therefore, libtool is disabling shared libraries support. If you
  2670. -*** really care for shared libraries, you may want to modify your PATH
  2671. -*** so that a non-GNU linker is found, and then restart.
  2672. -
  2673. -EOF
  2674. + freebsd2*)
  2675. + shlibpath_overrides_runpath=yes
  2676. ;;
  2677. -
  2678. - amigaos*)
  2679. - 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)'
  2680. - hardcode_libdir_flag_spec='-L$libdir'
  2681. - hardcode_minus_L=yes
  2682. -
  2683. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  2684. - # that the semantics of dynamic libraries on AmigaOS, at least up
  2685. - # to version 4, is to share data among multiple programs linked
  2686. - # with the same dynamic library. Since this doesn't match the
  2687. - # behavior of shared libraries on other platforms, we can use
  2688. - # them.
  2689. - ld_shlibs=no
  2690. + freebsd3.[01]* | freebsdelf3.[01]*)
  2691. + shlibpath_overrides_runpath=yes
  2692. + hardcode_into_libs=yes
  2693. ;;
  2694. -
  2695. - beos*)
  2696. - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  2697. - allow_undefined_flag=unsupported
  2698. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  2699. - # support --undefined. This deserves some investigation. FIXME
  2700. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2701. - else
  2702. - ld_shlibs=no
  2703. - fi
  2704. + *) # from 3.2 on
  2705. + shlibpath_overrides_runpath=no
  2706. + hardcode_into_libs=yes
  2707. ;;
  2708. + esac
  2709. + ;;
  2710. - cygwin* | mingw* | pw32*)
  2711. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  2712. - # no search path for DLLs.
  2713. - hardcode_libdir_flag_spec='-L$libdir'
  2714. - allow_undefined_flag=unsupported
  2715. - always_export_symbols=yes
  2716. -
  2717. - extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  2718. - sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  2719. - test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  2720. - if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  2721. - else $CC -o impgen impgen.c ; fi)~
  2722. - $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  2723. -
  2724. - old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  2725. -
  2726. - # cygwin and mingw dlls have different entry points and sets of symbols
  2727. - # to exclude.
  2728. - # FIXME: what about values for MSVC?
  2729. - dll_entry=__cygwin_dll_entry@12
  2730. - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  2731. - case $host_os in
  2732. - mingw*)
  2733. - # mingw values
  2734. - dll_entry=_DllMainCRTStartup@12
  2735. - dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  2736. - ;;
  2737. - esac
  2738. -
  2739. - # mingw and cygwin differ, and it's simplest to just exclude the union
  2740. - # of the two symbol sets.
  2741. - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  2742. -
  2743. - # recent cygwin and mingw systems supply a stub DllMain which the user
  2744. - # can override, but on older systems we have to supply one (in ltdll.c)
  2745. - if test "x$lt_cv_need_dllmain" = "xyes"; then
  2746. - ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  2747. - ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  2748. - test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  2749. - else
  2750. - ltdll_obj=
  2751. - ltdll_cmds=
  2752. - fi
  2753. -
  2754. - # Extract the symbol export list from an `--export-all' def file,
  2755. - # then regenerate the def file from the symbol export list, so that
  2756. - # the compiled dll only exports the symbol export list.
  2757. - # Be careful not to strip the DATA tag left be newer dlltools.
  2758. - export_symbols_cmds="$ltdll_cmds"'
  2759. - $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  2760. - sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  2761. -
  2762. - # If the export-symbols file already is a .def file (1st line
  2763. - # is EXPORTS), use it as is.
  2764. - # If DATA tags from a recent dlltool are present, honour them!
  2765. - archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  2766. - cp $export_symbols $output_objdir/$soname-def;
  2767. - else
  2768. - echo EXPORTS > $output_objdir/$soname-def;
  2769. - _lt_hint=1;
  2770. - cat $export_symbols | while read symbol; do
  2771. - set dummy \$symbol;
  2772. - case \[$]# in
  2773. - 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  2774. - 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
  2775. - *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
  2776. - esac;
  2777. - _lt_hint=`expr 1 + \$_lt_hint`;
  2778. - done;
  2779. - fi~
  2780. - '"$ltdll_cmds"'
  2781. - $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  2782. - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  2783. - $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  2784. - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  2785. - $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  2786. +gnu*)
  2787. + version_type=linux
  2788. + need_lib_prefix=no
  2789. + need_version=no
  2790. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2791. + soname_spec='${libname}${release}${shared_ext}$major'
  2792. + shlibpath_var=LD_LIBRARY_PATH
  2793. + hardcode_into_libs=yes
  2794. + ;;
  2795. +
  2796. +hpux9* | hpux10* | hpux11*)
  2797. + # Give a soname corresponding to the major version so that dld.sl refuses to
  2798. + # link against other versions.
  2799. + version_type=sunos
  2800. + need_lib_prefix=no
  2801. + need_version=no
  2802. + case "$host_cpu" in
  2803. + ia64*)
  2804. + shrext_cmds='.so'
  2805. + hardcode_into_libs=yes
  2806. + dynamic_linker="$host_os dld.so"
  2807. + shlibpath_var=LD_LIBRARY_PATH
  2808. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2809. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2810. + soname_spec='${libname}${release}${shared_ext}$major'
  2811. + if test "X$HPUX_IA64_MODE" = X32; then
  2812. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2813. + else
  2814. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2815. + fi
  2816. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2817. + ;;
  2818. + hppa*64*)
  2819. + shrext_cmds='.sl'
  2820. + hardcode_into_libs=yes
  2821. + dynamic_linker="$host_os dld.sl"
  2822. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2823. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2824. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2825. + soname_spec='${libname}${release}${shared_ext}$major'
  2826. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2827. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2828. + ;;
  2829. + *)
  2830. + shrext_cmds='.sl'
  2831. + dynamic_linker="$host_os dld.sl"
  2832. + shlibpath_var=SHLIB_PATH
  2833. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2834. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2835. + soname_spec='${libname}${release}${shared_ext}$major'
  2836. + ;;
  2837. + esac
  2838. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2839. + postinstall_cmds='chmod 555 $lib'
  2840. + ;;
  2841. +
  2842. +irix5* | irix6* | nonstopux*)
  2843. + case $host_os in
  2844. + nonstopux*) version_type=nonstopux ;;
  2845. + *)
  2846. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2847. + version_type=linux
  2848. + else
  2849. + version_type=irix
  2850. + fi ;;
  2851. + esac
  2852. + need_lib_prefix=no
  2853. + need_version=no
  2854. + soname_spec='${libname}${release}${shared_ext}$major'
  2855. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2856. + case $host_os in
  2857. + irix5* | nonstopux*)
  2858. + libsuff= shlibsuff=
  2859. + ;;
  2860. + *)
  2861. + case $LD in # libtool.m4 will add one of these switches to LD
  2862. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2863. + libsuff= shlibsuff= libmagic=32-bit;;
  2864. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2865. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  2866. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2867. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2868. + *) libsuff= shlibsuff= libmagic=never-match;;
  2869. + esac
  2870. + ;;
  2871. + esac
  2872. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2873. + shlibpath_overrides_runpath=no
  2874. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2875. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2876. + hardcode_into_libs=yes
  2877. + ;;
  2878. +
  2879. +# No shared lib support for Linux oldld, aout, or coff.
  2880. +linux*oldld* | linux*aout* | linux*coff*)
  2881. + dynamic_linker=no
  2882. + ;;
  2883. +
  2884. +# This must be Linux ELF.
  2885. +linux*)
  2886. + version_type=linux
  2887. + need_lib_prefix=no
  2888. + need_version=no
  2889. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2890. + soname_spec='${libname}${release}${shared_ext}$major'
  2891. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2892. + shlibpath_var=LD_LIBRARY_PATH
  2893. + shlibpath_overrides_runpath=no
  2894. + # This implies no fast_install, which is unacceptable.
  2895. + # Some rework will be needed to allow for fast_install
  2896. + # before this can be enabled.
  2897. + hardcode_into_libs=yes
  2898. +
  2899. + # Append ld.so.conf contents to the search path
  2900. + if test -f /etc/ld.so.conf; then
  2901. + lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
  2902. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2903. + fi
  2904. +
  2905. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  2906. + # powerpc, because MkLinux only supported shared libraries with the
  2907. + # GNU dynamic linker. Since this was broken with cross compilers,
  2908. + # most powerpc-linux boxes support dynamic linking these days and
  2909. + # people can always --disable-shared, the test was removed, and we
  2910. + # assume the GNU/Linux dynamic linker is in use.
  2911. + dynamic_linker='GNU/Linux ld.so'
  2912. + ;;
  2913. +
  2914. +netbsdelf*-gnu)
  2915. + version_type=linux
  2916. + need_lib_prefix=no
  2917. + need_version=no
  2918. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2919. + soname_spec='${libname}${release}${shared_ext}$major'
  2920. + shlibpath_var=LD_LIBRARY_PATH
  2921. + shlibpath_overrides_runpath=no
  2922. + hardcode_into_libs=yes
  2923. + dynamic_linker='NetBSD ld.elf_so'
  2924. + ;;
  2925. +
  2926. +knetbsd*-gnu)
  2927. + version_type=linux
  2928. + need_lib_prefix=no
  2929. + need_version=no
  2930. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2931. + soname_spec='${libname}${release}${shared_ext}$major'
  2932. + shlibpath_var=LD_LIBRARY_PATH
  2933. + shlibpath_overrides_runpath=no
  2934. + hardcode_into_libs=yes
  2935. + dynamic_linker='GNU ld.so'
  2936. + ;;
  2937. +
  2938. +netbsd*)
  2939. + version_type=sunos
  2940. + need_lib_prefix=no
  2941. + need_version=no
  2942. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2943. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2944. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2945. + dynamic_linker='NetBSD (a.out) ld.so'
  2946. + else
  2947. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2948. + soname_spec='${libname}${release}${shared_ext}$major'
  2949. + dynamic_linker='NetBSD ld.elf_so'
  2950. + fi
  2951. + shlibpath_var=LD_LIBRARY_PATH
  2952. + shlibpath_overrides_runpath=yes
  2953. + hardcode_into_libs=yes
  2954. + ;;
  2955. +
  2956. +newsos6)
  2957. + version_type=linux
  2958. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2959. + shlibpath_var=LD_LIBRARY_PATH
  2960. + shlibpath_overrides_runpath=yes
  2961. + ;;
  2962. +
  2963. +nto-qnx*)
  2964. + version_type=linux
  2965. + need_lib_prefix=no
  2966. + need_version=no
  2967. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2968. + soname_spec='${libname}${release}${shared_ext}$major'
  2969. + shlibpath_var=LD_LIBRARY_PATH
  2970. + shlibpath_overrides_runpath=yes
  2971. + ;;
  2972. +
  2973. +openbsd*)
  2974. + version_type=sunos
  2975. + need_lib_prefix=no
  2976. + need_version=yes
  2977. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2978. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2979. + shlibpath_var=LD_LIBRARY_PATH
  2980. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2981. + case $host_os in
  2982. + openbsd2.[[89]] | openbsd2.[[89]].*)
  2983. + shlibpath_overrides_runpath=no
  2984. + ;;
  2985. + *)
  2986. + shlibpath_overrides_runpath=yes
  2987. + ;;
  2988. + esac
  2989. + else
  2990. + shlibpath_overrides_runpath=yes
  2991. + fi
  2992. + ;;
  2993. +
  2994. +os2*)
  2995. + libname_spec='$name'
  2996. + shrext_cmds=".dll"
  2997. + need_lib_prefix=no
  2998. + library_names_spec='$libname${shared_ext} $libname.a'
  2999. + dynamic_linker='OS/2 ld.exe'
  3000. + shlibpath_var=LIBPATH
  3001. + ;;
  3002. +
  3003. +osf3* | osf4* | osf5*)
  3004. + version_type=osf
  3005. + need_lib_prefix=no
  3006. + need_version=no
  3007. + soname_spec='${libname}${release}${shared_ext}$major'
  3008. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3009. + shlibpath_var=LD_LIBRARY_PATH
  3010. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  3011. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  3012. + ;;
  3013. +
  3014. +sco3.2v5*)
  3015. + version_type=osf
  3016. + soname_spec='${libname}${release}${shared_ext}$major'
  3017. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3018. + shlibpath_var=LD_LIBRARY_PATH
  3019. + ;;
  3020. +
  3021. +solaris*)
  3022. + version_type=linux
  3023. + need_lib_prefix=no
  3024. + need_version=no
  3025. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3026. + soname_spec='${libname}${release}${shared_ext}$major'
  3027. + shlibpath_var=LD_LIBRARY_PATH
  3028. + shlibpath_overrides_runpath=yes
  3029. + hardcode_into_libs=yes
  3030. + # ldd complains unless libraries are executable
  3031. + postinstall_cmds='chmod +x $lib'
  3032. + ;;
  3033. +
  3034. +sunos4*)
  3035. + version_type=sunos
  3036. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3037. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  3038. + shlibpath_var=LD_LIBRARY_PATH
  3039. + shlibpath_overrides_runpath=yes
  3040. + if test "$with_gnu_ld" = yes; then
  3041. + need_lib_prefix=no
  3042. + fi
  3043. + need_version=yes
  3044. + ;;
  3045. +
  3046. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3047. + version_type=linux
  3048. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3049. + soname_spec='${libname}${release}${shared_ext}$major'
  3050. + shlibpath_var=LD_LIBRARY_PATH
  3051. + case $host_vendor in
  3052. + sni)
  3053. + shlibpath_overrides_runpath=no
  3054. + need_lib_prefix=no
  3055. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  3056. + runpath_var=LD_RUN_PATH
  3057. + ;;
  3058. + siemens)
  3059. + need_lib_prefix=no
  3060. + ;;
  3061. + motorola)
  3062. + need_lib_prefix=no
  3063. + need_version=no
  3064. + shlibpath_overrides_runpath=no
  3065. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  3066. + ;;
  3067. + esac
  3068. + ;;
  3069. +
  3070. +sysv4*MP*)
  3071. + if test -d /usr/nec ;then
  3072. + version_type=linux
  3073. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  3074. + soname_spec='$libname${shared_ext}.$major'
  3075. + shlibpath_var=LD_LIBRARY_PATH
  3076. + fi
  3077. + ;;
  3078. +
  3079. +uts4*)
  3080. + version_type=linux
  3081. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3082. + soname_spec='${libname}${release}${shared_ext}$major'
  3083. + shlibpath_var=LD_LIBRARY_PATH
  3084. + ;;
  3085. +
  3086. +*)
  3087. + dynamic_linker=no
  3088. + ;;
  3089. +esac
  3090. +AC_MSG_RESULT([$dynamic_linker])
  3091. +test "$dynamic_linker" = no && can_build_shared=no
  3092. +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3093. +
  3094. +
  3095. +# _LT_AC_TAGCONFIG
  3096. +# ----------------
  3097. +AC_DEFUN([_LT_AC_TAGCONFIG],
  3098. +[AC_ARG_WITH([tags],
  3099. + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  3100. + [include additional configurations @<:@automatic@:>@])],
  3101. + [tagnames="$withval"])
  3102. +
  3103. +if test -f "$ltmain" && test -n "$tagnames"; then
  3104. + if test ! -f "${ofile}"; then
  3105. + AC_MSG_WARN([output file `$ofile' does not exist])
  3106. + fi
  3107. +
  3108. + if test -z "$LTCC"; then
  3109. + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  3110. + if test -z "$LTCC"; then
  3111. + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  3112. + else
  3113. + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  3114. + fi
  3115. + fi
  3116. +
  3117. + # Extract list of available tagged configurations in $ofile.
  3118. + # Note that this assumes the entire list is on one line.
  3119. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  3120. +
  3121. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3122. + for tagname in $tagnames; do
  3123. + IFS="$lt_save_ifs"
  3124. + # Check whether tagname contains only valid characters
  3125. + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  3126. + "") ;;
  3127. + *) AC_MSG_ERROR([invalid tag name: $tagname])
  3128. + ;;
  3129. + esac
  3130. +
  3131. + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  3132. + then
  3133. + AC_MSG_ERROR([tag name \"$tagname\" already exists])
  3134. + fi
  3135. +
  3136. + # Update the list of available tags.
  3137. + if test -n "$tagname"; then
  3138. + echo appending configuration tag \"$tagname\" to $ofile
  3139. +
  3140. + case $tagname in
  3141. + CXX)
  3142. + if test -n "$CXX" && test "X$CXX" != "Xno"; then
  3143. + AC_LIBTOOL_LANG_CXX_CONFIG
  3144. + else
  3145. + tagname=""
  3146. + fi
  3147. + ;;
  3148. +
  3149. + F77)
  3150. + if test -n "$F77" && test "X$F77" != "Xno"; then
  3151. + AC_LIBTOOL_LANG_F77_CONFIG
  3152. + else
  3153. + tagname=""
  3154. + fi
  3155. + ;;
  3156. +
  3157. + GCJ)
  3158. + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  3159. + AC_LIBTOOL_LANG_GCJ_CONFIG
  3160. + else
  3161. + tagname=""
  3162. + fi
  3163. + ;;
  3164. +
  3165. + RC)
  3166. + AC_LIBTOOL_LANG_RC_CONFIG
  3167. + ;;
  3168. +
  3169. + *)
  3170. + AC_MSG_ERROR([Unsupported tag name: $tagname])
  3171. + ;;
  3172. + esac
  3173. +
  3174. + # Append the new tag name to the list of available tags.
  3175. + if test -n "$tagname" ; then
  3176. + available_tags="$available_tags $tagname"
  3177. + fi
  3178. + fi
  3179. + done
  3180. + IFS="$lt_save_ifs"
  3181. +
  3182. + # Now substitute the updated list of available tags.
  3183. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  3184. + mv "${ofile}T" "$ofile"
  3185. + chmod +x "$ofile"
  3186. + else
  3187. + rm -f "${ofile}T"
  3188. + AC_MSG_ERROR([unable to update list of available tagged configurations.])
  3189. + fi
  3190. +fi
  3191. +])# _LT_AC_TAGCONFIG
  3192. +
  3193. +
  3194. +# AC_LIBTOOL_DLOPEN
  3195. +# -----------------
  3196. +# enable checks for dlopen support
  3197. +AC_DEFUN([AC_LIBTOOL_DLOPEN],
  3198. + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  3199. +])# AC_LIBTOOL_DLOPEN
  3200. +
  3201. +
  3202. +# AC_LIBTOOL_WIN32_DLL
  3203. +# --------------------
  3204. +# declare package support for building win32 dll's
  3205. +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  3206. +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  3207. +])# AC_LIBTOOL_WIN32_DLL
  3208. +
  3209. +
  3210. +# AC_ENABLE_SHARED([DEFAULT])
  3211. +# ---------------------------
  3212. +# implement the --enable-shared flag
  3213. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3214. +AC_DEFUN([AC_ENABLE_SHARED],
  3215. +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3216. +AC_ARG_ENABLE([shared],
  3217. + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  3218. + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  3219. + [p=${PACKAGE-default}
  3220. + case $enableval in
  3221. + yes) enable_shared=yes ;;
  3222. + no) enable_shared=no ;;
  3223. + *)
  3224. + enable_shared=no
  3225. + # Look at the argument we got. We use all the common list separators.
  3226. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3227. + for pkg in $enableval; do
  3228. + IFS="$lt_save_ifs"
  3229. + if test "X$pkg" = "X$p"; then
  3230. + enable_shared=yes
  3231. + fi
  3232. + done
  3233. + IFS="$lt_save_ifs"
  3234. + ;;
  3235. + esac],
  3236. + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  3237. +])# AC_ENABLE_SHARED
  3238. +
  3239. +
  3240. +# AC_DISABLE_SHARED
  3241. +# -----------------
  3242. +#- set the default shared flag to --disable-shared
  3243. +AC_DEFUN([AC_DISABLE_SHARED],
  3244. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3245. +AC_ENABLE_SHARED(no)
  3246. +])# AC_DISABLE_SHARED
  3247. +
  3248. +
  3249. +# AC_ENABLE_STATIC([DEFAULT])
  3250. +# ---------------------------
  3251. +# implement the --enable-static flag
  3252. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3253. +AC_DEFUN([AC_ENABLE_STATIC],
  3254. +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3255. +AC_ARG_ENABLE([static],
  3256. + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  3257. + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  3258. + [p=${PACKAGE-default}
  3259. + case $enableval in
  3260. + yes) enable_static=yes ;;
  3261. + no) enable_static=no ;;
  3262. + *)
  3263. + enable_static=no
  3264. + # Look at the argument we got. We use all the common list separators.
  3265. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3266. + for pkg in $enableval; do
  3267. + IFS="$lt_save_ifs"
  3268. + if test "X$pkg" = "X$p"; then
  3269. + enable_static=yes
  3270. + fi
  3271. + done
  3272. + IFS="$lt_save_ifs"
  3273. + ;;
  3274. + esac],
  3275. + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  3276. +])# AC_ENABLE_STATIC
  3277. +
  3278. +
  3279. +# AC_DISABLE_STATIC
  3280. +# -----------------
  3281. +# set the default static flag to --disable-static
  3282. +AC_DEFUN([AC_DISABLE_STATIC],
  3283. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3284. +AC_ENABLE_STATIC(no)
  3285. +])# AC_DISABLE_STATIC
  3286. +
  3287. +
  3288. +# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3289. +# ---------------------------------
  3290. +# implement the --enable-fast-install flag
  3291. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3292. +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3293. +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3294. +AC_ARG_ENABLE([fast-install],
  3295. + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3296. + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3297. + [p=${PACKAGE-default}
  3298. + case $enableval in
  3299. + yes) enable_fast_install=yes ;;
  3300. + no) enable_fast_install=no ;;
  3301. + *)
  3302. + enable_fast_install=no
  3303. + # Look at the argument we got. We use all the common list separators.
  3304. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3305. + for pkg in $enableval; do
  3306. + IFS="$lt_save_ifs"
  3307. + if test "X$pkg" = "X$p"; then
  3308. + enable_fast_install=yes
  3309. + fi
  3310. + done
  3311. + IFS="$lt_save_ifs"
  3312. + ;;
  3313. + esac],
  3314. + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3315. +])# AC_ENABLE_FAST_INSTALL
  3316. +
  3317. +
  3318. +# AC_DISABLE_FAST_INSTALL
  3319. +# -----------------------
  3320. +# set the default to --disable-fast-install
  3321. +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3322. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3323. +AC_ENABLE_FAST_INSTALL(no)
  3324. +])# AC_DISABLE_FAST_INSTALL
  3325. +
  3326. +
  3327. +# AC_LIBTOOL_PICMODE([MODE])
  3328. +# --------------------------
  3329. +# implement the --with-pic flag
  3330. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3331. +AC_DEFUN([AC_LIBTOOL_PICMODE],
  3332. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3333. +pic_mode=ifelse($#,1,$1,default)
  3334. +])# AC_LIBTOOL_PICMODE
  3335. +
  3336. +
  3337. +# AC_PROG_EGREP
  3338. +# -------------
  3339. +# This is predefined starting with Autoconf 2.54, so this conditional
  3340. +# definition can be removed once we require Autoconf 2.54 or later.
  3341. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3342. +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3343. + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3344. + then ac_cv_prog_egrep='grep -E'
  3345. + else ac_cv_prog_egrep='egrep'
  3346. + fi])
  3347. + EGREP=$ac_cv_prog_egrep
  3348. + AC_SUBST([EGREP])
  3349. +])])
  3350. +
  3351. +
  3352. +# AC_PATH_TOOL_PREFIX
  3353. +# -------------------
  3354. +# find a file program which can recognise shared library
  3355. +AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3356. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  3357. +AC_MSG_CHECKING([for $1])
  3358. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3359. +[case $MAGIC_CMD in
  3360. +[[\\/*] | ?:[\\/]*])
  3361. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3362. + ;;
  3363. +*)
  3364. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  3365. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3366. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  3367. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  3368. +dnl not every word. This closes a longstanding sh security hole.
  3369. + ac_dummy="ifelse([$2], , $PATH, [$2])"
  3370. + for ac_dir in $ac_dummy; do
  3371. + IFS="$lt_save_ifs"
  3372. + test -z "$ac_dir" && ac_dir=.
  3373. + if test -f $ac_dir/$1; then
  3374. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3375. + if test -n "$file_magic_test_file"; then
  3376. + case $deplibs_check_method in
  3377. + "file_magic "*)
  3378. + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  3379. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3380. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3381. + $EGREP "$file_magic_regex" > /dev/null; then
  3382. + :
  3383. + else
  3384. + cat <<EOF 1>&2
  3385. +
  3386. +*** Warning: the command libtool uses to detect shared libraries,
  3387. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  3388. +*** The result is that libtool may fail to recognize shared libraries
  3389. +*** as such. This will affect the creation of libtool libraries that
  3390. +*** depend on shared libraries, but programs linked with such libtool
  3391. +*** libraries will work regardless of this problem. Nevertheless, you
  3392. +*** may want to report the problem to your system manager and/or to
  3393. +*** bug-libtool@gnu.org
  3394. +
  3395. +EOF
  3396. + fi ;;
  3397. + esac
  3398. + fi
  3399. + break
  3400. + fi
  3401. + done
  3402. + IFS="$lt_save_ifs"
  3403. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  3404. + ;;
  3405. +esac])
  3406. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3407. +if test -n "$MAGIC_CMD"; then
  3408. + AC_MSG_RESULT($MAGIC_CMD)
  3409. +else
  3410. + AC_MSG_RESULT(no)
  3411. +fi
  3412. +])# AC_PATH_TOOL_PREFIX
  3413. +
  3414. +
  3415. +# AC_PATH_MAGIC
  3416. +# -------------
  3417. +# find a file program which can recognise a shared library
  3418. +AC_DEFUN([AC_PATH_MAGIC],
  3419. +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3420. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  3421. + if test -n "$ac_tool_prefix"; then
  3422. + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3423. + else
  3424. + MAGIC_CMD=:
  3425. + fi
  3426. +fi
  3427. +])# AC_PATH_MAGIC
  3428. +
  3429. +
  3430. +# AC_PROG_LD
  3431. +# ----------
  3432. +# find the pathname to the GNU or non-GNU linker
  3433. +AC_DEFUN([AC_PROG_LD],
  3434. +[AC_ARG_WITH([gnu-ld],
  3435. + [AC_HELP_STRING([--with-gnu-ld],
  3436. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3437. + [test "$withval" = no || with_gnu_ld=yes],
  3438. + [with_gnu_ld=no])
  3439. +AC_REQUIRE([LT_AC_PROG_SED])dnl
  3440. +AC_REQUIRE([AC_PROG_CC])dnl
  3441. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3442. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3443. +ac_prog=ld
  3444. +if test "$GCC" = yes; then
  3445. + # Check if gcc -print-prog-name=ld gives a path.
  3446. + AC_MSG_CHECKING([for ld used by $CC])
  3447. + case $host in
  3448. + *-*-mingw*)
  3449. + # gcc leaves a trailing carriage return which upsets mingw
  3450. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3451. + *)
  3452. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3453. + esac
  3454. + case $ac_prog in
  3455. + # Accept absolute paths.
  3456. + [[\\/]]* | ?:[[\\/]]*)
  3457. + re_direlt='/[[^/]][[^/]]*/\.\./'
  3458. + # Canonicalize the pathname of ld
  3459. + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3460. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3461. + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3462. + done
  3463. + test -z "$LD" && LD="$ac_prog"
  3464. + ;;
  3465. + "")
  3466. + # If it fails, then pretend we aren't using GCC.
  3467. + ac_prog=ld
  3468. + ;;
  3469. + *)
  3470. + # If it is relative, then search for the first ld in PATH.
  3471. + with_gnu_ld=unknown
  3472. + ;;
  3473. + esac
  3474. +elif test "$with_gnu_ld" = yes; then
  3475. + AC_MSG_CHECKING([for GNU ld])
  3476. +else
  3477. + AC_MSG_CHECKING([for non-GNU ld])
  3478. +fi
  3479. +AC_CACHE_VAL(lt_cv_path_LD,
  3480. +[if test -z "$LD"; then
  3481. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3482. + for ac_dir in $PATH; do
  3483. + IFS="$lt_save_ifs"
  3484. + test -z "$ac_dir" && ac_dir=.
  3485. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3486. + lt_cv_path_LD="$ac_dir/$ac_prog"
  3487. + # Check to see if the program is GNU ld. I'd rather use --version,
  3488. + # but apparently some GNU ld's only accept -v.
  3489. + # Break only if it was the GNU/non-GNU ld that we prefer.
  3490. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3491. + *GNU* | *'with BFD'*)
  3492. + test "$with_gnu_ld" != no && break
  3493. + ;;
  3494. + *)
  3495. + test "$with_gnu_ld" != yes && break
  3496. + ;;
  3497. + esac
  3498. + fi
  3499. + done
  3500. + IFS="$lt_save_ifs"
  3501. +else
  3502. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3503. +fi])
  3504. +LD="$lt_cv_path_LD"
  3505. +if test -n "$LD"; then
  3506. + AC_MSG_RESULT($LD)
  3507. +else
  3508. + AC_MSG_RESULT(no)
  3509. +fi
  3510. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3511. +AC_PROG_LD_GNU
  3512. +])# AC_PROG_LD
  3513. +
  3514. +
  3515. +# AC_PROG_LD_GNU
  3516. +# --------------
  3517. +AC_DEFUN([AC_PROG_LD_GNU],
  3518. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  3519. +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3520. +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3521. +case `$LD -v 2>&1 </dev/null` in
  3522. +*GNU* | *'with BFD'*)
  3523. + lt_cv_prog_gnu_ld=yes
  3524. + ;;
  3525. +*)
  3526. + lt_cv_prog_gnu_ld=no
  3527. + ;;
  3528. +esac])
  3529. +with_gnu_ld=$lt_cv_prog_gnu_ld
  3530. +])# AC_PROG_LD_GNU
  3531. +
  3532. +
  3533. +# AC_PROG_LD_RELOAD_FLAG
  3534. +# ----------------------
  3535. +# find reload flag for linker
  3536. +# -- PORTME Some linkers may need a different reload flag.
  3537. +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3538. +[AC_CACHE_CHECK([for $LD option to reload object files],
  3539. + lt_cv_ld_reload_flag,
  3540. + [lt_cv_ld_reload_flag='-r'])
  3541. +reload_flag=$lt_cv_ld_reload_flag
  3542. +case $reload_flag in
  3543. +"" | " "*) ;;
  3544. +*) reload_flag=" $reload_flag" ;;
  3545. +esac
  3546. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3547. +])# AC_PROG_LD_RELOAD_FLAG
  3548. +
  3549. +
  3550. +# AC_DEPLIBS_CHECK_METHOD
  3551. +# -----------------------
  3552. +# how to check for library dependencies
  3553. +# -- PORTME fill in with the dynamic library characteristics
  3554. +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3555. +[AC_CACHE_CHECK([how to recognise dependent libraries],
  3556. +lt_cv_deplibs_check_method,
  3557. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  3558. +lt_cv_file_magic_test_file=
  3559. +lt_cv_deplibs_check_method='unknown'
  3560. +# Need to set the preceding variable on all platforms that support
  3561. +# interlibrary dependencies.
  3562. +# 'none' -- dependencies not supported.
  3563. +# `unknown' -- same as none, but documents that we really don't know.
  3564. +# 'pass_all' -- all dependencies passed with no checks.
  3565. +# 'test_compile' -- check by making test program.
  3566. +# 'file_magic [[regex]]' -- check by looking for files in library path
  3567. +# which responds to the $file_magic_cmd with a given extended regex.
  3568. +# If you have `file' or equivalent on your system and you're not sure
  3569. +# whether `pass_all' will *always* work, you probably want this one.
  3570. +
  3571. +case $host_os in
  3572. +aix4* | aix5*)
  3573. + lt_cv_deplibs_check_method=pass_all
  3574. + ;;
  3575. +
  3576. +beos*)
  3577. + lt_cv_deplibs_check_method=pass_all
  3578. + ;;
  3579. +
  3580. +bsdi4*)
  3581. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3582. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  3583. + lt_cv_file_magic_test_file=/shlib/libc.so
  3584. + ;;
  3585. +
  3586. +cygwin*)
  3587. + # func_win32_libid is a shell function defined in ltmain.sh
  3588. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3589. + lt_cv_file_magic_cmd='func_win32_libid'
  3590. + ;;
  3591. +
  3592. +mingw* | pw32*)
  3593. + # Base MSYS/MinGW do not provide the 'file' command needed by
  3594. + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3595. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3596. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3597. + ;;
  3598. +
  3599. +darwin* | rhapsody*)
  3600. + lt_cv_deplibs_check_method=pass_all
  3601. + ;;
  3602. +
  3603. +freebsd* | kfreebsd*-gnu)
  3604. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3605. + case $host_cpu in
  3606. + i*86 )
  3607. + # Not sure whether the presence of OpenBSD here was a mistake.
  3608. + # Let's accept both of them until this is cleared up.
  3609. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  3610. + lt_cv_file_magic_cmd=/usr/bin/file
  3611. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3612. + ;;
  3613. + esac
  3614. + else
  3615. + lt_cv_deplibs_check_method=pass_all
  3616. + fi
  3617. + ;;
  3618. +
  3619. +gnu*)
  3620. + lt_cv_deplibs_check_method=pass_all
  3621. + ;;
  3622. +
  3623. +hpux10.20* | hpux11*)
  3624. + lt_cv_file_magic_cmd=/usr/bin/file
  3625. + case "$host_cpu" in
  3626. + ia64*)
  3627. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3628. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3629. + ;;
  3630. + hppa*64*)
  3631. + [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]']
  3632. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3633. + ;;
  3634. + *)
  3635. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  3636. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3637. + ;;
  3638. + esac
  3639. + ;;
  3640. +
  3641. +irix5* | irix6* | nonstopux*)
  3642. + case $LD in
  3643. + *-32|*"-32 ") libmagic=32-bit;;
  3644. + *-n32|*"-n32 ") libmagic=N32;;
  3645. + *-64|*"-64 ") libmagic=64-bit;;
  3646. + *) libmagic=never-match;;
  3647. + esac
  3648. + lt_cv_deplibs_check_method=pass_all
  3649. + ;;
  3650. +
  3651. +# This must be Linux ELF.
  3652. +linux*)
  3653. + lt_cv_deplibs_check_method=pass_all
  3654. + ;;
  3655. +
  3656. +netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  3657. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3658. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3659. + else
  3660. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3661. + fi
  3662. + ;;
  3663. +
  3664. +newos6*)
  3665. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3666. + lt_cv_file_magic_cmd=/usr/bin/file
  3667. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3668. + ;;
  3669. +
  3670. +nto-qnx*)
  3671. + lt_cv_deplibs_check_method=unknown
  3672. + ;;
  3673. +
  3674. +openbsd*)
  3675. + lt_cv_file_magic_cmd=/usr/bin/file
  3676. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3677. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3678. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
  3679. + else
  3680. + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  3681. + fi
  3682. + ;;
  3683. +
  3684. +osf3* | osf4* | osf5*)
  3685. + lt_cv_deplibs_check_method=pass_all
  3686. + ;;
  3687. +
  3688. +sco3.2v5*)
  3689. + lt_cv_deplibs_check_method=pass_all
  3690. + ;;
  3691. +
  3692. +solaris*)
  3693. + lt_cv_deplibs_check_method=pass_all
  3694. + ;;
  3695. +
  3696. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3697. + case $host_vendor in
  3698. + motorola)
  3699. + 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]]'
  3700. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3701. + ;;
  3702. + ncr)
  3703. + lt_cv_deplibs_check_method=pass_all
  3704. + ;;
  3705. + sequent)
  3706. + lt_cv_file_magic_cmd='/bin/file'
  3707. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3708. + ;;
  3709. + sni)
  3710. + lt_cv_file_magic_cmd='/bin/file'
  3711. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3712. + lt_cv_file_magic_test_file=/lib/libc.so
  3713. + ;;
  3714. + siemens)
  3715. + lt_cv_deplibs_check_method=pass_all
  3716. ;;
  3717. + esac
  3718. + ;;
  3719. +
  3720. +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
  3721. + lt_cv_deplibs_check_method=pass_all
  3722. + ;;
  3723. +esac
  3724. +])
  3725. +file_magic_cmd=$lt_cv_file_magic_cmd
  3726. +deplibs_check_method=$lt_cv_deplibs_check_method
  3727. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3728. +])# AC_DEPLIBS_CHECK_METHOD
  3729. - netbsd*)
  3730. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3731. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  3732. - wlarc=
  3733. - else
  3734. - archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3735. - archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3736. +
  3737. +# AC_PROG_NM
  3738. +# ----------
  3739. +# find the pathname to a BSD-compatible name lister
  3740. +AC_DEFUN([AC_PROG_NM],
  3741. +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  3742. +[if test -n "$NM"; then
  3743. + # Let the user override the test.
  3744. + lt_cv_path_NM="$NM"
  3745. +else
  3746. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3747. + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  3748. + IFS="$lt_save_ifs"
  3749. + test -z "$ac_dir" && ac_dir=.
  3750. + tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  3751. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3752. + # Check to see if the nm accepts a BSD-compat flag.
  3753. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3754. + # nm: unknown option "B" ignored
  3755. + # Tru64's nm complains that /dev/null is an invalid object file
  3756. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3757. + */dev/null* | *'Invalid file or object type'*)
  3758. + lt_cv_path_NM="$tmp_nm -B"
  3759. + break
  3760. + ;;
  3761. + *)
  3762. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3763. + */dev/null*)
  3764. + lt_cv_path_NM="$tmp_nm -p"
  3765. + break
  3766. + ;;
  3767. + *)
  3768. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3769. + continue # so that we can try to find one that supports BSD flags
  3770. + ;;
  3771. + esac
  3772. + esac
  3773. fi
  3774. - ;;
  3775. + done
  3776. + IFS="$lt_save_ifs"
  3777. + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3778. +fi])
  3779. +NM="$lt_cv_path_NM"
  3780. +])# AC_PROG_NM
  3781. - solaris* | sysv5*)
  3782. - if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  3783. - ld_shlibs=no
  3784. - cat <<EOF 1>&2
  3785. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  3786. -*** create shared libraries on Solaris systems. Therefore, libtool
  3787. -*** is disabling shared libraries support. We urge you to upgrade GNU
  3788. -*** binutils to release 2.9.1 or newer. Another option is to modify
  3789. -*** your PATH or compiler configuration so that the native linker is
  3790. -*** used, and then restart.
  3791. +# AC_CHECK_LIBM
  3792. +# -------------
  3793. +# check for math library
  3794. +AC_DEFUN([AC_CHECK_LIBM],
  3795. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3796. +LIBM=
  3797. +case $host in
  3798. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  3799. + # These system don't have libm, or don't need it
  3800. + ;;
  3801. +*-ncr-sysv4.3*)
  3802. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3803. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3804. + ;;
  3805. +*)
  3806. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  3807. + ;;
  3808. +esac
  3809. +])# AC_CHECK_LIBM
  3810. -EOF
  3811. - elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  3812. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3813. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3814. - else
  3815. - ld_shlibs=no
  3816. - fi
  3817. - ;;
  3818. - sunos4*)
  3819. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  3820. - wlarc=
  3821. - hardcode_direct=yes
  3822. - hardcode_shlibpath_var=no
  3823. - ;;
  3824. +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  3825. +# -----------------------------------
  3826. +# sets LIBLTDL to the link flags for the libltdl convenience library and
  3827. +# LTDLINCL to the include flags for the libltdl header and adds
  3828. +# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
  3829. +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  3830. +# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
  3831. +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
  3832. +# '${top_srcdir}/' (note the single quotes!). If your package is not
  3833. +# flat and you're not using automake, define top_builddir and
  3834. +# top_srcdir appropriately in the Makefiles.
  3835. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  3836. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3837. + case $enable_ltdl_convenience in
  3838. + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  3839. + "") enable_ltdl_convenience=yes
  3840. + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  3841. + esac
  3842. + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  3843. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3844. + # For backwards non-gettext consistent compatibility...
  3845. + INCLTDL="$LTDLINCL"
  3846. +])# AC_LIBLTDL_CONVENIENCE
  3847. - *)
  3848. - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  3849. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3850. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3851. - else
  3852. - ld_shlibs=no
  3853. - fi
  3854. +
  3855. +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  3856. +# -----------------------------------
  3857. +# sets LIBLTDL to the link flags for the libltdl installable library and
  3858. +# LTDLINCL to the include flags for the libltdl header and adds
  3859. +# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
  3860. +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  3861. +# DIRECTORY is not provided and an installed libltdl is not found, it is
  3862. +# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
  3863. +# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  3864. +# quotes!). If your package is not flat and you're not using automake,
  3865. +# define top_builddir and top_srcdir appropriately in the Makefiles.
  3866. +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  3867. +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  3868. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3869. + AC_CHECK_LIB(ltdl, lt_dlinit,
  3870. + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  3871. + [if test x"$enable_ltdl_install" = xno; then
  3872. + AC_MSG_WARN([libltdl not installed, but installation disabled])
  3873. + else
  3874. + enable_ltdl_install=yes
  3875. + fi
  3876. + ])
  3877. + if test x"$enable_ltdl_install" = x"yes"; then
  3878. + ac_configure_args="$ac_configure_args --enable-ltdl-install"
  3879. + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  3880. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3881. + else
  3882. + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  3883. + LIBLTDL="-lltdl"
  3884. + LTDLINCL=
  3885. + fi
  3886. + # For backwards non-gettext consistent compatibility...
  3887. + INCLTDL="$LTDLINCL"
  3888. +])# AC_LIBLTDL_INSTALLABLE
  3889. +
  3890. +
  3891. +# AC_LIBTOOL_CXX
  3892. +# --------------
  3893. +# enable support for C++ libraries
  3894. +AC_DEFUN([AC_LIBTOOL_CXX],
  3895. +[AC_REQUIRE([_LT_AC_LANG_CXX])
  3896. +])# AC_LIBTOOL_CXX
  3897. +
  3898. +
  3899. +# _LT_AC_LANG_CXX
  3900. +# ---------------
  3901. +AC_DEFUN([_LT_AC_LANG_CXX],
  3902. +[AC_REQUIRE([AC_PROG_CXX])
  3903. +AC_REQUIRE([AC_PROG_CXXCPP])
  3904. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  3905. +])# _LT_AC_LANG_CXX
  3906. +
  3907. +
  3908. +# AC_LIBTOOL_F77
  3909. +# --------------
  3910. +# enable support for Fortran 77 libraries
  3911. +AC_DEFUN([AC_LIBTOOL_F77],
  3912. +[AC_REQUIRE([_LT_AC_LANG_F77])
  3913. +])# AC_LIBTOOL_F77
  3914. +
  3915. +
  3916. +# _LT_AC_LANG_F77
  3917. +# ---------------
  3918. +AC_DEFUN([_LT_AC_LANG_F77],
  3919. +[AC_REQUIRE([AC_PROG_F77])
  3920. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  3921. +])# _LT_AC_LANG_F77
  3922. +
  3923. +
  3924. +# AC_LIBTOOL_GCJ
  3925. +# --------------
  3926. +# enable support for GCJ libraries
  3927. +AC_DEFUN([AC_LIBTOOL_GCJ],
  3928. +[AC_REQUIRE([_LT_AC_LANG_GCJ])
  3929. +])# AC_LIBTOOL_GCJ
  3930. +
  3931. +
  3932. +# _LT_AC_LANG_GCJ
  3933. +# ---------------
  3934. +AC_DEFUN([_LT_AC_LANG_GCJ],
  3935. +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  3936. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  3937. + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  3938. + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  3939. + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  3940. + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  3941. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  3942. +])# _LT_AC_LANG_GCJ
  3943. +
  3944. +
  3945. +# AC_LIBTOOL_RC
  3946. +# --------------
  3947. +# enable support for Windows resource files
  3948. +AC_DEFUN([AC_LIBTOOL_RC],
  3949. +[AC_REQUIRE([LT_AC_PROG_RC])
  3950. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  3951. +])# AC_LIBTOOL_RC
  3952. +
  3953. +
  3954. +# AC_LIBTOOL_LANG_C_CONFIG
  3955. +# ------------------------
  3956. +# Ensure that the configuration vars for the C compiler are
  3957. +# suitably defined. Those variables are subsequently used by
  3958. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3959. +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  3960. +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  3961. +[lt_save_CC="$CC"
  3962. +AC_LANG_PUSH(C)
  3963. +
  3964. +# Source file extension for C test sources.
  3965. +ac_ext=c
  3966. +
  3967. +# Object file extension for compiled C test sources.
  3968. +objext=o
  3969. +_LT_AC_TAGVAR(objext, $1)=$objext
  3970. +
  3971. +# Code to be used in simple compile tests
  3972. +lt_simple_compile_test_code="int some_variable = 0;\n"
  3973. +
  3974. +# Code to be used in simple link tests
  3975. +lt_simple_link_test_code='int main(){return(0);}\n'
  3976. +
  3977. +_LT_AC_SYS_COMPILER
  3978. +
  3979. +#
  3980. +# Check for any special shared library compilation flags.
  3981. +#
  3982. +_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
  3983. +if test "$GCC" = no; then
  3984. + case $host_os in
  3985. + sco3.2v5*)
  3986. + _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
  3987. ;;
  3988. esac
  3989. +fi
  3990. +if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
  3991. + AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
  3992. + if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
  3993. + else
  3994. + AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
  3995. + _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
  3996. + fi
  3997. +fi
  3998. - if test "$ld_shlibs" = yes; then
  3999. - runpath_var=LD_RUN_PATH
  4000. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  4001. - export_dynamic_flag_spec='${wl}--export-dynamic'
  4002. - case $host_os in
  4003. - cygwin* | mingw* | pw32*)
  4004. - # dlltool doesn't understand --whole-archive et. al.
  4005. - whole_archive_flag_spec=
  4006. +
  4007. +#
  4008. +# Check to make sure the static flag actually works.
  4009. +#
  4010. +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
  4011. + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  4012. + $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
  4013. + [],
  4014. + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  4015. +
  4016. +
  4017. +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4018. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4019. +AC_LIBTOOL_PROG_CC_C_O($1)
  4020. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4021. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4022. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4023. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4024. +AC_LIBTOOL_SYS_LIB_STRIP
  4025. +AC_LIBTOOL_DLOPEN_SELF($1)
  4026. +
  4027. +# Report which librarie types wil actually be built
  4028. +AC_MSG_CHECKING([if libtool supports shared libraries])
  4029. +AC_MSG_RESULT([$can_build_shared])
  4030. +
  4031. +AC_MSG_CHECKING([whether to build shared libraries])
  4032. +test "$can_build_shared" = "no" && enable_shared=no
  4033. +
  4034. +# On AIX, shared libraries and static libraries use the same namespace, and
  4035. +# are all built from PIC.
  4036. +case "$host_os" in
  4037. +aix3*)
  4038. + test "$enable_shared" = yes && enable_static=no
  4039. + if test -n "$RANLIB"; then
  4040. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4041. + postinstall_cmds='$RANLIB $lib'
  4042. + fi
  4043. + ;;
  4044. +
  4045. +aix4* | aix5*)
  4046. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4047. + test "$enable_shared" = yes && enable_static=no
  4048. + fi
  4049. + ;;
  4050. + darwin* | rhapsody*)
  4051. + if test "$GCC" = yes; then
  4052. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4053. + case "$host_os" in
  4054. + rhapsody* | darwin1.[[012]])
  4055. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  4056. ;;
  4057. - *)
  4058. - # ancient GNU ld didn't support --whole-archive et. al.
  4059. - if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  4060. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4061. + *) # Darwin 1.3 on
  4062. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  4063. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4064. else
  4065. - whole_archive_flag_spec=
  4066. + case ${MACOSX_DEPLOYMENT_TARGET} in
  4067. + 10.[[012]])
  4068. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4069. + ;;
  4070. + 10.*)
  4071. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  4072. + ;;
  4073. + esac
  4074. fi
  4075. ;;
  4076. esac
  4077. + output_verbose_link_cmd='echo'
  4078. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  4079. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  4080. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  4081. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4082. + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4083. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4084. + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  4085. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4086. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  4087. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4088. + else
  4089. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4090. fi
  4091. + ;;
  4092. +esac
  4093. +AC_MSG_RESULT([$enable_shared])
  4094. +
  4095. +AC_MSG_CHECKING([whether to build static libraries])
  4096. +# Make sure either enable_shared or enable_static is yes.
  4097. +test "$enable_shared" = yes || enable_static=yes
  4098. +AC_MSG_RESULT([$enable_static])
  4099. +
  4100. +AC_LIBTOOL_CONFIG($1)
  4101. +
  4102. +AC_LANG_POP
  4103. +CC="$lt_save_CC"
  4104. +])# AC_LIBTOOL_LANG_C_CONFIG
  4105. +
  4106. +
  4107. +# AC_LIBTOOL_LANG_CXX_CONFIG
  4108. +# --------------------------
  4109. +# Ensure that the configuration vars for the C compiler are
  4110. +# suitably defined. Those variables are subsequently used by
  4111. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4112. +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  4113. +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  4114. +[AC_LANG_PUSH(C++)
  4115. +AC_REQUIRE([AC_PROG_CXX])
  4116. +AC_REQUIRE([AC_PROG_CXXCPP])
  4117. +
  4118. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4119. +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4120. +_LT_AC_TAGVAR(always_export_symbols, $1)=no
  4121. +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4122. +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4123. +_LT_AC_TAGVAR(hardcode_direct, $1)=no
  4124. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4125. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4126. +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4127. +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4128. +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4129. +_LT_AC_TAGVAR(module_cmds, $1)=
  4130. +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4131. +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4132. +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4133. +_LT_AC_TAGVAR(no_undefined_flag, $1)=
  4134. +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4135. +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4136. +
  4137. +# Dependencies to place before and after the object being linked:
  4138. +_LT_AC_TAGVAR(predep_objects, $1)=
  4139. +_LT_AC_TAGVAR(postdep_objects, $1)=
  4140. +_LT_AC_TAGVAR(predeps, $1)=
  4141. +_LT_AC_TAGVAR(postdeps, $1)=
  4142. +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  4143. +
  4144. +# Source file extension for C++ test sources.
  4145. +ac_ext=cc
  4146. +
  4147. +# Object file extension for compiled C++ test sources.
  4148. +objext=o
  4149. +_LT_AC_TAGVAR(objext, $1)=$objext
  4150. +
  4151. +# Code to be used in simple compile tests
  4152. +lt_simple_compile_test_code="int some_variable = 0;\n"
  4153. +
  4154. +# Code to be used in simple link tests
  4155. +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  4156. +
  4157. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4158. +_LT_AC_SYS_COMPILER
  4159. +
  4160. +# Allow CC to be a program name with arguments.
  4161. +lt_save_CC=$CC
  4162. +lt_save_LD=$LD
  4163. +lt_save_GCC=$GCC
  4164. +GCC=$GXX
  4165. +lt_save_with_gnu_ld=$with_gnu_ld
  4166. +lt_save_path_LD=$lt_cv_path_LD
  4167. +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  4168. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  4169. else
  4170. - # PORTME fill in a description of your system's linker (not GNU ld)
  4171. - case $host_os in
  4172. - aix3*)
  4173. - allow_undefined_flag=unsupported
  4174. - always_export_symbols=yes
  4175. - 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'
  4176. - # Note: this linker hardcodes the directories in LIBPATH if there
  4177. - # are no directories specified by -L.
  4178. - hardcode_minus_L=yes
  4179. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  4180. - # Neither direct hardcoding nor static linking is supported with a
  4181. - # broken collect2.
  4182. - hardcode_direct=unsupported
  4183. + unset lt_cv_prog_gnu_ld
  4184. +fi
  4185. +if test -n "${lt_cv_path_LDCXX+set}"; then
  4186. + lt_cv_path_LD=$lt_cv_path_LDCXX
  4187. +else
  4188. + unset lt_cv_path_LD
  4189. +fi
  4190. +test -z "${LDCXX+set}" || LD=$LDCXX
  4191. +CC=${CXX-"c++"}
  4192. +compiler=$CC
  4193. +_LT_AC_TAGVAR(compiler, $1)=$CC
  4194. +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  4195. +
  4196. +# We don't want -fno-exception wen compiling C++ code, so set the
  4197. +# no_builtin_flag separately
  4198. +if test "$GXX" = yes; then
  4199. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4200. +else
  4201. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4202. +fi
  4203. +
  4204. +if test "$GXX" = yes; then
  4205. + # Set up default GNU C++ configuration
  4206. +
  4207. + AC_PROG_LD
  4208. +
  4209. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  4210. + # archiving commands below assume that GNU ld is being used.
  4211. + if test "$with_gnu_ld" = yes; then
  4212. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4213. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4214. +
  4215. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4216. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4217. +
  4218. + # If archive_cmds runs LD, not CC, wlarc should be empty
  4219. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  4220. + # investigate it a little bit more. (MM)
  4221. + wlarc='${wl}'
  4222. +
  4223. + # ancient GNU ld didn't support --whole-archive et. al.
  4224. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  4225. + grep 'no-whole-archive' > /dev/null; then
  4226. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4227. + else
  4228. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4229. fi
  4230. - ;;
  4231. + else
  4232. + with_gnu_ld=no
  4233. + wlarc=
  4234. +
  4235. + # A generic and very simple default shared library creation
  4236. + # command for GNU C++ for the case where it uses the native
  4237. + # linker, instead of GNU ld. If possible, this setting should
  4238. + # overridden to take advantage of the native linker features on
  4239. + # the platform it is being used on.
  4240. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  4241. + fi
  4242. +
  4243. + # Commands to make compiler produce verbose output that lists
  4244. + # what "hidden" libraries, object files and flags are used when
  4245. + # linking a shared library.
  4246. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4247. +
  4248. +else
  4249. + GXX=no
  4250. + with_gnu_ld=no
  4251. + wlarc=
  4252. +fi
  4253. +# PORTME: fill in a description of your system's C++ link characteristics
  4254. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4255. +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  4256. +case $host_os in
  4257. + aix3*)
  4258. + # FIXME: insert proper C++ library support
  4259. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4260. + ;;
  4261. aix4* | aix5*)
  4262. if test "$host_cpu" = ia64; then
  4263. # On IA64, the linker does run time linking by default, so we don't
  4264. @@ -1586,7 +3728,7 @@
  4265. *-brtl*)
  4266. aix_use_runtimelinking=yes
  4267. break
  4268. - ;;
  4269. + ;;
  4270. esac
  4271. done
  4272. esac
  4273. @@ -1601,34 +3743,39 @@
  4274. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4275. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4276. - hardcode_direct=yes
  4277. - archive_cmds=''
  4278. - hardcode_libdir_separator=':'
  4279. - if test "$GCC" = yes; then
  4280. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4281. + _LT_AC_TAGVAR(archive_cmds, $1)=''
  4282. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4283. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  4284. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4285. +
  4286. + if test "$GXX" = yes; then
  4287. + case $host_os in aix4.[012]|aix4.[012].*)
  4288. + # We only want to do this on AIX 4.2 and lower, the check
  4289. + # below for broken collect2 doesn't work under 4.3+
  4290. collect2name=`${CC} -print-prog-name=collect2`
  4291. if test -f "$collect2name" && \
  4292. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  4293. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  4294. then
  4295. # We have reworked collect2
  4296. - hardcode_direct=yes
  4297. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4298. else
  4299. # We have old collect2
  4300. - hardcode_direct=unsupported
  4301. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  4302. # It fails to find uninstalled libraries when the uninstalled
  4303. # path is not listed in the libpath. Setting hardcode_minus_L
  4304. # to unsupported forces relinking
  4305. - hardcode_minus_L=yes
  4306. - hardcode_libdir_flag_spec='-L$libdir'
  4307. - hardcode_libdir_separator=
  4308. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4309. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4310. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4311. fi
  4312. esac
  4313. -
  4314. shared_flag='-shared'
  4315. else
  4316. # not using gcc
  4317. if test "$host_cpu" = ia64; then
  4318. - shared_flag='${wl}-G'
  4319. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4320. + # chokes on -Wl,-G. The following line is correct:
  4321. + shared_flag='-G'
  4322. else
  4323. if test "$aix_use_runtimelinking" = yes; then
  4324. shared_flag='${wl}-G'
  4325. @@ -1638,833 +3785,867 @@
  4326. fi
  4327. fi
  4328. - # It seems that -bexpall can do strange things, so it is better to
  4329. - # generate a list of symbols to export.
  4330. - always_export_symbols=yes
  4331. + # It seems that -bexpall does not export symbols beginning with
  4332. + # underscore (_), so it is better to generate a list of symbols to export.
  4333. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  4334. if test "$aix_use_runtimelinking" = yes; then
  4335. # Warning - without using the other runtime loading flags (-brtl),
  4336. # -berok will link without error, but may produce a broken library.
  4337. - allow_undefined_flag='-berok'
  4338. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  4339. - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  4340. - else
  4341. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  4342. + # Determine the default libpath from the value encoded in an empty executable.
  4343. + _LT_AC_SYS_LIBPATH_AIX
  4344. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4345. +
  4346. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  4347. + else
  4348. if test "$host_cpu" = ia64; then
  4349. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  4350. - allow_undefined_flag="-z nodefs"
  4351. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  4352. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4353. + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4354. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  4355. else
  4356. - hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  4357. + # Determine the default libpath from the value encoded in an empty executable.
  4358. + _LT_AC_SYS_LIBPATH_AIX
  4359. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4360. # Warning - without using the other run time loading flags,
  4361. # -berok will link without error, but may produce a broken library.
  4362. - allow_undefined_flag='${wl}-berok'
  4363. - # This is a bit strange, but is similar to how AIX traditionally builds
  4364. - # it's shared libraries.
  4365. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
  4366. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4367. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4368. + # -bexpall does not export symbols beginning with underscore (_)
  4369. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  4370. + # Exported symbols can be pulled into shared objects from archives
  4371. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  4372. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  4373. + # This is similar to how AIX traditionally builds it's shared libraries.
  4374. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  4375. fi
  4376. fi
  4377. ;;
  4378. -
  4379. - amigaos*)
  4380. - 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)'
  4381. - hardcode_libdir_flag_spec='-L$libdir'
  4382. - hardcode_minus_L=yes
  4383. - # see comment about different semantics on the GNU ld section
  4384. - ld_shlibs=no
  4385. + chorus*)
  4386. + case $cc_basename in
  4387. + *)
  4388. + # FIXME: insert proper C++ library support
  4389. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4390. + ;;
  4391. + esac
  4392. ;;
  4393. cygwin* | mingw* | pw32*)
  4394. - # When not using gcc, we currently assume that we are using
  4395. - # Microsoft Visual C++.
  4396. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  4397. - # no search path for DLLs.
  4398. - hardcode_libdir_flag_spec=' '
  4399. - allow_undefined_flag=unsupported
  4400. - # Tell ltmain to make .lib files, not .a files.
  4401. - libext=lib
  4402. - # FIXME: Setting linknames here is a bad hack.
  4403. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  4404. - # The linker will automatically build a .lib file if we build a DLL.
  4405. - old_archive_from_new_cmds='true'
  4406. - # FIXME: Should let the user specify the lib program.
  4407. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  4408. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  4409. - ;;
  4410. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4411. + # as there is no search path for DLLs.
  4412. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4413. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4414. + _LT_AC_TAGVAR(always_export_symbols, $1)=no
  4415. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4416. +
  4417. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  4418. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  4419. + # If the export-symbols file already is a .def file (1st line
  4420. + # is EXPORTS), use it as is; otherwise, prepend...
  4421. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4422. + cp $export_symbols $output_objdir/$soname.def;
  4423. + else
  4424. + echo EXPORTS > $output_objdir/$soname.def;
  4425. + cat $export_symbols >> $output_objdir/$soname.def;
  4426. + fi~
  4427. + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  4428. + else
  4429. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4430. + fi
  4431. + ;;
  4432. darwin* | rhapsody*)
  4433. + if test "$GXX" = yes; then
  4434. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4435. case "$host_os" in
  4436. rhapsody* | darwin1.[[012]])
  4437. - allow_undefined_flag='-undefined suppress'
  4438. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  4439. ;;
  4440. *) # Darwin 1.3 on
  4441. - allow_undefined_flag='-flat_namespace -undefined suppress'
  4442. - ;;
  4443. - esac
  4444. - # FIXME: Relying on posixy $() will cause problems for
  4445. - # cross-compilation, but unfortunately the echo tests do not
  4446. - # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  4447. - # `"' quotes if we put them in here... so don't!
  4448. - archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
  4449. - # We need to add '_' to the symbols in $export_symbols first
  4450. - #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  4451. - hardcode_direct=yes
  4452. - hardcode_shlibpath_var=no
  4453. - whole_archive_flag_spec='-all_load $convenience'
  4454. - ;;
  4455. -
  4456. - freebsd1*)
  4457. - ld_shlibs=no
  4458. - ;;
  4459. -
  4460. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4461. - # support. Future versions do this automatically, but an explicit c++rt0.o
  4462. - # does not break anything, and helps significantly (at the cost of a little
  4463. - # extra space).
  4464. - freebsd2.2*)
  4465. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4466. - hardcode_libdir_flag_spec='-R$libdir'
  4467. - hardcode_direct=yes
  4468. - hardcode_shlibpath_var=no
  4469. - ;;
  4470. -
  4471. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4472. - freebsd2*)
  4473. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4474. - hardcode_direct=yes
  4475. - hardcode_minus_L=yes
  4476. - hardcode_shlibpath_var=no
  4477. - ;;
  4478. -
  4479. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4480. - freebsd*)
  4481. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  4482. - hardcode_libdir_flag_spec='-R$libdir'
  4483. - hardcode_direct=yes
  4484. - hardcode_shlibpath_var=no
  4485. - ;;
  4486. -
  4487. - hpux9* | hpux10* | hpux11*)
  4488. - case $host_os in
  4489. - hpux9*) 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' ;;
  4490. - *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  4491. - esac
  4492. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  4493. - hardcode_libdir_separator=:
  4494. - hardcode_direct=yes
  4495. - hardcode_minus_L=yes # Not in the search PATH, but as the default
  4496. - # location of the library.
  4497. - export_dynamic_flag_spec='${wl}-E'
  4498. - ;;
  4499. -
  4500. - irix5* | irix6* | nonstopux*)
  4501. - if test "$GCC" = yes; then
  4502. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4503. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4504. - else
  4505. - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4506. - hardcode_libdir_flag_spec='-rpath $libdir'
  4507. - fi
  4508. - hardcode_libdir_separator=:
  4509. - link_all_deplibs=yes
  4510. - ;;
  4511. -
  4512. - netbsd*)
  4513. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4514. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4515. - else
  4516. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4517. - fi
  4518. - hardcode_libdir_flag_spec='-R$libdir'
  4519. - hardcode_direct=yes
  4520. - hardcode_shlibpath_var=no
  4521. - ;;
  4522. -
  4523. - newsos6)
  4524. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4525. - hardcode_direct=yes
  4526. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4527. - hardcode_libdir_separator=:
  4528. - hardcode_shlibpath_var=no
  4529. - ;;
  4530. -
  4531. - openbsd*)
  4532. - hardcode_direct=yes
  4533. - hardcode_shlibpath_var=no
  4534. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4535. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4536. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  4537. - export_dynamic_flag_spec='${wl}-E'
  4538. - else
  4539. - case "$host_os" in
  4540. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4541. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4542. - hardcode_libdir_flag_spec='-R$libdir'
  4543. - ;;
  4544. - *)
  4545. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4546. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  4547. - ;;
  4548. - esac
  4549. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  4550. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4551. + else
  4552. + case ${MACOSX_DEPLOYMENT_TARGET} in
  4553. + 10.[[012]])
  4554. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4555. + ;;
  4556. + 10.*)
  4557. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  4558. + ;;
  4559. + esac
  4560. + fi
  4561. + ;;
  4562. + esac
  4563. + lt_int_apple_cc_single_mod=no
  4564. + output_verbose_link_cmd='echo'
  4565. + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  4566. + lt_int_apple_cc_single_mod=yes
  4567. fi
  4568. - ;;
  4569. -
  4570. - os2*)
  4571. - hardcode_libdir_flag_spec='-L$libdir'
  4572. - hardcode_minus_L=yes
  4573. - allow_undefined_flag=unsupported
  4574. - 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'
  4575. - old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4576. - ;;
  4577. -
  4578. - osf3*)
  4579. - if test "$GCC" = yes; then
  4580. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  4581. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4582. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  4583. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  4584. else
  4585. - allow_undefined_flag=' -expect_unresolved \*'
  4586. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4587. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  4588. fi
  4589. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4590. - hardcode_libdir_separator=:
  4591. - ;;
  4592. + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  4593. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  4594. - if test "$GCC" = yes; then
  4595. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  4596. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4597. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4598. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  4599. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  4600. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4601. else
  4602. - allow_undefined_flag=' -expect_unresolved \*'
  4603. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4604. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  4605. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  4606. -
  4607. - #Both c and cxx compiler support -rpath directly
  4608. - hardcode_libdir_flag_spec='-rpath $libdir'
  4609. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4610. fi
  4611. - hardcode_libdir_separator=:
  4612. - ;;
  4613. -
  4614. - sco3.2v5*)
  4615. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4616. - hardcode_shlibpath_var=no
  4617. - runpath_var=LD_RUN_PATH
  4618. - hardcode_runpath_var=yes
  4619. - export_dynamic_flag_spec='${wl}-Bexport'
  4620. + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4621. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4622. + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  4623. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4624. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  4625. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4626. + else
  4627. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4628. + fi
  4629. ;;
  4630. - solaris*)
  4631. - # gcc --version < 3.0 without binutils cannot create self contained
  4632. - # shared libraries reliably, requiring libgcc.a to resolve some of
  4633. - # the object symbols generated in some cases. Libraries that use
  4634. - # assert need libgcc.a to resolve __eprintf, for example. Linking
  4635. - # a copy of libgcc.a into every shared library to guarantee resolving
  4636. - # such symbols causes other problems: According to Tim Van Holder
  4637. - # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  4638. - # (to the application) exception stack for one thing.
  4639. - no_undefined_flag=' -z defs'
  4640. - if test "$GCC" = yes; then
  4641. - case `$CC --version 2>/dev/null` in
  4642. - [[12]].*)
  4643. - cat <<EOF 1>&2
  4644. -
  4645. -*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  4646. -*** create self contained shared libraries on Solaris systems, without
  4647. -*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  4648. -*** -no-undefined support, which will at least allow you to build shared
  4649. -*** libraries. However, you may find that when you link such libraries
  4650. -*** into an application without using GCC, you have to manually add
  4651. -*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  4652. -*** upgrade to a newer version of GCC. Another option is to rebuild your
  4653. -*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  4654. -
  4655. -EOF
  4656. - no_undefined_flag=
  4657. + dgux*)
  4658. + case $cc_basename in
  4659. + ec++)
  4660. + # FIXME: insert proper C++ library support
  4661. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4662. + ;;
  4663. + ghcx)
  4664. + # Green Hills C++ Compiler
  4665. + # FIXME: insert proper C++ library support
  4666. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4667. + ;;
  4668. + *)
  4669. + # FIXME: insert proper C++ library support
  4670. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4671. ;;
  4672. - esac
  4673. - fi
  4674. - # $CC -shared without GNU ld will not create a library from C++
  4675. - # object files and a static libstdc++, better avoid it by now
  4676. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4677. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4678. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  4679. - hardcode_libdir_flag_spec='-R$libdir'
  4680. - hardcode_shlibpath_var=no
  4681. - case $host_os in
  4682. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4683. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  4684. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  4685. esac
  4686. - link_all_deplibs=yes
  4687. ;;
  4688. -
  4689. - sunos4*)
  4690. - if test "x$host_vendor" = xsequent; then
  4691. - # Use $CC to link under sequent, because it throws in some extra .o
  4692. - # files that make .init and .fini sections work.
  4693. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4694. - else
  4695. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  4696. - fi
  4697. - hardcode_libdir_flag_spec='-L$libdir'
  4698. - hardcode_direct=yes
  4699. - hardcode_minus_L=yes
  4700. - hardcode_shlibpath_var=no
  4701. + freebsd[12]*)
  4702. + # C++ shared libraries reported to be fairly broken before switch to ELF
  4703. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4704. + ;;
  4705. + freebsd-elf*)
  4706. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4707. + ;;
  4708. + freebsd* | kfreebsd*-gnu)
  4709. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  4710. + # conventions
  4711. + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  4712. + ;;
  4713. + gnu*)
  4714. + ;;
  4715. + hpux9*)
  4716. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4717. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4718. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4719. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4720. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4721. + # but as the default
  4722. + # location of the library.
  4723. +
  4724. + case $cc_basename in
  4725. + CC)
  4726. + # FIXME: insert proper C++ library support
  4727. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4728. + ;;
  4729. + aCC)
  4730. + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4731. + # Commands to make compiler produce verbose output that lists
  4732. + # what "hidden" libraries, object files and flags are used when
  4733. + # linking a shared library.
  4734. + #
  4735. + # There doesn't appear to be a way to prevent this compiler from
  4736. + # explicitly linking system object files so we need to strip them
  4737. + # from the output so that they don't get included in the library
  4738. + # dependencies.
  4739. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4740. + ;;
  4741. + *)
  4742. + if test "$GXX" = yes; then
  4743. + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4744. + else
  4745. + # FIXME: insert proper C++ library support
  4746. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4747. + fi
  4748. + ;;
  4749. + esac
  4750. ;;
  4751. -
  4752. - sysv4)
  4753. - case $host_vendor in
  4754. - sni)
  4755. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4756. - hardcode_direct=yes # is this really true???
  4757. + hpux10*|hpux11*)
  4758. + if test $with_gnu_ld = no; then
  4759. + case "$host_cpu" in
  4760. + hppa*64*)
  4761. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4762. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  4763. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4764. ;;
  4765. - siemens)
  4766. - ## LD is ld it makes a PLAMLIB
  4767. - ## CC just makes a GrossModule.
  4768. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  4769. - reload_cmds='$CC -r -o $output$reload_objs'
  4770. - hardcode_direct=no
  4771. + ia64*)
  4772. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4773. ;;
  4774. - motorola)
  4775. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4776. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  4777. + *)
  4778. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4779. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4780. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4781. ;;
  4782. + esac
  4783. + fi
  4784. + case "$host_cpu" in
  4785. + hppa*64*)
  4786. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4787. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4788. + ;;
  4789. + ia64*)
  4790. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4791. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4792. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4793. + # but as the default
  4794. + # location of the library.
  4795. + ;;
  4796. + *)
  4797. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4798. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4799. + # but as the default
  4800. + # location of the library.
  4801. + ;;
  4802. esac
  4803. - runpath_var='LD_RUN_PATH'
  4804. - hardcode_shlibpath_var=no
  4805. - ;;
  4806. - sysv4.3*)
  4807. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4808. - hardcode_shlibpath_var=no
  4809. - export_dynamic_flag_spec='-Bexport'
  4810. - ;;
  4811. -
  4812. - sysv5*)
  4813. - no_undefined_flag=' -z text'
  4814. - # $CC -shared without GNU ld will not create a library from C++
  4815. - # object files and a static libstdc++, better avoid it by now
  4816. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4817. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4818. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  4819. - hardcode_libdir_flag_spec=
  4820. - hardcode_shlibpath_var=no
  4821. - runpath_var='LD_RUN_PATH'
  4822. - ;;
  4823. -
  4824. - uts4*)
  4825. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4826. - hardcode_libdir_flag_spec='-L$libdir'
  4827. - hardcode_shlibpath_var=no
  4828. + case $cc_basename in
  4829. + CC)
  4830. + # FIXME: insert proper C++ library support
  4831. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4832. + ;;
  4833. + aCC)
  4834. + case "$host_cpu" in
  4835. + hppa*64*|ia64*)
  4836. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  4837. + ;;
  4838. + *)
  4839. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4840. + ;;
  4841. + esac
  4842. + # Commands to make compiler produce verbose output that lists
  4843. + # what "hidden" libraries, object files and flags are used when
  4844. + # linking a shared library.
  4845. + #
  4846. + # There doesn't appear to be a way to prevent this compiler from
  4847. + # explicitly linking system object files so we need to strip them
  4848. + # from the output so that they don't get included in the library
  4849. + # dependencies.
  4850. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4851. + ;;
  4852. + *)
  4853. + if test "$GXX" = yes; then
  4854. + if test $with_gnu_ld = no; then
  4855. + case "$host_cpu" in
  4856. + ia64*|hppa*64*)
  4857. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  4858. + ;;
  4859. + *)
  4860. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4861. + ;;
  4862. + esac
  4863. + fi
  4864. + else
  4865. + # FIXME: insert proper C++ library support
  4866. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4867. + fi
  4868. + ;;
  4869. + esac
  4870. ;;
  4871. -
  4872. - dgux*)
  4873. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4874. - hardcode_libdir_flag_spec='-L$libdir'
  4875. - hardcode_shlibpath_var=no
  4876. + irix5* | irix6*)
  4877. + case $cc_basename in
  4878. + CC)
  4879. + # SGI C++
  4880. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  4881. +
  4882. + # Archives containing C++ object files must be created using
  4883. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  4884. + # necessary to make sure instantiated templates are included
  4885. + # in the archive.
  4886. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  4887. + ;;
  4888. + *)
  4889. + if test "$GXX" = yes; then
  4890. + if test "$with_gnu_ld" = no; then
  4891. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  4892. + else
  4893. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  4894. + fi
  4895. + fi
  4896. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4897. + ;;
  4898. + esac
  4899. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4900. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4901. ;;
  4902. -
  4903. - sysv4*MP*)
  4904. - if test -d /usr/nec; then
  4905. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4906. - hardcode_shlibpath_var=no
  4907. - runpath_var=LD_RUN_PATH
  4908. - hardcode_runpath_var=yes
  4909. - ld_shlibs=yes
  4910. - fi
  4911. + linux*)
  4912. + case $cc_basename in
  4913. + KCC)
  4914. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  4915. +
  4916. + # KCC will only create a shared library if the output file
  4917. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4918. + # to its proper name (with version) after linking.
  4919. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  4920. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  4921. + # Commands to make compiler produce verbose output that lists
  4922. + # what "hidden" libraries, object files and flags are used when
  4923. + # linking a shared library.
  4924. + #
  4925. + # There doesn't appear to be a way to prevent this compiler from
  4926. + # explicitly linking system object files so we need to strip them
  4927. + # from the output so that they don't get included in the library
  4928. + # dependencies.
  4929. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4930. +
  4931. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  4932. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4933. +
  4934. + # Archives containing C++ object files must be created using
  4935. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4936. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4937. + ;;
  4938. + icpc)
  4939. + # Intel C++
  4940. + with_gnu_ld=yes
  4941. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4942. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4943. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4944. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4945. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4946. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4947. + ;;
  4948. + cxx)
  4949. + # Compaq C++
  4950. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4951. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  4952. +
  4953. + runpath_var=LD_RUN_PATH
  4954. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4955. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4956. +
  4957. + # Commands to make compiler produce verbose output that lists
  4958. + # what "hidden" libraries, object files and flags are used when
  4959. + # linking a shared library.
  4960. + #
  4961. + # There doesn't appear to be a way to prevent this compiler from
  4962. + # explicitly linking system object files so we need to strip them
  4963. + # from the output so that they don't get included in the library
  4964. + # dependencies.
  4965. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4966. + ;;
  4967. + esac
  4968. ;;
  4969. -
  4970. - sysv4.2uw2*)
  4971. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  4972. - hardcode_direct=yes
  4973. - hardcode_minus_L=no
  4974. - hardcode_shlibpath_var=no
  4975. - hardcode_runpath_var=yes
  4976. - runpath_var=LD_RUN_PATH
  4977. + lynxos*)
  4978. + # FIXME: insert proper C++ library support
  4979. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4980. + ;;
  4981. + m88k*)
  4982. + # FIXME: insert proper C++ library support
  4983. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4984. + ;;
  4985. + mvs*)
  4986. + case $cc_basename in
  4987. + cxx)
  4988. + # FIXME: insert proper C++ library support
  4989. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4990. + ;;
  4991. + *)
  4992. + # FIXME: insert proper C++ library support
  4993. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4994. + ;;
  4995. + esac
  4996. ;;
  4997. -
  4998. - sysv5uw7* | unixware7*)
  4999. - no_undefined_flag='${wl}-z ${wl}text'
  5000. - if test "$GCC" = yes; then
  5001. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5002. - else
  5003. - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5004. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  5005. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5006. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5007. + wlarc=
  5008. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5009. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5010. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5011. fi
  5012. - runpath_var='LD_RUN_PATH'
  5013. - hardcode_shlibpath_var=no
  5014. - ;;
  5015. -
  5016. - *)
  5017. - ld_shlibs=no
  5018. + # Workaround some broken pre-1.5 toolchains
  5019. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5020. ;;
  5021. - esac
  5022. -fi
  5023. -AC_MSG_RESULT([$ld_shlibs])
  5024. -test "$ld_shlibs" = no && can_build_shared=no
  5025. -
  5026. -# Check hardcoding attributes.
  5027. -AC_MSG_CHECKING([how to hardcode library paths into programs])
  5028. -hardcode_action=
  5029. -if test -n "$hardcode_libdir_flag_spec" || \
  5030. - test -n "$runpath_var"; then
  5031. -
  5032. - # We can hardcode non-existant directories.
  5033. - if test "$hardcode_direct" != no &&
  5034. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  5035. - # have to relink, otherwise we might link with an installed library
  5036. - # when we should be linking with a yet-to-be-installed one
  5037. - ## test "$hardcode_shlibpath_var" != no &&
  5038. - test "$hardcode_minus_L" != no; then
  5039. - # Linking always hardcodes the temporary library directory.
  5040. - hardcode_action=relink
  5041. - else
  5042. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  5043. - hardcode_action=immediate
  5044. - fi
  5045. -else
  5046. - # We cannot hardcode anything, or else we can only hardcode existing
  5047. - # directories.
  5048. - hardcode_action=unsupported
  5049. -fi
  5050. -AC_MSG_RESULT([$hardcode_action])
  5051. -
  5052. -striplib=
  5053. -old_striplib=
  5054. -AC_MSG_CHECKING([whether stripping libraries is possible])
  5055. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  5056. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  5057. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  5058. - AC_MSG_RESULT([yes])
  5059. -else
  5060. - AC_MSG_RESULT([no])
  5061. -fi
  5062. -
  5063. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5064. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5065. -
  5066. -# PORTME Fill in your ld.so characteristics
  5067. -AC_MSG_CHECKING([dynamic linker characteristics])
  5068. -library_names_spec=
  5069. -libname_spec='lib$name'
  5070. -soname_spec=
  5071. -postinstall_cmds=
  5072. -postuninstall_cmds=
  5073. -finish_cmds=
  5074. -finish_eval=
  5075. -shlibpath_var=
  5076. -shlibpath_overrides_runpath=unknown
  5077. -version_type=none
  5078. -dynamic_linker="$host_os ld.so"
  5079. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  5080. -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  5081. -
  5082. -case $host_os in
  5083. -aix3*)
  5084. - version_type=linux
  5085. - library_names_spec='${libname}${release}.so$versuffix $libname.a'
  5086. - shlibpath_var=LIBPATH
  5087. + osf3*)
  5088. + case $cc_basename in
  5089. + KCC)
  5090. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  5091. +
  5092. + # KCC will only create a shared library if the output file
  5093. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5094. + # to its proper name (with version) after linking.
  5095. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  5096. +
  5097. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5098. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5099. +
  5100. + # Archives containing C++ object files must be created using
  5101. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5102. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5103. - # AIX has no versioning support, so we append a major version to the name.
  5104. - soname_spec='${libname}${release}.so$major'
  5105. - ;;
  5106. + ;;
  5107. + RCC)
  5108. + # Rational C++ 2.4.1
  5109. + # FIXME: insert proper C++ library support
  5110. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5111. + ;;
  5112. + cxx)
  5113. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5114. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  5115. +
  5116. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5117. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5118. +
  5119. + # Commands to make compiler produce verbose output that lists
  5120. + # what "hidden" libraries, object files and flags are used when
  5121. + # linking a shared library.
  5122. + #
  5123. + # There doesn't appear to be a way to prevent this compiler from
  5124. + # explicitly linking system object files so we need to strip them
  5125. + # from the output so that they don't get included in the library
  5126. + # dependencies.
  5127. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5128. + ;;
  5129. + *)
  5130. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5131. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5132. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  5133. +
  5134. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5135. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5136. +
  5137. + # Commands to make compiler produce verbose output that lists
  5138. + # what "hidden" libraries, object files and flags are used when
  5139. + # linking a shared library.
  5140. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5141. -aix4* | aix5*)
  5142. - version_type=linux
  5143. - need_lib_prefix=no
  5144. - need_version=no
  5145. - hardcode_into_libs=yes
  5146. - if test "$host_cpu" = ia64; then
  5147. - # AIX 5 supports IA64
  5148. - library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  5149. - shlibpath_var=LD_LIBRARY_PATH
  5150. - else
  5151. - # With GCC up to 2.95.x, collect2 would create an import file
  5152. - # for dependence libraries. The import file would start with
  5153. - # the line `#! .'. This would cause the generated library to
  5154. - # depend on `.', always an invalid library. This was fixed in
  5155. - # development snapshots of GCC prior to 3.0.
  5156. - case $host_os in
  5157. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  5158. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  5159. - echo ' yes '
  5160. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  5161. - :
  5162. else
  5163. - can_build_shared=no
  5164. + # FIXME: insert proper C++ library support
  5165. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5166. fi
  5167. ;;
  5168. esac
  5169. - # AIX (on Power*) has no versioning support, so currently we can
  5170. - # not hardcode correct soname into executable. Probably we can
  5171. - # add versioning support to collect2, so additional links can
  5172. - # be useful in future.
  5173. - if test "$aix_use_runtimelinking" = yes; then
  5174. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  5175. - # instead of lib<name>.a to let people know that these are not
  5176. - # typical AIX shared libraries.
  5177. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5178. - else
  5179. - # We preserve .a as extension for shared libraries through AIX4.2
  5180. - # and later when we are not doing run time linking.
  5181. - library_names_spec='${libname}${release}.a $libname.a'
  5182. - soname_spec='${libname}${release}.so$major'
  5183. - fi
  5184. - shlibpath_var=LIBPATH
  5185. - fi
  5186. - hardcode_into_libs=yes
  5187. - ;;
  5188. -
  5189. -amigaos*)
  5190. - library_names_spec='$libname.ixlibrary $libname.a'
  5191. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  5192. - 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'
  5193. - ;;
  5194. -
  5195. -beos*)
  5196. - library_names_spec='${libname}.so'
  5197. - dynamic_linker="$host_os ld.so"
  5198. - shlibpath_var=LIBRARY_PATH
  5199. - ;;
  5200. -
  5201. -bsdi4*)
  5202. - version_type=linux
  5203. - need_version=no
  5204. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5205. - soname_spec='${libname}${release}.so$major'
  5206. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  5207. - shlibpath_var=LD_LIBRARY_PATH
  5208. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  5209. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  5210. - export_dynamic_flag_spec=-rdynamic
  5211. - # the default ld.so.conf also contains /usr/contrib/lib and
  5212. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  5213. - # libtool to hard-code these into programs
  5214. - ;;
  5215. -
  5216. -cygwin* | mingw* | pw32*)
  5217. - version_type=windows
  5218. - need_version=no
  5219. - need_lib_prefix=no
  5220. - case $GCC,$host_os in
  5221. - yes,cygwin*)
  5222. - library_names_spec='$libname.dll.a'
  5223. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
  5224. - postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  5225. - dldir=$destdir/`dirname \$dlpath`~
  5226. - test -d \$dldir || mkdir -p \$dldir~
  5227. - $install_prog .libs/$dlname \$dldir/$dlname'
  5228. - postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  5229. - dlpath=$dir/\$dldll~
  5230. - $rm \$dlpath'
  5231. - ;;
  5232. - yes,mingw*)
  5233. - library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
  5234. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
  5235. - ;;
  5236. - yes,pw32*)
  5237. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  5238. ;;
  5239. - *)
  5240. - library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
  5241. - ;;
  5242. - esac
  5243. - dynamic_linker='Win32 ld.exe'
  5244. - # FIXME: first we should search . and the directory the executable is in
  5245. - shlibpath_var=PATH
  5246. - ;;
  5247. -
  5248. -darwin* | rhapsody*)
  5249. - dynamic_linker="$host_os dyld"
  5250. - version_type=darwin
  5251. - need_lib_prefix=no
  5252. - need_version=no
  5253. - # FIXME: Relying on posixy $() will cause problems for
  5254. - # cross-compilation, but unfortunately the echo tests do not
  5255. - # yet detect zsh echo's removal of \ escapes.
  5256. - library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  5257. - soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  5258. - shlibpath_overrides_runpath=yes
  5259. - shlibpath_var=DYLD_LIBRARY_PATH
  5260. - ;;
  5261. -
  5262. -freebsd1*)
  5263. - dynamic_linker=no
  5264. - ;;
  5265. -
  5266. -freebsd*-gnu*)
  5267. - version_type=linux
  5268. - need_lib_prefix=no
  5269. - need_version=no
  5270. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5271. - soname_spec='${libname}${release}.so$major'
  5272. - shlibpath_var=LD_LIBRARY_PATH
  5273. - shlibpath_overrides_runpath=no
  5274. - hardcode_into_libs=yes
  5275. - dynamic_linker='GNU/FreeBSD ld.so'
  5276. - ;;
  5277. + osf4* | osf5*)
  5278. + case $cc_basename in
  5279. + KCC)
  5280. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  5281. +
  5282. + # KCC will only create a shared library if the output file
  5283. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5284. + # to its proper name (with version) after linking.
  5285. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  5286. +
  5287. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5288. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5289. +
  5290. + # Archives containing C++ object files must be created using
  5291. + # the KAI C++ compiler.
  5292. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  5293. + ;;
  5294. + RCC)
  5295. + # Rational C++ 2.4.1
  5296. + # FIXME: insert proper C++ library support
  5297. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5298. + ;;
  5299. + cxx)
  5300. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5301. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  5302. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  5303. + echo "-hidden">> $lib.exp~
  5304. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
  5305. + $rm $lib.exp'
  5306. +
  5307. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5308. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5309. +
  5310. + # Commands to make compiler produce verbose output that lists
  5311. + # what "hidden" libraries, object files and flags are used when
  5312. + # linking a shared library.
  5313. + #
  5314. + # There doesn't appear to be a way to prevent this compiler from
  5315. + # explicitly linking system object files so we need to strip them
  5316. + # from the output so that they don't get included in the library
  5317. + # dependencies.
  5318. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5319. + ;;
  5320. + *)
  5321. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5322. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5323. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  5324. +
  5325. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5326. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5327. +
  5328. + # Commands to make compiler produce verbose output that lists
  5329. + # what "hidden" libraries, object files and flags are used when
  5330. + # linking a shared library.
  5331. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5332. -freebsd*)
  5333. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  5334. - version_type=freebsd-$objformat
  5335. - case $version_type in
  5336. - freebsd-elf*)
  5337. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  5338. - need_version=no
  5339. - need_lib_prefix=no
  5340. - ;;
  5341. - freebsd-*)
  5342. - library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  5343. - need_version=yes
  5344. - ;;
  5345. - esac
  5346. - shlibpath_var=LD_LIBRARY_PATH
  5347. - case $host_os in
  5348. - freebsd2*)
  5349. - shlibpath_overrides_runpath=yes
  5350. + else
  5351. + # FIXME: insert proper C++ library support
  5352. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5353. + fi
  5354. + ;;
  5355. + esac
  5356. ;;
  5357. - *)
  5358. - shlibpath_overrides_runpath=no
  5359. - hardcode_into_libs=yes
  5360. + psos*)
  5361. + # FIXME: insert proper C++ library support
  5362. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5363. + ;;
  5364. + sco*)
  5365. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5366. + case $cc_basename in
  5367. + CC)
  5368. + # FIXME: insert proper C++ library support
  5369. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5370. + ;;
  5371. + *)
  5372. + # FIXME: insert proper C++ library support
  5373. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5374. + ;;
  5375. + esac
  5376. ;;
  5377. - esac
  5378. - ;;
  5379. + sunos4*)
  5380. + case $cc_basename in
  5381. + CC)
  5382. + # Sun C++ 4.x
  5383. + # FIXME: insert proper C++ library support
  5384. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5385. + ;;
  5386. + lcc)
  5387. + # Lucid
  5388. + # FIXME: insert proper C++ library support
  5389. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5390. + ;;
  5391. + *)
  5392. + # FIXME: insert proper C++ library support
  5393. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5394. + ;;
  5395. + esac
  5396. + ;;
  5397. + solaris*)
  5398. + case $cc_basename in
  5399. + CC)
  5400. + # Sun C++ 4.2, 5.x and Centerline C++
  5401. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5402. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5403. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5404. + $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5405. +
  5406. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5407. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5408. + case $host_os in
  5409. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  5410. + *)
  5411. + # The C++ compiler is used as linker so we must use $wl
  5412. + # flag to pass the commands to the underlying system
  5413. + # linker.
  5414. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  5415. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5416. + ;;
  5417. + esac
  5418. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5419. -gnu*)
  5420. - version_type=linux
  5421. - need_lib_prefix=no
  5422. - need_version=no
  5423. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  5424. - soname_spec='${libname}${release}.so$major'
  5425. - shlibpath_var=LD_LIBRARY_PATH
  5426. - hardcode_into_libs=yes
  5427. - ;;
  5428. + # Commands to make compiler produce verbose output that lists
  5429. + # what "hidden" libraries, object files and flags are used when
  5430. + # linking a shared library.
  5431. + #
  5432. + # There doesn't appear to be a way to prevent this compiler from
  5433. + # explicitly linking system object files so we need to strip them
  5434. + # from the output so that they don't get included in the library
  5435. + # dependencies.
  5436. + output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5437. +
  5438. + # Archives containing C++ object files must be created using
  5439. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5440. + # necessary to make sure instantiated templates are included
  5441. + # in the archive.
  5442. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5443. + ;;
  5444. + gcx)
  5445. + # Green Hills C++ Compiler
  5446. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5447. -hpux9* | hpux10* | hpux11*)
  5448. - # Give a soname corresponding to the major version so that dld.sl refuses to
  5449. - # link against other versions.
  5450. - dynamic_linker="$host_os dld.sl"
  5451. - version_type=sunos
  5452. - need_lib_prefix=no
  5453. - need_version=no
  5454. - shlibpath_var=SHLIB_PATH
  5455. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  5456. - library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  5457. - soname_spec='${libname}${release}.sl$major'
  5458. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  5459. - postinstall_cmds='chmod 555 $lib'
  5460. - ;;
  5461. + # The C++ compiler must be used to create the archive.
  5462. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  5463. + ;;
  5464. + *)
  5465. + # GNU C++ compiler with Solaris linker
  5466. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5467. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  5468. + if $CC --version | grep -v '^2\.7' > /dev/null; then
  5469. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5470. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5471. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5472. +
  5473. + # Commands to make compiler produce verbose output that lists
  5474. + # what "hidden" libraries, object files and flags are used when
  5475. + # linking a shared library.
  5476. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  5477. + else
  5478. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  5479. + # platform.
  5480. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5481. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5482. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5483. +
  5484. + # Commands to make compiler produce verbose output that lists
  5485. + # what "hidden" libraries, object files and flags are used when
  5486. + # linking a shared library.
  5487. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  5488. + fi
  5489. -irix5* | irix6* | nonstopux*)
  5490. - case $host_os in
  5491. - nonstopux*) version_type=nonstopux ;;
  5492. - *) version_type=irix ;;
  5493. - esac
  5494. - need_lib_prefix=no
  5495. - need_version=no
  5496. - soname_spec='${libname}${release}.so$major'
  5497. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  5498. - case $host_os in
  5499. - irix5* | nonstopux*)
  5500. - libsuff= shlibsuff=
  5501. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  5502. + fi
  5503. + ;;
  5504. + esac
  5505. ;;
  5506. - *)
  5507. - case $LD in # libtool.m4 will add one of these switches to LD
  5508. - *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  5509. - *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  5510. - *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  5511. - *) libsuff= shlibsuff= libmagic=never-match;;
  5512. + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  5513. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5514. + ;;
  5515. + tandem*)
  5516. + case $cc_basename in
  5517. + NCC)
  5518. + # NonStop-UX NCC 3.20
  5519. + # FIXME: insert proper C++ library support
  5520. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5521. + ;;
  5522. + *)
  5523. + # FIXME: insert proper C++ library support
  5524. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5525. + ;;
  5526. esac
  5527. ;;
  5528. - esac
  5529. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  5530. - shlibpath_overrides_runpath=no
  5531. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  5532. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  5533. - ;;
  5534. -
  5535. -# No shared lib support for Linux oldld, aout, or coff.
  5536. -linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  5537. - dynamic_linker=no
  5538. - ;;
  5539. + vxworks*)
  5540. + # FIXME: insert proper C++ library support
  5541. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5542. + ;;
  5543. + *)
  5544. + # FIXME: insert proper C++ library support
  5545. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5546. + ;;
  5547. +esac
  5548. +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  5549. +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5550. -# This must be Linux ELF.
  5551. -linux-gnu*)
  5552. - version_type=linux
  5553. - need_lib_prefix=no
  5554. - need_version=no
  5555. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5556. - soname_spec='${libname}${release}.so$major'
  5557. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  5558. - shlibpath_var=LD_LIBRARY_PATH
  5559. - shlibpath_overrides_runpath=no
  5560. - # This implies no fast_install, which is unacceptable.
  5561. - # Some rework will be needed to allow for fast_install
  5562. - # before this can be enabled.
  5563. - hardcode_into_libs=yes
  5564. +_LT_AC_TAGVAR(GCC, $1)="$GXX"
  5565. +_LT_AC_TAGVAR(LD, $1)="$LD"
  5566. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  5567. - # powerpc, because MkLinux only supported shared libraries with the
  5568. - # GNU dynamic linker. Since this was broken with cross compilers,
  5569. - # most powerpc-linux boxes support dynamic linking these days and
  5570. - # people can always --disable-shared, the test was removed, and we
  5571. - # assume the GNU/Linux dynamic linker is in use.
  5572. - dynamic_linker='GNU/Linux ld.so'
  5573. - ;;
  5574. +AC_LIBTOOL_POSTDEP_PREDEP($1)
  5575. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5576. +AC_LIBTOOL_PROG_CC_C_O($1)
  5577. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5578. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5579. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5580. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5581. +AC_LIBTOOL_SYS_LIB_STRIP
  5582. +AC_LIBTOOL_DLOPEN_SELF($1)
  5583. +
  5584. +AC_LIBTOOL_CONFIG($1)
  5585. +
  5586. +AC_LANG_POP
  5587. +CC=$lt_save_CC
  5588. +LDCXX=$LD
  5589. +LD=$lt_save_LD
  5590. +GCC=$lt_save_GCC
  5591. +with_gnu_ldcxx=$with_gnu_ld
  5592. +with_gnu_ld=$lt_save_with_gnu_ld
  5593. +lt_cv_path_LDCXX=$lt_cv_path_LD
  5594. +lt_cv_path_LD=$lt_save_path_LD
  5595. +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  5596. +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  5597. +])# AC_LIBTOOL_LANG_CXX_CONFIG
  5598. -netbsd*)
  5599. - version_type=sunos
  5600. - need_lib_prefix=no
  5601. - need_version=no
  5602. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5603. - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5604. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5605. - dynamic_linker='NetBSD (a.out) ld.so'
  5606. - else
  5607. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  5608. - soname_spec='${libname}${release}.so$major'
  5609. - dynamic_linker='NetBSD ld.elf_so'
  5610. - fi
  5611. - shlibpath_var=LD_LIBRARY_PATH
  5612. - shlibpath_overrides_runpath=yes
  5613. - hardcode_into_libs=yes
  5614. - ;;
  5615. +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  5616. +# ------------------------
  5617. +# Figure out "hidden" library dependencies from verbose
  5618. +# compiler output when linking a shared library.
  5619. +# Parse the compiler output and extract the necessary
  5620. +# objects, libraries and library flags.
  5621. +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  5622. +dnl we can't use the lt_simple_compile_test_code here,
  5623. +dnl because it contains code intended for an executable,
  5624. +dnl not a library. It's possible we should let each
  5625. +dnl tag define a new lt_????_link_test_code variable,
  5626. +dnl but it's only used here...
  5627. +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  5628. +int a;
  5629. +void foo (void) { a = 0; }
  5630. +EOF
  5631. +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  5632. +class Foo
  5633. +{
  5634. +public:
  5635. + Foo (void) { a = 0; }
  5636. +private:
  5637. + int a;
  5638. +};
  5639. +EOF
  5640. +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  5641. + subroutine foo
  5642. + implicit none
  5643. + integer*4 a
  5644. + a=0
  5645. + return
  5646. + end
  5647. +EOF
  5648. +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  5649. +public class foo {
  5650. + private int a;
  5651. + public void bar (void) {
  5652. + a = 0;
  5653. + }
  5654. +};
  5655. +EOF
  5656. +])
  5657. +dnl Parse the compiler output and extract the necessary
  5658. +dnl objects, libraries and library flags.
  5659. +if AC_TRY_EVAL(ac_compile); then
  5660. + # Parse the compiler output and extract the necessary
  5661. + # objects, libraries and library flags.
  5662. +
  5663. + # Sentinel used to keep track of whether or not we are before
  5664. + # the conftest object file.
  5665. + pre_test_object_deps_done=no
  5666. +
  5667. + # The `*' in the case matches for architectures that use `case' in
  5668. + # $output_verbose_cmd can trigger glob expansion during the loop
  5669. + # eval without this substitution.
  5670. + output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  5671. +
  5672. + for p in `eval $output_verbose_link_cmd`; do
  5673. + case $p in
  5674. +
  5675. + -L* | -R* | -l*)
  5676. + # Some compilers place space between "-{L,R}" and the path.
  5677. + # Remove the space.
  5678. + if test $p = "-L" \
  5679. + || test $p = "-R"; then
  5680. + prev=$p
  5681. + continue
  5682. + else
  5683. + prev=
  5684. + fi
  5685. +
  5686. + if test "$pre_test_object_deps_done" = no; then
  5687. + case $p in
  5688. + -L* | -R*)
  5689. + # Internal compiler library paths should come after those
  5690. + # provided the user. The postdeps already come after the
  5691. + # user supplied libs so there is no need to process them.
  5692. + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  5693. + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  5694. + else
  5695. + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  5696. + fi
  5697. + ;;
  5698. + # The "-l" case would never come before the object being
  5699. + # linked, so don't bother handling this case.
  5700. + esac
  5701. + else
  5702. + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  5703. + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  5704. + else
  5705. + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  5706. + fi
  5707. + fi
  5708. + ;;
  5709. +
  5710. + *.$objext)
  5711. + # This assumes that the test object file only shows up
  5712. + # once in the compiler output.
  5713. + if test "$p" = "conftest.$objext"; then
  5714. + pre_test_object_deps_done=yes
  5715. + continue
  5716. + fi
  5717. +
  5718. + if test "$pre_test_object_deps_done" = no; then
  5719. + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  5720. + _LT_AC_TAGVAR(predep_objects, $1)="$p"
  5721. + else
  5722. + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  5723. + fi
  5724. + else
  5725. + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  5726. + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  5727. + else
  5728. + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  5729. + fi
  5730. + fi
  5731. + ;;
  5732. -newsos6)
  5733. - version_type=linux
  5734. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5735. - shlibpath_var=LD_LIBRARY_PATH
  5736. - shlibpath_overrides_runpath=yes
  5737. - ;;
  5738. + *) ;; # Ignore the rest.
  5739. -openbsd*)
  5740. - version_type=sunos
  5741. - need_lib_prefix=no
  5742. - need_version=no
  5743. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5744. - case "$host_os" in
  5745. - openbsd2.[[89]] | openbsd2.[[89]].*)
  5746. - shlibpath_overrides_runpath=no
  5747. - ;;
  5748. - *)
  5749. - shlibpath_overrides_runpath=yes
  5750. - ;;
  5751. esac
  5752. - else
  5753. - shlibpath_overrides_runpath=yes
  5754. - fi
  5755. - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5756. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5757. - shlibpath_var=LD_LIBRARY_PATH
  5758. - ;;
  5759. -
  5760. -os2*)
  5761. - libname_spec='$name'
  5762. - need_lib_prefix=no
  5763. - library_names_spec='$libname.dll $libname.a'
  5764. - dynamic_linker='OS/2 ld.exe'
  5765. - shlibpath_var=LIBPATH
  5766. - ;;
  5767. -
  5768. -osf3* | osf4* | osf5*)
  5769. - version_type=osf
  5770. - need_version=no
  5771. - need_lib_prefix=no
  5772. - soname_spec='${libname}${release}.so$major'
  5773. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5774. - shlibpath_var=LD_LIBRARY_PATH
  5775. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  5776. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  5777. - hardcode_into_libs=yes
  5778. - ;;
  5779. + done
  5780. -sco3.2v5*)
  5781. - version_type=osf
  5782. - soname_spec='${libname}${release}.so$major'
  5783. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5784. - shlibpath_var=LD_LIBRARY_PATH
  5785. - ;;
  5786. + # Clean up.
  5787. + rm -f a.out a.exe
  5788. +else
  5789. + echo "libtool.m4: error: problem compiling $1 test program"
  5790. +fi
  5791. -solaris*)
  5792. - version_type=linux
  5793. - need_lib_prefix=no
  5794. - need_version=no
  5795. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5796. - soname_spec='${libname}${release}.so$major'
  5797. - shlibpath_var=LD_LIBRARY_PATH
  5798. - shlibpath_overrides_runpath=yes
  5799. - hardcode_into_libs=yes
  5800. - # ldd complains unless libraries are executable
  5801. - postinstall_cmds='chmod +x $lib'
  5802. - ;;
  5803. +$rm -f confest.$objext
  5804. -sunos4*)
  5805. - version_type=sunos
  5806. - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5807. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  5808. - shlibpath_var=LD_LIBRARY_PATH
  5809. - shlibpath_overrides_runpath=yes
  5810. - if test "$with_gnu_ld" = yes; then
  5811. - need_lib_prefix=no
  5812. - fi
  5813. - need_version=yes
  5814. - ;;
  5815. +case " $_LT_AC_TAGVAR(postdeps, $1) " in
  5816. +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  5817. +esac
  5818. +])# AC_LIBTOOL_POSTDEP_PREDEP
  5819. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5820. - version_type=linux
  5821. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5822. - soname_spec='${libname}${release}.so$major'
  5823. - shlibpath_var=LD_LIBRARY_PATH
  5824. - case $host_vendor in
  5825. - sni)
  5826. - shlibpath_overrides_runpath=no
  5827. - need_lib_prefix=no
  5828. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  5829. - runpath_var=LD_RUN_PATH
  5830. - ;;
  5831. - siemens)
  5832. - need_lib_prefix=no
  5833. - ;;
  5834. - motorola)
  5835. - need_lib_prefix=no
  5836. - need_version=no
  5837. - shlibpath_overrides_runpath=no
  5838. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  5839. - ;;
  5840. - esac
  5841. - ;;
  5842. +# AC_LIBTOOL_LANG_F77_CONFIG
  5843. +# ------------------------
  5844. +# Ensure that the configuration vars for the C compiler are
  5845. +# suitably defined. Those variables are subsequently used by
  5846. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5847. +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  5848. +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  5849. +[AC_REQUIRE([AC_PROG_F77])
  5850. +AC_LANG_PUSH(Fortran 77)
  5851. +
  5852. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5853. +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5854. +_LT_AC_TAGVAR(always_export_symbols, $1)=no
  5855. +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5856. +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5857. +_LT_AC_TAGVAR(hardcode_direct, $1)=no
  5858. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5859. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5860. +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5861. +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5862. +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5863. +_LT_AC_TAGVAR(module_cmds, $1)=
  5864. +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5865. +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5866. +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5867. +_LT_AC_TAGVAR(no_undefined_flag, $1)=
  5868. +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5869. +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5870. +
  5871. +# Source file extension for f77 test sources.
  5872. +ac_ext=f
  5873. +
  5874. +# Object file extension for compiled f77 test sources.
  5875. +objext=o
  5876. +_LT_AC_TAGVAR(objext, $1)=$objext
  5877. -uts4*)
  5878. - version_type=linux
  5879. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5880. - soname_spec='${libname}${release}.so$major'
  5881. - shlibpath_var=LD_LIBRARY_PATH
  5882. - ;;
  5883. +# Code to be used in simple compile tests
  5884. +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  5885. -dgux*)
  5886. - version_type=linux
  5887. - need_lib_prefix=no
  5888. - need_version=no
  5889. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5890. - soname_spec='${libname}${release}.so$major'
  5891. - shlibpath_var=LD_LIBRARY_PATH
  5892. - ;;
  5893. +# Code to be used in simple link tests
  5894. +lt_simple_link_test_code=" program t\n end\n"
  5895. -sysv4*MP*)
  5896. - if test -d /usr/nec ;then
  5897. - version_type=linux
  5898. - library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  5899. - soname_spec='$libname.so.$major'
  5900. - shlibpath_var=LD_LIBRARY_PATH
  5901. - fi
  5902. - ;;
  5903. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5904. +_LT_AC_SYS_COMPILER
  5905. -*)
  5906. - dynamic_linker=no
  5907. - ;;
  5908. -esac
  5909. -AC_MSG_RESULT([$dynamic_linker])
  5910. -test "$dynamic_linker" = no && can_build_shared=no
  5911. +# Allow CC to be a program name with arguments.
  5912. +lt_save_CC="$CC"
  5913. +CC=${F77-"f77"}
  5914. +compiler=$CC
  5915. +_LT_AC_TAGVAR(compiler, $1)=$CC
  5916. +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  5917. -# Report the final consequences.
  5918. AC_MSG_CHECKING([if libtool supports shared libraries])
  5919. AC_MSG_RESULT([$can_build_shared])
  5920. @@ -2481,125 +4662,206 @@
  5921. postinstall_cmds='$RANLIB $lib'
  5922. fi
  5923. ;;
  5924. +aix4* | aix5*)
  5925. + test "$enable_shared" = yes && enable_static=no
  5926. + ;;
  5927. +esac
  5928. +AC_MSG_RESULT([$enable_shared])
  5929. +
  5930. +AC_MSG_CHECKING([whether to build static libraries])
  5931. +# Make sure either enable_shared or enable_static is yes.
  5932. +test "$enable_shared" = yes || enable_static=yes
  5933. +AC_MSG_RESULT([$enable_static])
  5934. +
  5935. +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5936. +
  5937. +_LT_AC_TAGVAR(GCC, $1)="$G77"
  5938. +_LT_AC_TAGVAR(LD, $1)="$LD"
  5939. +
  5940. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5941. +AC_LIBTOOL_PROG_CC_C_O($1)
  5942. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5943. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5944. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5945. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5946. +AC_LIBTOOL_SYS_LIB_STRIP
  5947. +
  5948. +
  5949. +AC_LIBTOOL_CONFIG($1)
  5950. +
  5951. +AC_LANG_POP
  5952. +CC="$lt_save_CC"
  5953. +])# AC_LIBTOOL_LANG_F77_CONFIG
  5954. +
  5955. +
  5956. +# AC_LIBTOOL_LANG_GCJ_CONFIG
  5957. +# --------------------------
  5958. +# Ensure that the configuration vars for the C compiler are
  5959. +# suitably defined. Those variables are subsequently used by
  5960. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5961. +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  5962. +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  5963. +[AC_LANG_SAVE
  5964. +
  5965. +# Source file extension for Java test sources.
  5966. +ac_ext=java
  5967. +
  5968. +# Object file extension for compiled Java test sources.
  5969. +objext=o
  5970. +_LT_AC_TAGVAR(objext, $1)=$objext
  5971. +
  5972. +# Code to be used in simple compile tests
  5973. +lt_simple_compile_test_code="class foo {}\n"
  5974. +
  5975. +# Code to be used in simple link tests
  5976. +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  5977. +
  5978. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5979. +_LT_AC_SYS_COMPILER
  5980. +
  5981. +# Allow CC to be a program name with arguments.
  5982. +lt_save_CC="$CC"
  5983. +CC=${GCJ-"gcj"}
  5984. +compiler=$CC
  5985. +_LT_AC_TAGVAR(compiler, $1)=$CC
  5986. +
  5987. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  5988. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5989. +
  5990. +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  5991. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5992. +AC_LIBTOOL_PROG_CC_C_O($1)
  5993. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5994. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5995. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5996. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5997. +AC_LIBTOOL_SYS_LIB_STRIP
  5998. +AC_LIBTOOL_DLOPEN_SELF($1)
  5999. +
  6000. +AC_LIBTOOL_CONFIG($1)
  6001. +
  6002. +AC_LANG_RESTORE
  6003. +CC="$lt_save_CC"
  6004. +])# AC_LIBTOOL_LANG_GCJ_CONFIG
  6005. +
  6006. +
  6007. +# AC_LIBTOOL_LANG_RC_CONFIG
  6008. +# --------------------------
  6009. +# Ensure that the configuration vars for the Windows resource compiler are
  6010. +# suitably defined. Those variables are subsequently used by
  6011. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6012. +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  6013. +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  6014. +[AC_LANG_SAVE
  6015. +
  6016. +# Source file extension for RC test sources.
  6017. +ac_ext=rc
  6018. +
  6019. +# Object file extension for compiled RC test sources.
  6020. +objext=o
  6021. +_LT_AC_TAGVAR(objext, $1)=$objext
  6022. -aix4*)
  6023. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6024. - test "$enable_shared" = yes && enable_static=no
  6025. - fi
  6026. - ;;
  6027. -esac
  6028. -AC_MSG_RESULT([$enable_shared])
  6029. +# Code to be used in simple compile tests
  6030. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  6031. -AC_MSG_CHECKING([whether to build static libraries])
  6032. -# Make sure either enable_shared or enable_static is yes.
  6033. -test "$enable_shared" = yes || enable_static=yes
  6034. -AC_MSG_RESULT([$enable_static])
  6035. +# Code to be used in simple link tests
  6036. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  6037. -if test "$hardcode_action" = relink; then
  6038. - # Fast installation is not supported
  6039. - enable_fast_install=no
  6040. -elif test "$shlibpath_overrides_runpath" = yes ||
  6041. - test "$enable_shared" = no; then
  6042. - # Fast installation is not necessary
  6043. - enable_fast_install=needless
  6044. -fi
  6045. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6046. +_LT_AC_SYS_COMPILER
  6047. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6048. -if test "$GCC" = yes; then
  6049. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6050. -fi
  6051. +# Allow CC to be a program name with arguments.
  6052. +lt_save_CC="$CC"
  6053. +CC=${RC-"windres"}
  6054. +compiler=$CC
  6055. +_LT_AC_TAGVAR(compiler, $1)=$CC
  6056. +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6057. -AC_LIBTOOL_DLOPEN_SELF
  6058. +AC_LIBTOOL_CONFIG($1)
  6059. +
  6060. +AC_LANG_RESTORE
  6061. +CC="$lt_save_CC"
  6062. +])# AC_LIBTOOL_LANG_RC_CONFIG
  6063. -if test "$enable_shared" = yes && test "$GCC" = yes; then
  6064. - case $archive_cmds in
  6065. - *'~'*)
  6066. - # FIXME: we may have to deal with multi-command sequences.
  6067. - ;;
  6068. - '$CC '*)
  6069. - # Test whether the compiler implicitly links with -lc since on some
  6070. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6071. - # to ld, don't add -lc before -lgcc.
  6072. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  6073. - AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
  6074. - [$rm conftest*
  6075. - echo 'static int dummy;' > conftest.$ac_ext
  6076. -
  6077. - if AC_TRY_EVAL(ac_compile); then
  6078. - soname=conftest
  6079. - lib=conftest
  6080. - libobjs=conftest.$ac_objext
  6081. - deplibs=
  6082. - wl=$lt_cv_prog_cc_wl
  6083. - compiler_flags=-v
  6084. - linker_flags=-v
  6085. - verstring=
  6086. - output_objdir=.
  6087. - libname=conftest
  6088. - save_allow_undefined_flag=$allow_undefined_flag
  6089. - allow_undefined_flag=
  6090. - if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  6091. - then
  6092. - lt_cv_archive_cmds_need_lc=no
  6093. - else
  6094. - lt_cv_archive_cmds_need_lc=yes
  6095. - fi
  6096. - allow_undefined_flag=$save_allow_undefined_flag
  6097. - else
  6098. - cat conftest.err 1>&5
  6099. - fi])
  6100. - AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
  6101. - ;;
  6102. - esac
  6103. -fi
  6104. -need_lc=${lt_cv_archive_cmds_need_lc-yes}
  6105. -# The second clause should only fire when bootstrapping the
  6106. +# AC_LIBTOOL_CONFIG([TAGNAME])
  6107. +# ----------------------------
  6108. +# If TAGNAME is not passed, then create an initial libtool script
  6109. +# with a default configuration from the untagged config vars. Otherwise
  6110. +# add code to config.status for appending the configuration named by
  6111. +# TAGNAME from the matching tagged config vars.
  6112. +AC_DEFUN([AC_LIBTOOL_CONFIG],
  6113. +[# The else clause should only fire when bootstrapping the
  6114. # libtool distribution, otherwise you forgot to ship ltmain.sh
  6115. # with your package, and you will get complaints that there are
  6116. # no rules to generate ltmain.sh.
  6117. if test -f "$ltmain"; then
  6118. - :
  6119. -else
  6120. - # If there is no Makefile yet, we rely on a make rule to execute
  6121. - # `config.status --recheck' to rerun these tests and create the
  6122. - # libtool script then.
  6123. - test -f Makefile && make "$ltmain"
  6124. -fi
  6125. -
  6126. -if test -f "$ltmain"; then
  6127. - trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  6128. - $rm -f "${ofile}T"
  6129. -
  6130. - echo creating $ofile
  6131. -
  6132. + # See if we are running on zsh, and set the options which allow our commands through
  6133. + # without removal of \ escapes.
  6134. + if test -n "${ZSH_VERSION+set}" ; then
  6135. + setopt NO_GLOB_SUBST
  6136. + fi
  6137. # Now quote all the things that may contain metacharacters while being
  6138. # careful not to overquote the AC_SUBSTed values. We take copies of the
  6139. # variables and quote the copies for generation of the libtool script.
  6140. - for var in echo old_CC old_CFLAGS SED \
  6141. - AR AR_FLAGS CC LD LN_S NM SHELL \
  6142. - reload_flag reload_cmds wl \
  6143. - pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  6144. - thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  6145. - library_names_spec soname_spec \
  6146. - RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  6147. - old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  6148. - postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  6149. - old_striplib striplib file_magic_cmd export_symbols_cmds \
  6150. - deplibs_check_method allow_undefined_flag no_undefined_flag \
  6151. - finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  6152. - global_symbol_to_c_name_address \
  6153. - hardcode_libdir_flag_spec hardcode_libdir_separator \
  6154. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  6155. + SED SHELL STRIP \
  6156. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  6157. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  6158. + deplibs_check_method reload_flag reload_cmds need_locks \
  6159. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  6160. + lt_cv_sys_global_symbol_to_c_name_address \
  6161. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  6162. - compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  6163. + old_postinstall_cmds old_postuninstall_cmds \
  6164. + _LT_AC_TAGVAR(compiler, $1) \
  6165. + _LT_AC_TAGVAR(CC, $1) \
  6166. + _LT_AC_TAGVAR(LD, $1) \
  6167. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  6168. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  6169. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  6170. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  6171. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  6172. + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  6173. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  6174. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  6175. + _LT_AC_TAGVAR(old_archive_cmds, $1) \
  6176. + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  6177. + _LT_AC_TAGVAR(predep_objects, $1) \
  6178. + _LT_AC_TAGVAR(postdep_objects, $1) \
  6179. + _LT_AC_TAGVAR(predeps, $1) \
  6180. + _LT_AC_TAGVAR(postdeps, $1) \
  6181. + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  6182. + _LT_AC_TAGVAR(archive_cmds, $1) \
  6183. + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  6184. + _LT_AC_TAGVAR(postinstall_cmds, $1) \
  6185. + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  6186. + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  6187. + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  6188. + _LT_AC_TAGVAR(no_undefined_flag, $1) \
  6189. + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  6190. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  6191. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  6192. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  6193. + _LT_AC_TAGVAR(hardcode_automatic, $1) \
  6194. + _LT_AC_TAGVAR(module_cmds, $1) \
  6195. + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  6196. + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  6197. + _LT_AC_TAGVAR(exclude_expsyms, $1) \
  6198. + _LT_AC_TAGVAR(include_expsyms, $1); do
  6199. case $var in
  6200. - reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  6201. - old_postinstall_cmds | old_postuninstall_cmds | \
  6202. - export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  6203. - extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  6204. + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  6205. + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  6206. + _LT_AC_TAGVAR(archive_cmds, $1) | \
  6207. + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  6208. + _LT_AC_TAGVAR(module_cmds, $1) | \
  6209. + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  6210. + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  6211. + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  6212. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  6213. postinstall_cmds | postuninstall_cmds | \
  6214. - finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  6215. + old_postinstall_cmds | old_postuninstall_cmds | \
  6216. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  6217. # Double-quote double-evaled strings.
  6218. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  6219. ;;
  6220. @@ -2609,14 +4871,31 @@
  6221. esac
  6222. done
  6223. - cat <<__EOF__ > "${ofile}T"
  6224. -#! $SHELL
  6225. + case $lt_echo in
  6226. + *'\[$]0 --fallback-echo"')
  6227. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  6228. + ;;
  6229. + esac
  6230. -# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  6231. +ifelse([$1], [],
  6232. + [cfgfile="${ofile}T"
  6233. + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  6234. + $rm -f "$cfgfile"
  6235. + AC_MSG_NOTICE([creating $ofile])],
  6236. + [cfgfile="$ofile"])
  6237. +
  6238. + cat <<__EOF__ >> "$cfgfile"
  6239. +ifelse([$1], [],
  6240. +[#! $SHELL
  6241. +
  6242. +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  6243. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  6244. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  6245. #
  6246. -# Copyright (C) 1996-2000 Free Software Foundation, Inc.
  6247. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  6248. +# Free Software Foundation, Inc.
  6249. +#
  6250. +# This file is part of GNU Libtool:
  6251. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  6252. #
  6253. # This program is free software; you can redistribute it and/or modify
  6254. @@ -2638,17 +4917,21 @@
  6255. # configuration script generated by Autoconf, you may include it under
  6256. # the same distribution terms that you use for the rest of that program.
  6257. -# A sed that does not truncate output.
  6258. +# A sed program that does not truncate output.
  6259. SED=$lt_SED
  6260. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  6261. -Xsed="${SED} -e s/^X//"
  6262. +Xsed="$SED -e s/^X//"
  6263. # The HP-UX ksh and POSIX shell print the target directory to stdout
  6264. # if CDPATH is set.
  6265. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  6266. -# ### BEGIN LIBTOOL CONFIG
  6267. +# The names of the tagged configurations supported by this script.
  6268. +available_tags=
  6269. +
  6270. +# ### BEGIN LIBTOOL CONFIG],
  6271. +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  6272. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6273. @@ -2662,7 +4945,10 @@
  6274. build_old_libs=$enable_static
  6275. # Whether or not to add -lc for building shared libraries.
  6276. -build_libtool_need_lc=$need_lc
  6277. +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  6278. +
  6279. +# Whether or not to disallow shared libs when runtime libs are static
  6280. +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  6281. # Whether or not to optimize for fast installation.
  6282. fast_install=$enable_fast_install
  6283. @@ -2678,14 +4964,20 @@
  6284. AR=$lt_AR
  6285. AR_FLAGS=$lt_AR_FLAGS
  6286. -# The default C compiler.
  6287. -CC=$lt_CC
  6288. +# A C compiler.
  6289. +LTCC=$lt_LTCC
  6290. +
  6291. +# A language-specific compiler.
  6292. +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  6293. # Is the compiler the GNU C compiler?
  6294. -with_gcc=$GCC
  6295. +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  6296. +
  6297. +# An ERE matcher.
  6298. +EGREP=$lt_EGREP
  6299. # The linker used to build libraries.
  6300. -LD=$lt_LD
  6301. +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  6302. # Whether we need hard or soft links.
  6303. LN_S=$lt_LN_S
  6304. @@ -2694,7 +4986,7 @@
  6305. NM=$lt_NM
  6306. # A symbol stripping program
  6307. -STRIP=$STRIP
  6308. +STRIP=$lt_STRIP
  6309. # Used to examine libraries when file_magic_cmd begins "file"
  6310. MAGIC_CMD=$MAGIC_CMD
  6311. @@ -2716,7 +5008,7 @@
  6312. reload_cmds=$lt_reload_cmds
  6313. # How to pass a linker flag through the compiler.
  6314. -wl=$lt_wl
  6315. +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6316. # Object file suffix (normally "o").
  6317. objext="$ac_objext"
  6318. @@ -2724,18 +5016,21 @@
  6319. # Old archive suffix (normally "a").
  6320. libext="$libext"
  6321. +# Shared library suffix (normally ".so").
  6322. +shrext_cmds='$shrext_cmds'
  6323. +
  6324. # Executable file suffix (normally "").
  6325. exeext="$exeext"
  6326. # Additional compiler flags for building library objects.
  6327. -pic_flag=$lt_pic_flag
  6328. +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  6329. pic_mode=$pic_mode
  6330. -# Does compiler simultaneously support -c and -o options?
  6331. -compiler_c_o=$lt_compiler_c_o
  6332. +# What is the maximum length of a command?
  6333. +max_cmd_len=$lt_cv_sys_max_cmd_len
  6334. -# Can we write directly to a .lo ?
  6335. -compiler_o_lo=$lt_compiler_o_lo
  6336. +# Does compiler simultaneously support -c and -o options?
  6337. +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  6338. # Must we lock files when doing compilation ?
  6339. need_locks=$lt_need_locks
  6340. @@ -2756,946 +5051,1770 @@
  6341. dlopen_self_static=$enable_dlopen_self_static
  6342. # Compiler flag to prevent dynamic linking.
  6343. -link_static_flag=$lt_link_static_flag
  6344. +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  6345. # Compiler flag to turn off builtin functions.
  6346. -no_builtin_flag=$lt_no_builtin_flag
  6347. +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  6348. # Compiler flag to allow reflexive dlopens.
  6349. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  6350. +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  6351. # Compiler flag to generate shared objects directly from archives.
  6352. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  6353. +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  6354. # Compiler flag to generate thread-safe objects.
  6355. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  6356. +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  6357. +
  6358. +# Library versioning type.
  6359. +version_type=$version_type
  6360. +
  6361. +# Format of library name prefix.
  6362. +libname_spec=$lt_libname_spec
  6363. +
  6364. +# List of archive names. First name is the real one, the rest are links.
  6365. +# The last name is the one that the linker finds with -lNAME.
  6366. +library_names_spec=$lt_library_names_spec
  6367. +
  6368. +# The coded name of the library, if different from the real name.
  6369. +soname_spec=$lt_soname_spec
  6370. +
  6371. +# Commands used to build and install an old-style archive.
  6372. +RANLIB=$lt_RANLIB
  6373. +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  6374. +old_postinstall_cmds=$lt_old_postinstall_cmds
  6375. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  6376. +
  6377. +# Create an old-style archive from a shared archive.
  6378. +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  6379. +
  6380. +# Create a temporary old-style archive to link instead of a shared archive.
  6381. +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  6382. +
  6383. +# Commands used to build and install a shared archive.
  6384. +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  6385. +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  6386. +postinstall_cmds=$lt_postinstall_cmds
  6387. +postuninstall_cmds=$lt_postuninstall_cmds
  6388. +
  6389. +# Commands used to build a loadable module (assumed same as above if empty)
  6390. +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  6391. +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  6392. +
  6393. +# Commands to strip libraries.
  6394. +old_striplib=$lt_old_striplib
  6395. +striplib=$lt_striplib
  6396. +
  6397. +# Dependencies to place before the objects being linked to create a
  6398. +# shared library.
  6399. +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  6400. +
  6401. +# Dependencies to place after the objects being linked to create a
  6402. +# shared library.
  6403. +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  6404. +
  6405. +# Dependencies to place before the objects being linked to create a
  6406. +# shared library.
  6407. +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  6408. +
  6409. +# Dependencies to place after the objects being linked to create a
  6410. +# shared library.
  6411. +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  6412. +
  6413. +# The library search path used internally by the compiler when linking
  6414. +# a shared library.
  6415. +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  6416. +
  6417. +# Method to check whether dependent libraries are shared objects.
  6418. +deplibs_check_method=$lt_deplibs_check_method
  6419. +
  6420. +# Command to use when deplibs_check_method == file_magic.
  6421. +file_magic_cmd=$lt_file_magic_cmd
  6422. +
  6423. +# Flag that allows shared libraries with undefined symbols to be built.
  6424. +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  6425. +
  6426. +# Flag that forces no undefined symbols.
  6427. +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  6428. +
  6429. +# Commands used to finish a libtool library installation in a directory.
  6430. +finish_cmds=$lt_finish_cmds
  6431. +
  6432. +# Same as above, but a single script fragment to be evaled but not shown.
  6433. +finish_eval=$lt_finish_eval
  6434. +
  6435. +# Take the output of nm and produce a listing of raw symbols and C names.
  6436. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  6437. +
  6438. +# Transform the output of nm in a proper C declaration
  6439. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  6440. +
  6441. +# Transform the output of nm in a C name address pair
  6442. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  6443. +
  6444. +# This is the shared library runtime path variable.
  6445. +runpath_var=$runpath_var
  6446. +
  6447. +# This is the shared library path variable.
  6448. +shlibpath_var=$shlibpath_var
  6449. +
  6450. +# Is shlibpath searched before the hard-coded library search path?
  6451. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  6452. +
  6453. +# How to hardcode a shared library path into an executable.
  6454. +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  6455. +
  6456. +# Whether we should hardcode library paths into libraries.
  6457. +hardcode_into_libs=$hardcode_into_libs
  6458. +
  6459. +# Flag to hardcode \$libdir into a binary during linking.
  6460. +# This must work even if \$libdir does not exist.
  6461. +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  6462. +
  6463. +# If ld is used when linking, flag to hardcode \$libdir into
  6464. +# a binary during linking. This must work even if \$libdir does
  6465. +# not exist.
  6466. +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  6467. +
  6468. +# Whether we need a single -rpath flag with a separated argument.
  6469. +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  6470. +
  6471. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  6472. +# resulting binary.
  6473. +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  6474. +
  6475. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  6476. +# resulting binary.
  6477. +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  6478. +
  6479. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  6480. +# the resulting binary.
  6481. +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  6482. +
  6483. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  6484. +# and all subsequent libraries and executables linked against it.
  6485. +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  6486. +
  6487. +# Variables whose values should be saved in libtool wrapper scripts and
  6488. +# restored at relink time.
  6489. +variables_saved_for_relink="$variables_saved_for_relink"
  6490. +
  6491. +# Whether libtool must link a program against all its dependency libraries.
  6492. +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  6493. +
  6494. +# Compile-time system search path for libraries
  6495. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  6496. +
  6497. +# Run-time system search path for libraries
  6498. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  6499. +
  6500. +# Fix the shell variable \$srcfile for the compiler.
  6501. +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  6502. +
  6503. +# Set to yes if exported symbols are required.
  6504. +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  6505. +
  6506. +# The commands to list exported symbols.
  6507. +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  6508. +
  6509. +# The commands to extract the exported symbol list from a shared archive.
  6510. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  6511. +
  6512. +# Symbols that should not be listed in the preloaded symbols.
  6513. +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  6514. +
  6515. +# Symbols that must always be exported.
  6516. +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  6517. +
  6518. +ifelse([$1],[],
  6519. +[# ### END LIBTOOL CONFIG],
  6520. +[# ### END LIBTOOL TAG CONFIG: $tagname])
  6521. +
  6522. +__EOF__
  6523. +
  6524. +ifelse([$1],[], [
  6525. + case $host_os in
  6526. + aix3*)
  6527. + cat <<\EOF >> "$cfgfile"
  6528. +
  6529. +# AIX sometimes has problems with the GCC collect2 program. For some
  6530. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  6531. +# vanish in a puff of smoke.
  6532. +if test "X${COLLECT_NAMES+set}" != Xset; then
  6533. + COLLECT_NAMES=
  6534. + export COLLECT_NAMES
  6535. +fi
  6536. +EOF
  6537. + ;;
  6538. + esac
  6539. +
  6540. + # We use sed instead of cat because bash on DJGPP gets confused if
  6541. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  6542. + # text mode, it properly converts lines to CR/LF. This bash problem
  6543. + # is reportedly fixed, but why not run on old versions too?
  6544. + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  6545. +
  6546. + mv -f "$cfgfile" "$ofile" || \
  6547. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  6548. + chmod +x "$ofile"
  6549. +])
  6550. +else
  6551. + # If there is no Makefile yet, we rely on a make rule to execute
  6552. + # `config.status --recheck' to rerun these tests and create the
  6553. + # libtool script then.
  6554. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  6555. + if test -f "$ltmain_in"; then
  6556. + test -f Makefile && make "$ltmain"
  6557. + fi
  6558. +fi
  6559. +])# AC_LIBTOOL_CONFIG
  6560. +
  6561. +
  6562. +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  6563. +# -------------------------------------------
  6564. +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  6565. +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  6566. +
  6567. +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6568. +
  6569. +if test "$GCC" = yes; then
  6570. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6571. +
  6572. + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  6573. + lt_cv_prog_compiler_rtti_exceptions,
  6574. + [-fno-rtti -fno-exceptions], [],
  6575. + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  6576. +fi
  6577. +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  6578. +
  6579. +
  6580. +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  6581. +# ---------------------------------
  6582. +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  6583. +[AC_REQUIRE([AC_CANONICAL_HOST])
  6584. +AC_REQUIRE([AC_PROG_NM])
  6585. +AC_REQUIRE([AC_OBJEXT])
  6586. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  6587. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  6588. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  6589. +[
  6590. +# These are sane defaults that work on at least a few old systems.
  6591. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6592. +
  6593. +# Character class describing NM global symbol codes.
  6594. +symcode='[[BCDEGRST]]'
  6595. +
  6596. +# Regexp to match symbols that can be accessed directly from C.
  6597. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  6598. +
  6599. +# Transform the above into a raw symbol and a C symbol.
  6600. +symxfrm='\1 \2\3 \3'
  6601. +
  6602. +# Transform an extracted symbol line into a proper C declaration
  6603. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  6604. +
  6605. +# Transform an extracted symbol line into symbol name and symbol address
  6606. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  6607. +
  6608. +# Define system-specific variables.
  6609. +case $host_os in
  6610. +aix*)
  6611. + symcode='[[BCDT]]'
  6612. + ;;
  6613. +cygwin* | mingw* | pw32*)
  6614. + symcode='[[ABCDGISTW]]'
  6615. + ;;
  6616. +hpux*) # Its linker distinguishes data from code symbols
  6617. + if test "$host_cpu" = ia64; then
  6618. + symcode='[[ABCDEGRST]]'
  6619. + fi
  6620. + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6621. + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  6622. + ;;
  6623. +irix* | nonstopux*)
  6624. + symcode='[[BCDEGRST]]'
  6625. + ;;
  6626. +osf*)
  6627. + symcode='[[BCDEGQRST]]'
  6628. + ;;
  6629. +solaris* | sysv5*)
  6630. + symcode='[[BDRT]]'
  6631. + ;;
  6632. +sysv4)
  6633. + symcode='[[DFNSTU]]'
  6634. + ;;
  6635. +esac
  6636. +
  6637. +# Handle CRLF in mingw tool chain
  6638. +opt_cr=
  6639. +case $build_os in
  6640. +mingw*)
  6641. + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6642. + ;;
  6643. +esac
  6644. -# Library versioning type.
  6645. -version_type=$version_type
  6646. +# If we're using GNU nm, then use its standard symbol codes.
  6647. +case `$NM -V 2>&1` in
  6648. +*GNU* | *'with BFD'*)
  6649. + symcode='[[ABCDGIRSTW]]' ;;
  6650. +esac
  6651. -# Format of library name prefix.
  6652. -libname_spec=$lt_libname_spec
  6653. +# Try without a prefix undercore, then with it.
  6654. +for ac_symprfx in "" "_"; do
  6655. -# List of archive names. First name is the real one, the rest are links.
  6656. -# The last name is the one that the linker finds with -lNAME.
  6657. -library_names_spec=$lt_library_names_spec
  6658. + # Write the raw and C identifiers.
  6659. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  6660. -# The coded name of the library, if different from the real name.
  6661. -soname_spec=$lt_soname_spec
  6662. + # Check to see that the pipe works correctly.
  6663. + pipe_works=no
  6664. -# Commands used to build and install an old-style archive.
  6665. -RANLIB=$lt_RANLIB
  6666. -old_archive_cmds=$lt_old_archive_cmds
  6667. -old_postinstall_cmds=$lt_old_postinstall_cmds
  6668. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  6669. + rm -f conftest*
  6670. + cat > conftest.$ac_ext <<EOF
  6671. +#ifdef __cplusplus
  6672. +extern "C" {
  6673. +#endif
  6674. +char nm_test_var;
  6675. +void nm_test_func(){}
  6676. +#ifdef __cplusplus
  6677. +}
  6678. +#endif
  6679. +int main(){nm_test_var='a';nm_test_func();return(0);}
  6680. +EOF
  6681. -# Create an old-style archive from a shared archive.
  6682. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  6683. + if AC_TRY_EVAL(ac_compile); then
  6684. + # Now try to grab the symbols.
  6685. + nlist=conftest.nm
  6686. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  6687. + # Try sorting and uniquifying the output.
  6688. + if sort "$nlist" | uniq > "$nlist"T; then
  6689. + mv -f "$nlist"T "$nlist"
  6690. + else
  6691. + rm -f "$nlist"T
  6692. + fi
  6693. -# Create a temporary old-style archive to link instead of a shared archive.
  6694. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  6695. + # Make sure that we snagged all the symbols we need.
  6696. + if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6697. + if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6698. + cat <<EOF > conftest.$ac_ext
  6699. +#ifdef __cplusplus
  6700. +extern "C" {
  6701. +#endif
  6702. -# Commands used to build and install a shared archive.
  6703. -archive_cmds=$lt_archive_cmds
  6704. -archive_expsym_cmds=$lt_archive_expsym_cmds
  6705. -postinstall_cmds=$lt_postinstall_cmds
  6706. -postuninstall_cmds=$lt_postuninstall_cmds
  6707. +EOF
  6708. + # Now generate the symbol file.
  6709. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6710. -# Commands to strip libraries.
  6711. -old_striplib=$lt_old_striplib
  6712. -striplib=$lt_striplib
  6713. + cat <<EOF >> conftest.$ac_ext
  6714. +#if defined (__STDC__) && __STDC__
  6715. +# define lt_ptr_t void *
  6716. +#else
  6717. +# define lt_ptr_t char *
  6718. +# define const
  6719. +#endif
  6720. -# Method to check whether dependent libraries are shared objects.
  6721. -deplibs_check_method=$lt_deplibs_check_method
  6722. +/* The mapping between symbol names and symbols. */
  6723. +const struct {
  6724. + const char *name;
  6725. + lt_ptr_t address;
  6726. +}
  6727. +lt_preloaded_symbols[[]] =
  6728. +{
  6729. +EOF
  6730. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6731. + cat <<\EOF >> conftest.$ac_ext
  6732. + {0, (lt_ptr_t) 0}
  6733. +};
  6734. -# Command to use when deplibs_check_method == file_magic.
  6735. -file_magic_cmd=$lt_file_magic_cmd
  6736. +#ifdef __cplusplus
  6737. +}
  6738. +#endif
  6739. +EOF
  6740. + # Now try linking the two files.
  6741. + mv conftest.$ac_objext conftstm.$ac_objext
  6742. + lt_save_LIBS="$LIBS"
  6743. + lt_save_CFLAGS="$CFLAGS"
  6744. + LIBS="conftstm.$ac_objext"
  6745. + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  6746. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  6747. + pipe_works=yes
  6748. + fi
  6749. + LIBS="$lt_save_LIBS"
  6750. + CFLAGS="$lt_save_CFLAGS"
  6751. + else
  6752. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  6753. + fi
  6754. + else
  6755. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  6756. + fi
  6757. + else
  6758. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  6759. + fi
  6760. + else
  6761. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  6762. + cat conftest.$ac_ext >&5
  6763. + fi
  6764. + rm -f conftest* conftst*
  6765. -# Flag that allows shared libraries with undefined symbols to be built.
  6766. -allow_undefined_flag=$lt_allow_undefined_flag
  6767. + # Do not use the global_symbol_pipe unless it works.
  6768. + if test "$pipe_works" = yes; then
  6769. + break
  6770. + else
  6771. + lt_cv_sys_global_symbol_pipe=
  6772. + fi
  6773. +done
  6774. +])
  6775. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6776. + lt_cv_sys_global_symbol_to_cdecl=
  6777. +fi
  6778. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6779. + AC_MSG_RESULT(failed)
  6780. +else
  6781. + AC_MSG_RESULT(ok)
  6782. +fi
  6783. +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  6784. -# Flag that forces no undefined symbols.
  6785. -no_undefined_flag=$lt_no_undefined_flag
  6786. -# Commands used to finish a libtool library installation in a directory.
  6787. -finish_cmds=$lt_finish_cmds
  6788. +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  6789. +# ---------------------------------------
  6790. +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  6791. +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  6792. +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  6793. +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  6794. -# Same as above, but a single script fragment to be evaled but not shown.
  6795. -finish_eval=$lt_finish_eval
  6796. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  6797. + ifelse([$1],[CXX],[
  6798. + # C++ specific cases for pic, static, wl, etc.
  6799. + if test "$GXX" = yes; then
  6800. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6801. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6802. -# Take the output of nm and produce a listing of raw symbols and C names.
  6803. -global_symbol_pipe=$lt_global_symbol_pipe
  6804. + case $host_os in
  6805. + aix*)
  6806. + # All AIX code is PIC.
  6807. + if test "$host_cpu" = ia64; then
  6808. + # AIX 5 now supports IA64 processor
  6809. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6810. + fi
  6811. + ;;
  6812. + amigaos*)
  6813. + # FIXME: we need at least 68020 code to build shared libraries, but
  6814. + # adding the `-m68020' flag to GCC prevents building anything better,
  6815. + # like `-m68040'.
  6816. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  6817. + ;;
  6818. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6819. + # PIC is the default for these OSes.
  6820. + ;;
  6821. + mingw* | os2* | pw32*)
  6822. + # This hack is so that the source file can tell whether it is being
  6823. + # built for inclusion in a dll (and should export symbols for example).
  6824. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  6825. + ;;
  6826. + darwin* | rhapsody*)
  6827. + # PIC is the default on this platform
  6828. + # Common symbols not allowed in MH_DYLIB files
  6829. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  6830. + ;;
  6831. + *djgpp*)
  6832. + # DJGPP does not support shared libraries at all
  6833. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  6834. + ;;
  6835. + sysv4*MP*)
  6836. + if test -d /usr/nec; then
  6837. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  6838. + fi
  6839. + ;;
  6840. + hpux*)
  6841. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6842. + # not for PA HP-UX.
  6843. + case "$host_cpu" in
  6844. + hppa*64*|ia64*)
  6845. + ;;
  6846. + *)
  6847. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6848. + ;;
  6849. + esac
  6850. + ;;
  6851. + *)
  6852. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6853. + ;;
  6854. + esac
  6855. + else
  6856. + case $host_os in
  6857. + aix4* | aix5*)
  6858. + # All AIX code is PIC.
  6859. + if test "$host_cpu" = ia64; then
  6860. + # AIX 5 now supports IA64 processor
  6861. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6862. + else
  6863. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  6864. + fi
  6865. + ;;
  6866. + chorus*)
  6867. + case $cc_basename in
  6868. + cxch68)
  6869. + # Green Hills C++ Compiler
  6870. + # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  6871. + ;;
  6872. + esac
  6873. + ;;
  6874. + dgux*)
  6875. + case $cc_basename in
  6876. + ec++)
  6877. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6878. + ;;
  6879. + ghcx)
  6880. + # Green Hills C++ Compiler
  6881. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6882. + ;;
  6883. + *)
  6884. + ;;
  6885. + esac
  6886. + ;;
  6887. + freebsd* | kfreebsd*-gnu)
  6888. + # FreeBSD uses GNU C++
  6889. + ;;
  6890. + hpux9* | hpux10* | hpux11*)
  6891. + case $cc_basename in
  6892. + CC)
  6893. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6894. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  6895. + if test "$host_cpu" != ia64; then
  6896. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6897. + fi
  6898. + ;;
  6899. + aCC)
  6900. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6901. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  6902. + case "$host_cpu" in
  6903. + hppa*64*|ia64*)
  6904. + # +Z the default
  6905. + ;;
  6906. + *)
  6907. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6908. + ;;
  6909. + esac
  6910. + ;;
  6911. + *)
  6912. + ;;
  6913. + esac
  6914. + ;;
  6915. + irix5* | irix6* | nonstopux*)
  6916. + case $cc_basename in
  6917. + CC)
  6918. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6919. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6920. + # CC pic flag -KPIC is the default.
  6921. + ;;
  6922. + *)
  6923. + ;;
  6924. + esac
  6925. + ;;
  6926. + linux*)
  6927. + case $cc_basename in
  6928. + KCC)
  6929. + # KAI C++ Compiler
  6930. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  6931. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6932. + ;;
  6933. + icpc)
  6934. + # Intel C++
  6935. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6936. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6937. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6938. + ;;
  6939. + cxx)
  6940. + # Compaq C++
  6941. + # Make sure the PIC flag is empty. It appears that all Alpha
  6942. + # Linux and Compaq Tru64 Unix objects are PIC.
  6943. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  6944. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6945. + ;;
  6946. + *)
  6947. + ;;
  6948. + esac
  6949. + ;;
  6950. + lynxos*)
  6951. + ;;
  6952. + m88k*)
  6953. + ;;
  6954. + mvs*)
  6955. + case $cc_basename in
  6956. + cxx)
  6957. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  6958. + ;;
  6959. + *)
  6960. + ;;
  6961. + esac
  6962. + ;;
  6963. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  6964. + ;;
  6965. + osf3* | osf4* | osf5*)
  6966. + case $cc_basename in
  6967. + KCC)
  6968. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  6969. + ;;
  6970. + RCC)
  6971. + # Rational C++ 2.4.1
  6972. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6973. + ;;
  6974. + cxx)
  6975. + # Digital/Compaq C++
  6976. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6977. + # Make sure the PIC flag is empty. It appears that all Alpha
  6978. + # Linux and Compaq Tru64 Unix objects are PIC.
  6979. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  6980. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6981. + ;;
  6982. + *)
  6983. + ;;
  6984. + esac
  6985. + ;;
  6986. + psos*)
  6987. + ;;
  6988. + sco*)
  6989. + case $cc_basename in
  6990. + CC)
  6991. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6992. + ;;
  6993. + *)
  6994. + ;;
  6995. + esac
  6996. + ;;
  6997. + solaris*)
  6998. + case $cc_basename in
  6999. + CC)
  7000. + # Sun C++ 4.2, 5.x and Centerline C++
  7001. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7002. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7003. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7004. + ;;
  7005. + gcx)
  7006. + # Green Hills C++ Compiler
  7007. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7008. + ;;
  7009. + *)
  7010. + ;;
  7011. + esac
  7012. + ;;
  7013. + sunos4*)
  7014. + case $cc_basename in
  7015. + CC)
  7016. + # Sun C++ 4.x
  7017. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7018. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7019. + ;;
  7020. + lcc)
  7021. + # Lucid
  7022. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7023. + ;;
  7024. + *)
  7025. + ;;
  7026. + esac
  7027. + ;;
  7028. + tandem*)
  7029. + case $cc_basename in
  7030. + NCC)
  7031. + # NonStop-UX NCC 3.20
  7032. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7033. + ;;
  7034. + *)
  7035. + ;;
  7036. + esac
  7037. + ;;
  7038. + unixware*)
  7039. + ;;
  7040. + vxworks*)
  7041. + ;;
  7042. + *)
  7043. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7044. + ;;
  7045. + esac
  7046. + fi
  7047. +],
  7048. +[
  7049. + if test "$GCC" = yes; then
  7050. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7051. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7052. -# Transform the output of nm in a proper C declaration
  7053. -global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  7054. + case $host_os in
  7055. + aix*)
  7056. + # All AIX code is PIC.
  7057. + if test "$host_cpu" = ia64; then
  7058. + # AIX 5 now supports IA64 processor
  7059. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7060. + fi
  7061. + ;;
  7062. -# Transform the output of nm in a C name address pair
  7063. -global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  7064. + amigaos*)
  7065. + # FIXME: we need at least 68020 code to build shared libraries, but
  7066. + # adding the `-m68020' flag to GCC prevents building anything better,
  7067. + # like `-m68040'.
  7068. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7069. + ;;
  7070. -# This is the shared library runtime path variable.
  7071. -runpath_var=$runpath_var
  7072. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7073. + # PIC is the default for these OSes.
  7074. + ;;
  7075. -# This is the shared library path variable.
  7076. -shlibpath_var=$shlibpath_var
  7077. + mingw* | pw32* | os2*)
  7078. + # This hack is so that the source file can tell whether it is being
  7079. + # built for inclusion in a dll (and should export symbols for example).
  7080. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  7081. + ;;
  7082. -# Is shlibpath searched before the hard-coded library search path?
  7083. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  7084. + darwin* | rhapsody*)
  7085. + # PIC is the default on this platform
  7086. + # Common symbols not allowed in MH_DYLIB files
  7087. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7088. + ;;
  7089. -# How to hardcode a shared library path into an executable.
  7090. -hardcode_action=$hardcode_action
  7091. + msdosdjgpp*)
  7092. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  7093. + # on systems that don't support them.
  7094. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7095. + enable_shared=no
  7096. + ;;
  7097. -# Whether we should hardcode library paths into libraries.
  7098. -hardcode_into_libs=$hardcode_into_libs
  7099. + sysv4*MP*)
  7100. + if test -d /usr/nec; then
  7101. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7102. + fi
  7103. + ;;
  7104. -# Flag to hardcode \$libdir into a binary during linking.
  7105. -# This must work even if \$libdir does not exist.
  7106. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  7107. + hpux*)
  7108. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7109. + # not for PA HP-UX.
  7110. + case "$host_cpu" in
  7111. + hppa*64*|ia64*)
  7112. + # +Z the default
  7113. + ;;
  7114. + *)
  7115. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7116. + ;;
  7117. + esac
  7118. + ;;
  7119. -# Whether we need a single -rpath flag with a separated argument.
  7120. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  7121. + *)
  7122. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7123. + ;;
  7124. + esac
  7125. + else
  7126. + # PORTME Check for flag to pass linker flags through the system compiler.
  7127. + case $host_os in
  7128. + aix*)
  7129. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7130. + if test "$host_cpu" = ia64; then
  7131. + # AIX 5 now supports IA64 processor
  7132. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7133. + else
  7134. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7135. + fi
  7136. + ;;
  7137. -# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  7138. -# resulting binary.
  7139. -hardcode_direct=$hardcode_direct
  7140. + mingw* | pw32* | os2*)
  7141. + # This hack is so that the source file can tell whether it is being
  7142. + # built for inclusion in a dll (and should export symbols for example).
  7143. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  7144. + ;;
  7145. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  7146. -# resulting binary.
  7147. -hardcode_minus_L=$hardcode_minus_L
  7148. + hpux9* | hpux10* | hpux11*)
  7149. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7150. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7151. + # not for PA HP-UX.
  7152. + case "$host_cpu" in
  7153. + hppa*64*|ia64*)
  7154. + # +Z the default
  7155. + ;;
  7156. + *)
  7157. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7158. + ;;
  7159. + esac
  7160. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7161. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7162. + ;;
  7163. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  7164. -# the resulting binary.
  7165. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  7166. + irix5* | irix6* | nonstopux*)
  7167. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7168. + # PIC (with -KPIC) is the default.
  7169. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7170. + ;;
  7171. -# Variables whose values should be saved in libtool wrapper scripts and
  7172. -# restored at relink time.
  7173. -variables_saved_for_relink="$variables_saved_for_relink"
  7174. + newsos6)
  7175. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7176. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7177. + ;;
  7178. -# Whether libtool must link a program against all its dependency libraries.
  7179. -link_all_deplibs=$link_all_deplibs
  7180. + linux*)
  7181. + case $CC in
  7182. + icc* | ecc*)
  7183. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7184. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7185. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7186. + ;;
  7187. + ccc*)
  7188. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7189. + # All Alpha code is PIC.
  7190. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7191. + ;;
  7192. + esac
  7193. + ;;
  7194. -# Compile-time system search path for libraries
  7195. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  7196. + osf3* | osf4* | osf5*)
  7197. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7198. + # All OSF/1 code is PIC.
  7199. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7200. + ;;
  7201. -# Run-time system search path for libraries
  7202. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  7203. + sco3.2v5*)
  7204. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
  7205. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
  7206. + ;;
  7207. -# Fix the shell variable \$srcfile for the compiler.
  7208. -fix_srcfile_path="$fix_srcfile_path"
  7209. + solaris*)
  7210. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7211. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7212. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7213. + ;;
  7214. -# Set to yes if exported symbols are required.
  7215. -always_export_symbols=$always_export_symbols
  7216. + sunos4*)
  7217. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7218. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7219. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7220. + ;;
  7221. -# The commands to list exported symbols.
  7222. -export_symbols_cmds=$lt_export_symbols_cmds
  7223. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7224. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7225. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7226. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7227. + ;;
  7228. -# The commands to extract the exported symbol list from a shared archive.
  7229. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  7230. + sysv4*MP*)
  7231. + if test -d /usr/nec ;then
  7232. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  7233. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7234. + fi
  7235. + ;;
  7236. -# Symbols that should not be listed in the preloaded symbols.
  7237. -exclude_expsyms=$lt_exclude_expsyms
  7238. + uts4*)
  7239. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7240. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7241. + ;;
  7242. -# Symbols that must always be exported.
  7243. -include_expsyms=$lt_include_expsyms
  7244. + *)
  7245. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7246. + ;;
  7247. + esac
  7248. + fi
  7249. +])
  7250. +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  7251. -# ### END LIBTOOL CONFIG
  7252. +#
  7253. +# Check to make sure the PIC flag actually works.
  7254. +#
  7255. +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  7256. + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  7257. + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  7258. + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  7259. + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  7260. + "" | " "*) ;;
  7261. + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  7262. + esac],
  7263. + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  7264. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  7265. +fi
  7266. +case "$host_os" in
  7267. + # For platforms which do not support PIC, -DPIC is meaningless:
  7268. + *djgpp*)
  7269. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  7270. + ;;
  7271. + *)
  7272. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  7273. + ;;
  7274. +esac
  7275. +])
  7276. -__EOF__
  7277. +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  7278. +# ------------------------------------
  7279. +# See if the linker supports building shared libraries.
  7280. +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  7281. +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7282. +ifelse([$1],[CXX],[
  7283. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7284. case $host_os in
  7285. - aix3*)
  7286. - cat <<\EOF >> "${ofile}T"
  7287. -
  7288. -# AIX sometimes has problems with the GCC collect2 program. For some
  7289. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  7290. -# vanish in a puff of smoke.
  7291. -if test "X${COLLECT_NAMES+set}" != Xset; then
  7292. - COLLECT_NAMES=
  7293. - export COLLECT_NAMES
  7294. -fi
  7295. -EOF
  7296. + aix4* | aix5*)
  7297. + # If we're using GNU nm, then we don't want the "-C" option.
  7298. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7299. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7300. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  7301. + else
  7302. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  7303. + fi
  7304. ;;
  7305. + pw32*)
  7306. + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  7307. + ;;
  7308. + cygwin* | mingw*)
  7309. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  7310. + ;;
  7311. + linux*)
  7312. + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  7313. + ;;
  7314. + *)
  7315. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7316. + ;;
  7317. esac
  7318. +],[
  7319. + runpath_var=
  7320. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  7321. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7322. + _LT_AC_TAGVAR(archive_cmds, $1)=
  7323. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  7324. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  7325. + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  7326. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  7327. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  7328. + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  7329. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7330. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7331. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  7332. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  7333. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  7334. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7335. + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  7336. + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  7337. + _LT_AC_TAGVAR(module_cmds, $1)=
  7338. + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  7339. + _LT_AC_TAGVAR(always_export_symbols, $1)=no
  7340. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7341. + # include_expsyms should be a list of space-separated symbols to be *always*
  7342. + # included in the symbol list
  7343. + _LT_AC_TAGVAR(include_expsyms, $1)=
  7344. + # exclude_expsyms can be an extended regexp of symbols to exclude
  7345. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7346. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7347. + # as well as any symbol that contains `d'.
  7348. + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  7349. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7350. + # platforms (ab)use it in PIC code, but their linkers get confused if
  7351. + # the symbol is explicitly referenced. Since portable code cannot
  7352. + # rely on this symbol name, it's probably fine to never include it in
  7353. + # preloaded symbol tables.
  7354. + extract_expsyms_cmds=
  7355. case $host_os in
  7356. - cygwin* | mingw* | pw32* | os2*)
  7357. - cat <<'EOF' >> "${ofile}T"
  7358. - # This is a source program that is used to create dlls on Windows
  7359. - # Don't remove nor modify the starting and closing comments
  7360. -# /* ltdll.c starts here */
  7361. -# #define WIN32_LEAN_AND_MEAN
  7362. -# #include <windows.h>
  7363. -# #undef WIN32_LEAN_AND_MEAN
  7364. -# #include <stdio.h>
  7365. -#
  7366. -# #ifndef __CYGWIN__
  7367. -# # ifdef __CYGWIN32__
  7368. -# # define __CYGWIN__ __CYGWIN32__
  7369. -# # endif
  7370. -# #endif
  7371. -#
  7372. -# #ifdef __cplusplus
  7373. -# extern "C" {
  7374. -# #endif
  7375. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  7376. -# #ifdef __cplusplus
  7377. -# }
  7378. -# #endif
  7379. -#
  7380. -# #ifdef __CYGWIN__
  7381. -# #include <cygwin/cygwin_dll.h>
  7382. -# DECLARE_CYGWIN_DLL( DllMain );
  7383. -# #endif
  7384. -# HINSTANCE __hDllInstance_base;
  7385. -#
  7386. -# BOOL APIENTRY
  7387. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  7388. -# {
  7389. -# __hDllInstance_base = hInst;
  7390. -# return TRUE;
  7391. -# }
  7392. -# /* ltdll.c ends here */
  7393. - # This is a source program that is used to create import libraries
  7394. - # on Windows for dlls which lack them. Don't remove nor modify the
  7395. - # starting and closing comments
  7396. -# /* impgen.c starts here */
  7397. -# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  7398. -#
  7399. -# This file is part of GNU libtool.
  7400. -#
  7401. -# This program is free software; you can redistribute it and/or modify
  7402. -# it under the terms of the GNU General Public License as published by
  7403. -# the Free Software Foundation; either version 2 of the License, or
  7404. -# (at your option) any later version.
  7405. -#
  7406. -# This program is distributed in the hope that it will be useful,
  7407. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  7408. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  7409. -# GNU General Public License for more details.
  7410. -#
  7411. -# You should have received a copy of the GNU General Public License
  7412. -# along with this program; if not, write to the Free Software
  7413. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  7414. -# */
  7415. -#
  7416. -# #include <stdio.h> /* for printf() */
  7417. -# #include <unistd.h> /* for open(), lseek(), read() */
  7418. -# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  7419. -# #include <string.h> /* for strdup() */
  7420. -#
  7421. -# /* O_BINARY isn't required (or even defined sometimes) under Unix */
  7422. -# #ifndef O_BINARY
  7423. -# #define O_BINARY 0
  7424. -# #endif
  7425. -#
  7426. -# static unsigned int
  7427. -# pe_get16 (fd, offset)
  7428. -# int fd;
  7429. -# int offset;
  7430. -# {
  7431. -# unsigned char b[2];
  7432. -# lseek (fd, offset, SEEK_SET);
  7433. -# read (fd, b, 2);
  7434. -# return b[0] + (b[1]<<8);
  7435. -# }
  7436. -#
  7437. -# static unsigned int
  7438. -# pe_get32 (fd, offset)
  7439. -# int fd;
  7440. -# int offset;
  7441. -# {
  7442. -# unsigned char b[4];
  7443. -# lseek (fd, offset, SEEK_SET);
  7444. -# read (fd, b, 4);
  7445. -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  7446. -# }
  7447. -#
  7448. -# static unsigned int
  7449. -# pe_as32 (ptr)
  7450. -# void *ptr;
  7451. -# {
  7452. -# unsigned char *b = ptr;
  7453. -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  7454. -# }
  7455. -#
  7456. -# int
  7457. -# main (argc, argv)
  7458. -# int argc;
  7459. -# char *argv[];
  7460. -# {
  7461. -# int dll;
  7462. -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  7463. -# unsigned long export_rva, export_size, nsections, secptr, expptr;
  7464. -# unsigned long name_rvas, nexp;
  7465. -# unsigned char *expdata, *erva;
  7466. -# char *filename, *dll_name;
  7467. -#
  7468. -# filename = argv[1];
  7469. -#
  7470. -# dll = open(filename, O_RDONLY|O_BINARY);
  7471. -# if (dll < 1)
  7472. -# return 1;
  7473. -#
  7474. -# dll_name = filename;
  7475. -#
  7476. -# for (i=0; filename[i]; i++)
  7477. -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  7478. -# dll_name = filename + i +1;
  7479. -#
  7480. -# pe_header_offset = pe_get32 (dll, 0x3c);
  7481. -# opthdr_ofs = pe_header_offset + 4 + 20;
  7482. -# num_entries = pe_get32 (dll, opthdr_ofs + 92);
  7483. -#
  7484. -# if (num_entries < 1) /* no exports */
  7485. -# return 1;
  7486. -#
  7487. -# export_rva = pe_get32 (dll, opthdr_ofs + 96);
  7488. -# export_size = pe_get32 (dll, opthdr_ofs + 100);
  7489. -# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  7490. -# secptr = (pe_header_offset + 4 + 20 +
  7491. -# pe_get16 (dll, pe_header_offset + 4 + 16));
  7492. -#
  7493. -# expptr = 0;
  7494. -# for (i = 0; i < nsections; i++)
  7495. -# {
  7496. -# char sname[8];
  7497. -# unsigned long secptr1 = secptr + 40 * i;
  7498. -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  7499. -# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  7500. -# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  7501. -# lseek(dll, secptr1, SEEK_SET);
  7502. -# read(dll, sname, 8);
  7503. -# if (vaddr <= export_rva && vaddr+vsize > export_rva)
  7504. -# {
  7505. -# expptr = fptr + (export_rva - vaddr);
  7506. -# if (export_rva + export_size > vaddr + vsize)
  7507. -# export_size = vsize - (export_rva - vaddr);
  7508. -# break;
  7509. -# }
  7510. -# }
  7511. -#
  7512. -# expdata = (unsigned char*)malloc(export_size);
  7513. -# lseek (dll, expptr, SEEK_SET);
  7514. -# read (dll, expdata, export_size);
  7515. -# erva = expdata - export_rva;
  7516. -#
  7517. -# nexp = pe_as32 (expdata+24);
  7518. -# name_rvas = pe_as32 (expdata+32);
  7519. -#
  7520. -# printf ("EXPORTS\n");
  7521. -# for (i = 0; i<nexp; i++)
  7522. -# {
  7523. -# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  7524. -# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  7525. -# }
  7526. -#
  7527. -# return 0;
  7528. -# }
  7529. -# /* impgen.c ends here */
  7530. -
  7531. -EOF
  7532. + cygwin* | mingw* | pw32*)
  7533. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7534. + # When not using gcc, we currently assume that we are using
  7535. + # Microsoft Visual C++.
  7536. + if test "$GCC" != yes; then
  7537. + with_gnu_ld=no
  7538. + fi
  7539. + ;;
  7540. + openbsd*)
  7541. + with_gnu_ld=no
  7542. ;;
  7543. esac
  7544. - # We use sed instead of cat because bash on DJGPP gets confused if
  7545. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  7546. - # text mode, it properly converts lines to CR/LF. This bash problem
  7547. - # is reportedly fixed, but why not run on old versions too?
  7548. - sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  7549. + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  7550. + if test "$with_gnu_ld" = yes; then
  7551. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7552. + wlarc='${wl}'
  7553. - mv -f "${ofile}T" "$ofile" || \
  7554. - (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  7555. - chmod +x "$ofile"
  7556. -fi
  7557. + # See if GNU ld supports shared libraries.
  7558. + case $host_os in
  7559. + aix3* | aix4* | aix5*)
  7560. + # On AIX/PPC, the GNU linker is very broken
  7561. + if test "$host_cpu" != ia64; then
  7562. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7563. + cat <<EOF 1>&2
  7564. -])# _LT_AC_LTCONFIG_HACK
  7565. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7566. +*** to be unable to reliably create shared libraries on AIX.
  7567. +*** Therefore, libtool is disabling shared libraries support. If you
  7568. +*** really care for shared libraries, you may want to modify your PATH
  7569. +*** so that a non-GNU linker is found, and then restart.
  7570. -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
  7571. -AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
  7572. +EOF
  7573. + fi
  7574. + ;;
  7575. -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
  7576. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
  7577. + amigaos*)
  7578. + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7579. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7580. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7581. +
  7582. + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7583. + # that the semantics of dynamic libraries on AmigaOS, at least up
  7584. + # to version 4, is to share data among multiple programs linked
  7585. + # with the same dynamic library. Since this doesn't match the
  7586. + # behavior of shared libraries on other platforms, we can't use
  7587. + # them.
  7588. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7589. + ;;
  7590. -# AC_ENABLE_SHARED - implement the --enable-shared flag
  7591. -# Usage: AC_ENABLE_SHARED[(DEFAULT)]
  7592. -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  7593. -# `yes'.
  7594. -AC_DEFUN([AC_ENABLE_SHARED],
  7595. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  7596. -AC_ARG_ENABLE(shared,
  7597. -changequote(<<, >>)dnl
  7598. -<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
  7599. -changequote([, ])dnl
  7600. -[p=${PACKAGE-default}
  7601. -case $enableval in
  7602. -yes) enable_shared=yes ;;
  7603. -no) enable_shared=no ;;
  7604. -*)
  7605. - enable_shared=no
  7606. - # Look at the argument we got. We use all the common list separators.
  7607. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  7608. - for pkg in $enableval; do
  7609. - if test "X$pkg" = "X$p"; then
  7610. - enable_shared=yes
  7611. - fi
  7612. - done
  7613. - IFS="$ac_save_ifs"
  7614. - ;;
  7615. -esac],
  7616. -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
  7617. -])
  7618. + beos*)
  7619. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7620. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  7621. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7622. + # support --undefined. This deserves some investigation. FIXME
  7623. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7624. + else
  7625. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7626. + fi
  7627. + ;;
  7628. -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
  7629. -AC_DEFUN([AC_DISABLE_SHARED],
  7630. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  7631. -AC_ENABLE_SHARED(no)])
  7632. + cygwin* | mingw* | pw32*)
  7633. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7634. + # as there is no search path for DLLs.
  7635. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7636. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  7637. + _LT_AC_TAGVAR(always_export_symbols, $1)=no
  7638. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7639. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  7640. +
  7641. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7642. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7643. + # If the export-symbols file already is a .def file (1st line
  7644. + # is EXPORTS), use it as is; otherwise, prepend...
  7645. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7646. + cp $export_symbols $output_objdir/$soname.def;
  7647. + else
  7648. + echo EXPORTS > $output_objdir/$soname.def;
  7649. + cat $export_symbols >> $output_objdir/$soname.def;
  7650. + fi~
  7651. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7652. + else
  7653. + ld_shlibs=no
  7654. + fi
  7655. + ;;
  7656. -# AC_ENABLE_STATIC - implement the --enable-static flag
  7657. -# Usage: AC_ENABLE_STATIC[(DEFAULT)]
  7658. -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  7659. -# `yes'.
  7660. -AC_DEFUN([AC_ENABLE_STATIC],
  7661. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  7662. -AC_ARG_ENABLE(static,
  7663. -changequote(<<, >>)dnl
  7664. -<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
  7665. -changequote([, ])dnl
  7666. -[p=${PACKAGE-default}
  7667. -case $enableval in
  7668. -yes) enable_static=yes ;;
  7669. -no) enable_static=no ;;
  7670. -*)
  7671. - enable_static=no
  7672. - # Look at the argument we got. We use all the common list separators.
  7673. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  7674. - for pkg in $enableval; do
  7675. - if test "X$pkg" = "X$p"; then
  7676. - enable_static=yes
  7677. - fi
  7678. - done
  7679. - IFS="$ac_save_ifs"
  7680. - ;;
  7681. -esac],
  7682. -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
  7683. -])
  7684. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  7685. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7686. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7687. + wlarc=
  7688. + else
  7689. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7690. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7691. + fi
  7692. + ;;
  7693. -# AC_DISABLE_STATIC - set the default static flag to --disable-static
  7694. -AC_DEFUN([AC_DISABLE_STATIC],
  7695. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  7696. -AC_ENABLE_STATIC(no)])
  7697. + solaris* | sysv5*)
  7698. + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7699. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7700. + cat <<EOF 1>&2
  7701. +
  7702. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7703. +*** create shared libraries on Solaris systems. Therefore, libtool
  7704. +*** is disabling shared libraries support. We urge you to upgrade GNU
  7705. +*** binutils to release 2.9.1 or newer. Another option is to modify
  7706. +*** your PATH or compiler configuration so that the native linker is
  7707. +*** used, and then restart.
  7708. +EOF
  7709. + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7710. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7711. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7712. + else
  7713. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7714. + fi
  7715. + ;;
  7716. -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
  7717. -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
  7718. -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  7719. -# `yes'.
  7720. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  7721. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  7722. -AC_ARG_ENABLE(fast-install,
  7723. -changequote(<<, >>)dnl
  7724. -<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
  7725. -changequote([, ])dnl
  7726. -[p=${PACKAGE-default}
  7727. -case $enableval in
  7728. -yes) enable_fast_install=yes ;;
  7729. -no) enable_fast_install=no ;;
  7730. -*)
  7731. - enable_fast_install=no
  7732. - # Look at the argument we got. We use all the common list separators.
  7733. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  7734. - for pkg in $enableval; do
  7735. - if test "X$pkg" = "X$p"; then
  7736. - enable_fast_install=yes
  7737. + sunos4*)
  7738. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7739. + wlarc=
  7740. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7741. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7742. + ;;
  7743. +
  7744. + linux*)
  7745. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7746. + tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7747. + _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
  7748. + supports_anon_versioning=no
  7749. + case `$LD -v 2>/dev/null` in
  7750. + *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  7751. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7752. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7753. + *\ 2.11.*) ;; # other 2.11 versions
  7754. + *) supports_anon_versioning=yes ;;
  7755. + esac
  7756. + if test $supports_anon_versioning = yes; then
  7757. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  7758. +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7759. +$echo "local: *; };" >> $output_objdir/$libname.ver~
  7760. + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7761. + else
  7762. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
  7763. + fi
  7764. + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  7765. + else
  7766. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7767. fi
  7768. - done
  7769. - IFS="$ac_save_ifs"
  7770. - ;;
  7771. -esac],
  7772. -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
  7773. -])
  7774. + ;;
  7775. -# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
  7776. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  7777. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  7778. -AC_ENABLE_FAST_INSTALL(no)])
  7779. + *)
  7780. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7781. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7782. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7783. + else
  7784. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7785. + fi
  7786. + ;;
  7787. + esac
  7788. +
  7789. + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
  7790. + runpath_var=LD_RUN_PATH
  7791. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  7792. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7793. + # ancient GNU ld didn't support --whole-archive et. al.
  7794. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7795. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7796. + else
  7797. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  7798. + fi
  7799. + fi
  7800. + else
  7801. + # PORTME fill in a description of your system's linker (not GNU ld)
  7802. + case $host_os in
  7803. + aix3*)
  7804. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  7805. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  7806. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  7807. + # Note: this linker hardcodes the directories in LIBPATH if there
  7808. + # are no directories specified by -L.
  7809. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7810. + if test "$GCC" = yes && test -z "$link_static_flag"; then
  7811. + # Neither direct hardcoding nor static linking is supported with a
  7812. + # broken collect2.
  7813. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  7814. + fi
  7815. + ;;
  7816. +
  7817. + aix4* | aix5*)
  7818. + if test "$host_cpu" = ia64; then
  7819. + # On IA64, the linker does run time linking by default, so we don't
  7820. + # have to do anything special.
  7821. + aix_use_runtimelinking=no
  7822. + exp_sym_flag='-Bexport'
  7823. + no_entry_flag=""
  7824. + else
  7825. + # If we're using GNU nm, then we don't want the "-C" option.
  7826. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7827. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7828. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  7829. + else
  7830. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  7831. + fi
  7832. + aix_use_runtimelinking=no
  7833. -# AC_LIBTOOL_PICMODE - implement the --with-pic flag
  7834. -# Usage: AC_LIBTOOL_PICMODE[(MODE)]
  7835. -# Where MODE is either `yes' or `no'. If omitted, it defaults to
  7836. -# `both'.
  7837. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  7838. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  7839. -pic_mode=ifelse($#,1,$1,default)])
  7840. + # Test if we are trying to use run time linking or normal
  7841. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7842. + # need to do runtime linking.
  7843. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  7844. + for ld_flag in $LDFLAGS; do
  7845. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7846. + aix_use_runtimelinking=yes
  7847. + break
  7848. + fi
  7849. + done
  7850. + esac
  7851. + exp_sym_flag='-bexport'
  7852. + no_entry_flag='-bnoentry'
  7853. + fi
  7854. -# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
  7855. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  7856. -[AC_MSG_CHECKING([for $1])
  7857. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  7858. -[case $MAGIC_CMD in
  7859. - /*)
  7860. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7861. - ;;
  7862. - ?:/*)
  7863. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  7864. - ;;
  7865. - *)
  7866. - ac_save_MAGIC_CMD="$MAGIC_CMD"
  7867. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  7868. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  7869. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  7870. -dnl not every word. This closes a longstanding sh security hole.
  7871. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  7872. - for ac_dir in $ac_dummy; do
  7873. - test -z "$ac_dir" && ac_dir=.
  7874. - if test -f $ac_dir/$1; then
  7875. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  7876. - if test -n "$file_magic_test_file"; then
  7877. - case $deplibs_check_method in
  7878. - "file_magic "*)
  7879. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  7880. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7881. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7882. - egrep "$file_magic_regex" > /dev/null; then
  7883. - :
  7884. + # When large executables or shared objects are built, AIX ld can
  7885. + # have problems creating the table of contents. If linking a library
  7886. + # or program results in "error TOC overflow" add -mminimal-toc to
  7887. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7888. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7889. +
  7890. + _LT_AC_TAGVAR(archive_cmds, $1)=''
  7891. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7892. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  7893. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  7894. +
  7895. + if test "$GCC" = yes; then
  7896. + case $host_os in aix4.[012]|aix4.[012].*)
  7897. + # We only want to do this on AIX 4.2 and lower, the check
  7898. + # below for broken collect2 doesn't work under 4.3+
  7899. + collect2name=`${CC} -print-prog-name=collect2`
  7900. + if test -f "$collect2name" && \
  7901. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  7902. + then
  7903. + # We have reworked collect2
  7904. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7905. else
  7906. - cat <<EOF 1>&2
  7907. -
  7908. -*** Warning: the command libtool uses to detect shared libraries,
  7909. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  7910. -*** The result is that libtool may fail to recognize shared libraries
  7911. -*** as such. This will affect the creation of libtool libraries that
  7912. -*** depend on shared libraries, but programs linked with such libtool
  7913. -*** libraries will work regardless of this problem. Nevertheless, you
  7914. -*** may want to report the problem to your system manager and/or to
  7915. -*** bug-libtool@gnu.org
  7916. -
  7917. -EOF
  7918. - fi ;;
  7919. + # We have old collect2
  7920. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  7921. + # It fails to find uninstalled libraries when the uninstalled
  7922. + # path is not listed in the libpath. Setting hardcode_minus_L
  7923. + # to unsupported forces relinking
  7924. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7925. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7926. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  7927. + fi
  7928. esac
  7929. + shared_flag='-shared'
  7930. + else
  7931. + # not using gcc
  7932. + if test "$host_cpu" = ia64; then
  7933. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7934. + # chokes on -Wl,-G. The following line is correct:
  7935. + shared_flag='-G'
  7936. + else
  7937. + if test "$aix_use_runtimelinking" = yes; then
  7938. + shared_flag='${wl}-G'
  7939. + else
  7940. + shared_flag='${wl}-bM:SRE'
  7941. + fi
  7942. + fi
  7943. fi
  7944. - break
  7945. - fi
  7946. - done
  7947. - IFS="$ac_save_ifs"
  7948. - MAGIC_CMD="$ac_save_MAGIC_CMD"
  7949. - ;;
  7950. -esac])
  7951. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7952. -if test -n "$MAGIC_CMD"; then
  7953. - AC_MSG_RESULT($MAGIC_CMD)
  7954. -else
  7955. - AC_MSG_RESULT(no)
  7956. -fi
  7957. -])
  7958. + # It seems that -bexpall does not export symbols beginning with
  7959. + # underscore (_), so it is better to generate a list of symbols to export.
  7960. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  7961. + if test "$aix_use_runtimelinking" = yes; then
  7962. + # Warning - without using the other runtime loading flags (-brtl),
  7963. + # -berok will link without error, but may produce a broken library.
  7964. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  7965. + # Determine the default libpath from the value encoded in an empty executable.
  7966. + _LT_AC_SYS_LIBPATH_AIX
  7967. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7968. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7969. + else
  7970. + if test "$host_cpu" = ia64; then
  7971. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  7972. + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  7973. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  7974. + else
  7975. + # Determine the default libpath from the value encoded in an empty executable.
  7976. + _LT_AC_SYS_LIBPATH_AIX
  7977. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7978. + # Warning - without using the other run time loading flags,
  7979. + # -berok will link without error, but may produce a broken library.
  7980. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  7981. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  7982. + # -bexpall does not export symbols beginning with underscore (_)
  7983. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  7984. + # Exported symbols can be pulled into shared objects from archives
  7985. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  7986. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  7987. + # This is similar to how AIX traditionally builds it's shared libraries.
  7988. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7989. + fi
  7990. + fi
  7991. + ;;
  7992. -# AC_PATH_MAGIC - find a file program which can recognise a shared library
  7993. -AC_DEFUN([AC_PATH_MAGIC],
  7994. -[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
  7995. -AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
  7996. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  7997. - if test -n "$ac_tool_prefix"; then
  7998. - AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
  7999. - else
  8000. - MAGIC_CMD=:
  8001. - fi
  8002. -fi
  8003. -])
  8004. + amigaos*)
  8005. + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8006. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8007. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  8008. + # see comment about different semantics on the GNU ld section
  8009. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  8010. + ;;
  8011. + bsdi4*)
  8012. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  8013. + ;;
  8014. -# AC_PROG_LD - find the path to the GNU or non-GNU linker
  8015. -AC_DEFUN([AC_PROG_LD],
  8016. -[AC_ARG_WITH(gnu-ld,
  8017. -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
  8018. -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  8019. -AC_REQUIRE([AC_PROG_CC])dnl
  8020. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  8021. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  8022. -AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
  8023. -ac_prog=ld
  8024. -if test "$GCC" = yes; then
  8025. - # Check if gcc -print-prog-name=ld gives a path.
  8026. - AC_MSG_CHECKING([for ld used by GCC])
  8027. - case $host in
  8028. - *-*-mingw*)
  8029. - # gcc leaves a trailing carriage return which upsets mingw
  8030. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8031. - *)
  8032. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8033. - esac
  8034. - case $ac_prog in
  8035. - # Accept absolute paths.
  8036. - [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
  8037. - re_direlt='/[[^/]][[^/]]*/\.\./'
  8038. - # Canonicalize the path of ld
  8039. - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8040. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8041. - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8042. - done
  8043. - test -z "$LD" && LD="$ac_prog"
  8044. + cygwin* | mingw* | pw32*)
  8045. + # When not using gcc, we currently assume that we are using
  8046. + # Microsoft Visual C++.
  8047. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  8048. + # no search path for DLLs.
  8049. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  8050. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  8051. + # Tell ltmain to make .lib files, not .a files.
  8052. + libext=lib
  8053. + # Tell ltmain to make .dll files, not .so files.
  8054. + shrext_cmds=".dll"
  8055. + # FIXME: Setting linknames here is a bad hack.
  8056. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8057. + # The linker will automatically build a .lib file if we build a DLL.
  8058. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  8059. + # FIXME: Should let the user specify the lib program.
  8060. + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  8061. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  8062. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8063. ;;
  8064. - "")
  8065. - # If it fails, then pretend we aren't using GCC.
  8066. - ac_prog=ld
  8067. - ;;
  8068. - *)
  8069. - # If it is relative, then search for the first ld in PATH.
  8070. - with_gnu_ld=unknown
  8071. - ;;
  8072. - esac
  8073. -elif test "$with_gnu_ld" = yes; then
  8074. - AC_MSG_CHECKING([for GNU ld])
  8075. -else
  8076. - AC_MSG_CHECKING([for non-GNU ld])
  8077. -fi
  8078. -AC_CACHE_VAL(lt_cv_path_LD,
  8079. -[if test -z "$LD"; then
  8080. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8081. - for ac_dir in $PATH; do
  8082. - test -z "$ac_dir" && ac_dir=.
  8083. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8084. - lt_cv_path_LD="$ac_dir/$ac_prog"
  8085. - # Check to see if the program is GNU ld. I'd rather use --version,
  8086. - # but apparently some GNU ld's only accept -v.
  8087. - # Break only if it was the GNU/non-GNU ld that we prefer.
  8088. - if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  8089. - test "$with_gnu_ld" != no && break
  8090. +
  8091. + darwin* | rhapsody*)
  8092. + if test "$GXX" = yes ; then
  8093. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  8094. + case "$host_os" in
  8095. + rhapsody* | darwin1.[[012]])
  8096. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  8097. + ;;
  8098. + *) # Darwin 1.3 on
  8099. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  8100. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  8101. else
  8102. - test "$with_gnu_ld" != yes && break
  8103. + case ${MACOSX_DEPLOYMENT_TARGET} in
  8104. + 10.[[012]])
  8105. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  8106. + ;;
  8107. + 10.*)
  8108. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  8109. + ;;
  8110. + esac
  8111. fi
  8112. + ;;
  8113. + esac
  8114. + lt_int_apple_cc_single_mod=no
  8115. + output_verbose_link_cmd='echo'
  8116. + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  8117. + lt_int_apple_cc_single_mod=yes
  8118. + fi
  8119. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8120. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8121. + else
  8122. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8123. + fi
  8124. + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8125. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  8126. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8127. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8128. + else
  8129. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8130. + fi
  8131. + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8132. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  8133. + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  8134. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  8135. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  8136. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  8137. + else
  8138. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  8139. fi
  8140. - done
  8141. - IFS="$ac_save_ifs"
  8142. -else
  8143. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  8144. -fi])
  8145. -LD="$lt_cv_path_LD"
  8146. -if test -n "$LD"; then
  8147. - AC_MSG_RESULT($LD)
  8148. -else
  8149. - AC_MSG_RESULT(no)
  8150. -fi
  8151. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  8152. -AC_PROG_LD_GNU
  8153. -])
  8154. + ;;
  8155. -# AC_PROG_LD_GNU -
  8156. -AC_DEFUN([AC_PROG_LD_GNU],
  8157. -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  8158. -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8159. -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  8160. - lt_cv_prog_gnu_ld=yes
  8161. -else
  8162. - lt_cv_prog_gnu_ld=no
  8163. -fi])
  8164. -with_gnu_ld=$lt_cv_prog_gnu_ld
  8165. -])
  8166. + dgux*)
  8167. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8168. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8169. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8170. + ;;
  8171. -# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
  8172. -# -- PORTME Some linkers may need a different reload flag.
  8173. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  8174. -[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
  8175. -[lt_cv_ld_reload_flag='-r'])
  8176. -reload_flag=$lt_cv_ld_reload_flag
  8177. -test -n "$reload_flag" && reload_flag=" $reload_flag"
  8178. -])
  8179. + freebsd1*)
  8180. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  8181. + ;;
  8182. -# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
  8183. -# -- PORTME fill in with the dynamic library characteristics
  8184. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  8185. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  8186. -lt_cv_deplibs_check_method,
  8187. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  8188. -lt_cv_file_magic_test_file=
  8189. -lt_cv_deplibs_check_method='unknown'
  8190. -# Need to set the preceding variable on all platforms that support
  8191. -# interlibrary dependencies.
  8192. -# 'none' -- dependencies not supported.
  8193. -# `unknown' -- same as none, but documents that we really don't know.
  8194. -# 'pass_all' -- all dependencies passed with no checks.
  8195. -# 'test_compile' -- check by making test program.
  8196. -# 'file_magic [[regex]]' -- check by looking for files in library path
  8197. -# which responds to the $file_magic_cmd with a given egrep regex.
  8198. -# If you have `file' or equivalent on your system and you're not sure
  8199. -# whether `pass_all' will *always* work, you probably want this one.
  8200. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8201. + # support. Future versions do this automatically, but an explicit c++rt0.o
  8202. + # does not break anything, and helps significantly (at the cost of a little
  8203. + # extra space).
  8204. + freebsd2.2*)
  8205. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8206. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8207. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8208. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8209. + ;;
  8210. -case $host_os in
  8211. -aix4* | aix5*)
  8212. - lt_cv_deplibs_check_method=pass_all
  8213. - ;;
  8214. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8215. + freebsd2*)
  8216. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8217. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8218. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  8219. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8220. + ;;
  8221. -beos*)
  8222. - lt_cv_deplibs_check_method=pass_all
  8223. - ;;
  8224. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8225. + freebsd* | kfreebsd*-gnu)
  8226. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8227. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8228. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8229. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8230. + ;;
  8231. -bsdi4*)
  8232. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  8233. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  8234. - lt_cv_file_magic_test_file=/shlib/libc.so
  8235. - ;;
  8236. + hpux9*)
  8237. + if test "$GCC" = yes; then
  8238. + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8239. + else
  8240. + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8241. + fi
  8242. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8243. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  8244. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8245. +
  8246. + # hardcode_minus_L: Not really in the search PATH,
  8247. + # but as the default location of the library.
  8248. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  8249. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8250. + ;;
  8251. -cygwin* | mingw* | pw32*)
  8252. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  8253. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  8254. - ;;
  8255. + hpux10* | hpux11*)
  8256. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8257. + case "$host_cpu" in
  8258. + hppa*64*|ia64*)
  8259. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8260. + ;;
  8261. + *)
  8262. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8263. + ;;
  8264. + esac
  8265. + else
  8266. + case "$host_cpu" in
  8267. + hppa*64*|ia64*)
  8268. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  8269. + ;;
  8270. + *)
  8271. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8272. + ;;
  8273. + esac
  8274. + fi
  8275. + if test "$with_gnu_ld" = no; then
  8276. + case "$host_cpu" in
  8277. + hppa*64*)
  8278. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8279. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  8280. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  8281. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  8282. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8283. + ;;
  8284. + ia64*)
  8285. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8286. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  8287. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8288. +
  8289. + # hardcode_minus_L: Not really in the search PATH,
  8290. + # but as the default location of the library.
  8291. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  8292. + ;;
  8293. + *)
  8294. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8295. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  8296. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8297. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8298. +
  8299. + # hardcode_minus_L: Not really in the search PATH,
  8300. + # but as the default location of the library.
  8301. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  8302. + ;;
  8303. + esac
  8304. + fi
  8305. + ;;
  8306. -darwin* | rhapsody*)
  8307. - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  8308. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  8309. - case "$host_os" in
  8310. - rhapsody* | darwin1.[[012]])
  8311. - lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  8312. - ;;
  8313. - *) # Darwin 1.3 on
  8314. - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  8315. - ;;
  8316. - esac
  8317. - ;;
  8318. + irix5* | irix6* | nonstopux*)
  8319. + if test "$GCC" = yes; then
  8320. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8321. + else
  8322. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  8323. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  8324. + fi
  8325. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8326. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  8327. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  8328. + ;;
  8329. -freebsd*)
  8330. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  8331. - case $host_cpu in
  8332. - i*86 )
  8333. - # Not sure whether the presence of OpenBSD here was a mistake.
  8334. - # Let's accept both of them until this is cleared up.
  8335. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  8336. - lt_cv_file_magic_cmd=/usr/bin/file
  8337. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  8338. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  8339. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8340. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8341. + else
  8342. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8343. + fi
  8344. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8345. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8346. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8347. + ;;
  8348. +
  8349. + newsos6)
  8350. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8351. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8352. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8353. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  8354. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8355. + ;;
  8356. +
  8357. + openbsd*)
  8358. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8359. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8360. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8361. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8362. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8363. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8364. + else
  8365. + case $host_os in
  8366. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  8367. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8368. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8369. + ;;
  8370. + *)
  8371. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8372. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8373. + ;;
  8374. + esac
  8375. + fi
  8376. + ;;
  8377. +
  8378. + os2*)
  8379. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8380. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  8381. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  8382. + _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8383. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8384. + ;;
  8385. +
  8386. + osf3*)
  8387. + if test "$GCC" = yes; then
  8388. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8389. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8390. + else
  8391. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8392. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  8393. + fi
  8394. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8395. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  8396. ;;
  8397. - esac
  8398. - else
  8399. - lt_cv_deplibs_check_method=pass_all
  8400. - fi
  8401. - ;;
  8402. -gnu*)
  8403. - lt_cv_deplibs_check_method=pass_all
  8404. - ;;
  8405. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  8406. + if test "$GCC" = yes; then
  8407. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8408. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8409. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8410. + else
  8411. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8412. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  8413. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  8414. + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  8415. -hpux10.20*|hpux11*)
  8416. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  8417. - lt_cv_file_magic_cmd=/usr/bin/file
  8418. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  8419. - ;;
  8420. + # Both c and cxx compiler support -rpath directly
  8421. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8422. + fi
  8423. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  8424. + ;;
  8425. -irix5* | irix6* | nonstopux*)
  8426. - case $host_os in
  8427. - irix5* | nonstopux*)
  8428. - # this will be overridden with pass_all, but let us keep it just in case
  8429. - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  8430. - ;;
  8431. - *)
  8432. - case $LD in
  8433. - *-32|*"-32 ") libmagic=32-bit;;
  8434. - *-n32|*"-n32 ") libmagic=N32;;
  8435. - *-64|*"-64 ") libmagic=64-bit;;
  8436. - *) libmagic=never-match;;
  8437. - esac
  8438. - # this will be overridden with pass_all, but let us keep it just in case
  8439. - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
  8440. - ;;
  8441. - esac
  8442. - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  8443. - lt_cv_deplibs_check_method=pass_all
  8444. - ;;
  8445. + sco3.2v5*)
  8446. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8447. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8448. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8449. + runpath_var=LD_RUN_PATH
  8450. + hardcode_runpath_var=yes
  8451. + ;;
  8452. -# This must be Linux ELF.
  8453. -linux-gnu*)
  8454. - case $host_cpu in
  8455. - alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
  8456. - lt_cv_deplibs_check_method=pass_all ;;
  8457. - *)
  8458. - # glibc up to 2.1.1 does not perform some relocations on ARM
  8459. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
  8460. - esac
  8461. - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  8462. - ;;
  8463. + solaris*)
  8464. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  8465. + if test "$GCC" = yes; then
  8466. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8467. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8468. + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  8469. + else
  8470. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8471. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8472. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8473. + fi
  8474. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8475. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8476. + case $host_os in
  8477. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8478. + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  8479. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  8480. + esac
  8481. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  8482. + ;;
  8483. -netbsd*)
  8484. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  8485. - lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
  8486. - else
  8487. - lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
  8488. - fi
  8489. - ;;
  8490. + sunos4*)
  8491. + if test "x$host_vendor" = xsequent; then
  8492. + # Use $CC to link under sequent, because it throws in some extra .o
  8493. + # files that make .init and .fini sections work.
  8494. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8495. + else
  8496. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8497. + fi
  8498. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8499. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8500. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  8501. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8502. + ;;
  8503. -newos6*)
  8504. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  8505. - lt_cv_file_magic_cmd=/usr/bin/file
  8506. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  8507. - ;;
  8508. + sysv4)
  8509. + case $host_vendor in
  8510. + sni)
  8511. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8512. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  8513. + ;;
  8514. + siemens)
  8515. + ## LD is ld it makes a PLAMLIB
  8516. + ## CC just makes a GrossModule.
  8517. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8518. + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  8519. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  8520. + ;;
  8521. + motorola)
  8522. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8523. + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  8524. + ;;
  8525. + esac
  8526. + runpath_var='LD_RUN_PATH'
  8527. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8528. + ;;
  8529. -openbsd*)
  8530. - lt_cv_file_magic_cmd=/usr/bin/file
  8531. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  8532. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8533. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
  8534. - else
  8535. - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  8536. - fi
  8537. - ;;
  8538. + sysv4.3*)
  8539. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8540. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8541. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  8542. + ;;
  8543. -osf3* | osf4* | osf5*)
  8544. - # this will be overridden with pass_all, but let us keep it just in case
  8545. - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  8546. - lt_cv_file_magic_test_file=/shlib/libc.so
  8547. - lt_cv_deplibs_check_method=pass_all
  8548. - ;;
  8549. + sysv4*MP*)
  8550. + if test -d /usr/nec; then
  8551. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8552. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8553. + runpath_var=LD_RUN_PATH
  8554. + hardcode_runpath_var=yes
  8555. + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  8556. + fi
  8557. + ;;
  8558. -sco3.2v5*)
  8559. - lt_cv_deplibs_check_method=pass_all
  8560. - ;;
  8561. + sysv4.2uw2*)
  8562. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8563. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8564. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  8565. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8566. + hardcode_runpath_var=yes
  8567. + runpath_var=LD_RUN_PATH
  8568. + ;;
  8569. -solaris*)
  8570. - lt_cv_deplibs_check_method=pass_all
  8571. - lt_cv_file_magic_test_file=/lib/libc.so
  8572. - ;;
  8573. + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  8574. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
  8575. + if test "$GCC" = yes; then
  8576. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8577. + else
  8578. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8579. + fi
  8580. + runpath_var='LD_RUN_PATH'
  8581. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8582. + ;;
  8583. -sysv5uw[[78]]* | sysv4*uw2*)
  8584. - lt_cv_deplibs_check_method=pass_all
  8585. - ;;
  8586. + sysv5*)
  8587. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  8588. + # $CC -shared without GNU ld will not create a library from C++
  8589. + # object files and a static libstdc++, better avoid it by now
  8590. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8591. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8592. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8593. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8594. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8595. + runpath_var='LD_RUN_PATH'
  8596. + ;;
  8597. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8598. - case $host_vendor in
  8599. - motorola)
  8600. - 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]]'
  8601. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  8602. - ;;
  8603. - ncr)
  8604. - lt_cv_deplibs_check_method=pass_all
  8605. - ;;
  8606. - sequent)
  8607. - lt_cv_file_magic_cmd='/bin/file'
  8608. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  8609. - ;;
  8610. - sni)
  8611. - lt_cv_file_magic_cmd='/bin/file'
  8612. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  8613. - lt_cv_file_magic_test_file=/lib/libc.so
  8614. - ;;
  8615. - siemens)
  8616. - lt_cv_deplibs_check_method=pass_all
  8617. - ;;
  8618. - esac
  8619. - ;;
  8620. -esac
  8621. -])
  8622. -file_magic_cmd=$lt_cv_file_magic_cmd
  8623. -deplibs_check_method=$lt_cv_deplibs_check_method
  8624. + uts4*)
  8625. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8626. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8627. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8628. + ;;
  8629. +
  8630. + *)
  8631. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  8632. + ;;
  8633. + esac
  8634. + fi
  8635. ])
  8636. +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  8637. +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8638. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8639. +if test "$GCC" = yes; then
  8640. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8641. +fi
  8642. -# AC_PROG_NM - find the path to a BSD-compatible name lister
  8643. -AC_DEFUN([AC_PROG_NM],
  8644. -[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
  8645. -AC_MSG_CHECKING([for BSD-compatible nm])
  8646. -AC_CACHE_VAL(lt_cv_path_NM,
  8647. -[if test -n "$NM"; then
  8648. - # Let the user override the test.
  8649. - lt_cv_path_NM="$NM"
  8650. -else
  8651. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8652. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  8653. - test -z "$ac_dir" && ac_dir=.
  8654. - tmp_nm=$ac_dir/${ac_tool_prefix}nm
  8655. - if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  8656. - # Check to see if the nm accepts a BSD-compat flag.
  8657. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  8658. - # nm: unknown option "B" ignored
  8659. - # Tru64's nm complains that /dev/null is an invalid object file
  8660. - if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  8661. - lt_cv_path_NM="$tmp_nm -B"
  8662. - break
  8663. - elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  8664. - lt_cv_path_NM="$tmp_nm -p"
  8665. - break
  8666. +#
  8667. +# Do we need to explicitly link libc?
  8668. +#
  8669. +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  8670. +x|xyes)
  8671. + # Assume -lc should be added
  8672. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  8673. +
  8674. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  8675. + case $_LT_AC_TAGVAR(archive_cmds, $1) in
  8676. + *'~'*)
  8677. + # FIXME: we may have to deal with multi-command sequences.
  8678. + ;;
  8679. + '$CC '*)
  8680. + # Test whether the compiler implicitly links with -lc since on some
  8681. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8682. + # to ld, don't add -lc before -lgcc.
  8683. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  8684. + $rm conftest*
  8685. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8686. +
  8687. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  8688. + soname=conftest
  8689. + lib=conftest
  8690. + libobjs=conftest.$ac_objext
  8691. + deplibs=
  8692. + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  8693. + compiler_flags=-v
  8694. + linker_flags=-v
  8695. + verstring=
  8696. + output_objdir=.
  8697. + libname=conftest
  8698. + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  8699. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  8700. + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  8701. + then
  8702. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  8703. + else
  8704. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  8705. + fi
  8706. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  8707. else
  8708. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  8709. - continue # so that we can try to find one that supports BSD flags
  8710. + cat conftest.err 1>&5
  8711. fi
  8712. - fi
  8713. - done
  8714. - IFS="$ac_save_ifs"
  8715. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  8716. -fi])
  8717. -NM="$lt_cv_path_NM"
  8718. -AC_MSG_RESULT([$NM])
  8719. -])
  8720. -
  8721. -# AC_CHECK_LIBM - check for math library
  8722. -AC_DEFUN([AC_CHECK_LIBM],
  8723. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  8724. -LIBM=
  8725. -case $host in
  8726. -*-*-beos* | *-*-cygwin* | *-*-pw32*)
  8727. - # These system don't have libm
  8728. - ;;
  8729. -*-ncr-sysv4.3*)
  8730. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  8731. - AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
  8732. - ;;
  8733. -*)
  8734. - AC_CHECK_LIB(m, main, LIBM="-lm")
  8735. + $rm conftest*
  8736. + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  8737. + ;;
  8738. + esac
  8739. + fi
  8740. ;;
  8741. esac
  8742. -])
  8743. +])# AC_LIBTOOL_PROG_LD_SHLIBS
  8744. -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
  8745. -# the libltdl convenience library and LTDLINCL to the include flags for
  8746. -# the libltdl header and adds --enable-ltdl-convenience to the
  8747. -# configure arguments. Note that LIBLTDL and LTDLINCL are not
  8748. -# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
  8749. -# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
  8750. -# with '${top_builddir}/' and LTDLINCL will be prefixed with
  8751. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  8752. -# flat and you're not using automake, define top_builddir and
  8753. -# top_srcdir appropriately in the Makefiles.
  8754. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  8755. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  8756. - case $enable_ltdl_convenience in
  8757. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  8758. - "") enable_ltdl_convenience=yes
  8759. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  8760. - esac
  8761. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  8762. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  8763. - # For backwards non-gettext consistent compatibility...
  8764. - INCLTDL="$LTDLINCL"
  8765. -])
  8766. -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
  8767. -# the libltdl installable library and LTDLINCL to the include flags for
  8768. -# the libltdl header and adds --enable-ltdl-install to the configure
  8769. -# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
  8770. -# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
  8771. -# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
  8772. -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
  8773. -# with '${top_srcdir}/' (note the single quotes!). If your package is
  8774. -# not flat and you're not using automake, define top_builddir and
  8775. -# top_srcdir appropriately in the Makefiles.
  8776. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  8777. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  8778. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  8779. - AC_CHECK_LIB(ltdl, main,
  8780. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  8781. - [if test x"$enable_ltdl_install" = xno; then
  8782. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  8783. - else
  8784. - enable_ltdl_install=yes
  8785. - fi
  8786. - ])
  8787. - if test x"$enable_ltdl_install" = x"yes"; then
  8788. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  8789. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  8790. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  8791. - else
  8792. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  8793. - LIBLTDL="-lltdl"
  8794. - LTDLINCL=
  8795. - fi
  8796. - # For backwards non-gettext consistent compatibility...
  8797. - INCLTDL="$LTDLINCL"
  8798. -])
  8799. +# _LT_AC_FILE_LTDLL_C
  8800. +# -------------------
  8801. +# Be careful that the start marker always follows a newline.
  8802. +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  8803. +# /* ltdll.c starts here */
  8804. +# #define WIN32_LEAN_AND_MEAN
  8805. +# #include <windows.h>
  8806. +# #undef WIN32_LEAN_AND_MEAN
  8807. +# #include <stdio.h>
  8808. +#
  8809. +# #ifndef __CYGWIN__
  8810. +# # ifdef __CYGWIN32__
  8811. +# # define __CYGWIN__ __CYGWIN32__
  8812. +# # endif
  8813. +# #endif
  8814. +#
  8815. +# #ifdef __cplusplus
  8816. +# extern "C" {
  8817. +# #endif
  8818. +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  8819. +# #ifdef __cplusplus
  8820. +# }
  8821. +# #endif
  8822. +#
  8823. +# #ifdef __CYGWIN__
  8824. +# #include <cygwin/cygwin_dll.h>
  8825. +# DECLARE_CYGWIN_DLL( DllMain );
  8826. +# #endif
  8827. +# HINSTANCE __hDllInstance_base;
  8828. +#
  8829. +# BOOL APIENTRY
  8830. +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  8831. +# {
  8832. +# __hDllInstance_base = hInst;
  8833. +# return TRUE;
  8834. +# }
  8835. +# /* ltdll.c ends here */
  8836. +])# _LT_AC_FILE_LTDLL_C
  8837. +
  8838. +
  8839. +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  8840. +# ---------------------------------
  8841. +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  8842. +
  8843. # old names
  8844. AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  8845. @@ -3709,6 +6828,16 @@
  8846. # This is just to silence aclocal about the macro not being used
  8847. ifelse([AC_DISABLE_FAST_INSTALL])
  8848. +AC_DEFUN([LT_AC_PROG_GCJ],
  8849. +[AC_CHECK_TOOL(GCJ, gcj, no)
  8850. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  8851. + AC_SUBST(GCJFLAGS)
  8852. +])
  8853. +
  8854. +AC_DEFUN([LT_AC_PROG_RC],
  8855. +[AC_CHECK_TOOL(RC, windres, no)
  8856. +])
  8857. +
  8858. # NOTE: This macro has been submitted for inclusion into #
  8859. # GNU Autoconf as AC_PROG_SED. When it is available in #
  8860. # a released version of Autoconf we should remove this #
  8861. @@ -3722,79 +6851,51 @@
  8862. AC_CACHE_VAL(lt_cv_path_SED,
  8863. [# Loop through the user's path and test for sed and gsed.
  8864. # Then use that list of sed's as ones to test for truncation.
  8865. -as_executable_p="test -f"
  8866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8867. for as_dir in $PATH
  8868. do
  8869. IFS=$as_save_IFS
  8870. test -z "$as_dir" && as_dir=.
  8871. - for ac_prog in sed gsed; do
  8872. + for lt_ac_prog in sed gsed; do
  8873. for ac_exec_ext in '' $ac_executable_extensions; do
  8874. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  8875. - _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  8876. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  8877. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  8878. fi
  8879. done
  8880. done
  8881. done
  8882. -
  8883. - # Create a temporary directory, and hook for its removal unless debugging.
  8884. -$debug ||
  8885. -{
  8886. - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  8887. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  8888. -}
  8889. -
  8890. -# Create a (secure) tmp directory for tmp files.
  8891. -: ${TMPDIR=/tmp}
  8892. -{
  8893. - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  8894. - test -n "$tmp" && test -d "$tmp"
  8895. -} ||
  8896. -{
  8897. - tmp=$TMPDIR/sed$$-$RANDOM
  8898. - (umask 077 && mkdir $tmp)
  8899. -} ||
  8900. -{
  8901. - echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  8902. - { (exit 1); exit 1; }
  8903. -}
  8904. - _max=0
  8905. - _count=0
  8906. - # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  8907. - # along with /bin/sed that truncates output.
  8908. - for _sed in $_sed_list /usr/xpg4/bin/sed; do
  8909. - test ! -f ${_sed} && break
  8910. - cat /dev/null > "$tmp/sed.in"
  8911. - _count=0
  8912. - echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
  8913. - # Check for GNU sed and select it if it is found.
  8914. - if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  8915. - lt_cv_path_SED=${_sed}
  8916. - break
  8917. +lt_ac_max=0
  8918. +lt_ac_count=0
  8919. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  8920. +# along with /bin/sed that truncates output.
  8921. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  8922. + test ! -f $lt_ac_sed && break
  8923. + cat /dev/null > conftest.in
  8924. + lt_ac_count=0
  8925. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  8926. + # Check for GNU sed and select it if it is found.
  8927. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  8928. + lt_cv_path_SED=$lt_ac_sed
  8929. + break
  8930. + fi
  8931. + while true; do
  8932. + cat conftest.in conftest.in >conftest.tmp
  8933. + mv conftest.tmp conftest.in
  8934. + cp conftest.in conftest.nl
  8935. + echo >>conftest.nl
  8936. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  8937. + cmp -s conftest.out conftest.nl || break
  8938. + # 10000 chars as input seems more than enough
  8939. + test $lt_ac_count -gt 10 && break
  8940. + lt_ac_count=`expr $lt_ac_count + 1`
  8941. + if test $lt_ac_count -gt $lt_ac_max; then
  8942. + lt_ac_max=$lt_ac_count
  8943. + lt_cv_path_SED=$lt_ac_sed
  8944. fi
  8945. - while true; do
  8946. - cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  8947. - mv "$tmp/sed.tmp" "$tmp/sed.in"
  8948. - cp "$tmp/sed.in" "$tmp/sed.nl"
  8949. - echo >>"$tmp/sed.nl"
  8950. - ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  8951. - cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  8952. - # 40000 chars as input seems more than enough
  8953. - test $_count -gt 10 && break
  8954. - _count=`expr $_count + 1`
  8955. - if test $_count -gt $_max; then
  8956. - _max=$_count
  8957. - lt_cv_path_SED=$_sed
  8958. - fi
  8959. - done
  8960. done
  8961. - rm -rf "$tmp"
  8962. +done
  8963. +SED=$lt_cv_path_SED
  8964. ])
  8965. -if test "X$SED" != "X"; then
  8966. - lt_cv_path_SED=$SED
  8967. -else
  8968. - SED=$lt_cv_path_SED
  8969. -fi
  8970. AC_MSG_RESULT([$SED])
  8971. ])
  8972. diff -urN linux-atm.old/autom4te.cache/output.0 linux-atm.dev/autom4te.cache/output.0
  8973. --- linux-atm.old/autom4te.cache/output.0 1970-01-01 01:00:00.000000000 +0100
  8974. +++ linux-atm.dev/autom4te.cache/output.0 2005-08-23 01:12:40.958209832 +0200
  8975. @@ -0,0 +1,10118 @@
  8976. +@%:@! /bin/sh
  8977. +@%:@ Guess values for system-dependent variables and create Makefiles.
  8978. +@%:@ Generated by GNU Autoconf 2.59.
  8979. +@%:@
  8980. +@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
  8981. +@%:@ This configure script is free software; the Free Software Foundation
  8982. +@%:@ gives unlimited permission to copy, distribute and modify it.
  8983. +## --------------------- ##
  8984. +## M4sh Initialization. ##
  8985. +## --------------------- ##
  8986. +
  8987. +# Be Bourne compatible
  8988. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8989. + emulate sh
  8990. + NULLCMD=:
  8991. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8992. + # is contrary to our usage. Disable this feature.
  8993. + alias -g '${1+"$@"}'='"$@"'
  8994. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8995. + set -o posix
  8996. +fi
  8997. +DUALCASE=1; export DUALCASE # for MKS sh
  8998. +
  8999. +# Support unset when possible.
  9000. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9001. + as_unset=unset
  9002. +else
  9003. + as_unset=false
  9004. +fi
  9005. +
  9006. +
  9007. +# Work around bugs in pre-3.0 UWIN ksh.
  9008. +$as_unset ENV MAIL MAILPATH
  9009. +PS1='$ '
  9010. +PS2='> '
  9011. +PS4='+ '
  9012. +
  9013. +# NLS nuisances.
  9014. +for as_var in \
  9015. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  9016. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  9017. + LC_TELEPHONE LC_TIME
  9018. +do
  9019. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  9020. + eval $as_var=C; export $as_var
  9021. + else
  9022. + $as_unset $as_var
  9023. + fi
  9024. +done
  9025. +
  9026. +# Required to use basename.
  9027. +if expr a : '\(a\)' >/dev/null 2>&1; then
  9028. + as_expr=expr
  9029. +else
  9030. + as_expr=false
  9031. +fi
  9032. +
  9033. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  9034. + as_basename=basename
  9035. +else
  9036. + as_basename=false
  9037. +fi
  9038. +
  9039. +
  9040. +# Name of the executable.
  9041. +as_me=`$as_basename "$0" ||
  9042. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9043. + X"$0" : 'X\(//\)$' \| \
  9044. + X"$0" : 'X\(/\)$' \| \
  9045. + . : '\(.\)' 2>/dev/null ||
  9046. +echo X/"$0" |
  9047. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  9048. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  9049. + /^X\/\(\/\).*/{ s//\1/; q; }
  9050. + s/.*/./; q'`
  9051. +
  9052. +
  9053. +# PATH needs CR, and LINENO needs CR and PATH.
  9054. +# Avoid depending upon Character Ranges.
  9055. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9056. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9057. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9058. +as_cr_digits='0123456789'
  9059. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  9060. +
  9061. +# The user is always right.
  9062. +if test "${PATH_SEPARATOR+set}" != set; then
  9063. + echo "#! /bin/sh" >conf$$.sh
  9064. + echo "exit 0" >>conf$$.sh
  9065. + chmod +x conf$$.sh
  9066. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9067. + PATH_SEPARATOR=';'
  9068. + else
  9069. + PATH_SEPARATOR=:
  9070. + fi
  9071. + rm -f conf$$.sh
  9072. +fi
  9073. +
  9074. +
  9075. + as_lineno_1=$LINENO
  9076. + as_lineno_2=$LINENO
  9077. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9078. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  9079. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  9080. + # Find who we are. Look in the path if we contain no path at all
  9081. + # relative or not.
  9082. + case $0 in
  9083. + *[\\/]* ) as_myself=$0 ;;
  9084. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9085. +for as_dir in $PATH
  9086. +do
  9087. + IFS=$as_save_IFS
  9088. + test -z "$as_dir" && as_dir=.
  9089. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9090. +done
  9091. +
  9092. + ;;
  9093. + esac
  9094. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  9095. + # in which case we are not to be found in the path.
  9096. + if test "x$as_myself" = x; then
  9097. + as_myself=$0
  9098. + fi
  9099. + if test ! -f "$as_myself"; then
  9100. + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  9101. + { (exit 1); exit 1; }; }
  9102. + fi
  9103. + case $CONFIG_SHELL in
  9104. + '')
  9105. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9106. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  9107. +do
  9108. + IFS=$as_save_IFS
  9109. + test -z "$as_dir" && as_dir=.
  9110. + for as_base in sh bash ksh sh5; do
  9111. + case $as_dir in
  9112. + /*)
  9113. + if ("$as_dir/$as_base" -c '
  9114. + as_lineno_1=$LINENO
  9115. + as_lineno_2=$LINENO
  9116. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9117. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  9118. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  9119. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  9120. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  9121. + CONFIG_SHELL=$as_dir/$as_base
  9122. + export CONFIG_SHELL
  9123. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  9124. + fi;;
  9125. + esac
  9126. + done
  9127. +done
  9128. +;;
  9129. + esac
  9130. +
  9131. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9132. + # uniformly replaced by the line number. The first 'sed' inserts a
  9133. + # line-number line before each line; the second 'sed' does the real
  9134. + # work. The second script uses 'N' to pair each line-number line
  9135. + # with the numbered line, and appends trailing '-' during
  9136. + # substitution so that $LINENO is not a special case at line end.
  9137. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9138. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  9139. + sed '=' <$as_myself |
  9140. + sed '
  9141. + N
  9142. + s,$,-,
  9143. + : loop
  9144. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  9145. + t loop
  9146. + s,-$,,
  9147. + s,^['$as_cr_digits']*\n,,
  9148. + ' >$as_me.lineno &&
  9149. + chmod +x $as_me.lineno ||
  9150. + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  9151. + { (exit 1); exit 1; }; }
  9152. +
  9153. + # Don't try to exec as it changes $[0], causing all sort of problems
  9154. + # (the dirname of $[0] is not the place where we might find the
  9155. + # original and so on. Autoconf is especially sensible to this).
  9156. + . ./$as_me.lineno
  9157. + # Exit status is that of the last command.
  9158. + exit
  9159. +}
  9160. +
  9161. +
  9162. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  9163. + *c*,-n*) ECHO_N= ECHO_C='
  9164. +' ECHO_T=' ' ;;
  9165. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  9166. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  9167. +esac
  9168. +
  9169. +if expr a : '\(a\)' >/dev/null 2>&1; then
  9170. + as_expr=expr
  9171. +else
  9172. + as_expr=false
  9173. +fi
  9174. +
  9175. +rm -f conf$$ conf$$.exe conf$$.file
  9176. +echo >conf$$.file
  9177. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  9178. + # We could just check for DJGPP; but this test a) works b) is more generic
  9179. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  9180. + if test -f conf$$.exe; then
  9181. + # Don't use ln at all; we don't have any links
  9182. + as_ln_s='cp -p'
  9183. + else
  9184. + as_ln_s='ln -s'
  9185. + fi
  9186. +elif ln conf$$.file conf$$ 2>/dev/null; then
  9187. + as_ln_s=ln
  9188. +else
  9189. + as_ln_s='cp -p'
  9190. +fi
  9191. +rm -f conf$$ conf$$.exe conf$$.file
  9192. +
  9193. +if mkdir -p . 2>/dev/null; then
  9194. + as_mkdir_p=:
  9195. +else
  9196. + test -d ./-p && rmdir ./-p
  9197. + as_mkdir_p=false
  9198. +fi
  9199. +
  9200. +as_executable_p="test -f"
  9201. +
  9202. +# Sed expression to map a string onto a valid CPP name.
  9203. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9204. +
  9205. +# Sed expression to map a string onto a valid variable name.
  9206. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9207. +
  9208. +
  9209. +# IFS
  9210. +# We need space, tab and new line, in precisely that order.
  9211. +as_nl='
  9212. +'
  9213. +IFS=" $as_nl"
  9214. +
  9215. +# CDPATH.
  9216. +$as_unset CDPATH
  9217. +
  9218. +
  9219. +# Find the correct PATH separator. Usually this is `:', but
  9220. +# DJGPP uses `;' like DOS.
  9221. +if test "X${PATH_SEPARATOR+set}" != Xset; then
  9222. + UNAME=${UNAME-`uname 2>/dev/null`}
  9223. + case X$UNAME in
  9224. + *-DOS) lt_cv_sys_path_separator=';' ;;
  9225. + *) lt_cv_sys_path_separator=':' ;;
  9226. + esac
  9227. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  9228. +fi
  9229. +
  9230. +
  9231. +# Check that we are running under the correct shell.
  9232. +SHELL=${CONFIG_SHELL-/bin/sh}
  9233. +
  9234. +case X$ECHO in
  9235. +X*--fallback-echo)
  9236. + # Remove one level of quotation (which was required for Make).
  9237. + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  9238. + ;;
  9239. +esac
  9240. +
  9241. +echo=${ECHO-echo}
  9242. +if test "X$1" = X--no-reexec; then
  9243. + # Discard the --no-reexec flag, and continue.
  9244. + shift
  9245. +elif test "X$1" = X--fallback-echo; then
  9246. + # Avoid inline document here, it may be left over
  9247. + :
  9248. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  9249. + # Yippee, $echo works!
  9250. + :
  9251. +else
  9252. + # Restart under the correct shell.
  9253. + exec $SHELL "$0" --no-reexec ${1+"$@"}
  9254. +fi
  9255. +
  9256. +if test "X$1" = X--fallback-echo; then
  9257. + # used as fallback echo
  9258. + shift
  9259. + cat <<EOF
  9260. +
  9261. +EOF
  9262. + exit 0
  9263. +fi
  9264. +
  9265. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  9266. +# if CDPATH is set.
  9267. +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  9268. +
  9269. +if test -z "$ECHO"; then
  9270. +if test "X${echo_test_string+set}" != Xset; then
  9271. +# find a string as large as possible, as long as the shell can cope with it
  9272. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  9273. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  9274. + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  9275. + echo_test_string="`eval $cmd`" &&
  9276. + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  9277. + then
  9278. + break
  9279. + fi
  9280. + done
  9281. +fi
  9282. +
  9283. +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  9284. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  9285. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9286. + :
  9287. +else
  9288. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  9289. + # backslashes. This makes it impossible to quote backslashes using
  9290. + # echo "$something" | sed 's/\\/\\\\/g'
  9291. + #
  9292. + # So, first we look for a working echo in the user's PATH.
  9293. +
  9294. + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9295. + for dir in $PATH /usr/ucb; do
  9296. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  9297. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  9298. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  9299. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9300. + echo="$dir/echo"
  9301. + break
  9302. + fi
  9303. + done
  9304. + IFS="$save_ifs"
  9305. +
  9306. + if test "X$echo" = Xecho; then
  9307. + # We didn't find a better echo, so look for alternatives.
  9308. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  9309. + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  9310. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9311. + # This shell has a builtin print -r that does the trick.
  9312. + echo='print -r'
  9313. + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  9314. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  9315. + # If we have ksh, try running configure again with it.
  9316. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  9317. + export ORIGINAL_CONFIG_SHELL
  9318. + CONFIG_SHELL=/bin/ksh
  9319. + export CONFIG_SHELL
  9320. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  9321. + else
  9322. + # Try using printf.
  9323. + echo='printf %s\n'
  9324. + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  9325. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  9326. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9327. + # Cool, printf works
  9328. + :
  9329. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  9330. + test "X$echo_testing_string" = 'X\t' &&
  9331. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  9332. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9333. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  9334. + export CONFIG_SHELL
  9335. + SHELL="$CONFIG_SHELL"
  9336. + export SHELL
  9337. + echo="$CONFIG_SHELL $0 --fallback-echo"
  9338. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  9339. + test "X$echo_testing_string" = 'X\t' &&
  9340. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  9341. + test "X$echo_testing_string" = "X$echo_test_string"; then
  9342. + echo="$CONFIG_SHELL $0 --fallback-echo"
  9343. + else
  9344. + # maybe with a smaller string...
  9345. + prev=:
  9346. +
  9347. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  9348. + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  9349. + then
  9350. + break
  9351. + fi
  9352. + prev="$cmd"
  9353. + done
  9354. +
  9355. + if test "$prev" != 'sed 50q "$0"'; then
  9356. + echo_test_string=`eval $prev`
  9357. + export echo_test_string
  9358. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  9359. + else
  9360. + # Oops. We lost completely, so just stick with echo.
  9361. + echo=echo
  9362. + fi
  9363. + fi
  9364. + fi
  9365. + fi
  9366. +fi
  9367. +fi
  9368. +
  9369. +# Copy echo and quote the copy suitably for passing to libtool from
  9370. +# the Makefile, instead of quoting the original, which is used later.
  9371. +ECHO=$echo
  9372. +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  9373. + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  9374. +fi
  9375. +
  9376. +
  9377. +
  9378. +# Name of the host.
  9379. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  9380. +# so uname gets run too.
  9381. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  9382. +
  9383. +exec 6>&1
  9384. +
  9385. +#
  9386. +# Initializations.
  9387. +#
  9388. +ac_default_prefix=/usr/local
  9389. +ac_config_libobj_dir=.
  9390. +cross_compiling=no
  9391. +subdirs=
  9392. +MFLAGS=
  9393. +MAKEFLAGS=
  9394. +SHELL=${CONFIG_SHELL-/bin/sh}
  9395. +
  9396. +# Maximum number of lines to put in a shell here document.
  9397. +# This variable seems obsolete. It should probably be removed, and
  9398. +# only ac_max_sed_lines should be used.
  9399. +: ${ac_max_here_lines=38}
  9400. +
  9401. +# Identity of this package.
  9402. +PACKAGE_NAME=
  9403. +PACKAGE_TARNAME=
  9404. +PACKAGE_VERSION=
  9405. +PACKAGE_STRING=
  9406. +PACKAGE_BUGREPORT=
  9407. +
  9408. +ac_unique_file="src/include/atm.h"
  9409. +# Factoring default headers for most tests.
  9410. +ac_includes_default="\
  9411. +#include <stdio.h>
  9412. +#if HAVE_SYS_TYPES_H
  9413. +# include <sys/types.h>
  9414. +#endif
  9415. +#if HAVE_SYS_STAT_H
  9416. +# include <sys/stat.h>
  9417. +#endif
  9418. +#if STDC_HEADERS
  9419. +# include <stdlib.h>
  9420. +# include <stddef.h>
  9421. +#else
  9422. +# if HAVE_STDLIB_H
  9423. +# include <stdlib.h>
  9424. +# endif
  9425. +#endif
  9426. +#if HAVE_STRING_H
  9427. +# if !STDC_HEADERS && HAVE_MEMORY_H
  9428. +# include <memory.h>
  9429. +# endif
  9430. +# include <string.h>
  9431. +#endif
  9432. +#if HAVE_STRINGS_H
  9433. +# include <strings.h>
  9434. +#endif
  9435. +#if HAVE_INTTYPES_H
  9436. +# include <inttypes.h>
  9437. +#else
  9438. +# if HAVE_STDINT_H
  9439. +# include <stdint.h>
  9440. +# endif
  9441. +#endif
  9442. +#if HAVE_UNISTD_H
  9443. +# include <unistd.h>
  9444. +#endif"
  9445. +
  9446. +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE LIBVER_CURRENT LIBVER_REVISION LIBVER_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LEX LEXLIB LEX_OUTPUT_ROOT YACC LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL LIBTOOL_DEPS PERL LIB@&t@OBJS LTLIBOBJS'
  9447. +ac_subst_files=''
  9448. +
  9449. +# Initialize some variables set by options.
  9450. +ac_init_help=
  9451. +ac_init_version=false
  9452. +# The variables have the same names as the options, with
  9453. +# dashes changed to underlines.
  9454. +cache_file=/dev/null
  9455. +exec_prefix=NONE
  9456. +no_create=
  9457. +no_recursion=
  9458. +prefix=NONE
  9459. +program_prefix=NONE
  9460. +program_suffix=NONE
  9461. +program_transform_name=s,x,x,
  9462. +silent=
  9463. +site=
  9464. +srcdir=
  9465. +verbose=
  9466. +x_includes=NONE
  9467. +x_libraries=NONE
  9468. +
  9469. +# Installation directory options.
  9470. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  9471. +# and all the variables that are supposed to be based on exec_prefix
  9472. +# by default will actually change.
  9473. +# Use braces instead of parens because sh, perl, etc. also accept them.
  9474. +bindir='${exec_prefix}/bin'
  9475. +sbindir='${exec_prefix}/sbin'
  9476. +libexecdir='${exec_prefix}/libexec'
  9477. +datadir='${prefix}/share'
  9478. +sysconfdir='${prefix}/etc'
  9479. +sharedstatedir='${prefix}/com'
  9480. +localstatedir='${prefix}/var'
  9481. +libdir='${exec_prefix}/lib'
  9482. +includedir='${prefix}/include'
  9483. +oldincludedir='/usr/include'
  9484. +infodir='${prefix}/info'
  9485. +mandir='${prefix}/man'
  9486. +
  9487. +ac_prev=
  9488. +for ac_option
  9489. +do
  9490. + # If the previous option needs an argument, assign it.
  9491. + if test -n "$ac_prev"; then
  9492. + eval "$ac_prev=\$ac_option"
  9493. + ac_prev=
  9494. + continue
  9495. + fi
  9496. +
  9497. + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  9498. +
  9499. + # Accept the important Cygnus configure options, so we can diagnose typos.
  9500. +
  9501. + case $ac_option in
  9502. +
  9503. + -bindir | --bindir | --bindi | --bind | --bin | --bi)
  9504. + ac_prev=bindir ;;
  9505. + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  9506. + bindir=$ac_optarg ;;
  9507. +
  9508. + -build | --build | --buil | --bui | --bu)
  9509. + ac_prev=build_alias ;;
  9510. + -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  9511. + build_alias=$ac_optarg ;;
  9512. +
  9513. + -cache-file | --cache-file | --cache-fil | --cache-fi \
  9514. + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  9515. + ac_prev=cache_file ;;
  9516. + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  9517. + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  9518. + cache_file=$ac_optarg ;;
  9519. +
  9520. + --config-cache | -C)
  9521. + cache_file=config.cache ;;
  9522. +
  9523. + -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  9524. + ac_prev=datadir ;;
  9525. + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  9526. + | --da=*)
  9527. + datadir=$ac_optarg ;;
  9528. +
  9529. + -disable-* | --disable-*)
  9530. + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  9531. + # Reject names that are not valid shell variable names.
  9532. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  9533. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  9534. + { (exit 1); exit 1; }; }
  9535. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  9536. + eval "enable_$ac_feature=no" ;;
  9537. +
  9538. + -enable-* | --enable-*)
  9539. + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  9540. + # Reject names that are not valid shell variable names.
  9541. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  9542. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  9543. + { (exit 1); exit 1; }; }
  9544. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  9545. + case $ac_option in
  9546. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  9547. + *) ac_optarg=yes ;;
  9548. + esac
  9549. + eval "enable_$ac_feature='$ac_optarg'" ;;
  9550. +
  9551. + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  9552. + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  9553. + | --exec | --exe | --ex)
  9554. + ac_prev=exec_prefix ;;
  9555. + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  9556. + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  9557. + | --exec=* | --exe=* | --ex=*)
  9558. + exec_prefix=$ac_optarg ;;
  9559. +
  9560. + -gas | --gas | --ga | --g)
  9561. + # Obsolete; use --with-gas.
  9562. + with_gas=yes ;;
  9563. +
  9564. + -help | --help | --hel | --he | -h)
  9565. + ac_init_help=long ;;
  9566. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  9567. + ac_init_help=recursive ;;
  9568. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  9569. + ac_init_help=short ;;
  9570. +
  9571. + -host | --host | --hos | --ho)
  9572. + ac_prev=host_alias ;;
  9573. + -host=* | --host=* | --hos=* | --ho=*)
  9574. + host_alias=$ac_optarg ;;
  9575. +
  9576. + -includedir | --includedir | --includedi | --included | --include \
  9577. + | --includ | --inclu | --incl | --inc)
  9578. + ac_prev=includedir ;;
  9579. + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  9580. + | --includ=* | --inclu=* | --incl=* | --inc=*)
  9581. + includedir=$ac_optarg ;;
  9582. +
  9583. + -infodir | --infodir | --infodi | --infod | --info | --inf)
  9584. + ac_prev=infodir ;;
  9585. + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  9586. + infodir=$ac_optarg ;;
  9587. +
  9588. + -libdir | --libdir | --libdi | --libd)
  9589. + ac_prev=libdir ;;
  9590. + -libdir=* | --libdir=* | --libdi=* | --libd=*)
  9591. + libdir=$ac_optarg ;;
  9592. +
  9593. + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  9594. + | --libexe | --libex | --libe)
  9595. + ac_prev=libexecdir ;;
  9596. + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  9597. + | --libexe=* | --libex=* | --libe=*)
  9598. + libexecdir=$ac_optarg ;;
  9599. +
  9600. + -localstatedir | --localstatedir | --localstatedi | --localstated \
  9601. + | --localstate | --localstat | --localsta | --localst \
  9602. + | --locals | --local | --loca | --loc | --lo)
  9603. + ac_prev=localstatedir ;;
  9604. + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  9605. + | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  9606. + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  9607. + localstatedir=$ac_optarg ;;
  9608. +
  9609. + -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  9610. + ac_prev=mandir ;;
  9611. + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  9612. + mandir=$ac_optarg ;;
  9613. +
  9614. + -nfp | --nfp | --nf)
  9615. + # Obsolete; use --without-fp.
  9616. + with_fp=no ;;
  9617. +
  9618. + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  9619. + | --no-cr | --no-c | -n)
  9620. + no_create=yes ;;
  9621. +
  9622. + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  9623. + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  9624. + no_recursion=yes ;;
  9625. +
  9626. + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  9627. + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  9628. + | --oldin | --oldi | --old | --ol | --o)
  9629. + ac_prev=oldincludedir ;;
  9630. + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  9631. + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  9632. + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  9633. + oldincludedir=$ac_optarg ;;
  9634. +
  9635. + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  9636. + ac_prev=prefix ;;
  9637. + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  9638. + prefix=$ac_optarg ;;
  9639. +
  9640. + -program-prefix | --program-prefix | --program-prefi | --program-pref \
  9641. + | --program-pre | --program-pr | --program-p)
  9642. + ac_prev=program_prefix ;;
  9643. + -program-prefix=* | --program-prefix=* | --program-prefi=* \
  9644. + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  9645. + program_prefix=$ac_optarg ;;
  9646. +
  9647. + -program-suffix | --program-suffix | --program-suffi | --program-suff \
  9648. + | --program-suf | --program-su | --program-s)
  9649. + ac_prev=program_suffix ;;
  9650. + -program-suffix=* | --program-suffix=* | --program-suffi=* \
  9651. + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  9652. + program_suffix=$ac_optarg ;;
  9653. +
  9654. + -program-transform-name | --program-transform-name \
  9655. + | --program-transform-nam | --program-transform-na \
  9656. + | --program-transform-n | --program-transform- \
  9657. + | --program-transform | --program-transfor \
  9658. + | --program-transfo | --program-transf \
  9659. + | --program-trans | --program-tran \
  9660. + | --progr-tra | --program-tr | --program-t)
  9661. + ac_prev=program_transform_name ;;
  9662. + -program-transform-name=* | --program-transform-name=* \
  9663. + | --program-transform-nam=* | --program-transform-na=* \
  9664. + | --program-transform-n=* | --program-transform-=* \
  9665. + | --program-transform=* | --program-transfor=* \
  9666. + | --program-transfo=* | --program-transf=* \
  9667. + | --program-trans=* | --program-tran=* \
  9668. + | --progr-tra=* | --program-tr=* | --program-t=*)
  9669. + program_transform_name=$ac_optarg ;;
  9670. +
  9671. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9672. + | -silent | --silent | --silen | --sile | --sil)
  9673. + silent=yes ;;
  9674. +
  9675. + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  9676. + ac_prev=sbindir ;;
  9677. + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  9678. + | --sbi=* | --sb=*)
  9679. + sbindir=$ac_optarg ;;
  9680. +
  9681. + -sharedstatedir | --sharedstatedir | --sharedstatedi \
  9682. + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  9683. + | --sharedst | --shareds | --shared | --share | --shar \
  9684. + | --sha | --sh)
  9685. + ac_prev=sharedstatedir ;;
  9686. + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  9687. + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  9688. + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  9689. + | --sha=* | --sh=*)
  9690. + sharedstatedir=$ac_optarg ;;
  9691. +
  9692. + -site | --site | --sit)
  9693. + ac_prev=site ;;
  9694. + -site=* | --site=* | --sit=*)
  9695. + site=$ac_optarg ;;
  9696. +
  9697. + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  9698. + ac_prev=srcdir ;;
  9699. + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  9700. + srcdir=$ac_optarg ;;
  9701. +
  9702. + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  9703. + | --syscon | --sysco | --sysc | --sys | --sy)
  9704. + ac_prev=sysconfdir ;;
  9705. + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  9706. + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  9707. + sysconfdir=$ac_optarg ;;
  9708. +
  9709. + -target | --target | --targe | --targ | --tar | --ta | --t)
  9710. + ac_prev=target_alias ;;
  9711. + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  9712. + target_alias=$ac_optarg ;;
  9713. +
  9714. + -v | -verbose | --verbose | --verbos | --verbo | --verb)
  9715. + verbose=yes ;;
  9716. +
  9717. + -version | --version | --versio | --versi | --vers | -V)
  9718. + ac_init_version=: ;;
  9719. +
  9720. + -with-* | --with-*)
  9721. + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  9722. + # Reject names that are not valid shell variable names.
  9723. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  9724. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  9725. + { (exit 1); exit 1; }; }
  9726. + ac_package=`echo $ac_package| sed 's/-/_/g'`
  9727. + case $ac_option in
  9728. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  9729. + *) ac_optarg=yes ;;
  9730. + esac
  9731. + eval "with_$ac_package='$ac_optarg'" ;;
  9732. +
  9733. + -without-* | --without-*)
  9734. + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  9735. + # Reject names that are not valid shell variable names.
  9736. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  9737. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  9738. + { (exit 1); exit 1; }; }
  9739. + ac_package=`echo $ac_package | sed 's/-/_/g'`
  9740. + eval "with_$ac_package=no" ;;
  9741. +
  9742. + --x)
  9743. + # Obsolete; use --with-x.
  9744. + with_x=yes ;;
  9745. +
  9746. + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  9747. + | --x-incl | --x-inc | --x-in | --x-i)
  9748. + ac_prev=x_includes ;;
  9749. + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  9750. + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  9751. + x_includes=$ac_optarg ;;
  9752. +
  9753. + -x-libraries | --x-libraries | --x-librarie | --x-librari \
  9754. + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  9755. + ac_prev=x_libraries ;;
  9756. + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  9757. + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  9758. + x_libraries=$ac_optarg ;;
  9759. +
  9760. + -*) { echo "$as_me: error: unrecognized option: $ac_option
  9761. +Try \`$0 --help' for more information." >&2
  9762. + { (exit 1); exit 1; }; }
  9763. + ;;
  9764. +
  9765. + *=*)
  9766. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  9767. + # Reject names that are not valid shell variable names.
  9768. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  9769. + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  9770. + { (exit 1); exit 1; }; }
  9771. + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  9772. + eval "$ac_envvar='$ac_optarg'"
  9773. + export $ac_envvar ;;
  9774. +
  9775. + *)
  9776. + # FIXME: should be removed in autoconf 3.0.
  9777. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  9778. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  9779. + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  9780. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  9781. + ;;
  9782. +
  9783. + esac
  9784. +done
  9785. +
  9786. +if test -n "$ac_prev"; then
  9787. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  9788. + { echo "$as_me: error: missing argument to $ac_option" >&2
  9789. + { (exit 1); exit 1; }; }
  9790. +fi
  9791. +
  9792. +# Be sure to have absolute paths.
  9793. +for ac_var in exec_prefix prefix
  9794. +do
  9795. + eval ac_val=$`echo $ac_var`
  9796. + case $ac_val in
  9797. + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  9798. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  9799. + { (exit 1); exit 1; }; };;
  9800. + esac
  9801. +done
  9802. +
  9803. +# Be sure to have absolute paths.
  9804. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  9805. + localstatedir libdir includedir oldincludedir infodir mandir
  9806. +do
  9807. + eval ac_val=$`echo $ac_var`
  9808. + case $ac_val in
  9809. + [\\/$]* | ?:[\\/]* ) ;;
  9810. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  9811. + { (exit 1); exit 1; }; };;
  9812. + esac
  9813. +done
  9814. +
  9815. +# There might be people who depend on the old broken behavior: `$host'
  9816. +# used to hold the argument of --host etc.
  9817. +# FIXME: To remove some day.
  9818. +build=$build_alias
  9819. +host=$host_alias
  9820. +target=$target_alias
  9821. +
  9822. +# FIXME: To remove some day.
  9823. +if test "x$host_alias" != x; then
  9824. + if test "x$build_alias" = x; then
  9825. + cross_compiling=maybe
  9826. + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  9827. + If a cross compiler is detected then cross compile mode will be used." >&2
  9828. + elif test "x$build_alias" != "x$host_alias"; then
  9829. + cross_compiling=yes
  9830. + fi
  9831. +fi
  9832. +
  9833. +ac_tool_prefix=
  9834. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  9835. +
  9836. +test "$silent" = yes && exec 6>/dev/null
  9837. +
  9838. +
  9839. +# Find the source files, if location was not specified.
  9840. +if test -z "$srcdir"; then
  9841. + ac_srcdir_defaulted=yes
  9842. + # Try the directory containing this script, then its parent.
  9843. + ac_confdir=`(dirname "$0") 2>/dev/null ||
  9844. +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9845. + X"$0" : 'X\(//\)[^/]' \| \
  9846. + X"$0" : 'X\(//\)$' \| \
  9847. + X"$0" : 'X\(/\)' \| \
  9848. + . : '\(.\)' 2>/dev/null ||
  9849. +echo X"$0" |
  9850. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9851. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9852. + /^X\(\/\/\)$/{ s//\1/; q; }
  9853. + /^X\(\/\).*/{ s//\1/; q; }
  9854. + s/.*/./; q'`
  9855. + srcdir=$ac_confdir
  9856. + if test ! -r $srcdir/$ac_unique_file; then
  9857. + srcdir=..
  9858. + fi
  9859. +else
  9860. + ac_srcdir_defaulted=no
  9861. +fi
  9862. +if test ! -r $srcdir/$ac_unique_file; then
  9863. + if test "$ac_srcdir_defaulted" = yes; then
  9864. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  9865. + { (exit 1); exit 1; }; }
  9866. + else
  9867. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  9868. + { (exit 1); exit 1; }; }
  9869. + fi
  9870. +fi
  9871. +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  9872. + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  9873. + { (exit 1); exit 1; }; }
  9874. +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  9875. +ac_env_build_alias_set=${build_alias+set}
  9876. +ac_env_build_alias_value=$build_alias
  9877. +ac_cv_env_build_alias_set=${build_alias+set}
  9878. +ac_cv_env_build_alias_value=$build_alias
  9879. +ac_env_host_alias_set=${host_alias+set}
  9880. +ac_env_host_alias_value=$host_alias
  9881. +ac_cv_env_host_alias_set=${host_alias+set}
  9882. +ac_cv_env_host_alias_value=$host_alias
  9883. +ac_env_target_alias_set=${target_alias+set}
  9884. +ac_env_target_alias_value=$target_alias
  9885. +ac_cv_env_target_alias_set=${target_alias+set}
  9886. +ac_cv_env_target_alias_value=$target_alias
  9887. +ac_env_CC_set=${CC+set}
  9888. +ac_env_CC_value=$CC
  9889. +ac_cv_env_CC_set=${CC+set}
  9890. +ac_cv_env_CC_value=$CC
  9891. +ac_env_CFLAGS_set=${CFLAGS+set}
  9892. +ac_env_CFLAGS_value=$CFLAGS
  9893. +ac_cv_env_CFLAGS_set=${CFLAGS+set}
  9894. +ac_cv_env_CFLAGS_value=$CFLAGS
  9895. +ac_env_LDFLAGS_set=${LDFLAGS+set}
  9896. +ac_env_LDFLAGS_value=$LDFLAGS
  9897. +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  9898. +ac_cv_env_LDFLAGS_value=$LDFLAGS
  9899. +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  9900. +ac_env_CPPFLAGS_value=$CPPFLAGS
  9901. +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  9902. +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  9903. +ac_env_CPP_set=${CPP+set}
  9904. +ac_env_CPP_value=$CPP
  9905. +ac_cv_env_CPP_set=${CPP+set}
  9906. +ac_cv_env_CPP_value=$CPP
  9907. +
  9908. +#
  9909. +# Report the --help message.
  9910. +#
  9911. +if test "$ac_init_help" = "long"; then
  9912. + # Omit some internal or obsolete options to make the list less imposing.
  9913. + # This message is too long to be a string in the A/UX 3.1 sh.
  9914. + cat <<_ACEOF
  9915. +\`configure' configures this package to adapt to many kinds of systems.
  9916. +
  9917. +Usage: $0 [OPTION]... [VAR=VALUE]...
  9918. +
  9919. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  9920. +VAR=VALUE. See below for descriptions of some of the useful variables.
  9921. +
  9922. +Defaults for the options are specified in brackets.
  9923. +
  9924. +Configuration:
  9925. + -h, --help display this help and exit
  9926. + --help=short display options specific to this package
  9927. + --help=recursive display the short help of all the included packages
  9928. + -V, --version display version information and exit
  9929. + -q, --quiet, --silent do not print \`checking...' messages
  9930. + --cache-file=FILE cache test results in FILE [disabled]
  9931. + -C, --config-cache alias for \`--cache-file=config.cache'
  9932. + -n, --no-create do not create output files
  9933. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  9934. +
  9935. +_ACEOF
  9936. +
  9937. + cat <<_ACEOF
  9938. +Installation directories:
  9939. + --prefix=PREFIX install architecture-independent files in PREFIX
  9940. + [$ac_default_prefix]
  9941. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  9942. + [PREFIX]
  9943. +
  9944. +By default, \`make install' will install all the files in
  9945. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  9946. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  9947. +for instance \`--prefix=\$HOME'.
  9948. +
  9949. +For better control, use the options below.
  9950. +
  9951. +Fine tuning of the installation directories:
  9952. + --bindir=DIR user executables [EPREFIX/bin]
  9953. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  9954. + --libexecdir=DIR program executables [EPREFIX/libexec]
  9955. + --datadir=DIR read-only architecture-independent data [PREFIX/share]
  9956. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  9957. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  9958. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  9959. + --libdir=DIR object code libraries [EPREFIX/lib]
  9960. + --includedir=DIR C header files [PREFIX/include]
  9961. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  9962. + --infodir=DIR info documentation [PREFIX/info]
  9963. + --mandir=DIR man documentation [PREFIX/man]
  9964. +_ACEOF
  9965. +
  9966. + cat <<\_ACEOF
  9967. +
  9968. +Program names:
  9969. + --program-prefix=PREFIX prepend PREFIX to installed program names
  9970. + --program-suffix=SUFFIX append SUFFIX to installed program names
  9971. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  9972. +
  9973. +System types:
  9974. + --build=BUILD configure for building on BUILD [guessed]
  9975. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  9976. + --target=TARGET configure for building compilers for TARGET [HOST]
  9977. +_ACEOF
  9978. +fi
  9979. +
  9980. +if test -n "$ac_init_help"; then
  9981. +
  9982. + cat <<\_ACEOF
  9983. +
  9984. +Optional Features:
  9985. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  9986. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  9987. + --enable-shared=PKGS build shared libraries default=yes
  9988. + --enable-static=PKGS build static libraries default=yes
  9989. + --enable-fast-install=PKGS optimize for fast installation default=yes
  9990. + --disable-libtool-lock avoid locking (might break parallel builds)
  9991. + --enable-allow_uni30 Allow UNI 3.0 backwards-compatible extensions (if using UNI 3.1)
  9992. + --enable-q2963_1 Enable peak cell rate modification as specified in Q.2963.1 (if using UNI 4.0)
  9993. + --enable-cisco Enable work around for point-to-multipoint signaling bug in Cisco LS100 or LS7010 switches
  9994. + --enable-thomflex Some versions of the Thomson Thomflex 5000 won't do any signaling before they get a RESTART. Enable sending of a RESTART whenever SAAL comes up.
  9995. + --enable-mpoa_1_1 Enable proposed MPOA 1.1 features
  9996. + --enable-mpr Enable memory debugging (if MPR is installed)
  9997. +
  9998. +Optional Packages:
  9999. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  10000. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  10001. + --with-gnu-ld assume the C compiler uses GNU ld default=no
  10002. + --with-pic try to use only PIC/non-PIC objects default=use both
  10003. + --with-uni=VERSION UNI version to use (3.0,3.1,4.0) default=dynamic
  10004. +
  10005. +Some influential environment variables:
  10006. + CC C compiler command
  10007. + CFLAGS C compiler flags
  10008. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  10009. + nonstandard directory <lib dir>
  10010. + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  10011. + headers in a nonstandard directory <include dir>
  10012. + CPP C preprocessor
  10013. +
  10014. +Use these variables to override the choices made by `configure' or to help
  10015. +it to find libraries and programs with nonstandard names/locations.
  10016. +
  10017. +_ACEOF
  10018. +fi
  10019. +
  10020. +if test "$ac_init_help" = "recursive"; then
  10021. + # If there are subdirs, report their specific --help.
  10022. + ac_popdir=`pwd`
  10023. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  10024. + test -d $ac_dir || continue
  10025. + ac_builddir=.
  10026. +
  10027. +if test "$ac_dir" != .; then
  10028. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10029. + # A "../" for each directory in $ac_dir_suffix.
  10030. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10031. +else
  10032. + ac_dir_suffix= ac_top_builddir=
  10033. +fi
  10034. +
  10035. +case $srcdir in
  10036. + .) # No --srcdir option. We are building in place.
  10037. + ac_srcdir=.
  10038. + if test -z "$ac_top_builddir"; then
  10039. + ac_top_srcdir=.
  10040. + else
  10041. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10042. + fi ;;
  10043. + [\\/]* | ?:[\\/]* ) # Absolute path.
  10044. + ac_srcdir=$srcdir$ac_dir_suffix;
  10045. + ac_top_srcdir=$srcdir ;;
  10046. + *) # Relative path.
  10047. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10048. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10049. +esac
  10050. +
  10051. +# Do not use `cd foo && pwd` to compute absolute paths, because
  10052. +# the directories may not exist.
  10053. +case `pwd` in
  10054. +.) ac_abs_builddir="$ac_dir";;
  10055. +*)
  10056. + case "$ac_dir" in
  10057. + .) ac_abs_builddir=`pwd`;;
  10058. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  10059. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  10060. + esac;;
  10061. +esac
  10062. +case $ac_abs_builddir in
  10063. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  10064. +*)
  10065. + case ${ac_top_builddir}. in
  10066. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  10067. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  10068. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  10069. + esac;;
  10070. +esac
  10071. +case $ac_abs_builddir in
  10072. +.) ac_abs_srcdir=$ac_srcdir;;
  10073. +*)
  10074. + case $ac_srcdir in
  10075. + .) ac_abs_srcdir=$ac_abs_builddir;;
  10076. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  10077. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  10078. + esac;;
  10079. +esac
  10080. +case $ac_abs_builddir in
  10081. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  10082. +*)
  10083. + case $ac_top_srcdir in
  10084. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10085. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10086. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10087. + esac;;
  10088. +esac
  10089. +
  10090. + cd $ac_dir
  10091. + # Check for guested configure; otherwise get Cygnus style configure.
  10092. + if test -f $ac_srcdir/configure.gnu; then
  10093. + echo
  10094. + $SHELL $ac_srcdir/configure.gnu --help=recursive
  10095. + elif test -f $ac_srcdir/configure; then
  10096. + echo
  10097. + $SHELL $ac_srcdir/configure --help=recursive
  10098. + elif test -f $ac_srcdir/configure.ac ||
  10099. + test -f $ac_srcdir/configure.in; then
  10100. + echo
  10101. + $ac_configure --help
  10102. + else
  10103. + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  10104. + fi
  10105. + cd "$ac_popdir"
  10106. + done
  10107. +fi
  10108. +
  10109. +test -n "$ac_init_help" && exit 0
  10110. +if $ac_init_version; then
  10111. + cat <<\_ACEOF
  10112. +
  10113. +Copyright (C) 2003 Free Software Foundation, Inc.
  10114. +This configure script is free software; the Free Software Foundation
  10115. +gives unlimited permission to copy, distribute and modify it.
  10116. +_ACEOF
  10117. + exit 0
  10118. +fi
  10119. +exec 5>config.log
  10120. +cat >&5 <<_ACEOF
  10121. +This file contains any messages produced by compilers while
  10122. +running configure, to aid debugging if configure makes a mistake.
  10123. +
  10124. +It was created by $as_me, which was
  10125. +generated by GNU Autoconf 2.59. Invocation command line was
  10126. +
  10127. + $ $0 $@
  10128. +
  10129. +_ACEOF
  10130. +{
  10131. +cat <<_ASUNAME
  10132. +@%:@@%:@ --------- @%:@@%:@
  10133. +@%:@@%:@ Platform. @%:@@%:@
  10134. +@%:@@%:@ --------- @%:@@%:@
  10135. +
  10136. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  10137. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  10138. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  10139. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  10140. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  10141. +
  10142. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  10143. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  10144. +
  10145. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  10146. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  10147. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  10148. +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  10149. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  10150. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  10151. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  10152. +
  10153. +_ASUNAME
  10154. +
  10155. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10156. +for as_dir in $PATH
  10157. +do
  10158. + IFS=$as_save_IFS
  10159. + test -z "$as_dir" && as_dir=.
  10160. + echo "PATH: $as_dir"
  10161. +done
  10162. +
  10163. +} >&5
  10164. +
  10165. +cat >&5 <<_ACEOF
  10166. +
  10167. +
  10168. +@%:@@%:@ ----------- @%:@@%:@
  10169. +@%:@@%:@ Core tests. @%:@@%:@
  10170. +@%:@@%:@ ----------- @%:@@%:@
  10171. +
  10172. +_ACEOF
  10173. +
  10174. +
  10175. +# Keep a trace of the command line.
  10176. +# Strip out --no-create and --no-recursion so they do not pile up.
  10177. +# Strip out --silent because we don't want to record it for future runs.
  10178. +# Also quote any args containing shell meta-characters.
  10179. +# Make two passes to allow for proper duplicate-argument suppression.
  10180. +ac_configure_args=
  10181. +ac_configure_args0=
  10182. +ac_configure_args1=
  10183. +ac_sep=
  10184. +ac_must_keep_next=false
  10185. +for ac_pass in 1 2
  10186. +do
  10187. + for ac_arg
  10188. + do
  10189. + case $ac_arg in
  10190. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  10191. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10192. + | -silent | --silent | --silen | --sile | --sil)
  10193. + continue ;;
  10194. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  10195. + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10196. + esac
  10197. + case $ac_pass in
  10198. + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  10199. + 2)
  10200. + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  10201. + if test $ac_must_keep_next = true; then
  10202. + ac_must_keep_next=false # Got value, back to normal.
  10203. + else
  10204. + case $ac_arg in
  10205. + *=* | --config-cache | -C | -disable-* | --disable-* \
  10206. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  10207. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  10208. + | -with-* | --with-* | -without-* | --without-* | --x)
  10209. + case "$ac_configure_args0 " in
  10210. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  10211. + esac
  10212. + ;;
  10213. + -* ) ac_must_keep_next=true ;;
  10214. + esac
  10215. + fi
  10216. + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  10217. + # Get rid of the leading space.
  10218. + ac_sep=" "
  10219. + ;;
  10220. + esac
  10221. + done
  10222. +done
  10223. +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  10224. +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  10225. +
  10226. +# When interrupted or exit'd, cleanup temporary files, and complete
  10227. +# config.log. We remove comments because anyway the quotes in there
  10228. +# would cause problems or look ugly.
  10229. +# WARNING: Be sure not to use single quotes in there, as some shells,
  10230. +# such as our DU 5.0 friend, will then `close' the trap.
  10231. +trap 'exit_status=$?
  10232. + # Save into config.log some information that might help in debugging.
  10233. + {
  10234. + echo
  10235. +
  10236. + cat <<\_ASBOX
  10237. +@%:@@%:@ ---------------- @%:@@%:@
  10238. +@%:@@%:@ Cache variables. @%:@@%:@
  10239. +@%:@@%:@ ---------------- @%:@@%:@
  10240. +_ASBOX
  10241. + echo
  10242. + # The following way of writing the cache mishandles newlines in values,
  10243. +{
  10244. + (set) 2>&1 |
  10245. + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  10246. + *ac_space=\ *)
  10247. + sed -n \
  10248. + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  10249. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  10250. + ;;
  10251. + *)
  10252. + sed -n \
  10253. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10254. + ;;
  10255. + esac;
  10256. +}
  10257. + echo
  10258. +
  10259. + cat <<\_ASBOX
  10260. +@%:@@%:@ ----------------- @%:@@%:@
  10261. +@%:@@%:@ Output variables. @%:@@%:@
  10262. +@%:@@%:@ ----------------- @%:@@%:@
  10263. +_ASBOX
  10264. + echo
  10265. + for ac_var in $ac_subst_vars
  10266. + do
  10267. + eval ac_val=$`echo $ac_var`
  10268. + echo "$ac_var='"'"'$ac_val'"'"'"
  10269. + done | sort
  10270. + echo
  10271. +
  10272. + if test -n "$ac_subst_files"; then
  10273. + cat <<\_ASBOX
  10274. +@%:@@%:@ ------------- @%:@@%:@
  10275. +@%:@@%:@ Output files. @%:@@%:@
  10276. +@%:@@%:@ ------------- @%:@@%:@
  10277. +_ASBOX
  10278. + echo
  10279. + for ac_var in $ac_subst_files
  10280. + do
  10281. + eval ac_val=$`echo $ac_var`
  10282. + echo "$ac_var='"'"'$ac_val'"'"'"
  10283. + done | sort
  10284. + echo
  10285. + fi
  10286. +
  10287. + if test -s confdefs.h; then
  10288. + cat <<\_ASBOX
  10289. +@%:@@%:@ ----------- @%:@@%:@
  10290. +@%:@@%:@ confdefs.h. @%:@@%:@
  10291. +@%:@@%:@ ----------- @%:@@%:@
  10292. +_ASBOX
  10293. + echo
  10294. + sed "/^$/d" confdefs.h | sort
  10295. + echo
  10296. + fi
  10297. + test "$ac_signal" != 0 &&
  10298. + echo "$as_me: caught signal $ac_signal"
  10299. + echo "$as_me: exit $exit_status"
  10300. + } >&5
  10301. + rm -f core *.core &&
  10302. + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  10303. + exit $exit_status
  10304. + ' 0
  10305. +for ac_signal in 1 2 13 15; do
  10306. + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  10307. +done
  10308. +ac_signal=0
  10309. +
  10310. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  10311. +rm -rf conftest* confdefs.h
  10312. +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  10313. +echo >confdefs.h
  10314. +
  10315. +# Predefined preprocessor variables.
  10316. +
  10317. +cat >>confdefs.h <<_ACEOF
  10318. +@%:@define PACKAGE_NAME "$PACKAGE_NAME"
  10319. +_ACEOF
  10320. +
  10321. +
  10322. +cat >>confdefs.h <<_ACEOF
  10323. +@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  10324. +_ACEOF
  10325. +
  10326. +
  10327. +cat >>confdefs.h <<_ACEOF
  10328. +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  10329. +_ACEOF
  10330. +
  10331. +
  10332. +cat >>confdefs.h <<_ACEOF
  10333. +@%:@define PACKAGE_STRING "$PACKAGE_STRING"
  10334. +_ACEOF
  10335. +
  10336. +
  10337. +cat >>confdefs.h <<_ACEOF
  10338. +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  10339. +_ACEOF
  10340. +
  10341. +
  10342. +# Let the site file select an alternate cache file if it wants to.
  10343. +# Prefer explicitly selected file to automatically selected ones.
  10344. +if test -z "$CONFIG_SITE"; then
  10345. + if test "x$prefix" != xNONE; then
  10346. + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  10347. + else
  10348. + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  10349. + fi
  10350. +fi
  10351. +for ac_site_file in $CONFIG_SITE; do
  10352. + if test -r "$ac_site_file"; then
  10353. + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  10354. +echo "$as_me: loading site script $ac_site_file" >&6;}
  10355. + sed 's/^/| /' "$ac_site_file" >&5
  10356. + . "$ac_site_file"
  10357. + fi
  10358. +done
  10359. +
  10360. +if test -r "$cache_file"; then
  10361. + # Some versions of bash will fail to source /dev/null (special
  10362. + # files actually), so we avoid doing that.
  10363. + if test -f "$cache_file"; then
  10364. + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  10365. +echo "$as_me: loading cache $cache_file" >&6;}
  10366. + case $cache_file in
  10367. + [\\/]* | ?:[\\/]* ) . $cache_file;;
  10368. + *) . ./$cache_file;;
  10369. + esac
  10370. + fi
  10371. +else
  10372. + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  10373. +echo "$as_me: creating cache $cache_file" >&6;}
  10374. + >$cache_file
  10375. +fi
  10376. +
  10377. +# Check that the precious variables saved in the cache have kept the same
  10378. +# value.
  10379. +ac_cache_corrupted=false
  10380. +for ac_var in `(set) 2>&1 |
  10381. + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  10382. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  10383. + eval ac_new_set=\$ac_env_${ac_var}_set
  10384. + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  10385. + eval ac_new_val="\$ac_env_${ac_var}_value"
  10386. + case $ac_old_set,$ac_new_set in
  10387. + set,)
  10388. + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  10389. +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  10390. + ac_cache_corrupted=: ;;
  10391. + ,set)
  10392. + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  10393. +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  10394. + ac_cache_corrupted=: ;;
  10395. + ,);;
  10396. + *)
  10397. + if test "x$ac_old_val" != "x$ac_new_val"; then
  10398. + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  10399. +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  10400. + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  10401. +echo "$as_me: former value: $ac_old_val" >&2;}
  10402. + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  10403. +echo "$as_me: current value: $ac_new_val" >&2;}
  10404. + ac_cache_corrupted=:
  10405. + fi;;
  10406. + esac
  10407. + # Pass precious variables to config.status.
  10408. + if test "$ac_new_set" = set; then
  10409. + case $ac_new_val in
  10410. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  10411. + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  10412. + *) ac_arg=$ac_var=$ac_new_val ;;
  10413. + esac
  10414. + case " $ac_configure_args " in
  10415. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  10416. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  10417. + esac
  10418. + fi
  10419. +done
  10420. +if $ac_cache_corrupted; then
  10421. + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  10422. +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  10423. + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  10424. +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  10425. + { (exit 1); exit 1; }; }
  10426. +fi
  10427. +
  10428. +ac_ext=c
  10429. +ac_cpp='$CPP $CPPFLAGS'
  10430. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10431. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10432. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10433. +
  10434. +
  10435. +
  10436. +
  10437. +
  10438. +
  10439. +
  10440. +
  10441. +
  10442. +
  10443. +
  10444. +
  10445. +
  10446. +
  10447. +
  10448. +
  10449. +
  10450. +
  10451. +
  10452. +
  10453. + ac_config_headers="$ac_config_headers config.h"
  10454. +
  10455. + ac_config_commands="$ac_config_commands default-1"
  10456. +
  10457. +
  10458. +ac_aux_dir=
  10459. +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  10460. + if test -f $ac_dir/install-sh; then
  10461. + ac_aux_dir=$ac_dir
  10462. + ac_install_sh="$ac_aux_dir/install-sh -c"
  10463. + break
  10464. + elif test -f $ac_dir/install.sh; then
  10465. + ac_aux_dir=$ac_dir
  10466. + ac_install_sh="$ac_aux_dir/install.sh -c"
  10467. + break
  10468. + elif test -f $ac_dir/shtool; then
  10469. + ac_aux_dir=$ac_dir
  10470. + ac_install_sh="$ac_aux_dir/shtool install -c"
  10471. + break
  10472. + fi
  10473. +done
  10474. +if test -z "$ac_aux_dir"; then
  10475. + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  10476. +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  10477. + { (exit 1); exit 1; }; }
  10478. +fi
  10479. +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  10480. +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  10481. +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  10482. +
  10483. +# Make sure we can run config.sub.
  10484. +$ac_config_sub sun4 >/dev/null 2>&1 ||
  10485. + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  10486. +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  10487. + { (exit 1); exit 1; }; }
  10488. +
  10489. +echo "$as_me:$LINENO: checking build system type" >&5
  10490. +echo $ECHO_N "checking build system type... $ECHO_C" >&6
  10491. +if test "${ac_cv_build+set}" = set; then
  10492. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10493. +else
  10494. + ac_cv_build_alias=$build_alias
  10495. +test -z "$ac_cv_build_alias" &&
  10496. + ac_cv_build_alias=`$ac_config_guess`
  10497. +test -z "$ac_cv_build_alias" &&
  10498. + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  10499. +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  10500. + { (exit 1); exit 1; }; }
  10501. +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  10502. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  10503. +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  10504. + { (exit 1); exit 1; }; }
  10505. +
  10506. +fi
  10507. +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  10508. +echo "${ECHO_T}$ac_cv_build" >&6
  10509. +build=$ac_cv_build
  10510. +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  10511. +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  10512. +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  10513. +
  10514. +
  10515. +echo "$as_me:$LINENO: checking host system type" >&5
  10516. +echo $ECHO_N "checking host system type... $ECHO_C" >&6
  10517. +if test "${ac_cv_host+set}" = set; then
  10518. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10519. +else
  10520. + ac_cv_host_alias=$host_alias
  10521. +test -z "$ac_cv_host_alias" &&
  10522. + ac_cv_host_alias=$ac_cv_build_alias
  10523. +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  10524. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  10525. +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  10526. + { (exit 1); exit 1; }; }
  10527. +
  10528. +fi
  10529. +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  10530. +echo "${ECHO_T}$ac_cv_host" >&6
  10531. +host=$ac_cv_host
  10532. +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  10533. +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  10534. +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  10535. +
  10536. +
  10537. +echo "$as_me:$LINENO: checking target system type" >&5
  10538. +echo $ECHO_N "checking target system type... $ECHO_C" >&6
  10539. +if test "${ac_cv_target+set}" = set; then
  10540. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10541. +else
  10542. + ac_cv_target_alias=$target_alias
  10543. +test "x$ac_cv_target_alias" = "x" &&
  10544. + ac_cv_target_alias=$ac_cv_host_alias
  10545. +ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  10546. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  10547. +echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  10548. + { (exit 1); exit 1; }; }
  10549. +
  10550. +fi
  10551. +echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  10552. +echo "${ECHO_T}$ac_cv_target" >&6
  10553. +target=$ac_cv_target
  10554. +target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  10555. +target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  10556. +target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  10557. +
  10558. +
  10559. +# The aliases save the names the user supplied, while $host etc.
  10560. +# will get canonicalized.
  10561. +test -n "$target_alias" &&
  10562. + test "$program_prefix$program_suffix$program_transform_name" = \
  10563. + NONENONEs,x,x, &&
  10564. + program_prefix=${target_alias}-
  10565. +
  10566. +am__api_version="1.4"
  10567. +# Find a good install program. We prefer a C program (faster),
  10568. +# so one script is as good as another. But avoid the broken or
  10569. +# incompatible versions:
  10570. +# SysV /etc/install, /usr/sbin/install
  10571. +# SunOS /usr/etc/install
  10572. +# IRIX /sbin/install
  10573. +# AIX /bin/install
  10574. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  10575. +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  10576. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  10577. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  10578. +# OS/2's system install, which has a completely different semantic
  10579. +# ./install, which can be erroneously created by make from ./install.sh.
  10580. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  10581. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  10582. +if test -z "$INSTALL"; then
  10583. +if test "${ac_cv_path_install+set}" = set; then
  10584. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10585. +else
  10586. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10587. +for as_dir in $PATH
  10588. +do
  10589. + IFS=$as_save_IFS
  10590. + test -z "$as_dir" && as_dir=.
  10591. + # Account for people who put trailing slashes in PATH elements.
  10592. +case $as_dir/ in
  10593. + ./ | .// | /cC/* | \
  10594. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  10595. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  10596. + /usr/ucb/* ) ;;
  10597. + *)
  10598. + # OSF1 and SCO ODT 3.0 have their own names for install.
  10599. + # Don't use installbsd from OSF since it installs stuff as root
  10600. + # by default.
  10601. + for ac_prog in ginstall scoinst install; do
  10602. + for ac_exec_ext in '' $ac_executable_extensions; do
  10603. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  10604. + if test $ac_prog = install &&
  10605. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10606. + # AIX install. It has an incompatible calling convention.
  10607. + :
  10608. + elif test $ac_prog = install &&
  10609. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10610. + # program-specific install script used by HP pwplus--don't use.
  10611. + :
  10612. + else
  10613. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  10614. + break 3
  10615. + fi
  10616. + fi
  10617. + done
  10618. + done
  10619. + ;;
  10620. +esac
  10621. +done
  10622. +
  10623. +
  10624. +fi
  10625. + if test "${ac_cv_path_install+set}" = set; then
  10626. + INSTALL=$ac_cv_path_install
  10627. + else
  10628. + # As a last resort, use the slow shell script. We don't cache a
  10629. + # path for INSTALL within a source directory, because that will
  10630. + # break other packages using the cache if that directory is
  10631. + # removed, or if the path is relative.
  10632. + INSTALL=$ac_install_sh
  10633. + fi
  10634. +fi
  10635. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  10636. +echo "${ECHO_T}$INSTALL" >&6
  10637. +
  10638. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  10639. +# It thinks the first close brace ends the variable substitution.
  10640. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  10641. +
  10642. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  10643. +
  10644. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  10645. +
  10646. +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  10647. +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  10648. +# Just in case
  10649. +sleep 1
  10650. +echo timestamp > conftestfile
  10651. +# Do `set' in a subshell so we don't clobber the current shell's
  10652. +# arguments. Must try -L first in case configure is actually a
  10653. +# symlink; some systems play weird games with the mod time of symlinks
  10654. +# (eg FreeBSD returns the mod time of the symlink's containing
  10655. +# directory).
  10656. +if (
  10657. + set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  10658. + if test "$*" = "X"; then
  10659. + # -L didn't work.
  10660. + set X `ls -t $srcdir/configure conftestfile`
  10661. + fi
  10662. + if test "$*" != "X $srcdir/configure conftestfile" \
  10663. + && test "$*" != "X conftestfile $srcdir/configure"; then
  10664. +
  10665. + # If neither matched, then we have a broken ls. This can happen
  10666. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  10667. + # broken ls alias from the environment. This has actually
  10668. + # happened. Such a system could not be considered "sane".
  10669. + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  10670. +alias in your environment" >&5
  10671. +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  10672. +alias in your environment" >&2;}
  10673. + { (exit 1); exit 1; }; }
  10674. + fi
  10675. +
  10676. + test "$2" = conftestfile
  10677. + )
  10678. +then
  10679. + # Ok.
  10680. + :
  10681. +else
  10682. + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  10683. +Check your system clock" >&5
  10684. +echo "$as_me: error: newly created file is older than distributed files!
  10685. +Check your system clock" >&2;}
  10686. + { (exit 1); exit 1; }; }
  10687. +fi
  10688. +rm -f conftest*
  10689. +echo "$as_me:$LINENO: result: yes" >&5
  10690. +echo "${ECHO_T}yes" >&6
  10691. +test "$program_prefix" != NONE &&
  10692. + program_transform_name="s,^,$program_prefix,;$program_transform_name"
  10693. +# Use a double $ so make ignores it.
  10694. +test "$program_suffix" != NONE &&
  10695. + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  10696. +# Double any \ or $. echo might interpret backslashes.
  10697. +# By default was `s,x,x', remove it if useless.
  10698. +cat <<\_ACEOF >conftest.sed
  10699. +s/[\\$]/&&/g;s/;s,x,x,$//
  10700. +_ACEOF
  10701. +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  10702. +rm conftest.sed
  10703. +
  10704. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  10705. +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  10706. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  10707. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  10708. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10709. +else
  10710. + cat >conftest.make <<\_ACEOF
  10711. +all:
  10712. + @echo 'ac_maketemp="$(MAKE)"'
  10713. +_ACEOF
  10714. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  10715. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  10716. +if test -n "$ac_maketemp"; then
  10717. + eval ac_cv_prog_make_${ac_make}_set=yes
  10718. +else
  10719. + eval ac_cv_prog_make_${ac_make}_set=no
  10720. +fi
  10721. +rm -f conftest.make
  10722. +fi
  10723. +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  10724. + echo "$as_me:$LINENO: result: yes" >&5
  10725. +echo "${ECHO_T}yes" >&6
  10726. + SET_MAKE=
  10727. +else
  10728. + echo "$as_me:$LINENO: result: no" >&5
  10729. +echo "${ECHO_T}no" >&6
  10730. + SET_MAKE="MAKE=${MAKE-make}"
  10731. +fi
  10732. +
  10733. +
  10734. +PACKAGE=linux-atm
  10735. +
  10736. +VERSION=2.4.1
  10737. +
  10738. +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  10739. + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  10740. +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  10741. + { (exit 1); exit 1; }; }
  10742. +fi
  10743. +
  10744. +cat >>confdefs.h <<_ACEOF
  10745. +@%:@define PACKAGE "$PACKAGE"
  10746. +_ACEOF
  10747. +
  10748. +
  10749. +cat >>confdefs.h <<_ACEOF
  10750. +@%:@define VERSION "$VERSION"
  10751. +_ACEOF
  10752. +
  10753. +
  10754. +
  10755. +missing_dir=`cd $ac_aux_dir && pwd`
  10756. +echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
  10757. +echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
  10758. +# Run test in a subshell; some versions of sh will print an error if
  10759. +# an executable is not found, even if stderr is redirected.
  10760. +# Redirect stdin to placate older versions of autoconf. Sigh.
  10761. +if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  10762. + ACLOCAL=aclocal-${am__api_version}
  10763. + echo "$as_me:$LINENO: result: found" >&5
  10764. +echo "${ECHO_T}found" >&6
  10765. +else
  10766. + ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
  10767. + echo "$as_me:$LINENO: result: missing" >&5
  10768. +echo "${ECHO_T}missing" >&6
  10769. +fi
  10770. +
  10771. +echo "$as_me:$LINENO: checking for working autoconf" >&5
  10772. +echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
  10773. +# Run test in a subshell; some versions of sh will print an error if
  10774. +# an executable is not found, even if stderr is redirected.
  10775. +# Redirect stdin to placate older versions of autoconf. Sigh.
  10776. +if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  10777. + AUTOCONF=autoconf
  10778. + echo "$as_me:$LINENO: result: found" >&5
  10779. +echo "${ECHO_T}found" >&6
  10780. +else
  10781. + AUTOCONF="$missing_dir/missing autoconf"
  10782. + echo "$as_me:$LINENO: result: missing" >&5
  10783. +echo "${ECHO_T}missing" >&6
  10784. +fi
  10785. +
  10786. +echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
  10787. +echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
  10788. +# Run test in a subshell; some versions of sh will print an error if
  10789. +# an executable is not found, even if stderr is redirected.
  10790. +# Redirect stdin to placate older versions of autoconf. Sigh.
  10791. +if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  10792. + AUTOMAKE=automake-${am__api_version}
  10793. + echo "$as_me:$LINENO: result: found" >&5
  10794. +echo "${ECHO_T}found" >&6
  10795. +else
  10796. + AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
  10797. + echo "$as_me:$LINENO: result: missing" >&5
  10798. +echo "${ECHO_T}missing" >&6
  10799. +fi
  10800. +
  10801. +echo "$as_me:$LINENO: checking for working autoheader" >&5
  10802. +echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
  10803. +# Run test in a subshell; some versions of sh will print an error if
  10804. +# an executable is not found, even if stderr is redirected.
  10805. +# Redirect stdin to placate older versions of autoconf. Sigh.
  10806. +if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  10807. + AUTOHEADER=autoheader
  10808. + echo "$as_me:$LINENO: result: found" >&5
  10809. +echo "${ECHO_T}found" >&6
  10810. +else
  10811. + AUTOHEADER="$missing_dir/missing autoheader"
  10812. + echo "$as_me:$LINENO: result: missing" >&5
  10813. +echo "${ECHO_T}missing" >&6
  10814. +fi
  10815. +
  10816. +echo "$as_me:$LINENO: checking for working makeinfo" >&5
  10817. +echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
  10818. +# Run test in a subshell; some versions of sh will print an error if
  10819. +# an executable is not found, even if stderr is redirected.
  10820. +# Redirect stdin to placate older versions of autoconf. Sigh.
  10821. +if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  10822. + MAKEINFO=makeinfo
  10823. + echo "$as_me:$LINENO: result: found" >&5
  10824. +echo "${ECHO_T}found" >&6
  10825. +else
  10826. + MAKEINFO="$missing_dir/missing makeinfo"
  10827. + echo "$as_me:$LINENO: result: missing" >&5
  10828. +echo "${ECHO_T}missing" >&6
  10829. +fi
  10830. +
  10831. +
  10832. +
  10833. +LIBVER_CURRENT="1"
  10834. +LIBVER_REVISION="0"
  10835. +LIBVER_AGE="0"
  10836. +
  10837. +
  10838. +
  10839. +
  10840. +ac_ext=c
  10841. +ac_cpp='$CPP $CPPFLAGS'
  10842. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10843. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10844. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10845. +if test -n "$ac_tool_prefix"; then
  10846. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10847. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10848. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  10849. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10850. +if test "${ac_cv_prog_CC+set}" = set; then
  10851. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10852. +else
  10853. + if test -n "$CC"; then
  10854. + ac_cv_prog_CC="$CC" # Let the user override the test.
  10855. +else
  10856. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10857. +for as_dir in $PATH
  10858. +do
  10859. + IFS=$as_save_IFS
  10860. + test -z "$as_dir" && as_dir=.
  10861. + for ac_exec_ext in '' $ac_executable_extensions; do
  10862. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10863. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10864. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10865. + break 2
  10866. + fi
  10867. +done
  10868. +done
  10869. +
  10870. +fi
  10871. +fi
  10872. +CC=$ac_cv_prog_CC
  10873. +if test -n "$CC"; then
  10874. + echo "$as_me:$LINENO: result: $CC" >&5
  10875. +echo "${ECHO_T}$CC" >&6
  10876. +else
  10877. + echo "$as_me:$LINENO: result: no" >&5
  10878. +echo "${ECHO_T}no" >&6
  10879. +fi
  10880. +
  10881. +fi
  10882. +if test -z "$ac_cv_prog_CC"; then
  10883. + ac_ct_CC=$CC
  10884. + # Extract the first word of "gcc", so it can be a program name with args.
  10885. +set dummy gcc; ac_word=$2
  10886. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  10887. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10888. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  10889. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10890. +else
  10891. + if test -n "$ac_ct_CC"; then
  10892. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10893. +else
  10894. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10895. +for as_dir in $PATH
  10896. +do
  10897. + IFS=$as_save_IFS
  10898. + test -z "$as_dir" && as_dir=.
  10899. + for ac_exec_ext in '' $ac_executable_extensions; do
  10900. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10901. + ac_cv_prog_ac_ct_CC="gcc"
  10902. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10903. + break 2
  10904. + fi
  10905. +done
  10906. +done
  10907. +
  10908. +fi
  10909. +fi
  10910. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10911. +if test -n "$ac_ct_CC"; then
  10912. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  10913. +echo "${ECHO_T}$ac_ct_CC" >&6
  10914. +else
  10915. + echo "$as_me:$LINENO: result: no" >&5
  10916. +echo "${ECHO_T}no" >&6
  10917. +fi
  10918. +
  10919. + CC=$ac_ct_CC
  10920. +else
  10921. + CC="$ac_cv_prog_CC"
  10922. +fi
  10923. +
  10924. +if test -z "$CC"; then
  10925. + if test -n "$ac_tool_prefix"; then
  10926. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10927. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  10928. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  10929. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10930. +if test "${ac_cv_prog_CC+set}" = set; then
  10931. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10932. +else
  10933. + if test -n "$CC"; then
  10934. + ac_cv_prog_CC="$CC" # Let the user override the test.
  10935. +else
  10936. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10937. +for as_dir in $PATH
  10938. +do
  10939. + IFS=$as_save_IFS
  10940. + test -z "$as_dir" && as_dir=.
  10941. + for ac_exec_ext in '' $ac_executable_extensions; do
  10942. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10943. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  10944. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10945. + break 2
  10946. + fi
  10947. +done
  10948. +done
  10949. +
  10950. +fi
  10951. +fi
  10952. +CC=$ac_cv_prog_CC
  10953. +if test -n "$CC"; then
  10954. + echo "$as_me:$LINENO: result: $CC" >&5
  10955. +echo "${ECHO_T}$CC" >&6
  10956. +else
  10957. + echo "$as_me:$LINENO: result: no" >&5
  10958. +echo "${ECHO_T}no" >&6
  10959. +fi
  10960. +
  10961. +fi
  10962. +if test -z "$ac_cv_prog_CC"; then
  10963. + ac_ct_CC=$CC
  10964. + # Extract the first word of "cc", so it can be a program name with args.
  10965. +set dummy cc; ac_word=$2
  10966. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  10967. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10968. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  10969. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10970. +else
  10971. + if test -n "$ac_ct_CC"; then
  10972. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10973. +else
  10974. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10975. +for as_dir in $PATH
  10976. +do
  10977. + IFS=$as_save_IFS
  10978. + test -z "$as_dir" && as_dir=.
  10979. + for ac_exec_ext in '' $ac_executable_extensions; do
  10980. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10981. + ac_cv_prog_ac_ct_CC="cc"
  10982. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10983. + break 2
  10984. + fi
  10985. +done
  10986. +done
  10987. +
  10988. +fi
  10989. +fi
  10990. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10991. +if test -n "$ac_ct_CC"; then
  10992. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  10993. +echo "${ECHO_T}$ac_ct_CC" >&6
  10994. +else
  10995. + echo "$as_me:$LINENO: result: no" >&5
  10996. +echo "${ECHO_T}no" >&6
  10997. +fi
  10998. +
  10999. + CC=$ac_ct_CC
  11000. +else
  11001. + CC="$ac_cv_prog_CC"
  11002. +fi
  11003. +
  11004. +fi
  11005. +if test -z "$CC"; then
  11006. + # Extract the first word of "cc", so it can be a program name with args.
  11007. +set dummy cc; ac_word=$2
  11008. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11009. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11010. +if test "${ac_cv_prog_CC+set}" = set; then
  11011. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11012. +else
  11013. + if test -n "$CC"; then
  11014. + ac_cv_prog_CC="$CC" # Let the user override the test.
  11015. +else
  11016. + ac_prog_rejected=no
  11017. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11018. +for as_dir in $PATH
  11019. +do
  11020. + IFS=$as_save_IFS
  11021. + test -z "$as_dir" && as_dir=.
  11022. + for ac_exec_ext in '' $ac_executable_extensions; do
  11023. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11024. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11025. + ac_prog_rejected=yes
  11026. + continue
  11027. + fi
  11028. + ac_cv_prog_CC="cc"
  11029. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11030. + break 2
  11031. + fi
  11032. +done
  11033. +done
  11034. +
  11035. +if test $ac_prog_rejected = yes; then
  11036. + # We found a bogon in the path, so make sure we never use it.
  11037. + set dummy $ac_cv_prog_CC
  11038. + shift
  11039. + if test $@%:@ != 0; then
  11040. + # We chose a different compiler from the bogus one.
  11041. + # However, it has the same basename, so the bogon will be chosen
  11042. + # first if we set CC to just the basename; use the full file name.
  11043. + shift
  11044. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  11045. + fi
  11046. +fi
  11047. +fi
  11048. +fi
  11049. +CC=$ac_cv_prog_CC
  11050. +if test -n "$CC"; then
  11051. + echo "$as_me:$LINENO: result: $CC" >&5
  11052. +echo "${ECHO_T}$CC" >&6
  11053. +else
  11054. + echo "$as_me:$LINENO: result: no" >&5
  11055. +echo "${ECHO_T}no" >&6
  11056. +fi
  11057. +
  11058. +fi
  11059. +if test -z "$CC"; then
  11060. + if test -n "$ac_tool_prefix"; then
  11061. + for ac_prog in cl
  11062. + do
  11063. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11064. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11065. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11066. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11067. +if test "${ac_cv_prog_CC+set}" = set; then
  11068. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11069. +else
  11070. + if test -n "$CC"; then
  11071. + ac_cv_prog_CC="$CC" # Let the user override the test.
  11072. +else
  11073. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11074. +for as_dir in $PATH
  11075. +do
  11076. + IFS=$as_save_IFS
  11077. + test -z "$as_dir" && as_dir=.
  11078. + for ac_exec_ext in '' $ac_executable_extensions; do
  11079. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11080. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11081. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11082. + break 2
  11083. + fi
  11084. +done
  11085. +done
  11086. +
  11087. +fi
  11088. +fi
  11089. +CC=$ac_cv_prog_CC
  11090. +if test -n "$CC"; then
  11091. + echo "$as_me:$LINENO: result: $CC" >&5
  11092. +echo "${ECHO_T}$CC" >&6
  11093. +else
  11094. + echo "$as_me:$LINENO: result: no" >&5
  11095. +echo "${ECHO_T}no" >&6
  11096. +fi
  11097. +
  11098. + test -n "$CC" && break
  11099. + done
  11100. +fi
  11101. +if test -z "$CC"; then
  11102. + ac_ct_CC=$CC
  11103. + for ac_prog in cl
  11104. +do
  11105. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  11106. +set dummy $ac_prog; ac_word=$2
  11107. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11108. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11109. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  11110. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11111. +else
  11112. + if test -n "$ac_ct_CC"; then
  11113. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11114. +else
  11115. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11116. +for as_dir in $PATH
  11117. +do
  11118. + IFS=$as_save_IFS
  11119. + test -z "$as_dir" && as_dir=.
  11120. + for ac_exec_ext in '' $ac_executable_extensions; do
  11121. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11122. + ac_cv_prog_ac_ct_CC="$ac_prog"
  11123. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11124. + break 2
  11125. + fi
  11126. +done
  11127. +done
  11128. +
  11129. +fi
  11130. +fi
  11131. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11132. +if test -n "$ac_ct_CC"; then
  11133. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  11134. +echo "${ECHO_T}$ac_ct_CC" >&6
  11135. +else
  11136. + echo "$as_me:$LINENO: result: no" >&5
  11137. +echo "${ECHO_T}no" >&6
  11138. +fi
  11139. +
  11140. + test -n "$ac_ct_CC" && break
  11141. +done
  11142. +
  11143. + CC=$ac_ct_CC
  11144. +fi
  11145. +
  11146. +fi
  11147. +
  11148. +
  11149. +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  11150. +See \`config.log' for more details." >&5
  11151. +echo "$as_me: error: no acceptable C compiler found in \$PATH
  11152. +See \`config.log' for more details." >&2;}
  11153. + { (exit 1); exit 1; }; }
  11154. +
  11155. +# Provide some information about the compiler.
  11156. +echo "$as_me:$LINENO:" \
  11157. + "checking for C compiler version" >&5
  11158. +ac_compiler=`set X $ac_compile; echo $2`
  11159. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  11160. + (eval $ac_compiler --version </dev/null >&5) 2>&5
  11161. + ac_status=$?
  11162. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11163. + (exit $ac_status); }
  11164. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  11165. + (eval $ac_compiler -v </dev/null >&5) 2>&5
  11166. + ac_status=$?
  11167. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11168. + (exit $ac_status); }
  11169. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  11170. + (eval $ac_compiler -V </dev/null >&5) 2>&5
  11171. + ac_status=$?
  11172. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11173. + (exit $ac_status); }
  11174. +
  11175. +cat >conftest.$ac_ext <<_ACEOF
  11176. +/* confdefs.h. */
  11177. +_ACEOF
  11178. +cat confdefs.h >>conftest.$ac_ext
  11179. +cat >>conftest.$ac_ext <<_ACEOF
  11180. +/* end confdefs.h. */
  11181. +
  11182. +int
  11183. +main ()
  11184. +{
  11185. +
  11186. + ;
  11187. + return 0;
  11188. +}
  11189. +_ACEOF
  11190. +ac_clean_files_save=$ac_clean_files
  11191. +ac_clean_files="$ac_clean_files a.out a.exe b.out"
  11192. +# Try to create an executable without -o first, disregard a.out.
  11193. +# It will help us diagnose broken compilers, and finding out an intuition
  11194. +# of exeext.
  11195. +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  11196. +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  11197. +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  11198. +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  11199. + (eval $ac_link_default) 2>&5
  11200. + ac_status=$?
  11201. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11202. + (exit $ac_status); }; then
  11203. + # Find the output, starting from the most likely. This scheme is
  11204. +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  11205. +# resort.
  11206. +
  11207. +# Be careful to initialize this variable, since it used to be cached.
  11208. +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  11209. +ac_cv_exeext=
  11210. +# b.out is created by i960 compilers.
  11211. +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  11212. +do
  11213. + test -f "$ac_file" || continue
  11214. + case $ac_file in
  11215. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  11216. + ;;
  11217. + conftest.$ac_ext )
  11218. + # This is the source file.
  11219. + ;;
  11220. + [ab].out )
  11221. + # We found the default executable, but exeext='' is most
  11222. + # certainly right.
  11223. + break;;
  11224. + *.* )
  11225. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  11226. + # FIXME: I believe we export ac_cv_exeext for Libtool,
  11227. + # but it would be cool to find out if it's true. Does anybody
  11228. + # maintain Libtool? --akim.
  11229. + export ac_cv_exeext
  11230. + break;;
  11231. + * )
  11232. + break;;
  11233. + esac
  11234. +done
  11235. +else
  11236. + echo "$as_me: failed program was:" >&5
  11237. +sed 's/^/| /' conftest.$ac_ext >&5
  11238. +
  11239. +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  11240. +See \`config.log' for more details." >&5
  11241. +echo "$as_me: error: C compiler cannot create executables
  11242. +See \`config.log' for more details." >&2;}
  11243. + { (exit 77); exit 77; }; }
  11244. +fi
  11245. +
  11246. +ac_exeext=$ac_cv_exeext
  11247. +echo "$as_me:$LINENO: result: $ac_file" >&5
  11248. +echo "${ECHO_T}$ac_file" >&6
  11249. +
  11250. +# Check the compiler produces executables we can run. If not, either
  11251. +# the compiler is broken, or we cross compile.
  11252. +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  11253. +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  11254. +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  11255. +# If not cross compiling, check that we can run a simple program.
  11256. +if test "$cross_compiling" != yes; then
  11257. + if { ac_try='./$ac_file'
  11258. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11259. + (eval $ac_try) 2>&5
  11260. + ac_status=$?
  11261. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11262. + (exit $ac_status); }; }; then
  11263. + cross_compiling=no
  11264. + else
  11265. + if test "$cross_compiling" = maybe; then
  11266. + cross_compiling=yes
  11267. + else
  11268. + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  11269. +If you meant to cross compile, use \`--host'.
  11270. +See \`config.log' for more details." >&5
  11271. +echo "$as_me: error: cannot run C compiled programs.
  11272. +If you meant to cross compile, use \`--host'.
  11273. +See \`config.log' for more details." >&2;}
  11274. + { (exit 1); exit 1; }; }
  11275. + fi
  11276. + fi
  11277. +fi
  11278. +echo "$as_me:$LINENO: result: yes" >&5
  11279. +echo "${ECHO_T}yes" >&6
  11280. +
  11281. +rm -f a.out a.exe conftest$ac_cv_exeext b.out
  11282. +ac_clean_files=$ac_clean_files_save
  11283. +# Check the compiler produces executables we can run. If not, either
  11284. +# the compiler is broken, or we cross compile.
  11285. +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  11286. +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  11287. +echo "$as_me:$LINENO: result: $cross_compiling" >&5
  11288. +echo "${ECHO_T}$cross_compiling" >&6
  11289. +
  11290. +echo "$as_me:$LINENO: checking for suffix of executables" >&5
  11291. +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  11292. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11293. + (eval $ac_link) 2>&5
  11294. + ac_status=$?
  11295. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11296. + (exit $ac_status); }; then
  11297. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  11298. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  11299. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  11300. +# `rm'.
  11301. +for ac_file in conftest.exe conftest conftest.*; do
  11302. + test -f "$ac_file" || continue
  11303. + case $ac_file in
  11304. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  11305. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  11306. + export ac_cv_exeext
  11307. + break;;
  11308. + * ) break;;
  11309. + esac
  11310. +done
  11311. +else
  11312. + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  11313. +See \`config.log' for more details." >&5
  11314. +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  11315. +See \`config.log' for more details." >&2;}
  11316. + { (exit 1); exit 1; }; }
  11317. +fi
  11318. +
  11319. +rm -f conftest$ac_cv_exeext
  11320. +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  11321. +echo "${ECHO_T}$ac_cv_exeext" >&6
  11322. +
  11323. +rm -f conftest.$ac_ext
  11324. +EXEEXT=$ac_cv_exeext
  11325. +ac_exeext=$EXEEXT
  11326. +echo "$as_me:$LINENO: checking for suffix of object files" >&5
  11327. +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  11328. +if test "${ac_cv_objext+set}" = set; then
  11329. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11330. +else
  11331. + cat >conftest.$ac_ext <<_ACEOF
  11332. +/* confdefs.h. */
  11333. +_ACEOF
  11334. +cat confdefs.h >>conftest.$ac_ext
  11335. +cat >>conftest.$ac_ext <<_ACEOF
  11336. +/* end confdefs.h. */
  11337. +
  11338. +int
  11339. +main ()
  11340. +{
  11341. +
  11342. + ;
  11343. + return 0;
  11344. +}
  11345. +_ACEOF
  11346. +rm -f conftest.o conftest.obj
  11347. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11348. + (eval $ac_compile) 2>&5
  11349. + ac_status=$?
  11350. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11351. + (exit $ac_status); }; then
  11352. + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  11353. + case $ac_file in
  11354. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  11355. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  11356. + break;;
  11357. + esac
  11358. +done
  11359. +else
  11360. + echo "$as_me: failed program was:" >&5
  11361. +sed 's/^/| /' conftest.$ac_ext >&5
  11362. +
  11363. +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  11364. +See \`config.log' for more details." >&5
  11365. +echo "$as_me: error: cannot compute suffix of object files: cannot compile
  11366. +See \`config.log' for more details." >&2;}
  11367. + { (exit 1); exit 1; }; }
  11368. +fi
  11369. +
  11370. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  11371. +fi
  11372. +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  11373. +echo "${ECHO_T}$ac_cv_objext" >&6
  11374. +OBJEXT=$ac_cv_objext
  11375. +ac_objext=$OBJEXT
  11376. +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  11377. +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  11378. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  11379. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11380. +else
  11381. + cat >conftest.$ac_ext <<_ACEOF
  11382. +/* confdefs.h. */
  11383. +_ACEOF
  11384. +cat confdefs.h >>conftest.$ac_ext
  11385. +cat >>conftest.$ac_ext <<_ACEOF
  11386. +/* end confdefs.h. */
  11387. +
  11388. +int
  11389. +main ()
  11390. +{
  11391. +#ifndef __GNUC__
  11392. + choke me
  11393. +#endif
  11394. +
  11395. + ;
  11396. + return 0;
  11397. +}
  11398. +_ACEOF
  11399. +rm -f conftest.$ac_objext
  11400. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11401. + (eval $ac_compile) 2>conftest.er1
  11402. + ac_status=$?
  11403. + grep -v '^ *+' conftest.er1 >conftest.err
  11404. + rm -f conftest.er1
  11405. + cat conftest.err >&5
  11406. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11407. + (exit $ac_status); } &&
  11408. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11409. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11410. + (eval $ac_try) 2>&5
  11411. + ac_status=$?
  11412. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11413. + (exit $ac_status); }; } &&
  11414. + { ac_try='test -s conftest.$ac_objext'
  11415. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11416. + (eval $ac_try) 2>&5
  11417. + ac_status=$?
  11418. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11419. + (exit $ac_status); }; }; then
  11420. + ac_compiler_gnu=yes
  11421. +else
  11422. + echo "$as_me: failed program was:" >&5
  11423. +sed 's/^/| /' conftest.$ac_ext >&5
  11424. +
  11425. +ac_compiler_gnu=no
  11426. +fi
  11427. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11428. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11429. +
  11430. +fi
  11431. +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  11432. +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  11433. +GCC=`test $ac_compiler_gnu = yes && echo yes`
  11434. +ac_test_CFLAGS=${CFLAGS+set}
  11435. +ac_save_CFLAGS=$CFLAGS
  11436. +CFLAGS="-g"
  11437. +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  11438. +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  11439. +if test "${ac_cv_prog_cc_g+set}" = set; then
  11440. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11441. +else
  11442. + cat >conftest.$ac_ext <<_ACEOF
  11443. +/* confdefs.h. */
  11444. +_ACEOF
  11445. +cat confdefs.h >>conftest.$ac_ext
  11446. +cat >>conftest.$ac_ext <<_ACEOF
  11447. +/* end confdefs.h. */
  11448. +
  11449. +int
  11450. +main ()
  11451. +{
  11452. +
  11453. + ;
  11454. + return 0;
  11455. +}
  11456. +_ACEOF
  11457. +rm -f conftest.$ac_objext
  11458. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11459. + (eval $ac_compile) 2>conftest.er1
  11460. + ac_status=$?
  11461. + grep -v '^ *+' conftest.er1 >conftest.err
  11462. + rm -f conftest.er1
  11463. + cat conftest.err >&5
  11464. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11465. + (exit $ac_status); } &&
  11466. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11467. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11468. + (eval $ac_try) 2>&5
  11469. + ac_status=$?
  11470. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11471. + (exit $ac_status); }; } &&
  11472. + { ac_try='test -s conftest.$ac_objext'
  11473. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11474. + (eval $ac_try) 2>&5
  11475. + ac_status=$?
  11476. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11477. + (exit $ac_status); }; }; then
  11478. + ac_cv_prog_cc_g=yes
  11479. +else
  11480. + echo "$as_me: failed program was:" >&5
  11481. +sed 's/^/| /' conftest.$ac_ext >&5
  11482. +
  11483. +ac_cv_prog_cc_g=no
  11484. +fi
  11485. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11486. +fi
  11487. +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  11488. +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  11489. +if test "$ac_test_CFLAGS" = set; then
  11490. + CFLAGS=$ac_save_CFLAGS
  11491. +elif test $ac_cv_prog_cc_g = yes; then
  11492. + if test "$GCC" = yes; then
  11493. + CFLAGS="-g -O2"
  11494. + else
  11495. + CFLAGS="-g"
  11496. + fi
  11497. +else
  11498. + if test "$GCC" = yes; then
  11499. + CFLAGS="-O2"
  11500. + else
  11501. + CFLAGS=
  11502. + fi
  11503. +fi
  11504. +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  11505. +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  11506. +if test "${ac_cv_prog_cc_stdc+set}" = set; then
  11507. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11508. +else
  11509. + ac_cv_prog_cc_stdc=no
  11510. +ac_save_CC=$CC
  11511. +cat >conftest.$ac_ext <<_ACEOF
  11512. +/* confdefs.h. */
  11513. +_ACEOF
  11514. +cat confdefs.h >>conftest.$ac_ext
  11515. +cat >>conftest.$ac_ext <<_ACEOF
  11516. +/* end confdefs.h. */
  11517. +#include <stdarg.h>
  11518. +#include <stdio.h>
  11519. +#include <sys/types.h>
  11520. +#include <sys/stat.h>
  11521. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  11522. +struct buf { int x; };
  11523. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  11524. +static char *e (p, i)
  11525. + char **p;
  11526. + int i;
  11527. +{
  11528. + return p[i];
  11529. +}
  11530. +static char *f (char * (*g) (char **, int), char **p, ...)
  11531. +{
  11532. + char *s;
  11533. + va_list v;
  11534. + va_start (v,p);
  11535. + s = g (p, va_arg (v,int));
  11536. + va_end (v);
  11537. + return s;
  11538. +}
  11539. +
  11540. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  11541. + function prototypes and stuff, but not '\xHH' hex character constants.
  11542. + These don't provoke an error unfortunately, instead are silently treated
  11543. + as 'x'. The following induces an error, until -std1 is added to get
  11544. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  11545. + array size at least. It's necessary to write '\x00'==0 to get something
  11546. + that's true only with -std1. */
  11547. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11548. +
  11549. +int test (int i, double x);
  11550. +struct s1 {int (*f) (int a);};
  11551. +struct s2 {int (*f) (double a);};
  11552. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11553. +int argc;
  11554. +char **argv;
  11555. +int
  11556. +main ()
  11557. +{
  11558. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11559. + ;
  11560. + return 0;
  11561. +}
  11562. +_ACEOF
  11563. +# Don't try gcc -ansi; that turns off useful extensions and
  11564. +# breaks some systems' header files.
  11565. +# AIX -qlanglvl=ansi
  11566. +# Ultrix and OSF/1 -std1
  11567. +# HP-UX 10.20 and later -Ae
  11568. +# HP-UX older versions -Aa -D_HPUX_SOURCE
  11569. +# SVR4 -Xc -D__EXTENSIONS__
  11570. +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11571. +do
  11572. + CC="$ac_save_CC $ac_arg"
  11573. + rm -f conftest.$ac_objext
  11574. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11575. + (eval $ac_compile) 2>conftest.er1
  11576. + ac_status=$?
  11577. + grep -v '^ *+' conftest.er1 >conftest.err
  11578. + rm -f conftest.er1
  11579. + cat conftest.err >&5
  11580. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11581. + (exit $ac_status); } &&
  11582. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11583. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11584. + (eval $ac_try) 2>&5
  11585. + ac_status=$?
  11586. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11587. + (exit $ac_status); }; } &&
  11588. + { ac_try='test -s conftest.$ac_objext'
  11589. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11590. + (eval $ac_try) 2>&5
  11591. + ac_status=$?
  11592. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11593. + (exit $ac_status); }; }; then
  11594. + ac_cv_prog_cc_stdc=$ac_arg
  11595. +break
  11596. +else
  11597. + echo "$as_me: failed program was:" >&5
  11598. +sed 's/^/| /' conftest.$ac_ext >&5
  11599. +
  11600. +fi
  11601. +rm -f conftest.err conftest.$ac_objext
  11602. +done
  11603. +rm -f conftest.$ac_ext conftest.$ac_objext
  11604. +CC=$ac_save_CC
  11605. +
  11606. +fi
  11607. +
  11608. +case "x$ac_cv_prog_cc_stdc" in
  11609. + x|xno)
  11610. + echo "$as_me:$LINENO: result: none needed" >&5
  11611. +echo "${ECHO_T}none needed" >&6 ;;
  11612. + *)
  11613. + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  11614. +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  11615. + CC="$CC $ac_cv_prog_cc_stdc" ;;
  11616. +esac
  11617. +
  11618. +# Some people use a C++ compiler to compile C. Since we use `exit',
  11619. +# in C++ we need to declare it. In case someone uses the same compiler
  11620. +# for both compiling C and C++ we need to have the C++ compiler decide
  11621. +# the declaration of exit, since it's the most demanding environment.
  11622. +cat >conftest.$ac_ext <<_ACEOF
  11623. +@%:@ifndef __cplusplus
  11624. + choke me
  11625. +@%:@endif
  11626. +_ACEOF
  11627. +rm -f conftest.$ac_objext
  11628. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11629. + (eval $ac_compile) 2>conftest.er1
  11630. + ac_status=$?
  11631. + grep -v '^ *+' conftest.er1 >conftest.err
  11632. + rm -f conftest.er1
  11633. + cat conftest.err >&5
  11634. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11635. + (exit $ac_status); } &&
  11636. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11637. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11638. + (eval $ac_try) 2>&5
  11639. + ac_status=$?
  11640. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11641. + (exit $ac_status); }; } &&
  11642. + { ac_try='test -s conftest.$ac_objext'
  11643. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11644. + (eval $ac_try) 2>&5
  11645. + ac_status=$?
  11646. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11647. + (exit $ac_status); }; }; then
  11648. + for ac_declaration in \
  11649. + '' \
  11650. + 'extern "C" void std::exit (int) throw (); using std::exit;' \
  11651. + 'extern "C" void std::exit (int); using std::exit;' \
  11652. + 'extern "C" void exit (int) throw ();' \
  11653. + 'extern "C" void exit (int);' \
  11654. + 'void exit (int);'
  11655. +do
  11656. + cat >conftest.$ac_ext <<_ACEOF
  11657. +/* confdefs.h. */
  11658. +_ACEOF
  11659. +cat confdefs.h >>conftest.$ac_ext
  11660. +cat >>conftest.$ac_ext <<_ACEOF
  11661. +/* end confdefs.h. */
  11662. +$ac_declaration
  11663. +@%:@include <stdlib.h>
  11664. +int
  11665. +main ()
  11666. +{
  11667. +exit (42);
  11668. + ;
  11669. + return 0;
  11670. +}
  11671. +_ACEOF
  11672. +rm -f conftest.$ac_objext
  11673. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11674. + (eval $ac_compile) 2>conftest.er1
  11675. + ac_status=$?
  11676. + grep -v '^ *+' conftest.er1 >conftest.err
  11677. + rm -f conftest.er1
  11678. + cat conftest.err >&5
  11679. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11680. + (exit $ac_status); } &&
  11681. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11682. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11683. + (eval $ac_try) 2>&5
  11684. + ac_status=$?
  11685. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11686. + (exit $ac_status); }; } &&
  11687. + { ac_try='test -s conftest.$ac_objext'
  11688. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11689. + (eval $ac_try) 2>&5
  11690. + ac_status=$?
  11691. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11692. + (exit $ac_status); }; }; then
  11693. + :
  11694. +else
  11695. + echo "$as_me: failed program was:" >&5
  11696. +sed 's/^/| /' conftest.$ac_ext >&5
  11697. +
  11698. +continue
  11699. +fi
  11700. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11701. + cat >conftest.$ac_ext <<_ACEOF
  11702. +/* confdefs.h. */
  11703. +_ACEOF
  11704. +cat confdefs.h >>conftest.$ac_ext
  11705. +cat >>conftest.$ac_ext <<_ACEOF
  11706. +/* end confdefs.h. */
  11707. +$ac_declaration
  11708. +int
  11709. +main ()
  11710. +{
  11711. +exit (42);
  11712. + ;
  11713. + return 0;
  11714. +}
  11715. +_ACEOF
  11716. +rm -f conftest.$ac_objext
  11717. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11718. + (eval $ac_compile) 2>conftest.er1
  11719. + ac_status=$?
  11720. + grep -v '^ *+' conftest.er1 >conftest.err
  11721. + rm -f conftest.er1
  11722. + cat conftest.err >&5
  11723. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11724. + (exit $ac_status); } &&
  11725. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11726. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11727. + (eval $ac_try) 2>&5
  11728. + ac_status=$?
  11729. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11730. + (exit $ac_status); }; } &&
  11731. + { ac_try='test -s conftest.$ac_objext'
  11732. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11733. + (eval $ac_try) 2>&5
  11734. + ac_status=$?
  11735. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11736. + (exit $ac_status); }; }; then
  11737. + break
  11738. +else
  11739. + echo "$as_me: failed program was:" >&5
  11740. +sed 's/^/| /' conftest.$ac_ext >&5
  11741. +
  11742. +fi
  11743. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11744. +done
  11745. +rm -f conftest*
  11746. +if test -n "$ac_declaration"; then
  11747. + echo '#ifdef __cplusplus' >>confdefs.h
  11748. + echo $ac_declaration >>confdefs.h
  11749. + echo '#endif' >>confdefs.h
  11750. +fi
  11751. +
  11752. +else
  11753. + echo "$as_me: failed program was:" >&5
  11754. +sed 's/^/| /' conftest.$ac_ext >&5
  11755. +
  11756. +fi
  11757. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11758. +ac_ext=c
  11759. +ac_cpp='$CPP $CPPFLAGS'
  11760. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11761. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11762. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11763. +
  11764. +
  11765. +missing_dir=`cd $ac_aux_dir && pwd`
  11766. +for ac_prog in flex lex
  11767. +do
  11768. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  11769. +set dummy $ac_prog; ac_word=$2
  11770. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11771. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11772. +if test "${ac_cv_prog_LEX+set}" = set; then
  11773. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11774. +else
  11775. + if test -n "$LEX"; then
  11776. + ac_cv_prog_LEX="$LEX" # Let the user override the test.
  11777. +else
  11778. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11779. +for as_dir in $PATH
  11780. +do
  11781. + IFS=$as_save_IFS
  11782. + test -z "$as_dir" && as_dir=.
  11783. + for ac_exec_ext in '' $ac_executable_extensions; do
  11784. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11785. + ac_cv_prog_LEX="$ac_prog"
  11786. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11787. + break 2
  11788. + fi
  11789. +done
  11790. +done
  11791. +
  11792. +fi
  11793. +fi
  11794. +LEX=$ac_cv_prog_LEX
  11795. +if test -n "$LEX"; then
  11796. + echo "$as_me:$LINENO: result: $LEX" >&5
  11797. +echo "${ECHO_T}$LEX" >&6
  11798. +else
  11799. + echo "$as_me:$LINENO: result: no" >&5
  11800. +echo "${ECHO_T}no" >&6
  11801. +fi
  11802. +
  11803. + test -n "$LEX" && break
  11804. +done
  11805. +test -n "$LEX" || LEX="$missing_dir/missing flex"
  11806. +
  11807. +for ac_prog in flex lex
  11808. +do
  11809. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  11810. +set dummy $ac_prog; ac_word=$2
  11811. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11812. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11813. +if test "${ac_cv_prog_LEX+set}" = set; then
  11814. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11815. +else
  11816. + if test -n "$LEX"; then
  11817. + ac_cv_prog_LEX="$LEX" # Let the user override the test.
  11818. +else
  11819. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11820. +for as_dir in $PATH
  11821. +do
  11822. + IFS=$as_save_IFS
  11823. + test -z "$as_dir" && as_dir=.
  11824. + for ac_exec_ext in '' $ac_executable_extensions; do
  11825. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11826. + ac_cv_prog_LEX="$ac_prog"
  11827. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11828. + break 2
  11829. + fi
  11830. +done
  11831. +done
  11832. +
  11833. +fi
  11834. +fi
  11835. +LEX=$ac_cv_prog_LEX
  11836. +if test -n "$LEX"; then
  11837. + echo "$as_me:$LINENO: result: $LEX" >&5
  11838. +echo "${ECHO_T}$LEX" >&6
  11839. +else
  11840. + echo "$as_me:$LINENO: result: no" >&5
  11841. +echo "${ECHO_T}no" >&6
  11842. +fi
  11843. +
  11844. + test -n "$LEX" && break
  11845. +done
  11846. +test -n "$LEX" || LEX=":"
  11847. +
  11848. +if test -z "$LEXLIB"
  11849. +then
  11850. + echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
  11851. +echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
  11852. +if test "${ac_cv_lib_fl_yywrap+set}" = set; then
  11853. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11854. +else
  11855. + ac_check_lib_save_LIBS=$LIBS
  11856. +LIBS="-lfl $LIBS"
  11857. +cat >conftest.$ac_ext <<_ACEOF
  11858. +/* confdefs.h. */
  11859. +_ACEOF
  11860. +cat confdefs.h >>conftest.$ac_ext
  11861. +cat >>conftest.$ac_ext <<_ACEOF
  11862. +/* end confdefs.h. */
  11863. +
  11864. +/* Override any gcc2 internal prototype to avoid an error. */
  11865. +#ifdef __cplusplus
  11866. +extern "C"
  11867. +#endif
  11868. +/* We use char because int might match the return type of a gcc2
  11869. + builtin and then its argument prototype would still apply. */
  11870. +char yywrap ();
  11871. +int
  11872. +main ()
  11873. +{
  11874. +yywrap ();
  11875. + ;
  11876. + return 0;
  11877. +}
  11878. +_ACEOF
  11879. +rm -f conftest.$ac_objext conftest$ac_exeext
  11880. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11881. + (eval $ac_link) 2>conftest.er1
  11882. + ac_status=$?
  11883. + grep -v '^ *+' conftest.er1 >conftest.err
  11884. + rm -f conftest.er1
  11885. + cat conftest.err >&5
  11886. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11887. + (exit $ac_status); } &&
  11888. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11889. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11890. + (eval $ac_try) 2>&5
  11891. + ac_status=$?
  11892. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11893. + (exit $ac_status); }; } &&
  11894. + { ac_try='test -s conftest$ac_exeext'
  11895. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11896. + (eval $ac_try) 2>&5
  11897. + ac_status=$?
  11898. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11899. + (exit $ac_status); }; }; then
  11900. + ac_cv_lib_fl_yywrap=yes
  11901. +else
  11902. + echo "$as_me: failed program was:" >&5
  11903. +sed 's/^/| /' conftest.$ac_ext >&5
  11904. +
  11905. +ac_cv_lib_fl_yywrap=no
  11906. +fi
  11907. +rm -f conftest.err conftest.$ac_objext \
  11908. + conftest$ac_exeext conftest.$ac_ext
  11909. +LIBS=$ac_check_lib_save_LIBS
  11910. +fi
  11911. +echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
  11912. +echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
  11913. +if test $ac_cv_lib_fl_yywrap = yes; then
  11914. + LEXLIB="-lfl"
  11915. +else
  11916. + echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
  11917. +echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
  11918. +if test "${ac_cv_lib_l_yywrap+set}" = set; then
  11919. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11920. +else
  11921. + ac_check_lib_save_LIBS=$LIBS
  11922. +LIBS="-ll $LIBS"
  11923. +cat >conftest.$ac_ext <<_ACEOF
  11924. +/* confdefs.h. */
  11925. +_ACEOF
  11926. +cat confdefs.h >>conftest.$ac_ext
  11927. +cat >>conftest.$ac_ext <<_ACEOF
  11928. +/* end confdefs.h. */
  11929. +
  11930. +/* Override any gcc2 internal prototype to avoid an error. */
  11931. +#ifdef __cplusplus
  11932. +extern "C"
  11933. +#endif
  11934. +/* We use char because int might match the return type of a gcc2
  11935. + builtin and then its argument prototype would still apply. */
  11936. +char yywrap ();
  11937. +int
  11938. +main ()
  11939. +{
  11940. +yywrap ();
  11941. + ;
  11942. + return 0;
  11943. +}
  11944. +_ACEOF
  11945. +rm -f conftest.$ac_objext conftest$ac_exeext
  11946. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11947. + (eval $ac_link) 2>conftest.er1
  11948. + ac_status=$?
  11949. + grep -v '^ *+' conftest.er1 >conftest.err
  11950. + rm -f conftest.er1
  11951. + cat conftest.err >&5
  11952. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11953. + (exit $ac_status); } &&
  11954. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11955. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11956. + (eval $ac_try) 2>&5
  11957. + ac_status=$?
  11958. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11959. + (exit $ac_status); }; } &&
  11960. + { ac_try='test -s conftest$ac_exeext'
  11961. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11962. + (eval $ac_try) 2>&5
  11963. + ac_status=$?
  11964. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11965. + (exit $ac_status); }; }; then
  11966. + ac_cv_lib_l_yywrap=yes
  11967. +else
  11968. + echo "$as_me: failed program was:" >&5
  11969. +sed 's/^/| /' conftest.$ac_ext >&5
  11970. +
  11971. +ac_cv_lib_l_yywrap=no
  11972. +fi
  11973. +rm -f conftest.err conftest.$ac_objext \
  11974. + conftest$ac_exeext conftest.$ac_ext
  11975. +LIBS=$ac_check_lib_save_LIBS
  11976. +fi
  11977. +echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
  11978. +echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
  11979. +if test $ac_cv_lib_l_yywrap = yes; then
  11980. + LEXLIB="-ll"
  11981. +fi
  11982. +
  11983. +fi
  11984. +
  11985. +fi
  11986. +
  11987. +if test "x$LEX" != "x:"; then
  11988. + echo "$as_me:$LINENO: checking lex output file root" >&5
  11989. +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
  11990. +if test "${ac_cv_prog_lex_root+set}" = set; then
  11991. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11992. +else
  11993. + # The minimal lex program is just a single line: %%. But some broken lexes
  11994. +# (Solaris, I think it was) want two %% lines, so accommodate them.
  11995. +cat >conftest.l <<_ACEOF
  11996. +%%
  11997. +%%
  11998. +_ACEOF
  11999. +{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
  12000. + (eval $LEX conftest.l) 2>&5
  12001. + ac_status=$?
  12002. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12003. + (exit $ac_status); }
  12004. +if test -f lex.yy.c; then
  12005. + ac_cv_prog_lex_root=lex.yy
  12006. +elif test -f lexyy.c; then
  12007. + ac_cv_prog_lex_root=lexyy
  12008. +else
  12009. + { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
  12010. +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
  12011. + { (exit 1); exit 1; }; }
  12012. +fi
  12013. +fi
  12014. +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
  12015. +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
  12016. +rm -f conftest.l
  12017. +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  12018. +
  12019. +echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
  12020. +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
  12021. +if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  12022. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12023. +else
  12024. + # POSIX says lex can declare yytext either as a pointer or an array; the
  12025. +# default is implementation-dependent. Figure out which it is, since
  12026. +# not all implementations provide the %pointer and %array declarations.
  12027. +ac_cv_prog_lex_yytext_pointer=no
  12028. +echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
  12029. +ac_save_LIBS=$LIBS
  12030. +LIBS="$LIBS $LEXLIB"
  12031. +cat >conftest.$ac_ext <<_ACEOF
  12032. +`cat $LEX_OUTPUT_ROOT.c`
  12033. +_ACEOF
  12034. +rm -f conftest.$ac_objext conftest$ac_exeext
  12035. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12036. + (eval $ac_link) 2>conftest.er1
  12037. + ac_status=$?
  12038. + grep -v '^ *+' conftest.er1 >conftest.err
  12039. + rm -f conftest.er1
  12040. + cat conftest.err >&5
  12041. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12042. + (exit $ac_status); } &&
  12043. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12044. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12045. + (eval $ac_try) 2>&5
  12046. + ac_status=$?
  12047. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12048. + (exit $ac_status); }; } &&
  12049. + { ac_try='test -s conftest$ac_exeext'
  12050. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12051. + (eval $ac_try) 2>&5
  12052. + ac_status=$?
  12053. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12054. + (exit $ac_status); }; }; then
  12055. + ac_cv_prog_lex_yytext_pointer=yes
  12056. +else
  12057. + echo "$as_me: failed program was:" >&5
  12058. +sed 's/^/| /' conftest.$ac_ext >&5
  12059. +
  12060. +fi
  12061. +rm -f conftest.err conftest.$ac_objext \
  12062. + conftest$ac_exeext conftest.$ac_ext
  12063. +LIBS=$ac_save_LIBS
  12064. +rm -f "${LEX_OUTPUT_ROOT}.c"
  12065. +
  12066. +fi
  12067. +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
  12068. +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
  12069. +if test $ac_cv_prog_lex_yytext_pointer = yes; then
  12070. +
  12071. +cat >>confdefs.h <<\_ACEOF
  12072. +@%:@define YYTEXT_POINTER 1
  12073. +_ACEOF
  12074. +
  12075. +fi
  12076. +
  12077. +fi
  12078. +
  12079. +for ac_prog in 'bison -y' byacc
  12080. +do
  12081. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  12082. +set dummy $ac_prog; ac_word=$2
  12083. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  12084. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12085. +if test "${ac_cv_prog_YACC+set}" = set; then
  12086. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12087. +else
  12088. + if test -n "$YACC"; then
  12089. + ac_cv_prog_YACC="$YACC" # Let the user override the test.
  12090. +else
  12091. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12092. +for as_dir in $PATH
  12093. +do
  12094. + IFS=$as_save_IFS
  12095. + test -z "$as_dir" && as_dir=.
  12096. + for ac_exec_ext in '' $ac_executable_extensions; do
  12097. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12098. + ac_cv_prog_YACC="$ac_prog"
  12099. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12100. + break 2
  12101. + fi
  12102. +done
  12103. +done
  12104. +
  12105. +fi
  12106. +fi
  12107. +YACC=$ac_cv_prog_YACC
  12108. +if test -n "$YACC"; then
  12109. + echo "$as_me:$LINENO: result: $YACC" >&5
  12110. +echo "${ECHO_T}$YACC" >&6
  12111. +else
  12112. + echo "$as_me:$LINENO: result: no" >&5
  12113. +echo "${ECHO_T}no" >&6
  12114. +fi
  12115. +
  12116. + test -n "$YACC" && break
  12117. +done
  12118. +test -n "$YACC" || YACC="yacc"
  12119. +
  12120. +# Find a good install program. We prefer a C program (faster),
  12121. +# so one script is as good as another. But avoid the broken or
  12122. +# incompatible versions:
  12123. +# SysV /etc/install, /usr/sbin/install
  12124. +# SunOS /usr/etc/install
  12125. +# IRIX /sbin/install
  12126. +# AIX /bin/install
  12127. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  12128. +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  12129. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  12130. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  12131. +# OS/2's system install, which has a completely different semantic
  12132. +# ./install, which can be erroneously created by make from ./install.sh.
  12133. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  12134. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  12135. +if test -z "$INSTALL"; then
  12136. +if test "${ac_cv_path_install+set}" = set; then
  12137. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12138. +else
  12139. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12140. +for as_dir in $PATH
  12141. +do
  12142. + IFS=$as_save_IFS
  12143. + test -z "$as_dir" && as_dir=.
  12144. + # Account for people who put trailing slashes in PATH elements.
  12145. +case $as_dir/ in
  12146. + ./ | .// | /cC/* | \
  12147. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  12148. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  12149. + /usr/ucb/* ) ;;
  12150. + *)
  12151. + # OSF1 and SCO ODT 3.0 have their own names for install.
  12152. + # Don't use installbsd from OSF since it installs stuff as root
  12153. + # by default.
  12154. + for ac_prog in ginstall scoinst install; do
  12155. + for ac_exec_ext in '' $ac_executable_extensions; do
  12156. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  12157. + if test $ac_prog = install &&
  12158. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  12159. + # AIX install. It has an incompatible calling convention.
  12160. + :
  12161. + elif test $ac_prog = install &&
  12162. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  12163. + # program-specific install script used by HP pwplus--don't use.
  12164. + :
  12165. + else
  12166. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  12167. + break 3
  12168. + fi
  12169. + fi
  12170. + done
  12171. + done
  12172. + ;;
  12173. +esac
  12174. +done
  12175. +
  12176. +
  12177. +fi
  12178. + if test "${ac_cv_path_install+set}" = set; then
  12179. + INSTALL=$ac_cv_path_install
  12180. + else
  12181. + # As a last resort, use the slow shell script. We don't cache a
  12182. + # path for INSTALL within a source directory, because that will
  12183. + # break other packages using the cache if that directory is
  12184. + # removed, or if the path is relative.
  12185. + INSTALL=$ac_install_sh
  12186. + fi
  12187. +fi
  12188. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  12189. +echo "${ECHO_T}$INSTALL" >&6
  12190. +
  12191. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  12192. +# It thinks the first close brace ends the variable substitution.
  12193. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  12194. +
  12195. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  12196. +
  12197. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  12198. +
  12199. +
  12200. +# Check whether --enable-shared or --disable-shared was given.
  12201. +if test "${enable_shared+set}" = set; then
  12202. + enableval="$enable_shared"
  12203. + p=${PACKAGE-default}
  12204. +case $enableval in
  12205. +yes) enable_shared=yes ;;
  12206. +no) enable_shared=no ;;
  12207. +*)
  12208. + enable_shared=no
  12209. + # Look at the argument we got. We use all the common list separators.
  12210. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  12211. + for pkg in $enableval; do
  12212. + if test "X$pkg" = "X$p"; then
  12213. + enable_shared=yes
  12214. + fi
  12215. + done
  12216. + IFS="$ac_save_ifs"
  12217. + ;;
  12218. +esac
  12219. +else
  12220. + enable_shared=yes
  12221. +fi;
  12222. +# Check whether --enable-static or --disable-static was given.
  12223. +if test "${enable_static+set}" = set; then
  12224. + enableval="$enable_static"
  12225. + p=${PACKAGE-default}
  12226. +case $enableval in
  12227. +yes) enable_static=yes ;;
  12228. +no) enable_static=no ;;
  12229. +*)
  12230. + enable_static=no
  12231. + # Look at the argument we got. We use all the common list separators.
  12232. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  12233. + for pkg in $enableval; do
  12234. + if test "X$pkg" = "X$p"; then
  12235. + enable_static=yes
  12236. + fi
  12237. + done
  12238. + IFS="$ac_save_ifs"
  12239. + ;;
  12240. +esac
  12241. +else
  12242. + enable_static=yes
  12243. +fi;
  12244. +# Check whether --enable-fast-install or --disable-fast-install was given.
  12245. +if test "${enable_fast_install+set}" = set; then
  12246. + enableval="$enable_fast_install"
  12247. + p=${PACKAGE-default}
  12248. +case $enableval in
  12249. +yes) enable_fast_install=yes ;;
  12250. +no) enable_fast_install=no ;;
  12251. +*)
  12252. + enable_fast_install=no
  12253. + # Look at the argument we got. We use all the common list separators.
  12254. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  12255. + for pkg in $enableval; do
  12256. + if test "X$pkg" = "X$p"; then
  12257. + enable_fast_install=yes
  12258. + fi
  12259. + done
  12260. + IFS="$ac_save_ifs"
  12261. + ;;
  12262. +esac
  12263. +else
  12264. + enable_fast_install=yes
  12265. +fi;
  12266. +# Find the correct PATH separator. Usually this is `:', but
  12267. +# DJGPP uses `;' like DOS.
  12268. +if test "X${PATH_SEPARATOR+set}" != Xset; then
  12269. + UNAME=${UNAME-`uname 2>/dev/null`}
  12270. + case X$UNAME in
  12271. + *-DOS) lt_cv_sys_path_separator=';' ;;
  12272. + *) lt_cv_sys_path_separator=':' ;;
  12273. + esac
  12274. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  12275. +fi
  12276. +
  12277. +
  12278. +# Check whether --with-gnu-ld or --without-gnu-ld was given.
  12279. +if test "${with_gnu_ld+set}" = set; then
  12280. + withval="$with_gnu_ld"
  12281. + test "$withval" = no || with_gnu_ld=yes
  12282. +else
  12283. + with_gnu_ld=no
  12284. +fi;
  12285. +ac_prog=ld
  12286. +if test "$GCC" = yes; then
  12287. + # Check if gcc -print-prog-name=ld gives a path.
  12288. + echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  12289. +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  12290. + case $host in
  12291. + *-*-mingw*)
  12292. + # gcc leaves a trailing carriage return which upsets mingw
  12293. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12294. + *)
  12295. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12296. + esac
  12297. + case $ac_prog in
  12298. + # Accept absolute paths.
  12299. + [\\/]* | [A-Za-z]:[\\/]*)
  12300. + re_direlt='/[^/][^/]*/\.\./'
  12301. + # Canonicalize the path of ld
  12302. + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  12303. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  12304. + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  12305. + done
  12306. + test -z "$LD" && LD="$ac_prog"
  12307. + ;;
  12308. + "")
  12309. + # If it fails, then pretend we aren't using GCC.
  12310. + ac_prog=ld
  12311. + ;;
  12312. + *)
  12313. + # If it is relative, then search for the first ld in PATH.
  12314. + with_gnu_ld=unknown
  12315. + ;;
  12316. + esac
  12317. +elif test "$with_gnu_ld" = yes; then
  12318. + echo "$as_me:$LINENO: checking for GNU ld" >&5
  12319. +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  12320. +else
  12321. + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  12322. +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  12323. +fi
  12324. +if test "${lt_cv_path_LD+set}" = set; then
  12325. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12326. +else
  12327. + if test -z "$LD"; then
  12328. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12329. + for ac_dir in $PATH; do
  12330. + test -z "$ac_dir" && ac_dir=.
  12331. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12332. + lt_cv_path_LD="$ac_dir/$ac_prog"
  12333. + # Check to see if the program is GNU ld. I'd rather use --version,
  12334. + # but apparently some GNU ld's only accept -v.
  12335. + # Break only if it was the GNU/non-GNU ld that we prefer.
  12336. + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  12337. + test "$with_gnu_ld" != no && break
  12338. + else
  12339. + test "$with_gnu_ld" != yes && break
  12340. + fi
  12341. + fi
  12342. + done
  12343. + IFS="$ac_save_ifs"
  12344. +else
  12345. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  12346. +fi
  12347. +fi
  12348. +
  12349. +LD="$lt_cv_path_LD"
  12350. +if test -n "$LD"; then
  12351. + echo "$as_me:$LINENO: result: $LD" >&5
  12352. +echo "${ECHO_T}$LD" >&6
  12353. +else
  12354. + echo "$as_me:$LINENO: result: no" >&5
  12355. +echo "${ECHO_T}no" >&6
  12356. +fi
  12357. +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  12358. +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  12359. + { (exit 1); exit 1; }; }
  12360. +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  12361. +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  12362. +if test "${lt_cv_prog_gnu_ld+set}" = set; then
  12363. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12364. +else
  12365. + # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  12366. +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  12367. + lt_cv_prog_gnu_ld=yes
  12368. +else
  12369. + lt_cv_prog_gnu_ld=no
  12370. +fi
  12371. +fi
  12372. +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  12373. +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  12374. +with_gnu_ld=$lt_cv_prog_gnu_ld
  12375. +
  12376. +
  12377. +echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  12378. +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  12379. +if test "${lt_cv_ld_reload_flag+set}" = set; then
  12380. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12381. +else
  12382. + lt_cv_ld_reload_flag='-r'
  12383. +fi
  12384. +echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  12385. +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  12386. +reload_flag=$lt_cv_ld_reload_flag
  12387. +test -n "$reload_flag" && reload_flag=" $reload_flag"
  12388. +
  12389. +echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  12390. +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  12391. +if test "${lt_cv_path_NM+set}" = set; then
  12392. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12393. +else
  12394. + if test -n "$NM"; then
  12395. + # Let the user override the test.
  12396. + lt_cv_path_NM="$NM"
  12397. +else
  12398. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12399. + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  12400. + test -z "$ac_dir" && ac_dir=.
  12401. + tmp_nm=$ac_dir/${ac_tool_prefix}nm
  12402. + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  12403. + # Check to see if the nm accepts a BSD-compat flag.
  12404. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  12405. + # nm: unknown option "B" ignored
  12406. + # Tru64's nm complains that /dev/null is an invalid object file
  12407. + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  12408. + lt_cv_path_NM="$tmp_nm -B"
  12409. + break
  12410. + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  12411. + lt_cv_path_NM="$tmp_nm -p"
  12412. + break
  12413. + else
  12414. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  12415. + continue # so that we can try to find one that supports BSD flags
  12416. + fi
  12417. + fi
  12418. + done
  12419. + IFS="$ac_save_ifs"
  12420. + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  12421. +fi
  12422. +fi
  12423. +
  12424. +NM="$lt_cv_path_NM"
  12425. +echo "$as_me:$LINENO: result: $NM" >&5
  12426. +echo "${ECHO_T}$NM" >&6
  12427. +
  12428. +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  12429. +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  12430. +if test "${lt_cv_path_SED+set}" = set; then
  12431. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12432. +else
  12433. + # Loop through the user's path and test for sed and gsed.
  12434. +# Then use that list of sed's as ones to test for truncation.
  12435. +as_executable_p="test -f"
  12436. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12437. +for as_dir in $PATH
  12438. +do
  12439. + IFS=$as_save_IFS
  12440. + test -z "$as_dir" && as_dir=.
  12441. + for ac_prog in sed gsed; do
  12442. + for ac_exec_ext in '' $ac_executable_extensions; do
  12443. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  12444. + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  12445. + fi
  12446. + done
  12447. + done
  12448. +done
  12449. +
  12450. + # Create a temporary directory, and hook for its removal unless debugging.
  12451. +$debug ||
  12452. +{
  12453. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  12454. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  12455. +}
  12456. +
  12457. +# Create a (secure) tmp directory for tmp files.
  12458. +: ${TMPDIR=/tmp}
  12459. +{
  12460. + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  12461. + test -n "$tmp" && test -d "$tmp"
  12462. +} ||
  12463. +{
  12464. + tmp=$TMPDIR/sed$$-$RANDOM
  12465. + (umask 077 && mkdir $tmp)
  12466. +} ||
  12467. +{
  12468. + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  12469. + { (exit 1); exit 1; }
  12470. +}
  12471. + _max=0
  12472. + _count=0
  12473. + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  12474. + # along with /bin/sed that truncates output.
  12475. + for _sed in $_sed_list /usr/xpg4/bin/sed; do
  12476. + test ! -f ${_sed} && break
  12477. + cat /dev/null > "$tmp/sed.in"
  12478. + _count=0
  12479. + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
  12480. + # Check for GNU sed and select it if it is found.
  12481. + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  12482. + lt_cv_path_SED=${_sed}
  12483. + break
  12484. + fi
  12485. + while true; do
  12486. + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  12487. + mv "$tmp/sed.tmp" "$tmp/sed.in"
  12488. + cp "$tmp/sed.in" "$tmp/sed.nl"
  12489. + echo >>"$tmp/sed.nl"
  12490. + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  12491. + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  12492. + # 40000 chars as input seems more than enough
  12493. + test $_count -gt 10 && break
  12494. + _count=`expr $_count + 1`
  12495. + if test $_count -gt $_max; then
  12496. + _max=$_count
  12497. + lt_cv_path_SED=$_sed
  12498. + fi
  12499. + done
  12500. + done
  12501. + rm -rf "$tmp"
  12502. +
  12503. +fi
  12504. +
  12505. +if test "X$SED" != "X"; then
  12506. + lt_cv_path_SED=$SED
  12507. +else
  12508. + SED=$lt_cv_path_SED
  12509. +fi
  12510. +echo "$as_me:$LINENO: result: $SED" >&5
  12511. +echo "${ECHO_T}$SED" >&6
  12512. +
  12513. +echo "$as_me:$LINENO: checking whether ln -s works" >&5
  12514. +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  12515. +LN_S=$as_ln_s
  12516. +if test "$LN_S" = "ln -s"; then
  12517. + echo "$as_me:$LINENO: result: yes" >&5
  12518. +echo "${ECHO_T}yes" >&6
  12519. +else
  12520. + echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  12521. +echo "${ECHO_T}no, using $LN_S" >&6
  12522. +fi
  12523. +
  12524. +echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  12525. +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  12526. +if test "${lt_cv_deplibs_check_method+set}" = set; then
  12527. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12528. +else
  12529. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  12530. +lt_cv_file_magic_test_file=
  12531. +lt_cv_deplibs_check_method='unknown'
  12532. +# Need to set the preceding variable on all platforms that support
  12533. +# interlibrary dependencies.
  12534. +# 'none' -- dependencies not supported.
  12535. +# `unknown' -- same as none, but documents that we really don't know.
  12536. +# 'pass_all' -- all dependencies passed with no checks.
  12537. +# 'test_compile' -- check by making test program.
  12538. +# 'file_magic [[regex]]' -- check by looking for files in library path
  12539. +# which responds to the $file_magic_cmd with a given egrep regex.
  12540. +# If you have `file' or equivalent on your system and you're not sure
  12541. +# whether `pass_all' will *always* work, you probably want this one.
  12542. +
  12543. +case $host_os in
  12544. +aix4* | aix5*)
  12545. + lt_cv_deplibs_check_method=pass_all
  12546. + ;;
  12547. +
  12548. +beos*)
  12549. + lt_cv_deplibs_check_method=pass_all
  12550. + ;;
  12551. +
  12552. +bsdi4*)
  12553. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  12554. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  12555. + lt_cv_file_magic_test_file=/shlib/libc.so
  12556. + ;;
  12557. +
  12558. +cygwin* | mingw* | pw32*)
  12559. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  12560. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  12561. + ;;
  12562. +
  12563. +darwin* | rhapsody*)
  12564. + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  12565. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  12566. + case "$host_os" in
  12567. + rhapsody* | darwin1.[012])
  12568. + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  12569. + ;;
  12570. + *) # Darwin 1.3 on
  12571. + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  12572. + ;;
  12573. + esac
  12574. + ;;
  12575. +
  12576. +freebsd*)
  12577. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  12578. + case $host_cpu in
  12579. + i*86 )
  12580. + # Not sure whether the presence of OpenBSD here was a mistake.
  12581. + # Let's accept both of them until this is cleared up.
  12582. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  12583. + lt_cv_file_magic_cmd=/usr/bin/file
  12584. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  12585. + ;;
  12586. + esac
  12587. + else
  12588. + lt_cv_deplibs_check_method=pass_all
  12589. + fi
  12590. + ;;
  12591. +
  12592. +gnu*)
  12593. + lt_cv_deplibs_check_method=pass_all
  12594. + ;;
  12595. +
  12596. +hpux10.20*|hpux11*)
  12597. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  12598. + lt_cv_file_magic_cmd=/usr/bin/file
  12599. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  12600. + ;;
  12601. +
  12602. +irix5* | irix6* | nonstopux*)
  12603. + case $host_os in
  12604. + irix5* | nonstopux*)
  12605. + # this will be overridden with pass_all, but let us keep it just in case
  12606. + lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  12607. + ;;
  12608. + *)
  12609. + case $LD in
  12610. + *-32|*"-32 ") libmagic=32-bit;;
  12611. + *-n32|*"-n32 ") libmagic=N32;;
  12612. + *-64|*"-64 ") libmagic=64-bit;;
  12613. + *) libmagic=never-match;;
  12614. + esac
  12615. + # this will be overridden with pass_all, but let us keep it just in case
  12616. + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  12617. + ;;
  12618. + esac
  12619. + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  12620. + lt_cv_deplibs_check_method=pass_all
  12621. + ;;
  12622. +
  12623. +# This must be Linux ELF.
  12624. +linux-gnu*)
  12625. + case $host_cpu in
  12626. + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
  12627. + lt_cv_deplibs_check_method=pass_all ;;
  12628. + *)
  12629. + # glibc up to 2.1.1 does not perform some relocations on ARM
  12630. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  12631. + esac
  12632. + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  12633. + ;;
  12634. +
  12635. +netbsd*)
  12636. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  12637. + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  12638. + else
  12639. + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  12640. + fi
  12641. + ;;
  12642. +
  12643. +newos6*)
  12644. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  12645. + lt_cv_file_magic_cmd=/usr/bin/file
  12646. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  12647. + ;;
  12648. +
  12649. +openbsd*)
  12650. + lt_cv_file_magic_cmd=/usr/bin/file
  12651. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  12652. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12653. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  12654. + else
  12655. + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  12656. + fi
  12657. + ;;
  12658. +
  12659. +osf3* | osf4* | osf5*)
  12660. + # this will be overridden with pass_all, but let us keep it just in case
  12661. + lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  12662. + lt_cv_file_magic_test_file=/shlib/libc.so
  12663. + lt_cv_deplibs_check_method=pass_all
  12664. + ;;
  12665. +
  12666. +sco3.2v5*)
  12667. + lt_cv_deplibs_check_method=pass_all
  12668. + ;;
  12669. +
  12670. +solaris*)
  12671. + lt_cv_deplibs_check_method=pass_all
  12672. + lt_cv_file_magic_test_file=/lib/libc.so
  12673. + ;;
  12674. +
  12675. +sysv5uw[78]* | sysv4*uw2*)
  12676. + lt_cv_deplibs_check_method=pass_all
  12677. + ;;
  12678. +
  12679. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12680. + case $host_vendor in
  12681. + motorola)
  12682. + 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]'
  12683. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  12684. + ;;
  12685. + ncr)
  12686. + lt_cv_deplibs_check_method=pass_all
  12687. + ;;
  12688. + sequent)
  12689. + lt_cv_file_magic_cmd='/bin/file'
  12690. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  12691. + ;;
  12692. + sni)
  12693. + lt_cv_file_magic_cmd='/bin/file'
  12694. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  12695. + lt_cv_file_magic_test_file=/lib/libc.so
  12696. + ;;
  12697. + siemens)
  12698. + lt_cv_deplibs_check_method=pass_all
  12699. + ;;
  12700. + esac
  12701. + ;;
  12702. +esac
  12703. +
  12704. +fi
  12705. +echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  12706. +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  12707. +file_magic_cmd=$lt_cv_file_magic_cmd
  12708. +deplibs_check_method=$lt_cv_deplibs_check_method
  12709. +
  12710. +
  12711. +
  12712. +
  12713. +
  12714. +
  12715. +
  12716. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  12717. +echo "$as_me:$LINENO: checking command to parse $NM output" >&5
  12718. +echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
  12719. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  12720. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12721. +else
  12722. +
  12723. +# These are sane defaults that work on at least a few old systems.
  12724. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  12725. +
  12726. +# Character class describing NM global symbol codes.
  12727. +symcode='[BCDEGRST]'
  12728. +
  12729. +# Regexp to match symbols that can be accessed directly from C.
  12730. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  12731. +
  12732. +# Transform the above into a raw symbol and a C symbol.
  12733. +symxfrm='\1 \2\3 \3'
  12734. +
  12735. +# Transform an extracted symbol line into a proper C declaration
  12736. +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  12737. +
  12738. +# Transform an extracted symbol line into symbol name and symbol address
  12739. +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  12740. +
  12741. +# Define system-specific variables.
  12742. +case $host_os in
  12743. +aix*)
  12744. + symcode='[BCDT]'
  12745. + ;;
  12746. +cygwin* | mingw* | pw32*)
  12747. + symcode='[ABCDGISTW]'
  12748. + ;;
  12749. +hpux*) # Its linker distinguishes data from code symbols
  12750. + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  12751. + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  12752. + ;;
  12753. +irix* | nonstopux*)
  12754. + symcode='[BCDEGRST]'
  12755. + ;;
  12756. +osf*)
  12757. + symcode='[BCDEGQRST]'
  12758. + ;;
  12759. +solaris* | sysv5*)
  12760. + symcode='[BDT]'
  12761. + ;;
  12762. +sysv4)
  12763. + symcode='[DFNSTU]'
  12764. + ;;
  12765. +esac
  12766. +
  12767. +# Handle CRLF in mingw tool chain
  12768. +opt_cr=
  12769. +case $host_os in
  12770. +mingw*)
  12771. + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  12772. + ;;
  12773. +esac
  12774. +
  12775. +# If we're using GNU nm, then use its standard symbol codes.
  12776. +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  12777. + symcode='[ABCDGISTW]'
  12778. +fi
  12779. +
  12780. +# Try without a prefix undercore, then with it.
  12781. +for ac_symprfx in "" "_"; do
  12782. +
  12783. + # Write the raw and C identifiers.
  12784. +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  12785. +
  12786. + # Check to see that the pipe works correctly.
  12787. + pipe_works=no
  12788. + rm -f conftest*
  12789. + cat > conftest.$ac_ext <<EOF
  12790. +#ifdef __cplusplus
  12791. +extern "C" {
  12792. +#endif
  12793. +char nm_test_var;
  12794. +void nm_test_func(){}
  12795. +#ifdef __cplusplus
  12796. +}
  12797. +#endif
  12798. +int main(){nm_test_var='a';nm_test_func();return(0);}
  12799. +EOF
  12800. +
  12801. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12802. + (eval $ac_compile) 2>&5
  12803. + ac_status=$?
  12804. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12805. + (exit $ac_status); }; then
  12806. + # Now try to grab the symbols.
  12807. + nlist=conftest.nm
  12808. + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  12809. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  12810. + ac_status=$?
  12811. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12812. + (exit $ac_status); } && test -s "$nlist"; then
  12813. + # Try sorting and uniquifying the output.
  12814. + if sort "$nlist" | uniq > "$nlist"T; then
  12815. + mv -f "$nlist"T "$nlist"
  12816. + else
  12817. + rm -f "$nlist"T
  12818. + fi
  12819. +
  12820. + # Make sure that we snagged all the symbols we need.
  12821. + if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  12822. + if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  12823. + cat <<EOF > conftest.$ac_ext
  12824. +#ifdef __cplusplus
  12825. +extern "C" {
  12826. +#endif
  12827. +
  12828. +EOF
  12829. + # Now generate the symbol file.
  12830. + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  12831. +
  12832. + cat <<EOF >> conftest.$ac_ext
  12833. +#if defined (__STDC__) && __STDC__
  12834. +# define lt_ptr void *
  12835. +#else
  12836. +# define lt_ptr char *
  12837. +# define const
  12838. +#endif
  12839. +
  12840. +/* The mapping between symbol names and symbols. */
  12841. +const struct {
  12842. + const char *name;
  12843. + lt_ptr address;
  12844. +}
  12845. +lt_preloaded_symbols[] =
  12846. +{
  12847. +EOF
  12848. + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  12849. + cat <<\EOF >> conftest.$ac_ext
  12850. + {0, (lt_ptr) 0}
  12851. +};
  12852. +
  12853. +#ifdef __cplusplus
  12854. +}
  12855. +#endif
  12856. +EOF
  12857. + # Now try linking the two files.
  12858. + mv conftest.$ac_objext conftstm.$ac_objext
  12859. + save_LIBS="$LIBS"
  12860. + save_CFLAGS="$CFLAGS"
  12861. + LIBS="conftstm.$ac_objext"
  12862. + CFLAGS="$CFLAGS$no_builtin_flag"
  12863. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12864. + (eval $ac_link) 2>&5
  12865. + ac_status=$?
  12866. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12867. + (exit $ac_status); } && test -s conftest$ac_exeext; then
  12868. + pipe_works=yes
  12869. + fi
  12870. + LIBS="$save_LIBS"
  12871. + CFLAGS="$save_CFLAGS"
  12872. + else
  12873. + echo "cannot find nm_test_func in $nlist" >&5
  12874. + fi
  12875. + else
  12876. + echo "cannot find nm_test_var in $nlist" >&5
  12877. + fi
  12878. + else
  12879. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  12880. + fi
  12881. + else
  12882. + echo "$progname: failed program was:" >&5
  12883. + cat conftest.$ac_ext >&5
  12884. + fi
  12885. + rm -f conftest* conftst*
  12886. +
  12887. + # Do not use the global_symbol_pipe unless it works.
  12888. + if test "$pipe_works" = yes; then
  12889. + break
  12890. + else
  12891. + lt_cv_sys_global_symbol_pipe=
  12892. + fi
  12893. +done
  12894. +
  12895. +fi
  12896. +
  12897. +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  12898. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  12899. + global_symbol_to_cdecl=
  12900. + global_symbol_to_c_name_address=
  12901. +else
  12902. + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  12903. + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  12904. +fi
  12905. +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  12906. +then
  12907. + echo "$as_me:$LINENO: result: failed" >&5
  12908. +echo "${ECHO_T}failed" >&6
  12909. +else
  12910. + echo "$as_me:$LINENO: result: ok" >&5
  12911. +echo "${ECHO_T}ok" >&6
  12912. +fi
  12913. +
  12914. +ac_ext=c
  12915. +ac_cpp='$CPP $CPPFLAGS'
  12916. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12917. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12918. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12919. +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  12920. +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  12921. +# On Suns, sometimes $CPP names a directory.
  12922. +if test -n "$CPP" && test -d "$CPP"; then
  12923. + CPP=
  12924. +fi
  12925. +if test -z "$CPP"; then
  12926. + if test "${ac_cv_prog_CPP+set}" = set; then
  12927. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12928. +else
  12929. + # Double quotes because CPP needs to be expanded
  12930. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  12931. + do
  12932. + ac_preproc_ok=false
  12933. +for ac_c_preproc_warn_flag in '' yes
  12934. +do
  12935. + # Use a header file that comes with gcc, so configuring glibc
  12936. + # with a fresh cross-compiler works.
  12937. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12938. + # <limits.h> exists even on freestanding compilers.
  12939. + # On the NeXT, cc -E runs the code through the compiler's parser,
  12940. + # not just through cpp. "Syntax error" is here to catch this case.
  12941. + cat >conftest.$ac_ext <<_ACEOF
  12942. +/* confdefs.h. */
  12943. +_ACEOF
  12944. +cat confdefs.h >>conftest.$ac_ext
  12945. +cat >>conftest.$ac_ext <<_ACEOF
  12946. +/* end confdefs.h. */
  12947. +@%:@ifdef __STDC__
  12948. +@%:@ include <limits.h>
  12949. +@%:@else
  12950. +@%:@ include <assert.h>
  12951. +@%:@endif
  12952. + Syntax error
  12953. +_ACEOF
  12954. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  12955. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  12956. + ac_status=$?
  12957. + grep -v '^ *+' conftest.er1 >conftest.err
  12958. + rm -f conftest.er1
  12959. + cat conftest.err >&5
  12960. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12961. + (exit $ac_status); } >/dev/null; then
  12962. + if test -s conftest.err; then
  12963. + ac_cpp_err=$ac_c_preproc_warn_flag
  12964. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  12965. + else
  12966. + ac_cpp_err=
  12967. + fi
  12968. +else
  12969. + ac_cpp_err=yes
  12970. +fi
  12971. +if test -z "$ac_cpp_err"; then
  12972. + :
  12973. +else
  12974. + echo "$as_me: failed program was:" >&5
  12975. +sed 's/^/| /' conftest.$ac_ext >&5
  12976. +
  12977. + # Broken: fails on valid input.
  12978. +continue
  12979. +fi
  12980. +rm -f conftest.err conftest.$ac_ext
  12981. +
  12982. + # OK, works on sane cases. Now check whether non-existent headers
  12983. + # can be detected and how.
  12984. + cat >conftest.$ac_ext <<_ACEOF
  12985. +/* confdefs.h. */
  12986. +_ACEOF
  12987. +cat confdefs.h >>conftest.$ac_ext
  12988. +cat >>conftest.$ac_ext <<_ACEOF
  12989. +/* end confdefs.h. */
  12990. +@%:@include <ac_nonexistent.h>
  12991. +_ACEOF
  12992. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  12993. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  12994. + ac_status=$?
  12995. + grep -v '^ *+' conftest.er1 >conftest.err
  12996. + rm -f conftest.er1
  12997. + cat conftest.err >&5
  12998. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12999. + (exit $ac_status); } >/dev/null; then
  13000. + if test -s conftest.err; then
  13001. + ac_cpp_err=$ac_c_preproc_warn_flag
  13002. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  13003. + else
  13004. + ac_cpp_err=
  13005. + fi
  13006. +else
  13007. + ac_cpp_err=yes
  13008. +fi
  13009. +if test -z "$ac_cpp_err"; then
  13010. + # Broken: success on invalid input.
  13011. +continue
  13012. +else
  13013. + echo "$as_me: failed program was:" >&5
  13014. +sed 's/^/| /' conftest.$ac_ext >&5
  13015. +
  13016. + # Passes both tests.
  13017. +ac_preproc_ok=:
  13018. +break
  13019. +fi
  13020. +rm -f conftest.err conftest.$ac_ext
  13021. +
  13022. +done
  13023. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13024. +rm -f conftest.err conftest.$ac_ext
  13025. +if $ac_preproc_ok; then
  13026. + break
  13027. +fi
  13028. +
  13029. + done
  13030. + ac_cv_prog_CPP=$CPP
  13031. +
  13032. +fi
  13033. + CPP=$ac_cv_prog_CPP
  13034. +else
  13035. + ac_cv_prog_CPP=$CPP
  13036. +fi
  13037. +echo "$as_me:$LINENO: result: $CPP" >&5
  13038. +echo "${ECHO_T}$CPP" >&6
  13039. +ac_preproc_ok=false
  13040. +for ac_c_preproc_warn_flag in '' yes
  13041. +do
  13042. + # Use a header file that comes with gcc, so configuring glibc
  13043. + # with a fresh cross-compiler works.
  13044. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13045. + # <limits.h> exists even on freestanding compilers.
  13046. + # On the NeXT, cc -E runs the code through the compiler's parser,
  13047. + # not just through cpp. "Syntax error" is here to catch this case.
  13048. + cat >conftest.$ac_ext <<_ACEOF
  13049. +/* confdefs.h. */
  13050. +_ACEOF
  13051. +cat confdefs.h >>conftest.$ac_ext
  13052. +cat >>conftest.$ac_ext <<_ACEOF
  13053. +/* end confdefs.h. */
  13054. +@%:@ifdef __STDC__
  13055. +@%:@ include <limits.h>
  13056. +@%:@else
  13057. +@%:@ include <assert.h>
  13058. +@%:@endif
  13059. + Syntax error
  13060. +_ACEOF
  13061. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13062. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13063. + ac_status=$?
  13064. + grep -v '^ *+' conftest.er1 >conftest.err
  13065. + rm -f conftest.er1
  13066. + cat conftest.err >&5
  13067. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13068. + (exit $ac_status); } >/dev/null; then
  13069. + if test -s conftest.err; then
  13070. + ac_cpp_err=$ac_c_preproc_warn_flag
  13071. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  13072. + else
  13073. + ac_cpp_err=
  13074. + fi
  13075. +else
  13076. + ac_cpp_err=yes
  13077. +fi
  13078. +if test -z "$ac_cpp_err"; then
  13079. + :
  13080. +else
  13081. + echo "$as_me: failed program was:" >&5
  13082. +sed 's/^/| /' conftest.$ac_ext >&5
  13083. +
  13084. + # Broken: fails on valid input.
  13085. +continue
  13086. +fi
  13087. +rm -f conftest.err conftest.$ac_ext
  13088. +
  13089. + # OK, works on sane cases. Now check whether non-existent headers
  13090. + # can be detected and how.
  13091. + cat >conftest.$ac_ext <<_ACEOF
  13092. +/* confdefs.h. */
  13093. +_ACEOF
  13094. +cat confdefs.h >>conftest.$ac_ext
  13095. +cat >>conftest.$ac_ext <<_ACEOF
  13096. +/* end confdefs.h. */
  13097. +@%:@include <ac_nonexistent.h>
  13098. +_ACEOF
  13099. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13100. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13101. + ac_status=$?
  13102. + grep -v '^ *+' conftest.er1 >conftest.err
  13103. + rm -f conftest.er1
  13104. + cat conftest.err >&5
  13105. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13106. + (exit $ac_status); } >/dev/null; then
  13107. + if test -s conftest.err; then
  13108. + ac_cpp_err=$ac_c_preproc_warn_flag
  13109. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  13110. + else
  13111. + ac_cpp_err=
  13112. + fi
  13113. +else
  13114. + ac_cpp_err=yes
  13115. +fi
  13116. +if test -z "$ac_cpp_err"; then
  13117. + # Broken: success on invalid input.
  13118. +continue
  13119. +else
  13120. + echo "$as_me: failed program was:" >&5
  13121. +sed 's/^/| /' conftest.$ac_ext >&5
  13122. +
  13123. + # Passes both tests.
  13124. +ac_preproc_ok=:
  13125. +break
  13126. +fi
  13127. +rm -f conftest.err conftest.$ac_ext
  13128. +
  13129. +done
  13130. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13131. +rm -f conftest.err conftest.$ac_ext
  13132. +if $ac_preproc_ok; then
  13133. + :
  13134. +else
  13135. + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  13136. +See \`config.log' for more details." >&5
  13137. +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  13138. +See \`config.log' for more details." >&2;}
  13139. + { (exit 1); exit 1; }; }
  13140. +fi
  13141. +
  13142. +ac_ext=c
  13143. +ac_cpp='$CPP $CPPFLAGS'
  13144. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13145. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13146. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13147. +
  13148. +
  13149. +echo "$as_me:$LINENO: checking for egrep" >&5
  13150. +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  13151. +if test "${ac_cv_prog_egrep+set}" = set; then
  13152. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13153. +else
  13154. + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  13155. + then ac_cv_prog_egrep='grep -E'
  13156. + else ac_cv_prog_egrep='egrep'
  13157. + fi
  13158. +fi
  13159. +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  13160. +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  13161. + EGREP=$ac_cv_prog_egrep
  13162. +
  13163. +
  13164. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  13165. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  13166. +if test "${ac_cv_header_stdc+set}" = set; then
  13167. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13168. +else
  13169. + cat >conftest.$ac_ext <<_ACEOF
  13170. +/* confdefs.h. */
  13171. +_ACEOF
  13172. +cat confdefs.h >>conftest.$ac_ext
  13173. +cat >>conftest.$ac_ext <<_ACEOF
  13174. +/* end confdefs.h. */
  13175. +#include <stdlib.h>
  13176. +#include <stdarg.h>
  13177. +#include <string.h>
  13178. +#include <float.h>
  13179. +
  13180. +int
  13181. +main ()
  13182. +{
  13183. +
  13184. + ;
  13185. + return 0;
  13186. +}
  13187. +_ACEOF
  13188. +rm -f conftest.$ac_objext
  13189. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13190. + (eval $ac_compile) 2>conftest.er1
  13191. + ac_status=$?
  13192. + grep -v '^ *+' conftest.er1 >conftest.err
  13193. + rm -f conftest.er1
  13194. + cat conftest.err >&5
  13195. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13196. + (exit $ac_status); } &&
  13197. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13198. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13199. + (eval $ac_try) 2>&5
  13200. + ac_status=$?
  13201. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13202. + (exit $ac_status); }; } &&
  13203. + { ac_try='test -s conftest.$ac_objext'
  13204. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13205. + (eval $ac_try) 2>&5
  13206. + ac_status=$?
  13207. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13208. + (exit $ac_status); }; }; then
  13209. + ac_cv_header_stdc=yes
  13210. +else
  13211. + echo "$as_me: failed program was:" >&5
  13212. +sed 's/^/| /' conftest.$ac_ext >&5
  13213. +
  13214. +ac_cv_header_stdc=no
  13215. +fi
  13216. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13217. +
  13218. +if test $ac_cv_header_stdc = yes; then
  13219. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13220. + cat >conftest.$ac_ext <<_ACEOF
  13221. +/* confdefs.h. */
  13222. +_ACEOF
  13223. +cat confdefs.h >>conftest.$ac_ext
  13224. +cat >>conftest.$ac_ext <<_ACEOF
  13225. +/* end confdefs.h. */
  13226. +#include <string.h>
  13227. +
  13228. +_ACEOF
  13229. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13230. + $EGREP "memchr" >/dev/null 2>&1; then
  13231. + :
  13232. +else
  13233. + ac_cv_header_stdc=no
  13234. +fi
  13235. +rm -f conftest*
  13236. +
  13237. +fi
  13238. +
  13239. +if test $ac_cv_header_stdc = yes; then
  13240. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13241. + cat >conftest.$ac_ext <<_ACEOF
  13242. +/* confdefs.h. */
  13243. +_ACEOF
  13244. +cat confdefs.h >>conftest.$ac_ext
  13245. +cat >>conftest.$ac_ext <<_ACEOF
  13246. +/* end confdefs.h. */
  13247. +#include <stdlib.h>
  13248. +
  13249. +_ACEOF
  13250. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13251. + $EGREP "free" >/dev/null 2>&1; then
  13252. + :
  13253. +else
  13254. + ac_cv_header_stdc=no
  13255. +fi
  13256. +rm -f conftest*
  13257. +
  13258. +fi
  13259. +
  13260. +if test $ac_cv_header_stdc = yes; then
  13261. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13262. + if test "$cross_compiling" = yes; then
  13263. + :
  13264. +else
  13265. + cat >conftest.$ac_ext <<_ACEOF
  13266. +/* confdefs.h. */
  13267. +_ACEOF
  13268. +cat confdefs.h >>conftest.$ac_ext
  13269. +cat >>conftest.$ac_ext <<_ACEOF
  13270. +/* end confdefs.h. */
  13271. +#include <ctype.h>
  13272. +#if ((' ' & 0x0FF) == 0x020)
  13273. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13274. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13275. +#else
  13276. +# define ISLOWER(c) \
  13277. + (('a' <= (c) && (c) <= 'i') \
  13278. + || ('j' <= (c) && (c) <= 'r') \
  13279. + || ('s' <= (c) && (c) <= 'z'))
  13280. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13281. +#endif
  13282. +
  13283. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13284. +int
  13285. +main ()
  13286. +{
  13287. + int i;
  13288. + for (i = 0; i < 256; i++)
  13289. + if (XOR (islower (i), ISLOWER (i))
  13290. + || toupper (i) != TOUPPER (i))
  13291. + exit(2);
  13292. + exit (0);
  13293. +}
  13294. +_ACEOF
  13295. +rm -f conftest$ac_exeext
  13296. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13297. + (eval $ac_link) 2>&5
  13298. + ac_status=$?
  13299. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13300. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13301. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13302. + (eval $ac_try) 2>&5
  13303. + ac_status=$?
  13304. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13305. + (exit $ac_status); }; }; then
  13306. + :
  13307. +else
  13308. + echo "$as_me: program exited with status $ac_status" >&5
  13309. +echo "$as_me: failed program was:" >&5
  13310. +sed 's/^/| /' conftest.$ac_ext >&5
  13311. +
  13312. +( exit $ac_status )
  13313. +ac_cv_header_stdc=no
  13314. +fi
  13315. +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13316. +fi
  13317. +fi
  13318. +fi
  13319. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  13320. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  13321. +if test $ac_cv_header_stdc = yes; then
  13322. +
  13323. +cat >>confdefs.h <<\_ACEOF
  13324. +@%:@define STDC_HEADERS 1
  13325. +_ACEOF
  13326. +
  13327. +fi
  13328. +
  13329. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  13330. +
  13331. +
  13332. +
  13333. +
  13334. +
  13335. +
  13336. +
  13337. +
  13338. +
  13339. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  13340. + inttypes.h stdint.h unistd.h
  13341. +do
  13342. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13343. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  13344. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  13345. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13346. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13347. +else
  13348. + cat >conftest.$ac_ext <<_ACEOF
  13349. +/* confdefs.h. */
  13350. +_ACEOF
  13351. +cat confdefs.h >>conftest.$ac_ext
  13352. +cat >>conftest.$ac_ext <<_ACEOF
  13353. +/* end confdefs.h. */
  13354. +$ac_includes_default
  13355. +
  13356. +@%:@include <$ac_header>
  13357. +_ACEOF
  13358. +rm -f conftest.$ac_objext
  13359. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13360. + (eval $ac_compile) 2>conftest.er1
  13361. + ac_status=$?
  13362. + grep -v '^ *+' conftest.er1 >conftest.err
  13363. + rm -f conftest.er1
  13364. + cat conftest.err >&5
  13365. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13366. + (exit $ac_status); } &&
  13367. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13368. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13369. + (eval $ac_try) 2>&5
  13370. + ac_status=$?
  13371. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13372. + (exit $ac_status); }; } &&
  13373. + { ac_try='test -s conftest.$ac_objext'
  13374. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13375. + (eval $ac_try) 2>&5
  13376. + ac_status=$?
  13377. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13378. + (exit $ac_status); }; }; then
  13379. + eval "$as_ac_Header=yes"
  13380. +else
  13381. + echo "$as_me: failed program was:" >&5
  13382. +sed 's/^/| /' conftest.$ac_ext >&5
  13383. +
  13384. +eval "$as_ac_Header=no"
  13385. +fi
  13386. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13387. +fi
  13388. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  13389. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  13390. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13391. + cat >>confdefs.h <<_ACEOF
  13392. +@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13393. +_ACEOF
  13394. +
  13395. +fi
  13396. +
  13397. +done
  13398. +
  13399. +
  13400. +
  13401. +for ac_header in dlfcn.h
  13402. +do
  13403. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13404. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13405. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  13406. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  13407. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13408. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13409. +fi
  13410. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  13411. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  13412. +else
  13413. + # Is the header compilable?
  13414. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13415. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  13416. +cat >conftest.$ac_ext <<_ACEOF
  13417. +/* confdefs.h. */
  13418. +_ACEOF
  13419. +cat confdefs.h >>conftest.$ac_ext
  13420. +cat >>conftest.$ac_ext <<_ACEOF
  13421. +/* end confdefs.h. */
  13422. +$ac_includes_default
  13423. +@%:@include <$ac_header>
  13424. +_ACEOF
  13425. +rm -f conftest.$ac_objext
  13426. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13427. + (eval $ac_compile) 2>conftest.er1
  13428. + ac_status=$?
  13429. + grep -v '^ *+' conftest.er1 >conftest.err
  13430. + rm -f conftest.er1
  13431. + cat conftest.err >&5
  13432. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13433. + (exit $ac_status); } &&
  13434. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13435. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13436. + (eval $ac_try) 2>&5
  13437. + ac_status=$?
  13438. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13439. + (exit $ac_status); }; } &&
  13440. + { ac_try='test -s conftest.$ac_objext'
  13441. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13442. + (eval $ac_try) 2>&5
  13443. + ac_status=$?
  13444. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13445. + (exit $ac_status); }; }; then
  13446. + ac_header_compiler=yes
  13447. +else
  13448. + echo "$as_me: failed program was:" >&5
  13449. +sed 's/^/| /' conftest.$ac_ext >&5
  13450. +
  13451. +ac_header_compiler=no
  13452. +fi
  13453. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13454. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13455. +echo "${ECHO_T}$ac_header_compiler" >&6
  13456. +
  13457. +# Is the header present?
  13458. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13459. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  13460. +cat >conftest.$ac_ext <<_ACEOF
  13461. +/* confdefs.h. */
  13462. +_ACEOF
  13463. +cat confdefs.h >>conftest.$ac_ext
  13464. +cat >>conftest.$ac_ext <<_ACEOF
  13465. +/* end confdefs.h. */
  13466. +@%:@include <$ac_header>
  13467. +_ACEOF
  13468. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13469. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13470. + ac_status=$?
  13471. + grep -v '^ *+' conftest.er1 >conftest.err
  13472. + rm -f conftest.er1
  13473. + cat conftest.err >&5
  13474. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13475. + (exit $ac_status); } >/dev/null; then
  13476. + if test -s conftest.err; then
  13477. + ac_cpp_err=$ac_c_preproc_warn_flag
  13478. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  13479. + else
  13480. + ac_cpp_err=
  13481. + fi
  13482. +else
  13483. + ac_cpp_err=yes
  13484. +fi
  13485. +if test -z "$ac_cpp_err"; then
  13486. + ac_header_preproc=yes
  13487. +else
  13488. + echo "$as_me: failed program was:" >&5
  13489. +sed 's/^/| /' conftest.$ac_ext >&5
  13490. +
  13491. + ac_header_preproc=no
  13492. +fi
  13493. +rm -f conftest.err conftest.$ac_ext
  13494. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13495. +echo "${ECHO_T}$ac_header_preproc" >&6
  13496. +
  13497. +# So? What about this header?
  13498. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  13499. + yes:no: )
  13500. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13501. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13502. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13503. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13504. + ac_header_preproc=yes
  13505. + ;;
  13506. + no:yes:* )
  13507. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13508. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13509. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13510. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13511. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13512. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13513. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13514. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13515. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13516. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13517. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13518. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13519. + (
  13520. + cat <<\_ASBOX
  13521. +@%:@@%:@ ------------------------------------------ @%:@@%:@
  13522. +@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
  13523. +@%:@@%:@ ------------------------------------------ @%:@@%:@
  13524. +_ASBOX
  13525. + ) |
  13526. + sed "s/^/$as_me: WARNING: /" >&2
  13527. + ;;
  13528. +esac
  13529. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  13530. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  13531. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13532. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13533. +else
  13534. + eval "$as_ac_Header=\$ac_header_preproc"
  13535. +fi
  13536. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  13537. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  13538. +
  13539. +fi
  13540. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13541. + cat >>confdefs.h <<_ACEOF
  13542. +@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13543. +_ACEOF
  13544. +
  13545. +fi
  13546. +
  13547. +done
  13548. +
  13549. +
  13550. +
  13551. +
  13552. +
  13553. +
  13554. +# Only perform the check for file, if the check method requires it
  13555. +case $deplibs_check_method in
  13556. +file_magic*)
  13557. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  13558. + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  13559. +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  13560. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  13561. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13562. +else
  13563. + case $MAGIC_CMD in
  13564. + /*)
  13565. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  13566. + ;;
  13567. + ?:/*)
  13568. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  13569. + ;;
  13570. + *)
  13571. + ac_save_MAGIC_CMD="$MAGIC_CMD"
  13572. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  13573. + ac_dummy="/usr/bin:$PATH"
  13574. + for ac_dir in $ac_dummy; do
  13575. + test -z "$ac_dir" && ac_dir=.
  13576. + if test -f $ac_dir/${ac_tool_prefix}file; then
  13577. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  13578. + if test -n "$file_magic_test_file"; then
  13579. + case $deplibs_check_method in
  13580. + "file_magic "*)
  13581. + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  13582. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13583. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  13584. + egrep "$file_magic_regex" > /dev/null; then
  13585. + :
  13586. + else
  13587. + cat <<EOF 1>&2
  13588. +
  13589. +*** Warning: the command libtool uses to detect shared libraries,
  13590. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  13591. +*** The result is that libtool may fail to recognize shared libraries
  13592. +*** as such. This will affect the creation of libtool libraries that
  13593. +*** depend on shared libraries, but programs linked with such libtool
  13594. +*** libraries will work regardless of this problem. Nevertheless, you
  13595. +*** may want to report the problem to your system manager and/or to
  13596. +*** bug-libtool@gnu.org
  13597. +
  13598. +EOF
  13599. + fi ;;
  13600. + esac
  13601. + fi
  13602. + break
  13603. + fi
  13604. + done
  13605. + IFS="$ac_save_ifs"
  13606. + MAGIC_CMD="$ac_save_MAGIC_CMD"
  13607. + ;;
  13608. +esac
  13609. +fi
  13610. +
  13611. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13612. +if test -n "$MAGIC_CMD"; then
  13613. + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  13614. +echo "${ECHO_T}$MAGIC_CMD" >&6
  13615. +else
  13616. + echo "$as_me:$LINENO: result: no" >&5
  13617. +echo "${ECHO_T}no" >&6
  13618. +fi
  13619. +
  13620. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  13621. + if test -n "$ac_tool_prefix"; then
  13622. + echo "$as_me:$LINENO: checking for file" >&5
  13623. +echo $ECHO_N "checking for file... $ECHO_C" >&6
  13624. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  13625. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13626. +else
  13627. + case $MAGIC_CMD in
  13628. + /*)
  13629. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  13630. + ;;
  13631. + ?:/*)
  13632. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  13633. + ;;
  13634. + *)
  13635. + ac_save_MAGIC_CMD="$MAGIC_CMD"
  13636. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  13637. + ac_dummy="/usr/bin:$PATH"
  13638. + for ac_dir in $ac_dummy; do
  13639. + test -z "$ac_dir" && ac_dir=.
  13640. + if test -f $ac_dir/file; then
  13641. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  13642. + if test -n "$file_magic_test_file"; then
  13643. + case $deplibs_check_method in
  13644. + "file_magic "*)
  13645. + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  13646. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13647. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  13648. + egrep "$file_magic_regex" > /dev/null; then
  13649. + :
  13650. + else
  13651. + cat <<EOF 1>&2
  13652. +
  13653. +*** Warning: the command libtool uses to detect shared libraries,
  13654. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  13655. +*** The result is that libtool may fail to recognize shared libraries
  13656. +*** as such. This will affect the creation of libtool libraries that
  13657. +*** depend on shared libraries, but programs linked with such libtool
  13658. +*** libraries will work regardless of this problem. Nevertheless, you
  13659. +*** may want to report the problem to your system manager and/or to
  13660. +*** bug-libtool@gnu.org
  13661. +
  13662. +EOF
  13663. + fi ;;
  13664. + esac
  13665. + fi
  13666. + break
  13667. + fi
  13668. + done
  13669. + IFS="$ac_save_ifs"
  13670. + MAGIC_CMD="$ac_save_MAGIC_CMD"
  13671. + ;;
  13672. +esac
  13673. +fi
  13674. +
  13675. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13676. +if test -n "$MAGIC_CMD"; then
  13677. + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  13678. +echo "${ECHO_T}$MAGIC_CMD" >&6
  13679. +else
  13680. + echo "$as_me:$LINENO: result: no" >&5
  13681. +echo "${ECHO_T}no" >&6
  13682. +fi
  13683. +
  13684. + else
  13685. + MAGIC_CMD=:
  13686. + fi
  13687. +fi
  13688. +
  13689. + fi
  13690. + ;;
  13691. +esac
  13692. +
  13693. +if test -n "$ac_tool_prefix"; then
  13694. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  13695. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  13696. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  13697. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13698. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  13699. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13700. +else
  13701. + if test -n "$RANLIB"; then
  13702. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  13703. +else
  13704. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13705. +for as_dir in $PATH
  13706. +do
  13707. + IFS=$as_save_IFS
  13708. + test -z "$as_dir" && as_dir=.
  13709. + for ac_exec_ext in '' $ac_executable_extensions; do
  13710. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13711. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  13712. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13713. + break 2
  13714. + fi
  13715. +done
  13716. +done
  13717. +
  13718. +fi
  13719. +fi
  13720. +RANLIB=$ac_cv_prog_RANLIB
  13721. +if test -n "$RANLIB"; then
  13722. + echo "$as_me:$LINENO: result: $RANLIB" >&5
  13723. +echo "${ECHO_T}$RANLIB" >&6
  13724. +else
  13725. + echo "$as_me:$LINENO: result: no" >&5
  13726. +echo "${ECHO_T}no" >&6
  13727. +fi
  13728. +
  13729. +fi
  13730. +if test -z "$ac_cv_prog_RANLIB"; then
  13731. + ac_ct_RANLIB=$RANLIB
  13732. + # Extract the first word of "ranlib", so it can be a program name with args.
  13733. +set dummy ranlib; ac_word=$2
  13734. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  13735. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13736. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  13737. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13738. +else
  13739. + if test -n "$ac_ct_RANLIB"; then
  13740. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  13741. +else
  13742. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13743. +for as_dir in $PATH
  13744. +do
  13745. + IFS=$as_save_IFS
  13746. + test -z "$as_dir" && as_dir=.
  13747. + for ac_exec_ext in '' $ac_executable_extensions; do
  13748. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13749. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  13750. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13751. + break 2
  13752. + fi
  13753. +done
  13754. +done
  13755. +
  13756. + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  13757. +fi
  13758. +fi
  13759. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  13760. +if test -n "$ac_ct_RANLIB"; then
  13761. + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  13762. +echo "${ECHO_T}$ac_ct_RANLIB" >&6
  13763. +else
  13764. + echo "$as_me:$LINENO: result: no" >&5
  13765. +echo "${ECHO_T}no" >&6
  13766. +fi
  13767. +
  13768. + RANLIB=$ac_ct_RANLIB
  13769. +else
  13770. + RANLIB="$ac_cv_prog_RANLIB"
  13771. +fi
  13772. +
  13773. +if test -n "$ac_tool_prefix"; then
  13774. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  13775. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  13776. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  13777. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13778. +if test "${ac_cv_prog_STRIP+set}" = set; then
  13779. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13780. +else
  13781. + if test -n "$STRIP"; then
  13782. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  13783. +else
  13784. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13785. +for as_dir in $PATH
  13786. +do
  13787. + IFS=$as_save_IFS
  13788. + test -z "$as_dir" && as_dir=.
  13789. + for ac_exec_ext in '' $ac_executable_extensions; do
  13790. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13791. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  13792. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13793. + break 2
  13794. + fi
  13795. +done
  13796. +done
  13797. +
  13798. +fi
  13799. +fi
  13800. +STRIP=$ac_cv_prog_STRIP
  13801. +if test -n "$STRIP"; then
  13802. + echo "$as_me:$LINENO: result: $STRIP" >&5
  13803. +echo "${ECHO_T}$STRIP" >&6
  13804. +else
  13805. + echo "$as_me:$LINENO: result: no" >&5
  13806. +echo "${ECHO_T}no" >&6
  13807. +fi
  13808. +
  13809. +fi
  13810. +if test -z "$ac_cv_prog_STRIP"; then
  13811. + ac_ct_STRIP=$STRIP
  13812. + # Extract the first word of "strip", so it can be a program name with args.
  13813. +set dummy strip; ac_word=$2
  13814. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  13815. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  13816. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  13817. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13818. +else
  13819. + if test -n "$ac_ct_STRIP"; then
  13820. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  13821. +else
  13822. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13823. +for as_dir in $PATH
  13824. +do
  13825. + IFS=$as_save_IFS
  13826. + test -z "$as_dir" && as_dir=.
  13827. + for ac_exec_ext in '' $ac_executable_extensions; do
  13828. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13829. + ac_cv_prog_ac_ct_STRIP="strip"
  13830. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13831. + break 2
  13832. + fi
  13833. +done
  13834. +done
  13835. +
  13836. + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  13837. +fi
  13838. +fi
  13839. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  13840. +if test -n "$ac_ct_STRIP"; then
  13841. + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  13842. +echo "${ECHO_T}$ac_ct_STRIP" >&6
  13843. +else
  13844. + echo "$as_me:$LINENO: result: no" >&5
  13845. +echo "${ECHO_T}no" >&6
  13846. +fi
  13847. +
  13848. + STRIP=$ac_ct_STRIP
  13849. +else
  13850. + STRIP="$ac_cv_prog_STRIP"
  13851. +fi
  13852. +
  13853. +
  13854. +enable_dlopen=no
  13855. +enable_win32_dll=no
  13856. +
  13857. +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  13858. +if test "${enable_libtool_lock+set}" = set; then
  13859. + enableval="$enable_libtool_lock"
  13860. +
  13861. +fi;
  13862. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  13863. +
  13864. +# Some flags need to be propagated to the compiler or linker for good
  13865. +# libtool support.
  13866. +case $host in
  13867. +*-*-irix6*)
  13868. + # Find out which ABI we are using.
  13869. + echo '#line __oline__ "configure"' > conftest.$ac_ext
  13870. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13871. + (eval $ac_compile) 2>&5
  13872. + ac_status=$?
  13873. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13874. + (exit $ac_status); }; then
  13875. + case `/usr/bin/file conftest.$ac_objext` in
  13876. + *32-bit*)
  13877. + LD="${LD-ld} -32"
  13878. + ;;
  13879. + *N32*)
  13880. + LD="${LD-ld} -n32"
  13881. + ;;
  13882. + *64-bit*)
  13883. + LD="${LD-ld} -64"
  13884. + ;;
  13885. + esac
  13886. + fi
  13887. + rm -rf conftest*
  13888. + ;;
  13889. +
  13890. +*-*-sco3.2v5*)
  13891. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  13892. + SAVE_CFLAGS="$CFLAGS"
  13893. + CFLAGS="$CFLAGS -belf"
  13894. + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  13895. +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  13896. +if test "${lt_cv_cc_needs_belf+set}" = set; then
  13897. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13898. +else
  13899. +
  13900. +
  13901. + ac_ext=c
  13902. +ac_cpp='$CPP $CPPFLAGS'
  13903. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13904. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13905. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13906. +
  13907. + cat >conftest.$ac_ext <<_ACEOF
  13908. +/* confdefs.h. */
  13909. +_ACEOF
  13910. +cat confdefs.h >>conftest.$ac_ext
  13911. +cat >>conftest.$ac_ext <<_ACEOF
  13912. +/* end confdefs.h. */
  13913. +
  13914. +int
  13915. +main ()
  13916. +{
  13917. +
  13918. + ;
  13919. + return 0;
  13920. +}
  13921. +_ACEOF
  13922. +rm -f conftest.$ac_objext conftest$ac_exeext
  13923. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13924. + (eval $ac_link) 2>conftest.er1
  13925. + ac_status=$?
  13926. + grep -v '^ *+' conftest.er1 >conftest.err
  13927. + rm -f conftest.er1
  13928. + cat conftest.err >&5
  13929. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13930. + (exit $ac_status); } &&
  13931. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13932. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13933. + (eval $ac_try) 2>&5
  13934. + ac_status=$?
  13935. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13936. + (exit $ac_status); }; } &&
  13937. + { ac_try='test -s conftest$ac_exeext'
  13938. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13939. + (eval $ac_try) 2>&5
  13940. + ac_status=$?
  13941. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13942. + (exit $ac_status); }; }; then
  13943. + lt_cv_cc_needs_belf=yes
  13944. +else
  13945. + echo "$as_me: failed program was:" >&5
  13946. +sed 's/^/| /' conftest.$ac_ext >&5
  13947. +
  13948. +lt_cv_cc_needs_belf=no
  13949. +fi
  13950. +rm -f conftest.err conftest.$ac_objext \
  13951. + conftest$ac_exeext conftest.$ac_ext
  13952. + ac_ext=c
  13953. +ac_cpp='$CPP $CPPFLAGS'
  13954. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13955. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13956. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13957. +
  13958. +fi
  13959. +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  13960. +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  13961. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  13962. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  13963. + CFLAGS="$SAVE_CFLAGS"
  13964. + fi
  13965. + ;;
  13966. +
  13967. +
  13968. +esac
  13969. +
  13970. +# Sed substitution that helps us do robust quoting. It backslashifies
  13971. +# metacharacters that are still active within double-quoted strings.
  13972. +Xsed='sed -e s/^X//'
  13973. +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  13974. +
  13975. +# Same as above, but do not quote variable references.
  13976. +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  13977. +
  13978. +# Sed substitution to delay expansion of an escaped shell variable in a
  13979. +# double_quote_subst'ed string.
  13980. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  13981. +
  13982. +# Constants:
  13983. +rm="rm -f"
  13984. +
  13985. +# Global variables:
  13986. +default_ofile=libtool
  13987. +can_build_shared=yes
  13988. +
  13989. +# All known linkers require a `.a' archive for static linking (except M$VC,
  13990. +# which needs '.lib').
  13991. +libext=a
  13992. +ltmain="$ac_aux_dir/ltmain.sh"
  13993. +ofile="$default_ofile"
  13994. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  13995. +need_locks="$enable_libtool_lock"
  13996. +
  13997. +old_CC="$CC"
  13998. +old_CFLAGS="$CFLAGS"
  13999. +
  14000. +# Set sane defaults for various variables
  14001. +test -z "$AR" && AR=ar
  14002. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  14003. +test -z "$AS" && AS=as
  14004. +test -z "$CC" && CC=cc
  14005. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  14006. +test -z "$LD" && LD=ld
  14007. +test -z "$LN_S" && LN_S="ln -s"
  14008. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  14009. +test -z "$NM" && NM=nm
  14010. +test -z "$OBJDUMP" && OBJDUMP=objdump
  14011. +test -z "$RANLIB" && RANLIB=:
  14012. +test -z "$STRIP" && STRIP=:
  14013. +test -z "$ac_objext" && ac_objext=o
  14014. +
  14015. +if test x"$host" != x"$build"; then
  14016. + ac_tool_prefix=${host_alias}-
  14017. +else
  14018. + ac_tool_prefix=
  14019. +fi
  14020. +
  14021. +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  14022. +case $host_os in
  14023. +linux-gnu*) ;;
  14024. +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  14025. +esac
  14026. +
  14027. +case $host_os in
  14028. +aix3*)
  14029. + # AIX sometimes has problems with the GCC collect2 program. For some
  14030. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  14031. + # vanish in a puff of smoke.
  14032. + if test "X${COLLECT_NAMES+set}" != Xset; then
  14033. + COLLECT_NAMES=
  14034. + export COLLECT_NAMES
  14035. + fi
  14036. + ;;
  14037. +esac
  14038. +
  14039. +# Determine commands to create old-style static archives.
  14040. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  14041. +old_postinstall_cmds='chmod 644 $oldlib'
  14042. +old_postuninstall_cmds=
  14043. +
  14044. +if test -n "$RANLIB"; then
  14045. + case $host_os in
  14046. + openbsd*)
  14047. + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  14048. + ;;
  14049. + *)
  14050. + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  14051. + ;;
  14052. + esac
  14053. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  14054. +fi
  14055. +
  14056. +# Allow CC to be a program name with arguments.
  14057. +set dummy $CC
  14058. +compiler="$2"
  14059. +
  14060. +echo "$as_me:$LINENO: checking for objdir" >&5
  14061. +echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  14062. +rm -f .libs 2>/dev/null
  14063. +mkdir .libs 2>/dev/null
  14064. +if test -d .libs; then
  14065. + objdir=.libs
  14066. +else
  14067. + # MS-DOS does not allow filenames that begin with a dot.
  14068. + objdir=_libs
  14069. +fi
  14070. +rmdir .libs 2>/dev/null
  14071. +echo "$as_me:$LINENO: result: $objdir" >&5
  14072. +echo "${ECHO_T}$objdir" >&6
  14073. +
  14074. +
  14075. +
  14076. +# Check whether --with-pic or --without-pic was given.
  14077. +if test "${with_pic+set}" = set; then
  14078. + withval="$with_pic"
  14079. + pic_mode="$withval"
  14080. +else
  14081. + pic_mode=default
  14082. +fi;
  14083. +test -z "$pic_mode" && pic_mode=default
  14084. +
  14085. +# We assume here that the value for lt_cv_prog_cc_pic will not be cached
  14086. +# in isolation, and that seeing it set (from the cache) indicates that
  14087. +# the associated values are set (in the cache) correctly too.
  14088. +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14089. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  14090. +if test "${lt_cv_prog_cc_pic+set}" = set; then
  14091. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14092. +else
  14093. + lt_cv_prog_cc_pic=
  14094. + lt_cv_prog_cc_shlib=
  14095. + lt_cv_prog_cc_wl=
  14096. + lt_cv_prog_cc_static=
  14097. + lt_cv_prog_cc_no_builtin=
  14098. + lt_cv_prog_cc_can_build_shared=$can_build_shared
  14099. +
  14100. + if test "$GCC" = yes; then
  14101. + lt_cv_prog_cc_wl='-Wl,'
  14102. + lt_cv_prog_cc_static='-static'
  14103. +
  14104. + case $host_os in
  14105. + aix*)
  14106. + # Below there is a dirty hack to force normal static linking with -ldl
  14107. + # The problem is because libdl dynamically linked with both libc and
  14108. + # libC (AIX C++ library), which obviously doesn't included in libraries
  14109. + # list by gcc. This cause undefined symbols with -static flags.
  14110. + # This hack allows C programs to be linked with "-static -ldl", but
  14111. + # not sure about C++ programs.
  14112. + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  14113. + ;;
  14114. + amigaos*)
  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_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  14119. + ;;
  14120. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14121. + # PIC is the default for these OSes.
  14122. + ;;
  14123. + darwin* | rhapsody*)
  14124. + # PIC is the default on this platform
  14125. + # Common symbols not allowed in MH_DYLIB files
  14126. + lt_cv_prog_cc_pic='-fno-common'
  14127. + ;;
  14128. + cygwin* | mingw* | pw32* | os2*)
  14129. + # This hack is so that the source file can tell whether it is being
  14130. + # built for inclusion in a dll (and should export symbols for example).
  14131. + lt_cv_prog_cc_pic='-DDLL_EXPORT'
  14132. + ;;
  14133. + sysv4*MP*)
  14134. + if test -d /usr/nec; then
  14135. + lt_cv_prog_cc_pic=-Kconform_pic
  14136. + fi
  14137. + ;;
  14138. + *)
  14139. + lt_cv_prog_cc_pic='-fPIC'
  14140. + ;;
  14141. + esac
  14142. + else
  14143. + # PORTME Check for PIC flags for the system compiler.
  14144. + case $host_os in
  14145. + aix3* | aix4* | aix5*)
  14146. + lt_cv_prog_cc_wl='-Wl,'
  14147. + # All AIX code is PIC.
  14148. + if test "$host_cpu" = ia64; then
  14149. + # AIX 5 now supports IA64 processor
  14150. + lt_cv_prog_cc_static='-Bstatic'
  14151. + else
  14152. + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  14153. + fi
  14154. + ;;
  14155. +
  14156. + hpux9* | hpux10* | hpux11*)
  14157. + # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  14158. + lt_cv_prog_cc_wl='-Wl,'
  14159. + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  14160. + lt_cv_prog_cc_pic='+Z'
  14161. + ;;
  14162. +
  14163. + irix5* | irix6* | nonstopux*)
  14164. + lt_cv_prog_cc_wl='-Wl,'
  14165. + lt_cv_prog_cc_static='-non_shared'
  14166. + # PIC (with -KPIC) is the default.
  14167. + ;;
  14168. +
  14169. + cygwin* | mingw* | pw32* | os2*)
  14170. + # This hack is so that the source file can tell whether it is being
  14171. + # built for inclusion in a dll (and should export symbols for example).
  14172. + lt_cv_prog_cc_pic='-DDLL_EXPORT'
  14173. + ;;
  14174. +
  14175. + newsos6)
  14176. + lt_cv_prog_cc_pic='-KPIC'
  14177. + lt_cv_prog_cc_static='-Bstatic'
  14178. + ;;
  14179. +
  14180. + osf3* | osf4* | osf5*)
  14181. + # All OSF/1 code is PIC.
  14182. + lt_cv_prog_cc_wl='-Wl,'
  14183. + lt_cv_prog_cc_static='-non_shared'
  14184. + ;;
  14185. +
  14186. + sco3.2v5*)
  14187. + lt_cv_prog_cc_pic='-Kpic'
  14188. + lt_cv_prog_cc_static='-dn'
  14189. + lt_cv_prog_cc_shlib='-belf'
  14190. + ;;
  14191. +
  14192. + solaris*)
  14193. + lt_cv_prog_cc_pic='-KPIC'
  14194. + lt_cv_prog_cc_static='-Bstatic'
  14195. + lt_cv_prog_cc_wl='-Wl,'
  14196. + ;;
  14197. +
  14198. + sunos4*)
  14199. + lt_cv_prog_cc_pic='-PIC'
  14200. + lt_cv_prog_cc_static='-Bstatic'
  14201. + lt_cv_prog_cc_wl='-Qoption ld '
  14202. + ;;
  14203. +
  14204. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14205. + lt_cv_prog_cc_pic='-KPIC'
  14206. + lt_cv_prog_cc_static='-Bstatic'
  14207. + lt_cv_prog_cc_wl='-Wl,'
  14208. + ;;
  14209. +
  14210. + uts4*)
  14211. + lt_cv_prog_cc_pic='-pic'
  14212. + lt_cv_prog_cc_static='-Bstatic'
  14213. + ;;
  14214. +
  14215. + sysv4*MP*)
  14216. + if test -d /usr/nec ;then
  14217. + lt_cv_prog_cc_pic='-Kconform_pic'
  14218. + lt_cv_prog_cc_static='-Bstatic'
  14219. + fi
  14220. + ;;
  14221. +
  14222. + *)
  14223. + lt_cv_prog_cc_can_build_shared=no
  14224. + ;;
  14225. + esac
  14226. + fi
  14227. +
  14228. +fi
  14229. +
  14230. +if test -z "$lt_cv_prog_cc_pic"; then
  14231. + echo "$as_me:$LINENO: result: none" >&5
  14232. +echo "${ECHO_T}none" >&6
  14233. +else
  14234. + echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
  14235. +echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
  14236. +
  14237. + # Check to make sure the pic_flag actually works.
  14238. + echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  14239. +echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
  14240. + if test "${lt_cv_prog_cc_pic_works+set}" = set; then
  14241. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14242. +else
  14243. + save_CFLAGS="$CFLAGS"
  14244. + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  14245. + cat >conftest.$ac_ext <<_ACEOF
  14246. +/* confdefs.h. */
  14247. +_ACEOF
  14248. +cat confdefs.h >>conftest.$ac_ext
  14249. +cat >>conftest.$ac_ext <<_ACEOF
  14250. +/* end confdefs.h. */
  14251. +
  14252. +int
  14253. +main ()
  14254. +{
  14255. +
  14256. + ;
  14257. + return 0;
  14258. +}
  14259. +_ACEOF
  14260. +rm -f conftest.$ac_objext
  14261. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14262. + (eval $ac_compile) 2>conftest.er1
  14263. + ac_status=$?
  14264. + grep -v '^ *+' conftest.er1 >conftest.err
  14265. + rm -f conftest.er1
  14266. + cat conftest.err >&5
  14267. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14268. + (exit $ac_status); } &&
  14269. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14270. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14271. + (eval $ac_try) 2>&5
  14272. + ac_status=$?
  14273. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14274. + (exit $ac_status); }; } &&
  14275. + { ac_try='test -s conftest.$ac_objext'
  14276. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14277. + (eval $ac_try) 2>&5
  14278. + ac_status=$?
  14279. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14280. + (exit $ac_status); }; }; then
  14281. + case $host_os in
  14282. + hpux9* | hpux10* | hpux11*)
  14283. + # On HP-UX, both CC and GCC only warn that PIC is supported... then
  14284. + # they create non-PIC objects. So, if there were any warnings, we
  14285. + # assume that PIC is not supported.
  14286. + if test -s conftest.err; then
  14287. + lt_cv_prog_cc_pic_works=no
  14288. + else
  14289. + lt_cv_prog_cc_pic_works=yes
  14290. + fi
  14291. + ;;
  14292. + *)
  14293. + lt_cv_prog_cc_pic_works=yes
  14294. + ;;
  14295. + esac
  14296. +
  14297. +else
  14298. + echo "$as_me: failed program was:" >&5
  14299. +sed 's/^/| /' conftest.$ac_ext >&5
  14300. +
  14301. + lt_cv_prog_cc_pic_works=no
  14302. +
  14303. +fi
  14304. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14305. + CFLAGS="$save_CFLAGS"
  14306. +
  14307. +fi
  14308. +
  14309. +
  14310. + if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  14311. + lt_cv_prog_cc_pic=
  14312. + lt_cv_prog_cc_can_build_shared=no
  14313. + else
  14314. + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  14315. + fi
  14316. +
  14317. + echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
  14318. +echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
  14319. +fi
  14320. +
  14321. +# Check for any special shared library compilation flags.
  14322. +if test -n "$lt_cv_prog_cc_shlib"; then
  14323. + { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
  14324. +echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
  14325. + if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
  14326. + else
  14327. + { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  14328. +echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  14329. + lt_cv_prog_cc_can_build_shared=no
  14330. + fi
  14331. +fi
  14332. +
  14333. +echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  14334. +echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
  14335. +if test "${lt_cv_prog_cc_static_works+set}" = set; then
  14336. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14337. +else
  14338. + lt_cv_prog_cc_static_works=no
  14339. + save_LDFLAGS="$LDFLAGS"
  14340. + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  14341. + cat >conftest.$ac_ext <<_ACEOF
  14342. +/* confdefs.h. */
  14343. +_ACEOF
  14344. +cat confdefs.h >>conftest.$ac_ext
  14345. +cat >>conftest.$ac_ext <<_ACEOF
  14346. +/* end confdefs.h. */
  14347. +
  14348. +int
  14349. +main ()
  14350. +{
  14351. +
  14352. + ;
  14353. + return 0;
  14354. +}
  14355. +_ACEOF
  14356. +rm -f conftest.$ac_objext conftest$ac_exeext
  14357. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14358. + (eval $ac_link) 2>conftest.er1
  14359. + ac_status=$?
  14360. + grep -v '^ *+' conftest.er1 >conftest.err
  14361. + rm -f conftest.er1
  14362. + cat conftest.err >&5
  14363. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14364. + (exit $ac_status); } &&
  14365. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14366. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14367. + (eval $ac_try) 2>&5
  14368. + ac_status=$?
  14369. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14370. + (exit $ac_status); }; } &&
  14371. + { ac_try='test -s conftest$ac_exeext'
  14372. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14373. + (eval $ac_try) 2>&5
  14374. + ac_status=$?
  14375. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14376. + (exit $ac_status); }; }; then
  14377. + lt_cv_prog_cc_static_works=yes
  14378. +else
  14379. + echo "$as_me: failed program was:" >&5
  14380. +sed 's/^/| /' conftest.$ac_ext >&5
  14381. +
  14382. +fi
  14383. +rm -f conftest.err conftest.$ac_objext \
  14384. + conftest$ac_exeext conftest.$ac_ext
  14385. + LDFLAGS="$save_LDFLAGS"
  14386. +
  14387. +fi
  14388. +
  14389. +
  14390. +# Belt *and* braces to stop my trousers falling down:
  14391. +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  14392. +echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
  14393. +echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
  14394. +
  14395. +pic_flag="$lt_cv_prog_cc_pic"
  14396. +special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  14397. +wl="$lt_cv_prog_cc_wl"
  14398. +link_static_flag="$lt_cv_prog_cc_static"
  14399. +no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  14400. +can_build_shared="$lt_cv_prog_cc_can_build_shared"
  14401. +
  14402. +
  14403. +# Check to see if options -o and -c are simultaneously supported by compiler
  14404. +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14405. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14406. +if test "${lt_cv_compiler_c_o+set}" = set; then
  14407. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14408. +else
  14409. +
  14410. +$rm -r conftest 2>/dev/null
  14411. +mkdir conftest
  14412. +cd conftest
  14413. +echo "int some_variable = 0;" > conftest.$ac_ext
  14414. +mkdir out
  14415. +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  14416. +# that will create temporary files in the current directory regardless of
  14417. +# the output directory. Thus, making CWD read-only will cause this test
  14418. +# to fail, enabling locking or at least warning the user not to do parallel
  14419. +# builds.
  14420. +chmod -w .
  14421. +save_CFLAGS="$CFLAGS"
  14422. +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  14423. +compiler_c_o=no
  14424. +if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  14425. + # The compiler can only warn and ignore the option if not recognized
  14426. + # So say no if there are warnings
  14427. + if test -s out/conftest.err; then
  14428. + lt_cv_compiler_c_o=no
  14429. + else
  14430. + lt_cv_compiler_c_o=yes
  14431. + fi
  14432. +else
  14433. + # Append any errors to the config.log.
  14434. + cat out/conftest.err 1>&5
  14435. + lt_cv_compiler_c_o=no
  14436. +fi
  14437. +CFLAGS="$save_CFLAGS"
  14438. +chmod u+w .
  14439. +$rm conftest* out/*
  14440. +rmdir out
  14441. +cd ..
  14442. +rmdir conftest
  14443. +$rm -r conftest 2>/dev/null
  14444. +
  14445. +fi
  14446. +
  14447. +compiler_c_o=$lt_cv_compiler_c_o
  14448. +echo "$as_me:$LINENO: result: $compiler_c_o" >&5
  14449. +echo "${ECHO_T}$compiler_c_o" >&6
  14450. +
  14451. +if test x"$compiler_c_o" = x"yes"; then
  14452. + # Check to see if we can write to a .lo
  14453. + echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
  14454. +echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
  14455. + if test "${lt_cv_compiler_o_lo+set}" = set; then
  14456. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14457. +else
  14458. +
  14459. + lt_cv_compiler_o_lo=no
  14460. + save_CFLAGS="$CFLAGS"
  14461. + CFLAGS="$CFLAGS -c -o conftest.lo"
  14462. + save_objext="$ac_objext"
  14463. + ac_objext=lo
  14464. + cat >conftest.$ac_ext <<_ACEOF
  14465. +/* confdefs.h. */
  14466. +_ACEOF
  14467. +cat confdefs.h >>conftest.$ac_ext
  14468. +cat >>conftest.$ac_ext <<_ACEOF
  14469. +/* end confdefs.h. */
  14470. +
  14471. +int
  14472. +main ()
  14473. +{
  14474. +int some_variable = 0;
  14475. + ;
  14476. + return 0;
  14477. +}
  14478. +_ACEOF
  14479. +rm -f conftest.$ac_objext
  14480. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14481. + (eval $ac_compile) 2>conftest.er1
  14482. + ac_status=$?
  14483. + grep -v '^ *+' conftest.er1 >conftest.err
  14484. + rm -f conftest.er1
  14485. + cat conftest.err >&5
  14486. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14487. + (exit $ac_status); } &&
  14488. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14489. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14490. + (eval $ac_try) 2>&5
  14491. + ac_status=$?
  14492. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14493. + (exit $ac_status); }; } &&
  14494. + { ac_try='test -s conftest.$ac_objext'
  14495. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14496. + (eval $ac_try) 2>&5
  14497. + ac_status=$?
  14498. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14499. + (exit $ac_status); }; }; then
  14500. + # The compiler can only warn and ignore the option if not recognized
  14501. + # So say no if there are warnings
  14502. + if test -s conftest.err; then
  14503. + lt_cv_compiler_o_lo=no
  14504. + else
  14505. + lt_cv_compiler_o_lo=yes
  14506. + fi
  14507. +
  14508. +else
  14509. + echo "$as_me: failed program was:" >&5
  14510. +sed 's/^/| /' conftest.$ac_ext >&5
  14511. +
  14512. +fi
  14513. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14514. + ac_objext="$save_objext"
  14515. + CFLAGS="$save_CFLAGS"
  14516. +
  14517. +fi
  14518. +
  14519. + compiler_o_lo=$lt_cv_compiler_o_lo
  14520. + echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
  14521. +echo "${ECHO_T}$compiler_o_lo" >&6
  14522. +else
  14523. + compiler_o_lo=no
  14524. +fi
  14525. +
  14526. +# Check to see if we can do hard links to lock some files if needed
  14527. +hard_links="nottested"
  14528. +if test "$compiler_c_o" = no && test "$need_locks" != no; then
  14529. + # do not overwrite the value of need_locks provided by the user
  14530. + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14531. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14532. + hard_links=yes
  14533. + $rm conftest*
  14534. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14535. + touch conftest.a
  14536. + ln conftest.a conftest.b 2>&5 || hard_links=no
  14537. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14538. + echo "$as_me:$LINENO: result: $hard_links" >&5
  14539. +echo "${ECHO_T}$hard_links" >&6
  14540. + if test "$hard_links" = no; then
  14541. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14542. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14543. + need_locks=warn
  14544. + fi
  14545. +else
  14546. + need_locks=no
  14547. +fi
  14548. +
  14549. +if test "$GCC" = yes; then
  14550. + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  14551. + echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14552. +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  14553. + echo "int some_variable = 0;" > conftest.$ac_ext
  14554. + save_CFLAGS="$CFLAGS"
  14555. + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  14556. + compiler_rtti_exceptions=no
  14557. + cat >conftest.$ac_ext <<_ACEOF
  14558. +/* confdefs.h. */
  14559. +_ACEOF
  14560. +cat confdefs.h >>conftest.$ac_ext
  14561. +cat >>conftest.$ac_ext <<_ACEOF
  14562. +/* end confdefs.h. */
  14563. +
  14564. +int
  14565. +main ()
  14566. +{
  14567. +int some_variable = 0;
  14568. + ;
  14569. + return 0;
  14570. +}
  14571. +_ACEOF
  14572. +rm -f conftest.$ac_objext
  14573. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14574. + (eval $ac_compile) 2>conftest.er1
  14575. + ac_status=$?
  14576. + grep -v '^ *+' conftest.er1 >conftest.err
  14577. + rm -f conftest.er1
  14578. + cat conftest.err >&5
  14579. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14580. + (exit $ac_status); } &&
  14581. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14582. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14583. + (eval $ac_try) 2>&5
  14584. + ac_status=$?
  14585. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14586. + (exit $ac_status); }; } &&
  14587. + { ac_try='test -s conftest.$ac_objext'
  14588. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14589. + (eval $ac_try) 2>&5
  14590. + ac_status=$?
  14591. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14592. + (exit $ac_status); }; }; then
  14593. + # The compiler can only warn and ignore the option if not recognized
  14594. + # So say no if there are warnings
  14595. + if test -s conftest.err; then
  14596. + compiler_rtti_exceptions=no
  14597. + else
  14598. + compiler_rtti_exceptions=yes
  14599. + fi
  14600. +
  14601. +else
  14602. + echo "$as_me: failed program was:" >&5
  14603. +sed 's/^/| /' conftest.$ac_ext >&5
  14604. +
  14605. +fi
  14606. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14607. + CFLAGS="$save_CFLAGS"
  14608. + echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
  14609. +echo "${ECHO_T}$compiler_rtti_exceptions" >&6
  14610. +
  14611. + if test "$compiler_rtti_exceptions" = "yes"; then
  14612. + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  14613. + else
  14614. + no_builtin_flag=' -fno-builtin'
  14615. + fi
  14616. +fi
  14617. +
  14618. +# See if the linker supports building shared libraries.
  14619. +echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
  14620. +echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
  14621. +
  14622. +allow_undefined_flag=
  14623. +no_undefined_flag=
  14624. +need_lib_prefix=unknown
  14625. +need_version=unknown
  14626. +# when you set need_version to no, make sure it does not cause -set_version
  14627. +# flags to be left without arguments
  14628. +archive_cmds=
  14629. +archive_expsym_cmds=
  14630. +old_archive_from_new_cmds=
  14631. +old_archive_from_expsyms_cmds=
  14632. +export_dynamic_flag_spec=
  14633. +whole_archive_flag_spec=
  14634. +thread_safe_flag_spec=
  14635. +hardcode_into_libs=no
  14636. +hardcode_libdir_flag_spec=
  14637. +hardcode_libdir_separator=
  14638. +hardcode_direct=no
  14639. +hardcode_minus_L=no
  14640. +hardcode_shlibpath_var=unsupported
  14641. +runpath_var=
  14642. +link_all_deplibs=unknown
  14643. +always_export_symbols=no
  14644. +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14645. +# include_expsyms should be a list of space-separated symbols to be *always*
  14646. +# included in the symbol list
  14647. +include_expsyms=
  14648. +# exclude_expsyms can be an egrep regular expression of symbols to exclude
  14649. +# it will be wrapped by ` (' and `)$', so one must not match beginning or
  14650. +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14651. +# as well as any symbol that contains `d'.
  14652. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  14653. +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14654. +# platforms (ab)use it in PIC code, but their linkers get confused if
  14655. +# the symbol is explicitly referenced. Since portable code cannot
  14656. +# rely on this symbol name, it's probably fine to never include it in
  14657. +# preloaded symbol tables.
  14658. +extract_expsyms_cmds=
  14659. +
  14660. +case $host_os in
  14661. +cygwin* | mingw* | pw32*)
  14662. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14663. + # When not using gcc, we currently assume that we are using
  14664. + # Microsoft Visual C++.
  14665. + if test "$GCC" != yes; then
  14666. + with_gnu_ld=no
  14667. + fi
  14668. + ;;
  14669. +openbsd*)
  14670. + with_gnu_ld=no
  14671. + ;;
  14672. +esac
  14673. +
  14674. +ld_shlibs=yes
  14675. +if test "$with_gnu_ld" = yes; then
  14676. + # If archive_cmds runs LD, not CC, wlarc should be empty
  14677. + wlarc='${wl}'
  14678. +
  14679. + # See if GNU ld supports shared libraries.
  14680. + case $host_os in
  14681. + aix3* | aix4* | aix5*)
  14682. + # On AIX, the GNU linker is very broken
  14683. + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  14684. + ld_shlibs=no
  14685. + cat <<EOF 1>&2
  14686. +
  14687. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14688. +*** to be unable to reliably create shared libraries on AIX.
  14689. +*** Therefore, libtool is disabling shared libraries support. If you
  14690. +*** really care for shared libraries, you may want to modify your PATH
  14691. +*** so that a non-GNU linker is found, and then restart.
  14692. +
  14693. +EOF
  14694. + ;;
  14695. +
  14696. + amigaos*)
  14697. + 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)'
  14698. + hardcode_libdir_flag_spec='-L$libdir'
  14699. + hardcode_minus_L=yes
  14700. +
  14701. + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  14702. + # that the semantics of dynamic libraries on AmigaOS, at least up
  14703. + # to version 4, is to share data among multiple programs linked
  14704. + # with the same dynamic library. Since this doesn't match the
  14705. + # behavior of shared libraries on other platforms, we can use
  14706. + # them.
  14707. + ld_shlibs=no
  14708. + ;;
  14709. +
  14710. + beos*)
  14711. + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  14712. + allow_undefined_flag=unsupported
  14713. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  14714. + # support --undefined. This deserves some investigation. FIXME
  14715. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14716. + else
  14717. + ld_shlibs=no
  14718. + fi
  14719. + ;;
  14720. +
  14721. + cygwin* | mingw* | pw32*)
  14722. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  14723. + # no search path for DLLs.
  14724. + hardcode_libdir_flag_spec='-L$libdir'
  14725. + allow_undefined_flag=unsupported
  14726. + always_export_symbols=yes
  14727. +
  14728. + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  14729. + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  14730. + test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  14731. + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  14732. + else $CC -o impgen impgen.c ; fi)~
  14733. + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  14734. +
  14735. + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  14736. +
  14737. + # cygwin and mingw dlls have different entry points and sets of symbols
  14738. + # to exclude.
  14739. + # FIXME: what about values for MSVC?
  14740. + dll_entry=__cygwin_dll_entry@12
  14741. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  14742. + case $host_os in
  14743. + mingw*)
  14744. + # mingw values
  14745. + dll_entry=_DllMainCRTStartup@12
  14746. + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  14747. + ;;
  14748. + esac
  14749. +
  14750. + # mingw and cygwin differ, and it's simplest to just exclude the union
  14751. + # of the two symbol sets.
  14752. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  14753. +
  14754. + # recent cygwin and mingw systems supply a stub DllMain which the user
  14755. + # can override, but on older systems we have to supply one (in ltdll.c)
  14756. + if test "x$lt_cv_need_dllmain" = "xyes"; then
  14757. + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  14758. + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  14759. + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  14760. + else
  14761. + ltdll_obj=
  14762. + ltdll_cmds=
  14763. + fi
  14764. +
  14765. + # Extract the symbol export list from an `--export-all' def file,
  14766. + # then regenerate the def file from the symbol export list, so that
  14767. + # the compiled dll only exports the symbol export list.
  14768. + # Be careful not to strip the DATA tag left be newer dlltools.
  14769. + export_symbols_cmds="$ltdll_cmds"'
  14770. + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  14771. + sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  14772. +
  14773. + # If the export-symbols file already is a .def file (1st line
  14774. + # is EXPORTS), use it as is.
  14775. + # If DATA tags from a recent dlltool are present, honour them!
  14776. + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  14777. + cp $export_symbols $output_objdir/$soname-def;
  14778. + else
  14779. + echo EXPORTS > $output_objdir/$soname-def;
  14780. + _lt_hint=1;
  14781. + cat $export_symbols | while read symbol; do
  14782. + set dummy \$symbol;
  14783. + case \$# in
  14784. + 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  14785. + 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
  14786. + *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  14787. + esac;
  14788. + _lt_hint=`expr 1 + \$_lt_hint`;
  14789. + done;
  14790. + fi~
  14791. + '"$ltdll_cmds"'
  14792. + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  14793. + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  14794. + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  14795. + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  14796. + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  14797. + ;;
  14798. +
  14799. + netbsd*)
  14800. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14801. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14802. + wlarc=
  14803. + else
  14804. + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14805. + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14806. + fi
  14807. + ;;
  14808. +
  14809. + solaris* | sysv5*)
  14810. + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  14811. + ld_shlibs=no
  14812. + cat <<EOF 1>&2
  14813. +
  14814. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14815. +*** create shared libraries on Solaris systems. Therefore, libtool
  14816. +*** is disabling shared libraries support. We urge you to upgrade GNU
  14817. +*** binutils to release 2.9.1 or newer. Another option is to modify
  14818. +*** your PATH or compiler configuration so that the native linker is
  14819. +*** used, and then restart.
  14820. +
  14821. +EOF
  14822. + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  14823. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14824. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14825. + else
  14826. + ld_shlibs=no
  14827. + fi
  14828. + ;;
  14829. +
  14830. + sunos4*)
  14831. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14832. + wlarc=
  14833. + hardcode_direct=yes
  14834. + hardcode_shlibpath_var=no
  14835. + ;;
  14836. +
  14837. + *)
  14838. + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  14839. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14840. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14841. + else
  14842. + ld_shlibs=no
  14843. + fi
  14844. + ;;
  14845. + esac
  14846. +
  14847. + if test "$ld_shlibs" = yes; then
  14848. + runpath_var=LD_RUN_PATH
  14849. + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  14850. + export_dynamic_flag_spec='${wl}--export-dynamic'
  14851. + case $host_os in
  14852. + cygwin* | mingw* | pw32*)
  14853. + # dlltool doesn't understand --whole-archive et. al.
  14854. + whole_archive_flag_spec=
  14855. + ;;
  14856. + *)
  14857. + # ancient GNU ld didn't support --whole-archive et. al.
  14858. + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  14859. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14860. + else
  14861. + whole_archive_flag_spec=
  14862. + fi
  14863. + ;;
  14864. + esac
  14865. + fi
  14866. +else
  14867. + # PORTME fill in a description of your system's linker (not GNU ld)
  14868. + case $host_os in
  14869. + aix3*)
  14870. + allow_undefined_flag=unsupported
  14871. + always_export_symbols=yes
  14872. + 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'
  14873. + # Note: this linker hardcodes the directories in LIBPATH if there
  14874. + # are no directories specified by -L.
  14875. + hardcode_minus_L=yes
  14876. + if test "$GCC" = yes && test -z "$link_static_flag"; then
  14877. + # Neither direct hardcoding nor static linking is supported with a
  14878. + # broken collect2.
  14879. + hardcode_direct=unsupported
  14880. + fi
  14881. + ;;
  14882. +
  14883. + aix4* | aix5*)
  14884. + if test "$host_cpu" = ia64; then
  14885. + # On IA64, the linker does run time linking by default, so we don't
  14886. + # have to do anything special.
  14887. + aix_use_runtimelinking=no
  14888. + exp_sym_flag='-Bexport'
  14889. + no_entry_flag=""
  14890. + else
  14891. + aix_use_runtimelinking=no
  14892. +
  14893. + # Test if we are trying to use run time linking or normal
  14894. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14895. + # need to do runtime linking.
  14896. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14897. + for ld_flag in $LDFLAGS; do
  14898. + case $ld_flag in
  14899. + *-brtl*)
  14900. + aix_use_runtimelinking=yes
  14901. + break
  14902. + ;;
  14903. + esac
  14904. + done
  14905. + esac
  14906. +
  14907. + exp_sym_flag='-bexport'
  14908. + no_entry_flag='-bnoentry'
  14909. + fi
  14910. +
  14911. + # When large executables or shared objects are built, AIX ld can
  14912. + # have problems creating the table of contents. If linking a library
  14913. + # or program results in "error TOC overflow" add -mminimal-toc to
  14914. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14915. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14916. +
  14917. + hardcode_direct=yes
  14918. + archive_cmds=''
  14919. + hardcode_libdir_separator=':'
  14920. + if test "$GCC" = yes; then
  14921. + case $host_os in aix4.[012]|aix4.[012].*)
  14922. + collect2name=`${CC} -print-prog-name=collect2`
  14923. + if test -f "$collect2name" && \
  14924. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  14925. + then
  14926. + # We have reworked collect2
  14927. + hardcode_direct=yes
  14928. + else
  14929. + # We have old collect2
  14930. + hardcode_direct=unsupported
  14931. + # It fails to find uninstalled libraries when the uninstalled
  14932. + # path is not listed in the libpath. Setting hardcode_minus_L
  14933. + # to unsupported forces relinking
  14934. + hardcode_minus_L=yes
  14935. + hardcode_libdir_flag_spec='-L$libdir'
  14936. + hardcode_libdir_separator=
  14937. + fi
  14938. + esac
  14939. +
  14940. + shared_flag='-shared'
  14941. + else
  14942. + # not using gcc
  14943. + if test "$host_cpu" = ia64; then
  14944. + shared_flag='${wl}-G'
  14945. + else
  14946. + if test "$aix_use_runtimelinking" = yes; then
  14947. + shared_flag='${wl}-G'
  14948. + else
  14949. + shared_flag='${wl}-bM:SRE'
  14950. + fi
  14951. + fi
  14952. + fi
  14953. +
  14954. + # It seems that -bexpall can do strange things, so it is better to
  14955. + # generate a list of symbols to export.
  14956. + always_export_symbols=yes
  14957. + if test "$aix_use_runtimelinking" = yes; then
  14958. + # Warning - without using the other runtime loading flags (-brtl),
  14959. + # -berok will link without error, but may produce a broken library.
  14960. + allow_undefined_flag='-berok'
  14961. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  14962. + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  14963. + else
  14964. + if test "$host_cpu" = ia64; then
  14965. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  14966. + allow_undefined_flag="-z nodefs"
  14967. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  14968. + else
  14969. + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  14970. + # Warning - without using the other run time loading flags,
  14971. + # -berok will link without error, but may produce a broken library.
  14972. + allow_undefined_flag='${wl}-berok'
  14973. + # This is a bit strange, but is similar to how AIX traditionally builds
  14974. + # it's shared libraries.
  14975. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
  14976. + fi
  14977. + fi
  14978. + ;;
  14979. +
  14980. + amigaos*)
  14981. + 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)'
  14982. + hardcode_libdir_flag_spec='-L$libdir'
  14983. + hardcode_minus_L=yes
  14984. + # see comment about different semantics on the GNU ld section
  14985. + ld_shlibs=no
  14986. + ;;
  14987. +
  14988. + cygwin* | mingw* | pw32*)
  14989. + # When not using gcc, we currently assume that we are using
  14990. + # Microsoft Visual C++.
  14991. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  14992. + # no search path for DLLs.
  14993. + hardcode_libdir_flag_spec=' '
  14994. + allow_undefined_flag=unsupported
  14995. + # Tell ltmain to make .lib files, not .a files.
  14996. + libext=lib
  14997. + # FIXME: Setting linknames here is a bad hack.
  14998. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14999. + # The linker will automatically build a .lib file if we build a DLL.
  15000. + old_archive_from_new_cmds='true'
  15001. + # FIXME: Should let the user specify the lib program.
  15002. + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15003. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  15004. + ;;
  15005. +
  15006. + darwin* | rhapsody*)
  15007. + case "$host_os" in
  15008. + rhapsody* | darwin1.[012])
  15009. + allow_undefined_flag='-undefined suppress'
  15010. + ;;
  15011. + *) # Darwin 1.3 on
  15012. + allow_undefined_flag='-flat_namespace -undefined suppress'
  15013. + ;;
  15014. + esac
  15015. + # FIXME: Relying on posixy $() will cause problems for
  15016. + # cross-compilation, but unfortunately the echo tests do not
  15017. + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  15018. + # `"' quotes if we put them in here... so don't!
  15019. + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
  15020. + # We need to add '_' to the symbols in $export_symbols first
  15021. + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  15022. + hardcode_direct=yes
  15023. + hardcode_shlibpath_var=no
  15024. + whole_archive_flag_spec='-all_load $convenience'
  15025. + ;;
  15026. +
  15027. + freebsd1*)
  15028. + ld_shlibs=no
  15029. + ;;
  15030. +
  15031. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15032. + # support. Future versions do this automatically, but an explicit c++rt0.o
  15033. + # does not break anything, and helps significantly (at the cost of a little
  15034. + # extra space).
  15035. + freebsd2.2*)
  15036. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15037. + hardcode_libdir_flag_spec='-R$libdir'
  15038. + hardcode_direct=yes
  15039. + hardcode_shlibpath_var=no
  15040. + ;;
  15041. +
  15042. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15043. + freebsd2*)
  15044. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15045. + hardcode_direct=yes
  15046. + hardcode_minus_L=yes
  15047. + hardcode_shlibpath_var=no
  15048. + ;;
  15049. +
  15050. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15051. + freebsd*)
  15052. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15053. + hardcode_libdir_flag_spec='-R$libdir'
  15054. + hardcode_direct=yes
  15055. + hardcode_shlibpath_var=no
  15056. + ;;
  15057. +
  15058. + hpux9* | hpux10* | hpux11*)
  15059. + case $host_os in
  15060. + hpux9*) 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' ;;
  15061. + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  15062. + esac
  15063. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  15064. + hardcode_libdir_separator=:
  15065. + hardcode_direct=yes
  15066. + hardcode_minus_L=yes # Not in the search PATH, but as the default
  15067. + # location of the library.
  15068. + export_dynamic_flag_spec='${wl}-E'
  15069. + ;;
  15070. +
  15071. + irix5* | irix6* | nonstopux*)
  15072. + if test "$GCC" = yes; then
  15073. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15074. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15075. + else
  15076. + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15077. + hardcode_libdir_flag_spec='-rpath $libdir'
  15078. + fi
  15079. + hardcode_libdir_separator=:
  15080. + link_all_deplibs=yes
  15081. + ;;
  15082. +
  15083. + netbsd*)
  15084. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15085. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15086. + else
  15087. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15088. + fi
  15089. + hardcode_libdir_flag_spec='-R$libdir'
  15090. + hardcode_direct=yes
  15091. + hardcode_shlibpath_var=no
  15092. + ;;
  15093. +
  15094. + newsos6)
  15095. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15096. + hardcode_direct=yes
  15097. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15098. + hardcode_libdir_separator=:
  15099. + hardcode_shlibpath_var=no
  15100. + ;;
  15101. +
  15102. + openbsd*)
  15103. + hardcode_direct=yes
  15104. + hardcode_shlibpath_var=no
  15105. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15106. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15107. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  15108. + export_dynamic_flag_spec='${wl}-E'
  15109. + else
  15110. + case "$host_os" in
  15111. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15112. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15113. + hardcode_libdir_flag_spec='-R$libdir'
  15114. + ;;
  15115. + *)
  15116. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15117. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  15118. + ;;
  15119. + esac
  15120. + fi
  15121. + ;;
  15122. +
  15123. + os2*)
  15124. + hardcode_libdir_flag_spec='-L$libdir'
  15125. + hardcode_minus_L=yes
  15126. + allow_undefined_flag=unsupported
  15127. + 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'
  15128. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15129. + ;;
  15130. +
  15131. + osf3*)
  15132. + if test "$GCC" = yes; then
  15133. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  15134. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15135. + else
  15136. + allow_undefined_flag=' -expect_unresolved \*'
  15137. + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15138. + fi
  15139. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15140. + hardcode_libdir_separator=:
  15141. + ;;
  15142. +
  15143. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  15144. + if test "$GCC" = yes; then
  15145. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  15146. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15147. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15148. + else
  15149. + allow_undefined_flag=' -expect_unresolved \*'
  15150. + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15151. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  15152. + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  15153. +
  15154. + #Both c and cxx compiler support -rpath directly
  15155. + hardcode_libdir_flag_spec='-rpath $libdir'
  15156. + fi
  15157. + hardcode_libdir_separator=:
  15158. + ;;
  15159. +
  15160. + sco3.2v5*)
  15161. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15162. + hardcode_shlibpath_var=no
  15163. + runpath_var=LD_RUN_PATH
  15164. + hardcode_runpath_var=yes
  15165. + export_dynamic_flag_spec='${wl}-Bexport'
  15166. + ;;
  15167. +
  15168. + solaris*)
  15169. + # gcc --version < 3.0 without binutils cannot create self contained
  15170. + # shared libraries reliably, requiring libgcc.a to resolve some of
  15171. + # the object symbols generated in some cases. Libraries that use
  15172. + # assert need libgcc.a to resolve __eprintf, for example. Linking
  15173. + # a copy of libgcc.a into every shared library to guarantee resolving
  15174. + # such symbols causes other problems: According to Tim Van Holder
  15175. + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  15176. + # (to the application) exception stack for one thing.
  15177. + no_undefined_flag=' -z defs'
  15178. + if test "$GCC" = yes; then
  15179. + case `$CC --version 2>/dev/null` in
  15180. + [12].*)
  15181. + cat <<EOF 1>&2
  15182. +
  15183. +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  15184. +*** create self contained shared libraries on Solaris systems, without
  15185. +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  15186. +*** -no-undefined support, which will at least allow you to build shared
  15187. +*** libraries. However, you may find that when you link such libraries
  15188. +*** into an application without using GCC, you have to manually add
  15189. +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  15190. +*** upgrade to a newer version of GCC. Another option is to rebuild your
  15191. +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  15192. +
  15193. +EOF
  15194. + no_undefined_flag=
  15195. + ;;
  15196. + esac
  15197. + fi
  15198. + # $CC -shared without GNU ld will not create a library from C++
  15199. + # object files and a static libstdc++, better avoid it by now
  15200. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15201. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15202. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15203. + hardcode_libdir_flag_spec='-R$libdir'
  15204. + hardcode_shlibpath_var=no
  15205. + case $host_os in
  15206. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  15207. + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  15208. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  15209. + esac
  15210. + link_all_deplibs=yes
  15211. + ;;
  15212. +
  15213. + sunos4*)
  15214. + if test "x$host_vendor" = xsequent; then
  15215. + # Use $CC to link under sequent, because it throws in some extra .o
  15216. + # files that make .init and .fini sections work.
  15217. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15218. + else
  15219. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15220. + fi
  15221. + hardcode_libdir_flag_spec='-L$libdir'
  15222. + hardcode_direct=yes
  15223. + hardcode_minus_L=yes
  15224. + hardcode_shlibpath_var=no
  15225. + ;;
  15226. +
  15227. + sysv4)
  15228. + case $host_vendor in
  15229. + sni)
  15230. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15231. + hardcode_direct=yes # is this really true???
  15232. + ;;
  15233. + siemens)
  15234. + ## LD is ld it makes a PLAMLIB
  15235. + ## CC just makes a GrossModule.
  15236. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15237. + reload_cmds='$CC -r -o $output$reload_objs'
  15238. + hardcode_direct=no
  15239. + ;;
  15240. + motorola)
  15241. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15242. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  15243. + ;;
  15244. + esac
  15245. + runpath_var='LD_RUN_PATH'
  15246. + hardcode_shlibpath_var=no
  15247. + ;;
  15248. +
  15249. + sysv4.3*)
  15250. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15251. + hardcode_shlibpath_var=no
  15252. + export_dynamic_flag_spec='-Bexport'
  15253. + ;;
  15254. +
  15255. + sysv5*)
  15256. + no_undefined_flag=' -z text'
  15257. + # $CC -shared without GNU ld will not create a library from C++
  15258. + # object files and a static libstdc++, better avoid it by now
  15259. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15260. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15261. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15262. + hardcode_libdir_flag_spec=
  15263. + hardcode_shlibpath_var=no
  15264. + runpath_var='LD_RUN_PATH'
  15265. + ;;
  15266. +
  15267. + uts4*)
  15268. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15269. + hardcode_libdir_flag_spec='-L$libdir'
  15270. + hardcode_shlibpath_var=no
  15271. + ;;
  15272. +
  15273. + dgux*)
  15274. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15275. + hardcode_libdir_flag_spec='-L$libdir'
  15276. + hardcode_shlibpath_var=no
  15277. + ;;
  15278. +
  15279. + sysv4*MP*)
  15280. + if test -d /usr/nec; then
  15281. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15282. + hardcode_shlibpath_var=no
  15283. + runpath_var=LD_RUN_PATH
  15284. + hardcode_runpath_var=yes
  15285. + ld_shlibs=yes
  15286. + fi
  15287. + ;;
  15288. +
  15289. + sysv4.2uw2*)
  15290. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15291. + hardcode_direct=yes
  15292. + hardcode_minus_L=no
  15293. + hardcode_shlibpath_var=no
  15294. + hardcode_runpath_var=yes
  15295. + runpath_var=LD_RUN_PATH
  15296. + ;;
  15297. +
  15298. + sysv5uw7* | unixware7*)
  15299. + no_undefined_flag='${wl}-z ${wl}text'
  15300. + if test "$GCC" = yes; then
  15301. + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15302. + else
  15303. + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15304. + fi
  15305. + runpath_var='LD_RUN_PATH'
  15306. + hardcode_shlibpath_var=no
  15307. + ;;
  15308. +
  15309. + *)
  15310. + ld_shlibs=no
  15311. + ;;
  15312. + esac
  15313. +fi
  15314. +echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  15315. +echo "${ECHO_T}$ld_shlibs" >&6
  15316. +test "$ld_shlibs" = no && can_build_shared=no
  15317. +
  15318. +# Check hardcoding attributes.
  15319. +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15320. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  15321. +hardcode_action=
  15322. +if test -n "$hardcode_libdir_flag_spec" || \
  15323. + test -n "$runpath_var"; then
  15324. +
  15325. + # We can hardcode non-existant directories.
  15326. + if test "$hardcode_direct" != no &&
  15327. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15328. + # have to relink, otherwise we might link with an installed library
  15329. + # when we should be linking with a yet-to-be-installed one
  15330. + ## test "$hardcode_shlibpath_var" != no &&
  15331. + test "$hardcode_minus_L" != no; then
  15332. + # Linking always hardcodes the temporary library directory.
  15333. + hardcode_action=relink
  15334. + else
  15335. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15336. + hardcode_action=immediate
  15337. + fi
  15338. +else
  15339. + # We cannot hardcode anything, or else we can only hardcode existing
  15340. + # directories.
  15341. + hardcode_action=unsupported
  15342. +fi
  15343. +echo "$as_me:$LINENO: result: $hardcode_action" >&5
  15344. +echo "${ECHO_T}$hardcode_action" >&6
  15345. +
  15346. +striplib=
  15347. +old_striplib=
  15348. +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  15349. +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  15350. +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  15351. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  15352. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  15353. + echo "$as_me:$LINENO: result: yes" >&5
  15354. +echo "${ECHO_T}yes" >&6
  15355. +else
  15356. + echo "$as_me:$LINENO: result: no" >&5
  15357. +echo "${ECHO_T}no" >&6
  15358. +fi
  15359. +
  15360. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  15361. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  15362. +
  15363. +# PORTME Fill in your ld.so characteristics
  15364. +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15365. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15366. +library_names_spec=
  15367. +libname_spec='lib$name'
  15368. +soname_spec=
  15369. +postinstall_cmds=
  15370. +postuninstall_cmds=
  15371. +finish_cmds=
  15372. +finish_eval=
  15373. +shlibpath_var=
  15374. +shlibpath_overrides_runpath=unknown
  15375. +version_type=none
  15376. +dynamic_linker="$host_os ld.so"
  15377. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15378. +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15379. +
  15380. +case $host_os in
  15381. +aix3*)
  15382. + version_type=linux
  15383. + library_names_spec='${libname}${release}.so$versuffix $libname.a'
  15384. + shlibpath_var=LIBPATH
  15385. +
  15386. + # AIX has no versioning support, so we append a major version to the name.
  15387. + soname_spec='${libname}${release}.so$major'
  15388. + ;;
  15389. +
  15390. +aix4* | aix5*)
  15391. + version_type=linux
  15392. + need_lib_prefix=no
  15393. + need_version=no
  15394. + hardcode_into_libs=yes
  15395. + if test "$host_cpu" = ia64; then
  15396. + # AIX 5 supports IA64
  15397. + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  15398. + shlibpath_var=LD_LIBRARY_PATH
  15399. + else
  15400. + # With GCC up to 2.95.x, collect2 would create an import file
  15401. + # for dependence libraries. The import file would start with
  15402. + # the line `#! .'. This would cause the generated library to
  15403. + # depend on `.', always an invalid library. This was fixed in
  15404. + # development snapshots of GCC prior to 3.0.
  15405. + case $host_os in
  15406. + aix4 | aix4.[01] | aix4.[01].*)
  15407. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15408. + echo ' yes '
  15409. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15410. + :
  15411. + else
  15412. + can_build_shared=no
  15413. + fi
  15414. + ;;
  15415. + esac
  15416. + # AIX (on Power*) has no versioning support, so currently we can
  15417. + # not hardcode correct soname into executable. Probably we can
  15418. + # add versioning support to collect2, so additional links can
  15419. + # be useful in future.
  15420. + if test "$aix_use_runtimelinking" = yes; then
  15421. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15422. + # instead of lib<name>.a to let people know that these are not
  15423. + # typical AIX shared libraries.
  15424. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15425. + else
  15426. + # We preserve .a as extension for shared libraries through AIX4.2
  15427. + # and later when we are not doing run time linking.
  15428. + library_names_spec='${libname}${release}.a $libname.a'
  15429. + soname_spec='${libname}${release}.so$major'
  15430. + fi
  15431. + shlibpath_var=LIBPATH
  15432. + fi
  15433. + hardcode_into_libs=yes
  15434. + ;;
  15435. +
  15436. +amigaos*)
  15437. + library_names_spec='$libname.ixlibrary $libname.a'
  15438. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15439. + 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'
  15440. + ;;
  15441. +
  15442. +beos*)
  15443. + library_names_spec='${libname}.so'
  15444. + dynamic_linker="$host_os ld.so"
  15445. + shlibpath_var=LIBRARY_PATH
  15446. + ;;
  15447. +
  15448. +bsdi4*)
  15449. + version_type=linux
  15450. + need_version=no
  15451. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15452. + soname_spec='${libname}${release}.so$major'
  15453. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15454. + shlibpath_var=LD_LIBRARY_PATH
  15455. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15456. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15457. + export_dynamic_flag_spec=-rdynamic
  15458. + # the default ld.so.conf also contains /usr/contrib/lib and
  15459. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15460. + # libtool to hard-code these into programs
  15461. + ;;
  15462. +
  15463. +cygwin* | mingw* | pw32*)
  15464. + version_type=windows
  15465. + need_version=no
  15466. + need_lib_prefix=no
  15467. + case $GCC,$host_os in
  15468. + yes,cygwin*)
  15469. + library_names_spec='$libname.dll.a'
  15470. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  15471. + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  15472. + dldir=$destdir/`dirname \$dlpath`~
  15473. + test -d \$dldir || mkdir -p \$dldir~
  15474. + $install_prog .libs/$dlname \$dldir/$dlname'
  15475. + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15476. + dlpath=$dir/\$dldll~
  15477. + $rm \$dlpath'
  15478. + ;;
  15479. + yes,mingw*)
  15480. + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  15481. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
  15482. + ;;
  15483. + yes,pw32*)
  15484. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  15485. + ;;
  15486. + *)
  15487. + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  15488. + ;;
  15489. + esac
  15490. + dynamic_linker='Win32 ld.exe'
  15491. + # FIXME: first we should search . and the directory the executable is in
  15492. + shlibpath_var=PATH
  15493. + ;;
  15494. +
  15495. +darwin* | rhapsody*)
  15496. + dynamic_linker="$host_os dyld"
  15497. + version_type=darwin
  15498. + need_lib_prefix=no
  15499. + need_version=no
  15500. + # FIXME: Relying on posixy $() will cause problems for
  15501. + # cross-compilation, but unfortunately the echo tests do not
  15502. + # yet detect zsh echo's removal of \ escapes.
  15503. + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  15504. + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  15505. + shlibpath_overrides_runpath=yes
  15506. + shlibpath_var=DYLD_LIBRARY_PATH
  15507. + ;;
  15508. +
  15509. +freebsd1*)
  15510. + dynamic_linker=no
  15511. + ;;
  15512. +
  15513. +freebsd*-gnu*)
  15514. + version_type=linux
  15515. + need_lib_prefix=no
  15516. + need_version=no
  15517. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15518. + soname_spec='${libname}${release}.so$major'
  15519. + shlibpath_var=LD_LIBRARY_PATH
  15520. + shlibpath_overrides_runpath=no
  15521. + hardcode_into_libs=yes
  15522. + dynamic_linker='GNU/FreeBSD ld.so'
  15523. + ;;
  15524. +
  15525. +freebsd*)
  15526. + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  15527. + version_type=freebsd-$objformat
  15528. + case $version_type in
  15529. + freebsd-elf*)
  15530. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  15531. + need_version=no
  15532. + need_lib_prefix=no
  15533. + ;;
  15534. + freebsd-*)
  15535. + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  15536. + need_version=yes
  15537. + ;;
  15538. + esac
  15539. + shlibpath_var=LD_LIBRARY_PATH
  15540. + case $host_os in
  15541. + freebsd2*)
  15542. + shlibpath_overrides_runpath=yes
  15543. + ;;
  15544. + *)
  15545. + shlibpath_overrides_runpath=no
  15546. + hardcode_into_libs=yes
  15547. + ;;
  15548. + esac
  15549. + ;;
  15550. +
  15551. +gnu*)
  15552. + version_type=linux
  15553. + need_lib_prefix=no
  15554. + need_version=no
  15555. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  15556. + soname_spec='${libname}${release}.so$major'
  15557. + shlibpath_var=LD_LIBRARY_PATH
  15558. + hardcode_into_libs=yes
  15559. + ;;
  15560. +
  15561. +hpux9* | hpux10* | hpux11*)
  15562. + # Give a soname corresponding to the major version so that dld.sl refuses to
  15563. + # link against other versions.
  15564. + dynamic_linker="$host_os dld.sl"
  15565. + version_type=sunos
  15566. + need_lib_prefix=no
  15567. + need_version=no
  15568. + shlibpath_var=SHLIB_PATH
  15569. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15570. + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  15571. + soname_spec='${libname}${release}.sl$major'
  15572. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15573. + postinstall_cmds='chmod 555 $lib'
  15574. + ;;
  15575. +
  15576. +irix5* | irix6* | nonstopux*)
  15577. + case $host_os in
  15578. + nonstopux*) version_type=nonstopux ;;
  15579. + *) version_type=irix ;;
  15580. + esac
  15581. + need_lib_prefix=no
  15582. + need_version=no
  15583. + soname_spec='${libname}${release}.so$major'
  15584. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  15585. + case $host_os in
  15586. + irix5* | nonstopux*)
  15587. + libsuff= shlibsuff=
  15588. + ;;
  15589. + *)
  15590. + case $LD in # libtool.m4 will add one of these switches to LD
  15591. + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  15592. + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  15593. + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15594. + *) libsuff= shlibsuff= libmagic=never-match;;
  15595. + esac
  15596. + ;;
  15597. + esac
  15598. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15599. + shlibpath_overrides_runpath=no
  15600. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15601. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15602. + ;;
  15603. +
  15604. +# No shared lib support for Linux oldld, aout, or coff.
  15605. +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  15606. + dynamic_linker=no
  15607. + ;;
  15608. +
  15609. +# This must be Linux ELF.
  15610. +linux-gnu*)
  15611. + version_type=linux
  15612. + need_lib_prefix=no
  15613. + need_version=no
  15614. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15615. + soname_spec='${libname}${release}.so$major'
  15616. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15617. + shlibpath_var=LD_LIBRARY_PATH
  15618. + shlibpath_overrides_runpath=no
  15619. + # This implies no fast_install, which is unacceptable.
  15620. + # Some rework will be needed to allow for fast_install
  15621. + # before this can be enabled.
  15622. + hardcode_into_libs=yes
  15623. +
  15624. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  15625. + # powerpc, because MkLinux only supported shared libraries with the
  15626. + # GNU dynamic linker. Since this was broken with cross compilers,
  15627. + # most powerpc-linux boxes support dynamic linking these days and
  15628. + # people can always --disable-shared, the test was removed, and we
  15629. + # assume the GNU/Linux dynamic linker is in use.
  15630. + dynamic_linker='GNU/Linux ld.so'
  15631. + ;;
  15632. +
  15633. +netbsd*)
  15634. + version_type=sunos
  15635. + need_lib_prefix=no
  15636. + need_version=no
  15637. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15638. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  15639. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15640. + dynamic_linker='NetBSD (a.out) ld.so'
  15641. + else
  15642. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  15643. + soname_spec='${libname}${release}.so$major'
  15644. + dynamic_linker='NetBSD ld.elf_so'
  15645. + fi
  15646. + shlibpath_var=LD_LIBRARY_PATH
  15647. + shlibpath_overrides_runpath=yes
  15648. + hardcode_into_libs=yes
  15649. + ;;
  15650. +
  15651. +newsos6)
  15652. + version_type=linux
  15653. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15654. + shlibpath_var=LD_LIBRARY_PATH
  15655. + shlibpath_overrides_runpath=yes
  15656. + ;;
  15657. +
  15658. +openbsd*)
  15659. + version_type=sunos
  15660. + need_lib_prefix=no
  15661. + need_version=no
  15662. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15663. + case "$host_os" in
  15664. + openbsd2.[89] | openbsd2.[89].*)
  15665. + shlibpath_overrides_runpath=no
  15666. + ;;
  15667. + *)
  15668. + shlibpath_overrides_runpath=yes
  15669. + ;;
  15670. + esac
  15671. + else
  15672. + shlibpath_overrides_runpath=yes
  15673. + fi
  15674. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  15675. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15676. + shlibpath_var=LD_LIBRARY_PATH
  15677. + ;;
  15678. +
  15679. +os2*)
  15680. + libname_spec='$name'
  15681. + need_lib_prefix=no
  15682. + library_names_spec='$libname.dll $libname.a'
  15683. + dynamic_linker='OS/2 ld.exe'
  15684. + shlibpath_var=LIBPATH
  15685. + ;;
  15686. +
  15687. +osf3* | osf4* | osf5*)
  15688. + version_type=osf
  15689. + need_version=no
  15690. + need_lib_prefix=no
  15691. + soname_spec='${libname}${release}.so$major'
  15692. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15693. + shlibpath_var=LD_LIBRARY_PATH
  15694. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15695. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15696. + hardcode_into_libs=yes
  15697. + ;;
  15698. +
  15699. +sco3.2v5*)
  15700. + version_type=osf
  15701. + soname_spec='${libname}${release}.so$major'
  15702. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15703. + shlibpath_var=LD_LIBRARY_PATH
  15704. + ;;
  15705. +
  15706. +solaris*)
  15707. + version_type=linux
  15708. + need_lib_prefix=no
  15709. + need_version=no
  15710. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15711. + soname_spec='${libname}${release}.so$major'
  15712. + shlibpath_var=LD_LIBRARY_PATH
  15713. + shlibpath_overrides_runpath=yes
  15714. + hardcode_into_libs=yes
  15715. + # ldd complains unless libraries are executable
  15716. + postinstall_cmds='chmod +x $lib'
  15717. + ;;
  15718. +
  15719. +sunos4*)
  15720. + version_type=sunos
  15721. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  15722. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15723. + shlibpath_var=LD_LIBRARY_PATH
  15724. + shlibpath_overrides_runpath=yes
  15725. + if test "$with_gnu_ld" = yes; then
  15726. + need_lib_prefix=no
  15727. + fi
  15728. + need_version=yes
  15729. + ;;
  15730. +
  15731. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15732. + version_type=linux
  15733. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15734. + soname_spec='${libname}${release}.so$major'
  15735. + shlibpath_var=LD_LIBRARY_PATH
  15736. + case $host_vendor in
  15737. + sni)
  15738. + shlibpath_overrides_runpath=no
  15739. + need_lib_prefix=no
  15740. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  15741. + runpath_var=LD_RUN_PATH
  15742. + ;;
  15743. + siemens)
  15744. + need_lib_prefix=no
  15745. + ;;
  15746. + motorola)
  15747. + need_lib_prefix=no
  15748. + need_version=no
  15749. + shlibpath_overrides_runpath=no
  15750. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15751. + ;;
  15752. + esac
  15753. + ;;
  15754. +
  15755. +uts4*)
  15756. + version_type=linux
  15757. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15758. + soname_spec='${libname}${release}.so$major'
  15759. + shlibpath_var=LD_LIBRARY_PATH
  15760. + ;;
  15761. +
  15762. +dgux*)
  15763. + version_type=linux
  15764. + need_lib_prefix=no
  15765. + need_version=no
  15766. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15767. + soname_spec='${libname}${release}.so$major'
  15768. + shlibpath_var=LD_LIBRARY_PATH
  15769. + ;;
  15770. +
  15771. +sysv4*MP*)
  15772. + if test -d /usr/nec ;then
  15773. + version_type=linux
  15774. + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  15775. + soname_spec='$libname.so.$major'
  15776. + shlibpath_var=LD_LIBRARY_PATH
  15777. + fi
  15778. + ;;
  15779. +
  15780. +*)
  15781. + dynamic_linker=no
  15782. + ;;
  15783. +esac
  15784. +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15785. +echo "${ECHO_T}$dynamic_linker" >&6
  15786. +test "$dynamic_linker" = no && can_build_shared=no
  15787. +
  15788. +# Report the final consequences.
  15789. +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  15790. +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  15791. +echo "$as_me:$LINENO: result: $can_build_shared" >&5
  15792. +echo "${ECHO_T}$can_build_shared" >&6
  15793. +
  15794. +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  15795. +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  15796. +test "$can_build_shared" = "no" && enable_shared=no
  15797. +
  15798. +# On AIX, shared libraries and static libraries use the same namespace, and
  15799. +# are all built from PIC.
  15800. +case "$host_os" in
  15801. +aix3*)
  15802. + test "$enable_shared" = yes && enable_static=no
  15803. + if test -n "$RANLIB"; then
  15804. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  15805. + postinstall_cmds='$RANLIB $lib'
  15806. + fi
  15807. + ;;
  15808. +
  15809. +aix4*)
  15810. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  15811. + test "$enable_shared" = yes && enable_static=no
  15812. + fi
  15813. + ;;
  15814. +esac
  15815. +echo "$as_me:$LINENO: result: $enable_shared" >&5
  15816. +echo "${ECHO_T}$enable_shared" >&6
  15817. +
  15818. +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  15819. +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  15820. +# Make sure either enable_shared or enable_static is yes.
  15821. +test "$enable_shared" = yes || enable_static=yes
  15822. +echo "$as_me:$LINENO: result: $enable_static" >&5
  15823. +echo "${ECHO_T}$enable_static" >&6
  15824. +
  15825. +if test "$hardcode_action" = relink; then
  15826. + # Fast installation is not supported
  15827. + enable_fast_install=no
  15828. +elif test "$shlibpath_overrides_runpath" = yes ||
  15829. + test "$enable_shared" = no; then
  15830. + # Fast installation is not necessary
  15831. + enable_fast_install=needless
  15832. +fi
  15833. +
  15834. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15835. +if test "$GCC" = yes; then
  15836. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15837. +fi
  15838. +
  15839. +if test "x$enable_dlopen" != xyes; then
  15840. + enable_dlopen=unknown
  15841. + enable_dlopen_self=unknown
  15842. + enable_dlopen_self_static=unknown
  15843. +else
  15844. + lt_cv_dlopen=no
  15845. + lt_cv_dlopen_libs=
  15846. +
  15847. + case $host_os in
  15848. + beos*)
  15849. + lt_cv_dlopen="load_add_on"
  15850. + lt_cv_dlopen_libs=
  15851. + lt_cv_dlopen_self=yes
  15852. + ;;
  15853. +
  15854. + cygwin* | mingw* | pw32*)
  15855. + lt_cv_dlopen="LoadLibrary"
  15856. + lt_cv_dlopen_libs=
  15857. + ;;
  15858. +
  15859. + *)
  15860. + echo "$as_me:$LINENO: checking for shl_load" >&5
  15861. +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  15862. +if test "${ac_cv_func_shl_load+set}" = set; then
  15863. + echo $ECHO_N "(cached) $ECHO_C" >&6
  15864. +else
  15865. + cat >conftest.$ac_ext <<_ACEOF
  15866. +/* confdefs.h. */
  15867. +_ACEOF
  15868. +cat confdefs.h >>conftest.$ac_ext
  15869. +cat >>conftest.$ac_ext <<_ACEOF
  15870. +/* end confdefs.h. */
  15871. +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  15872. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15873. +#define shl_load innocuous_shl_load
  15874. +
  15875. +/* System header to define __stub macros and hopefully few prototypes,
  15876. + which can conflict with char shl_load (); below.
  15877. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15878. + <limits.h> exists even on freestanding compilers. */
  15879. +
  15880. +#ifdef __STDC__
  15881. +# include <limits.h>
  15882. +#else
  15883. +# include <assert.h>
  15884. +#endif
  15885. +
  15886. +#undef shl_load
  15887. +
  15888. +/* Override any gcc2 internal prototype to avoid an error. */
  15889. +#ifdef __cplusplus
  15890. +extern "C"
  15891. +{
  15892. +#endif
  15893. +/* We use char because int might match the return type of a gcc2
  15894. + builtin and then its argument prototype would still apply. */
  15895. +char shl_load ();
  15896. +/* The GNU C library defines this for functions which it implements
  15897. + to always fail with ENOSYS. Some functions are actually named
  15898. + something starting with __ and the normal name is an alias. */
  15899. +#if defined (__stub_shl_load) || defined (__stub___shl_load)
  15900. +choke me
  15901. +#else
  15902. +char (*f) () = shl_load;
  15903. +#endif
  15904. +#ifdef __cplusplus
  15905. +}
  15906. +#endif
  15907. +
  15908. +int
  15909. +main ()
  15910. +{
  15911. +return f != shl_load;
  15912. + ;
  15913. + return 0;
  15914. +}
  15915. +_ACEOF
  15916. +rm -f conftest.$ac_objext conftest$ac_exeext
  15917. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15918. + (eval $ac_link) 2>conftest.er1
  15919. + ac_status=$?
  15920. + grep -v '^ *+' conftest.er1 >conftest.err
  15921. + rm -f conftest.er1
  15922. + cat conftest.err >&5
  15923. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15924. + (exit $ac_status); } &&
  15925. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15926. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15927. + (eval $ac_try) 2>&5
  15928. + ac_status=$?
  15929. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15930. + (exit $ac_status); }; } &&
  15931. + { ac_try='test -s conftest$ac_exeext'
  15932. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15933. + (eval $ac_try) 2>&5
  15934. + ac_status=$?
  15935. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15936. + (exit $ac_status); }; }; then
  15937. + ac_cv_func_shl_load=yes
  15938. +else
  15939. + echo "$as_me: failed program was:" >&5
  15940. +sed 's/^/| /' conftest.$ac_ext >&5
  15941. +
  15942. +ac_cv_func_shl_load=no
  15943. +fi
  15944. +rm -f conftest.err conftest.$ac_objext \
  15945. + conftest$ac_exeext conftest.$ac_ext
  15946. +fi
  15947. +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  15948. +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  15949. +if test $ac_cv_func_shl_load = yes; then
  15950. + lt_cv_dlopen="shl_load"
  15951. +else
  15952. + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  15953. +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  15954. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  15955. + echo $ECHO_N "(cached) $ECHO_C" >&6
  15956. +else
  15957. + ac_check_lib_save_LIBS=$LIBS
  15958. +LIBS="-ldld $LIBS"
  15959. +cat >conftest.$ac_ext <<_ACEOF
  15960. +/* confdefs.h. */
  15961. +_ACEOF
  15962. +cat confdefs.h >>conftest.$ac_ext
  15963. +cat >>conftest.$ac_ext <<_ACEOF
  15964. +/* end confdefs.h. */
  15965. +
  15966. +/* Override any gcc2 internal prototype to avoid an error. */
  15967. +#ifdef __cplusplus
  15968. +extern "C"
  15969. +#endif
  15970. +/* We use char because int might match the return type of a gcc2
  15971. + builtin and then its argument prototype would still apply. */
  15972. +char shl_load ();
  15973. +int
  15974. +main ()
  15975. +{
  15976. +shl_load ();
  15977. + ;
  15978. + return 0;
  15979. +}
  15980. +_ACEOF
  15981. +rm -f conftest.$ac_objext conftest$ac_exeext
  15982. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  15983. + (eval $ac_link) 2>conftest.er1
  15984. + ac_status=$?
  15985. + grep -v '^ *+' conftest.er1 >conftest.err
  15986. + rm -f conftest.er1
  15987. + cat conftest.err >&5
  15988. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15989. + (exit $ac_status); } &&
  15990. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  15991. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15992. + (eval $ac_try) 2>&5
  15993. + ac_status=$?
  15994. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15995. + (exit $ac_status); }; } &&
  15996. + { ac_try='test -s conftest$ac_exeext'
  15997. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15998. + (eval $ac_try) 2>&5
  15999. + ac_status=$?
  16000. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16001. + (exit $ac_status); }; }; then
  16002. + ac_cv_lib_dld_shl_load=yes
  16003. +else
  16004. + echo "$as_me: failed program was:" >&5
  16005. +sed 's/^/| /' conftest.$ac_ext >&5
  16006. +
  16007. +ac_cv_lib_dld_shl_load=no
  16008. +fi
  16009. +rm -f conftest.err conftest.$ac_objext \
  16010. + conftest$ac_exeext conftest.$ac_ext
  16011. +LIBS=$ac_check_lib_save_LIBS
  16012. +fi
  16013. +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  16014. +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  16015. +if test $ac_cv_lib_dld_shl_load = yes; then
  16016. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  16017. +else
  16018. + echo "$as_me:$LINENO: checking for dlopen" >&5
  16019. +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  16020. +if test "${ac_cv_func_dlopen+set}" = set; then
  16021. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16022. +else
  16023. + cat >conftest.$ac_ext <<_ACEOF
  16024. +/* confdefs.h. */
  16025. +_ACEOF
  16026. +cat confdefs.h >>conftest.$ac_ext
  16027. +cat >>conftest.$ac_ext <<_ACEOF
  16028. +/* end confdefs.h. */
  16029. +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  16030. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16031. +#define dlopen innocuous_dlopen
  16032. +
  16033. +/* System header to define __stub macros and hopefully few prototypes,
  16034. + which can conflict with char dlopen (); below.
  16035. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16036. + <limits.h> exists even on freestanding compilers. */
  16037. +
  16038. +#ifdef __STDC__
  16039. +# include <limits.h>
  16040. +#else
  16041. +# include <assert.h>
  16042. +#endif
  16043. +
  16044. +#undef dlopen
  16045. +
  16046. +/* Override any gcc2 internal prototype to avoid an error. */
  16047. +#ifdef __cplusplus
  16048. +extern "C"
  16049. +{
  16050. +#endif
  16051. +/* We use char because int might match the return type of a gcc2
  16052. + builtin and then its argument prototype would still apply. */
  16053. +char dlopen ();
  16054. +/* The GNU C library defines this for functions which it implements
  16055. + to always fail with ENOSYS. Some functions are actually named
  16056. + something starting with __ and the normal name is an alias. */
  16057. +#if defined (__stub_dlopen) || defined (__stub___dlopen)
  16058. +choke me
  16059. +#else
  16060. +char (*f) () = dlopen;
  16061. +#endif
  16062. +#ifdef __cplusplus
  16063. +}
  16064. +#endif
  16065. +
  16066. +int
  16067. +main ()
  16068. +{
  16069. +return f != dlopen;
  16070. + ;
  16071. + return 0;
  16072. +}
  16073. +_ACEOF
  16074. +rm -f conftest.$ac_objext conftest$ac_exeext
  16075. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16076. + (eval $ac_link) 2>conftest.er1
  16077. + ac_status=$?
  16078. + grep -v '^ *+' conftest.er1 >conftest.err
  16079. + rm -f conftest.er1
  16080. + cat conftest.err >&5
  16081. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16082. + (exit $ac_status); } &&
  16083. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  16084. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16085. + (eval $ac_try) 2>&5
  16086. + ac_status=$?
  16087. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16088. + (exit $ac_status); }; } &&
  16089. + { ac_try='test -s conftest$ac_exeext'
  16090. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16091. + (eval $ac_try) 2>&5
  16092. + ac_status=$?
  16093. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16094. + (exit $ac_status); }; }; then
  16095. + ac_cv_func_dlopen=yes
  16096. +else
  16097. + echo "$as_me: failed program was:" >&5
  16098. +sed 's/^/| /' conftest.$ac_ext >&5
  16099. +
  16100. +ac_cv_func_dlopen=no
  16101. +fi
  16102. +rm -f conftest.err conftest.$ac_objext \
  16103. + conftest$ac_exeext conftest.$ac_ext
  16104. +fi
  16105. +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  16106. +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  16107. +if test $ac_cv_func_dlopen = yes; then
  16108. + lt_cv_dlopen="dlopen"
  16109. +else
  16110. + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  16111. +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  16112. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  16113. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16114. +else
  16115. + ac_check_lib_save_LIBS=$LIBS
  16116. +LIBS="-ldl $LIBS"
  16117. +cat >conftest.$ac_ext <<_ACEOF
  16118. +/* confdefs.h. */
  16119. +_ACEOF
  16120. +cat confdefs.h >>conftest.$ac_ext
  16121. +cat >>conftest.$ac_ext <<_ACEOF
  16122. +/* end confdefs.h. */
  16123. +
  16124. +/* Override any gcc2 internal prototype to avoid an error. */
  16125. +#ifdef __cplusplus
  16126. +extern "C"
  16127. +#endif
  16128. +/* We use char because int might match the return type of a gcc2
  16129. + builtin and then its argument prototype would still apply. */
  16130. +char dlopen ();
  16131. +int
  16132. +main ()
  16133. +{
  16134. +dlopen ();
  16135. + ;
  16136. + return 0;
  16137. +}
  16138. +_ACEOF
  16139. +rm -f conftest.$ac_objext conftest$ac_exeext
  16140. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16141. + (eval $ac_link) 2>conftest.er1
  16142. + ac_status=$?
  16143. + grep -v '^ *+' conftest.er1 >conftest.err
  16144. + rm -f conftest.er1
  16145. + cat conftest.err >&5
  16146. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16147. + (exit $ac_status); } &&
  16148. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  16149. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16150. + (eval $ac_try) 2>&5
  16151. + ac_status=$?
  16152. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16153. + (exit $ac_status); }; } &&
  16154. + { ac_try='test -s conftest$ac_exeext'
  16155. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16156. + (eval $ac_try) 2>&5
  16157. + ac_status=$?
  16158. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16159. + (exit $ac_status); }; }; then
  16160. + ac_cv_lib_dl_dlopen=yes
  16161. +else
  16162. + echo "$as_me: failed program was:" >&5
  16163. +sed 's/^/| /' conftest.$ac_ext >&5
  16164. +
  16165. +ac_cv_lib_dl_dlopen=no
  16166. +fi
  16167. +rm -f conftest.err conftest.$ac_objext \
  16168. + conftest$ac_exeext conftest.$ac_ext
  16169. +LIBS=$ac_check_lib_save_LIBS
  16170. +fi
  16171. +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  16172. +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  16173. +if test $ac_cv_lib_dl_dlopen = yes; then
  16174. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  16175. +else
  16176. + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  16177. +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  16178. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  16179. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16180. +else
  16181. + ac_check_lib_save_LIBS=$LIBS
  16182. +LIBS="-lsvld $LIBS"
  16183. +cat >conftest.$ac_ext <<_ACEOF
  16184. +/* confdefs.h. */
  16185. +_ACEOF
  16186. +cat confdefs.h >>conftest.$ac_ext
  16187. +cat >>conftest.$ac_ext <<_ACEOF
  16188. +/* end confdefs.h. */
  16189. +
  16190. +/* Override any gcc2 internal prototype to avoid an error. */
  16191. +#ifdef __cplusplus
  16192. +extern "C"
  16193. +#endif
  16194. +/* We use char because int might match the return type of a gcc2
  16195. + builtin and then its argument prototype would still apply. */
  16196. +char dlopen ();
  16197. +int
  16198. +main ()
  16199. +{
  16200. +dlopen ();
  16201. + ;
  16202. + return 0;
  16203. +}
  16204. +_ACEOF
  16205. +rm -f conftest.$ac_objext conftest$ac_exeext
  16206. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16207. + (eval $ac_link) 2>conftest.er1
  16208. + ac_status=$?
  16209. + grep -v '^ *+' conftest.er1 >conftest.err
  16210. + rm -f conftest.er1
  16211. + cat conftest.err >&5
  16212. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16213. + (exit $ac_status); } &&
  16214. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  16215. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16216. + (eval $ac_try) 2>&5
  16217. + ac_status=$?
  16218. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16219. + (exit $ac_status); }; } &&
  16220. + { ac_try='test -s conftest$ac_exeext'
  16221. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16222. + (eval $ac_try) 2>&5
  16223. + ac_status=$?
  16224. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16225. + (exit $ac_status); }; }; then
  16226. + ac_cv_lib_svld_dlopen=yes
  16227. +else
  16228. + echo "$as_me: failed program was:" >&5
  16229. +sed 's/^/| /' conftest.$ac_ext >&5
  16230. +
  16231. +ac_cv_lib_svld_dlopen=no
  16232. +fi
  16233. +rm -f conftest.err conftest.$ac_objext \
  16234. + conftest$ac_exeext conftest.$ac_ext
  16235. +LIBS=$ac_check_lib_save_LIBS
  16236. +fi
  16237. +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  16238. +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  16239. +if test $ac_cv_lib_svld_dlopen = yes; then
  16240. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  16241. +else
  16242. + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  16243. +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  16244. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  16245. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16246. +else
  16247. + ac_check_lib_save_LIBS=$LIBS
  16248. +LIBS="-ldld $LIBS"
  16249. +cat >conftest.$ac_ext <<_ACEOF
  16250. +/* confdefs.h. */
  16251. +_ACEOF
  16252. +cat confdefs.h >>conftest.$ac_ext
  16253. +cat >>conftest.$ac_ext <<_ACEOF
  16254. +/* end confdefs.h. */
  16255. +
  16256. +/* Override any gcc2 internal prototype to avoid an error. */
  16257. +#ifdef __cplusplus
  16258. +extern "C"
  16259. +#endif
  16260. +/* We use char because int might match the return type of a gcc2
  16261. + builtin and then its argument prototype would still apply. */
  16262. +char dld_link ();
  16263. +int
  16264. +main ()
  16265. +{
  16266. +dld_link ();
  16267. + ;
  16268. + return 0;
  16269. +}
  16270. +_ACEOF
  16271. +rm -f conftest.$ac_objext conftest$ac_exeext
  16272. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16273. + (eval $ac_link) 2>conftest.er1
  16274. + ac_status=$?
  16275. + grep -v '^ *+' conftest.er1 >conftest.err
  16276. + rm -f conftest.er1
  16277. + cat conftest.err >&5
  16278. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16279. + (exit $ac_status); } &&
  16280. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  16281. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16282. + (eval $ac_try) 2>&5
  16283. + ac_status=$?
  16284. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16285. + (exit $ac_status); }; } &&
  16286. + { ac_try='test -s conftest$ac_exeext'
  16287. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16288. + (eval $ac_try) 2>&5
  16289. + ac_status=$?
  16290. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16291. + (exit $ac_status); }; }; then
  16292. + ac_cv_lib_dld_dld_link=yes
  16293. +else
  16294. + echo "$as_me: failed program was:" >&5
  16295. +sed 's/^/| /' conftest.$ac_ext >&5
  16296. +
  16297. +ac_cv_lib_dld_dld_link=no
  16298. +fi
  16299. +rm -f conftest.err conftest.$ac_objext \
  16300. + conftest$ac_exeext conftest.$ac_ext
  16301. +LIBS=$ac_check_lib_save_LIBS
  16302. +fi
  16303. +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  16304. +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  16305. +if test $ac_cv_lib_dld_dld_link = yes; then
  16306. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  16307. +fi
  16308. +
  16309. +
  16310. +fi
  16311. +
  16312. +
  16313. +fi
  16314. +
  16315. +
  16316. +fi
  16317. +
  16318. +
  16319. +fi
  16320. +
  16321. +
  16322. +fi
  16323. +
  16324. + ;;
  16325. + esac
  16326. +
  16327. + if test "x$lt_cv_dlopen" != xno; then
  16328. + enable_dlopen=yes
  16329. + else
  16330. + enable_dlopen=no
  16331. + fi
  16332. +
  16333. + case $lt_cv_dlopen in
  16334. + dlopen)
  16335. + save_CPPFLAGS="$CPPFLAGS"
  16336. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  16337. +
  16338. + save_LDFLAGS="$LDFLAGS"
  16339. + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  16340. +
  16341. + save_LIBS="$LIBS"
  16342. + LIBS="$lt_cv_dlopen_libs $LIBS"
  16343. +
  16344. + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  16345. +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  16346. +if test "${lt_cv_dlopen_self+set}" = set; then
  16347. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16348. +else
  16349. + if test "$cross_compiling" = yes; then :
  16350. + lt_cv_dlopen_self=cross
  16351. +else
  16352. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16353. + lt_status=$lt_dlunknown
  16354. + cat > conftest.$ac_ext <<EOF
  16355. +#line __oline__ "configure"
  16356. +#include "confdefs.h"
  16357. +
  16358. +#if HAVE_DLFCN_H
  16359. +#include <dlfcn.h>
  16360. +#endif
  16361. +
  16362. +#include <stdio.h>
  16363. +
  16364. +#ifdef RTLD_GLOBAL
  16365. +# define LT_DLGLOBAL RTLD_GLOBAL
  16366. +#else
  16367. +# ifdef DL_GLOBAL
  16368. +# define LT_DLGLOBAL DL_GLOBAL
  16369. +# else
  16370. +# define LT_DLGLOBAL 0
  16371. +# endif
  16372. +#endif
  16373. +
  16374. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16375. + find out it does not work in some platform. */
  16376. +#ifndef LT_DLLAZY_OR_NOW
  16377. +# ifdef RTLD_LAZY
  16378. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  16379. +# else
  16380. +# ifdef DL_LAZY
  16381. +# define LT_DLLAZY_OR_NOW DL_LAZY
  16382. +# else
  16383. +# ifdef RTLD_NOW
  16384. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  16385. +# else
  16386. +# ifdef DL_NOW
  16387. +# define LT_DLLAZY_OR_NOW DL_NOW
  16388. +# else
  16389. +# define LT_DLLAZY_OR_NOW 0
  16390. +# endif
  16391. +# endif
  16392. +# endif
  16393. +# endif
  16394. +#endif
  16395. +
  16396. +#ifdef __cplusplus
  16397. +extern "C" void exit (int);
  16398. +#endif
  16399. +
  16400. +void fnord() { int i=42;}
  16401. +int main ()
  16402. +{
  16403. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16404. + int status = $lt_dlunknown;
  16405. +
  16406. + if (self)
  16407. + {
  16408. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16409. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16410. + /* dlclose (self); */
  16411. + }
  16412. +
  16413. + exit (status);
  16414. +}
  16415. +EOF
  16416. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16417. + (eval $ac_link) 2>&5
  16418. + ac_status=$?
  16419. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16420. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16421. + (./conftest; exit; ) 2>/dev/null
  16422. + lt_status=$?
  16423. + case x$lt_status in
  16424. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  16425. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  16426. + x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  16427. + esac
  16428. + else :
  16429. + # compilation failed
  16430. + lt_cv_dlopen_self=no
  16431. + fi
  16432. +fi
  16433. +rm -fr conftest*
  16434. +
  16435. +
  16436. +fi
  16437. +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  16438. +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  16439. +
  16440. + if test "x$lt_cv_dlopen_self" = xyes; then
  16441. + LDFLAGS="$LDFLAGS $link_static_flag"
  16442. + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  16443. +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  16444. +if test "${lt_cv_dlopen_self_static+set}" = set; then
  16445. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16446. +else
  16447. + if test "$cross_compiling" = yes; then :
  16448. + lt_cv_dlopen_self_static=cross
  16449. +else
  16450. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16451. + lt_status=$lt_dlunknown
  16452. + cat > conftest.$ac_ext <<EOF
  16453. +#line __oline__ "configure"
  16454. +#include "confdefs.h"
  16455. +
  16456. +#if HAVE_DLFCN_H
  16457. +#include <dlfcn.h>
  16458. +#endif
  16459. +
  16460. +#include <stdio.h>
  16461. +
  16462. +#ifdef RTLD_GLOBAL
  16463. +# define LT_DLGLOBAL RTLD_GLOBAL
  16464. +#else
  16465. +# ifdef DL_GLOBAL
  16466. +# define LT_DLGLOBAL DL_GLOBAL
  16467. +# else
  16468. +# define LT_DLGLOBAL 0
  16469. +# endif
  16470. +#endif
  16471. +
  16472. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16473. + find out it does not work in some platform. */
  16474. +#ifndef LT_DLLAZY_OR_NOW
  16475. +# ifdef RTLD_LAZY
  16476. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  16477. +# else
  16478. +# ifdef DL_LAZY
  16479. +# define LT_DLLAZY_OR_NOW DL_LAZY
  16480. +# else
  16481. +# ifdef RTLD_NOW
  16482. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  16483. +# else
  16484. +# ifdef DL_NOW
  16485. +# define LT_DLLAZY_OR_NOW DL_NOW
  16486. +# else
  16487. +# define LT_DLLAZY_OR_NOW 0
  16488. +# endif
  16489. +# endif
  16490. +# endif
  16491. +# endif
  16492. +#endif
  16493. +
  16494. +#ifdef __cplusplus
  16495. +extern "C" void exit (int);
  16496. +#endif
  16497. +
  16498. +void fnord() { int i=42;}
  16499. +int main ()
  16500. +{
  16501. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16502. + int status = $lt_dlunknown;
  16503. +
  16504. + if (self)
  16505. + {
  16506. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16507. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16508. + /* dlclose (self); */
  16509. + }
  16510. +
  16511. + exit (status);
  16512. +}
  16513. +EOF
  16514. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16515. + (eval $ac_link) 2>&5
  16516. + ac_status=$?
  16517. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16518. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16519. + (./conftest; exit; ) 2>/dev/null
  16520. + lt_status=$?
  16521. + case x$lt_status in
  16522. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  16523. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  16524. + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  16525. + esac
  16526. + else :
  16527. + # compilation failed
  16528. + lt_cv_dlopen_self_static=no
  16529. + fi
  16530. +fi
  16531. +rm -fr conftest*
  16532. +
  16533. +
  16534. +fi
  16535. +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  16536. +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  16537. + fi
  16538. +
  16539. + CPPFLAGS="$save_CPPFLAGS"
  16540. + LDFLAGS="$save_LDFLAGS"
  16541. + LIBS="$save_LIBS"
  16542. + ;;
  16543. + esac
  16544. +
  16545. + case $lt_cv_dlopen_self in
  16546. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  16547. + *) enable_dlopen_self=unknown ;;
  16548. + esac
  16549. +
  16550. + case $lt_cv_dlopen_self_static in
  16551. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  16552. + *) enable_dlopen_self_static=unknown ;;
  16553. + esac
  16554. +fi
  16555. +
  16556. +
  16557. +if test "$enable_shared" = yes && test "$GCC" = yes; then
  16558. + case $archive_cmds in
  16559. + *'~'*)
  16560. + # FIXME: we may have to deal with multi-command sequences.
  16561. + ;;
  16562. + '$CC '*)
  16563. + # Test whether the compiler implicitly links with -lc since on some
  16564. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16565. + # to ld, don't add -lc before -lgcc.
  16566. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16567. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  16568. + if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
  16569. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16570. +else
  16571. + $rm conftest*
  16572. + echo 'static int dummy;' > conftest.$ac_ext
  16573. +
  16574. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16575. + (eval $ac_compile) 2>&5
  16576. + ac_status=$?
  16577. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16578. + (exit $ac_status); }; then
  16579. + soname=conftest
  16580. + lib=conftest
  16581. + libobjs=conftest.$ac_objext
  16582. + deplibs=
  16583. + wl=$lt_cv_prog_cc_wl
  16584. + compiler_flags=-v
  16585. + linker_flags=-v
  16586. + verstring=
  16587. + output_objdir=.
  16588. + libname=conftest
  16589. + save_allow_undefined_flag=$allow_undefined_flag
  16590. + allow_undefined_flag=
  16591. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16592. + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16593. + ac_status=$?
  16594. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16595. + (exit $ac_status); }
  16596. + then
  16597. + lt_cv_archive_cmds_need_lc=no
  16598. + else
  16599. + lt_cv_archive_cmds_need_lc=yes
  16600. + fi
  16601. + allow_undefined_flag=$save_allow_undefined_flag
  16602. + else
  16603. + cat conftest.err 1>&5
  16604. + fi
  16605. +fi
  16606. +
  16607. + echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
  16608. +echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
  16609. + ;;
  16610. + esac
  16611. +fi
  16612. +need_lc=${lt_cv_archive_cmds_need_lc-yes}
  16613. +
  16614. +# The second clause should only fire when bootstrapping the
  16615. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  16616. +# with your package, and you will get complaints that there are
  16617. +# no rules to generate ltmain.sh.
  16618. +if test -f "$ltmain"; then
  16619. + :
  16620. +else
  16621. + # If there is no Makefile yet, we rely on a make rule to execute
  16622. + # `config.status --recheck' to rerun these tests and create the
  16623. + # libtool script then.
  16624. + test -f Makefile && make "$ltmain"
  16625. +fi
  16626. +
  16627. +if test -f "$ltmain"; then
  16628. + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  16629. + $rm -f "${ofile}T"
  16630. +
  16631. + echo creating $ofile
  16632. +
  16633. + # Now quote all the things that may contain metacharacters while being
  16634. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  16635. + # variables and quote the copies for generation of the libtool script.
  16636. + for var in echo old_CC old_CFLAGS SED \
  16637. + AR AR_FLAGS CC LD LN_S NM SHELL \
  16638. + reload_flag reload_cmds wl \
  16639. + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  16640. + thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  16641. + library_names_spec soname_spec \
  16642. + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  16643. + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  16644. + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  16645. + old_striplib striplib file_magic_cmd export_symbols_cmds \
  16646. + deplibs_check_method allow_undefined_flag no_undefined_flag \
  16647. + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  16648. + global_symbol_to_c_name_address \
  16649. + hardcode_libdir_flag_spec hardcode_libdir_separator \
  16650. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16651. + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  16652. +
  16653. + case $var in
  16654. + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  16655. + old_postinstall_cmds | old_postuninstall_cmds | \
  16656. + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  16657. + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  16658. + postinstall_cmds | postuninstall_cmds | \
  16659. + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16660. + # Double-quote double-evaled strings.
  16661. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16662. + ;;
  16663. + *)
  16664. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16665. + ;;
  16666. + esac
  16667. + done
  16668. +
  16669. + cat <<__EOF__ > "${ofile}T"
  16670. +#! $SHELL
  16671. +
  16672. +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16673. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  16674. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16675. +#
  16676. +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
  16677. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  16678. +#
  16679. +# This program is free software; you can redistribute it and/or modify
  16680. +# it under the terms of the GNU General Public License as published by
  16681. +# the Free Software Foundation; either version 2 of the License, or
  16682. +# (at your option) any later version.
  16683. +#
  16684. +# This program is distributed in the hope that it will be useful, but
  16685. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  16686. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16687. +# General Public License for more details.
  16688. +#
  16689. +# You should have received a copy of the GNU General Public License
  16690. +# along with this program; if not, write to the Free Software
  16691. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  16692. +#
  16693. +# As a special exception to the GNU General Public License, if you
  16694. +# distribute this file as part of a program that contains a
  16695. +# configuration script generated by Autoconf, you may include it under
  16696. +# the same distribution terms that you use for the rest of that program.
  16697. +
  16698. +# A sed that does not truncate output.
  16699. +SED=$lt_SED
  16700. +
  16701. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16702. +Xsed="${SED} -e s/^X//"
  16703. +
  16704. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  16705. +# if CDPATH is set.
  16706. +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  16707. +
  16708. +# ### BEGIN LIBTOOL CONFIG
  16709. +
  16710. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16711. +
  16712. +# Shell to use when invoking shell scripts.
  16713. +SHELL=$lt_SHELL
  16714. +
  16715. +# Whether or not to build shared libraries.
  16716. +build_libtool_libs=$enable_shared
  16717. +
  16718. +# Whether or not to build static libraries.
  16719. +build_old_libs=$enable_static
  16720. +
  16721. +# Whether or not to add -lc for building shared libraries.
  16722. +build_libtool_need_lc=$need_lc
  16723. +
  16724. +# Whether or not to optimize for fast installation.
  16725. +fast_install=$enable_fast_install
  16726. +
  16727. +# The host system.
  16728. +host_alias=$host_alias
  16729. +host=$host
  16730. +
  16731. +# An echo program that does not interpret backslashes.
  16732. +echo=$lt_echo
  16733. +
  16734. +# The archiver.
  16735. +AR=$lt_AR
  16736. +AR_FLAGS=$lt_AR_FLAGS
  16737. +
  16738. +# The default C compiler.
  16739. +CC=$lt_CC
  16740. +
  16741. +# Is the compiler the GNU C compiler?
  16742. +with_gcc=$GCC
  16743. +
  16744. +# The linker used to build libraries.
  16745. +LD=$lt_LD
  16746. +
  16747. +# Whether we need hard or soft links.
  16748. +LN_S=$lt_LN_S
  16749. +
  16750. +# A BSD-compatible nm program.
  16751. +NM=$lt_NM
  16752. +
  16753. +# A symbol stripping program
  16754. +STRIP=$STRIP
  16755. +
  16756. +# Used to examine libraries when file_magic_cmd begins "file"
  16757. +MAGIC_CMD=$MAGIC_CMD
  16758. +
  16759. +# Used on cygwin: DLL creation program.
  16760. +DLLTOOL="$DLLTOOL"
  16761. +
  16762. +# Used on cygwin: object dumper.
  16763. +OBJDUMP="$OBJDUMP"
  16764. +
  16765. +# Used on cygwin: assembler.
  16766. +AS="$AS"
  16767. +
  16768. +# The name of the directory that contains temporary libtool files.
  16769. +objdir=$objdir
  16770. +
  16771. +# How to create reloadable object files.
  16772. +reload_flag=$lt_reload_flag
  16773. +reload_cmds=$lt_reload_cmds
  16774. +
  16775. +# How to pass a linker flag through the compiler.
  16776. +wl=$lt_wl
  16777. +
  16778. +# Object file suffix (normally "o").
  16779. +objext="$ac_objext"
  16780. +
  16781. +# Old archive suffix (normally "a").
  16782. +libext="$libext"
  16783. +
  16784. +# Executable file suffix (normally "").
  16785. +exeext="$exeext"
  16786. +
  16787. +# Additional compiler flags for building library objects.
  16788. +pic_flag=$lt_pic_flag
  16789. +pic_mode=$pic_mode
  16790. +
  16791. +# Does compiler simultaneously support -c and -o options?
  16792. +compiler_c_o=$lt_compiler_c_o
  16793. +
  16794. +# Can we write directly to a .lo ?
  16795. +compiler_o_lo=$lt_compiler_o_lo
  16796. +
  16797. +# Must we lock files when doing compilation ?
  16798. +need_locks=$lt_need_locks
  16799. +
  16800. +# Do we need the lib prefix for modules?
  16801. +need_lib_prefix=$need_lib_prefix
  16802. +
  16803. +# Do we need a version for libraries?
  16804. +need_version=$need_version
  16805. +
  16806. +# Whether dlopen is supported.
  16807. +dlopen_support=$enable_dlopen
  16808. +
  16809. +# Whether dlopen of programs is supported.
  16810. +dlopen_self=$enable_dlopen_self
  16811. +
  16812. +# Whether dlopen of statically linked programs is supported.
  16813. +dlopen_self_static=$enable_dlopen_self_static
  16814. +
  16815. +# Compiler flag to prevent dynamic linking.
  16816. +link_static_flag=$lt_link_static_flag
  16817. +
  16818. +# Compiler flag to turn off builtin functions.
  16819. +no_builtin_flag=$lt_no_builtin_flag
  16820. +
  16821. +# Compiler flag to allow reflexive dlopens.
  16822. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16823. +
  16824. +# Compiler flag to generate shared objects directly from archives.
  16825. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16826. +
  16827. +# Compiler flag to generate thread-safe objects.
  16828. +thread_safe_flag_spec=$lt_thread_safe_flag_spec
  16829. +
  16830. +# Library versioning type.
  16831. +version_type=$version_type
  16832. +
  16833. +# Format of library name prefix.
  16834. +libname_spec=$lt_libname_spec
  16835. +
  16836. +# List of archive names. First name is the real one, the rest are links.
  16837. +# The last name is the one that the linker finds with -lNAME.
  16838. +library_names_spec=$lt_library_names_spec
  16839. +
  16840. +# The coded name of the library, if different from the real name.
  16841. +soname_spec=$lt_soname_spec
  16842. +
  16843. +# Commands used to build and install an old-style archive.
  16844. +RANLIB=$lt_RANLIB
  16845. +old_archive_cmds=$lt_old_archive_cmds
  16846. +old_postinstall_cmds=$lt_old_postinstall_cmds
  16847. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16848. +
  16849. +# Create an old-style archive from a shared archive.
  16850. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16851. +
  16852. +# Create a temporary old-style archive to link instead of a shared archive.
  16853. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16854. +
  16855. +# Commands used to build and install a shared archive.
  16856. +archive_cmds=$lt_archive_cmds
  16857. +archive_expsym_cmds=$lt_archive_expsym_cmds
  16858. +postinstall_cmds=$lt_postinstall_cmds
  16859. +postuninstall_cmds=$lt_postuninstall_cmds
  16860. +
  16861. +# Commands to strip libraries.
  16862. +old_striplib=$lt_old_striplib
  16863. +striplib=$lt_striplib
  16864. +
  16865. +# Method to check whether dependent libraries are shared objects.
  16866. +deplibs_check_method=$lt_deplibs_check_method
  16867. +
  16868. +# Command to use when deplibs_check_method == file_magic.
  16869. +file_magic_cmd=$lt_file_magic_cmd
  16870. +
  16871. +# Flag that allows shared libraries with undefined symbols to be built.
  16872. +allow_undefined_flag=$lt_allow_undefined_flag
  16873. +
  16874. +# Flag that forces no undefined symbols.
  16875. +no_undefined_flag=$lt_no_undefined_flag
  16876. +
  16877. +# Commands used to finish a libtool library installation in a directory.
  16878. +finish_cmds=$lt_finish_cmds
  16879. +
  16880. +# Same as above, but a single script fragment to be evaled but not shown.
  16881. +finish_eval=$lt_finish_eval
  16882. +
  16883. +# Take the output of nm and produce a listing of raw symbols and C names.
  16884. +global_symbol_pipe=$lt_global_symbol_pipe
  16885. +
  16886. +# Transform the output of nm in a proper C declaration
  16887. +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  16888. +
  16889. +# Transform the output of nm in a C name address pair
  16890. +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  16891. +
  16892. +# This is the shared library runtime path variable.
  16893. +runpath_var=$runpath_var
  16894. +
  16895. +# This is the shared library path variable.
  16896. +shlibpath_var=$shlibpath_var
  16897. +
  16898. +# Is shlibpath searched before the hard-coded library search path?
  16899. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16900. +
  16901. +# How to hardcode a shared library path into an executable.
  16902. +hardcode_action=$hardcode_action
  16903. +
  16904. +# Whether we should hardcode library paths into libraries.
  16905. +hardcode_into_libs=$hardcode_into_libs
  16906. +
  16907. +# Flag to hardcode \$libdir into a binary during linking.
  16908. +# This must work even if \$libdir does not exist.
  16909. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16910. +
  16911. +# Whether we need a single -rpath flag with a separated argument.
  16912. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16913. +
  16914. +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  16915. +# resulting binary.
  16916. +hardcode_direct=$hardcode_direct
  16917. +
  16918. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16919. +# resulting binary.
  16920. +hardcode_minus_L=$hardcode_minus_L
  16921. +
  16922. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16923. +# the resulting binary.
  16924. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  16925. +
  16926. +# Variables whose values should be saved in libtool wrapper scripts and
  16927. +# restored at relink time.
  16928. +variables_saved_for_relink="$variables_saved_for_relink"
  16929. +
  16930. +# Whether libtool must link a program against all its dependency libraries.
  16931. +link_all_deplibs=$link_all_deplibs
  16932. +
  16933. +# Compile-time system search path for libraries
  16934. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16935. +
  16936. +# Run-time system search path for libraries
  16937. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16938. +
  16939. +# Fix the shell variable \$srcfile for the compiler.
  16940. +fix_srcfile_path="$fix_srcfile_path"
  16941. +
  16942. +# Set to yes if exported symbols are required.
  16943. +always_export_symbols=$always_export_symbols
  16944. +
  16945. +# The commands to list exported symbols.
  16946. +export_symbols_cmds=$lt_export_symbols_cmds
  16947. +
  16948. +# The commands to extract the exported symbol list from a shared archive.
  16949. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16950. +
  16951. +# Symbols that should not be listed in the preloaded symbols.
  16952. +exclude_expsyms=$lt_exclude_expsyms
  16953. +
  16954. +# Symbols that must always be exported.
  16955. +include_expsyms=$lt_include_expsyms
  16956. +
  16957. +# ### END LIBTOOL CONFIG
  16958. +
  16959. +__EOF__
  16960. +
  16961. + case $host_os in
  16962. + aix3*)
  16963. + cat <<\EOF >> "${ofile}T"
  16964. +
  16965. +# AIX sometimes has problems with the GCC collect2 program. For some
  16966. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  16967. +# vanish in a puff of smoke.
  16968. +if test "X${COLLECT_NAMES+set}" != Xset; then
  16969. + COLLECT_NAMES=
  16970. + export COLLECT_NAMES
  16971. +fi
  16972. +EOF
  16973. + ;;
  16974. + esac
  16975. +
  16976. + case $host_os in
  16977. + cygwin* | mingw* | pw32* | os2*)
  16978. + cat <<'EOF' >> "${ofile}T"
  16979. + # This is a source program that is used to create dlls on Windows
  16980. + # Don't remove nor modify the starting and closing comments
  16981. +# /* ltdll.c starts here */
  16982. +# #define WIN32_LEAN_AND_MEAN
  16983. +# #include <windows.h>
  16984. +# #undef WIN32_LEAN_AND_MEAN
  16985. +# #include <stdio.h>
  16986. +#
  16987. +# #ifndef __CYGWIN__
  16988. +# # ifdef __CYGWIN32__
  16989. +# # define __CYGWIN__ __CYGWIN32__
  16990. +# # endif
  16991. +# #endif
  16992. +#
  16993. +# #ifdef __cplusplus
  16994. +# extern "C" {
  16995. +# #endif
  16996. +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  16997. +# #ifdef __cplusplus
  16998. +# }
  16999. +# #endif
  17000. +#
  17001. +# #ifdef __CYGWIN__
  17002. +# #include <cygwin/cygwin_dll.h>
  17003. +# DECLARE_CYGWIN_DLL( DllMain );
  17004. +# #endif
  17005. +# HINSTANCE __hDllInstance_base;
  17006. +#
  17007. +# BOOL APIENTRY
  17008. +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  17009. +# {
  17010. +# __hDllInstance_base = hInst;
  17011. +# return TRUE;
  17012. +# }
  17013. +# /* ltdll.c ends here */
  17014. + # This is a source program that is used to create import libraries
  17015. + # on Windows for dlls which lack them. Don't remove nor modify the
  17016. + # starting and closing comments
  17017. +# /* impgen.c starts here */
  17018. +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  17019. +#
  17020. +# This file is part of GNU libtool.
  17021. +#
  17022. +# This program is free software; you can redistribute it and/or modify
  17023. +# it under the terms of the GNU General Public License as published by
  17024. +# the Free Software Foundation; either version 2 of the License, or
  17025. +# (at your option) any later version.
  17026. +#
  17027. +# This program is distributed in the hope that it will be useful,
  17028. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  17029. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17030. +# GNU General Public License for more details.
  17031. +#
  17032. +# You should have received a copy of the GNU General Public License
  17033. +# along with this program; if not, write to the Free Software
  17034. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17035. +# */
  17036. +#
  17037. +# #include <stdio.h> /* for printf() */
  17038. +# #include <unistd.h> /* for open(), lseek(), read() */
  17039. +# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  17040. +# #include <string.h> /* for strdup() */
  17041. +#
  17042. +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
  17043. +# #ifndef O_BINARY
  17044. +# #define O_BINARY 0
  17045. +# #endif
  17046. +#
  17047. +# static unsigned int
  17048. +# pe_get16 (fd, offset)
  17049. +# int fd;
  17050. +# int offset;
  17051. +# {
  17052. +# unsigned char b[2];
  17053. +# lseek (fd, offset, SEEK_SET);
  17054. +# read (fd, b, 2);
  17055. +# return b[0] + (b[1]<<8);
  17056. +# }
  17057. +#
  17058. +# static unsigned int
  17059. +# pe_get32 (fd, offset)
  17060. +# int fd;
  17061. +# int offset;
  17062. +# {
  17063. +# unsigned char b[4];
  17064. +# lseek (fd, offset, SEEK_SET);
  17065. +# read (fd, b, 4);
  17066. +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  17067. +# }
  17068. +#
  17069. +# static unsigned int
  17070. +# pe_as32 (ptr)
  17071. +# void *ptr;
  17072. +# {
  17073. +# unsigned char *b = ptr;
  17074. +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  17075. +# }
  17076. +#
  17077. +# int
  17078. +# main (argc, argv)
  17079. +# int argc;
  17080. +# char *argv[];
  17081. +# {
  17082. +# int dll;
  17083. +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  17084. +# unsigned long export_rva, export_size, nsections, secptr, expptr;
  17085. +# unsigned long name_rvas, nexp;
  17086. +# unsigned char *expdata, *erva;
  17087. +# char *filename, *dll_name;
  17088. +#
  17089. +# filename = argv[1];
  17090. +#
  17091. +# dll = open(filename, O_RDONLY|O_BINARY);
  17092. +# if (dll < 1)
  17093. +# return 1;
  17094. +#
  17095. +# dll_name = filename;
  17096. +#
  17097. +# for (i=0; filename[i]; i++)
  17098. +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  17099. +# dll_name = filename + i +1;
  17100. +#
  17101. +# pe_header_offset = pe_get32 (dll, 0x3c);
  17102. +# opthdr_ofs = pe_header_offset + 4 + 20;
  17103. +# num_entries = pe_get32 (dll, opthdr_ofs + 92);
  17104. +#
  17105. +# if (num_entries < 1) /* no exports */
  17106. +# return 1;
  17107. +#
  17108. +# export_rva = pe_get32 (dll, opthdr_ofs + 96);
  17109. +# export_size = pe_get32 (dll, opthdr_ofs + 100);
  17110. +# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  17111. +# secptr = (pe_header_offset + 4 + 20 +
  17112. +# pe_get16 (dll, pe_header_offset + 4 + 16));
  17113. +#
  17114. +# expptr = 0;
  17115. +# for (i = 0; i < nsections; i++)
  17116. +# {
  17117. +# char sname[8];
  17118. +# unsigned long secptr1 = secptr + 40 * i;
  17119. +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  17120. +# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  17121. +# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  17122. +# lseek(dll, secptr1, SEEK_SET);
  17123. +# read(dll, sname, 8);
  17124. +# if (vaddr <= export_rva && vaddr+vsize > export_rva)
  17125. +# {
  17126. +# expptr = fptr + (export_rva - vaddr);
  17127. +# if (export_rva + export_size > vaddr + vsize)
  17128. +# export_size = vsize - (export_rva - vaddr);
  17129. +# break;
  17130. +# }
  17131. +# }
  17132. +#
  17133. +# expdata = (unsigned char*)malloc(export_size);
  17134. +# lseek (dll, expptr, SEEK_SET);
  17135. +# read (dll, expdata, export_size);
  17136. +# erva = expdata - export_rva;
  17137. +#
  17138. +# nexp = pe_as32 (expdata+24);
  17139. +# name_rvas = pe_as32 (expdata+32);
  17140. +#
  17141. +# printf ("EXPORTS\n");
  17142. +# for (i = 0; i<nexp; i++)
  17143. +# {
  17144. +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  17145. +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  17146. +# }
  17147. +#
  17148. +# return 0;
  17149. +# }
  17150. +# /* impgen.c ends here */
  17151. +
  17152. +EOF
  17153. + ;;
  17154. + esac
  17155. +
  17156. + # We use sed instead of cat because bash on DJGPP gets confused if
  17157. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17158. + # text mode, it properly converts lines to CR/LF. This bash problem
  17159. + # is reportedly fixed, but why not run on old versions too?
  17160. + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  17161. +
  17162. + mv -f "${ofile}T" "$ofile" || \
  17163. + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  17164. + chmod +x "$ofile"
  17165. +fi
  17166. +
  17167. +
  17168. +
  17169. +
  17170. +
  17171. +# This can be used to rebuild libtool when needed
  17172. +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17173. +
  17174. +# Always use our own libtool.
  17175. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17176. +
  17177. +# Prevent multiple expansion
  17178. +
  17179. +
  17180. +
  17181. +
  17182. +# Extract the first word of "perl", so it can be a program name with args.
  17183. +set dummy perl; ac_word=$2
  17184. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  17185. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17186. +if test "${ac_cv_path_PERL+set}" = set; then
  17187. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17188. +else
  17189. + case $PERL in
  17190. + [\\/]* | ?:[\\/]*)
  17191. + ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  17192. + ;;
  17193. + *)
  17194. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17195. +for as_dir in $PATH
  17196. +do
  17197. + IFS=$as_save_IFS
  17198. + test -z "$as_dir" && as_dir=.
  17199. + for ac_exec_ext in '' $ac_executable_extensions; do
  17200. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17201. + ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  17202. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17203. + break 2
  17204. + fi
  17205. +done
  17206. +done
  17207. +
  17208. + ;;
  17209. +esac
  17210. +fi
  17211. +PERL=$ac_cv_path_PERL
  17212. +
  17213. +if test -n "$PERL"; then
  17214. + echo "$as_me:$LINENO: result: $PERL" >&5
  17215. +echo "${ECHO_T}$PERL" >&6
  17216. +else
  17217. + echo "$as_me:$LINENO: result: no" >&5
  17218. +echo "${ECHO_T}no" >&6
  17219. +fi
  17220. +
  17221. +
  17222. +
  17223. +
  17224. +if test "${ac_cv_header_asm_errno_h+set}" = set; then
  17225. + echo "$as_me:$LINENO: checking for asm/errno.h" >&5
  17226. +echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6
  17227. +if test "${ac_cv_header_asm_errno_h+set}" = set; then
  17228. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17229. +fi
  17230. +echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
  17231. +echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6
  17232. +else
  17233. + # Is the header compilable?
  17234. +echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
  17235. +echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6
  17236. +cat >conftest.$ac_ext <<_ACEOF
  17237. +/* confdefs.h. */
  17238. +_ACEOF
  17239. +cat confdefs.h >>conftest.$ac_ext
  17240. +cat >>conftest.$ac_ext <<_ACEOF
  17241. +/* end confdefs.h. */
  17242. +$ac_includes_default
  17243. +@%:@include <asm/errno.h>
  17244. +_ACEOF
  17245. +rm -f conftest.$ac_objext
  17246. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17247. + (eval $ac_compile) 2>conftest.er1
  17248. + ac_status=$?
  17249. + grep -v '^ *+' conftest.er1 >conftest.err
  17250. + rm -f conftest.er1
  17251. + cat conftest.err >&5
  17252. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17253. + (exit $ac_status); } &&
  17254. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17255. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17256. + (eval $ac_try) 2>&5
  17257. + ac_status=$?
  17258. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17259. + (exit $ac_status); }; } &&
  17260. + { ac_try='test -s conftest.$ac_objext'
  17261. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17262. + (eval $ac_try) 2>&5
  17263. + ac_status=$?
  17264. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17265. + (exit $ac_status); }; }; then
  17266. + ac_header_compiler=yes
  17267. +else
  17268. + echo "$as_me: failed program was:" >&5
  17269. +sed 's/^/| /' conftest.$ac_ext >&5
  17270. +
  17271. +ac_header_compiler=no
  17272. +fi
  17273. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17274. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17275. +echo "${ECHO_T}$ac_header_compiler" >&6
  17276. +
  17277. +# Is the header present?
  17278. +echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
  17279. +echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6
  17280. +cat >conftest.$ac_ext <<_ACEOF
  17281. +/* confdefs.h. */
  17282. +_ACEOF
  17283. +cat confdefs.h >>conftest.$ac_ext
  17284. +cat >>conftest.$ac_ext <<_ACEOF
  17285. +/* end confdefs.h. */
  17286. +@%:@include <asm/errno.h>
  17287. +_ACEOF
  17288. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17289. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17290. + ac_status=$?
  17291. + grep -v '^ *+' conftest.er1 >conftest.err
  17292. + rm -f conftest.er1
  17293. + cat conftest.err >&5
  17294. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17295. + (exit $ac_status); } >/dev/null; then
  17296. + if test -s conftest.err; then
  17297. + ac_cpp_err=$ac_c_preproc_warn_flag
  17298. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17299. + else
  17300. + ac_cpp_err=
  17301. + fi
  17302. +else
  17303. + ac_cpp_err=yes
  17304. +fi
  17305. +if test -z "$ac_cpp_err"; then
  17306. + ac_header_preproc=yes
  17307. +else
  17308. + echo "$as_me: failed program was:" >&5
  17309. +sed 's/^/| /' conftest.$ac_ext >&5
  17310. +
  17311. + ac_header_preproc=no
  17312. +fi
  17313. +rm -f conftest.err conftest.$ac_ext
  17314. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17315. +echo "${ECHO_T}$ac_header_preproc" >&6
  17316. +
  17317. +# So? What about this header?
  17318. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17319. + yes:no: )
  17320. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
  17321. +echo "$as_me: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17322. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the compiler's result" >&5
  17323. +echo "$as_me: WARNING: asm/errno.h: proceeding with the compiler's result" >&2;}
  17324. + ac_header_preproc=yes
  17325. + ;;
  17326. + no:yes:* )
  17327. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: present but cannot be compiled" >&5
  17328. +echo "$as_me: WARNING: asm/errno.h: present but cannot be compiled" >&2;}
  17329. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: check for missing prerequisite headers?" >&5
  17330. +echo "$as_me: WARNING: asm/errno.h: check for missing prerequisite headers?" >&2;}
  17331. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: see the Autoconf documentation" >&5
  17332. +echo "$as_me: WARNING: asm/errno.h: see the Autoconf documentation" >&2;}
  17333. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: section \"Present But Cannot Be Compiled\"" >&5
  17334. +echo "$as_me: WARNING: asm/errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
  17335. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
  17336. +echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
  17337. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&5
  17338. +echo "$as_me: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&2;}
  17339. + (
  17340. + cat <<\_ASBOX
  17341. +@%:@@%:@ ------------------------------------------ @%:@@%:@
  17342. +@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
  17343. +@%:@@%:@ ------------------------------------------ @%:@@%:@
  17344. +_ASBOX
  17345. + ) |
  17346. + sed "s/^/$as_me: WARNING: /" >&2
  17347. + ;;
  17348. +esac
  17349. +echo "$as_me:$LINENO: checking for asm/errno.h" >&5
  17350. +echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6
  17351. +if test "${ac_cv_header_asm_errno_h+set}" = set; then
  17352. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17353. +else
  17354. + ac_cv_header_asm_errno_h=$ac_header_preproc
  17355. +fi
  17356. +echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
  17357. +echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6
  17358. +
  17359. +fi
  17360. +if test $ac_cv_header_asm_errno_h = yes; then
  17361. + :
  17362. +else
  17363. + { { echo "$as_me:$LINENO: error: *** Unable to find asm/errno.h!!!" >&5
  17364. +echo "$as_me: error: *** Unable to find asm/errno.h!!!" >&2;}
  17365. + { (exit 1); exit 1; }; }
  17366. +
  17367. +fi
  17368. +
  17369. +
  17370. +
  17371. +if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
  17372. + echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
  17373. +echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6
  17374. +if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
  17375. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17376. +fi
  17377. +echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
  17378. +echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6
  17379. +else
  17380. + # Is the header compilable?
  17381. +echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
  17382. +echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6
  17383. +cat >conftest.$ac_ext <<_ACEOF
  17384. +/* confdefs.h. */
  17385. +_ACEOF
  17386. +cat confdefs.h >>conftest.$ac_ext
  17387. +cat >>conftest.$ac_ext <<_ACEOF
  17388. +/* end confdefs.h. */
  17389. +$ac_includes_default
  17390. +@%:@include <linux/atmsap.h>
  17391. +_ACEOF
  17392. +rm -f conftest.$ac_objext
  17393. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17394. + (eval $ac_compile) 2>conftest.er1
  17395. + ac_status=$?
  17396. + grep -v '^ *+' conftest.er1 >conftest.err
  17397. + rm -f conftest.er1
  17398. + cat conftest.err >&5
  17399. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17400. + (exit $ac_status); } &&
  17401. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17402. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17403. + (eval $ac_try) 2>&5
  17404. + ac_status=$?
  17405. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17406. + (exit $ac_status); }; } &&
  17407. + { ac_try='test -s conftest.$ac_objext'
  17408. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17409. + (eval $ac_try) 2>&5
  17410. + ac_status=$?
  17411. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17412. + (exit $ac_status); }; }; then
  17413. + ac_header_compiler=yes
  17414. +else
  17415. + echo "$as_me: failed program was:" >&5
  17416. +sed 's/^/| /' conftest.$ac_ext >&5
  17417. +
  17418. +ac_header_compiler=no
  17419. +fi
  17420. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17421. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17422. +echo "${ECHO_T}$ac_header_compiler" >&6
  17423. +
  17424. +# Is the header present?
  17425. +echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
  17426. +echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6
  17427. +cat >conftest.$ac_ext <<_ACEOF
  17428. +/* confdefs.h. */
  17429. +_ACEOF
  17430. +cat confdefs.h >>conftest.$ac_ext
  17431. +cat >>conftest.$ac_ext <<_ACEOF
  17432. +/* end confdefs.h. */
  17433. +@%:@include <linux/atmsap.h>
  17434. +_ACEOF
  17435. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17436. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17437. + ac_status=$?
  17438. + grep -v '^ *+' conftest.er1 >conftest.err
  17439. + rm -f conftest.er1
  17440. + cat conftest.err >&5
  17441. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17442. + (exit $ac_status); } >/dev/null; then
  17443. + if test -s conftest.err; then
  17444. + ac_cpp_err=$ac_c_preproc_warn_flag
  17445. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17446. + else
  17447. + ac_cpp_err=
  17448. + fi
  17449. +else
  17450. + ac_cpp_err=yes
  17451. +fi
  17452. +if test -z "$ac_cpp_err"; then
  17453. + ac_header_preproc=yes
  17454. +else
  17455. + echo "$as_me: failed program was:" >&5
  17456. +sed 's/^/| /' conftest.$ac_ext >&5
  17457. +
  17458. + ac_header_preproc=no
  17459. +fi
  17460. +rm -f conftest.err conftest.$ac_ext
  17461. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17462. +echo "${ECHO_T}$ac_header_preproc" >&6
  17463. +
  17464. +# So? What about this header?
  17465. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17466. + yes:no: )
  17467. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&5
  17468. +echo "$as_me: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17469. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&5
  17470. +echo "$as_me: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&2;}
  17471. + ac_header_preproc=yes
  17472. + ;;
  17473. + no:yes:* )
  17474. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: present but cannot be compiled" >&5
  17475. +echo "$as_me: WARNING: linux/atmsap.h: present but cannot be compiled" >&2;}
  17476. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&5
  17477. +echo "$as_me: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&2;}
  17478. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: see the Autoconf documentation" >&5
  17479. +echo "$as_me: WARNING: linux/atmsap.h: see the Autoconf documentation" >&2;}
  17480. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: section \"Present But Cannot Be Compiled\"" >&5
  17481. +echo "$as_me: WARNING: linux/atmsap.h: section \"Present But Cannot Be Compiled\"" >&2;}
  17482. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
  17483. +echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
  17484. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&5
  17485. +echo "$as_me: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&2;}
  17486. + (
  17487. + cat <<\_ASBOX
  17488. +@%:@@%:@ ------------------------------------------ @%:@@%:@
  17489. +@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
  17490. +@%:@@%:@ ------------------------------------------ @%:@@%:@
  17491. +_ASBOX
  17492. + ) |
  17493. + sed "s/^/$as_me: WARNING: /" >&2
  17494. + ;;
  17495. +esac
  17496. +echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
  17497. +echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6
  17498. +if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
  17499. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17500. +else
  17501. + ac_cv_header_linux_atmsap_h=$ac_header_preproc
  17502. +fi
  17503. +echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
  17504. +echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6
  17505. +
  17506. +fi
  17507. +if test $ac_cv_header_linux_atmsap_h = yes; then
  17508. + :
  17509. +else
  17510. + { { echo "$as_me:$LINENO: error: *** Unable to find linux/atmsap.h!!!" >&5
  17511. +echo "$as_me: error: *** Unable to find linux/atmsap.h!!!" >&2;}
  17512. + { (exit 1); exit 1; }; }
  17513. +
  17514. +fi
  17515. +
  17516. +
  17517. +
  17518. +
  17519. +echo "$as_me:$LINENO: checking for main in -lresolv" >&5
  17520. +echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
  17521. +if test "${ac_cv_lib_resolv_main+set}" = set; then
  17522. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17523. +else
  17524. + ac_check_lib_save_LIBS=$LIBS
  17525. +LIBS="-lresolv $LIBS"
  17526. +cat >conftest.$ac_ext <<_ACEOF
  17527. +/* confdefs.h. */
  17528. +_ACEOF
  17529. +cat confdefs.h >>conftest.$ac_ext
  17530. +cat >>conftest.$ac_ext <<_ACEOF
  17531. +/* end confdefs.h. */
  17532. +
  17533. +
  17534. +int
  17535. +main ()
  17536. +{
  17537. +main ();
  17538. + ;
  17539. + return 0;
  17540. +}
  17541. +_ACEOF
  17542. +rm -f conftest.$ac_objext conftest$ac_exeext
  17543. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17544. + (eval $ac_link) 2>conftest.er1
  17545. + ac_status=$?
  17546. + grep -v '^ *+' conftest.er1 >conftest.err
  17547. + rm -f conftest.er1
  17548. + cat conftest.err >&5
  17549. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17550. + (exit $ac_status); } &&
  17551. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17552. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17553. + (eval $ac_try) 2>&5
  17554. + ac_status=$?
  17555. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17556. + (exit $ac_status); }; } &&
  17557. + { ac_try='test -s conftest$ac_exeext'
  17558. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17559. + (eval $ac_try) 2>&5
  17560. + ac_status=$?
  17561. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17562. + (exit $ac_status); }; }; then
  17563. + ac_cv_lib_resolv_main=yes
  17564. +else
  17565. + echo "$as_me: failed program was:" >&5
  17566. +sed 's/^/| /' conftest.$ac_ext >&5
  17567. +
  17568. +ac_cv_lib_resolv_main=no
  17569. +fi
  17570. +rm -f conftest.err conftest.$ac_objext \
  17571. + conftest$ac_exeext conftest.$ac_ext
  17572. +LIBS=$ac_check_lib_save_LIBS
  17573. +fi
  17574. +echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
  17575. +echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
  17576. +if test $ac_cv_lib_resolv_main = yes; then
  17577. + cat >>confdefs.h <<_ACEOF
  17578. +@%:@define HAVE_LIBRESOLV 1
  17579. +_ACEOF
  17580. +
  17581. + LIBS="-lresolv $LIBS"
  17582. +
  17583. +else
  17584. + { { echo "$as_me:$LINENO: error: *** Unable to find libresolv!!!" >&5
  17585. +echo "$as_me: error: *** Unable to find libresolv!!!" >&2;}
  17586. + { (exit 1); exit 1; }; }
  17587. +
  17588. +fi
  17589. +
  17590. +
  17591. +LIBS=""
  17592. +
  17593. +INCLUDES="-I\$(top_srcdir)/src/include"
  17594. +CFLAGS="$INCLUDES $CFLAGS -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes"
  17595. +YACC="$YACC -d"
  17596. +
  17597. +cat >>confdefs.h <<\_ACEOF
  17598. +@%:@define YY_USE_CONST 1
  17599. +_ACEOF
  17600. +
  17601. +
  17602. +atmsigd_conf_dir=` test "x$exec_prefix" = xNONE && exec_prefix=$ac_default_prefix
  17603. + test "x$prefix" = xNONE && prefix=${exec_prefix}
  17604. + eval echo "$sysconfdir"`
  17605. +cat >>confdefs.h <<_ACEOF
  17606. +@%:@define ATMSIGD_CONF "$atmsigd_conf_dir/atmsigd.conf"
  17607. +_ACEOF
  17608. +
  17609. +
  17610. +
  17611. +# Check whether --with-uni or --without-uni was given.
  17612. +if test "${with_uni+set}" = set; then
  17613. + withval="$with_uni"
  17614. +
  17615. + case "$with_uni" in
  17616. + "3.0" ) cat >>confdefs.h <<\_ACEOF
  17617. +@%:@define UNI30 1
  17618. +_ACEOF
  17619. +
  17620. + ;;
  17621. + "3.1" ) cat >>confdefs.h <<\_ACEOF
  17622. +@%:@define UNI31 1
  17623. +_ACEOF
  17624. +
  17625. + ;;
  17626. + "4.0" ) cat >>confdefs.h <<\_ACEOF
  17627. +@%:@define UNI40 1
  17628. +_ACEOF
  17629. +
  17630. + ;;
  17631. + *)
  17632. + cat >>confdefs.h <<\_ACEOF
  17633. +@%:@define DYNAMIC_UNI 1
  17634. +_ACEOF
  17635. +
  17636. + { echo "$as_me:$LINENO: WARNING: *** UNI version not specified correctly. Defaulting to dynamic UNI." >&5
  17637. +echo "$as_me: WARNING: *** UNI version not specified correctly. Defaulting to dynamic UNI." >&2;}
  17638. + esac
  17639. +
  17640. +else
  17641. + cat >>confdefs.h <<\_ACEOF
  17642. +@%:@define DYNAMIC_UNI 1
  17643. +_ACEOF
  17644. +
  17645. +
  17646. +fi;
  17647. +
  17648. +# Check whether --enable-allow_uni30 or --disable-allow_uni30 was given.
  17649. +if test "${enable_allow_uni30+set}" = set; then
  17650. + enableval="$enable_allow_uni30"
  17651. +
  17652. + if test "$with_uni" = "3.1" ; then
  17653. + cat >>confdefs.h <<\_ACEOF
  17654. +@%:@define ALLOW_UNI30 1
  17655. +_ACEOF
  17656. +
  17657. + else
  17658. + { echo "$as_me:$LINENO: WARNING: *** Allow UNI 3.0 was not enabled. It is only valid when UNI 3.1 is specified as the default via --with-uni." >&5
  17659. +echo "$as_me: WARNING: *** Allow UNI 3.0 was not enabled. It is only valid when UNI 3.1 is specified as the default via --with-uni." >&2;}
  17660. + fi
  17661. +
  17662. +
  17663. +fi;
  17664. +
  17665. +# Check whether --enable-q2963_1 or --disable-q2963_1 was given.
  17666. +if test "${enable_q2963_1+set}" = set; then
  17667. + enableval="$enable_q2963_1"
  17668. +
  17669. + if test "$with_uni" = "4.0" ; then
  17670. + cat >>confdefs.h <<\_ACEOF
  17671. +@%:@define Q2963_1 1
  17672. +_ACEOF
  17673. +
  17674. + else
  17675. + { echo "$as_me:$LINENO: WARNING: *** Q.2963.1 was not enabled. It is only valid when UNI 4.0 is specified as the default via --with-uni." >&5
  17676. +echo "$as_me: WARNING: *** Q.2963.1 was not enabled. It is only valid when UNI 4.0 is specified as the default via --with-uni." >&2;}
  17677. + fi
  17678. +
  17679. +
  17680. +fi;
  17681. +
  17682. +# Check whether --enable-cisco or --disable-cisco was given.
  17683. +if test "${enable_cisco+set}" = set; then
  17684. + enableval="$enable_cisco"
  17685. + cat >>confdefs.h <<\_ACEOF
  17686. +@%:@define CISCO 1
  17687. +_ACEOF
  17688. +
  17689. +
  17690. +fi;
  17691. +
  17692. +# Check whether --enable-thomflex or --disable-thomflex was given.
  17693. +if test "${enable_thomflex+set}" = set; then
  17694. + enableval="$enable_thomflex"
  17695. + cat >>confdefs.h <<\_ACEOF
  17696. +@%:@define THOMFLEX 1
  17697. +_ACEOF
  17698. +
  17699. +
  17700. +fi;
  17701. +
  17702. +cat >>confdefs.h <<\_ACEOF
  17703. +@%:@define BROKEN_POLL 1
  17704. +_ACEOF
  17705. +
  17706. +
  17707. +# Check whether --enable-mpoa_1_1 or --disable-mpoa_1_1 was given.
  17708. +if test "${enable_mpoa_1_1+set}" = set; then
  17709. + enableval="$enable_mpoa_1_1"
  17710. + cat >>confdefs.h <<\_ACEOF
  17711. +@%:@define MPOA_1_1 1
  17712. +_ACEOF
  17713. +
  17714. +
  17715. +fi;
  17716. +
  17717. +# Check whether --enable-mpr or --disable-mpr was given.
  17718. +if test "${enable_mpr+set}" = set; then
  17719. + enableval="$enable_mpr"
  17720. +
  17721. + case "$enable_mpr" in
  17722. + "" | y | ye | yes | Y | YE | YES )
  17723. +
  17724. +echo "$as_me:$LINENO: checking for main in -lmpr" >&5
  17725. +echo $ECHO_N "checking for main in -lmpr... $ECHO_C" >&6
  17726. +if test "${ac_cv_lib_mpr_main+set}" = set; then
  17727. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17728. +else
  17729. + ac_check_lib_save_LIBS=$LIBS
  17730. +LIBS="-lmpr $LIBS"
  17731. +cat >conftest.$ac_ext <<_ACEOF
  17732. +/* confdefs.h. */
  17733. +_ACEOF
  17734. +cat confdefs.h >>conftest.$ac_ext
  17735. +cat >>conftest.$ac_ext <<_ACEOF
  17736. +/* end confdefs.h. */
  17737. +
  17738. +
  17739. +int
  17740. +main ()
  17741. +{
  17742. +main ();
  17743. + ;
  17744. + return 0;
  17745. +}
  17746. +_ACEOF
  17747. +rm -f conftest.$ac_objext conftest$ac_exeext
  17748. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17749. + (eval $ac_link) 2>conftest.er1
  17750. + ac_status=$?
  17751. + grep -v '^ *+' conftest.er1 >conftest.err
  17752. + rm -f conftest.er1
  17753. + cat conftest.err >&5
  17754. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17755. + (exit $ac_status); } &&
  17756. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17757. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17758. + (eval $ac_try) 2>&5
  17759. + ac_status=$?
  17760. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17761. + (exit $ac_status); }; } &&
  17762. + { ac_try='test -s conftest$ac_exeext'
  17763. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17764. + (eval $ac_try) 2>&5
  17765. + ac_status=$?
  17766. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17767. + (exit $ac_status); }; }; then
  17768. + ac_cv_lib_mpr_main=yes
  17769. +else
  17770. + echo "$as_me: failed program was:" >&5
  17771. +sed 's/^/| /' conftest.$ac_ext >&5
  17772. +
  17773. +ac_cv_lib_mpr_main=no
  17774. +fi
  17775. +rm -f conftest.err conftest.$ac_objext \
  17776. + conftest$ac_exeext conftest.$ac_ext
  17777. +LIBS=$ac_check_lib_save_LIBS
  17778. +fi
  17779. +echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
  17780. +echo "${ECHO_T}$ac_cv_lib_mpr_main" >&6
  17781. +if test $ac_cv_lib_mpr_main = yes; then
  17782. + cat >>confdefs.h <<_ACEOF
  17783. +@%:@define HAVE_LIBMPR 1
  17784. +_ACEOF
  17785. +
  17786. + LIBS="-lmpr $LIBS"
  17787. +
  17788. +else
  17789. +
  17790. + { echo "$as_me:$LINENO: WARNING: *** Could not find libmpr! Is MPR installed?" >&5
  17791. +echo "$as_me: WARNING: *** Could not find libmpr! Is MPR installed?" >&2;}
  17792. +
  17793. +
  17794. +fi
  17795. +
  17796. + ;;
  17797. + esac
  17798. +
  17799. +
  17800. +fi;
  17801. +
  17802. +
  17803. + ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/br2684/Makefile"
  17804. +cat >confcache <<\_ACEOF
  17805. +# This file is a shell script that caches the results of configure
  17806. +# tests run on this system so they can be shared between configure
  17807. +# scripts and configure runs, see configure's option --config-cache.
  17808. +# It is not useful on other systems. If it contains results you don't
  17809. +# want to keep, you may remove or edit it.
  17810. +#
  17811. +# config.status only pays attention to the cache file if you give it
  17812. +# the --recheck option to rerun configure.
  17813. +#
  17814. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  17815. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  17816. +# following values.
  17817. +
  17818. +_ACEOF
  17819. +
  17820. +# The following way of writing the cache mishandles newlines in values,
  17821. +# but we know of no workaround that is simple, portable, and efficient.
  17822. +# So, don't put newlines in cache variables' values.
  17823. +# Ultrix sh set writes to stderr and can't be redirected directly,
  17824. +# and sets the high bit in the cache file unless we assign to the vars.
  17825. +{
  17826. + (set) 2>&1 |
  17827. + case `(ac_space=' '; set | grep ac_space) 2>&1` in
  17828. + *ac_space=\ *)
  17829. + # `set' does not quote correctly, so add quotes (double-quote
  17830. + # substitution turns \\\\ into \\, and sed turns \\ into \).
  17831. + sed -n \
  17832. + "s/'/'\\\\''/g;
  17833. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17834. + ;;
  17835. + *)
  17836. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  17837. + sed -n \
  17838. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  17839. + ;;
  17840. + esac;
  17841. +} |
  17842. + sed '
  17843. + t clear
  17844. + : clear
  17845. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17846. + t end
  17847. + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17848. + : end' >>confcache
  17849. +if diff $cache_file confcache >/dev/null 2>&1; then :; else
  17850. + if test -w $cache_file; then
  17851. + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  17852. + cat confcache >$cache_file
  17853. + else
  17854. + echo "not updating unwritable cache $cache_file"
  17855. + fi
  17856. +fi
  17857. +rm -f confcache
  17858. +
  17859. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17860. +# Let make expand exec_prefix.
  17861. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17862. +
  17863. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  17864. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  17865. +# trailing colons and then remove the whole line if VPATH becomes empty
  17866. +# (actually we leave an empty line to preserve line numbers).
  17867. +if test "x$srcdir" = x.; then
  17868. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  17869. +s/:*\$(srcdir):*/:/;
  17870. +s/:*\${srcdir}:*/:/;
  17871. +s/:*@srcdir@:*/:/;
  17872. +s/^\([^=]*=[ ]*\):*/\1/;
  17873. +s/:*$//;
  17874. +s/^[^=]*=[ ]*$//;
  17875. +}'
  17876. +fi
  17877. +
  17878. +DEFS=-DHAVE_CONFIG_H
  17879. +
  17880. +ac_libobjs=
  17881. +ac_ltlibobjs=
  17882. +for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  17883. + # 1. Remove the extension, and $U if already installed.
  17884. + ac_i=`echo "$ac_i" |
  17885. + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  17886. + # 2. Add them.
  17887. + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  17888. + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  17889. +done
  17890. +LIB@&t@OBJS=$ac_libobjs
  17891. +
  17892. +LTLIBOBJS=$ac_ltlibobjs
  17893. +
  17894. +
  17895. +
  17896. +: ${CONFIG_STATUS=./config.status}
  17897. +ac_clean_files_save=$ac_clean_files
  17898. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17899. +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  17900. +echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17901. +cat >$CONFIG_STATUS <<_ACEOF
  17902. +#! $SHELL
  17903. +# Generated by $as_me.
  17904. +# Run this file to recreate the current configuration.
  17905. +# Compiler output produced by configure, useful for debugging
  17906. +# configure, is in config.log if it exists.
  17907. +
  17908. +debug=false
  17909. +ac_cs_recheck=false
  17910. +ac_cs_silent=false
  17911. +SHELL=\${CONFIG_SHELL-$SHELL}
  17912. +_ACEOF
  17913. +
  17914. +cat >>$CONFIG_STATUS <<\_ACEOF
  17915. +## --------------------- ##
  17916. +## M4sh Initialization. ##
  17917. +## --------------------- ##
  17918. +
  17919. +# Be Bourne compatible
  17920. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17921. + emulate sh
  17922. + NULLCMD=:
  17923. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17924. + # is contrary to our usage. Disable this feature.
  17925. + alias -g '${1+"$@"}'='"$@"'
  17926. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  17927. + set -o posix
  17928. +fi
  17929. +DUALCASE=1; export DUALCASE # for MKS sh
  17930. +
  17931. +# Support unset when possible.
  17932. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  17933. + as_unset=unset
  17934. +else
  17935. + as_unset=false
  17936. +fi
  17937. +
  17938. +
  17939. +# Work around bugs in pre-3.0 UWIN ksh.
  17940. +$as_unset ENV MAIL MAILPATH
  17941. +PS1='$ '
  17942. +PS2='> '
  17943. +PS4='+ '
  17944. +
  17945. +# NLS nuisances.
  17946. +for as_var in \
  17947. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  17948. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  17949. + LC_TELEPHONE LC_TIME
  17950. +do
  17951. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  17952. + eval $as_var=C; export $as_var
  17953. + else
  17954. + $as_unset $as_var
  17955. + fi
  17956. +done
  17957. +
  17958. +# Required to use basename.
  17959. +if expr a : '\(a\)' >/dev/null 2>&1; then
  17960. + as_expr=expr
  17961. +else
  17962. + as_expr=false
  17963. +fi
  17964. +
  17965. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  17966. + as_basename=basename
  17967. +else
  17968. + as_basename=false
  17969. +fi
  17970. +
  17971. +
  17972. +# Name of the executable.
  17973. +as_me=`$as_basename "$0" ||
  17974. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17975. + X"$0" : 'X\(//\)$' \| \
  17976. + X"$0" : 'X\(/\)$' \| \
  17977. + . : '\(.\)' 2>/dev/null ||
  17978. +echo X/"$0" |
  17979. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  17980. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  17981. + /^X\/\(\/\).*/{ s//\1/; q; }
  17982. + s/.*/./; q'`
  17983. +
  17984. +
  17985. +# PATH needs CR, and LINENO needs CR and PATH.
  17986. +# Avoid depending upon Character Ranges.
  17987. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17988. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17989. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17990. +as_cr_digits='0123456789'
  17991. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  17992. +
  17993. +# The user is always right.
  17994. +if test "${PATH_SEPARATOR+set}" != set; then
  17995. + echo "#! /bin/sh" >conf$$.sh
  17996. + echo "exit 0" >>conf$$.sh
  17997. + chmod +x conf$$.sh
  17998. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  17999. + PATH_SEPARATOR=';'
  18000. + else
  18001. + PATH_SEPARATOR=:
  18002. + fi
  18003. + rm -f conf$$.sh
  18004. +fi
  18005. +
  18006. +
  18007. + as_lineno_1=$LINENO
  18008. + as_lineno_2=$LINENO
  18009. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  18010. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  18011. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  18012. + # Find who we are. Look in the path if we contain no path at all
  18013. + # relative or not.
  18014. + case $0 in
  18015. + *[\\/]* ) as_myself=$0 ;;
  18016. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18017. +for as_dir in $PATH
  18018. +do
  18019. + IFS=$as_save_IFS
  18020. + test -z "$as_dir" && as_dir=.
  18021. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18022. +done
  18023. +
  18024. + ;;
  18025. + esac
  18026. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  18027. + # in which case we are not to be found in the path.
  18028. + if test "x$as_myself" = x; then
  18029. + as_myself=$0
  18030. + fi
  18031. + if test ! -f "$as_myself"; then
  18032. + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  18033. +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  18034. + { (exit 1); exit 1; }; }
  18035. + fi
  18036. + case $CONFIG_SHELL in
  18037. + '')
  18038. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18039. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  18040. +do
  18041. + IFS=$as_save_IFS
  18042. + test -z "$as_dir" && as_dir=.
  18043. + for as_base in sh bash ksh sh5; do
  18044. + case $as_dir in
  18045. + /*)
  18046. + if ("$as_dir/$as_base" -c '
  18047. + as_lineno_1=$LINENO
  18048. + as_lineno_2=$LINENO
  18049. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  18050. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  18051. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  18052. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  18053. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  18054. + CONFIG_SHELL=$as_dir/$as_base
  18055. + export CONFIG_SHELL
  18056. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  18057. + fi;;
  18058. + esac
  18059. + done
  18060. +done
  18061. +;;
  18062. + esac
  18063. +
  18064. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  18065. + # uniformly replaced by the line number. The first 'sed' inserts a
  18066. + # line-number line before each line; the second 'sed' does the real
  18067. + # work. The second script uses 'N' to pair each line-number line
  18068. + # with the numbered line, and appends trailing '-' during
  18069. + # substitution so that $LINENO is not a special case at line end.
  18070. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  18071. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  18072. + sed '=' <$as_myself |
  18073. + sed '
  18074. + N
  18075. + s,$,-,
  18076. + : loop
  18077. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  18078. + t loop
  18079. + s,-$,,
  18080. + s,^['$as_cr_digits']*\n,,
  18081. + ' >$as_me.lineno &&
  18082. + chmod +x $as_me.lineno ||
  18083. + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  18084. +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  18085. + { (exit 1); exit 1; }; }
  18086. +
  18087. + # Don't try to exec as it changes $[0], causing all sort of problems
  18088. + # (the dirname of $[0] is not the place where we might find the
  18089. + # original and so on. Autoconf is especially sensible to this).
  18090. + . ./$as_me.lineno
  18091. + # Exit status is that of the last command.
  18092. + exit
  18093. +}
  18094. +
  18095. +
  18096. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  18097. + *c*,-n*) ECHO_N= ECHO_C='
  18098. +' ECHO_T=' ' ;;
  18099. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  18100. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  18101. +esac
  18102. +
  18103. +if expr a : '\(a\)' >/dev/null 2>&1; then
  18104. + as_expr=expr
  18105. +else
  18106. + as_expr=false
  18107. +fi
  18108. +
  18109. +rm -f conf$$ conf$$.exe conf$$.file
  18110. +echo >conf$$.file
  18111. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  18112. + # We could just check for DJGPP; but this test a) works b) is more generic
  18113. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  18114. + if test -f conf$$.exe; then
  18115. + # Don't use ln at all; we don't have any links
  18116. + as_ln_s='cp -p'
  18117. + else
  18118. + as_ln_s='ln -s'
  18119. + fi
  18120. +elif ln conf$$.file conf$$ 2>/dev/null; then
  18121. + as_ln_s=ln
  18122. +else
  18123. + as_ln_s='cp -p'
  18124. +fi
  18125. +rm -f conf$$ conf$$.exe conf$$.file
  18126. +
  18127. +if mkdir -p . 2>/dev/null; then
  18128. + as_mkdir_p=:
  18129. +else
  18130. + test -d ./-p && rmdir ./-p
  18131. + as_mkdir_p=false
  18132. +fi
  18133. +
  18134. +as_executable_p="test -f"
  18135. +
  18136. +# Sed expression to map a string onto a valid CPP name.
  18137. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18138. +
  18139. +# Sed expression to map a string onto a valid variable name.
  18140. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18141. +
  18142. +
  18143. +# IFS
  18144. +# We need space, tab and new line, in precisely that order.
  18145. +as_nl='
  18146. +'
  18147. +IFS=" $as_nl"
  18148. +
  18149. +# CDPATH.
  18150. +$as_unset CDPATH
  18151. +
  18152. +exec 6>&1
  18153. +
  18154. +# Open the log real soon, to keep \$[0] and so on meaningful, and to
  18155. +# report actual input values of CONFIG_FILES etc. instead of their
  18156. +# values after options handling. Logging --version etc. is OK.
  18157. +exec 5>>config.log
  18158. +{
  18159. + echo
  18160. + sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  18161. +@%:@@%:@ Running $as_me. @%:@@%:@
  18162. +_ASBOX
  18163. +} >&5
  18164. +cat >&5 <<_CSEOF
  18165. +
  18166. +This file was extended by $as_me, which was
  18167. +generated by GNU Autoconf 2.59. Invocation command line was
  18168. +
  18169. + CONFIG_FILES = $CONFIG_FILES
  18170. + CONFIG_HEADERS = $CONFIG_HEADERS
  18171. + CONFIG_LINKS = $CONFIG_LINKS
  18172. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  18173. + $ $0 $@
  18174. +
  18175. +_CSEOF
  18176. +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  18177. +echo >&5
  18178. +_ACEOF
  18179. +
  18180. +# Files that config.status was made for.
  18181. +if test -n "$ac_config_files"; then
  18182. + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  18183. +fi
  18184. +
  18185. +if test -n "$ac_config_headers"; then
  18186. + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  18187. +fi
  18188. +
  18189. +if test -n "$ac_config_links"; then
  18190. + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  18191. +fi
  18192. +
  18193. +if test -n "$ac_config_commands"; then
  18194. + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  18195. +fi
  18196. +
  18197. +cat >>$CONFIG_STATUS <<\_ACEOF
  18198. +
  18199. +ac_cs_usage="\
  18200. +\`$as_me' instantiates files from templates according to the
  18201. +current configuration.
  18202. +
  18203. +Usage: $0 [OPTIONS] [FILE]...
  18204. +
  18205. + -h, --help print this help, then exit
  18206. + -V, --version print version number, then exit
  18207. + -q, --quiet do not print progress messages
  18208. + -d, --debug don't remove temporary files
  18209. + --recheck update $as_me by reconfiguring in the same conditions
  18210. + --file=FILE[:TEMPLATE]
  18211. + instantiate the configuration file FILE
  18212. + --header=FILE[:TEMPLATE]
  18213. + instantiate the configuration header FILE
  18214. +
  18215. +Configuration files:
  18216. +$config_files
  18217. +
  18218. +Configuration headers:
  18219. +$config_headers
  18220. +
  18221. +Configuration commands:
  18222. +$config_commands
  18223. +
  18224. +Report bugs to <bug-autoconf@gnu.org>."
  18225. +_ACEOF
  18226. +
  18227. +cat >>$CONFIG_STATUS <<_ACEOF
  18228. +ac_cs_version="\\
  18229. +config.status
  18230. +configured by $0, generated by GNU Autoconf 2.59,
  18231. + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  18232. +
  18233. +Copyright (C) 2003 Free Software Foundation, Inc.
  18234. +This config.status script is free software; the Free Software Foundation
  18235. +gives unlimited permission to copy, distribute and modify it."
  18236. +srcdir=$srcdir
  18237. +INSTALL="$INSTALL"
  18238. +_ACEOF
  18239. +
  18240. +cat >>$CONFIG_STATUS <<\_ACEOF
  18241. +# If no file are specified by the user, then we need to provide default
  18242. +# value. By we need to know if files were specified by the user.
  18243. +ac_need_defaults=:
  18244. +while test $# != 0
  18245. +do
  18246. + case $1 in
  18247. + --*=*)
  18248. + ac_option=`expr "x$1" : 'x\([^=]*\)='`
  18249. + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  18250. + ac_shift=:
  18251. + ;;
  18252. + -*)
  18253. + ac_option=$1
  18254. + ac_optarg=$2
  18255. + ac_shift=shift
  18256. + ;;
  18257. + *) # This is not an option, so the user has probably given explicit
  18258. + # arguments.
  18259. + ac_option=$1
  18260. + ac_need_defaults=false;;
  18261. + esac
  18262. +
  18263. + case $ac_option in
  18264. + # Handling of the options.
  18265. +_ACEOF
  18266. +cat >>$CONFIG_STATUS <<\_ACEOF
  18267. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18268. + ac_cs_recheck=: ;;
  18269. + --version | --vers* | -V )
  18270. + echo "$ac_cs_version"; exit 0 ;;
  18271. + --he | --h)
  18272. + # Conflict between --help and --header
  18273. + { { echo "$as_me:$LINENO: error: ambiguous option: $1
  18274. +Try \`$0 --help' for more information." >&5
  18275. +echo "$as_me: error: ambiguous option: $1
  18276. +Try \`$0 --help' for more information." >&2;}
  18277. + { (exit 1); exit 1; }; };;
  18278. + --help | --hel | -h )
  18279. + echo "$ac_cs_usage"; exit 0 ;;
  18280. + --debug | --d* | -d )
  18281. + debug=: ;;
  18282. + --file | --fil | --fi | --f )
  18283. + $ac_shift
  18284. + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  18285. + ac_need_defaults=false;;
  18286. + --header | --heade | --head | --hea )
  18287. + $ac_shift
  18288. + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  18289. + ac_need_defaults=false;;
  18290. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18291. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18292. + ac_cs_silent=: ;;
  18293. +
  18294. + # This is an error.
  18295. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  18296. +Try \`$0 --help' for more information." >&5
  18297. +echo "$as_me: error: unrecognized option: $1
  18298. +Try \`$0 --help' for more information." >&2;}
  18299. + { (exit 1); exit 1; }; } ;;
  18300. +
  18301. + *) ac_config_targets="$ac_config_targets $1" ;;
  18302. +
  18303. + esac
  18304. + shift
  18305. +done
  18306. +
  18307. +ac_configure_extra_args=
  18308. +
  18309. +if $ac_cs_silent; then
  18310. + exec 6>/dev/null
  18311. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  18312. +fi
  18313. +
  18314. +_ACEOF
  18315. +cat >>$CONFIG_STATUS <<_ACEOF
  18316. +if \$ac_cs_recheck; then
  18317. + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  18318. + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18319. +fi
  18320. +
  18321. +_ACEOF
  18322. +
  18323. +cat >>$CONFIG_STATUS <<_ACEOF
  18324. +#
  18325. +# INIT-COMMANDS section.
  18326. +#
  18327. +
  18328. +
  18329. +
  18330. +_ACEOF
  18331. +
  18332. +
  18333. +
  18334. +cat >>$CONFIG_STATUS <<\_ACEOF
  18335. +for ac_config_target in $ac_config_targets
  18336. +do
  18337. + case "$ac_config_target" in
  18338. + # Handling of arguments.
  18339. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18340. + "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  18341. + "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  18342. + "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  18343. + "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
  18344. + "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
  18345. + "src/br2684/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/br2684/Makefile" ;;
  18346. + "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  18347. + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  18348. + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  18349. +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  18350. + { (exit 1); exit 1; }; };;
  18351. + esac
  18352. +done
  18353. +
  18354. +# If the user did not use the arguments to specify the items to instantiate,
  18355. +# then the envvar interface is used. Set only those that are not.
  18356. +# We use the long form for the default assignment because of an extremely
  18357. +# bizarre bug on SunOS 4.1.3.
  18358. +if $ac_need_defaults; then
  18359. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18360. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  18361. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18362. +fi
  18363. +
  18364. +# Have a temporary directory for convenience. Make it in the build tree
  18365. +# simply because there is no reason to put it here, and in addition,
  18366. +# creating and moving files from /tmp can sometimes cause problems.
  18367. +# Create a temporary directory, and hook for its removal unless debugging.
  18368. +$debug ||
  18369. +{
  18370. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  18371. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  18372. +}
  18373. +
  18374. +# Create a (secure) tmp directory for tmp files.
  18375. +
  18376. +{
  18377. + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  18378. + test -n "$tmp" && test -d "$tmp"
  18379. +} ||
  18380. +{
  18381. + tmp=./confstat$$-$RANDOM
  18382. + (umask 077 && mkdir $tmp)
  18383. +} ||
  18384. +{
  18385. + echo "$me: cannot create a temporary directory in ." >&2
  18386. + { (exit 1); exit 1; }
  18387. +}
  18388. +
  18389. +_ACEOF
  18390. +
  18391. +cat >>$CONFIG_STATUS <<_ACEOF
  18392. +
  18393. +#
  18394. +# CONFIG_FILES section.
  18395. +#
  18396. +
  18397. +# No need to generate the scripts if there are no CONFIG_FILES.
  18398. +# This happens for instance when ./config.status config.h
  18399. +if test -n "\$CONFIG_FILES"; then
  18400. + # Protect against being on the right side of a sed subst in config.status.
  18401. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  18402. + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  18403. +s,@SHELL@,$SHELL,;t t
  18404. +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  18405. +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  18406. +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  18407. +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  18408. +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  18409. +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  18410. +s,@exec_prefix@,$exec_prefix,;t t
  18411. +s,@prefix@,$prefix,;t t
  18412. +s,@program_transform_name@,$program_transform_name,;t t
  18413. +s,@bindir@,$bindir,;t t
  18414. +s,@sbindir@,$sbindir,;t t
  18415. +s,@libexecdir@,$libexecdir,;t t
  18416. +s,@datadir@,$datadir,;t t
  18417. +s,@sysconfdir@,$sysconfdir,;t t
  18418. +s,@sharedstatedir@,$sharedstatedir,;t t
  18419. +s,@localstatedir@,$localstatedir,;t t
  18420. +s,@libdir@,$libdir,;t t
  18421. +s,@includedir@,$includedir,;t t
  18422. +s,@oldincludedir@,$oldincludedir,;t t
  18423. +s,@infodir@,$infodir,;t t
  18424. +s,@mandir@,$mandir,;t t
  18425. +s,@build_alias@,$build_alias,;t t
  18426. +s,@host_alias@,$host_alias,;t t
  18427. +s,@target_alias@,$target_alias,;t t
  18428. +s,@DEFS@,$DEFS,;t t
  18429. +s,@ECHO_C@,$ECHO_C,;t t
  18430. +s,@ECHO_N@,$ECHO_N,;t t
  18431. +s,@ECHO_T@,$ECHO_T,;t t
  18432. +s,@LIBS@,$LIBS,;t t
  18433. +s,@build@,$build,;t t
  18434. +s,@build_cpu@,$build_cpu,;t t
  18435. +s,@build_vendor@,$build_vendor,;t t
  18436. +s,@build_os@,$build_os,;t t
  18437. +s,@host@,$host,;t t
  18438. +s,@host_cpu@,$host_cpu,;t t
  18439. +s,@host_vendor@,$host_vendor,;t t
  18440. +s,@host_os@,$host_os,;t t
  18441. +s,@target@,$target,;t t
  18442. +s,@target_cpu@,$target_cpu,;t t
  18443. +s,@target_vendor@,$target_vendor,;t t
  18444. +s,@target_os@,$target_os,;t t
  18445. +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  18446. +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  18447. +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  18448. +s,@PACKAGE@,$PACKAGE,;t t
  18449. +s,@VERSION@,$VERSION,;t t
  18450. +s,@ACLOCAL@,$ACLOCAL,;t t
  18451. +s,@AUTOCONF@,$AUTOCONF,;t t
  18452. +s,@AUTOMAKE@,$AUTOMAKE,;t t
  18453. +s,@AUTOHEADER@,$AUTOHEADER,;t t
  18454. +s,@MAKEINFO@,$MAKEINFO,;t t
  18455. +s,@SET_MAKE@,$SET_MAKE,;t t
  18456. +s,@LIBVER_CURRENT@,$LIBVER_CURRENT,;t t
  18457. +s,@LIBVER_REVISION@,$LIBVER_REVISION,;t t
  18458. +s,@LIBVER_AGE@,$LIBVER_AGE,;t t
  18459. +s,@CC@,$CC,;t t
  18460. +s,@CFLAGS@,$CFLAGS,;t t
  18461. +s,@LDFLAGS@,$LDFLAGS,;t t
  18462. +s,@CPPFLAGS@,$CPPFLAGS,;t t
  18463. +s,@ac_ct_CC@,$ac_ct_CC,;t t
  18464. +s,@EXEEXT@,$EXEEXT,;t t
  18465. +s,@OBJEXT@,$OBJEXT,;t t
  18466. +s,@LEX@,$LEX,;t t
  18467. +s,@LEXLIB@,$LEXLIB,;t t
  18468. +s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
  18469. +s,@YACC@,$YACC,;t t
  18470. +s,@LN_S@,$LN_S,;t t
  18471. +s,@ECHO@,$ECHO,;t t
  18472. +s,@RANLIB@,$RANLIB,;t t
  18473. +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  18474. +s,@STRIP@,$STRIP,;t t
  18475. +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  18476. +s,@CPP@,$CPP,;t t
  18477. +s,@EGREP@,$EGREP,;t t
  18478. +s,@LIBTOOL@,$LIBTOOL,;t t
  18479. +s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
  18480. +s,@PERL@,$PERL,;t t
  18481. +s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
  18482. +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  18483. +CEOF
  18484. +
  18485. +_ACEOF
  18486. +
  18487. + cat >>$CONFIG_STATUS <<\_ACEOF
  18488. + # Split the substitutions into bite-sized pieces for seds with
  18489. + # small command number limits, like on Digital OSF/1 and HP-UX.
  18490. + ac_max_sed_lines=48
  18491. + ac_sed_frag=1 # Number of current file.
  18492. + ac_beg=1 # First line for current file.
  18493. + ac_end=$ac_max_sed_lines # Line after last line for current file.
  18494. + ac_more_lines=:
  18495. + ac_sed_cmds=
  18496. + while $ac_more_lines; do
  18497. + if test $ac_beg -gt 1; then
  18498. + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  18499. + else
  18500. + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  18501. + fi
  18502. + if test ! -s $tmp/subs.frag; then
  18503. + ac_more_lines=false
  18504. + else
  18505. + # The purpose of the label and of the branching condition is to
  18506. + # speed up the sed processing (if there are no `@' at all, there
  18507. + # is no need to browse any of the substitutions).
  18508. + # These are the two extra sed commands mentioned above.
  18509. + (echo ':t
  18510. + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  18511. + if test -z "$ac_sed_cmds"; then
  18512. + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  18513. + else
  18514. + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  18515. + fi
  18516. + ac_sed_frag=`expr $ac_sed_frag + 1`
  18517. + ac_beg=$ac_end
  18518. + ac_end=`expr $ac_end + $ac_max_sed_lines`
  18519. + fi
  18520. + done
  18521. + if test -z "$ac_sed_cmds"; then
  18522. + ac_sed_cmds=cat
  18523. + fi
  18524. +fi # test -n "$CONFIG_FILES"
  18525. +
  18526. +_ACEOF
  18527. +cat >>$CONFIG_STATUS <<\_ACEOF
  18528. +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  18529. + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  18530. + case $ac_file in
  18531. + - | *:- | *:-:* ) # input from stdin
  18532. + cat >$tmp/stdin
  18533. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  18534. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  18535. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  18536. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  18537. + * ) ac_file_in=$ac_file.in ;;
  18538. + esac
  18539. +
  18540. + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  18541. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  18542. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18543. + X"$ac_file" : 'X\(//\)[^/]' \| \
  18544. + X"$ac_file" : 'X\(//\)$' \| \
  18545. + X"$ac_file" : 'X\(/\)' \| \
  18546. + . : '\(.\)' 2>/dev/null ||
  18547. +echo X"$ac_file" |
  18548. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  18549. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  18550. + /^X\(\/\/\)$/{ s//\1/; q; }
  18551. + /^X\(\/\).*/{ s//\1/; q; }
  18552. + s/.*/./; q'`
  18553. + { if $as_mkdir_p; then
  18554. + mkdir -p "$ac_dir"
  18555. + else
  18556. + as_dir="$ac_dir"
  18557. + as_dirs=
  18558. + while test ! -d "$as_dir"; do
  18559. + as_dirs="$as_dir $as_dirs"
  18560. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  18561. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18562. + X"$as_dir" : 'X\(//\)[^/]' \| \
  18563. + X"$as_dir" : 'X\(//\)$' \| \
  18564. + X"$as_dir" : 'X\(/\)' \| \
  18565. + . : '\(.\)' 2>/dev/null ||
  18566. +echo X"$as_dir" |
  18567. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  18568. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  18569. + /^X\(\/\/\)$/{ s//\1/; q; }
  18570. + /^X\(\/\).*/{ s//\1/; q; }
  18571. + s/.*/./; q'`
  18572. + done
  18573. + test ! -n "$as_dirs" || mkdir $as_dirs
  18574. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  18575. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  18576. + { (exit 1); exit 1; }; }; }
  18577. +
  18578. + ac_builddir=.
  18579. +
  18580. +if test "$ac_dir" != .; then
  18581. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  18582. + # A "../" for each directory in $ac_dir_suffix.
  18583. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  18584. +else
  18585. + ac_dir_suffix= ac_top_builddir=
  18586. +fi
  18587. +
  18588. +case $srcdir in
  18589. + .) # No --srcdir option. We are building in place.
  18590. + ac_srcdir=.
  18591. + if test -z "$ac_top_builddir"; then
  18592. + ac_top_srcdir=.
  18593. + else
  18594. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  18595. + fi ;;
  18596. + [\\/]* | ?:[\\/]* ) # Absolute path.
  18597. + ac_srcdir=$srcdir$ac_dir_suffix;
  18598. + ac_top_srcdir=$srcdir ;;
  18599. + *) # Relative path.
  18600. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  18601. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  18602. +esac
  18603. +
  18604. +# Do not use `cd foo && pwd` to compute absolute paths, because
  18605. +# the directories may not exist.
  18606. +case `pwd` in
  18607. +.) ac_abs_builddir="$ac_dir";;
  18608. +*)
  18609. + case "$ac_dir" in
  18610. + .) ac_abs_builddir=`pwd`;;
  18611. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  18612. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  18613. + esac;;
  18614. +esac
  18615. +case $ac_abs_builddir in
  18616. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  18617. +*)
  18618. + case ${ac_top_builddir}. in
  18619. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  18620. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  18621. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  18622. + esac;;
  18623. +esac
  18624. +case $ac_abs_builddir in
  18625. +.) ac_abs_srcdir=$ac_srcdir;;
  18626. +*)
  18627. + case $ac_srcdir in
  18628. + .) ac_abs_srcdir=$ac_abs_builddir;;
  18629. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  18630. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  18631. + esac;;
  18632. +esac
  18633. +case $ac_abs_builddir in
  18634. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  18635. +*)
  18636. + case $ac_top_srcdir in
  18637. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  18638. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  18639. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  18640. + esac;;
  18641. +esac
  18642. +
  18643. +
  18644. + case $INSTALL in
  18645. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  18646. + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  18647. + esac
  18648. +
  18649. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  18650. + # use $as_me), people would be surprised to read:
  18651. + # /* config.h. Generated by config.status. */
  18652. + if test x"$ac_file" = x-; then
  18653. + configure_input=
  18654. + else
  18655. + configure_input="$ac_file. "
  18656. + fi
  18657. + configure_input=$configure_input"Generated from `echo $ac_file_in |
  18658. + sed 's,.*/,,'` by configure."
  18659. +
  18660. + # First look for the input files in the build tree, otherwise in the
  18661. + # src tree.
  18662. + ac_file_inputs=`IFS=:
  18663. + for f in $ac_file_in; do
  18664. + case $f in
  18665. + -) echo $tmp/stdin ;;
  18666. + [\\/$]*)
  18667. + # Absolute (can't be DOS-style, as IFS=:)
  18668. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  18669. +echo "$as_me: error: cannot find input file: $f" >&2;}
  18670. + { (exit 1); exit 1; }; }
  18671. + echo "$f";;
  18672. + *) # Relative
  18673. + if test -f "$f"; then
  18674. + # Build tree
  18675. + echo "$f"
  18676. + elif test -f "$srcdir/$f"; then
  18677. + # Source tree
  18678. + echo "$srcdir/$f"
  18679. + else
  18680. + # /dev/null tree
  18681. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  18682. +echo "$as_me: error: cannot find input file: $f" >&2;}
  18683. + { (exit 1); exit 1; }; }
  18684. + fi;;
  18685. + esac
  18686. + done` || { (exit 1); exit 1; }
  18687. +
  18688. + if test x"$ac_file" != x-; then
  18689. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  18690. +echo "$as_me: creating $ac_file" >&6;}
  18691. + rm -f "$ac_file"
  18692. + fi
  18693. +_ACEOF
  18694. +cat >>$CONFIG_STATUS <<_ACEOF
  18695. + sed "$ac_vpsub
  18696. +$extrasub
  18697. +_ACEOF
  18698. +cat >>$CONFIG_STATUS <<\_ACEOF
  18699. +:t
  18700. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18701. +s,@configure_input@,$configure_input,;t t
  18702. +s,@srcdir@,$ac_srcdir,;t t
  18703. +s,@abs_srcdir@,$ac_abs_srcdir,;t t
  18704. +s,@top_srcdir@,$ac_top_srcdir,;t t
  18705. +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  18706. +s,@builddir@,$ac_builddir,;t t
  18707. +s,@abs_builddir@,$ac_abs_builddir,;t t
  18708. +s,@top_builddir@,$ac_top_builddir,;t t
  18709. +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  18710. +s,@INSTALL@,$ac_INSTALL,;t t
  18711. +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  18712. + rm -f $tmp/stdin
  18713. + if test x"$ac_file" != x-; then
  18714. + mv $tmp/out $ac_file
  18715. + else
  18716. + cat $tmp/out
  18717. + rm -f $tmp/out
  18718. + fi
  18719. +
  18720. +done
  18721. +_ACEOF
  18722. +cat >>$CONFIG_STATUS <<\_ACEOF
  18723. +
  18724. +#
  18725. +# CONFIG_HEADER section.
  18726. +#
  18727. +
  18728. +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  18729. +# NAME is the cpp macro being defined and VALUE is the value it is being given.
  18730. +#
  18731. +# ac_d sets the value in "#define NAME VALUE" lines.
  18732. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  18733. +ac_dB='[ ].*$,\1#\2'
  18734. +ac_dC=' '
  18735. +ac_dD=',;t'
  18736. +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  18737. +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  18738. +ac_uB='$,\1#\2define\3'
  18739. +ac_uC=' '
  18740. +ac_uD=',;t'
  18741. +
  18742. +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  18743. + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  18744. + case $ac_file in
  18745. + - | *:- | *:-:* ) # input from stdin
  18746. + cat >$tmp/stdin
  18747. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  18748. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  18749. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  18750. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  18751. + * ) ac_file_in=$ac_file.in ;;
  18752. + esac
  18753. +
  18754. + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  18755. +echo "$as_me: creating $ac_file" >&6;}
  18756. +
  18757. + # First look for the input files in the build tree, otherwise in the
  18758. + # src tree.
  18759. + ac_file_inputs=`IFS=:
  18760. + for f in $ac_file_in; do
  18761. + case $f in
  18762. + -) echo $tmp/stdin ;;
  18763. + [\\/$]*)
  18764. + # Absolute (can't be DOS-style, as IFS=:)
  18765. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  18766. +echo "$as_me: error: cannot find input file: $f" >&2;}
  18767. + { (exit 1); exit 1; }; }
  18768. + # Do quote $f, to prevent DOS paths from being IFS'd.
  18769. + echo "$f";;
  18770. + *) # Relative
  18771. + if test -f "$f"; then
  18772. + # Build tree
  18773. + echo "$f"
  18774. + elif test -f "$srcdir/$f"; then
  18775. + # Source tree
  18776. + echo "$srcdir/$f"
  18777. + else
  18778. + # /dev/null tree
  18779. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  18780. +echo "$as_me: error: cannot find input file: $f" >&2;}
  18781. + { (exit 1); exit 1; }; }
  18782. + fi;;
  18783. + esac
  18784. + done` || { (exit 1); exit 1; }
  18785. + # Remove the trailing spaces.
  18786. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  18787. +
  18788. +_ACEOF
  18789. +
  18790. +# Transform confdefs.h into two sed scripts, `conftest.defines' and
  18791. +# `conftest.undefs', that substitutes the proper values into
  18792. +# config.h.in to produce config.h. The first handles `#define'
  18793. +# templates, and the second `#undef' templates.
  18794. +# And first: Protect against being on the right side of a sed subst in
  18795. +# config.status. Protect against being in an unquoted here document
  18796. +# in config.status.
  18797. +rm -f conftest.defines conftest.undefs
  18798. +# Using a here document instead of a string reduces the quoting nightmare.
  18799. +# Putting comments in sed scripts is not portable.
  18800. +#
  18801. +# `end' is used to avoid that the second main sed command (meant for
  18802. +# 0-ary CPP macros) applies to n-ary macro definitions.
  18803. +# See the Autoconf documentation for `clear'.
  18804. +cat >confdef2sed.sed <<\_ACEOF
  18805. +s/[\\&,]/\\&/g
  18806. +s,[\\$`],\\&,g
  18807. +t clear
  18808. +: clear
  18809. +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  18810. +t end
  18811. +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  18812. +: end
  18813. +_ACEOF
  18814. +# If some macros were called several times there might be several times
  18815. +# the same #defines, which is useless. Nevertheless, we may not want to
  18816. +# sort them, since we want the *last* AC-DEFINE to be honored.
  18817. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  18818. +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  18819. +rm -f confdef2sed.sed
  18820. +
  18821. +# This sed command replaces #undef with comments. This is necessary, for
  18822. +# example, in the case of _POSIX_SOURCE, which is predefined and required
  18823. +# on some systems where configure will not decide to define it.
  18824. +cat >>conftest.undefs <<\_ACEOF
  18825. +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  18826. +_ACEOF
  18827. +
  18828. +# Break up conftest.defines because some shells have a limit on the size
  18829. +# of here documents, and old seds have small limits too (100 cmds).
  18830. +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  18831. +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  18832. +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  18833. +echo ' :' >>$CONFIG_STATUS
  18834. +rm -f conftest.tail
  18835. +while grep . conftest.defines >/dev/null
  18836. +do
  18837. + # Write a limited-size here document to $tmp/defines.sed.
  18838. + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  18839. + # Speed up: don't consider the non `#define' lines.
  18840. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  18841. + # Work around the forget-to-reset-the-flag bug.
  18842. + echo 't clr' >>$CONFIG_STATUS
  18843. + echo ': clr' >>$CONFIG_STATUS
  18844. + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  18845. + echo 'CEOF
  18846. + sed -f $tmp/defines.sed $tmp/in >$tmp/out
  18847. + rm -f $tmp/in
  18848. + mv $tmp/out $tmp/in
  18849. +' >>$CONFIG_STATUS
  18850. + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  18851. + rm -f conftest.defines
  18852. + mv conftest.tail conftest.defines
  18853. +done
  18854. +rm -f conftest.defines
  18855. +echo ' fi # grep' >>$CONFIG_STATUS
  18856. +echo >>$CONFIG_STATUS
  18857. +
  18858. +# Break up conftest.undefs because some shells have a limit on the size
  18859. +# of here documents, and old seds have small limits too (100 cmds).
  18860. +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  18861. +rm -f conftest.tail
  18862. +while grep . conftest.undefs >/dev/null
  18863. +do
  18864. + # Write a limited-size here document to $tmp/undefs.sed.
  18865. + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  18866. + # Speed up: don't consider the non `#undef'
  18867. + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  18868. + # Work around the forget-to-reset-the-flag bug.
  18869. + echo 't clr' >>$CONFIG_STATUS
  18870. + echo ': clr' >>$CONFIG_STATUS
  18871. + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  18872. + echo 'CEOF
  18873. + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  18874. + rm -f $tmp/in
  18875. + mv $tmp/out $tmp/in
  18876. +' >>$CONFIG_STATUS
  18877. + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  18878. + rm -f conftest.undefs
  18879. + mv conftest.tail conftest.undefs
  18880. +done
  18881. +rm -f conftest.undefs
  18882. +
  18883. +cat >>$CONFIG_STATUS <<\_ACEOF
  18884. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  18885. + # use $as_me), people would be surprised to read:
  18886. + # /* config.h. Generated by config.status. */
  18887. + if test x"$ac_file" = x-; then
  18888. + echo "/* Generated by configure. */" >$tmp/config.h
  18889. + else
  18890. + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  18891. + fi
  18892. + cat $tmp/in >>$tmp/config.h
  18893. + rm -f $tmp/in
  18894. + if test x"$ac_file" != x-; then
  18895. + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  18896. + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  18897. +echo "$as_me: $ac_file is unchanged" >&6;}
  18898. + else
  18899. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  18900. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18901. + X"$ac_file" : 'X\(//\)[^/]' \| \
  18902. + X"$ac_file" : 'X\(//\)$' \| \
  18903. + X"$ac_file" : 'X\(/\)' \| \
  18904. + . : '\(.\)' 2>/dev/null ||
  18905. +echo X"$ac_file" |
  18906. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  18907. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  18908. + /^X\(\/\/\)$/{ s//\1/; q; }
  18909. + /^X\(\/\).*/{ s//\1/; q; }
  18910. + s/.*/./; q'`
  18911. + { if $as_mkdir_p; then
  18912. + mkdir -p "$ac_dir"
  18913. + else
  18914. + as_dir="$ac_dir"
  18915. + as_dirs=
  18916. + while test ! -d "$as_dir"; do
  18917. + as_dirs="$as_dir $as_dirs"
  18918. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  18919. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18920. + X"$as_dir" : 'X\(//\)[^/]' \| \
  18921. + X"$as_dir" : 'X\(//\)$' \| \
  18922. + X"$as_dir" : 'X\(/\)' \| \
  18923. + . : '\(.\)' 2>/dev/null ||
  18924. +echo X"$as_dir" |
  18925. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  18926. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  18927. + /^X\(\/\/\)$/{ s//\1/; q; }
  18928. + /^X\(\/\).*/{ s//\1/; q; }
  18929. + s/.*/./; q'`
  18930. + done
  18931. + test ! -n "$as_dirs" || mkdir $as_dirs
  18932. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  18933. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  18934. + { (exit 1); exit 1; }; }; }
  18935. +
  18936. + rm -f $ac_file
  18937. + mv $tmp/config.h $ac_file
  18938. + fi
  18939. + else
  18940. + cat $tmp/config.h
  18941. + rm -f $tmp/config.h
  18942. + fi
  18943. +done
  18944. +_ACEOF
  18945. +cat >>$CONFIG_STATUS <<\_ACEOF
  18946. +
  18947. +#
  18948. +# CONFIG_COMMANDS section.
  18949. +#
  18950. +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  18951. + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  18952. + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  18953. + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  18954. +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18955. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  18956. + X"$ac_dest" : 'X\(//\)$' \| \
  18957. + X"$ac_dest" : 'X\(/\)' \| \
  18958. + . : '\(.\)' 2>/dev/null ||
  18959. +echo X"$ac_dest" |
  18960. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  18961. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  18962. + /^X\(\/\/\)$/{ s//\1/; q; }
  18963. + /^X\(\/\).*/{ s//\1/; q; }
  18964. + s/.*/./; q'`
  18965. + { if $as_mkdir_p; then
  18966. + mkdir -p "$ac_dir"
  18967. + else
  18968. + as_dir="$ac_dir"
  18969. + as_dirs=
  18970. + while test ! -d "$as_dir"; do
  18971. + as_dirs="$as_dir $as_dirs"
  18972. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  18973. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18974. + X"$as_dir" : 'X\(//\)[^/]' \| \
  18975. + X"$as_dir" : 'X\(//\)$' \| \
  18976. + X"$as_dir" : 'X\(/\)' \| \
  18977. + . : '\(.\)' 2>/dev/null ||
  18978. +echo X"$as_dir" |
  18979. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  18980. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  18981. + /^X\(\/\/\)$/{ s//\1/; q; }
  18982. + /^X\(\/\).*/{ s//\1/; q; }
  18983. + s/.*/./; q'`
  18984. + done
  18985. + test ! -n "$as_dirs" || mkdir $as_dirs
  18986. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  18987. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  18988. + { (exit 1); exit 1; }; }; }
  18989. +
  18990. + ac_builddir=.
  18991. +
  18992. +if test "$ac_dir" != .; then
  18993. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  18994. + # A "../" for each directory in $ac_dir_suffix.
  18995. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  18996. +else
  18997. + ac_dir_suffix= ac_top_builddir=
  18998. +fi
  18999. +
  19000. +case $srcdir in
  19001. + .) # No --srcdir option. We are building in place.
  19002. + ac_srcdir=.
  19003. + if test -z "$ac_top_builddir"; then
  19004. + ac_top_srcdir=.
  19005. + else
  19006. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  19007. + fi ;;
  19008. + [\\/]* | ?:[\\/]* ) # Absolute path.
  19009. + ac_srcdir=$srcdir$ac_dir_suffix;
  19010. + ac_top_srcdir=$srcdir ;;
  19011. + *) # Relative path.
  19012. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  19013. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  19014. +esac
  19015. +
  19016. +# Do not use `cd foo && pwd` to compute absolute paths, because
  19017. +# the directories may not exist.
  19018. +case `pwd` in
  19019. +.) ac_abs_builddir="$ac_dir";;
  19020. +*)
  19021. + case "$ac_dir" in
  19022. + .) ac_abs_builddir=`pwd`;;
  19023. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  19024. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  19025. + esac;;
  19026. +esac
  19027. +case $ac_abs_builddir in
  19028. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  19029. +*)
  19030. + case ${ac_top_builddir}. in
  19031. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  19032. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  19033. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  19034. + esac;;
  19035. +esac
  19036. +case $ac_abs_builddir in
  19037. +.) ac_abs_srcdir=$ac_srcdir;;
  19038. +*)
  19039. + case $ac_srcdir in
  19040. + .) ac_abs_srcdir=$ac_abs_builddir;;
  19041. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  19042. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  19043. + esac;;
  19044. +esac
  19045. +case $ac_abs_builddir in
  19046. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  19047. +*)
  19048. + case $ac_top_srcdir in
  19049. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  19050. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  19051. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  19052. + esac;;
  19053. +esac
  19054. +
  19055. +
  19056. + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  19057. +echo "$as_me: executing $ac_dest commands" >&6;}
  19058. + case $ac_dest in
  19059. + default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
  19060. + esac
  19061. +done
  19062. +_ACEOF
  19063. +
  19064. +cat >>$CONFIG_STATUS <<\_ACEOF
  19065. +
  19066. +{ (exit 0); exit 0; }
  19067. +_ACEOF
  19068. +chmod +x $CONFIG_STATUS
  19069. +ac_clean_files=$ac_clean_files_save
  19070. +
  19071. +
  19072. +# configure is writing to config.log, and then calls config.status.
  19073. +# config.status does its own redirection, appending to config.log.
  19074. +# Unfortunately, on DOS this fails, as config.log is still kept open
  19075. +# by configure, so config.status won't be able to write to it; its
  19076. +# output is simply discarded. So we exec the FD to /dev/null,
  19077. +# effectively closing config.log, so it can be properly (re)opened and
  19078. +# appended to by config.status. When coming back to configure, we
  19079. +# need to make the FD available again.
  19080. +if test "$no_create" != yes; then
  19081. + ac_cs_success=:
  19082. + ac_config_status_args=
  19083. + test "$silent" = yes &&
  19084. + ac_config_status_args="$ac_config_status_args --quiet"
  19085. + exec 5>/dev/null
  19086. + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19087. + exec 5>>config.log
  19088. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19089. + # would make configure fail if this is the last instruction.
  19090. + $ac_cs_success || { (exit 1); exit 1; }
  19091. +fi
  19092. +
  19093. +
  19094. diff -urN linux-atm.old/autom4te.cache/requests linux-atm.dev/autom4te.cache/requests
  19095. --- linux-atm.old/autom4te.cache/requests 1970-01-01 01:00:00.000000000 +0100
  19096. +++ linux-atm.dev/autom4te.cache/requests 2005-08-23 01:12:41.188174872 +0200
  19097. @@ -0,0 +1,116 @@
  19098. +# This file was generated by Autom4te Sat Jan 8 16:59:54 PST 2005.
  19099. +# It contains the lists of macros which have been traced.
  19100. +# It can be safely removed.
  19101. +
  19102. +@request = (
  19103. + bless( [
  19104. + '0',
  19105. + 1,
  19106. + [
  19107. + '/usr/share/autoconf'
  19108. + ],
  19109. + [
  19110. + '/usr/share/autoconf/autoconf/autoconf.m4f',
  19111. + 'aclocal.m4',
  19112. + 'configure.in'
  19113. + ],
  19114. + {
  19115. + 'm4_pattern_forbid' => 1,
  19116. + 'AC_CONFIG_LIBOBJ_DIR' => 1,
  19117. + 'AC_TYPE_OFF_T' => 1,
  19118. + 'AC_C_VOLATILE' => 1,
  19119. + 'AC_FUNC_CLOSEDIR_VOID' => 1,
  19120. + 'AC_REPLACE_FNMATCH' => 1,
  19121. + 'AC_PROG_LIBTOOL' => 1,
  19122. + 'AC_FUNC_STAT' => 1,
  19123. + 'AC_HEADER_TIME' => 1,
  19124. + 'AC_FUNC_WAIT3' => 1,
  19125. + 'AM_AUTOMAKE_VERSION' => 1,
  19126. + 'AC_STRUCT_TM' => 1,
  19127. + 'AC_FUNC_LSTAT' => 1,
  19128. + 'AC_TYPE_MODE_T' => 1,
  19129. + 'AC_FUNC_GETMNTENT' => 1,
  19130. + 'AC_FUNC_STRTOD' => 1,
  19131. + 'AC_CHECK_HEADERS' => 1,
  19132. + 'AC_FUNC_STRNLEN' => 1,
  19133. + 'm4_sinclude' => 1,
  19134. + 'AC_PROG_CXX' => 1,
  19135. + 'AC_PATH_X' => 1,
  19136. + 'AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK' => 1,
  19137. + 'AC_PROG_AWK' => 1,
  19138. + '_m4_warn' => 1,
  19139. + 'AC_HEADER_STDC' => 1,
  19140. + 'AC_HEADER_MAJOR' => 1,
  19141. + 'AC_FUNC_ERROR_AT_LINE' => 1,
  19142. + 'AC_PROG_GCC_TRADITIONAL' => 1,
  19143. + 'AC_LIBSOURCE' => 1,
  19144. + 'AC_FUNC_MBRTOWC' => 1,
  19145. + 'AC_STRUCT_ST_BLOCKS' => 1,
  19146. + 'AC_TYPE_SIGNAL' => 1,
  19147. + 'AC_TYPE_UID_T' => 1,
  19148. + 'AC_CONFIG_AUX_DIR' => 1,
  19149. + 'AC_PROG_MAKE_SET' => 1,
  19150. + 'sinclude' => 1,
  19151. + 'm4_pattern_allow' => 1,
  19152. + 'AC_DEFINE_TRACE_LITERAL' => 1,
  19153. + 'AC_FUNC_STRERROR_R' => 1,
  19154. + 'AC_PROG_CC' => 1,
  19155. + 'AC_FUNC_FORK' => 1,
  19156. + 'AC_DECL_SYS_SIGLIST' => 1,
  19157. + 'AC_FUNC_VPRINTF' => 1,
  19158. + 'AC_FUNC_STRCOLL' => 1,
  19159. + 'AC_PROG_YACC' => 1,
  19160. + 'AC_INIT' => 1,
  19161. + 'AC_STRUCT_TIMEZONE' => 1,
  19162. + 'AC_FUNC_CHOWN' => 1,
  19163. + 'AC_SUBST' => 1,
  19164. + 'AC_FUNC_ALLOCA' => 1,
  19165. + 'AC_CANONICAL_HOST' => 1,
  19166. + 'AC_FUNC_GETPGRP' => 1,
  19167. + 'AC_PROG_RANLIB' => 1,
  19168. + 'AM_INIT_AUTOMAKE' => 1,
  19169. + 'AC_FUNC_SETPGRP' => 1,
  19170. + 'AC_CONFIG_SUBDIRS' => 1,
  19171. + 'AC_FUNC_MMAP' => 1,
  19172. + 'AC_FUNC_REALLOC' => 1,
  19173. + 'AC_TYPE_SIZE_T' => 1,
  19174. + 'AC_CONFIG_LINKS' => 1,
  19175. + 'AC_CHECK_TYPES' => 1,
  19176. + 'AC_CHECK_MEMBERS' => 1,
  19177. + 'AM_MAINTAINER_MODE' => 1,
  19178. + 'AC_FUNC_UTIME_NULL' => 1,
  19179. + 'AC_FUNC_SELECT_ARGTYPES' => 1,
  19180. + 'AC_FUNC_STRFTIME' => 1,
  19181. + 'AC_HEADER_STAT' => 1,
  19182. + 'AC_C_INLINE' => 1,
  19183. + 'AC_PROG_CPP' => 1,
  19184. + 'AC_TYPE_PID_T' => 1,
  19185. + 'AC_C_CONST' => 1,
  19186. + 'AC_PROG_LEX' => 1,
  19187. + 'AC_CONFIG_FILES' => 1,
  19188. + 'include' => 1,
  19189. + 'AC_FUNC_SETVBUF_REVERSED' => 1,
  19190. + 'AC_PROG_INSTALL' => 1,
  19191. + 'AM_GNU_GETTEXT' => 1,
  19192. + 'AC_FUNC_OBSTACK' => 1,
  19193. + 'AC_CHECK_LIB' => 1,
  19194. + 'AC_FUNC_MALLOC' => 1,
  19195. + 'AC_FUNC_GETGROUPS' => 1,
  19196. + 'AC_FUNC_GETLOADAVG' => 1,
  19197. + 'AH_OUTPUT' => 1,
  19198. + 'AC_FUNC_FSEEKO' => 1,
  19199. + 'AM_PROG_CC_C_O' => 1,
  19200. + 'AM_CONDITIONAL' => 1,
  19201. + 'AC_CANONICAL_SYSTEM' => 1,
  19202. + 'AC_FUNC_MKTIME' => 1,
  19203. + 'AC_CONFIG_HEADERS' => 1,
  19204. + 'AC_HEADER_SYS_WAIT' => 1,
  19205. + 'AC_FUNC_MEMCMP' => 1,
  19206. + 'AC_PROG_LN_S' => 1,
  19207. + 'm4_include' => 1,
  19208. + 'AC_HEADER_DIRENT' => 1,
  19209. + 'AC_CHECK_FUNCS' => 1
  19210. + }
  19211. + ], 'Autom4te::Request' )
  19212. + );
  19213. +
  19214. diff -urN linux-atm.old/autom4te.cache/traces.0 linux-atm.dev/autom4te.cache/traces.0
  19215. --- linux-atm.old/autom4te.cache/traces.0 1970-01-01 01:00:00.000000000 +0100
  19216. +++ linux-atm.dev/autom4te.cache/traces.0 2005-08-23 01:12:40.958209832 +0200
  19217. @@ -0,0 +1,426 @@
  19218. +m4trace:configure.in:8: -1- AC_INIT([src/include/atm.h])
  19219. +m4trace:configure.in:8: -1- m4_pattern_forbid([^_?A[CHUM]_])
  19220. +m4trace:configure.in:8: -1- m4_pattern_forbid([_AC_])
  19221. +m4trace:configure.in:8: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
  19222. +m4trace:configure.in:8: -1- m4_pattern_allow([^AS_FLAGS$])
  19223. +m4trace:configure.in:8: -1- m4_pattern_forbid([^_?m4_])
  19224. +m4trace:configure.in:8: -1- m4_pattern_forbid([^dnl$])
  19225. +m4trace:configure.in:8: -1- m4_pattern_forbid([^_?AS_])
  19226. +m4trace:configure.in:8: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}])
  19227. +m4trace:configure.in:8: -1- AC_SUBST([PATH_SEPARATOR])
  19228. +m4trace:configure.in:8: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])
  19229. +m4trace:configure.in:8: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])
  19230. +m4trace:configure.in:8: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])
  19231. +m4trace:configure.in:8: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])
  19232. +m4trace:configure.in:8: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
  19233. +m4trace:configure.in:8: -1- AC_SUBST([exec_prefix], [NONE])
  19234. +m4trace:configure.in:8: -1- AC_SUBST([prefix], [NONE])
  19235. +m4trace:configure.in:8: -1- AC_SUBST([program_transform_name], [s,x,x,])
  19236. +m4trace:configure.in:8: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
  19237. +m4trace:configure.in:8: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
  19238. +m4trace:configure.in:8: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
  19239. +m4trace:configure.in:8: -1- AC_SUBST([datadir], ['${prefix}/share'])
  19240. +m4trace:configure.in:8: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
  19241. +m4trace:configure.in:8: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
  19242. +m4trace:configure.in:8: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
  19243. +m4trace:configure.in:8: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
  19244. +m4trace:configure.in:8: -1- AC_SUBST([includedir], ['${prefix}/include'])
  19245. +m4trace:configure.in:8: -1- AC_SUBST([oldincludedir], ['/usr/include'])
  19246. +m4trace:configure.in:8: -1- AC_SUBST([infodir], ['${prefix}/info'])
  19247. +m4trace:configure.in:8: -1- AC_SUBST([mandir], ['${prefix}/man'])
  19248. +m4trace:configure.in:8: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
  19249. +m4trace:configure.in:8: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
  19250. +#undef PACKAGE_NAME])
  19251. +m4trace:configure.in:8: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
  19252. +m4trace:configure.in:8: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
  19253. +#undef PACKAGE_TARNAME])
  19254. +m4trace:configure.in:8: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
  19255. +m4trace:configure.in:8: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
  19256. +#undef PACKAGE_VERSION])
  19257. +m4trace:configure.in:8: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
  19258. +m4trace:configure.in:8: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
  19259. +#undef PACKAGE_STRING])
  19260. +m4trace:configure.in:8: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
  19261. +m4trace:configure.in:8: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
  19262. +#undef PACKAGE_BUGREPORT])
  19263. +m4trace:configure.in:8: -1- AC_SUBST([build_alias])
  19264. +m4trace:configure.in:8: -1- AC_SUBST([host_alias])
  19265. +m4trace:configure.in:8: -1- AC_SUBST([target_alias])
  19266. +m4trace:configure.in:8: -1- AC_SUBST([DEFS])
  19267. +m4trace:configure.in:8: -1- AC_SUBST([ECHO_C])
  19268. +m4trace:configure.in:8: -1- AC_SUBST([ECHO_N])
  19269. +m4trace:configure.in:8: -1- AC_SUBST([ECHO_T])
  19270. +m4trace:configure.in:8: -1- AC_SUBST([LIBS])
  19271. +m4trace:configure.in:9: -1- AC_CONFIG_HEADERS([config.h])
  19272. +m4trace:configure.in:9: -1- _m4_warn([obsolete], [The macro `AC_OUTPUT_COMMANDS' is obsolete.
  19273. +You should run autoupdate.], [autoconf/status.m4:318: AC_OUTPUT_COMMANDS is expanded from...
  19274. +aclocal.m4:34: AM_CONFIG_HEADER is expanded from...
  19275. +configure.in:9: the top level])
  19276. +m4trace:configure.in:9: -3- _m4_warn([obsolete], [The macro `_AC_OUTPUT_COMMANDS_CNT' is obsolete.
  19277. +You should run autoupdate.], [autoconf/status.m4:321: _AC_OUTPUT_COMMANDS_CNT is expanded from...
  19278. +autoconf/status.m4:318: AC_OUTPUT_COMMANDS is expanded from...
  19279. +aclocal.m4:34: AM_CONFIG_HEADER is expanded from...
  19280. +configure.in:9: the top level])
  19281. +m4trace:configure.in:12: -1- AC_CANONICAL_SYSTEM
  19282. +m4trace:configure.in:12: -1- _m4_warn([obsolete], [The macro `AC_CANONICAL_SYSTEM' is obsolete.
  19283. +You should run autoupdate.], [autoconf/general.m4:1660: AC_CANONICAL_SYSTEM is expanded from...
  19284. +configure.in:12: the top level])
  19285. +m4trace:configure.in:12: -1- AC_CANONICAL_HOST
  19286. +m4trace:configure.in:12: -1- AC_SUBST([build], [$ac_cv_build])
  19287. +m4trace:configure.in:12: -1- AC_SUBST([build_cpu], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
  19288. +m4trace:configure.in:12: -1- AC_SUBST([build_vendor], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
  19289. +m4trace:configure.in:12: -1- AC_SUBST([build_os], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
  19290. +m4trace:configure.in:12: -1- AC_SUBST([host], [$ac_cv_host])
  19291. +m4trace:configure.in:12: -1- AC_SUBST([host_cpu], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
  19292. +m4trace:configure.in:12: -1- AC_SUBST([host_vendor], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
  19293. +m4trace:configure.in:12: -1- AC_SUBST([host_os], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
  19294. +m4trace:configure.in:12: -1- AC_SUBST([target], [$ac_cv_target])
  19295. +m4trace:configure.in:12: -1- AC_SUBST([target_cpu], [`echo $ac_cv_target | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
  19296. +m4trace:configure.in:12: -1- AC_SUBST([target_vendor], [`echo $ac_cv_target | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
  19297. +m4trace:configure.in:12: -1- AC_SUBST([target_os], [`echo $ac_cv_target | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
  19298. +m4trace:configure.in:14: -1- AM_INIT_AUTOMAKE([linux-atm], [2.4.1])
  19299. +m4trace:configure.in:14: -1- AM_AUTOMAKE_VERSION([1.4-p6])
  19300. +m4trace:configure.in:14: -1- AC_PROG_INSTALL
  19301. +m4trace:configure.in:14: -1- AC_SUBST([INSTALL_PROGRAM])
  19302. +m4trace:configure.in:14: -1- AC_SUBST([INSTALL_SCRIPT])
  19303. +m4trace:configure.in:14: -1- AC_SUBST([INSTALL_DATA])
  19304. +m4trace:configure.in:14: -1- AC_SUBST([PACKAGE])
  19305. +m4trace:configure.in:14: -1- AC_SUBST([VERSION])
  19306. +m4trace:configure.in:14: -2- AC_DEFINE_TRACE_LITERAL([PACKAGE])
  19307. +m4trace:configure.in:14: -2- AH_OUTPUT([PACKAGE], [/* Name of package */
  19308. +#undef PACKAGE])
  19309. +m4trace:configure.in:14: -2- AC_DEFINE_TRACE_LITERAL([VERSION])
  19310. +m4trace:configure.in:14: -2- AH_OUTPUT([VERSION], [/* Version number of package */
  19311. +#undef VERSION])
  19312. +m4trace:configure.in:14: -1- AC_SUBST([ACLOCAL])
  19313. +m4trace:configure.in:14: -1- AC_SUBST([AUTOCONF])
  19314. +m4trace:configure.in:14: -1- AC_SUBST([AUTOMAKE])
  19315. +m4trace:configure.in:14: -1- AC_SUBST([AUTOHEADER])
  19316. +m4trace:configure.in:14: -1- AC_SUBST([MAKEINFO])
  19317. +m4trace:configure.in:14: -1- AC_PROG_MAKE_SET
  19318. +m4trace:configure.in:14: -1- AC_SUBST([SET_MAKE])
  19319. +m4trace:configure.in:19: -1- AC_SUBST([LIBVER_CURRENT])
  19320. +m4trace:configure.in:20: -1- AC_SUBST([LIBVER_REVISION])
  19321. +m4trace:configure.in:21: -1- AC_SUBST([LIBVER_AGE])
  19322. +m4trace:configure.in:24: -1- AC_PROG_CC
  19323. +m4trace:configure.in:24: -1- AC_SUBST([CC])
  19324. +m4trace:configure.in:24: -1- AC_SUBST([CFLAGS])
  19325. +m4trace:configure.in:24: -1- AC_SUBST([LDFLAGS])
  19326. +m4trace:configure.in:24: -1- AC_SUBST([CPPFLAGS])
  19327. +m4trace:configure.in:24: -1- AC_SUBST([CC])
  19328. +m4trace:configure.in:24: -1- AC_SUBST([ac_ct_CC])
  19329. +m4trace:configure.in:24: -1- AC_SUBST([CC])
  19330. +m4trace:configure.in:24: -1- AC_SUBST([ac_ct_CC])
  19331. +m4trace:configure.in:24: -1- AC_SUBST([CC])
  19332. +m4trace:configure.in:24: -1- AC_SUBST([CC])
  19333. +m4trace:configure.in:24: -1- AC_SUBST([ac_ct_CC])
  19334. +m4trace:configure.in:24: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
  19335. +m4trace:configure.in:24: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
  19336. +m4trace:configure.in:25: -1- AC_SUBST([LEX])
  19337. +m4trace:configure.in:25: -1- AC_PROG_LEX
  19338. +m4trace:configure.in:25: -1- AC_SUBST([LEX])
  19339. +m4trace:configure.in:25: -1- AC_CHECK_LIB([fl], [yywrap], [LEXLIB="-lfl"], [AC_CHECK_LIB(l, yywrap, LEXLIB="-ll")])
  19340. +m4trace:configure.in:25: -1- AC_CHECK_LIB([l], [yywrap], [LEXLIB="-ll"])
  19341. +m4trace:configure.in:25: -1- AC_SUBST([LEXLIB])
  19342. +m4trace:configure.in:25: -1- AC_SUBST([LEX_OUTPUT_ROOT], [$ac_cv_prog_lex_root])
  19343. +m4trace:configure.in:25: -1- AC_DEFINE_TRACE_LITERAL([YYTEXT_POINTER])
  19344. +m4trace:configure.in:25: -1- AH_OUTPUT([YYTEXT_POINTER], [/* Define to 1 if `lex\' declares `yytext\' as a `char *\' by default, not a
  19345. + `char[]\'. */
  19346. +#undef YYTEXT_POINTER])
  19347. +m4trace:configure.in:25: -1- _m4_warn([obsolete], [The macro `AC_DECL_YYTEXT' is obsolete.
  19348. +You should run autoupdate.], [autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
  19349. +aclocal.m4:165: AM_PROG_LEX is expanded from...
  19350. +configure.in:25: the top level])
  19351. +m4trace:configure.in:25: -1- AC_PROG_LEX
  19352. +m4trace:configure.in:25: -1- _m4_warn([syntax], [AC_PROG_LEX invoked multiple times], [autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
  19353. +aclocal.m4:165: AM_PROG_LEX is expanded from...
  19354. +configure.in:25: the top level])
  19355. +m4trace:configure.in:26: -1- AC_PROG_YACC
  19356. +m4trace:configure.in:26: -1- AC_SUBST([YACC])
  19357. +m4trace:configure.in:27: -1- AC_PROG_INSTALL
  19358. +m4trace:configure.in:27: -1- AC_SUBST([INSTALL_PROGRAM])
  19359. +m4trace:configure.in:27: -1- AC_SUBST([INSTALL_SCRIPT])
  19360. +m4trace:configure.in:27: -1- AC_SUBST([INSTALL_DATA])
  19361. +m4trace:configure.in:30: -1- AC_PROG_LIBTOOL
  19362. +m4trace:configure.in:30: -1- AC_PROG_LN_S
  19363. +m4trace:configure.in:30: -1- AC_SUBST([LN_S], [$as_ln_s])
  19364. +m4trace:configure.in:30: -1- AC_SUBST([ECHO])
  19365. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_CHECK_TOOL_PREFIX' is obsolete.
  19366. +You should run autoupdate.], [autoconf/programs.m4:188: AC_CHECK_TOOL_PREFIX is expanded from...
  19367. +configure.in:30: AC_CHECK_TOOL_PREFIX is required by...
  19368. +aclocal.m4:3303: AC_PATH_MAGIC is expanded from...
  19369. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19370. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19371. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19372. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19373. +configure.in:30: the top level])
  19374. +m4trace:configure.in:30: -1- AC_SUBST([RANLIB])
  19375. +m4trace:configure.in:30: -1- AC_SUBST([ac_ct_RANLIB])
  19376. +m4trace:configure.in:30: -1- AC_SUBST([STRIP])
  19377. +m4trace:configure.in:30: -1- AC_SUBST([ac_ct_STRIP])
  19378. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete.
  19379. +You should run autoupdate.], [autoconf/lang.m4:166: AC_LANG_SAVE is expanded from...
  19380. +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
  19381. +autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
  19382. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19383. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19384. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19385. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19386. +configure.in:30: the top level])
  19387. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [instead of using `AC_LANG', `AC_LANG_SAVE',
  19388. +and `AC_LANG_RESTORE', you should use `AC_LANG_PUSH' and `AC_LANG_POP'.], [autoconf/lang.m4:166: AC_LANG_SAVE is expanded from...
  19389. +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
  19390. +autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
  19391. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19392. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19393. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19394. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19395. +configure.in:30: the top level])
  19396. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_LANG_C' is obsolete.
  19397. +You should run autoupdate.], [autoconf/c.m4:71: AC_LANG_C is expanded from...
  19398. +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
  19399. +autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
  19400. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19401. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19402. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19403. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19404. +configure.in:30: the top level])
  19405. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
  19406. +You should run autoupdate.], [autoconf/general.m4:2223: AC_TRY_LINK is expanded from...
  19407. +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
  19408. +autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
  19409. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19410. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19411. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19412. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19413. +configure.in:30: the top level])
  19414. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete.
  19415. +You should run autoupdate.], [autoconf/lang.m4:172: AC_LANG_RESTORE is expanded from...
  19416. +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
  19417. +autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
  19418. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19419. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19420. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19421. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19422. +configure.in:30: the top level])
  19423. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete.
  19424. +You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from...
  19425. +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
  19426. +aclocal.m4:509: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is expanded from...
  19427. +configure.in:30: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is required by...
  19428. +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
  19429. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19430. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19431. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19432. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19433. +configure.in:30: the top level])
  19434. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete.
  19435. +You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from...
  19436. +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
  19437. +aclocal.m4:509: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is expanded from...
  19438. +configure.in:30: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is required by...
  19439. +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
  19440. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19441. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19442. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19443. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19444. +configure.in:30: the top level])
  19445. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete.
  19446. +You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from...
  19447. +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
  19448. +aclocal.m4:509: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is expanded from...
  19449. +configure.in:30: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is required by...
  19450. +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
  19451. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19452. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19453. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19454. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19455. +configure.in:30: the top level])
  19456. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete.
  19457. +You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from...
  19458. +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
  19459. +aclocal.m4:509: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is expanded from...
  19460. +configure.in:30: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE is required by...
  19461. +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
  19462. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19463. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19464. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19465. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19466. +configure.in:30: the top level])
  19467. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
  19468. +You should run autoupdate.], [autoconf/general.m4:2180: AC_TRY_COMPILE is expanded from...
  19469. +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
  19470. +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
  19471. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19472. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19473. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19474. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19475. +configure.in:30: the top level])
  19476. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries], [aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
  19477. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19478. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19479. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19480. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19481. +configure.in:30: the top level])
  19482. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries], [aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
  19483. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19484. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19485. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19486. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19487. +configure.in:30: the top level])
  19488. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure], [aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
  19489. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19490. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19491. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19492. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19493. +configure.in:30: the top level])
  19494. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure], [aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
  19495. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19496. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19497. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19498. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19499. +configure.in:30: the top level])
  19500. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
  19501. +You should run autoupdate.], [autoconf/general.m4:2223: AC_TRY_LINK is expanded from...
  19502. +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
  19503. +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
  19504. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19505. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19506. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19507. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19508. +configure.in:30: the top level])
  19509. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_FD_CC' is obsolete.
  19510. +You should run autoupdate.], [autoconf/general.m4:376: AC_FD_CC is expanded from...
  19511. +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
  19512. +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
  19513. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19514. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19515. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19516. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19517. +configure.in:30: the top level])
  19518. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
  19519. +You should run autoupdate.], [autoconf/general.m4:2180: AC_TRY_COMPILE is expanded from...
  19520. +autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
  19521. +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
  19522. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19523. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19524. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19525. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19526. +configure.in:30: the top level])
  19527. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe], [aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
  19528. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19529. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19530. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19531. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19532. +configure.in:30: the top level])
  19533. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe], [aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
  19534. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19535. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19536. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19537. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19538. +configure.in:30: the top level])
  19539. +m4trace:configure.in:30: -1- _m4_warn([obsolete], [The macro `AC_TRY_COMPILE' is obsolete.
  19540. +You should run autoupdate.], [autoconf/general.m4:2180: AC_TRY_COMPILE is expanded from...
  19541. +aclocal.m4:3110: _LT_AC_LTCONFIG_HACK is expanded from...
  19542. +aclocal.m4:296: AC_LIBTOOL_SETUP is expanded from...
  19543. +configure.in:30: AC_LIBTOOL_SETUP is required by...
  19544. +aclocal.m4:183: AC_PROG_LIBTOOL is expanded from...
  19545. +aclocal.m4:3701: AM_PROG_LIBTOOL is expanded from...
  19546. +configure.in:30: the top level])
  19547. +m4trace:configure.in:30: -1- AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen],
  19548. + [lt_cv_dlopen="dlopen"],
  19549. + [AC_CHECK_LIB([dl], [dlopen],
  19550. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  19551. + [AC_CHECK_LIB([svld], [dlopen],
  19552. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  19553. + [AC_CHECK_LIB([dld], [dld_link],
  19554. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  19555. + ])
  19556. + ])
  19557. + ])
  19558. + ])
  19559. +m4trace:configure.in:30: -1- AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen],
  19560. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  19561. + [AC_CHECK_LIB([dld], [dld_link],
  19562. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  19563. + ])
  19564. + ])
  19565. +m4trace:configure.in:30: -1- AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link],
  19566. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  19567. + ])
  19568. +m4trace:configure.in:30: -1- AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  19569. +m4trace:configure.in:30: -1- AC_CHECK_HEADERS([dlfcn.h])
  19570. +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_DLFCN_H], [/* Define to 1 if you have the <dlfcn.h> header file. */
  19571. +#undef HAVE_DLFCN_H])
  19572. +m4trace:configure.in:30: -1- AC_HEADER_STDC
  19573. +m4trace:configure.in:30: -1- AC_PROG_CPP
  19574. +m4trace:configure.in:30: -1- AC_SUBST([CPP])
  19575. +m4trace:configure.in:30: -1- AC_SUBST([CPPFLAGS])
  19576. +m4trace:configure.in:30: -1- AC_SUBST([CPP])
  19577. +m4trace:configure.in:30: -1- AC_SUBST([EGREP])
  19578. +m4trace:configure.in:30: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
  19579. +m4trace:configure.in:30: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
  19580. +#undef STDC_HEADERS])
  19581. +m4trace:configure.in:30: -1- AC_CHECK_HEADERS([sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  19582. + inttypes.h stdint.h unistd.h], [], [], [$ac_includes_default])
  19583. +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
  19584. +#undef HAVE_SYS_TYPES_H])
  19585. +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
  19586. +#undef HAVE_SYS_STAT_H])
  19587. +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
  19588. +#undef HAVE_STDLIB_H])
  19589. +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
  19590. +#undef HAVE_STRING_H])
  19591. +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
  19592. +#undef HAVE_MEMORY_H])
  19593. +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
  19594. +#undef HAVE_STRINGS_H])
  19595. +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */
  19596. +#undef HAVE_INTTYPES_H])
  19597. +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
  19598. +#undef HAVE_STDINT_H])
  19599. +m4trace:configure.in:30: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
  19600. +#undef HAVE_UNISTD_H])
  19601. +m4trace:configure.in:30: -1- AC_SUBST([LIBTOOL])
  19602. +m4trace:configure.in:31: -1- AC_SUBST([LIBTOOL_DEPS])
  19603. +m4trace:configure.in:34: -1- AC_SUBST([PERL], [$ac_cv_path_PERL])
  19604. +m4trace:configure.in:35: -1- AC_SUBST([PERL])
  19605. +m4trace:configure.in:51: -1- AC_CHECK_LIB([resolv], [main], [], [{ { echo "$as_me:$LINENO: error: *** Unable to find libresolv!!!" >&5
  19606. +echo "$as_me: error: *** Unable to find libresolv!!!" >&2;}
  19607. + { (exit 1); exit 1; }; }
  19608. +])
  19609. +m4trace:configure.in:51: -1- AH_OUTPUT([HAVE_LIBRESOLV], [/* Define to 1 if you have the `resolv\' library (-lresolv). */
  19610. +#undef HAVE_LIBRESOLV])
  19611. +m4trace:configure.in:51: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBRESOLV])
  19612. +m4trace:configure.in:62: -1- AC_DEFINE_TRACE_LITERAL([YY_USE_CONST])
  19613. +m4trace:configure.in:68: -1- AC_DEFINE_TRACE_LITERAL([ATMSIGD_CONF])
  19614. +m4trace:configure.in:86: -2- AC_DEFINE_TRACE_LITERAL([DYNAMIC_UNI])
  19615. +m4trace:configure.in:87: -1- AC_DEFINE_TRACE_LITERAL([UNI30])
  19616. +m4trace:configure.in:87: -1- AC_DEFINE_TRACE_LITERAL([UNI31])
  19617. +m4trace:configure.in:87: -1- AC_DEFINE_TRACE_LITERAL([UNI40])
  19618. +m4trace:configure.in:87: -1- AC_DEFINE_TRACE_LITERAL([DYNAMIC_UNI])
  19619. +m4trace:configure.in:98: -1- AC_DEFINE_TRACE_LITERAL([ALLOW_UNI30])
  19620. +m4trace:configure.in:109: -1- AC_DEFINE_TRACE_LITERAL([Q2963_1])
  19621. +m4trace:configure.in:113: -2- AC_DEFINE_TRACE_LITERAL([CISCO])
  19622. +m4trace:configure.in:118: -2- AC_DEFINE_TRACE_LITERAL([THOMFLEX])
  19623. +m4trace:configure.in:123: -1- AC_DEFINE_TRACE_LITERAL([BROKEN_POLL])
  19624. +m4trace:configure.in:127: -2- AC_DEFINE_TRACE_LITERAL([MPOA_1_1])
  19625. +m4trace:configure.in:143: -1- AC_CHECK_LIB([mpr], [main], [], [
  19626. + AC_MSG_WARN([*** Could not find libmpr! Is MPR installed?])
  19627. +
  19628. + ])
  19629. +m4trace:configure.in:143: -1- AH_OUTPUT([HAVE_LIBMPR], [/* Define to 1 if you have the `mpr\' library (-lmpr). */
  19630. +#undef HAVE_LIBMPR])
  19631. +m4trace:configure.in:143: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBMPR])
  19632. +m4trace:configure.in:157: -1- AC_CONFIG_FILES([Makefile \
  19633. + doc/Makefile \
  19634. + m4/Makefile \
  19635. + src/Makefile \
  19636. + src/include/Makefile \
  19637. + src/lib/Makefile \
  19638. + src/br2684/Makefile \
  19639. + ])
  19640. +m4trace:configure.in:157: -1- _m4_warn([obsolete], [AC_OUTPUT should be used without arguments.
  19641. +You should run autoupdate.], [])
  19642. +m4trace:configure.in:157: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
  19643. +m4trace:configure.in:157: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
  19644. diff -urN linux-atm.old/configure linux-atm.dev/configure
  19645. --- linux-atm.old/configure 2005-08-23 01:12:10.846787000 +0200
  19646. +++ linux-atm.dev/configure 2005-08-23 01:12:41.187175024 +0200
  19647. @@ -1,9 +1,8 @@
  19648. #! /bin/sh
  19649. # Guess values for system-dependent variables and create Makefiles.
  19650. -# Generated by GNU Autoconf 2.57.
  19651. +# Generated by GNU Autoconf 2.59.
  19652. #
  19653. -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  19654. -# Free Software Foundation, Inc.
  19655. +# Copyright (C) 2003 Free Software Foundation, Inc.
  19656. # This configure script is free software; the Free Software Foundation
  19657. # gives unlimited permission to copy, distribute and modify it.
  19658. ## --------------------- ##
  19659. @@ -20,9 +19,10 @@
  19660. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19661. set -o posix
  19662. fi
  19663. +DUALCASE=1; export DUALCASE # for MKS sh
  19664. # Support unset when possible.
  19665. -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  19666. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19667. as_unset=unset
  19668. else
  19669. as_unset=false
  19670. @@ -41,7 +41,7 @@
  19671. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19672. LC_TELEPHONE LC_TIME
  19673. do
  19674. - if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19675. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19676. eval $as_var=C; export $as_var
  19677. else
  19678. $as_unset $as_var
  19679. @@ -218,16 +218,17 @@
  19680. if mkdir -p . 2>/dev/null; then
  19681. as_mkdir_p=:
  19682. else
  19683. + test -d ./-p && rmdir ./-p
  19684. as_mkdir_p=false
  19685. fi
  19686. as_executable_p="test -f"
  19687. # Sed expression to map a string onto a valid CPP name.
  19688. -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  19689. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19690. # Sed expression to map a string onto a valid variable name.
  19691. -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  19692. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19693. # IFS
  19694. @@ -826,7 +827,7 @@
  19695. # Be sure to have absolute paths.
  19696. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  19697. - localstatedir libdir includedir oldincludedir infodir mandir
  19698. + localstatedir libdir includedir oldincludedir infodir mandir
  19699. do
  19700. eval ac_val=$`echo $ac_var`
  19701. case $ac_val in
  19702. @@ -866,10 +867,10 @@
  19703. # Try the directory containing this script, then its parent.
  19704. ac_confdir=`(dirname "$0") 2>/dev/null ||
  19705. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19706. - X"$0" : 'X\(//\)[^/]' \| \
  19707. - X"$0" : 'X\(//\)$' \| \
  19708. - X"$0" : 'X\(/\)' \| \
  19709. - . : '\(.\)' 2>/dev/null ||
  19710. + X"$0" : 'X\(//\)[^/]' \| \
  19711. + X"$0" : 'X\(//\)$' \| \
  19712. + X"$0" : 'X\(/\)' \| \
  19713. + . : '\(.\)' 2>/dev/null ||
  19714. echo X"$0" |
  19715. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  19716. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  19717. @@ -961,9 +962,9 @@
  19718. cat <<_ACEOF
  19719. Installation directories:
  19720. --prefix=PREFIX install architecture-independent files in PREFIX
  19721. - [$ac_default_prefix]
  19722. + [$ac_default_prefix]
  19723. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  19724. - [PREFIX]
  19725. + [PREFIX]
  19726. By default, \`make install' will install all the files in
  19727. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  19728. @@ -1071,12 +1072,45 @@
  19729. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  19730. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  19731. esac
  19732. -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  19733. -# absolute.
  19734. -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  19735. -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  19736. -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  19737. -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  19738. +
  19739. +# Do not use `cd foo && pwd` to compute absolute paths, because
  19740. +# the directories may not exist.
  19741. +case `pwd` in
  19742. +.) ac_abs_builddir="$ac_dir";;
  19743. +*)
  19744. + case "$ac_dir" in
  19745. + .) ac_abs_builddir=`pwd`;;
  19746. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  19747. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  19748. + esac;;
  19749. +esac
  19750. +case $ac_abs_builddir in
  19751. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  19752. +*)
  19753. + case ${ac_top_builddir}. in
  19754. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  19755. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  19756. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  19757. + esac;;
  19758. +esac
  19759. +case $ac_abs_builddir in
  19760. +.) ac_abs_srcdir=$ac_srcdir;;
  19761. +*)
  19762. + case $ac_srcdir in
  19763. + .) ac_abs_srcdir=$ac_abs_builddir;;
  19764. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  19765. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  19766. + esac;;
  19767. +esac
  19768. +case $ac_abs_builddir in
  19769. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  19770. +*)
  19771. + case $ac_top_srcdir in
  19772. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  19773. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  19774. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  19775. + esac;;
  19776. +esac
  19777. cd $ac_dir
  19778. # Check for guested configure; otherwise get Cygnus style configure.
  19779. @@ -1087,13 +1121,13 @@
  19780. echo
  19781. $SHELL $ac_srcdir/configure --help=recursive
  19782. elif test -f $ac_srcdir/configure.ac ||
  19783. - test -f $ac_srcdir/configure.in; then
  19784. + test -f $ac_srcdir/configure.in; then
  19785. echo
  19786. $ac_configure --help
  19787. else
  19788. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  19789. fi
  19790. - cd $ac_popdir
  19791. + cd "$ac_popdir"
  19792. done
  19793. fi
  19794. @@ -1101,8 +1135,7 @@
  19795. if $ac_init_version; then
  19796. cat <<\_ACEOF
  19797. -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  19798. -Free Software Foundation, Inc.
  19799. +Copyright (C) 2003 Free Software Foundation, Inc.
  19800. This configure script is free software; the Free Software Foundation
  19801. gives unlimited permission to copy, distribute and modify it.
  19802. _ACEOF
  19803. @@ -1114,7 +1147,7 @@
  19804. running configure, to aid debugging if configure makes a mistake.
  19805. It was created by $as_me, which was
  19806. -generated by GNU Autoconf 2.57. Invocation command line was
  19807. +generated by GNU Autoconf 2.59. Invocation command line was
  19808. $ $0 $@
  19809. @@ -1191,19 +1224,19 @@
  19810. 2)
  19811. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  19812. if test $ac_must_keep_next = true; then
  19813. - ac_must_keep_next=false # Got value, back to normal.
  19814. + ac_must_keep_next=false # Got value, back to normal.
  19815. else
  19816. - case $ac_arg in
  19817. - *=* | --config-cache | -C | -disable-* | --disable-* \
  19818. - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  19819. - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  19820. - | -with-* | --with-* | -without-* | --without-* | --x)
  19821. - case "$ac_configure_args0 " in
  19822. - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  19823. - esac
  19824. - ;;
  19825. - -* ) ac_must_keep_next=true ;;
  19826. - esac
  19827. + case $ac_arg in
  19828. + *=* | --config-cache | -C | -disable-* | --disable-* \
  19829. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  19830. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  19831. + | -with-* | --with-* | -without-* | --without-* | --x)
  19832. + case "$ac_configure_args0 " in
  19833. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  19834. + esac
  19835. + ;;
  19836. + -* ) ac_must_keep_next=true ;;
  19837. + esac
  19838. fi
  19839. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  19840. # Get rid of the leading space.
  19841. @@ -1237,12 +1270,12 @@
  19842. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  19843. *ac_space=\ *)
  19844. sed -n \
  19845. - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  19846. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  19847. + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  19848. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  19849. ;;
  19850. *)
  19851. sed -n \
  19852. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  19853. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  19854. ;;
  19855. esac;
  19856. }
  19857. @@ -1271,7 +1304,7 @@
  19858. for ac_var in $ac_subst_files
  19859. do
  19860. eval ac_val=$`echo $ac_var`
  19861. - echo "$ac_var='"'"'$ac_val'"'"'"
  19862. + echo "$ac_var='"'"'$ac_val'"'"'"
  19863. done | sort
  19864. echo
  19865. fi
  19866. @@ -1370,7 +1403,7 @@
  19867. # value.
  19868. ac_cache_corrupted=false
  19869. for ac_var in `(set) 2>&1 |
  19870. - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  19871. + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  19872. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  19873. eval ac_new_set=\$ac_env_${ac_var}_set
  19874. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  19875. @@ -1387,13 +1420,13 @@
  19876. ,);;
  19877. *)
  19878. if test "x$ac_old_val" != "x$ac_new_val"; then
  19879. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  19880. + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  19881. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  19882. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  19883. + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  19884. echo "$as_me: former value: $ac_old_val" >&2;}
  19885. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  19886. + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  19887. echo "$as_me: current value: $ac_new_val" >&2;}
  19888. - ac_cache_corrupted=:
  19889. + ac_cache_corrupted=:
  19890. fi;;
  19891. esac
  19892. # Pass precious variables to config.status.
  19893. @@ -1567,6 +1600,7 @@
  19894. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  19895. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  19896. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  19897. +# OS/2's system install, which has a completely different semantic
  19898. # ./install, which can be erroneously created by make from ./install.sh.
  19899. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  19900. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  19901. @@ -1583,6 +1617,7 @@
  19902. case $as_dir/ in
  19903. ./ | .// | /cC/* | \
  19904. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  19905. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  19906. /usr/ucb/* ) ;;
  19907. *)
  19908. # OSF1 and SCO ODT 3.0 have their own names for install.
  19909. @@ -1590,20 +1625,20 @@
  19910. # by default.
  19911. for ac_prog in ginstall scoinst install; do
  19912. for ac_exec_ext in '' $ac_executable_extensions; do
  19913. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  19914. - if test $ac_prog = install &&
  19915. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  19916. - # AIX install. It has an incompatible calling convention.
  19917. - :
  19918. - elif test $ac_prog = install &&
  19919. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  19920. - # program-specific install script used by HP pwplus--don't use.
  19921. - :
  19922. - else
  19923. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  19924. - break 3
  19925. - fi
  19926. - fi
  19927. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  19928. + if test $ac_prog = install &&
  19929. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  19930. + # AIX install. It has an incompatible calling convention.
  19931. + :
  19932. + elif test $ac_prog = install &&
  19933. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  19934. + # program-specific install script used by HP pwplus--don't use.
  19935. + :
  19936. + else
  19937. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  19938. + break 3
  19939. + fi
  19940. + fi
  19941. done
  19942. done
  19943. ;;
  19944. @@ -1693,7 +1728,7 @@
  19945. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19946. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  19947. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  19948. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  19949. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  19950. echo $ECHO_N "(cached) $ECHO_C" >&6
  19951. else
  19952. @@ -2163,7 +2198,6 @@
  19953. (exit $ac_status); }
  19954. cat >conftest.$ac_ext <<_ACEOF
  19955. -#line $LINENO "configure"
  19956. /* confdefs.h. */
  19957. _ACEOF
  19958. cat confdefs.h >>conftest.$ac_ext
  19959. @@ -2183,8 +2217,8 @@
  19960. # Try to create an executable without -o first, disregard a.out.
  19961. # It will help us diagnose broken compilers, and finding out an intuition
  19962. # of exeext.
  19963. -echo "$as_me:$LINENO: checking for C compiler default output" >&5
  19964. -echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  19965. +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  19966. +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  19967. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  19968. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  19969. (eval $ac_link_default) 2>&5
  19970. @@ -2204,23 +2238,23 @@
  19971. test -f "$ac_file" || continue
  19972. case $ac_file in
  19973. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  19974. - ;;
  19975. + ;;
  19976. conftest.$ac_ext )
  19977. - # This is the source file.
  19978. - ;;
  19979. + # This is the source file.
  19980. + ;;
  19981. [ab].out )
  19982. - # We found the default executable, but exeext='' is most
  19983. - # certainly right.
  19984. - break;;
  19985. + # We found the default executable, but exeext='' is most
  19986. + # certainly right.
  19987. + break;;
  19988. *.* )
  19989. - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  19990. - # FIXME: I believe we export ac_cv_exeext for Libtool,
  19991. - # but it would be cool to find out if it's true. Does anybody
  19992. - # maintain Libtool? --akim.
  19993. - export ac_cv_exeext
  19994. - break;;
  19995. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  19996. + # FIXME: I believe we export ac_cv_exeext for Libtool,
  19997. + # but it would be cool to find out if it's true. Does anybody
  19998. + # maintain Libtool? --akim.
  19999. + export ac_cv_exeext
  20000. + break;;
  20001. * )
  20002. - break;;
  20003. + break;;
  20004. esac
  20005. done
  20006. else
  20007. @@ -2294,8 +2328,8 @@
  20008. case $ac_file in
  20009. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  20010. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  20011. - export ac_cv_exeext
  20012. - break;;
  20013. + export ac_cv_exeext
  20014. + break;;
  20015. * ) break;;
  20016. esac
  20017. done
  20018. @@ -2320,7 +2354,6 @@
  20019. echo $ECHO_N "(cached) $ECHO_C" >&6
  20020. else
  20021. cat >conftest.$ac_ext <<_ACEOF
  20022. -#line $LINENO "configure"
  20023. /* confdefs.h. */
  20024. _ACEOF
  20025. cat confdefs.h >>conftest.$ac_ext
  20026. @@ -2371,7 +2404,6 @@
  20027. echo $ECHO_N "(cached) $ECHO_C" >&6
  20028. else
  20029. cat >conftest.$ac_ext <<_ACEOF
  20030. -#line $LINENO "configure"
  20031. /* confdefs.h. */
  20032. _ACEOF
  20033. cat confdefs.h >>conftest.$ac_ext
  20034. @@ -2391,11 +2423,20 @@
  20035. _ACEOF
  20036. rm -f conftest.$ac_objext
  20037. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20038. - (eval $ac_compile) 2>&5
  20039. + (eval $ac_compile) 2>conftest.er1
  20040. ac_status=$?
  20041. + grep -v '^ *+' conftest.er1 >conftest.err
  20042. + rm -f conftest.er1
  20043. + cat conftest.err >&5
  20044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20045. (exit $ac_status); } &&
  20046. - { ac_try='test -s conftest.$ac_objext'
  20047. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20048. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20049. + (eval $ac_try) 2>&5
  20050. + ac_status=$?
  20051. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20052. + (exit $ac_status); }; } &&
  20053. + { ac_try='test -s conftest.$ac_objext'
  20054. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20055. (eval $ac_try) 2>&5
  20056. ac_status=$?
  20057. @@ -2408,7 +2449,7 @@
  20058. ac_compiler_gnu=no
  20059. fi
  20060. -rm -f conftest.$ac_objext conftest.$ac_ext
  20061. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20062. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  20063. fi
  20064. @@ -2424,7 +2465,6 @@
  20065. echo $ECHO_N "(cached) $ECHO_C" >&6
  20066. else
  20067. cat >conftest.$ac_ext <<_ACEOF
  20068. -#line $LINENO "configure"
  20069. /* confdefs.h. */
  20070. _ACEOF
  20071. cat confdefs.h >>conftest.$ac_ext
  20072. @@ -2441,11 +2481,20 @@
  20073. _ACEOF
  20074. rm -f conftest.$ac_objext
  20075. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20076. - (eval $ac_compile) 2>&5
  20077. + (eval $ac_compile) 2>conftest.er1
  20078. ac_status=$?
  20079. + grep -v '^ *+' conftest.er1 >conftest.err
  20080. + rm -f conftest.er1
  20081. + cat conftest.err >&5
  20082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20083. (exit $ac_status); } &&
  20084. - { ac_try='test -s conftest.$ac_objext'
  20085. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20086. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20087. + (eval $ac_try) 2>&5
  20088. + ac_status=$?
  20089. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20090. + (exit $ac_status); }; } &&
  20091. + { ac_try='test -s conftest.$ac_objext'
  20092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20093. (eval $ac_try) 2>&5
  20094. ac_status=$?
  20095. @@ -2458,7 +2507,7 @@
  20096. ac_cv_prog_cc_g=no
  20097. fi
  20098. -rm -f conftest.$ac_objext conftest.$ac_ext
  20099. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20100. fi
  20101. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  20102. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  20103. @@ -2485,7 +2534,6 @@
  20104. ac_cv_prog_cc_stdc=no
  20105. ac_save_CC=$CC
  20106. cat >conftest.$ac_ext <<_ACEOF
  20107. -#line $LINENO "configure"
  20108. /* confdefs.h. */
  20109. _ACEOF
  20110. cat confdefs.h >>conftest.$ac_ext
  20111. @@ -2513,6 +2561,16 @@
  20112. va_end (v);
  20113. return s;
  20114. }
  20115. +
  20116. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  20117. + function prototypes and stuff, but not '\xHH' hex character constants.
  20118. + These don't provoke an error unfortunately, instead are silently treated
  20119. + as 'x'. The following induces an error, until -std1 is added to get
  20120. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  20121. + array size at least. It's necessary to write '\x00'==0 to get something
  20122. + that's true only with -std1. */
  20123. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  20124. +
  20125. int test (int i, double x);
  20126. struct s1 {int (*f) (int a);};
  20127. struct s2 {int (*f) (double a);};
  20128. @@ -2539,11 +2597,20 @@
  20129. CC="$ac_save_CC $ac_arg"
  20130. rm -f conftest.$ac_objext
  20131. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20132. - (eval $ac_compile) 2>&5
  20133. + (eval $ac_compile) 2>conftest.er1
  20134. ac_status=$?
  20135. + grep -v '^ *+' conftest.er1 >conftest.err
  20136. + rm -f conftest.er1
  20137. + cat conftest.err >&5
  20138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20139. (exit $ac_status); } &&
  20140. - { ac_try='test -s conftest.$ac_objext'
  20141. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20142. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20143. + (eval $ac_try) 2>&5
  20144. + ac_status=$?
  20145. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20146. + (exit $ac_status); }; } &&
  20147. + { ac_try='test -s conftest.$ac_objext'
  20148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20149. (eval $ac_try) 2>&5
  20150. ac_status=$?
  20151. @@ -2556,7 +2623,7 @@
  20152. sed 's/^/| /' conftest.$ac_ext >&5
  20153. fi
  20154. -rm -f conftest.$ac_objext
  20155. +rm -f conftest.err conftest.$ac_objext
  20156. done
  20157. rm -f conftest.$ac_ext conftest.$ac_objext
  20158. CC=$ac_save_CC
  20159. @@ -2584,11 +2651,20 @@
  20160. _ACEOF
  20161. rm -f conftest.$ac_objext
  20162. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20163. - (eval $ac_compile) 2>&5
  20164. + (eval $ac_compile) 2>conftest.er1
  20165. ac_status=$?
  20166. + grep -v '^ *+' conftest.er1 >conftest.err
  20167. + rm -f conftest.er1
  20168. + cat conftest.err >&5
  20169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20170. (exit $ac_status); } &&
  20171. - { ac_try='test -s conftest.$ac_objext'
  20172. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20173. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20174. + (eval $ac_try) 2>&5
  20175. + ac_status=$?
  20176. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20177. + (exit $ac_status); }; } &&
  20178. + { ac_try='test -s conftest.$ac_objext'
  20179. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20180. (eval $ac_try) 2>&5
  20181. ac_status=$?
  20182. @@ -2603,7 +2679,6 @@
  20183. 'void exit (int);'
  20184. do
  20185. cat >conftest.$ac_ext <<_ACEOF
  20186. -#line $LINENO "configure"
  20187. /* confdefs.h. */
  20188. _ACEOF
  20189. cat confdefs.h >>conftest.$ac_ext
  20190. @@ -2621,11 +2696,20 @@
  20191. _ACEOF
  20192. rm -f conftest.$ac_objext
  20193. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20194. - (eval $ac_compile) 2>&5
  20195. + (eval $ac_compile) 2>conftest.er1
  20196. ac_status=$?
  20197. + grep -v '^ *+' conftest.er1 >conftest.err
  20198. + rm -f conftest.er1
  20199. + cat conftest.err >&5
  20200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20201. (exit $ac_status); } &&
  20202. - { ac_try='test -s conftest.$ac_objext'
  20203. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20204. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20205. + (eval $ac_try) 2>&5
  20206. + ac_status=$?
  20207. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20208. + (exit $ac_status); }; } &&
  20209. + { ac_try='test -s conftest.$ac_objext'
  20210. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20211. (eval $ac_try) 2>&5
  20212. ac_status=$?
  20213. @@ -2638,9 +2722,8 @@
  20214. continue
  20215. fi
  20216. -rm -f conftest.$ac_objext conftest.$ac_ext
  20217. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20218. cat >conftest.$ac_ext <<_ACEOF
  20219. -#line $LINENO "configure"
  20220. /* confdefs.h. */
  20221. _ACEOF
  20222. cat confdefs.h >>conftest.$ac_ext
  20223. @@ -2657,11 +2740,20 @@
  20224. _ACEOF
  20225. rm -f conftest.$ac_objext
  20226. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20227. - (eval $ac_compile) 2>&5
  20228. + (eval $ac_compile) 2>conftest.er1
  20229. ac_status=$?
  20230. + grep -v '^ *+' conftest.er1 >conftest.err
  20231. + rm -f conftest.er1
  20232. + cat conftest.err >&5
  20233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20234. (exit $ac_status); } &&
  20235. - { ac_try='test -s conftest.$ac_objext'
  20236. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20237. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20238. + (eval $ac_try) 2>&5
  20239. + ac_status=$?
  20240. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20241. + (exit $ac_status); }; } &&
  20242. + { ac_try='test -s conftest.$ac_objext'
  20243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20244. (eval $ac_try) 2>&5
  20245. ac_status=$?
  20246. @@ -2673,7 +2765,7 @@
  20247. sed 's/^/| /' conftest.$ac_ext >&5
  20248. fi
  20249. -rm -f conftest.$ac_objext conftest.$ac_ext
  20250. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20251. done
  20252. rm -f conftest*
  20253. if test -n "$ac_declaration"; then
  20254. @@ -2687,7 +2779,7 @@
  20255. sed 's/^/| /' conftest.$ac_ext >&5
  20256. fi
  20257. -rm -f conftest.$ac_objext conftest.$ac_ext
  20258. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20259. ac_ext=c
  20260. ac_cpp='$CPP $CPPFLAGS'
  20261. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20262. @@ -2788,7 +2880,6 @@
  20263. ac_check_lib_save_LIBS=$LIBS
  20264. LIBS="-lfl $LIBS"
  20265. cat >conftest.$ac_ext <<_ACEOF
  20266. -#line $LINENO "configure"
  20267. /* confdefs.h. */
  20268. _ACEOF
  20269. cat confdefs.h >>conftest.$ac_ext
  20270. @@ -2812,11 +2903,20 @@
  20271. _ACEOF
  20272. rm -f conftest.$ac_objext conftest$ac_exeext
  20273. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20274. - (eval $ac_link) 2>&5
  20275. + (eval $ac_link) 2>conftest.er1
  20276. ac_status=$?
  20277. + grep -v '^ *+' conftest.er1 >conftest.err
  20278. + rm -f conftest.er1
  20279. + cat conftest.err >&5
  20280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20281. (exit $ac_status); } &&
  20282. - { ac_try='test -s conftest$ac_exeext'
  20283. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20284. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20285. + (eval $ac_try) 2>&5
  20286. + ac_status=$?
  20287. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20288. + (exit $ac_status); }; } &&
  20289. + { ac_try='test -s conftest$ac_exeext'
  20290. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20291. (eval $ac_try) 2>&5
  20292. ac_status=$?
  20293. @@ -2829,7 +2929,8 @@
  20294. ac_cv_lib_fl_yywrap=no
  20295. fi
  20296. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  20297. +rm -f conftest.err conftest.$ac_objext \
  20298. + conftest$ac_exeext conftest.$ac_ext
  20299. LIBS=$ac_check_lib_save_LIBS
  20300. fi
  20301. echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
  20302. @@ -2845,7 +2946,6 @@
  20303. ac_check_lib_save_LIBS=$LIBS
  20304. LIBS="-ll $LIBS"
  20305. cat >conftest.$ac_ext <<_ACEOF
  20306. -#line $LINENO "configure"
  20307. /* confdefs.h. */
  20308. _ACEOF
  20309. cat confdefs.h >>conftest.$ac_ext
  20310. @@ -2869,11 +2969,20 @@
  20311. _ACEOF
  20312. rm -f conftest.$ac_objext conftest$ac_exeext
  20313. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20314. - (eval $ac_link) 2>&5
  20315. + (eval $ac_link) 2>conftest.er1
  20316. ac_status=$?
  20317. + grep -v '^ *+' conftest.er1 >conftest.err
  20318. + rm -f conftest.er1
  20319. + cat conftest.err >&5
  20320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20321. (exit $ac_status); } &&
  20322. - { ac_try='test -s conftest$ac_exeext'
  20323. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20324. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20325. + (eval $ac_try) 2>&5
  20326. + ac_status=$?
  20327. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20328. + (exit $ac_status); }; } &&
  20329. + { ac_try='test -s conftest$ac_exeext'
  20330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20331. (eval $ac_try) 2>&5
  20332. ac_status=$?
  20333. @@ -2886,7 +2995,8 @@
  20334. ac_cv_lib_l_yywrap=no
  20335. fi
  20336. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  20337. +rm -f conftest.err conftest.$ac_objext \
  20338. + conftest$ac_exeext conftest.$ac_ext
  20339. LIBS=$ac_check_lib_save_LIBS
  20340. fi
  20341. echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
  20342. @@ -2948,11 +3058,20 @@
  20343. _ACEOF
  20344. rm -f conftest.$ac_objext conftest$ac_exeext
  20345. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20346. - (eval $ac_link) 2>&5
  20347. + (eval $ac_link) 2>conftest.er1
  20348. ac_status=$?
  20349. + grep -v '^ *+' conftest.er1 >conftest.err
  20350. + rm -f conftest.er1
  20351. + cat conftest.err >&5
  20352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20353. (exit $ac_status); } &&
  20354. - { ac_try='test -s conftest$ac_exeext'
  20355. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20356. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20357. + (eval $ac_try) 2>&5
  20358. + ac_status=$?
  20359. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20360. + (exit $ac_status); }; } &&
  20361. + { ac_try='test -s conftest$ac_exeext'
  20362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20363. (eval $ac_try) 2>&5
  20364. ac_status=$?
  20365. @@ -2964,7 +3083,8 @@
  20366. sed 's/^/| /' conftest.$ac_ext >&5
  20367. fi
  20368. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  20369. +rm -f conftest.err conftest.$ac_objext \
  20370. + conftest$ac_exeext conftest.$ac_ext
  20371. LIBS=$ac_save_LIBS
  20372. rm -f "${LEX_OUTPUT_ROOT}.c"
  20373. @@ -3033,6 +3153,7 @@
  20374. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  20375. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  20376. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  20377. +# OS/2's system install, which has a completely different semantic
  20378. # ./install, which can be erroneously created by make from ./install.sh.
  20379. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  20380. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  20381. @@ -3049,6 +3170,7 @@
  20382. case $as_dir/ in
  20383. ./ | .// | /cC/* | \
  20384. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  20385. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  20386. /usr/ucb/* ) ;;
  20387. *)
  20388. # OSF1 and SCO ODT 3.0 have their own names for install.
  20389. @@ -3056,20 +3178,20 @@
  20390. # by default.
  20391. for ac_prog in ginstall scoinst install; do
  20392. for ac_exec_ext in '' $ac_executable_extensions; do
  20393. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  20394. - if test $ac_prog = install &&
  20395. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  20396. - # AIX install. It has an incompatible calling convention.
  20397. - :
  20398. - elif test $ac_prog = install &&
  20399. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  20400. - # program-specific install script used by HP pwplus--don't use.
  20401. - :
  20402. - else
  20403. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  20404. - break 3
  20405. - fi
  20406. - fi
  20407. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  20408. + if test $ac_prog = install &&
  20409. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  20410. + # AIX install. It has an incompatible calling convention.
  20411. + :
  20412. + elif test $ac_prog = install &&
  20413. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  20414. + # program-specific install script used by HP pwplus--don't use.
  20415. + :
  20416. + else
  20417. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  20418. + break 3
  20419. + fi
  20420. + fi
  20421. done
  20422. done
  20423. ;;
  20424. @@ -3842,7 +3964,6 @@
  20425. # On the NeXT, cc -E runs the code through the compiler's parser,
  20426. # not just through cpp. "Syntax error" is here to catch this case.
  20427. cat >conftest.$ac_ext <<_ACEOF
  20428. -#line $LINENO "configure"
  20429. /* confdefs.h. */
  20430. _ACEOF
  20431. cat confdefs.h >>conftest.$ac_ext
  20432. @@ -3853,7 +3974,7 @@
  20433. #else
  20434. # include <assert.h>
  20435. #endif
  20436. - Syntax error
  20437. + Syntax error
  20438. _ACEOF
  20439. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20440. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20441. @@ -3865,6 +3986,7 @@
  20442. (exit $ac_status); } >/dev/null; then
  20443. if test -s conftest.err; then
  20444. ac_cpp_err=$ac_c_preproc_warn_flag
  20445. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20446. else
  20447. ac_cpp_err=
  20448. fi
  20449. @@ -3885,7 +4007,6 @@
  20450. # OK, works on sane cases. Now check whether non-existent headers
  20451. # can be detected and how.
  20452. cat >conftest.$ac_ext <<_ACEOF
  20453. -#line $LINENO "configure"
  20454. /* confdefs.h. */
  20455. _ACEOF
  20456. cat confdefs.h >>conftest.$ac_ext
  20457. @@ -3903,6 +4024,7 @@
  20458. (exit $ac_status); } >/dev/null; then
  20459. if test -s conftest.err; then
  20460. ac_cpp_err=$ac_c_preproc_warn_flag
  20461. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20462. else
  20463. ac_cpp_err=
  20464. fi
  20465. @@ -3949,7 +4071,6 @@
  20466. # On the NeXT, cc -E runs the code through the compiler's parser,
  20467. # not just through cpp. "Syntax error" is here to catch this case.
  20468. cat >conftest.$ac_ext <<_ACEOF
  20469. -#line $LINENO "configure"
  20470. /* confdefs.h. */
  20471. _ACEOF
  20472. cat confdefs.h >>conftest.$ac_ext
  20473. @@ -3960,7 +4081,7 @@
  20474. #else
  20475. # include <assert.h>
  20476. #endif
  20477. - Syntax error
  20478. + Syntax error
  20479. _ACEOF
  20480. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20481. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20482. @@ -3972,6 +4093,7 @@
  20483. (exit $ac_status); } >/dev/null; then
  20484. if test -s conftest.err; then
  20485. ac_cpp_err=$ac_c_preproc_warn_flag
  20486. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20487. else
  20488. ac_cpp_err=
  20489. fi
  20490. @@ -3992,7 +4114,6 @@
  20491. # OK, works on sane cases. Now check whether non-existent headers
  20492. # can be detected and how.
  20493. cat >conftest.$ac_ext <<_ACEOF
  20494. -#line $LINENO "configure"
  20495. /* confdefs.h. */
  20496. _ACEOF
  20497. cat confdefs.h >>conftest.$ac_ext
  20498. @@ -4010,6 +4131,7 @@
  20499. (exit $ac_status); } >/dev/null; then
  20500. if test -s conftest.err; then
  20501. ac_cpp_err=$ac_c_preproc_warn_flag
  20502. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20503. else
  20504. ac_cpp_err=
  20505. fi
  20506. @@ -4070,7 +4192,6 @@
  20507. echo $ECHO_N "(cached) $ECHO_C" >&6
  20508. else
  20509. cat >conftest.$ac_ext <<_ACEOF
  20510. -#line $LINENO "configure"
  20511. /* confdefs.h. */
  20512. _ACEOF
  20513. cat confdefs.h >>conftest.$ac_ext
  20514. @@ -4091,11 +4212,20 @@
  20515. _ACEOF
  20516. rm -f conftest.$ac_objext
  20517. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20518. - (eval $ac_compile) 2>&5
  20519. + (eval $ac_compile) 2>conftest.er1
  20520. ac_status=$?
  20521. + grep -v '^ *+' conftest.er1 >conftest.err
  20522. + rm -f conftest.er1
  20523. + cat conftest.err >&5
  20524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20525. (exit $ac_status); } &&
  20526. - { ac_try='test -s conftest.$ac_objext'
  20527. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20528. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20529. + (eval $ac_try) 2>&5
  20530. + ac_status=$?
  20531. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20532. + (exit $ac_status); }; } &&
  20533. + { ac_try='test -s conftest.$ac_objext'
  20534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20535. (eval $ac_try) 2>&5
  20536. ac_status=$?
  20537. @@ -4108,12 +4238,11 @@
  20538. ac_cv_header_stdc=no
  20539. fi
  20540. -rm -f conftest.$ac_objext conftest.$ac_ext
  20541. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20542. if test $ac_cv_header_stdc = yes; then
  20543. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  20544. cat >conftest.$ac_ext <<_ACEOF
  20545. -#line $LINENO "configure"
  20546. /* confdefs.h. */
  20547. _ACEOF
  20548. cat confdefs.h >>conftest.$ac_ext
  20549. @@ -4135,7 +4264,6 @@
  20550. if test $ac_cv_header_stdc = yes; then
  20551. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  20552. cat >conftest.$ac_ext <<_ACEOF
  20553. -#line $LINENO "configure"
  20554. /* confdefs.h. */
  20555. _ACEOF
  20556. cat confdefs.h >>conftest.$ac_ext
  20557. @@ -4160,7 +4288,6 @@
  20558. :
  20559. else
  20560. cat >conftest.$ac_ext <<_ACEOF
  20561. -#line $LINENO "configure"
  20562. /* confdefs.h. */
  20563. _ACEOF
  20564. cat confdefs.h >>conftest.$ac_ext
  20565. @@ -4172,9 +4299,9 @@
  20566. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  20567. #else
  20568. # define ISLOWER(c) \
  20569. - (('a' <= (c) && (c) <= 'i') \
  20570. - || ('j' <= (c) && (c) <= 'r') \
  20571. - || ('s' <= (c) && (c) <= 'z'))
  20572. + (('a' <= (c) && (c) <= 'i') \
  20573. + || ('j' <= (c) && (c) <= 'r') \
  20574. + || ('s' <= (c) && (c) <= 'z'))
  20575. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  20576. #endif
  20577. @@ -4185,7 +4312,7 @@
  20578. int i;
  20579. for (i = 0; i < 256; i++)
  20580. if (XOR (islower (i), ISLOWER (i))
  20581. - || toupper (i) != TOUPPER (i))
  20582. + || toupper (i) != TOUPPER (i))
  20583. exit(2);
  20584. exit (0);
  20585. }
  20586. @@ -4235,7 +4362,7 @@
  20587. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  20588. - inttypes.h stdint.h unistd.h
  20589. + inttypes.h stdint.h unistd.h
  20590. do
  20591. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20592. echo "$as_me:$LINENO: checking for $ac_header" >&5
  20593. @@ -4244,7 +4371,6 @@
  20594. echo $ECHO_N "(cached) $ECHO_C" >&6
  20595. else
  20596. cat >conftest.$ac_ext <<_ACEOF
  20597. -#line $LINENO "configure"
  20598. /* confdefs.h. */
  20599. _ACEOF
  20600. cat confdefs.h >>conftest.$ac_ext
  20601. @@ -4256,11 +4382,20 @@
  20602. _ACEOF
  20603. rm -f conftest.$ac_objext
  20604. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20605. - (eval $ac_compile) 2>&5
  20606. + (eval $ac_compile) 2>conftest.er1
  20607. ac_status=$?
  20608. + grep -v '^ *+' conftest.er1 >conftest.err
  20609. + rm -f conftest.er1
  20610. + cat conftest.err >&5
  20611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20612. (exit $ac_status); } &&
  20613. - { ac_try='test -s conftest.$ac_objext'
  20614. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20615. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20616. + (eval $ac_try) 2>&5
  20617. + ac_status=$?
  20618. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20619. + (exit $ac_status); }; } &&
  20620. + { ac_try='test -s conftest.$ac_objext'
  20621. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20622. (eval $ac_try) 2>&5
  20623. ac_status=$?
  20624. @@ -4273,7 +4408,7 @@
  20625. eval "$as_ac_Header=no"
  20626. fi
  20627. -rm -f conftest.$ac_objext conftest.$ac_ext
  20628. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20629. fi
  20630. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20631. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20632. @@ -4304,7 +4439,6 @@
  20633. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20634. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  20635. cat >conftest.$ac_ext <<_ACEOF
  20636. -#line $LINENO "configure"
  20637. /* confdefs.h. */
  20638. _ACEOF
  20639. cat confdefs.h >>conftest.$ac_ext
  20640. @@ -4315,11 +4449,20 @@
  20641. _ACEOF
  20642. rm -f conftest.$ac_objext
  20643. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20644. - (eval $ac_compile) 2>&5
  20645. + (eval $ac_compile) 2>conftest.er1
  20646. ac_status=$?
  20647. + grep -v '^ *+' conftest.er1 >conftest.err
  20648. + rm -f conftest.er1
  20649. + cat conftest.err >&5
  20650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20651. (exit $ac_status); } &&
  20652. - { ac_try='test -s conftest.$ac_objext'
  20653. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20654. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20655. + (eval $ac_try) 2>&5
  20656. + ac_status=$?
  20657. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20658. + (exit $ac_status); }; } &&
  20659. + { ac_try='test -s conftest.$ac_objext'
  20660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20661. (eval $ac_try) 2>&5
  20662. ac_status=$?
  20663. @@ -4332,7 +4475,7 @@
  20664. ac_header_compiler=no
  20665. fi
  20666. -rm -f conftest.$ac_objext conftest.$ac_ext
  20667. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20668. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20669. echo "${ECHO_T}$ac_header_compiler" >&6
  20670. @@ -4340,7 +4483,6 @@
  20671. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20672. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  20673. cat >conftest.$ac_ext <<_ACEOF
  20674. -#line $LINENO "configure"
  20675. /* confdefs.h. */
  20676. _ACEOF
  20677. cat confdefs.h >>conftest.$ac_ext
  20678. @@ -4358,6 +4500,7 @@
  20679. (exit $ac_status); } >/dev/null; then
  20680. if test -s conftest.err; then
  20681. ac_cpp_err=$ac_c_preproc_warn_flag
  20682. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20683. else
  20684. ac_cpp_err=
  20685. fi
  20686. @@ -4377,33 +4520,32 @@
  20687. echo "${ECHO_T}$ac_header_preproc" >&6
  20688. # So? What about this header?
  20689. -case $ac_header_compiler:$ac_header_preproc in
  20690. - yes:no )
  20691. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20692. + yes:no: )
  20693. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20694. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20695. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20696. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20697. - (
  20698. - cat <<\_ASBOX
  20699. -## ------------------------------------ ##
  20700. -## Report this to bug-autoconf@gnu.org. ##
  20701. -## ------------------------------------ ##
  20702. -_ASBOX
  20703. - ) |
  20704. - sed "s/^/$as_me: WARNING: /" >&2
  20705. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20706. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20707. + ac_header_preproc=yes
  20708. ;;
  20709. - no:yes )
  20710. + no:yes:* )
  20711. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20712. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20713. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20714. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20715. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20716. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20717. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20718. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20719. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20720. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20721. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20722. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20723. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20724. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20725. (
  20726. cat <<\_ASBOX
  20727. -## ------------------------------------ ##
  20728. -## Report this to bug-autoconf@gnu.org. ##
  20729. -## ------------------------------------ ##
  20730. +## ------------------------------------------ ##
  20731. +## Report this to the AC_PACKAGE_NAME lists. ##
  20732. +## ------------------------------------------ ##
  20733. _ASBOX
  20734. ) |
  20735. sed "s/^/$as_me: WARNING: /" >&2
  20736. @@ -4414,7 +4556,7 @@
  20737. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20738. echo $ECHO_N "(cached) $ECHO_C" >&6
  20739. else
  20740. - eval "$as_ac_Header=$ac_header_preproc"
  20741. + eval "$as_ac_Header=\$ac_header_preproc"
  20742. fi
  20743. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20744. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20745. @@ -4749,7 +4891,7 @@
  20746. case $host in
  20747. *-*-irix6*)
  20748. # Find out which ABI we are using.
  20749. - echo '#line 4752 "configure"' > conftest.$ac_ext
  20750. + echo '#line 4894 "configure"' > conftest.$ac_ext
  20751. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20752. (eval $ac_compile) 2>&5
  20753. ac_status=$?
  20754. @@ -4788,7 +4930,6 @@
  20755. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20756. cat >conftest.$ac_ext <<_ACEOF
  20757. -#line $LINENO "configure"
  20758. /* confdefs.h. */
  20759. _ACEOF
  20760. cat confdefs.h >>conftest.$ac_ext
  20761. @@ -4805,11 +4946,20 @@
  20762. _ACEOF
  20763. rm -f conftest.$ac_objext conftest$ac_exeext
  20764. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20765. - (eval $ac_link) 2>&5
  20766. + (eval $ac_link) 2>conftest.er1
  20767. ac_status=$?
  20768. + grep -v '^ *+' conftest.er1 >conftest.err
  20769. + rm -f conftest.er1
  20770. + cat conftest.err >&5
  20771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20772. (exit $ac_status); } &&
  20773. - { ac_try='test -s conftest$ac_exeext'
  20774. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20775. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20776. + (eval $ac_try) 2>&5
  20777. + ac_status=$?
  20778. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20779. + (exit $ac_status); }; } &&
  20780. + { ac_try='test -s conftest$ac_exeext'
  20781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20782. (eval $ac_try) 2>&5
  20783. ac_status=$?
  20784. @@ -4822,7 +4972,8 @@
  20785. lt_cv_cc_needs_belf=no
  20786. fi
  20787. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  20788. +rm -f conftest.err conftest.$ac_objext \
  20789. + conftest$ac_exeext conftest.$ac_ext
  20790. ac_ext=c
  20791. ac_cpp='$CPP $CPPFLAGS'
  20792. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20793. @@ -5117,7 +5268,6 @@
  20794. save_CFLAGS="$CFLAGS"
  20795. CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  20796. cat >conftest.$ac_ext <<_ACEOF
  20797. -#line $LINENO "configure"
  20798. /* confdefs.h. */
  20799. _ACEOF
  20800. cat confdefs.h >>conftest.$ac_ext
  20801. @@ -5134,11 +5284,20 @@
  20802. _ACEOF
  20803. rm -f conftest.$ac_objext
  20804. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20805. - (eval $ac_compile) 2>&5
  20806. + (eval $ac_compile) 2>conftest.er1
  20807. ac_status=$?
  20808. + grep -v '^ *+' conftest.er1 >conftest.err
  20809. + rm -f conftest.er1
  20810. + cat conftest.err >&5
  20811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20812. (exit $ac_status); } &&
  20813. - { ac_try='test -s conftest.$ac_objext'
  20814. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20815. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20816. + (eval $ac_try) 2>&5
  20817. + ac_status=$?
  20818. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20819. + (exit $ac_status); }; } &&
  20820. + { ac_try='test -s conftest.$ac_objext'
  20821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20822. (eval $ac_try) 2>&5
  20823. ac_status=$?
  20824. @@ -5167,7 +5326,7 @@
  20825. lt_cv_prog_cc_pic_works=no
  20826. fi
  20827. -rm -f conftest.$ac_objext conftest.$ac_ext
  20828. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20829. CFLAGS="$save_CFLAGS"
  20830. fi
  20831. @@ -5205,7 +5364,6 @@
  20832. save_LDFLAGS="$LDFLAGS"
  20833. LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  20834. cat >conftest.$ac_ext <<_ACEOF
  20835. -#line $LINENO "configure"
  20836. /* confdefs.h. */
  20837. _ACEOF
  20838. cat confdefs.h >>conftest.$ac_ext
  20839. @@ -5222,11 +5380,20 @@
  20840. _ACEOF
  20841. rm -f conftest.$ac_objext conftest$ac_exeext
  20842. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20843. - (eval $ac_link) 2>&5
  20844. + (eval $ac_link) 2>conftest.er1
  20845. ac_status=$?
  20846. + grep -v '^ *+' conftest.er1 >conftest.err
  20847. + rm -f conftest.er1
  20848. + cat conftest.err >&5
  20849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20850. (exit $ac_status); } &&
  20851. - { ac_try='test -s conftest$ac_exeext'
  20852. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20853. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20854. + (eval $ac_try) 2>&5
  20855. + ac_status=$?
  20856. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20857. + (exit $ac_status); }; } &&
  20858. + { ac_try='test -s conftest$ac_exeext'
  20859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20860. (eval $ac_try) 2>&5
  20861. ac_status=$?
  20862. @@ -5238,7 +5405,8 @@
  20863. sed 's/^/| /' conftest.$ac_ext >&5
  20864. fi
  20865. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  20866. +rm -f conftest.err conftest.$ac_objext \
  20867. + conftest$ac_exeext conftest.$ac_ext
  20868. LDFLAGS="$save_LDFLAGS"
  20869. fi
  20870. @@ -5278,7 +5446,7 @@
  20871. save_CFLAGS="$CFLAGS"
  20872. CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  20873. compiler_c_o=no
  20874. -if { (eval echo configure:5281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  20875. +if { (eval echo configure:5449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  20876. # The compiler can only warn and ignore the option if not recognized
  20877. # So say no if there are warnings
  20878. if test -s out/conftest.err; then
  20879. @@ -5319,7 +5487,6 @@
  20880. save_objext="$ac_objext"
  20881. ac_objext=lo
  20882. cat >conftest.$ac_ext <<_ACEOF
  20883. -#line $LINENO "configure"
  20884. /* confdefs.h. */
  20885. _ACEOF
  20886. cat confdefs.h >>conftest.$ac_ext
  20887. @@ -5336,11 +5503,20 @@
  20888. _ACEOF
  20889. rm -f conftest.$ac_objext
  20890. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20891. - (eval $ac_compile) 2>&5
  20892. + (eval $ac_compile) 2>conftest.er1
  20893. ac_status=$?
  20894. + grep -v '^ *+' conftest.er1 >conftest.err
  20895. + rm -f conftest.er1
  20896. + cat conftest.err >&5
  20897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20898. (exit $ac_status); } &&
  20899. - { ac_try='test -s conftest.$ac_objext'
  20900. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20901. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20902. + (eval $ac_try) 2>&5
  20903. + ac_status=$?
  20904. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20905. + (exit $ac_status); }; } &&
  20906. + { ac_try='test -s conftest.$ac_objext'
  20907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20908. (eval $ac_try) 2>&5
  20909. ac_status=$?
  20910. @@ -5359,7 +5535,7 @@
  20911. sed 's/^/| /' conftest.$ac_ext >&5
  20912. fi
  20913. -rm -f conftest.$ac_objext conftest.$ac_ext
  20914. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20915. ac_objext="$save_objext"
  20916. CFLAGS="$save_CFLAGS"
  20917. @@ -5404,7 +5580,6 @@
  20918. CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  20919. compiler_rtti_exceptions=no
  20920. cat >conftest.$ac_ext <<_ACEOF
  20921. -#line $LINENO "configure"
  20922. /* confdefs.h. */
  20923. _ACEOF
  20924. cat confdefs.h >>conftest.$ac_ext
  20925. @@ -5421,11 +5596,20 @@
  20926. _ACEOF
  20927. rm -f conftest.$ac_objext
  20928. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20929. - (eval $ac_compile) 2>&5
  20930. + (eval $ac_compile) 2>conftest.er1
  20931. ac_status=$?
  20932. + grep -v '^ *+' conftest.er1 >conftest.err
  20933. + rm -f conftest.er1
  20934. + cat conftest.err >&5
  20935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20936. (exit $ac_status); } &&
  20937. - { ac_try='test -s conftest.$ac_objext'
  20938. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20939. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20940. + (eval $ac_try) 2>&5
  20941. + ac_status=$?
  20942. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20943. + (exit $ac_status); }; } &&
  20944. + { ac_try='test -s conftest.$ac_objext'
  20945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20946. (eval $ac_try) 2>&5
  20947. ac_status=$?
  20948. @@ -5444,7 +5628,7 @@
  20949. sed 's/^/| /' conftest.$ac_ext >&5
  20950. fi
  20951. -rm -f conftest.$ac_objext conftest.$ac_ext
  20952. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20953. CFLAGS="$save_CFLAGS"
  20954. echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
  20955. echo "${ECHO_T}$compiler_rtti_exceptions" >&6
  20956. @@ -6704,21 +6888,28 @@
  20957. echo $ECHO_N "(cached) $ECHO_C" >&6
  20958. else
  20959. cat >conftest.$ac_ext <<_ACEOF
  20960. -#line $LINENO "configure"
  20961. /* confdefs.h. */
  20962. _ACEOF
  20963. cat confdefs.h >>conftest.$ac_ext
  20964. cat >>conftest.$ac_ext <<_ACEOF
  20965. /* end confdefs.h. */
  20966. +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  20967. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20968. +#define shl_load innocuous_shl_load
  20969. +
  20970. /* System header to define __stub macros and hopefully few prototypes,
  20971. which can conflict with char shl_load (); below.
  20972. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20973. <limits.h> exists even on freestanding compilers. */
  20974. +
  20975. #ifdef __STDC__
  20976. # include <limits.h>
  20977. #else
  20978. # include <assert.h>
  20979. #endif
  20980. +
  20981. +#undef shl_load
  20982. +
  20983. /* Override any gcc2 internal prototype to avoid an error. */
  20984. #ifdef __cplusplus
  20985. extern "C"
  20986. @@ -6749,11 +6940,20 @@
  20987. _ACEOF
  20988. rm -f conftest.$ac_objext conftest$ac_exeext
  20989. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20990. - (eval $ac_link) 2>&5
  20991. + (eval $ac_link) 2>conftest.er1
  20992. ac_status=$?
  20993. + grep -v '^ *+' conftest.er1 >conftest.err
  20994. + rm -f conftest.er1
  20995. + cat conftest.err >&5
  20996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20997. (exit $ac_status); } &&
  20998. - { ac_try='test -s conftest$ac_exeext'
  20999. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21000. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21001. + (eval $ac_try) 2>&5
  21002. + ac_status=$?
  21003. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21004. + (exit $ac_status); }; } &&
  21005. + { ac_try='test -s conftest$ac_exeext'
  21006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21007. (eval $ac_try) 2>&5
  21008. ac_status=$?
  21009. @@ -6766,7 +6966,8 @@
  21010. ac_cv_func_shl_load=no
  21011. fi
  21012. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  21013. +rm -f conftest.err conftest.$ac_objext \
  21014. + conftest$ac_exeext conftest.$ac_ext
  21015. fi
  21016. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  21017. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  21018. @@ -6781,7 +6982,6 @@
  21019. ac_check_lib_save_LIBS=$LIBS
  21020. LIBS="-ldld $LIBS"
  21021. cat >conftest.$ac_ext <<_ACEOF
  21022. -#line $LINENO "configure"
  21023. /* confdefs.h. */
  21024. _ACEOF
  21025. cat confdefs.h >>conftest.$ac_ext
  21026. @@ -6805,11 +7005,20 @@
  21027. _ACEOF
  21028. rm -f conftest.$ac_objext conftest$ac_exeext
  21029. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21030. - (eval $ac_link) 2>&5
  21031. + (eval $ac_link) 2>conftest.er1
  21032. ac_status=$?
  21033. + grep -v '^ *+' conftest.er1 >conftest.err
  21034. + rm -f conftest.er1
  21035. + cat conftest.err >&5
  21036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21037. (exit $ac_status); } &&
  21038. - { ac_try='test -s conftest$ac_exeext'
  21039. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21040. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21041. + (eval $ac_try) 2>&5
  21042. + ac_status=$?
  21043. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21044. + (exit $ac_status); }; } &&
  21045. + { ac_try='test -s conftest$ac_exeext'
  21046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21047. (eval $ac_try) 2>&5
  21048. ac_status=$?
  21049. @@ -6822,7 +7031,8 @@
  21050. ac_cv_lib_dld_shl_load=no
  21051. fi
  21052. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  21053. +rm -f conftest.err conftest.$ac_objext \
  21054. + conftest$ac_exeext conftest.$ac_ext
  21055. LIBS=$ac_check_lib_save_LIBS
  21056. fi
  21057. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  21058. @@ -6836,21 +7046,28 @@
  21059. echo $ECHO_N "(cached) $ECHO_C" >&6
  21060. else
  21061. cat >conftest.$ac_ext <<_ACEOF
  21062. -#line $LINENO "configure"
  21063. /* confdefs.h. */
  21064. _ACEOF
  21065. cat confdefs.h >>conftest.$ac_ext
  21066. cat >>conftest.$ac_ext <<_ACEOF
  21067. /* end confdefs.h. */
  21068. +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  21069. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21070. +#define dlopen innocuous_dlopen
  21071. +
  21072. /* System header to define __stub macros and hopefully few prototypes,
  21073. which can conflict with char dlopen (); below.
  21074. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21075. <limits.h> exists even on freestanding compilers. */
  21076. +
  21077. #ifdef __STDC__
  21078. # include <limits.h>
  21079. #else
  21080. # include <assert.h>
  21081. #endif
  21082. +
  21083. +#undef dlopen
  21084. +
  21085. /* Override any gcc2 internal prototype to avoid an error. */
  21086. #ifdef __cplusplus
  21087. extern "C"
  21088. @@ -6881,11 +7098,20 @@
  21089. _ACEOF
  21090. rm -f conftest.$ac_objext conftest$ac_exeext
  21091. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21092. - (eval $ac_link) 2>&5
  21093. + (eval $ac_link) 2>conftest.er1
  21094. ac_status=$?
  21095. + grep -v '^ *+' conftest.er1 >conftest.err
  21096. + rm -f conftest.er1
  21097. + cat conftest.err >&5
  21098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21099. (exit $ac_status); } &&
  21100. - { ac_try='test -s conftest$ac_exeext'
  21101. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21102. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21103. + (eval $ac_try) 2>&5
  21104. + ac_status=$?
  21105. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21106. + (exit $ac_status); }; } &&
  21107. + { ac_try='test -s conftest$ac_exeext'
  21108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21109. (eval $ac_try) 2>&5
  21110. ac_status=$?
  21111. @@ -6898,7 +7124,8 @@
  21112. ac_cv_func_dlopen=no
  21113. fi
  21114. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  21115. +rm -f conftest.err conftest.$ac_objext \
  21116. + conftest$ac_exeext conftest.$ac_ext
  21117. fi
  21118. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  21119. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  21120. @@ -6913,7 +7140,6 @@
  21121. ac_check_lib_save_LIBS=$LIBS
  21122. LIBS="-ldl $LIBS"
  21123. cat >conftest.$ac_ext <<_ACEOF
  21124. -#line $LINENO "configure"
  21125. /* confdefs.h. */
  21126. _ACEOF
  21127. cat confdefs.h >>conftest.$ac_ext
  21128. @@ -6937,11 +7163,20 @@
  21129. _ACEOF
  21130. rm -f conftest.$ac_objext conftest$ac_exeext
  21131. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21132. - (eval $ac_link) 2>&5
  21133. + (eval $ac_link) 2>conftest.er1
  21134. ac_status=$?
  21135. + grep -v '^ *+' conftest.er1 >conftest.err
  21136. + rm -f conftest.er1
  21137. + cat conftest.err >&5
  21138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21139. (exit $ac_status); } &&
  21140. - { ac_try='test -s conftest$ac_exeext'
  21141. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21142. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21143. + (eval $ac_try) 2>&5
  21144. + ac_status=$?
  21145. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21146. + (exit $ac_status); }; } &&
  21147. + { ac_try='test -s conftest$ac_exeext'
  21148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21149. (eval $ac_try) 2>&5
  21150. ac_status=$?
  21151. @@ -6954,7 +7189,8 @@
  21152. ac_cv_lib_dl_dlopen=no
  21153. fi
  21154. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  21155. +rm -f conftest.err conftest.$ac_objext \
  21156. + conftest$ac_exeext conftest.$ac_ext
  21157. LIBS=$ac_check_lib_save_LIBS
  21158. fi
  21159. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  21160. @@ -6970,7 +7206,6 @@
  21161. ac_check_lib_save_LIBS=$LIBS
  21162. LIBS="-lsvld $LIBS"
  21163. cat >conftest.$ac_ext <<_ACEOF
  21164. -#line $LINENO "configure"
  21165. /* confdefs.h. */
  21166. _ACEOF
  21167. cat confdefs.h >>conftest.$ac_ext
  21168. @@ -6994,11 +7229,20 @@
  21169. _ACEOF
  21170. rm -f conftest.$ac_objext conftest$ac_exeext
  21171. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21172. - (eval $ac_link) 2>&5
  21173. + (eval $ac_link) 2>conftest.er1
  21174. ac_status=$?
  21175. + grep -v '^ *+' conftest.er1 >conftest.err
  21176. + rm -f conftest.er1
  21177. + cat conftest.err >&5
  21178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21179. (exit $ac_status); } &&
  21180. - { ac_try='test -s conftest$ac_exeext'
  21181. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21182. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21183. + (eval $ac_try) 2>&5
  21184. + ac_status=$?
  21185. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21186. + (exit $ac_status); }; } &&
  21187. + { ac_try='test -s conftest$ac_exeext'
  21188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21189. (eval $ac_try) 2>&5
  21190. ac_status=$?
  21191. @@ -7011,7 +7255,8 @@
  21192. ac_cv_lib_svld_dlopen=no
  21193. fi
  21194. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  21195. +rm -f conftest.err conftest.$ac_objext \
  21196. + conftest$ac_exeext conftest.$ac_ext
  21197. LIBS=$ac_check_lib_save_LIBS
  21198. fi
  21199. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  21200. @@ -7027,7 +7272,6 @@
  21201. ac_check_lib_save_LIBS=$LIBS
  21202. LIBS="-ldld $LIBS"
  21203. cat >conftest.$ac_ext <<_ACEOF
  21204. -#line $LINENO "configure"
  21205. /* confdefs.h. */
  21206. _ACEOF
  21207. cat confdefs.h >>conftest.$ac_ext
  21208. @@ -7051,11 +7295,20 @@
  21209. _ACEOF
  21210. rm -f conftest.$ac_objext conftest$ac_exeext
  21211. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21212. - (eval $ac_link) 2>&5
  21213. + (eval $ac_link) 2>conftest.er1
  21214. ac_status=$?
  21215. + grep -v '^ *+' conftest.er1 >conftest.err
  21216. + rm -f conftest.er1
  21217. + cat conftest.err >&5
  21218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21219. (exit $ac_status); } &&
  21220. - { ac_try='test -s conftest$ac_exeext'
  21221. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21222. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21223. + (eval $ac_try) 2>&5
  21224. + ac_status=$?
  21225. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21226. + (exit $ac_status); }; } &&
  21227. + { ac_try='test -s conftest$ac_exeext'
  21228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21229. (eval $ac_try) 2>&5
  21230. ac_status=$?
  21231. @@ -7068,7 +7321,8 @@
  21232. ac_cv_lib_dld_dld_link=no
  21233. fi
  21234. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  21235. +rm -f conftest.err conftest.$ac_objext \
  21236. + conftest$ac_exeext conftest.$ac_ext
  21237. LIBS=$ac_check_lib_save_LIBS
  21238. fi
  21239. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  21240. @@ -7123,7 +7377,7 @@
  21241. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  21242. lt_status=$lt_dlunknown
  21243. cat > conftest.$ac_ext <<EOF
  21244. -#line 7126 "configure"
  21245. +#line 7380 "configure"
  21246. #include "confdefs.h"
  21247. #if HAVE_DLFCN_H
  21248. @@ -7221,7 +7475,7 @@
  21249. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  21250. lt_status=$lt_dlunknown
  21251. cat > conftest.$ac_ext <<EOF
  21252. -#line 7224 "configure"
  21253. +#line 7478 "configure"
  21254. #include "confdefs.h"
  21255. #if HAVE_DLFCN_H
  21256. @@ -8005,7 +8259,6 @@
  21257. echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
  21258. echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6
  21259. cat >conftest.$ac_ext <<_ACEOF
  21260. -#line $LINENO "configure"
  21261. /* confdefs.h. */
  21262. _ACEOF
  21263. cat confdefs.h >>conftest.$ac_ext
  21264. @@ -8016,11 +8269,20 @@
  21265. _ACEOF
  21266. rm -f conftest.$ac_objext
  21267. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21268. - (eval $ac_compile) 2>&5
  21269. + (eval $ac_compile) 2>conftest.er1
  21270. ac_status=$?
  21271. + grep -v '^ *+' conftest.er1 >conftest.err
  21272. + rm -f conftest.er1
  21273. + cat conftest.err >&5
  21274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21275. (exit $ac_status); } &&
  21276. - { ac_try='test -s conftest.$ac_objext'
  21277. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21278. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21279. + (eval $ac_try) 2>&5
  21280. + ac_status=$?
  21281. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21282. + (exit $ac_status); }; } &&
  21283. + { ac_try='test -s conftest.$ac_objext'
  21284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21285. (eval $ac_try) 2>&5
  21286. ac_status=$?
  21287. @@ -8033,7 +8295,7 @@
  21288. ac_header_compiler=no
  21289. fi
  21290. -rm -f conftest.$ac_objext conftest.$ac_ext
  21291. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21292. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21293. echo "${ECHO_T}$ac_header_compiler" >&6
  21294. @@ -8041,7 +8303,6 @@
  21295. echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
  21296. echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6
  21297. cat >conftest.$ac_ext <<_ACEOF
  21298. -#line $LINENO "configure"
  21299. /* confdefs.h. */
  21300. _ACEOF
  21301. cat confdefs.h >>conftest.$ac_ext
  21302. @@ -8059,6 +8320,7 @@
  21303. (exit $ac_status); } >/dev/null; then
  21304. if test -s conftest.err; then
  21305. ac_cpp_err=$ac_c_preproc_warn_flag
  21306. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21307. else
  21308. ac_cpp_err=
  21309. fi
  21310. @@ -8078,33 +8340,32 @@
  21311. echo "${ECHO_T}$ac_header_preproc" >&6
  21312. # So? What about this header?
  21313. -case $ac_header_compiler:$ac_header_preproc in
  21314. - yes:no )
  21315. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21316. + yes:no: )
  21317. { echo "$as_me:$LINENO: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
  21318. echo "$as_me: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21319. - { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
  21320. -echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
  21321. - (
  21322. - cat <<\_ASBOX
  21323. -## ------------------------------------ ##
  21324. -## Report this to bug-autoconf@gnu.org. ##
  21325. -## ------------------------------------ ##
  21326. -_ASBOX
  21327. - ) |
  21328. - sed "s/^/$as_me: WARNING: /" >&2
  21329. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the compiler's result" >&5
  21330. +echo "$as_me: WARNING: asm/errno.h: proceeding with the compiler's result" >&2;}
  21331. + ac_header_preproc=yes
  21332. ;;
  21333. - no:yes )
  21334. + no:yes:* )
  21335. { echo "$as_me:$LINENO: WARNING: asm/errno.h: present but cannot be compiled" >&5
  21336. echo "$as_me: WARNING: asm/errno.h: present but cannot be compiled" >&2;}
  21337. - { echo "$as_me:$LINENO: WARNING: asm/errno.h: check for missing prerequisite headers?" >&5
  21338. -echo "$as_me: WARNING: asm/errno.h: check for missing prerequisite headers?" >&2;}
  21339. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: check for missing prerequisite headers?" >&5
  21340. +echo "$as_me: WARNING: asm/errno.h: check for missing prerequisite headers?" >&2;}
  21341. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: see the Autoconf documentation" >&5
  21342. +echo "$as_me: WARNING: asm/errno.h: see the Autoconf documentation" >&2;}
  21343. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: section \"Present But Cannot Be Compiled\"" >&5
  21344. +echo "$as_me: WARNING: asm/errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
  21345. { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
  21346. echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
  21347. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&5
  21348. +echo "$as_me: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&2;}
  21349. (
  21350. cat <<\_ASBOX
  21351. -## ------------------------------------ ##
  21352. -## Report this to bug-autoconf@gnu.org. ##
  21353. -## ------------------------------------ ##
  21354. +## ------------------------------------------ ##
  21355. +## Report this to the AC_PACKAGE_NAME lists. ##
  21356. +## ------------------------------------------ ##
  21357. _ASBOX
  21358. ) |
  21359. sed "s/^/$as_me: WARNING: /" >&2
  21360. @@ -8145,7 +8406,6 @@
  21361. echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
  21362. echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6
  21363. cat >conftest.$ac_ext <<_ACEOF
  21364. -#line $LINENO "configure"
  21365. /* confdefs.h. */
  21366. _ACEOF
  21367. cat confdefs.h >>conftest.$ac_ext
  21368. @@ -8156,11 +8416,20 @@
  21369. _ACEOF
  21370. rm -f conftest.$ac_objext
  21371. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21372. - (eval $ac_compile) 2>&5
  21373. + (eval $ac_compile) 2>conftest.er1
  21374. ac_status=$?
  21375. + grep -v '^ *+' conftest.er1 >conftest.err
  21376. + rm -f conftest.er1
  21377. + cat conftest.err >&5
  21378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21379. (exit $ac_status); } &&
  21380. - { ac_try='test -s conftest.$ac_objext'
  21381. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21382. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21383. + (eval $ac_try) 2>&5
  21384. + ac_status=$?
  21385. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21386. + (exit $ac_status); }; } &&
  21387. + { ac_try='test -s conftest.$ac_objext'
  21388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21389. (eval $ac_try) 2>&5
  21390. ac_status=$?
  21391. @@ -8173,7 +8442,7 @@
  21392. ac_header_compiler=no
  21393. fi
  21394. -rm -f conftest.$ac_objext conftest.$ac_ext
  21395. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21396. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21397. echo "${ECHO_T}$ac_header_compiler" >&6
  21398. @@ -8181,7 +8450,6 @@
  21399. echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
  21400. echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6
  21401. cat >conftest.$ac_ext <<_ACEOF
  21402. -#line $LINENO "configure"
  21403. /* confdefs.h. */
  21404. _ACEOF
  21405. cat confdefs.h >>conftest.$ac_ext
  21406. @@ -8199,6 +8467,7 @@
  21407. (exit $ac_status); } >/dev/null; then
  21408. if test -s conftest.err; then
  21409. ac_cpp_err=$ac_c_preproc_warn_flag
  21410. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21411. else
  21412. ac_cpp_err=
  21413. fi
  21414. @@ -8218,33 +8487,32 @@
  21415. echo "${ECHO_T}$ac_header_preproc" >&6
  21416. # So? What about this header?
  21417. -case $ac_header_compiler:$ac_header_preproc in
  21418. - yes:no )
  21419. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21420. + yes:no: )
  21421. { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&5
  21422. echo "$as_me: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21423. - { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
  21424. -echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
  21425. - (
  21426. - cat <<\_ASBOX
  21427. -## ------------------------------------ ##
  21428. -## Report this to bug-autoconf@gnu.org. ##
  21429. -## ------------------------------------ ##
  21430. -_ASBOX
  21431. - ) |
  21432. - sed "s/^/$as_me: WARNING: /" >&2
  21433. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&5
  21434. +echo "$as_me: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&2;}
  21435. + ac_header_preproc=yes
  21436. ;;
  21437. - no:yes )
  21438. + no:yes:* )
  21439. { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: present but cannot be compiled" >&5
  21440. echo "$as_me: WARNING: linux/atmsap.h: present but cannot be compiled" >&2;}
  21441. - { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&5
  21442. -echo "$as_me: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&2;}
  21443. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&5
  21444. +echo "$as_me: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&2;}
  21445. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: see the Autoconf documentation" >&5
  21446. +echo "$as_me: WARNING: linux/atmsap.h: see the Autoconf documentation" >&2;}
  21447. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: section \"Present But Cannot Be Compiled\"" >&5
  21448. +echo "$as_me: WARNING: linux/atmsap.h: section \"Present But Cannot Be Compiled\"" >&2;}
  21449. { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
  21450. echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
  21451. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&5
  21452. +echo "$as_me: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&2;}
  21453. (
  21454. cat <<\_ASBOX
  21455. -## ------------------------------------ ##
  21456. -## Report this to bug-autoconf@gnu.org. ##
  21457. -## ------------------------------------ ##
  21458. +## ------------------------------------------ ##
  21459. +## Report this to the AC_PACKAGE_NAME lists. ##
  21460. +## ------------------------------------------ ##
  21461. _ASBOX
  21462. ) |
  21463. sed "s/^/$as_me: WARNING: /" >&2
  21464. @@ -8281,7 +8549,6 @@
  21465. ac_check_lib_save_LIBS=$LIBS
  21466. LIBS="-lresolv $LIBS"
  21467. cat >conftest.$ac_ext <<_ACEOF
  21468. -#line $LINENO "configure"
  21469. /* confdefs.h. */
  21470. _ACEOF
  21471. cat confdefs.h >>conftest.$ac_ext
  21472. @@ -8299,11 +8566,20 @@
  21473. _ACEOF
  21474. rm -f conftest.$ac_objext conftest$ac_exeext
  21475. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21476. - (eval $ac_link) 2>&5
  21477. + (eval $ac_link) 2>conftest.er1
  21478. ac_status=$?
  21479. + grep -v '^ *+' conftest.er1 >conftest.err
  21480. + rm -f conftest.er1
  21481. + cat conftest.err >&5
  21482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21483. (exit $ac_status); } &&
  21484. - { ac_try='test -s conftest$ac_exeext'
  21485. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21486. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21487. + (eval $ac_try) 2>&5
  21488. + ac_status=$?
  21489. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21490. + (exit $ac_status); }; } &&
  21491. + { ac_try='test -s conftest$ac_exeext'
  21492. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21493. (eval $ac_try) 2>&5
  21494. ac_status=$?
  21495. @@ -8316,7 +8592,8 @@
  21496. ac_cv_lib_resolv_main=no
  21497. fi
  21498. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  21499. +rm -f conftest.err conftest.$ac_objext \
  21500. + conftest$ac_exeext conftest.$ac_ext
  21501. LIBS=$ac_check_lib_save_LIBS
  21502. fi
  21503. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
  21504. @@ -8477,7 +8754,6 @@
  21505. ac_check_lib_save_LIBS=$LIBS
  21506. LIBS="-lmpr $LIBS"
  21507. cat >conftest.$ac_ext <<_ACEOF
  21508. -#line $LINENO "configure"
  21509. /* confdefs.h. */
  21510. _ACEOF
  21511. cat confdefs.h >>conftest.$ac_ext
  21512. @@ -8495,11 +8771,20 @@
  21513. _ACEOF
  21514. rm -f conftest.$ac_objext conftest$ac_exeext
  21515. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21516. - (eval $ac_link) 2>&5
  21517. + (eval $ac_link) 2>conftest.er1
  21518. ac_status=$?
  21519. + grep -v '^ *+' conftest.er1 >conftest.err
  21520. + rm -f conftest.er1
  21521. + cat conftest.err >&5
  21522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21523. (exit $ac_status); } &&
  21524. - { ac_try='test -s conftest$ac_exeext'
  21525. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  21526. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21527. + (eval $ac_try) 2>&5
  21528. + ac_status=$?
  21529. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21530. + (exit $ac_status); }; } &&
  21531. + { ac_try='test -s conftest$ac_exeext'
  21532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21533. (eval $ac_try) 2>&5
  21534. ac_status=$?
  21535. @@ -8512,7 +8797,8 @@
  21536. ac_cv_lib_mpr_main=no
  21537. fi
  21538. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  21539. +rm -f conftest.err conftest.$ac_objext \
  21540. + conftest$ac_exeext conftest.$ac_ext
  21541. LIBS=$ac_check_lib_save_LIBS
  21542. fi
  21543. echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
  21544. @@ -8539,7 +8825,7 @@
  21545. fi;
  21546. - ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/test/Makefile src/debug/Makefile src/qgen/Makefile src/saal/Makefile src/sigd/Makefile src/maint/Makefile src/arpd/Makefile src/ilmid/Makefile src/ilmid/asn1/Makefile src/man/Makefile src/led/Makefile src/lane/Makefile src/mpoad/Makefile src/switch/Makefile src/switch/debug/Makefile src/switch/tcp/Makefile src/config/Makefile src/config/init-redhat/Makefile src/extra/Makefile src/extra/linux-atm.spec src/extra/ANS/Makefile"
  21547. + ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/br2684/Makefile"
  21548. cat >confcache <<\_ACEOF
  21549. # This file is a shell script that caches the results of configure
  21550. # tests run on this system so they can be shared between configure
  21551. @@ -8568,13 +8854,13 @@
  21552. # `set' does not quote correctly, so add quotes (double-quote
  21553. # substitution turns \\\\ into \\, and sed turns \\ into \).
  21554. sed -n \
  21555. - "s/'/'\\\\''/g;
  21556. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21557. + "s/'/'\\\\''/g;
  21558. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21559. ;;
  21560. *)
  21561. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21562. sed -n \
  21563. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  21564. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  21565. ;;
  21566. esac;
  21567. } |
  21568. @@ -8604,13 +8890,13 @@
  21569. # trailing colons and then remove the whole line if VPATH becomes empty
  21570. # (actually we leave an empty line to preserve line numbers).
  21571. if test "x$srcdir" = x.; then
  21572. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  21573. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  21574. s/:*\$(srcdir):*/:/;
  21575. s/:*\${srcdir}:*/:/;
  21576. s/:*@srcdir@:*/:/;
  21577. -s/^\([^=]*=[ ]*\):*/\1/;
  21578. +s/^\([^=]*=[ ]*\):*/\1/;
  21579. s/:*$//;
  21580. -s/^[^=]*=[ ]*$//;
  21581. +s/^[^=]*=[ ]*$//;
  21582. }'
  21583. fi
  21584. @@ -8621,7 +8907,7 @@
  21585. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21586. # 1. Remove the extension, and $U if already installed.
  21587. ac_i=`echo "$ac_i" |
  21588. - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  21589. + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  21590. # 2. Add them.
  21591. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  21592. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  21593. @@ -8665,9 +8951,10 @@
  21594. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21595. set -o posix
  21596. fi
  21597. +DUALCASE=1; export DUALCASE # for MKS sh
  21598. # Support unset when possible.
  21599. -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  21600. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21601. as_unset=unset
  21602. else
  21603. as_unset=false
  21604. @@ -8686,7 +8973,7 @@
  21605. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  21606. LC_TELEPHONE LC_TIME
  21607. do
  21608. - if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  21609. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  21610. eval $as_var=C; export $as_var
  21611. else
  21612. $as_unset $as_var
  21613. @@ -8865,16 +9152,17 @@
  21614. if mkdir -p . 2>/dev/null; then
  21615. as_mkdir_p=:
  21616. else
  21617. + test -d ./-p && rmdir ./-p
  21618. as_mkdir_p=false
  21619. fi
  21620. as_executable_p="test -f"
  21621. # Sed expression to map a string onto a valid CPP name.
  21622. -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  21623. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21624. # Sed expression to map a string onto a valid variable name.
  21625. -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  21626. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21627. # IFS
  21628. @@ -8901,7 +9189,7 @@
  21629. cat >&5 <<_CSEOF
  21630. This file was extended by $as_me, which was
  21631. -generated by GNU Autoconf 2.57. Invocation command line was
  21632. +generated by GNU Autoconf 2.59. Invocation command line was
  21633. CONFIG_FILES = $CONFIG_FILES
  21634. CONFIG_HEADERS = $CONFIG_HEADERS
  21635. @@ -8945,9 +9233,9 @@
  21636. -d, --debug don't remove temporary files
  21637. --recheck update $as_me by reconfiguring in the same conditions
  21638. --file=FILE[:TEMPLATE]
  21639. - instantiate the configuration file FILE
  21640. + instantiate the configuration file FILE
  21641. --header=FILE[:TEMPLATE]
  21642. - instantiate the configuration header FILE
  21643. + instantiate the configuration header FILE
  21644. Configuration files:
  21645. $config_files
  21646. @@ -8964,11 +9252,10 @@
  21647. cat >>$CONFIG_STATUS <<_ACEOF
  21648. ac_cs_version="\\
  21649. config.status
  21650. -configured by $0, generated by GNU Autoconf 2.57,
  21651. +configured by $0, generated by GNU Autoconf 2.59,
  21652. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  21653. -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  21654. -Free Software Foundation, Inc.
  21655. +Copyright (C) 2003 Free Software Foundation, Inc.
  21656. This config.status script is free software; the Free Software Foundation
  21657. gives unlimited permission to copy, distribute and modify it."
  21658. srcdir=$srcdir
  21659. @@ -9080,27 +9367,7 @@
  21660. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21661. "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
  21662. "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
  21663. - "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
  21664. - "src/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/debug/Makefile" ;;
  21665. - "src/qgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/qgen/Makefile" ;;
  21666. - "src/saal/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/saal/Makefile" ;;
  21667. - "src/sigd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sigd/Makefile" ;;
  21668. - "src/maint/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/maint/Makefile" ;;
  21669. - "src/arpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
  21670. - "src/ilmid/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/Makefile" ;;
  21671. - "src/ilmid/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/asn1/Makefile" ;;
  21672. - "src/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/man/Makefile" ;;
  21673. - "src/led/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/led/Makefile" ;;
  21674. - "src/lane/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lane/Makefile" ;;
  21675. - "src/mpoad/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mpoad/Makefile" ;;
  21676. - "src/switch/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/Makefile" ;;
  21677. - "src/switch/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/debug/Makefile" ;;
  21678. - "src/switch/tcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/tcp/Makefile" ;;
  21679. - "src/config/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/Makefile" ;;
  21680. - "src/config/init-redhat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/init-redhat/Makefile" ;;
  21681. - "src/extra/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/Makefile" ;;
  21682. - "src/extra/linux-atm.spec" ) CONFIG_FILES="$CONFIG_FILES src/extra/linux-atm.spec" ;;
  21683. - "src/extra/ANS/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/ANS/Makefile" ;;
  21684. + "src/br2684/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/br2684/Makefile" ;;
  21685. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  21686. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  21687. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  21688. @@ -9267,9 +9534,9 @@
  21689. (echo ':t
  21690. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  21691. if test -z "$ac_sed_cmds"; then
  21692. - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  21693. + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  21694. else
  21695. - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  21696. + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  21697. fi
  21698. ac_sed_frag=`expr $ac_sed_frag + 1`
  21699. ac_beg=$ac_end
  21700. @@ -9287,21 +9554,21 @@
  21701. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  21702. case $ac_file in
  21703. - | *:- | *:-:* ) # input from stdin
  21704. - cat >$tmp/stdin
  21705. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21706. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21707. + cat >$tmp/stdin
  21708. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21709. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21710. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21711. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21712. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21713. * ) ac_file_in=$ac_file.in ;;
  21714. esac
  21715. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  21716. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  21717. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21718. - X"$ac_file" : 'X\(//\)[^/]' \| \
  21719. - X"$ac_file" : 'X\(//\)$' \| \
  21720. - X"$ac_file" : 'X\(/\)' \| \
  21721. - . : '\(.\)' 2>/dev/null ||
  21722. + X"$ac_file" : 'X\(//\)[^/]' \| \
  21723. + X"$ac_file" : 'X\(//\)$' \| \
  21724. + X"$ac_file" : 'X\(/\)' \| \
  21725. + . : '\(.\)' 2>/dev/null ||
  21726. echo X"$ac_file" |
  21727. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21728. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21729. @@ -9317,10 +9584,10 @@
  21730. as_dirs="$as_dir $as_dirs"
  21731. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  21732. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21733. - X"$as_dir" : 'X\(//\)[^/]' \| \
  21734. - X"$as_dir" : 'X\(//\)$' \| \
  21735. - X"$as_dir" : 'X\(/\)' \| \
  21736. - . : '\(.\)' 2>/dev/null ||
  21737. + X"$as_dir" : 'X\(//\)[^/]' \| \
  21738. + X"$as_dir" : 'X\(//\)$' \| \
  21739. + X"$as_dir" : 'X\(/\)' \| \
  21740. + . : '\(.\)' 2>/dev/null ||
  21741. echo X"$as_dir" |
  21742. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21743. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21744. @@ -9358,12 +9625,45 @@
  21745. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  21746. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  21747. esac
  21748. -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  21749. -# absolute.
  21750. -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  21751. -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  21752. -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  21753. -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  21754. +
  21755. +# Do not use `cd foo && pwd` to compute absolute paths, because
  21756. +# the directories may not exist.
  21757. +case `pwd` in
  21758. +.) ac_abs_builddir="$ac_dir";;
  21759. +*)
  21760. + case "$ac_dir" in
  21761. + .) ac_abs_builddir=`pwd`;;
  21762. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  21763. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  21764. + esac;;
  21765. +esac
  21766. +case $ac_abs_builddir in
  21767. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  21768. +*)
  21769. + case ${ac_top_builddir}. in
  21770. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  21771. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  21772. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  21773. + esac;;
  21774. +esac
  21775. +case $ac_abs_builddir in
  21776. +.) ac_abs_srcdir=$ac_srcdir;;
  21777. +*)
  21778. + case $ac_srcdir in
  21779. + .) ac_abs_srcdir=$ac_abs_builddir;;
  21780. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  21781. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  21782. + esac;;
  21783. +esac
  21784. +case $ac_abs_builddir in
  21785. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  21786. +*)
  21787. + case $ac_top_srcdir in
  21788. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  21789. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  21790. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  21791. + esac;;
  21792. +esac
  21793. case $INSTALL in
  21794. @@ -9371,11 +9671,6 @@
  21795. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  21796. esac
  21797. - if test x"$ac_file" != x-; then
  21798. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  21799. -echo "$as_me: creating $ac_file" >&6;}
  21800. - rm -f "$ac_file"
  21801. - fi
  21802. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21803. # use $as_me), people would be surprised to read:
  21804. # /* config.h. Generated by config.status. */
  21805. @@ -9385,7 +9680,7 @@
  21806. configure_input="$ac_file. "
  21807. fi
  21808. configure_input=$configure_input"Generated from `echo $ac_file_in |
  21809. - sed 's,.*/,,'` by configure."
  21810. + sed 's,.*/,,'` by configure."
  21811. # First look for the input files in the build tree, otherwise in the
  21812. # src tree.
  21813. @@ -9394,26 +9689,32 @@
  21814. case $f in
  21815. -) echo $tmp/stdin ;;
  21816. [\\/$]*)
  21817. - # Absolute (can't be DOS-style, as IFS=:)
  21818. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21819. + # Absolute (can't be DOS-style, as IFS=:)
  21820. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21821. echo "$as_me: error: cannot find input file: $f" >&2;}
  21822. { (exit 1); exit 1; }; }
  21823. - echo $f;;
  21824. + echo "$f";;
  21825. *) # Relative
  21826. - if test -f "$f"; then
  21827. - # Build tree
  21828. - echo $f
  21829. - elif test -f "$srcdir/$f"; then
  21830. - # Source tree
  21831. - echo $srcdir/$f
  21832. - else
  21833. - # /dev/null tree
  21834. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21835. + if test -f "$f"; then
  21836. + # Build tree
  21837. + echo "$f"
  21838. + elif test -f "$srcdir/$f"; then
  21839. + # Source tree
  21840. + echo "$srcdir/$f"
  21841. + else
  21842. + # /dev/null tree
  21843. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21844. echo "$as_me: error: cannot find input file: $f" >&2;}
  21845. { (exit 1); exit 1; }; }
  21846. - fi;;
  21847. + fi;;
  21848. esac
  21849. done` || { (exit 1); exit 1; }
  21850. +
  21851. + if test x"$ac_file" != x-; then
  21852. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  21853. +echo "$as_me: creating $ac_file" >&6;}
  21854. + rm -f "$ac_file"
  21855. + fi
  21856. _ACEOF
  21857. cat >>$CONFIG_STATUS <<_ACEOF
  21858. sed "$ac_vpsub
  21859. @@ -9453,12 +9754,12 @@
  21860. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  21861. #
  21862. # ac_d sets the value in "#define NAME VALUE" lines.
  21863. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  21864. -ac_dB='[ ].*$,\1#\2'
  21865. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  21866. +ac_dB='[ ].*$,\1#\2'
  21867. ac_dC=' '
  21868. ac_dD=',;t'
  21869. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  21870. -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  21871. +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  21872. ac_uB='$,\1#\2define\3'
  21873. ac_uC=' '
  21874. ac_uD=',;t'
  21875. @@ -9467,11 +9768,11 @@
  21876. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  21877. case $ac_file in
  21878. - | *:- | *:-:* ) # input from stdin
  21879. - cat >$tmp/stdin
  21880. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21881. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21882. + cat >$tmp/stdin
  21883. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21884. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21885. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  21886. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21887. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  21888. * ) ac_file_in=$ac_file.in ;;
  21889. esac
  21890. @@ -9485,28 +9786,29 @@
  21891. case $f in
  21892. -) echo $tmp/stdin ;;
  21893. [\\/$]*)
  21894. - # Absolute (can't be DOS-style, as IFS=:)
  21895. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21896. + # Absolute (can't be DOS-style, as IFS=:)
  21897. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21898. echo "$as_me: error: cannot find input file: $f" >&2;}
  21899. { (exit 1); exit 1; }; }
  21900. - echo $f;;
  21901. + # Do quote $f, to prevent DOS paths from being IFS'd.
  21902. + echo "$f";;
  21903. *) # Relative
  21904. - if test -f "$f"; then
  21905. - # Build tree
  21906. - echo $f
  21907. - elif test -f "$srcdir/$f"; then
  21908. - # Source tree
  21909. - echo $srcdir/$f
  21910. - else
  21911. - # /dev/null tree
  21912. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21913. + if test -f "$f"; then
  21914. + # Build tree
  21915. + echo "$f"
  21916. + elif test -f "$srcdir/$f"; then
  21917. + # Source tree
  21918. + echo "$srcdir/$f"
  21919. + else
  21920. + # /dev/null tree
  21921. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  21922. echo "$as_me: error: cannot find input file: $f" >&2;}
  21923. { (exit 1); exit 1; }; }
  21924. - fi;;
  21925. + fi;;
  21926. esac
  21927. done` || { (exit 1); exit 1; }
  21928. # Remove the trailing spaces.
  21929. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  21930. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  21931. _ACEOF
  21932. @@ -9529,9 +9831,9 @@
  21933. s,[\\$`],\\&,g
  21934. t clear
  21935. : clear
  21936. -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  21937. +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  21938. t end
  21939. -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  21940. +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  21941. : end
  21942. _ACEOF
  21943. # If some macros were called several times there might be several times
  21944. @@ -9545,13 +9847,13 @@
  21945. # example, in the case of _POSIX_SOURCE, which is predefined and required
  21946. # on some systems where configure will not decide to define it.
  21947. cat >>conftest.undefs <<\_ACEOF
  21948. -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  21949. +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  21950. _ACEOF
  21951. # Break up conftest.defines because some shells have a limit on the size
  21952. # of here documents, and old seds have small limits too (100 cmds).
  21953. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  21954. -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  21955. +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  21956. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  21957. echo ' :' >>$CONFIG_STATUS
  21958. rm -f conftest.tail
  21959. @@ -9560,7 +9862,7 @@
  21960. # Write a limited-size here document to $tmp/defines.sed.
  21961. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  21962. # Speed up: don't consider the non `#define' lines.
  21963. - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  21964. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  21965. # Work around the forget-to-reset-the-flag bug.
  21966. echo 't clr' >>$CONFIG_STATUS
  21967. echo ': clr' >>$CONFIG_STATUS
  21968. @@ -9587,7 +9889,7 @@
  21969. # Write a limited-size here document to $tmp/undefs.sed.
  21970. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  21971. # Speed up: don't consider the non `#undef'
  21972. - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  21973. + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  21974. # Work around the forget-to-reset-the-flag bug.
  21975. echo 't clr' >>$CONFIG_STATUS
  21976. echo ': clr' >>$CONFIG_STATUS
  21977. @@ -9621,10 +9923,10 @@
  21978. else
  21979. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  21980. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21981. - X"$ac_file" : 'X\(//\)[^/]' \| \
  21982. - X"$ac_file" : 'X\(//\)$' \| \
  21983. - X"$ac_file" : 'X\(/\)' \| \
  21984. - . : '\(.\)' 2>/dev/null ||
  21985. + X"$ac_file" : 'X\(//\)[^/]' \| \
  21986. + X"$ac_file" : 'X\(//\)$' \| \
  21987. + X"$ac_file" : 'X\(/\)' \| \
  21988. + . : '\(.\)' 2>/dev/null ||
  21989. echo X"$ac_file" |
  21990. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  21991. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  21992. @@ -9640,10 +9942,10 @@
  21993. as_dirs="$as_dir $as_dirs"
  21994. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  21995. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21996. - X"$as_dir" : 'X\(//\)[^/]' \| \
  21997. - X"$as_dir" : 'X\(//\)$' \| \
  21998. - X"$as_dir" : 'X\(/\)' \| \
  21999. - . : '\(.\)' 2>/dev/null ||
  22000. + X"$as_dir" : 'X\(//\)[^/]' \| \
  22001. + X"$as_dir" : 'X\(//\)$' \| \
  22002. + X"$as_dir" : 'X\(/\)' \| \
  22003. + . : '\(.\)' 2>/dev/null ||
  22004. echo X"$as_dir" |
  22005. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  22006. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  22007. @@ -9675,16 +9977,41 @@
  22008. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  22009. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  22010. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22011. - X"$ac_dest" : 'X\(//\)[^/]' \| \
  22012. - X"$ac_dest" : 'X\(//\)$' \| \
  22013. - X"$ac_dest" : 'X\(/\)' \| \
  22014. - . : '\(.\)' 2>/dev/null ||
  22015. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  22016. + X"$ac_dest" : 'X\(//\)$' \| \
  22017. + X"$ac_dest" : 'X\(/\)' \| \
  22018. + . : '\(.\)' 2>/dev/null ||
  22019. echo X"$ac_dest" |
  22020. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  22021. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  22022. /^X\(\/\/\)$/{ s//\1/; q; }
  22023. /^X\(\/\).*/{ s//\1/; q; }
  22024. s/.*/./; q'`
  22025. + { if $as_mkdir_p; then
  22026. + mkdir -p "$ac_dir"
  22027. + else
  22028. + as_dir="$ac_dir"
  22029. + as_dirs=
  22030. + while test ! -d "$as_dir"; do
  22031. + as_dirs="$as_dir $as_dirs"
  22032. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  22033. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22034. + X"$as_dir" : 'X\(//\)[^/]' \| \
  22035. + X"$as_dir" : 'X\(//\)$' \| \
  22036. + X"$as_dir" : 'X\(/\)' \| \
  22037. + . : '\(.\)' 2>/dev/null ||
  22038. +echo X"$as_dir" |
  22039. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  22040. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  22041. + /^X\(\/\/\)$/{ s//\1/; q; }
  22042. + /^X\(\/\).*/{ s//\1/; q; }
  22043. + s/.*/./; q'`
  22044. + done
  22045. + test ! -n "$as_dirs" || mkdir $as_dirs
  22046. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  22047. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  22048. + { (exit 1); exit 1; }; }; }
  22049. +
  22050. ac_builddir=.
  22051. if test "$ac_dir" != .; then
  22052. @@ -9710,12 +10037,45 @@
  22053. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  22054. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  22055. esac
  22056. -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  22057. -# absolute.
  22058. -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  22059. -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  22060. -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  22061. -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  22062. +
  22063. +# Do not use `cd foo && pwd` to compute absolute paths, because
  22064. +# the directories may not exist.
  22065. +case `pwd` in
  22066. +.) ac_abs_builddir="$ac_dir";;
  22067. +*)
  22068. + case "$ac_dir" in
  22069. + .) ac_abs_builddir=`pwd`;;
  22070. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  22071. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  22072. + esac;;
  22073. +esac
  22074. +case $ac_abs_builddir in
  22075. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  22076. +*)
  22077. + case ${ac_top_builddir}. in
  22078. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  22079. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  22080. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  22081. + esac;;
  22082. +esac
  22083. +case $ac_abs_builddir in
  22084. +.) ac_abs_srcdir=$ac_srcdir;;
  22085. +*)
  22086. + case $ac_srcdir in
  22087. + .) ac_abs_srcdir=$ac_abs_builddir;;
  22088. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  22089. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  22090. + esac;;
  22091. +esac
  22092. +case $ac_abs_builddir in
  22093. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  22094. +*)
  22095. + case $ac_top_srcdir in
  22096. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  22097. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  22098. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  22099. + esac;;
  22100. +esac
  22101. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  22102. diff -urN linux-atm.old/doc/Makefile.in linux-atm.dev/doc/Makefile.in
  22103. --- linux-atm.old/doc/Makefile.in 2005-08-23 01:12:10.885781000 +0200
  22104. +++ linux-atm.dev/doc/Makefile.in 2005-08-23 01:12:46.551359544 +0200
  22105. @@ -63,24 +63,35 @@
  22106. host_triplet = @host@
  22107. target_alias = @target_alias@
  22108. target_triplet = @target@
  22109. +AR = @AR@
  22110. AS = @AS@
  22111. CC = @CC@
  22112. +CXX = @CXX@
  22113. +CXXCPP = @CXXCPP@
  22114. DLLTOOL = @DLLTOOL@
  22115. ECHO = @ECHO@
  22116. +EGREP = @EGREP@
  22117. EXEEXT = @EXEEXT@
  22118. +F77 = @F77@
  22119. +GCJ = @GCJ@
  22120. +GCJFLAGS = @GCJFLAGS@
  22121. +HAVE_LIB = @HAVE_LIB@
  22122. LEX = @LEX@
  22123. +LIB = @LIB@
  22124. LIBTOOL = @LIBTOOL@
  22125. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  22126. LIBVER_AGE = @LIBVER_AGE@
  22127. LIBVER_CURRENT = @LIBVER_CURRENT@
  22128. LIBVER_REVISION = @LIBVER_REVISION@
  22129. LN_S = @LN_S@
  22130. +LTLIB = @LTLIB@
  22131. MAKEINFO = @MAKEINFO@
  22132. OBJDUMP = @OBJDUMP@
  22133. OBJEXT = @OBJEXT@
  22134. PACKAGE = @PACKAGE@
  22135. PERL = @PERL@
  22136. RANLIB = @RANLIB@
  22137. +RC = @RC@
  22138. STRIP = @STRIP@
  22139. VERSION = @VERSION@
  22140. YACC = @YACC@
  22141. diff -urN linux-atm.old/m4/Makefile.in linux-atm.dev/m4/Makefile.in
  22142. --- linux-atm.old/m4/Makefile.in 2005-08-23 01:12:10.850786000 +0200
  22143. +++ linux-atm.dev/m4/Makefile.in 2005-08-23 01:12:46.559358328 +0200
  22144. @@ -63,24 +63,35 @@
  22145. host_triplet = @host@
  22146. target_alias = @target_alias@
  22147. target_triplet = @target@
  22148. +AR = @AR@
  22149. AS = @AS@
  22150. CC = @CC@
  22151. +CXX = @CXX@
  22152. +CXXCPP = @CXXCPP@
  22153. DLLTOOL = @DLLTOOL@
  22154. ECHO = @ECHO@
  22155. +EGREP = @EGREP@
  22156. EXEEXT = @EXEEXT@
  22157. +F77 = @F77@
  22158. +GCJ = @GCJ@
  22159. +GCJFLAGS = @GCJFLAGS@
  22160. +HAVE_LIB = @HAVE_LIB@
  22161. LEX = @LEX@
  22162. +LIB = @LIB@
  22163. LIBTOOL = @LIBTOOL@
  22164. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  22165. LIBVER_AGE = @LIBVER_AGE@
  22166. LIBVER_CURRENT = @LIBVER_CURRENT@
  22167. LIBVER_REVISION = @LIBVER_REVISION@
  22168. LN_S = @LN_S@
  22169. +LTLIB = @LTLIB@
  22170. MAKEINFO = @MAKEINFO@
  22171. OBJDUMP = @OBJDUMP@
  22172. OBJEXT = @OBJEXT@
  22173. PACKAGE = @PACKAGE@
  22174. PERL = @PERL@
  22175. RANLIB = @RANLIB@
  22176. +RC = @RC@
  22177. STRIP = @STRIP@
  22178. VERSION = @VERSION@
  22179. YACC = @YACC@
  22180. diff -urN linux-atm.old/Makefile.in linux-atm.dev/Makefile.in
  22181. --- linux-atm.old/Makefile.in 2005-08-23 01:12:10.830789000 +0200
  22182. +++ linux-atm.dev/Makefile.in 2005-08-23 01:12:46.542360912 +0200
  22183. @@ -63,24 +63,35 @@
  22184. host_triplet = @host@
  22185. target_alias = @target_alias@
  22186. target_triplet = @target@
  22187. +AR = @AR@
  22188. AS = @AS@
  22189. CC = @CC@
  22190. +CXX = @CXX@
  22191. +CXXCPP = @CXXCPP@
  22192. DLLTOOL = @DLLTOOL@
  22193. ECHO = @ECHO@
  22194. +EGREP = @EGREP@
  22195. EXEEXT = @EXEEXT@
  22196. +F77 = @F77@
  22197. +GCJ = @GCJ@
  22198. +GCJFLAGS = @GCJFLAGS@
  22199. +HAVE_LIB = @HAVE_LIB@
  22200. LEX = @LEX@
  22201. +LIB = @LIB@
  22202. LIBTOOL = @LIBTOOL@
  22203. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  22204. LIBVER_AGE = @LIBVER_AGE@
  22205. LIBVER_CURRENT = @LIBVER_CURRENT@
  22206. LIBVER_REVISION = @LIBVER_REVISION@
  22207. LN_S = @LN_S@
  22208. +LTLIB = @LTLIB@
  22209. MAKEINFO = @MAKEINFO@
  22210. OBJDUMP = @OBJDUMP@
  22211. OBJEXT = @OBJEXT@
  22212. PACKAGE = @PACKAGE@
  22213. PERL = @PERL@
  22214. RANLIB = @RANLIB@
  22215. +RC = @RC@
  22216. STRIP = @STRIP@
  22217. VERSION = @VERSION@
  22218. YACC = @YACC@
  22219. diff -urN linux-atm.old/src/br2684/Makefile.in linux-atm.dev/src/br2684/Makefile.in
  22220. --- linux-atm.old/src/br2684/Makefile.in 2005-08-23 01:12:10.884781000 +0200
  22221. +++ linux-atm.dev/src/br2684/Makefile.in 2005-08-23 01:12:46.632347232 +0200
  22222. @@ -57,11 +57,15 @@
  22223. NORMAL_UNINSTALL = :
  22224. PRE_UNINSTALL = :
  22225. POST_UNINSTALL = :
  22226. +build_alias = @build_alias@
  22227. +build_triplet = @build@
  22228. host_alias = @host_alias@
  22229. host_triplet = @host@
  22230. +target_alias = @target_alias@
  22231. +target_triplet = @target@
  22232. AR = @AR@
  22233. AS = @AS@
  22234. -CC = /usr/src/openwrt/staging_dir_mipsel/bin/mipsel-linux-gcc
  22235. +CC = @CC@
  22236. CXX = @CXX@
  22237. CXXCPP = @CXXCPP@
  22238. DLLTOOL = @DLLTOOL@
  22239. @@ -117,9 +121,9 @@
  22240. br2684ctl_DEPENDENCIES = $(top_builddir)/src/lib/libatm.la
  22241. br2684ctl_LDFLAGS =
  22242. CFLAGS = @CFLAGS@
  22243. -COMPILE = $(TARGET_CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  22244. -LTCOMPILE = $(LIBTOOL) --mode=compile $(TARGET_CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  22245. -CCLD = $(TARGET_CC)
  22246. +COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  22247. +LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  22248. +CCLD = $(CC)
  22249. LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
  22250. man8dir = $(mandir)/man8
  22251. MANS = $(man_MANS)
  22252. diff -urN linux-atm.old/src/include/Makefile.in linux-atm.dev/src/include/Makefile.in
  22253. --- linux-atm.old/src/include/Makefile.in 2005-08-23 01:12:10.851786000 +0200
  22254. +++ linux-atm.dev/src/include/Makefile.in 2005-08-23 01:12:46.585354376 +0200
  22255. @@ -63,24 +63,35 @@
  22256. host_triplet = @host@
  22257. target_alias = @target_alias@
  22258. target_triplet = @target@
  22259. +AR = @AR@
  22260. AS = @AS@
  22261. CC = @CC@
  22262. +CXX = @CXX@
  22263. +CXXCPP = @CXXCPP@
  22264. DLLTOOL = @DLLTOOL@
  22265. ECHO = @ECHO@
  22266. +EGREP = @EGREP@
  22267. EXEEXT = @EXEEXT@
  22268. +F77 = @F77@
  22269. +GCJ = @GCJ@
  22270. +GCJFLAGS = @GCJFLAGS@
  22271. +HAVE_LIB = @HAVE_LIB@
  22272. LEX = @LEX@
  22273. +LIB = @LIB@
  22274. LIBTOOL = @LIBTOOL@
  22275. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  22276. LIBVER_AGE = @LIBVER_AGE@
  22277. LIBVER_CURRENT = @LIBVER_CURRENT@
  22278. LIBVER_REVISION = @LIBVER_REVISION@
  22279. LN_S = @LN_S@
  22280. +LTLIB = @LTLIB@
  22281. MAKEINFO = @MAKEINFO@
  22282. OBJDUMP = @OBJDUMP@
  22283. OBJEXT = @OBJEXT@
  22284. PACKAGE = @PACKAGE@
  22285. PERL = @PERL@
  22286. RANLIB = @RANLIB@
  22287. +RC = @RC@
  22288. STRIP = @STRIP@
  22289. VERSION = @VERSION@
  22290. YACC = @YACC@
  22291. diff -urN linux-atm.old/src/lib/Makefile.in linux-atm.dev/src/lib/Makefile.in
  22292. --- linux-atm.old/src/lib/Makefile.in 2005-08-23 01:12:10.852786000 +0200
  22293. +++ linux-atm.dev/src/lib/Makefile.in 2005-08-23 01:12:46.607351032 +0200
  22294. @@ -65,24 +65,35 @@
  22295. host_triplet = @host@
  22296. target_alias = @target_alias@
  22297. target_triplet = @target@
  22298. +AR = @AR@
  22299. AS = @AS@
  22300. CC = @CC@
  22301. +CXX = @CXX@
  22302. +CXXCPP = @CXXCPP@
  22303. DLLTOOL = @DLLTOOL@
  22304. ECHO = @ECHO@
  22305. +EGREP = @EGREP@
  22306. EXEEXT = @EXEEXT@
  22307. +F77 = @F77@
  22308. +GCJ = @GCJ@
  22309. +GCJFLAGS = @GCJFLAGS@
  22310. +HAVE_LIB = @HAVE_LIB@
  22311. LEX = @LEX@
  22312. +LIB = @LIB@
  22313. LIBTOOL = @LIBTOOL@
  22314. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  22315. LIBVER_AGE = @LIBVER_AGE@
  22316. LIBVER_CURRENT = @LIBVER_CURRENT@
  22317. LIBVER_REVISION = @LIBVER_REVISION@
  22318. LN_S = @LN_S@
  22319. +LTLIB = @LTLIB@
  22320. MAKEINFO = @MAKEINFO@
  22321. OBJDUMP = @OBJDUMP@
  22322. OBJEXT = @OBJEXT@
  22323. PACKAGE = @PACKAGE@
  22324. PERL = @PERL@
  22325. RANLIB = @RANLIB@
  22326. +RC = @RC@
  22327. STRIP = @STRIP@
  22328. VERSION = @VERSION@
  22329. YACC = @YACC@
  22330. diff -urN linux-atm.old/src/Makefile.in linux-atm.dev/src/Makefile.in
  22331. --- linux-atm.old/src/Makefile.in 2005-08-23 01:12:10.851786000 +0200
  22332. +++ linux-atm.dev/src/Makefile.in 2005-08-23 01:12:46.572356352 +0200
  22333. @@ -63,30 +63,40 @@
  22334. host_triplet = @host@
  22335. target_alias = @target_alias@
  22336. target_triplet = @target@
  22337. +AR = @AR@
  22338. AS = @AS@
  22339. CC = @CC@
  22340. +CXX = @CXX@
  22341. +CXXCPP = @CXXCPP@
  22342. DLLTOOL = @DLLTOOL@
  22343. ECHO = @ECHO@
  22344. +EGREP = @EGREP@
  22345. EXEEXT = @EXEEXT@
  22346. +F77 = @F77@
  22347. +GCJ = @GCJ@
  22348. +GCJFLAGS = @GCJFLAGS@
  22349. +HAVE_LIB = @HAVE_LIB@
  22350. LEX = @LEX@
  22351. +LIB = @LIB@
  22352. LIBTOOL = @LIBTOOL@
  22353. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  22354. LIBVER_AGE = @LIBVER_AGE@
  22355. LIBVER_CURRENT = @LIBVER_CURRENT@
  22356. LIBVER_REVISION = @LIBVER_REVISION@
  22357. LN_S = @LN_S@
  22358. +LTLIB = @LTLIB@
  22359. MAKEINFO = @MAKEINFO@
  22360. OBJDUMP = @OBJDUMP@
  22361. OBJEXT = @OBJEXT@
  22362. PACKAGE = @PACKAGE@
  22363. PERL = @PERL@
  22364. RANLIB = @RANLIB@
  22365. +RC = @RC@
  22366. STRIP = @STRIP@
  22367. VERSION = @VERSION@
  22368. YACC = @YACC@
  22369. -SUBDIRS = include lib
  22370. -
  22371. +SUBDIRS = include lib br2684
  22372. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  22373. CONFIG_HEADER = ../config.h
  22374. CONFIG_CLEAN_FILES =