output.1 435 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895
  1. @%:@! /bin/sh
  2. @%:@ Guess values for system-dependent variables and create Makefiles.
  3. @%:@ Generated by GNU Autoconf 2.68 for libusb 1.0.16-rc10.
  4. @%:@
  5. @%:@ Report bugs to <libusb-devel@lists.sourceforge.net>.
  6. @%:@
  7. @%:@
  8. @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. @%:@ Foundation, Inc.
  11. @%:@
  12. @%:@
  13. @%:@ This configure script is free software; the Free Software Foundation
  14. @%:@ gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in @%:@(
  29. *posix*) :
  30. set -o posix ;; @%:@(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in @%:@(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in @%:@((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in @%:@(
  137. *posix*) :
  138. set -o posix ;; @%:@(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  164. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. PATH=/empty FPATH=/empty; export PATH FPATH
  168. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  169. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  170. test \$(( 1 + 1 )) = 2 || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in @%:@(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. # Preserve -v and -x to the replacement shell.
  211. BASH_ENV=/dev/null
  212. ENV=/dev/null
  213. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  214. export CONFIG_SHELL
  215. case $- in @%:@ ((((
  216. *v*x* | *x*v* ) as_opts=-vx ;;
  217. *v* ) as_opts=-v ;;
  218. *x* ) as_opts=-x ;;
  219. * ) as_opts= ;;
  220. esac
  221. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  222. fi
  223. if test x$as_have_required = xno; then :
  224. $as_echo "$0: This script requires a shell more modern than all"
  225. $as_echo "$0: the shells that I found on your system."
  226. if test x${ZSH_VERSION+set} = xset ; then
  227. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  228. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  229. else
  230. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  231. $0: libusb-devel@lists.sourceforge.net about your system,
  232. $0: including any error possibly output before this
  233. $0: message. Then install a modern shell, or manually run
  234. $0: the script under such a shell if you do have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245. ## --------------------- ##
  246. ## M4sh Shell Functions. ##
  247. ## --------------------- ##
  248. @%:@ as_fn_unset VAR
  249. @%:@ ---------------
  250. @%:@ Portably unset VAR.
  251. as_fn_unset ()
  252. {
  253. { eval $1=; unset $1;}
  254. }
  255. as_unset=as_fn_unset
  256. @%:@ as_fn_set_status STATUS
  257. @%:@ -----------------------
  258. @%:@ Set @S|@? to STATUS, without forking.
  259. as_fn_set_status ()
  260. {
  261. return $1
  262. } @%:@ as_fn_set_status
  263. @%:@ as_fn_exit STATUS
  264. @%:@ -----------------
  265. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  266. as_fn_exit ()
  267. {
  268. set +e
  269. as_fn_set_status $1
  270. exit $1
  271. } @%:@ as_fn_exit
  272. @%:@ as_fn_mkdir_p
  273. @%:@ -------------
  274. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {
  277. case $as_dir in #(
  278. -*) as_dir=./$as_dir;;
  279. esac
  280. test -d "$as_dir" || eval $as_mkdir_p || {
  281. as_dirs=
  282. while :; do
  283. case $as_dir in #(
  284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285. *) as_qdir=$as_dir;;
  286. esac
  287. as_dirs="'$as_qdir' $as_dirs"
  288. as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290. X"$as_dir" : 'X\(//\)[^/]' \| \
  291. X"$as_dir" : 'X\(//\)$' \| \
  292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\/\)[^/].*/{
  299. s//\1/
  300. q
  301. }
  302. /^X\(\/\/\)$/{
  303. s//\1/
  304. q
  305. }
  306. /^X\(\/\).*/{
  307. s//\1/
  308. q
  309. }
  310. s/.*/./; q'`
  311. test -d "$as_dir" && break
  312. done
  313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  315. } @%:@ as_fn_mkdir_p
  316. @%:@ as_fn_append VAR VALUE
  317. @%:@ ----------------------
  318. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  319. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  320. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  321. @%:@ implementations.
  322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  323. eval 'as_fn_append ()
  324. {
  325. eval $1+=\$2
  326. }'
  327. else
  328. as_fn_append ()
  329. {
  330. eval $1=\$$1\$2
  331. }
  332. fi # as_fn_append
  333. @%:@ as_fn_arith ARG...
  334. @%:@ ------------------
  335. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  336. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  337. @%:@ must be portable across @S|@(()) and expr.
  338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  339. eval 'as_fn_arith ()
  340. {
  341. as_val=$(( $* ))
  342. }'
  343. else
  344. as_fn_arith ()
  345. {
  346. as_val=`expr "$@" || test $? -eq 1`
  347. }
  348. fi # as_fn_arith
  349. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  350. @%:@ ----------------------------------------
  351. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  352. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  353. @%:@ script with STATUS, using 1 if that was 0.
  354. as_fn_error ()
  355. {
  356. as_status=$1; test $as_status -eq 0 && as_status=1
  357. if test "$4"; then
  358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  360. fi
  361. $as_echo "$as_me: error: $2" >&2
  362. as_fn_exit $as_status
  363. } @%:@ as_fn_error
  364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  366. as_expr=expr
  367. else
  368. as_expr=false
  369. fi
  370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  371. as_basename=basename
  372. else
  373. as_basename=false
  374. fi
  375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  376. as_dirname=dirname
  377. else
  378. as_dirname=false
  379. fi
  380. as_me=`$as_basename -- "$0" ||
  381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  382. X"$0" : 'X\(//\)$' \| \
  383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  384. $as_echo X/"$0" |
  385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  386. s//\1/
  387. q
  388. }
  389. /^X\/\(\/\/\)$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\).*/{
  394. s//\1/
  395. q
  396. }
  397. s/.*/./; q'`
  398. # Avoid depending upon Character Ranges.
  399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  402. as_cr_digits='0123456789'
  403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  404. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  405. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  406. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  407. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  408. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  409. sed -n '
  410. p
  411. /[$]LINENO/=
  412. ' <$as_myself |
  413. sed '
  414. s/[$]LINENO.*/&-/
  415. t lineno
  416. b
  417. :lineno
  418. N
  419. :loop
  420. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  421. t loop
  422. s/-\n.*//
  423. ' >$as_me.lineno &&
  424. chmod +x "$as_me.lineno" ||
  425. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  426. # Don't try to exec as it changes $[0], causing all sort of problems
  427. # (the dirname of $[0] is not the place where we might find the
  428. # original and so on. Autoconf is especially sensitive to this).
  429. . "./$as_me.lineno"
  430. # Exit status is that of the last command.
  431. exit
  432. }
  433. ECHO_C= ECHO_N= ECHO_T=
  434. case `echo -n x` in @%:@(((((
  435. -n*)
  436. case `echo 'xy\c'` in
  437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  438. xy) ECHO_C='\c';;
  439. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  440. ECHO_T=' ';;
  441. esac;;
  442. *)
  443. ECHO_N='-n';;
  444. esac
  445. rm -f conf$$ conf$$.exe conf$$.file
  446. if test -d conf$$.dir; then
  447. rm -f conf$$.dir/conf$$.file
  448. else
  449. rm -f conf$$.dir
  450. mkdir conf$$.dir 2>/dev/null
  451. fi
  452. if (echo >conf$$.file) 2>/dev/null; then
  453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s='ln -s'
  455. # ... but there are two gotchas:
  456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  458. # In both cases, we have to default to `cp -p'.
  459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  460. as_ln_s='cp -p'
  461. elif ln conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s=ln
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. else
  467. as_ln_s='cp -p'
  468. fi
  469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  470. rmdir conf$$.dir 2>/dev/null
  471. if mkdir -p . 2>/dev/null; then
  472. as_mkdir_p='mkdir -p "$as_dir"'
  473. else
  474. test -d ./-p && rmdir ./-p
  475. as_mkdir_p=false
  476. fi
  477. if test -x / >/dev/null 2>&1; then
  478. as_test_x='test -x'
  479. else
  480. if ls -dL / >/dev/null 2>&1; then
  481. as_ls_L_option=L
  482. else
  483. as_ls_L_option=
  484. fi
  485. as_test_x='
  486. eval sh -c '\''
  487. if test -d "$1"; then
  488. test -d "$1/.";
  489. else
  490. case $1 in @%:@(
  491. -*)set "./$1";;
  492. esac;
  493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  494. ???[sx]*):;;*)false;;esac;fi
  495. '\'' sh
  496. '
  497. fi
  498. as_executable_p=$as_test_x
  499. # Sed expression to map a string onto a valid CPP name.
  500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  501. # Sed expression to map a string onto a valid variable name.
  502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  503. SHELL=${CONFIG_SHELL-/bin/sh}
  504. test -n "$DJDIR" || exec 7<&0 </dev/null
  505. exec 6>&1
  506. # Name of the host.
  507. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  508. # so uname gets run too.
  509. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  510. #
  511. # Initializations.
  512. #
  513. ac_default_prefix=/usr/local
  514. ac_clean_files=
  515. ac_config_libobj_dir=.
  516. LIB@&t@OBJS=
  517. cross_compiling=no
  518. subdirs=
  519. MFLAGS=
  520. MAKEFLAGS=
  521. # Identity of this package.
  522. PACKAGE_NAME='libusb'
  523. PACKAGE_TARNAME='libusb'
  524. PACKAGE_VERSION='1.0.16-rc10'
  525. PACKAGE_STRING='libusb 1.0.16-rc10'
  526. PACKAGE_BUGREPORT='libusb-devel@lists.sourceforge.net'
  527. PACKAGE_URL='http://www.libusb.org/'
  528. ac_unique_file="libusb/core.c"
  529. # Factoring default headers for most tests.
  530. ac_includes_default="\
  531. #include <stdio.h>
  532. #ifdef HAVE_SYS_TYPES_H
  533. # include <sys/types.h>
  534. #endif
  535. #ifdef HAVE_SYS_STAT_H
  536. # include <sys/stat.h>
  537. #endif
  538. #ifdef STDC_HEADERS
  539. # include <stdlib.h>
  540. # include <stddef.h>
  541. #else
  542. # ifdef HAVE_STDLIB_H
  543. # include <stdlib.h>
  544. # endif
  545. #endif
  546. #ifdef HAVE_STRING_H
  547. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  548. # include <memory.h>
  549. # endif
  550. # include <string.h>
  551. #endif
  552. #ifdef HAVE_STRINGS_H
  553. # include <strings.h>
  554. #endif
  555. #ifdef HAVE_INTTYPES_H
  556. # include <inttypes.h>
  557. #endif
  558. #ifdef HAVE_STDINT_H
  559. # include <stdint.h>
  560. #endif
  561. #ifdef HAVE_UNISTD_H
  562. # include <unistd.h>
  563. #endif"
  564. ac_subst_vars='am__EXEEXT_FALSE
  565. am__EXEEXT_TRUE
  566. LTLIBOBJS
  567. LIB@&t@OBJS
  568. LTLDFLAGS
  569. AM_CFLAGS
  570. HAVE_SIGACTION_FALSE
  571. HAVE_SIGACTION_TRUE
  572. BUILD_EXAMPLES_FALSE
  573. BUILD_EXAMPLES_TRUE
  574. USE_UDEV_FALSE
  575. USE_UDEV_TRUE
  576. THREADS_POSIX_FALSE
  577. THREADS_POSIX_TRUE
  578. OS_WINDOWS_FALSE
  579. OS_WINDOWS_TRUE
  580. OS_OPENBSD_FALSE
  581. OS_OPENBSD_TRUE
  582. OS_DARWIN_FALSE
  583. OS_DARWIN_TRUE
  584. OS_LINUX_FALSE
  585. OS_LINUX_TRUE
  586. OS_WINDOWS
  587. OS_OPENBSD
  588. OS_DARWIN
  589. USE_UDEV
  590. OS_LINUX
  591. RC
  592. CPP
  593. OTOOL64
  594. OTOOL
  595. LIPO
  596. NMEDIT
  597. DSYMUTIL
  598. MANIFEST_TOOL
  599. RANLIB
  600. ac_ct_AR
  601. AR
  602. DLLTOOL
  603. OBJDUMP
  604. LN_S
  605. NM
  606. ac_ct_DUMPBIN
  607. DUMPBIN
  608. LD
  609. FGREP
  610. EGREP
  611. GREP
  612. SED
  613. host_os
  614. host_vendor
  615. host_cpu
  616. host
  617. build_os
  618. build_vendor
  619. build_cpu
  620. build
  621. LIBTOOL
  622. am__fastdepCC_FALSE
  623. am__fastdepCC_TRUE
  624. CCDEPMODE
  625. AMDEPBACKSLASH
  626. AMDEP_FALSE
  627. AMDEP_TRUE
  628. am__quote
  629. am__include
  630. DEPDIR
  631. OBJEXT
  632. EXEEXT
  633. ac_ct_CC
  634. CPPFLAGS
  635. LDFLAGS
  636. CFLAGS
  637. CC
  638. AM_BACKSLASH
  639. AM_DEFAULT_VERBOSITY
  640. MAINT
  641. MAINTAINER_MODE_FALSE
  642. MAINTAINER_MODE_TRUE
  643. am__untar
  644. am__tar
  645. AMTAR
  646. am__leading_dot
  647. SET_MAKE
  648. AWK
  649. mkdir_p
  650. MKDIR_P
  651. INSTALL_STRIP_PROGRAM
  652. STRIP
  653. install_sh
  654. MAKEINFO
  655. AUTOHEADER
  656. AUTOMAKE
  657. AUTOCONF
  658. ACLOCAL
  659. VERSION
  660. PACKAGE
  661. CYGPATH_W
  662. am__isrc
  663. INSTALL_DATA
  664. INSTALL_SCRIPT
  665. INSTALL_PROGRAM
  666. target_alias
  667. host_alias
  668. build_alias
  669. LIBS
  670. ECHO_T
  671. ECHO_N
  672. ECHO_C
  673. DEFS
  674. mandir
  675. localedir
  676. libdir
  677. psdir
  678. pdfdir
  679. dvidir
  680. htmldir
  681. infodir
  682. docdir
  683. oldincludedir
  684. includedir
  685. localstatedir
  686. sharedstatedir
  687. sysconfdir
  688. datadir
  689. datarootdir
  690. libexecdir
  691. sbindir
  692. bindir
  693. program_transform_name
  694. prefix
  695. exec_prefix
  696. PACKAGE_URL
  697. PACKAGE_BUGREPORT
  698. PACKAGE_STRING
  699. PACKAGE_VERSION
  700. PACKAGE_TARNAME
  701. PACKAGE_NAME
  702. PATH_SEPARATOR
  703. SHELL'
  704. ac_subst_files=''
  705. ac_user_opts='
  706. enable_option_checking
  707. enable_maintainer_mode
  708. enable_silent_rules
  709. enable_dependency_tracking
  710. enable_shared
  711. enable_static
  712. with_pic
  713. enable_fast_install
  714. with_gnu_ld
  715. with_sysroot
  716. enable_libtool_lock
  717. enable_udev
  718. enable_timerfd
  719. enable_log
  720. enable_debug_log
  721. enable_examples_build
  722. '
  723. ac_precious_vars='build_alias
  724. host_alias
  725. target_alias
  726. CC
  727. CFLAGS
  728. LDFLAGS
  729. LIBS
  730. CPPFLAGS
  731. CPP'
  732. # Initialize some variables set by options.
  733. ac_init_help=
  734. ac_init_version=false
  735. ac_unrecognized_opts=
  736. ac_unrecognized_sep=
  737. # The variables have the same names as the options, with
  738. # dashes changed to underlines.
  739. cache_file=/dev/null
  740. exec_prefix=NONE
  741. no_create=
  742. no_recursion=
  743. prefix=NONE
  744. program_prefix=NONE
  745. program_suffix=NONE
  746. program_transform_name=s,x,x,
  747. silent=
  748. site=
  749. srcdir=
  750. verbose=
  751. x_includes=NONE
  752. x_libraries=NONE
  753. # Installation directory options.
  754. # These are left unexpanded so users can "make install exec_prefix=/foo"
  755. # and all the variables that are supposed to be based on exec_prefix
  756. # by default will actually change.
  757. # Use braces instead of parens because sh, perl, etc. also accept them.
  758. # (The list follows the same order as the GNU Coding Standards.)
  759. bindir='${exec_prefix}/bin'
  760. sbindir='${exec_prefix}/sbin'
  761. libexecdir='${exec_prefix}/libexec'
  762. datarootdir='${prefix}/share'
  763. datadir='${datarootdir}'
  764. sysconfdir='${prefix}/etc'
  765. sharedstatedir='${prefix}/com'
  766. localstatedir='${prefix}/var'
  767. includedir='${prefix}/include'
  768. oldincludedir='/usr/include'
  769. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  770. infodir='${datarootdir}/info'
  771. htmldir='${docdir}'
  772. dvidir='${docdir}'
  773. pdfdir='${docdir}'
  774. psdir='${docdir}'
  775. libdir='${exec_prefix}/lib'
  776. localedir='${datarootdir}/locale'
  777. mandir='${datarootdir}/man'
  778. ac_prev=
  779. ac_dashdash=
  780. for ac_option
  781. do
  782. # If the previous option needs an argument, assign it.
  783. if test -n "$ac_prev"; then
  784. eval $ac_prev=\$ac_option
  785. ac_prev=
  786. continue
  787. fi
  788. case $ac_option in
  789. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  790. *=) ac_optarg= ;;
  791. *) ac_optarg=yes ;;
  792. esac
  793. # Accept the important Cygnus configure options, so we can diagnose typos.
  794. case $ac_dashdash$ac_option in
  795. --)
  796. ac_dashdash=yes ;;
  797. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  798. ac_prev=bindir ;;
  799. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  800. bindir=$ac_optarg ;;
  801. -build | --build | --buil | --bui | --bu)
  802. ac_prev=build_alias ;;
  803. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  804. build_alias=$ac_optarg ;;
  805. -cache-file | --cache-file | --cache-fil | --cache-fi \
  806. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  807. ac_prev=cache_file ;;
  808. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  809. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  810. cache_file=$ac_optarg ;;
  811. --config-cache | -C)
  812. cache_file=config.cache ;;
  813. -datadir | --datadir | --datadi | --datad)
  814. ac_prev=datadir ;;
  815. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  816. datadir=$ac_optarg ;;
  817. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  818. | --dataroo | --dataro | --datar)
  819. ac_prev=datarootdir ;;
  820. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  821. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  822. datarootdir=$ac_optarg ;;
  823. -disable-* | --disable-*)
  824. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  825. # Reject names that are not valid shell variable names.
  826. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  827. as_fn_error $? "invalid feature name: $ac_useropt"
  828. ac_useropt_orig=$ac_useropt
  829. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  830. case $ac_user_opts in
  831. *"
  832. "enable_$ac_useropt"
  833. "*) ;;
  834. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  835. ac_unrecognized_sep=', ';;
  836. esac
  837. eval enable_$ac_useropt=no ;;
  838. -docdir | --docdir | --docdi | --doc | --do)
  839. ac_prev=docdir ;;
  840. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  841. docdir=$ac_optarg ;;
  842. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  843. ac_prev=dvidir ;;
  844. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  845. dvidir=$ac_optarg ;;
  846. -enable-* | --enable-*)
  847. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  848. # Reject names that are not valid shell variable names.
  849. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  850. as_fn_error $? "invalid feature name: $ac_useropt"
  851. ac_useropt_orig=$ac_useropt
  852. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  853. case $ac_user_opts in
  854. *"
  855. "enable_$ac_useropt"
  856. "*) ;;
  857. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  858. ac_unrecognized_sep=', ';;
  859. esac
  860. eval enable_$ac_useropt=\$ac_optarg ;;
  861. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  862. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  863. | --exec | --exe | --ex)
  864. ac_prev=exec_prefix ;;
  865. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  866. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  867. | --exec=* | --exe=* | --ex=*)
  868. exec_prefix=$ac_optarg ;;
  869. -gas | --gas | --ga | --g)
  870. # Obsolete; use --with-gas.
  871. with_gas=yes ;;
  872. -help | --help | --hel | --he | -h)
  873. ac_init_help=long ;;
  874. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  875. ac_init_help=recursive ;;
  876. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  877. ac_init_help=short ;;
  878. -host | --host | --hos | --ho)
  879. ac_prev=host_alias ;;
  880. -host=* | --host=* | --hos=* | --ho=*)
  881. host_alias=$ac_optarg ;;
  882. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  883. ac_prev=htmldir ;;
  884. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  885. | --ht=*)
  886. htmldir=$ac_optarg ;;
  887. -includedir | --includedir | --includedi | --included | --include \
  888. | --includ | --inclu | --incl | --inc)
  889. ac_prev=includedir ;;
  890. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  891. | --includ=* | --inclu=* | --incl=* | --inc=*)
  892. includedir=$ac_optarg ;;
  893. -infodir | --infodir | --infodi | --infod | --info | --inf)
  894. ac_prev=infodir ;;
  895. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  896. infodir=$ac_optarg ;;
  897. -libdir | --libdir | --libdi | --libd)
  898. ac_prev=libdir ;;
  899. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  900. libdir=$ac_optarg ;;
  901. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  902. | --libexe | --libex | --libe)
  903. ac_prev=libexecdir ;;
  904. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  905. | --libexe=* | --libex=* | --libe=*)
  906. libexecdir=$ac_optarg ;;
  907. -localedir | --localedir | --localedi | --localed | --locale)
  908. ac_prev=localedir ;;
  909. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  910. localedir=$ac_optarg ;;
  911. -localstatedir | --localstatedir | --localstatedi | --localstated \
  912. | --localstate | --localstat | --localsta | --localst | --locals)
  913. ac_prev=localstatedir ;;
  914. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  915. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  916. localstatedir=$ac_optarg ;;
  917. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  918. ac_prev=mandir ;;
  919. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  920. mandir=$ac_optarg ;;
  921. -nfp | --nfp | --nf)
  922. # Obsolete; use --without-fp.
  923. with_fp=no ;;
  924. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  925. | --no-cr | --no-c | -n)
  926. no_create=yes ;;
  927. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  928. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  929. no_recursion=yes ;;
  930. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  931. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  932. | --oldin | --oldi | --old | --ol | --o)
  933. ac_prev=oldincludedir ;;
  934. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  935. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  936. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  937. oldincludedir=$ac_optarg ;;
  938. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  939. ac_prev=prefix ;;
  940. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  941. prefix=$ac_optarg ;;
  942. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  943. | --program-pre | --program-pr | --program-p)
  944. ac_prev=program_prefix ;;
  945. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  946. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  947. program_prefix=$ac_optarg ;;
  948. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  949. | --program-suf | --program-su | --program-s)
  950. ac_prev=program_suffix ;;
  951. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  952. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  953. program_suffix=$ac_optarg ;;
  954. -program-transform-name | --program-transform-name \
  955. | --program-transform-nam | --program-transform-na \
  956. | --program-transform-n | --program-transform- \
  957. | --program-transform | --program-transfor \
  958. | --program-transfo | --program-transf \
  959. | --program-trans | --program-tran \
  960. | --progr-tra | --program-tr | --program-t)
  961. ac_prev=program_transform_name ;;
  962. -program-transform-name=* | --program-transform-name=* \
  963. | --program-transform-nam=* | --program-transform-na=* \
  964. | --program-transform-n=* | --program-transform-=* \
  965. | --program-transform=* | --program-transfor=* \
  966. | --program-transfo=* | --program-transf=* \
  967. | --program-trans=* | --program-tran=* \
  968. | --progr-tra=* | --program-tr=* | --program-t=*)
  969. program_transform_name=$ac_optarg ;;
  970. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  971. ac_prev=pdfdir ;;
  972. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  973. pdfdir=$ac_optarg ;;
  974. -psdir | --psdir | --psdi | --psd | --ps)
  975. ac_prev=psdir ;;
  976. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  977. psdir=$ac_optarg ;;
  978. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  979. | -silent | --silent | --silen | --sile | --sil)
  980. silent=yes ;;
  981. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  982. ac_prev=sbindir ;;
  983. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  984. | --sbi=* | --sb=*)
  985. sbindir=$ac_optarg ;;
  986. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  987. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  988. | --sharedst | --shareds | --shared | --share | --shar \
  989. | --sha | --sh)
  990. ac_prev=sharedstatedir ;;
  991. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  992. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  993. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  994. | --sha=* | --sh=*)
  995. sharedstatedir=$ac_optarg ;;
  996. -site | --site | --sit)
  997. ac_prev=site ;;
  998. -site=* | --site=* | --sit=*)
  999. site=$ac_optarg ;;
  1000. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1001. ac_prev=srcdir ;;
  1002. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1003. srcdir=$ac_optarg ;;
  1004. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1005. | --syscon | --sysco | --sysc | --sys | --sy)
  1006. ac_prev=sysconfdir ;;
  1007. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1008. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1009. sysconfdir=$ac_optarg ;;
  1010. -target | --target | --targe | --targ | --tar | --ta | --t)
  1011. ac_prev=target_alias ;;
  1012. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1013. target_alias=$ac_optarg ;;
  1014. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1015. verbose=yes ;;
  1016. -version | --version | --versio | --versi | --vers | -V)
  1017. ac_init_version=: ;;
  1018. -with-* | --with-*)
  1019. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1020. # Reject names that are not valid shell variable names.
  1021. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1022. as_fn_error $? "invalid package name: $ac_useropt"
  1023. ac_useropt_orig=$ac_useropt
  1024. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1025. case $ac_user_opts in
  1026. *"
  1027. "with_$ac_useropt"
  1028. "*) ;;
  1029. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1030. ac_unrecognized_sep=', ';;
  1031. esac
  1032. eval with_$ac_useropt=\$ac_optarg ;;
  1033. -without-* | --without-*)
  1034. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1035. # Reject names that are not valid shell variable names.
  1036. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1037. as_fn_error $? "invalid package name: $ac_useropt"
  1038. ac_useropt_orig=$ac_useropt
  1039. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1040. case $ac_user_opts in
  1041. *"
  1042. "with_$ac_useropt"
  1043. "*) ;;
  1044. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1045. ac_unrecognized_sep=', ';;
  1046. esac
  1047. eval with_$ac_useropt=no ;;
  1048. --x)
  1049. # Obsolete; use --with-x.
  1050. with_x=yes ;;
  1051. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1052. | --x-incl | --x-inc | --x-in | --x-i)
  1053. ac_prev=x_includes ;;
  1054. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1055. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1056. x_includes=$ac_optarg ;;
  1057. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1058. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1059. ac_prev=x_libraries ;;
  1060. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1061. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1062. x_libraries=$ac_optarg ;;
  1063. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1064. Try \`$0 --help' for more information"
  1065. ;;
  1066. *=*)
  1067. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1068. # Reject names that are not valid shell variable names.
  1069. case $ac_envvar in #(
  1070. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1071. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1072. esac
  1073. eval $ac_envvar=\$ac_optarg
  1074. export $ac_envvar ;;
  1075. *)
  1076. # FIXME: should be removed in autoconf 3.0.
  1077. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1078. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1079. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1080. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1081. ;;
  1082. esac
  1083. done
  1084. if test -n "$ac_prev"; then
  1085. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1086. as_fn_error $? "missing argument to $ac_option"
  1087. fi
  1088. if test -n "$ac_unrecognized_opts"; then
  1089. case $enable_option_checking in
  1090. no) ;;
  1091. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1092. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1093. esac
  1094. fi
  1095. # Check all directory arguments for consistency.
  1096. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1097. datadir sysconfdir sharedstatedir localstatedir includedir \
  1098. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1099. libdir localedir mandir
  1100. do
  1101. eval ac_val=\$$ac_var
  1102. # Remove trailing slashes.
  1103. case $ac_val in
  1104. */ )
  1105. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1106. eval $ac_var=\$ac_val;;
  1107. esac
  1108. # Be sure to have absolute directory names.
  1109. case $ac_val in
  1110. [\\/$]* | ?:[\\/]* ) continue;;
  1111. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1112. esac
  1113. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1114. done
  1115. # There might be people who depend on the old broken behavior: `$host'
  1116. # used to hold the argument of --host etc.
  1117. # FIXME: To remove some day.
  1118. build=$build_alias
  1119. host=$host_alias
  1120. target=$target_alias
  1121. # FIXME: To remove some day.
  1122. if test "x$host_alias" != x; then
  1123. if test "x$build_alias" = x; then
  1124. cross_compiling=maybe
  1125. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1126. If a cross compiler is detected then cross compile mode will be used" >&2
  1127. elif test "x$build_alias" != "x$host_alias"; then
  1128. cross_compiling=yes
  1129. fi
  1130. fi
  1131. ac_tool_prefix=
  1132. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1133. test "$silent" = yes && exec 6>/dev/null
  1134. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1135. ac_ls_di=`ls -di .` &&
  1136. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1137. as_fn_error $? "working directory cannot be determined"
  1138. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1139. as_fn_error $? "pwd does not report name of working directory"
  1140. # Find the source files, if location was not specified.
  1141. if test -z "$srcdir"; then
  1142. ac_srcdir_defaulted=yes
  1143. # Try the directory containing this script, then the parent directory.
  1144. ac_confdir=`$as_dirname -- "$as_myself" ||
  1145. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1146. X"$as_myself" : 'X\(//\)[^/]' \| \
  1147. X"$as_myself" : 'X\(//\)$' \| \
  1148. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1149. $as_echo X"$as_myself" |
  1150. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1151. s//\1/
  1152. q
  1153. }
  1154. /^X\(\/\/\)[^/].*/{
  1155. s//\1/
  1156. q
  1157. }
  1158. /^X\(\/\/\)$/{
  1159. s//\1/
  1160. q
  1161. }
  1162. /^X\(\/\).*/{
  1163. s//\1/
  1164. q
  1165. }
  1166. s/.*/./; q'`
  1167. srcdir=$ac_confdir
  1168. if test ! -r "$srcdir/$ac_unique_file"; then
  1169. srcdir=..
  1170. fi
  1171. else
  1172. ac_srcdir_defaulted=no
  1173. fi
  1174. if test ! -r "$srcdir/$ac_unique_file"; then
  1175. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1176. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1177. fi
  1178. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1179. ac_abs_confdir=`(
  1180. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1181. pwd)`
  1182. # When building in place, set srcdir=.
  1183. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1184. srcdir=.
  1185. fi
  1186. # Remove unnecessary trailing slashes from srcdir.
  1187. # Double slashes in file names in object file debugging info
  1188. # mess up M-x gdb in Emacs.
  1189. case $srcdir in
  1190. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1191. esac
  1192. for ac_var in $ac_precious_vars; do
  1193. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1194. eval ac_env_${ac_var}_value=\$${ac_var}
  1195. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1196. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1197. done
  1198. #
  1199. # Report the --help message.
  1200. #
  1201. if test "$ac_init_help" = "long"; then
  1202. # Omit some internal or obsolete options to make the list less imposing.
  1203. # This message is too long to be a string in the A/UX 3.1 sh.
  1204. cat <<_ACEOF
  1205. \`configure' configures libusb 1.0.16-rc10 to adapt to many kinds of systems.
  1206. Usage: $0 [OPTION]... [VAR=VALUE]...
  1207. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1208. VAR=VALUE. See below for descriptions of some of the useful variables.
  1209. Defaults for the options are specified in brackets.
  1210. Configuration:
  1211. -h, --help display this help and exit
  1212. --help=short display options specific to this package
  1213. --help=recursive display the short help of all the included packages
  1214. -V, --version display version information and exit
  1215. -q, --quiet, --silent do not print \`checking ...' messages
  1216. --cache-file=FILE cache test results in FILE [disabled]
  1217. -C, --config-cache alias for \`--cache-file=config.cache'
  1218. -n, --no-create do not create output files
  1219. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1220. Installation directories:
  1221. --prefix=PREFIX install architecture-independent files in PREFIX
  1222. @<:@@S|@ac_default_prefix@:>@
  1223. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1224. @<:@PREFIX@:>@
  1225. By default, \`make install' will install all the files in
  1226. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1227. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1228. for instance \`--prefix=\$HOME'.
  1229. For better control, use the options below.
  1230. Fine tuning of the installation directories:
  1231. --bindir=DIR user executables [EPREFIX/bin]
  1232. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1233. --libexecdir=DIR program executables [EPREFIX/libexec]
  1234. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1235. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1236. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1237. --libdir=DIR object code libraries [EPREFIX/lib]
  1238. --includedir=DIR C header files [PREFIX/include]
  1239. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1240. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1241. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1242. --infodir=DIR info documentation [DATAROOTDIR/info]
  1243. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1244. --mandir=DIR man documentation [DATAROOTDIR/man]
  1245. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libusb@:>@
  1246. --htmldir=DIR html documentation [DOCDIR]
  1247. --dvidir=DIR dvi documentation [DOCDIR]
  1248. --pdfdir=DIR pdf documentation [DOCDIR]
  1249. --psdir=DIR ps documentation [DOCDIR]
  1250. _ACEOF
  1251. cat <<\_ACEOF
  1252. Program names:
  1253. --program-prefix=PREFIX prepend PREFIX to installed program names
  1254. --program-suffix=SUFFIX append SUFFIX to installed program names
  1255. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1256. System types:
  1257. --build=BUILD configure for building on BUILD [guessed]
  1258. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1259. _ACEOF
  1260. fi
  1261. if test -n "$ac_init_help"; then
  1262. case $ac_init_help in
  1263. short | recursive ) echo "Configuration of libusb 1.0.16-rc10:";;
  1264. esac
  1265. cat <<\_ACEOF
  1266. Optional Features:
  1267. --disable-option-checking ignore unrecognized --enable/--with options
  1268. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1269. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1270. --enable-maintainer-mode enable make rules and dependencies not useful
  1271. (and sometimes confusing) to the casual installer
  1272. --enable-silent-rules less verbose build output (undo: `make V=1')
  1273. --disable-silent-rules verbose build output (undo: `make V=0')
  1274. --disable-dependency-tracking speeds up one-time build
  1275. --enable-dependency-tracking do not reject slow dependency extractors
  1276. --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
  1277. --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
  1278. --enable-fast-install@<:@=PKGS@:>@
  1279. optimize for fast installation @<:@default=yes@:>@
  1280. --disable-libtool-lock avoid locking (might break parallel builds)
  1281. --with-udev use udev for device enumeration and hotplug support
  1282. (recommended, default: yes)
  1283. --enable-timerfd use timerfd for timing (default auto)
  1284. --disable-log disable all logging
  1285. --enable-debug-log enable debug logging (default n)
  1286. --enable-examples-build build example applications (default n)
  1287. Optional Packages:
  1288. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1289. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1290. --with-pic try to use only PIC/non-PIC objects @<:@default=use
  1291. both@:>@
  1292. --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
  1293. --with-sysroot=DIR Search for dependent libraries within DIR
  1294. (or the compiler's sysroot if not specified).
  1295. Some influential environment variables:
  1296. CC C compiler command
  1297. CFLAGS C compiler flags
  1298. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1299. nonstandard directory <lib dir>
  1300. LIBS libraries to pass to the linker, e.g. -l<library>
  1301. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1302. you have headers in a nonstandard directory <include dir>
  1303. CPP C preprocessor
  1304. Use these variables to override the choices made by `configure' or to help
  1305. it to find libraries and programs with nonstandard names/locations.
  1306. Report bugs to <libusb-devel@lists.sourceforge.net>.
  1307. libusb home page: <http://www.libusb.org/>.
  1308. _ACEOF
  1309. ac_status=$?
  1310. fi
  1311. if test "$ac_init_help" = "recursive"; then
  1312. # If there are subdirs, report their specific --help.
  1313. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1314. test -d "$ac_dir" ||
  1315. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1316. continue
  1317. ac_builddir=.
  1318. case "$ac_dir" in
  1319. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1320. *)
  1321. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1322. # A ".." for each directory in $ac_dir_suffix.
  1323. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1324. case $ac_top_builddir_sub in
  1325. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1326. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1327. esac ;;
  1328. esac
  1329. ac_abs_top_builddir=$ac_pwd
  1330. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1331. # for backward compatibility:
  1332. ac_top_builddir=$ac_top_build_prefix
  1333. case $srcdir in
  1334. .) # We are building in place.
  1335. ac_srcdir=.
  1336. ac_top_srcdir=$ac_top_builddir_sub
  1337. ac_abs_top_srcdir=$ac_pwd ;;
  1338. [\\/]* | ?:[\\/]* ) # Absolute name.
  1339. ac_srcdir=$srcdir$ac_dir_suffix;
  1340. ac_top_srcdir=$srcdir
  1341. ac_abs_top_srcdir=$srcdir ;;
  1342. *) # Relative name.
  1343. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1344. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1345. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1346. esac
  1347. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1348. cd "$ac_dir" || { ac_status=$?; continue; }
  1349. # Check for guested configure.
  1350. if test -f "$ac_srcdir/configure.gnu"; then
  1351. echo &&
  1352. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1353. elif test -f "$ac_srcdir/configure"; then
  1354. echo &&
  1355. $SHELL "$ac_srcdir/configure" --help=recursive
  1356. else
  1357. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1358. fi || ac_status=$?
  1359. cd "$ac_pwd" || { ac_status=$?; break; }
  1360. done
  1361. fi
  1362. test -n "$ac_init_help" && exit $ac_status
  1363. if $ac_init_version; then
  1364. cat <<\_ACEOF
  1365. libusb configure 1.0.16-rc10
  1366. generated by GNU Autoconf 2.68
  1367. Copyright (C) 2010 Free Software Foundation, Inc.
  1368. This configure script is free software; the Free Software Foundation
  1369. gives unlimited permission to copy, distribute and modify it.
  1370. _ACEOF
  1371. exit
  1372. fi
  1373. ## ------------------------ ##
  1374. ## Autoconf initialization. ##
  1375. ## ------------------------ ##
  1376. @%:@ ac_fn_c_try_compile LINENO
  1377. @%:@ --------------------------
  1378. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1379. ac_fn_c_try_compile ()
  1380. {
  1381. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1382. rm -f conftest.$ac_objext
  1383. if { { ac_try="$ac_compile"
  1384. case "(($ac_try" in
  1385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1386. *) ac_try_echo=$ac_try;;
  1387. esac
  1388. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1389. $as_echo "$ac_try_echo"; } >&5
  1390. (eval "$ac_compile") 2>conftest.err
  1391. ac_status=$?
  1392. if test -s conftest.err; then
  1393. grep -v '^ *+' conftest.err >conftest.er1
  1394. cat conftest.er1 >&5
  1395. mv -f conftest.er1 conftest.err
  1396. fi
  1397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1398. test $ac_status = 0; } && {
  1399. test -z "$ac_c_werror_flag" ||
  1400. test ! -s conftest.err
  1401. } && test -s conftest.$ac_objext; then :
  1402. ac_retval=0
  1403. else
  1404. $as_echo "$as_me: failed program was:" >&5
  1405. sed 's/^/| /' conftest.$ac_ext >&5
  1406. ac_retval=1
  1407. fi
  1408. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1409. as_fn_set_status $ac_retval
  1410. } @%:@ ac_fn_c_try_compile
  1411. @%:@ ac_fn_c_try_link LINENO
  1412. @%:@ -----------------------
  1413. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1414. ac_fn_c_try_link ()
  1415. {
  1416. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1417. rm -f conftest.$ac_objext conftest$ac_exeext
  1418. if { { ac_try="$ac_link"
  1419. case "(($ac_try" in
  1420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1421. *) ac_try_echo=$ac_try;;
  1422. esac
  1423. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1424. $as_echo "$ac_try_echo"; } >&5
  1425. (eval "$ac_link") 2>conftest.err
  1426. ac_status=$?
  1427. if test -s conftest.err; then
  1428. grep -v '^ *+' conftest.err >conftest.er1
  1429. cat conftest.er1 >&5
  1430. mv -f conftest.er1 conftest.err
  1431. fi
  1432. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1433. test $ac_status = 0; } && {
  1434. test -z "$ac_c_werror_flag" ||
  1435. test ! -s conftest.err
  1436. } && test -s conftest$ac_exeext && {
  1437. test "$cross_compiling" = yes ||
  1438. $as_test_x conftest$ac_exeext
  1439. }; then :
  1440. ac_retval=0
  1441. else
  1442. $as_echo "$as_me: failed program was:" >&5
  1443. sed 's/^/| /' conftest.$ac_ext >&5
  1444. ac_retval=1
  1445. fi
  1446. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1447. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1448. # interfere with the next link command; also delete a directory that is
  1449. # left behind by Apple's compiler. We do this before executing the actions.
  1450. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1451. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1452. as_fn_set_status $ac_retval
  1453. } @%:@ ac_fn_c_try_link
  1454. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1455. @%:@ -------------------------------------------------------
  1456. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1457. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1458. ac_fn_c_check_header_compile ()
  1459. {
  1460. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1462. $as_echo_n "checking for $2... " >&6; }
  1463. if eval \${$3+:} false; then :
  1464. $as_echo_n "(cached) " >&6
  1465. else
  1466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1467. /* end confdefs.h. */
  1468. $4
  1469. @%:@include <$2>
  1470. _ACEOF
  1471. if ac_fn_c_try_compile "$LINENO"; then :
  1472. eval "$3=yes"
  1473. else
  1474. eval "$3=no"
  1475. fi
  1476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1477. fi
  1478. eval ac_res=\$$3
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1480. $as_echo "$ac_res" >&6; }
  1481. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1482. } @%:@ ac_fn_c_check_header_compile
  1483. @%:@ ac_fn_c_try_cpp LINENO
  1484. @%:@ ----------------------
  1485. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1486. ac_fn_c_try_cpp ()
  1487. {
  1488. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1489. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1490. case "(($ac_try" in
  1491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1492. *) ac_try_echo=$ac_try;;
  1493. esac
  1494. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1495. $as_echo "$ac_try_echo"; } >&5
  1496. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1497. ac_status=$?
  1498. if test -s conftest.err; then
  1499. grep -v '^ *+' conftest.err >conftest.er1
  1500. cat conftest.er1 >&5
  1501. mv -f conftest.er1 conftest.err
  1502. fi
  1503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1504. test $ac_status = 0; } > conftest.i && {
  1505. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1506. test ! -s conftest.err
  1507. }; then :
  1508. ac_retval=0
  1509. else
  1510. $as_echo "$as_me: failed program was:" >&5
  1511. sed 's/^/| /' conftest.$ac_ext >&5
  1512. ac_retval=1
  1513. fi
  1514. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1515. as_fn_set_status $ac_retval
  1516. } @%:@ ac_fn_c_try_cpp
  1517. @%:@ ac_fn_c_try_run LINENO
  1518. @%:@ ----------------------
  1519. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1520. @%:@ that executables *can* be run.
  1521. ac_fn_c_try_run ()
  1522. {
  1523. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1524. if { { ac_try="$ac_link"
  1525. case "(($ac_try" in
  1526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1527. *) ac_try_echo=$ac_try;;
  1528. esac
  1529. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1530. $as_echo "$ac_try_echo"; } >&5
  1531. (eval "$ac_link") 2>&5
  1532. ac_status=$?
  1533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1534. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1535. { { case "(($ac_try" in
  1536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1537. *) ac_try_echo=$ac_try;;
  1538. esac
  1539. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1540. $as_echo "$ac_try_echo"; } >&5
  1541. (eval "$ac_try") 2>&5
  1542. ac_status=$?
  1543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1544. test $ac_status = 0; }; }; then :
  1545. ac_retval=0
  1546. else
  1547. $as_echo "$as_me: program exited with status $ac_status" >&5
  1548. $as_echo "$as_me: failed program was:" >&5
  1549. sed 's/^/| /' conftest.$ac_ext >&5
  1550. ac_retval=$ac_status
  1551. fi
  1552. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1553. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1554. as_fn_set_status $ac_retval
  1555. } @%:@ ac_fn_c_try_run
  1556. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  1557. @%:@ ----------------------------------
  1558. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1559. ac_fn_c_check_func ()
  1560. {
  1561. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1563. $as_echo_n "checking for $2... " >&6; }
  1564. if eval \${$3+:} false; then :
  1565. $as_echo_n "(cached) " >&6
  1566. else
  1567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1568. /* end confdefs.h. */
  1569. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1570. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1571. #define $2 innocuous_$2
  1572. /* System header to define __stub macros and hopefully few prototypes,
  1573. which can conflict with char $2 (); below.
  1574. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1575. <limits.h> exists even on freestanding compilers. */
  1576. #ifdef __STDC__
  1577. # include <limits.h>
  1578. #else
  1579. # include <assert.h>
  1580. #endif
  1581. #undef $2
  1582. /* Override any GCC internal prototype to avoid an error.
  1583. Use char because int might match the return type of a GCC
  1584. builtin and then its argument prototype would still apply. */
  1585. #ifdef __cplusplus
  1586. extern "C"
  1587. #endif
  1588. char $2 ();
  1589. /* The GNU C library defines this for functions which it implements
  1590. to always fail with ENOSYS. Some functions are actually named
  1591. something starting with __ and the normal name is an alias. */
  1592. #if defined __stub_$2 || defined __stub___$2
  1593. choke me
  1594. #endif
  1595. int
  1596. main ()
  1597. {
  1598. return $2 ();
  1599. ;
  1600. return 0;
  1601. }
  1602. _ACEOF
  1603. if ac_fn_c_try_link "$LINENO"; then :
  1604. eval "$3=yes"
  1605. else
  1606. eval "$3=no"
  1607. fi
  1608. rm -f core conftest.err conftest.$ac_objext \
  1609. conftest$ac_exeext conftest.$ac_ext
  1610. fi
  1611. eval ac_res=\$$3
  1612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1613. $as_echo "$ac_res" >&6; }
  1614. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1615. } @%:@ ac_fn_c_check_func
  1616. @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1617. @%:@ -------------------------------------------------------
  1618. @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1619. @%:@ the include files in INCLUDES and setting the cache variable VAR
  1620. @%:@ accordingly.
  1621. ac_fn_c_check_header_mongrel ()
  1622. {
  1623. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1624. if eval \${$3+:} false; then :
  1625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1626. $as_echo_n "checking for $2... " >&6; }
  1627. if eval \${$3+:} false; then :
  1628. $as_echo_n "(cached) " >&6
  1629. fi
  1630. eval ac_res=\$$3
  1631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1632. $as_echo "$ac_res" >&6; }
  1633. else
  1634. # Is the header compilable?
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1636. $as_echo_n "checking $2 usability... " >&6; }
  1637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1638. /* end confdefs.h. */
  1639. $4
  1640. @%:@include <$2>
  1641. _ACEOF
  1642. if ac_fn_c_try_compile "$LINENO"; then :
  1643. ac_header_compiler=yes
  1644. else
  1645. ac_header_compiler=no
  1646. fi
  1647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1649. $as_echo "$ac_header_compiler" >&6; }
  1650. # Is the header present?
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1652. $as_echo_n "checking $2 presence... " >&6; }
  1653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1654. /* end confdefs.h. */
  1655. @%:@include <$2>
  1656. _ACEOF
  1657. if ac_fn_c_try_cpp "$LINENO"; then :
  1658. ac_header_preproc=yes
  1659. else
  1660. ac_header_preproc=no
  1661. fi
  1662. rm -f conftest.err conftest.i conftest.$ac_ext
  1663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1664. $as_echo "$ac_header_preproc" >&6; }
  1665. # So? What about this header?
  1666. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1667. yes:no: )
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1669. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1670. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1671. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1672. ;;
  1673. no:yes:* )
  1674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1675. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1676. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1677. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1679. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1681. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1682. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1683. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1684. ( $as_echo "## ------------------------------------------------- ##
  1685. ## Report this to libusb-devel@lists.sourceforge.net ##
  1686. ## ------------------------------------------------- ##"
  1687. ) | sed "s/^/$as_me: WARNING: /" >&2
  1688. ;;
  1689. esac
  1690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1691. $as_echo_n "checking for $2... " >&6; }
  1692. if eval \${$3+:} false; then :
  1693. $as_echo_n "(cached) " >&6
  1694. else
  1695. eval "$3=\$ac_header_compiler"
  1696. fi
  1697. eval ac_res=\$$3
  1698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1699. $as_echo "$ac_res" >&6; }
  1700. fi
  1701. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1702. } @%:@ ac_fn_c_check_header_mongrel
  1703. @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1704. @%:@ -------------------------------------------
  1705. @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
  1706. @%:@ variable VAR accordingly.
  1707. ac_fn_c_check_type ()
  1708. {
  1709. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1711. $as_echo_n "checking for $2... " >&6; }
  1712. if eval \${$3+:} false; then :
  1713. $as_echo_n "(cached) " >&6
  1714. else
  1715. eval "$3=no"
  1716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1717. /* end confdefs.h. */
  1718. $4
  1719. int
  1720. main ()
  1721. {
  1722. if (sizeof ($2))
  1723. return 0;
  1724. ;
  1725. return 0;
  1726. }
  1727. _ACEOF
  1728. if ac_fn_c_try_compile "$LINENO"; then :
  1729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1730. /* end confdefs.h. */
  1731. $4
  1732. int
  1733. main ()
  1734. {
  1735. if (sizeof (($2)))
  1736. return 0;
  1737. ;
  1738. return 0;
  1739. }
  1740. _ACEOF
  1741. if ac_fn_c_try_compile "$LINENO"; then :
  1742. else
  1743. eval "$3=yes"
  1744. fi
  1745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1746. fi
  1747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1748. fi
  1749. eval ac_res=\$$3
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1751. $as_echo "$ac_res" >&6; }
  1752. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1753. } @%:@ ac_fn_c_check_type
  1754. @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1755. @%:@ ---------------------------------------------
  1756. @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1757. @%:@ accordingly.
  1758. ac_fn_c_check_decl ()
  1759. {
  1760. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1761. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1762. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1764. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1765. if eval \${$3+:} false; then :
  1766. $as_echo_n "(cached) " >&6
  1767. else
  1768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1769. /* end confdefs.h. */
  1770. $4
  1771. int
  1772. main ()
  1773. {
  1774. @%:@ifndef $as_decl_name
  1775. @%:@ifdef __cplusplus
  1776. (void) $as_decl_use;
  1777. @%:@else
  1778. (void) $as_decl_name;
  1779. @%:@endif
  1780. @%:@endif
  1781. ;
  1782. return 0;
  1783. }
  1784. _ACEOF
  1785. if ac_fn_c_try_compile "$LINENO"; then :
  1786. eval "$3=yes"
  1787. else
  1788. eval "$3=no"
  1789. fi
  1790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1791. fi
  1792. eval ac_res=\$$3
  1793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1794. $as_echo "$ac_res" >&6; }
  1795. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1796. } @%:@ ac_fn_c_check_decl
  1797. cat >config.log <<_ACEOF
  1798. This file contains any messages produced by compilers while
  1799. running configure, to aid debugging if configure makes a mistake.
  1800. It was created by libusb $as_me 1.0.16-rc10, which was
  1801. generated by GNU Autoconf 2.68. Invocation command line was
  1802. $ $0 $@
  1803. _ACEOF
  1804. exec 5>>config.log
  1805. {
  1806. cat <<_ASUNAME
  1807. ## --------- ##
  1808. ## Platform. ##
  1809. ## --------- ##
  1810. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1811. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1812. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1813. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1814. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1815. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1816. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1817. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1818. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1819. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1820. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1821. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1822. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1823. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1824. _ASUNAME
  1825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1826. for as_dir in $PATH
  1827. do
  1828. IFS=$as_save_IFS
  1829. test -z "$as_dir" && as_dir=.
  1830. $as_echo "PATH: $as_dir"
  1831. done
  1832. IFS=$as_save_IFS
  1833. } >&5
  1834. cat >&5 <<_ACEOF
  1835. ## ----------- ##
  1836. ## Core tests. ##
  1837. ## ----------- ##
  1838. _ACEOF
  1839. # Keep a trace of the command line.
  1840. # Strip out --no-create and --no-recursion so they do not pile up.
  1841. # Strip out --silent because we don't want to record it for future runs.
  1842. # Also quote any args containing shell meta-characters.
  1843. # Make two passes to allow for proper duplicate-argument suppression.
  1844. ac_configure_args=
  1845. ac_configure_args0=
  1846. ac_configure_args1=
  1847. ac_must_keep_next=false
  1848. for ac_pass in 1 2
  1849. do
  1850. for ac_arg
  1851. do
  1852. case $ac_arg in
  1853. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1854. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1855. | -silent | --silent | --silen | --sile | --sil)
  1856. continue ;;
  1857. *\'*)
  1858. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1859. esac
  1860. case $ac_pass in
  1861. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1862. 2)
  1863. as_fn_append ac_configure_args1 " '$ac_arg'"
  1864. if test $ac_must_keep_next = true; then
  1865. ac_must_keep_next=false # Got value, back to normal.
  1866. else
  1867. case $ac_arg in
  1868. *=* | --config-cache | -C | -disable-* | --disable-* \
  1869. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1870. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1871. | -with-* | --with-* | -without-* | --without-* | --x)
  1872. case "$ac_configure_args0 " in
  1873. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1874. esac
  1875. ;;
  1876. -* ) ac_must_keep_next=true ;;
  1877. esac
  1878. fi
  1879. as_fn_append ac_configure_args " '$ac_arg'"
  1880. ;;
  1881. esac
  1882. done
  1883. done
  1884. { ac_configure_args0=; unset ac_configure_args0;}
  1885. { ac_configure_args1=; unset ac_configure_args1;}
  1886. # When interrupted or exit'd, cleanup temporary files, and complete
  1887. # config.log. We remove comments because anyway the quotes in there
  1888. # would cause problems or look ugly.
  1889. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1890. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1891. trap 'exit_status=$?
  1892. # Save into config.log some information that might help in debugging.
  1893. {
  1894. echo
  1895. $as_echo "## ---------------- ##
  1896. ## Cache variables. ##
  1897. ## ---------------- ##"
  1898. echo
  1899. # The following way of writing the cache mishandles newlines in values,
  1900. (
  1901. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1902. eval ac_val=\$$ac_var
  1903. case $ac_val in #(
  1904. *${as_nl}*)
  1905. case $ac_var in #(
  1906. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1907. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1908. esac
  1909. case $ac_var in #(
  1910. _ | IFS | as_nl) ;; #(
  1911. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1912. *) { eval $ac_var=; unset $ac_var;} ;;
  1913. esac ;;
  1914. esac
  1915. done
  1916. (set) 2>&1 |
  1917. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1918. *${as_nl}ac_space=\ *)
  1919. sed -n \
  1920. "s/'\''/'\''\\\\'\'''\''/g;
  1921. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1922. ;; #(
  1923. *)
  1924. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1925. ;;
  1926. esac |
  1927. sort
  1928. )
  1929. echo
  1930. $as_echo "## ----------------- ##
  1931. ## Output variables. ##
  1932. ## ----------------- ##"
  1933. echo
  1934. for ac_var in $ac_subst_vars
  1935. do
  1936. eval ac_val=\$$ac_var
  1937. case $ac_val in
  1938. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1939. esac
  1940. $as_echo "$ac_var='\''$ac_val'\''"
  1941. done | sort
  1942. echo
  1943. if test -n "$ac_subst_files"; then
  1944. $as_echo "## ------------------- ##
  1945. ## File substitutions. ##
  1946. ## ------------------- ##"
  1947. echo
  1948. for ac_var in $ac_subst_files
  1949. do
  1950. eval ac_val=\$$ac_var
  1951. case $ac_val in
  1952. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1953. esac
  1954. $as_echo "$ac_var='\''$ac_val'\''"
  1955. done | sort
  1956. echo
  1957. fi
  1958. if test -s confdefs.h; then
  1959. $as_echo "## ----------- ##
  1960. ## confdefs.h. ##
  1961. ## ----------- ##"
  1962. echo
  1963. cat confdefs.h
  1964. echo
  1965. fi
  1966. test "$ac_signal" != 0 &&
  1967. $as_echo "$as_me: caught signal $ac_signal"
  1968. $as_echo "$as_me: exit $exit_status"
  1969. } >&5
  1970. rm -f core *.core core.conftest.* &&
  1971. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1972. exit $exit_status
  1973. ' 0
  1974. for ac_signal in 1 2 13 15; do
  1975. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1976. done
  1977. ac_signal=0
  1978. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1979. rm -f -r conftest* confdefs.h
  1980. $as_echo "/* confdefs.h */" > confdefs.h
  1981. # Predefined preprocessor variables.
  1982. cat >>confdefs.h <<_ACEOF
  1983. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  1984. _ACEOF
  1985. cat >>confdefs.h <<_ACEOF
  1986. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1987. _ACEOF
  1988. cat >>confdefs.h <<_ACEOF
  1989. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  1990. _ACEOF
  1991. cat >>confdefs.h <<_ACEOF
  1992. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  1993. _ACEOF
  1994. cat >>confdefs.h <<_ACEOF
  1995. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1996. _ACEOF
  1997. cat >>confdefs.h <<_ACEOF
  1998. @%:@define PACKAGE_URL "$PACKAGE_URL"
  1999. _ACEOF
  2000. # Let the site file select an alternate cache file if it wants to.
  2001. # Prefer an explicitly selected file to automatically selected ones.
  2002. ac_site_file1=NONE
  2003. ac_site_file2=NONE
  2004. if test -n "$CONFIG_SITE"; then
  2005. # We do not want a PATH search for config.site.
  2006. case $CONFIG_SITE in @%:@((
  2007. -*) ac_site_file1=./$CONFIG_SITE;;
  2008. */*) ac_site_file1=$CONFIG_SITE;;
  2009. *) ac_site_file1=./$CONFIG_SITE;;
  2010. esac
  2011. elif test "x$prefix" != xNONE; then
  2012. ac_site_file1=$prefix/share/config.site
  2013. ac_site_file2=$prefix/etc/config.site
  2014. else
  2015. ac_site_file1=$ac_default_prefix/share/config.site
  2016. ac_site_file2=$ac_default_prefix/etc/config.site
  2017. fi
  2018. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2019. do
  2020. test "x$ac_site_file" = xNONE && continue
  2021. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2022. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2023. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2024. sed 's/^/| /' "$ac_site_file" >&5
  2025. . "$ac_site_file" \
  2026. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2027. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2028. as_fn_error $? "failed to load site script $ac_site_file
  2029. See \`config.log' for more details" "$LINENO" 5 ; }
  2030. fi
  2031. done
  2032. if test -r "$cache_file"; then
  2033. # Some versions of bash will fail to source /dev/null (special files
  2034. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2035. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2036. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2037. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2038. case $cache_file in
  2039. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2040. *) . "./$cache_file";;
  2041. esac
  2042. fi
  2043. else
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2045. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2046. >$cache_file
  2047. fi
  2048. # Check that the precious variables saved in the cache have kept the same
  2049. # value.
  2050. ac_cache_corrupted=false
  2051. for ac_var in $ac_precious_vars; do
  2052. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2053. eval ac_new_set=\$ac_env_${ac_var}_set
  2054. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2055. eval ac_new_val=\$ac_env_${ac_var}_value
  2056. case $ac_old_set,$ac_new_set in
  2057. set,)
  2058. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2059. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2060. ac_cache_corrupted=: ;;
  2061. ,set)
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2063. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2064. ac_cache_corrupted=: ;;
  2065. ,);;
  2066. *)
  2067. if test "x$ac_old_val" != "x$ac_new_val"; then
  2068. # differences in whitespace do not lead to failure.
  2069. ac_old_val_w=`echo x $ac_old_val`
  2070. ac_new_val_w=`echo x $ac_new_val`
  2071. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2073. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2074. ac_cache_corrupted=:
  2075. else
  2076. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2077. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2078. eval $ac_var=\$ac_old_val
  2079. fi
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2081. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2083. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2084. fi;;
  2085. esac
  2086. # Pass precious variables to config.status.
  2087. if test "$ac_new_set" = set; then
  2088. case $ac_new_val in
  2089. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2090. *) ac_arg=$ac_var=$ac_new_val ;;
  2091. esac
  2092. case " $ac_configure_args " in
  2093. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2094. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2095. esac
  2096. fi
  2097. done
  2098. if $ac_cache_corrupted; then
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2100. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2102. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2103. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2104. fi
  2105. ## -------------------- ##
  2106. ## Main body of script. ##
  2107. ## -------------------- ##
  2108. ac_ext=c
  2109. ac_cpp='$CPP $CPPFLAGS'
  2110. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2111. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2112. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2113. # Library versioning
  2114. # These numbers should be tweaked on every release. Read carefully:
  2115. # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
  2116. # http://sourceware.org/autobook/autobook/autobook_91.html
  2117. lt_current="2"
  2118. lt_revision="0"
  2119. lt_age="0"
  2120. LTLDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age}"
  2121. am__api_version='1.11'
  2122. ac_aux_dir=
  2123. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2124. if test -f "$ac_dir/install-sh"; then
  2125. ac_aux_dir=$ac_dir
  2126. ac_install_sh="$ac_aux_dir/install-sh -c"
  2127. break
  2128. elif test -f "$ac_dir/install.sh"; then
  2129. ac_aux_dir=$ac_dir
  2130. ac_install_sh="$ac_aux_dir/install.sh -c"
  2131. break
  2132. elif test -f "$ac_dir/shtool"; then
  2133. ac_aux_dir=$ac_dir
  2134. ac_install_sh="$ac_aux_dir/shtool install -c"
  2135. break
  2136. fi
  2137. done
  2138. if test -z "$ac_aux_dir"; then
  2139. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2140. fi
  2141. # These three variables are undocumented and unsupported,
  2142. # and are intended to be withdrawn in a future Autoconf release.
  2143. # They can cause serious problems if a builder's source tree is in a directory
  2144. # whose full name contains unusual characters.
  2145. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2146. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2147. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2148. # Find a good install program. We prefer a C program (faster),
  2149. # so one script is as good as another. But avoid the broken or
  2150. # incompatible versions:
  2151. # SysV /etc/install, /usr/sbin/install
  2152. # SunOS /usr/etc/install
  2153. # IRIX /sbin/install
  2154. # AIX /bin/install
  2155. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2156. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2157. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2158. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2159. # OS/2's system install, which has a completely different semantic
  2160. # ./install, which can be erroneously created by make from ./install.sh.
  2161. # Reject install programs that cannot install multiple files.
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2163. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2164. if test -z "$INSTALL"; then
  2165. if ${ac_cv_path_install+:} false; then :
  2166. $as_echo_n "(cached) " >&6
  2167. else
  2168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2169. for as_dir in $PATH
  2170. do
  2171. IFS=$as_save_IFS
  2172. test -z "$as_dir" && as_dir=.
  2173. # Account for people who put trailing slashes in PATH elements.
  2174. case $as_dir/ in @%:@((
  2175. ./ | .// | /[cC]/* | \
  2176. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2177. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2178. /usr/ucb/* ) ;;
  2179. *)
  2180. # OSF1 and SCO ODT 3.0 have their own names for install.
  2181. # Don't use installbsd from OSF since it installs stuff as root
  2182. # by default.
  2183. for ac_prog in ginstall scoinst install; do
  2184. for ac_exec_ext in '' $ac_executable_extensions; do
  2185. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2186. if test $ac_prog = install &&
  2187. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2188. # AIX install. It has an incompatible calling convention.
  2189. :
  2190. elif test $ac_prog = install &&
  2191. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2192. # program-specific install script used by HP pwplus--don't use.
  2193. :
  2194. else
  2195. rm -rf conftest.one conftest.two conftest.dir
  2196. echo one > conftest.one
  2197. echo two > conftest.two
  2198. mkdir conftest.dir
  2199. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2200. test -s conftest.one && test -s conftest.two &&
  2201. test -s conftest.dir/conftest.one &&
  2202. test -s conftest.dir/conftest.two
  2203. then
  2204. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2205. break 3
  2206. fi
  2207. fi
  2208. fi
  2209. done
  2210. done
  2211. ;;
  2212. esac
  2213. done
  2214. IFS=$as_save_IFS
  2215. rm -rf conftest.one conftest.two conftest.dir
  2216. fi
  2217. if test "${ac_cv_path_install+set}" = set; then
  2218. INSTALL=$ac_cv_path_install
  2219. else
  2220. # As a last resort, use the slow shell script. Don't cache a
  2221. # value for INSTALL within a source directory, because that will
  2222. # break other packages using the cache if that directory is
  2223. # removed, or if the value is a relative name.
  2224. INSTALL=$ac_install_sh
  2225. fi
  2226. fi
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2228. $as_echo "$INSTALL" >&6; }
  2229. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2230. # It thinks the first close brace ends the variable substitution.
  2231. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2232. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2233. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2235. $as_echo_n "checking whether build environment is sane... " >&6; }
  2236. # Just in case
  2237. sleep 1
  2238. echo timestamp > conftest.file
  2239. # Reject unsafe characters in $srcdir or the absolute working directory
  2240. # name. Accept space and tab only in the latter.
  2241. am_lf='
  2242. '
  2243. case `pwd` in
  2244. *[\\\"\#\$\&\'\`$am_lf]*)
  2245. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  2246. esac
  2247. case $srcdir in
  2248. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2249. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  2250. esac
  2251. # Do `set' in a subshell so we don't clobber the current shell's
  2252. # arguments. Must try -L first in case configure is actually a
  2253. # symlink; some systems play weird games with the mod time of symlinks
  2254. # (eg FreeBSD returns the mod time of the symlink's containing
  2255. # directory).
  2256. if (
  2257. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2258. if test "$*" = "X"; then
  2259. # -L didn't work.
  2260. set X `ls -t "$srcdir/configure" conftest.file`
  2261. fi
  2262. rm -f conftest.file
  2263. if test "$*" != "X $srcdir/configure conftest.file" \
  2264. && test "$*" != "X conftest.file $srcdir/configure"; then
  2265. # If neither matched, then we have a broken ls. This can happen
  2266. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2267. # broken ls alias from the environment. This has actually
  2268. # happened. Such a system could not be considered "sane".
  2269. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2270. alias in your environment" "$LINENO" 5
  2271. fi
  2272. test "$2" = conftest.file
  2273. )
  2274. then
  2275. # Ok.
  2276. :
  2277. else
  2278. as_fn_error $? "newly created file is older than distributed files!
  2279. Check your system clock" "$LINENO" 5
  2280. fi
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2282. $as_echo "yes" >&6; }
  2283. test "$program_prefix" != NONE &&
  2284. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2285. # Use a double $ so make ignores it.
  2286. test "$program_suffix" != NONE &&
  2287. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2288. # Double any \ or $.
  2289. # By default was `s,x,x', remove it if useless.
  2290. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2291. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2292. # expand $ac_aux_dir to an absolute path
  2293. am_aux_dir=`cd $ac_aux_dir && pwd`
  2294. if test x"${MISSING+set}" != xset; then
  2295. case $am_aux_dir in
  2296. *\ * | *\ *)
  2297. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2298. *)
  2299. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2300. esac
  2301. fi
  2302. # Use eval to expand $SHELL
  2303. if eval "$MISSING --run true"; then
  2304. am_missing_run="$MISSING --run "
  2305. else
  2306. am_missing_run=
  2307. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2308. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2309. fi
  2310. if test x"${install_sh}" != xset; then
  2311. case $am_aux_dir in
  2312. *\ * | *\ *)
  2313. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2314. *)
  2315. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2316. esac
  2317. fi
  2318. # Installed binaries are usually stripped using `strip' when the user
  2319. # run `make install-strip'. However `strip' might not be the right
  2320. # tool to use in cross-compilation environments, therefore Automake
  2321. # will honor the `STRIP' environment variable to overrule this program.
  2322. if test "$cross_compiling" != no; then
  2323. if test -n "$ac_tool_prefix"; then
  2324. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2325. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2327. $as_echo_n "checking for $ac_word... " >&6; }
  2328. if ${ac_cv_prog_STRIP+:} false; then :
  2329. $as_echo_n "(cached) " >&6
  2330. else
  2331. if test -n "$STRIP"; then
  2332. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2333. else
  2334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2335. for as_dir in $PATH
  2336. do
  2337. IFS=$as_save_IFS
  2338. test -z "$as_dir" && as_dir=.
  2339. for ac_exec_ext in '' $ac_executable_extensions; do
  2340. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2341. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2343. break 2
  2344. fi
  2345. done
  2346. done
  2347. IFS=$as_save_IFS
  2348. fi
  2349. fi
  2350. STRIP=$ac_cv_prog_STRIP
  2351. if test -n "$STRIP"; then
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2353. $as_echo "$STRIP" >&6; }
  2354. else
  2355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2356. $as_echo "no" >&6; }
  2357. fi
  2358. fi
  2359. if test -z "$ac_cv_prog_STRIP"; then
  2360. ac_ct_STRIP=$STRIP
  2361. # Extract the first word of "strip", so it can be a program name with args.
  2362. set dummy strip; ac_word=$2
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2364. $as_echo_n "checking for $ac_word... " >&6; }
  2365. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2366. $as_echo_n "(cached) " >&6
  2367. else
  2368. if test -n "$ac_ct_STRIP"; then
  2369. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2370. else
  2371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2372. for as_dir in $PATH
  2373. do
  2374. IFS=$as_save_IFS
  2375. test -z "$as_dir" && as_dir=.
  2376. for ac_exec_ext in '' $ac_executable_extensions; do
  2377. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2378. ac_cv_prog_ac_ct_STRIP="strip"
  2379. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2380. break 2
  2381. fi
  2382. done
  2383. done
  2384. IFS=$as_save_IFS
  2385. fi
  2386. fi
  2387. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2388. if test -n "$ac_ct_STRIP"; then
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2390. $as_echo "$ac_ct_STRIP" >&6; }
  2391. else
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2393. $as_echo "no" >&6; }
  2394. fi
  2395. if test "x$ac_ct_STRIP" = x; then
  2396. STRIP=":"
  2397. else
  2398. case $cross_compiling:$ac_tool_warned in
  2399. yes:)
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2401. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2402. ac_tool_warned=yes ;;
  2403. esac
  2404. STRIP=$ac_ct_STRIP
  2405. fi
  2406. else
  2407. STRIP="$ac_cv_prog_STRIP"
  2408. fi
  2409. fi
  2410. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2412. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2413. if test -z "$MKDIR_P"; then
  2414. if ${ac_cv_path_mkdir+:} false; then :
  2415. $as_echo_n "(cached) " >&6
  2416. else
  2417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2418. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2419. do
  2420. IFS=$as_save_IFS
  2421. test -z "$as_dir" && as_dir=.
  2422. for ac_prog in mkdir gmkdir; do
  2423. for ac_exec_ext in '' $ac_executable_extensions; do
  2424. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2425. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2426. 'mkdir (GNU coreutils) '* | \
  2427. 'mkdir (coreutils) '* | \
  2428. 'mkdir (fileutils) '4.1*)
  2429. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2430. break 3;;
  2431. esac
  2432. done
  2433. done
  2434. done
  2435. IFS=$as_save_IFS
  2436. fi
  2437. test -d ./--version && rmdir ./--version
  2438. if test "${ac_cv_path_mkdir+set}" = set; then
  2439. MKDIR_P="$ac_cv_path_mkdir -p"
  2440. else
  2441. # As a last resort, use the slow shell script. Don't cache a
  2442. # value for MKDIR_P within a source directory, because that will
  2443. # break other packages using the cache if that directory is
  2444. # removed, or if the value is a relative name.
  2445. MKDIR_P="$ac_install_sh -d"
  2446. fi
  2447. fi
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2449. $as_echo "$MKDIR_P" >&6; }
  2450. mkdir_p="$MKDIR_P"
  2451. case $mkdir_p in
  2452. [\\/$]* | ?:[\\/]*) ;;
  2453. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2454. esac
  2455. for ac_prog in gawk mawk nawk awk
  2456. do
  2457. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2458. set dummy $ac_prog; ac_word=$2
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2460. $as_echo_n "checking for $ac_word... " >&6; }
  2461. if ${ac_cv_prog_AWK+:} false; then :
  2462. $as_echo_n "(cached) " >&6
  2463. else
  2464. if test -n "$AWK"; then
  2465. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2466. else
  2467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2468. for as_dir in $PATH
  2469. do
  2470. IFS=$as_save_IFS
  2471. test -z "$as_dir" && as_dir=.
  2472. for ac_exec_ext in '' $ac_executable_extensions; do
  2473. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2474. ac_cv_prog_AWK="$ac_prog"
  2475. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2476. break 2
  2477. fi
  2478. done
  2479. done
  2480. IFS=$as_save_IFS
  2481. fi
  2482. fi
  2483. AWK=$ac_cv_prog_AWK
  2484. if test -n "$AWK"; then
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2486. $as_echo "$AWK" >&6; }
  2487. else
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2489. $as_echo "no" >&6; }
  2490. fi
  2491. test -n "$AWK" && break
  2492. done
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2494. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2495. set x ${MAKE-make}
  2496. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2497. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2498. $as_echo_n "(cached) " >&6
  2499. else
  2500. cat >conftest.make <<\_ACEOF
  2501. SHELL = /bin/sh
  2502. all:
  2503. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2504. _ACEOF
  2505. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2506. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2507. *@@@%%%=?*=@@@%%%*)
  2508. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2509. *)
  2510. eval ac_cv_prog_make_${ac_make}_set=no;;
  2511. esac
  2512. rm -f conftest.make
  2513. fi
  2514. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2516. $as_echo "yes" >&6; }
  2517. SET_MAKE=
  2518. else
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2520. $as_echo "no" >&6; }
  2521. SET_MAKE="MAKE=${MAKE-make}"
  2522. fi
  2523. rm -rf .tst 2>/dev/null
  2524. mkdir .tst 2>/dev/null
  2525. if test -d .tst; then
  2526. am__leading_dot=.
  2527. else
  2528. am__leading_dot=_
  2529. fi
  2530. rmdir .tst 2>/dev/null
  2531. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2532. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2533. # is not polluted with repeated "-I."
  2534. am__isrc=' -I$(srcdir)'
  2535. # test to see if srcdir already configured
  2536. if test -f $srcdir/config.status; then
  2537. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2538. fi
  2539. fi
  2540. # test whether we have cygpath
  2541. if test -z "$CYGPATH_W"; then
  2542. if (cygpath --version) >/dev/null 2>/dev/null; then
  2543. CYGPATH_W='cygpath -w'
  2544. else
  2545. CYGPATH_W=echo
  2546. fi
  2547. fi
  2548. # Define the identity of the package.
  2549. PACKAGE='libusb'
  2550. VERSION='1.0.16-rc10'
  2551. cat >>confdefs.h <<_ACEOF
  2552. @%:@define PACKAGE "$PACKAGE"
  2553. _ACEOF
  2554. cat >>confdefs.h <<_ACEOF
  2555. @%:@define VERSION "$VERSION"
  2556. _ACEOF
  2557. # Some tools Automake needs.
  2558. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2559. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2560. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2561. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2562. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2563. # We need awk for the "check" target. The system "awk" is bad on
  2564. # some platforms.
  2565. # Always define AMTAR for backward compatibility.
  2566. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2567. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2569. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2570. @%:@ Check whether --enable-maintainer-mode was given.
  2571. if test "${enable_maintainer_mode+set}" = set; then :
  2572. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2573. else
  2574. USE_MAINTAINER_MODE=no
  2575. fi
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2577. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2578. if test $USE_MAINTAINER_MODE = yes; then
  2579. MAINTAINER_MODE_TRUE=
  2580. MAINTAINER_MODE_FALSE='#'
  2581. else
  2582. MAINTAINER_MODE_TRUE='#'
  2583. MAINTAINER_MODE_FALSE=
  2584. fi
  2585. MAINT=$MAINTAINER_MODE_TRUE
  2586. ac_config_headers="$ac_config_headers config.h"
  2587. @%:@ Check whether --enable-silent-rules was given.
  2588. if test "${enable_silent_rules+set}" = set; then :
  2589. enableval=$enable_silent_rules;
  2590. fi
  2591. case $enable_silent_rules in
  2592. yes) AM_DEFAULT_VERBOSITY=0;;
  2593. no) AM_DEFAULT_VERBOSITY=1;;
  2594. *) AM_DEFAULT_VERBOSITY=0;;
  2595. esac
  2596. AM_BACKSLASH='\'
  2597. ac_ext=c
  2598. ac_cpp='$CPP $CPPFLAGS'
  2599. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2600. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2601. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2602. if test -n "$ac_tool_prefix"; then
  2603. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2604. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2606. $as_echo_n "checking for $ac_word... " >&6; }
  2607. if ${ac_cv_prog_CC+:} false; then :
  2608. $as_echo_n "(cached) " >&6
  2609. else
  2610. if test -n "$CC"; then
  2611. ac_cv_prog_CC="$CC" # Let the user override the test.
  2612. else
  2613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2614. for as_dir in $PATH
  2615. do
  2616. IFS=$as_save_IFS
  2617. test -z "$as_dir" && as_dir=.
  2618. for ac_exec_ext in '' $ac_executable_extensions; do
  2619. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2620. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2622. break 2
  2623. fi
  2624. done
  2625. done
  2626. IFS=$as_save_IFS
  2627. fi
  2628. fi
  2629. CC=$ac_cv_prog_CC
  2630. if test -n "$CC"; then
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2632. $as_echo "$CC" >&6; }
  2633. else
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2635. $as_echo "no" >&6; }
  2636. fi
  2637. fi
  2638. if test -z "$ac_cv_prog_CC"; then
  2639. ac_ct_CC=$CC
  2640. # Extract the first word of "gcc", so it can be a program name with args.
  2641. set dummy gcc; ac_word=$2
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2643. $as_echo_n "checking for $ac_word... " >&6; }
  2644. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2645. $as_echo_n "(cached) " >&6
  2646. else
  2647. if test -n "$ac_ct_CC"; then
  2648. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2649. else
  2650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2651. for as_dir in $PATH
  2652. do
  2653. IFS=$as_save_IFS
  2654. test -z "$as_dir" && as_dir=.
  2655. for ac_exec_ext in '' $ac_executable_extensions; do
  2656. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2657. ac_cv_prog_ac_ct_CC="gcc"
  2658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2659. break 2
  2660. fi
  2661. done
  2662. done
  2663. IFS=$as_save_IFS
  2664. fi
  2665. fi
  2666. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2667. if test -n "$ac_ct_CC"; then
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2669. $as_echo "$ac_ct_CC" >&6; }
  2670. else
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2672. $as_echo "no" >&6; }
  2673. fi
  2674. if test "x$ac_ct_CC" = x; then
  2675. CC=""
  2676. else
  2677. case $cross_compiling:$ac_tool_warned in
  2678. yes:)
  2679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2680. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2681. ac_tool_warned=yes ;;
  2682. esac
  2683. CC=$ac_ct_CC
  2684. fi
  2685. else
  2686. CC="$ac_cv_prog_CC"
  2687. fi
  2688. if test -z "$CC"; then
  2689. if test -n "$ac_tool_prefix"; then
  2690. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2691. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2693. $as_echo_n "checking for $ac_word... " >&6; }
  2694. if ${ac_cv_prog_CC+:} false; then :
  2695. $as_echo_n "(cached) " >&6
  2696. else
  2697. if test -n "$CC"; then
  2698. ac_cv_prog_CC="$CC" # Let the user override the test.
  2699. else
  2700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2701. for as_dir in $PATH
  2702. do
  2703. IFS=$as_save_IFS
  2704. test -z "$as_dir" && as_dir=.
  2705. for ac_exec_ext in '' $ac_executable_extensions; do
  2706. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2707. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2709. break 2
  2710. fi
  2711. done
  2712. done
  2713. IFS=$as_save_IFS
  2714. fi
  2715. fi
  2716. CC=$ac_cv_prog_CC
  2717. if test -n "$CC"; then
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2719. $as_echo "$CC" >&6; }
  2720. else
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2722. $as_echo "no" >&6; }
  2723. fi
  2724. fi
  2725. fi
  2726. if test -z "$CC"; then
  2727. # Extract the first word of "cc", so it can be a program name with args.
  2728. set dummy cc; ac_word=$2
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2730. $as_echo_n "checking for $ac_word... " >&6; }
  2731. if ${ac_cv_prog_CC+:} false; then :
  2732. $as_echo_n "(cached) " >&6
  2733. else
  2734. if test -n "$CC"; then
  2735. ac_cv_prog_CC="$CC" # Let the user override the test.
  2736. else
  2737. ac_prog_rejected=no
  2738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2739. for as_dir in $PATH
  2740. do
  2741. IFS=$as_save_IFS
  2742. test -z "$as_dir" && as_dir=.
  2743. for ac_exec_ext in '' $ac_executable_extensions; do
  2744. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2745. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2746. ac_prog_rejected=yes
  2747. continue
  2748. fi
  2749. ac_cv_prog_CC="cc"
  2750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2751. break 2
  2752. fi
  2753. done
  2754. done
  2755. IFS=$as_save_IFS
  2756. if test $ac_prog_rejected = yes; then
  2757. # We found a bogon in the path, so make sure we never use it.
  2758. set dummy $ac_cv_prog_CC
  2759. shift
  2760. if test $@%:@ != 0; then
  2761. # We chose a different compiler from the bogus one.
  2762. # However, it has the same basename, so the bogon will be chosen
  2763. # first if we set CC to just the basename; use the full file name.
  2764. shift
  2765. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2766. fi
  2767. fi
  2768. fi
  2769. fi
  2770. CC=$ac_cv_prog_CC
  2771. if test -n "$CC"; then
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2773. $as_echo "$CC" >&6; }
  2774. else
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2776. $as_echo "no" >&6; }
  2777. fi
  2778. fi
  2779. if test -z "$CC"; then
  2780. if test -n "$ac_tool_prefix"; then
  2781. for ac_prog in cl.exe
  2782. do
  2783. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2784. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2786. $as_echo_n "checking for $ac_word... " >&6; }
  2787. if ${ac_cv_prog_CC+:} false; then :
  2788. $as_echo_n "(cached) " >&6
  2789. else
  2790. if test -n "$CC"; then
  2791. ac_cv_prog_CC="$CC" # Let the user override the test.
  2792. else
  2793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2794. for as_dir in $PATH
  2795. do
  2796. IFS=$as_save_IFS
  2797. test -z "$as_dir" && as_dir=.
  2798. for ac_exec_ext in '' $ac_executable_extensions; do
  2799. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2800. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2801. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2802. break 2
  2803. fi
  2804. done
  2805. done
  2806. IFS=$as_save_IFS
  2807. fi
  2808. fi
  2809. CC=$ac_cv_prog_CC
  2810. if test -n "$CC"; then
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2812. $as_echo "$CC" >&6; }
  2813. else
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2815. $as_echo "no" >&6; }
  2816. fi
  2817. test -n "$CC" && break
  2818. done
  2819. fi
  2820. if test -z "$CC"; then
  2821. ac_ct_CC=$CC
  2822. for ac_prog in cl.exe
  2823. do
  2824. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2825. set dummy $ac_prog; ac_word=$2
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2827. $as_echo_n "checking for $ac_word... " >&6; }
  2828. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2829. $as_echo_n "(cached) " >&6
  2830. else
  2831. if test -n "$ac_ct_CC"; then
  2832. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2833. else
  2834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2835. for as_dir in $PATH
  2836. do
  2837. IFS=$as_save_IFS
  2838. test -z "$as_dir" && as_dir=.
  2839. for ac_exec_ext in '' $ac_executable_extensions; do
  2840. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2841. ac_cv_prog_ac_ct_CC="$ac_prog"
  2842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2843. break 2
  2844. fi
  2845. done
  2846. done
  2847. IFS=$as_save_IFS
  2848. fi
  2849. fi
  2850. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2851. if test -n "$ac_ct_CC"; then
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2853. $as_echo "$ac_ct_CC" >&6; }
  2854. else
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2856. $as_echo "no" >&6; }
  2857. fi
  2858. test -n "$ac_ct_CC" && break
  2859. done
  2860. if test "x$ac_ct_CC" = x; then
  2861. CC=""
  2862. else
  2863. case $cross_compiling:$ac_tool_warned in
  2864. yes:)
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2866. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2867. ac_tool_warned=yes ;;
  2868. esac
  2869. CC=$ac_ct_CC
  2870. fi
  2871. fi
  2872. fi
  2873. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2874. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2875. as_fn_error $? "no acceptable C compiler found in \$PATH
  2876. See \`config.log' for more details" "$LINENO" 5 ; }
  2877. # Provide some information about the compiler.
  2878. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2879. set X $ac_compile
  2880. ac_compiler=$2
  2881. for ac_option in --version -v -V -qversion; do
  2882. { { ac_try="$ac_compiler $ac_option >&5"
  2883. case "(($ac_try" in
  2884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2885. *) ac_try_echo=$ac_try;;
  2886. esac
  2887. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2888. $as_echo "$ac_try_echo"; } >&5
  2889. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2890. ac_status=$?
  2891. if test -s conftest.err; then
  2892. sed '10a\
  2893. ... rest of stderr output deleted ...
  2894. 10q' conftest.err >conftest.er1
  2895. cat conftest.er1 >&5
  2896. fi
  2897. rm -f conftest.er1 conftest.err
  2898. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2899. test $ac_status = 0; }
  2900. done
  2901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2902. /* end confdefs.h. */
  2903. int
  2904. main ()
  2905. {
  2906. ;
  2907. return 0;
  2908. }
  2909. _ACEOF
  2910. ac_clean_files_save=$ac_clean_files
  2911. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2912. # Try to create an executable without -o first, disregard a.out.
  2913. # It will help us diagnose broken compilers, and finding out an intuition
  2914. # of exeext.
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2916. $as_echo_n "checking whether the C compiler works... " >&6; }
  2917. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2918. # The possible output files:
  2919. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2920. ac_rmfiles=
  2921. for ac_file in $ac_files
  2922. do
  2923. case $ac_file in
  2924. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2925. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2926. esac
  2927. done
  2928. rm -f $ac_rmfiles
  2929. if { { ac_try="$ac_link_default"
  2930. case "(($ac_try" in
  2931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2932. *) ac_try_echo=$ac_try;;
  2933. esac
  2934. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2935. $as_echo "$ac_try_echo"; } >&5
  2936. (eval "$ac_link_default") 2>&5
  2937. ac_status=$?
  2938. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2939. test $ac_status = 0; }; then :
  2940. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2941. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2942. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2943. # so that the user can short-circuit this test for compilers unknown to
  2944. # Autoconf.
  2945. for ac_file in $ac_files ''
  2946. do
  2947. test -f "$ac_file" || continue
  2948. case $ac_file in
  2949. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2950. ;;
  2951. [ab].out )
  2952. # We found the default executable, but exeext='' is most
  2953. # certainly right.
  2954. break;;
  2955. *.* )
  2956. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2957. then :; else
  2958. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2959. fi
  2960. # We set ac_cv_exeext here because the later test for it is not
  2961. # safe: cross compilers may not add the suffix if given an `-o'
  2962. # argument, so we may need to know it at that point already.
  2963. # Even if this section looks crufty: it has the advantage of
  2964. # actually working.
  2965. break;;
  2966. * )
  2967. break;;
  2968. esac
  2969. done
  2970. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2971. else
  2972. ac_file=''
  2973. fi
  2974. if test -z "$ac_file"; then :
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2976. $as_echo "no" >&6; }
  2977. $as_echo "$as_me: failed program was:" >&5
  2978. sed 's/^/| /' conftest.$ac_ext >&5
  2979. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2980. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2981. as_fn_error 77 "C compiler cannot create executables
  2982. See \`config.log' for more details" "$LINENO" 5 ; }
  2983. else
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2985. $as_echo "yes" >&6; }
  2986. fi
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2988. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2990. $as_echo "$ac_file" >&6; }
  2991. ac_exeext=$ac_cv_exeext
  2992. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2993. ac_clean_files=$ac_clean_files_save
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2995. $as_echo_n "checking for suffix of executables... " >&6; }
  2996. if { { ac_try="$ac_link"
  2997. case "(($ac_try" in
  2998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2999. *) ac_try_echo=$ac_try;;
  3000. esac
  3001. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3002. $as_echo "$ac_try_echo"; } >&5
  3003. (eval "$ac_link") 2>&5
  3004. ac_status=$?
  3005. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3006. test $ac_status = 0; }; then :
  3007. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3008. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3009. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3010. # `rm'.
  3011. for ac_file in conftest.exe conftest conftest.*; do
  3012. test -f "$ac_file" || continue
  3013. case $ac_file in
  3014. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3015. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3016. break;;
  3017. * ) break;;
  3018. esac
  3019. done
  3020. else
  3021. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3022. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3023. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3024. See \`config.log' for more details" "$LINENO" 5 ; }
  3025. fi
  3026. rm -f conftest conftest$ac_cv_exeext
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3028. $as_echo "$ac_cv_exeext" >&6; }
  3029. rm -f conftest.$ac_ext
  3030. EXEEXT=$ac_cv_exeext
  3031. ac_exeext=$EXEEXT
  3032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3033. /* end confdefs.h. */
  3034. @%:@include <stdio.h>
  3035. int
  3036. main ()
  3037. {
  3038. FILE *f = fopen ("conftest.out", "w");
  3039. return ferror (f) || fclose (f) != 0;
  3040. ;
  3041. return 0;
  3042. }
  3043. _ACEOF
  3044. ac_clean_files="$ac_clean_files conftest.out"
  3045. # Check that the compiler produces executables we can run. If not, either
  3046. # the compiler is broken, or we cross compile.
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3048. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3049. if test "$cross_compiling" != yes; then
  3050. { { ac_try="$ac_link"
  3051. case "(($ac_try" in
  3052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3053. *) ac_try_echo=$ac_try;;
  3054. esac
  3055. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3056. $as_echo "$ac_try_echo"; } >&5
  3057. (eval "$ac_link") 2>&5
  3058. ac_status=$?
  3059. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3060. test $ac_status = 0; }
  3061. if { ac_try='./conftest$ac_cv_exeext'
  3062. { { case "(($ac_try" in
  3063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3064. *) ac_try_echo=$ac_try;;
  3065. esac
  3066. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3067. $as_echo "$ac_try_echo"; } >&5
  3068. (eval "$ac_try") 2>&5
  3069. ac_status=$?
  3070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3071. test $ac_status = 0; }; }; then
  3072. cross_compiling=no
  3073. else
  3074. if test "$cross_compiling" = maybe; then
  3075. cross_compiling=yes
  3076. else
  3077. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3078. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3079. as_fn_error $? "cannot run C compiled programs.
  3080. If you meant to cross compile, use \`--host'.
  3081. See \`config.log' for more details" "$LINENO" 5 ; }
  3082. fi
  3083. fi
  3084. fi
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3086. $as_echo "$cross_compiling" >&6; }
  3087. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3088. ac_clean_files=$ac_clean_files_save
  3089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3090. $as_echo_n "checking for suffix of object files... " >&6; }
  3091. if ${ac_cv_objext+:} false; then :
  3092. $as_echo_n "(cached) " >&6
  3093. else
  3094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3095. /* end confdefs.h. */
  3096. int
  3097. main ()
  3098. {
  3099. ;
  3100. return 0;
  3101. }
  3102. _ACEOF
  3103. rm -f conftest.o conftest.obj
  3104. if { { ac_try="$ac_compile"
  3105. case "(($ac_try" in
  3106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3107. *) ac_try_echo=$ac_try;;
  3108. esac
  3109. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3110. $as_echo "$ac_try_echo"; } >&5
  3111. (eval "$ac_compile") 2>&5
  3112. ac_status=$?
  3113. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3114. test $ac_status = 0; }; then :
  3115. for ac_file in conftest.o conftest.obj conftest.*; do
  3116. test -f "$ac_file" || continue;
  3117. case $ac_file in
  3118. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3119. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3120. break;;
  3121. esac
  3122. done
  3123. else
  3124. $as_echo "$as_me: failed program was:" >&5
  3125. sed 's/^/| /' conftest.$ac_ext >&5
  3126. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3127. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3128. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3129. See \`config.log' for more details" "$LINENO" 5 ; }
  3130. fi
  3131. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3132. fi
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3134. $as_echo "$ac_cv_objext" >&6; }
  3135. OBJEXT=$ac_cv_objext
  3136. ac_objext=$OBJEXT
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3138. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3139. if ${ac_cv_c_compiler_gnu+:} false; then :
  3140. $as_echo_n "(cached) " >&6
  3141. else
  3142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3143. /* end confdefs.h. */
  3144. int
  3145. main ()
  3146. {
  3147. #ifndef __GNUC__
  3148. choke me
  3149. #endif
  3150. ;
  3151. return 0;
  3152. }
  3153. _ACEOF
  3154. if ac_fn_c_try_compile "$LINENO"; then :
  3155. ac_compiler_gnu=yes
  3156. else
  3157. ac_compiler_gnu=no
  3158. fi
  3159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3160. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3161. fi
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3163. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3164. if test $ac_compiler_gnu = yes; then
  3165. GCC=yes
  3166. else
  3167. GCC=
  3168. fi
  3169. ac_test_CFLAGS=${CFLAGS+set}
  3170. ac_save_CFLAGS=$CFLAGS
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3172. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3173. if ${ac_cv_prog_cc_g+:} false; then :
  3174. $as_echo_n "(cached) " >&6
  3175. else
  3176. ac_save_c_werror_flag=$ac_c_werror_flag
  3177. ac_c_werror_flag=yes
  3178. ac_cv_prog_cc_g=no
  3179. CFLAGS="-g"
  3180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3181. /* end confdefs.h. */
  3182. int
  3183. main ()
  3184. {
  3185. ;
  3186. return 0;
  3187. }
  3188. _ACEOF
  3189. if ac_fn_c_try_compile "$LINENO"; then :
  3190. ac_cv_prog_cc_g=yes
  3191. else
  3192. CFLAGS=""
  3193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3194. /* end confdefs.h. */
  3195. int
  3196. main ()
  3197. {
  3198. ;
  3199. return 0;
  3200. }
  3201. _ACEOF
  3202. if ac_fn_c_try_compile "$LINENO"; then :
  3203. else
  3204. ac_c_werror_flag=$ac_save_c_werror_flag
  3205. CFLAGS="-g"
  3206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3207. /* end confdefs.h. */
  3208. int
  3209. main ()
  3210. {
  3211. ;
  3212. return 0;
  3213. }
  3214. _ACEOF
  3215. if ac_fn_c_try_compile "$LINENO"; then :
  3216. ac_cv_prog_cc_g=yes
  3217. fi
  3218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3219. fi
  3220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3221. fi
  3222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3223. ac_c_werror_flag=$ac_save_c_werror_flag
  3224. fi
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3226. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3227. if test "$ac_test_CFLAGS" = set; then
  3228. CFLAGS=$ac_save_CFLAGS
  3229. elif test $ac_cv_prog_cc_g = yes; then
  3230. if test "$GCC" = yes; then
  3231. CFLAGS="-g -O2"
  3232. else
  3233. CFLAGS="-g"
  3234. fi
  3235. else
  3236. if test "$GCC" = yes; then
  3237. CFLAGS="-O2"
  3238. else
  3239. CFLAGS=
  3240. fi
  3241. fi
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3243. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3244. if ${ac_cv_prog_cc_c89+:} false; then :
  3245. $as_echo_n "(cached) " >&6
  3246. else
  3247. ac_cv_prog_cc_c89=no
  3248. ac_save_CC=$CC
  3249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3250. /* end confdefs.h. */
  3251. #include <stdarg.h>
  3252. #include <stdio.h>
  3253. #include <sys/types.h>
  3254. #include <sys/stat.h>
  3255. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3256. struct buf { int x; };
  3257. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3258. static char *e (p, i)
  3259. char **p;
  3260. int i;
  3261. {
  3262. return p[i];
  3263. }
  3264. static char *f (char * (*g) (char **, int), char **p, ...)
  3265. {
  3266. char *s;
  3267. va_list v;
  3268. va_start (v,p);
  3269. s = g (p, va_arg (v,int));
  3270. va_end (v);
  3271. return s;
  3272. }
  3273. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3274. function prototypes and stuff, but not '\xHH' hex character constants.
  3275. These don't provoke an error unfortunately, instead are silently treated
  3276. as 'x'. The following induces an error, until -std is added to get
  3277. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3278. array size at least. It's necessary to write '\x00'==0 to get something
  3279. that's true only with -std. */
  3280. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3281. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3282. inside strings and character constants. */
  3283. #define FOO(x) 'x'
  3284. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3285. int test (int i, double x);
  3286. struct s1 {int (*f) (int a);};
  3287. struct s2 {int (*f) (double a);};
  3288. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3289. int argc;
  3290. char **argv;
  3291. int
  3292. main ()
  3293. {
  3294. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3295. ;
  3296. return 0;
  3297. }
  3298. _ACEOF
  3299. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3300. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3301. do
  3302. CC="$ac_save_CC $ac_arg"
  3303. if ac_fn_c_try_compile "$LINENO"; then :
  3304. ac_cv_prog_cc_c89=$ac_arg
  3305. fi
  3306. rm -f core conftest.err conftest.$ac_objext
  3307. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3308. done
  3309. rm -f conftest.$ac_ext
  3310. CC=$ac_save_CC
  3311. fi
  3312. # AC_CACHE_VAL
  3313. case "x$ac_cv_prog_cc_c89" in
  3314. x)
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3316. $as_echo "none needed" >&6; } ;;
  3317. xno)
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3319. $as_echo "unsupported" >&6; } ;;
  3320. *)
  3321. CC="$CC $ac_cv_prog_cc_c89"
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3323. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3324. esac
  3325. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3326. fi
  3327. ac_ext=c
  3328. ac_cpp='$CPP $CPPFLAGS'
  3329. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3330. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3331. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3332. DEPDIR="${am__leading_dot}deps"
  3333. ac_config_commands="$ac_config_commands depfiles"
  3334. am_make=${MAKE-make}
  3335. cat > confinc << 'END'
  3336. am__doit:
  3337. @echo this is the am__doit target
  3338. .PHONY: am__doit
  3339. END
  3340. # If we don't find an include directive, just comment out the code.
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3342. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3343. am__include="#"
  3344. am__quote=
  3345. _am_result=none
  3346. # First try GNU make style include.
  3347. echo "include confinc" > confmf
  3348. # Ignore all kinds of additional output from `make'.
  3349. case `$am_make -s -f confmf 2> /dev/null` in #(
  3350. *the\ am__doit\ target*)
  3351. am__include=include
  3352. am__quote=
  3353. _am_result=GNU
  3354. ;;
  3355. esac
  3356. # Now try BSD make style include.
  3357. if test "$am__include" = "#"; then
  3358. echo '.include "confinc"' > confmf
  3359. case `$am_make -s -f confmf 2> /dev/null` in #(
  3360. *the\ am__doit\ target*)
  3361. am__include=.include
  3362. am__quote="\""
  3363. _am_result=BSD
  3364. ;;
  3365. esac
  3366. fi
  3367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3368. $as_echo "$_am_result" >&6; }
  3369. rm -f confinc confmf
  3370. @%:@ Check whether --enable-dependency-tracking was given.
  3371. if test "${enable_dependency_tracking+set}" = set; then :
  3372. enableval=$enable_dependency_tracking;
  3373. fi
  3374. if test "x$enable_dependency_tracking" != xno; then
  3375. am_depcomp="$ac_aux_dir/depcomp"
  3376. AMDEPBACKSLASH='\'
  3377. fi
  3378. if test "x$enable_dependency_tracking" != xno; then
  3379. AMDEP_TRUE=
  3380. AMDEP_FALSE='#'
  3381. else
  3382. AMDEP_TRUE='#'
  3383. AMDEP_FALSE=
  3384. fi
  3385. depcc="$CC" am_compiler_list=
  3386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3387. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3388. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3389. $as_echo_n "(cached) " >&6
  3390. else
  3391. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3392. # We make a subdir and do the tests there. Otherwise we can end up
  3393. # making bogus files that we don't know about and never remove. For
  3394. # instance it was reported that on HP-UX the gcc test will end up
  3395. # making a dummy file named `D' -- because `-MD' means `put the output
  3396. # in D'.
  3397. mkdir conftest.dir
  3398. # Copy depcomp to subdir because otherwise we won't find it if we're
  3399. # using a relative directory.
  3400. cp "$am_depcomp" conftest.dir
  3401. cd conftest.dir
  3402. # We will build objects and dependencies in a subdirectory because
  3403. # it helps to detect inapplicable dependency modes. For instance
  3404. # both Tru64's cc and ICC support -MD to output dependencies as a
  3405. # side effect of compilation, but ICC will put the dependencies in
  3406. # the current directory while Tru64 will put them in the object
  3407. # directory.
  3408. mkdir sub
  3409. am_cv_CC_dependencies_compiler_type=none
  3410. if test "$am_compiler_list" = ""; then
  3411. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3412. fi
  3413. am__universal=false
  3414. case " $depcc " in #(
  3415. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3416. esac
  3417. for depmode in $am_compiler_list; do
  3418. # Setup a source with many dependencies, because some compilers
  3419. # like to wrap large dependency lists on column 80 (with \), and
  3420. # we should not choose a depcomp mode which is confused by this.
  3421. #
  3422. # We need to recreate these files for each test, as the compiler may
  3423. # overwrite some of them when testing with obscure command lines.
  3424. # This happens at least with the AIX C compiler.
  3425. : > sub/conftest.c
  3426. for i in 1 2 3 4 5 6; do
  3427. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3428. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3429. # Solaris 8's {/usr,}/bin/sh.
  3430. touch sub/conftst$i.h
  3431. done
  3432. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3433. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3434. # mode. It turns out that the SunPro C++ compiler does not properly
  3435. # handle `-M -o', and we need to detect this. Also, some Intel
  3436. # versions had trouble with output in subdirs
  3437. am__obj=sub/conftest.${OBJEXT-o}
  3438. am__minus_obj="-o $am__obj"
  3439. case $depmode in
  3440. gcc)
  3441. # This depmode causes a compiler race in universal mode.
  3442. test "$am__universal" = false || continue
  3443. ;;
  3444. nosideeffect)
  3445. # after this tag, mechanisms are not by side-effect, so they'll
  3446. # only be used when explicitly requested
  3447. if test "x$enable_dependency_tracking" = xyes; then
  3448. continue
  3449. else
  3450. break
  3451. fi
  3452. ;;
  3453. msvisualcpp | msvcmsys)
  3454. # This compiler won't grok `-c -o', but also, the minuso test has
  3455. # not run yet. These depmodes are late enough in the game, and
  3456. # so weak that their functioning should not be impacted.
  3457. am__obj=conftest.${OBJEXT-o}
  3458. am__minus_obj=
  3459. ;;
  3460. none) break ;;
  3461. esac
  3462. if depmode=$depmode \
  3463. source=sub/conftest.c object=$am__obj \
  3464. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3465. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3466. >/dev/null 2>conftest.err &&
  3467. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3468. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3469. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3470. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3471. # icc doesn't choke on unknown options, it will just issue warnings
  3472. # or remarks (even with -Werror). So we grep stderr for any message
  3473. # that says an option was ignored or not supported.
  3474. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3475. # icc: Command line warning: ignoring option '-M'; no argument required
  3476. # The diagnosis changed in icc 8.0:
  3477. # icc: Command line remark: option '-MP' not supported
  3478. if (grep 'ignoring option' conftest.err ||
  3479. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3480. am_cv_CC_dependencies_compiler_type=$depmode
  3481. break
  3482. fi
  3483. fi
  3484. done
  3485. cd ..
  3486. rm -rf conftest.dir
  3487. else
  3488. am_cv_CC_dependencies_compiler_type=none
  3489. fi
  3490. fi
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3492. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3493. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3494. if
  3495. test "x$enable_dependency_tracking" != xno \
  3496. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3497. am__fastdepCC_TRUE=
  3498. am__fastdepCC_FALSE='#'
  3499. else
  3500. am__fastdepCC_TRUE='#'
  3501. am__fastdepCC_FALSE=
  3502. fi
  3503. case `pwd` in
  3504. *\ * | *\ *)
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3506. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3507. esac
  3508. macro_version='2.4'
  3509. macro_revision='1.3294'
  3510. ltmain="$ac_aux_dir/ltmain.sh"
  3511. # Make sure we can run config.sub.
  3512. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3513. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3515. $as_echo_n "checking build system type... " >&6; }
  3516. if ${ac_cv_build+:} false; then :
  3517. $as_echo_n "(cached) " >&6
  3518. else
  3519. ac_build_alias=$build_alias
  3520. test "x$ac_build_alias" = x &&
  3521. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3522. test "x$ac_build_alias" = x &&
  3523. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3524. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3525. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3526. fi
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3528. $as_echo "$ac_cv_build" >&6; }
  3529. case $ac_cv_build in
  3530. *-*-*) ;;
  3531. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  3532. esac
  3533. build=$ac_cv_build
  3534. ac_save_IFS=$IFS; IFS='-'
  3535. set x $ac_cv_build
  3536. shift
  3537. build_cpu=$1
  3538. build_vendor=$2
  3539. shift; shift
  3540. # Remember, the first character of IFS is used to create $*,
  3541. # except with old shells:
  3542. build_os=$*
  3543. IFS=$ac_save_IFS
  3544. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3546. $as_echo_n "checking host system type... " >&6; }
  3547. if ${ac_cv_host+:} false; then :
  3548. $as_echo_n "(cached) " >&6
  3549. else
  3550. if test "x$host_alias" = x; then
  3551. ac_cv_host=$ac_cv_build
  3552. else
  3553. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3554. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3555. fi
  3556. fi
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3558. $as_echo "$ac_cv_host" >&6; }
  3559. case $ac_cv_host in
  3560. *-*-*) ;;
  3561. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  3562. esac
  3563. host=$ac_cv_host
  3564. ac_save_IFS=$IFS; IFS='-'
  3565. set x $ac_cv_host
  3566. shift
  3567. host_cpu=$1
  3568. host_vendor=$2
  3569. shift; shift
  3570. # Remember, the first character of IFS is used to create $*,
  3571. # except with old shells:
  3572. host_os=$*
  3573. IFS=$ac_save_IFS
  3574. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3575. # Backslashify metacharacters that are still active within
  3576. # double-quoted strings.
  3577. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3578. # Same as above, but do not quote variable references.
  3579. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3580. # Sed substitution to delay expansion of an escaped shell variable in a
  3581. # double_quote_subst'ed string.
  3582. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3583. # Sed substitution to delay expansion of an escaped single quote.
  3584. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3585. # Sed substitution to avoid accidental globbing in evaled expressions
  3586. no_glob_subst='s/\*/\\\*/g'
  3587. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3588. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3589. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3591. $as_echo_n "checking how to print strings... " >&6; }
  3592. # Test print first, because it will be a builtin if present.
  3593. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3594. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3595. ECHO='print -r --'
  3596. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3597. ECHO='printf %s\n'
  3598. else
  3599. # Use this function as a fallback that always works.
  3600. func_fallback_echo ()
  3601. {
  3602. eval 'cat <<_LTECHO_EOF
  3603. $1
  3604. _LTECHO_EOF'
  3605. }
  3606. ECHO='func_fallback_echo'
  3607. fi
  3608. # func_echo_all arg...
  3609. # Invoke $ECHO with all args, space-separated.
  3610. func_echo_all ()
  3611. {
  3612. $ECHO ""
  3613. }
  3614. case "$ECHO" in
  3615. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3616. $as_echo "printf" >&6; } ;;
  3617. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3618. $as_echo "print -r" >&6; } ;;
  3619. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3620. $as_echo "cat" >&6; } ;;
  3621. esac
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3623. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3624. if ${ac_cv_path_SED+:} false; then :
  3625. $as_echo_n "(cached) " >&6
  3626. else
  3627. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3628. for ac_i in 1 2 3 4 5 6 7; do
  3629. ac_script="$ac_script$as_nl$ac_script"
  3630. done
  3631. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3632. { ac_script=; unset ac_script;}
  3633. if test -z "$SED"; then
  3634. ac_path_SED_found=false
  3635. # Loop through the user's path and test for each of PROGNAME-LIST
  3636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3637. for as_dir in $PATH
  3638. do
  3639. IFS=$as_save_IFS
  3640. test -z "$as_dir" && as_dir=.
  3641. for ac_prog in sed gsed; do
  3642. for ac_exec_ext in '' $ac_executable_extensions; do
  3643. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3644. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3645. # Check for GNU ac_path_SED and select it if it is found.
  3646. # Check for GNU $ac_path_SED
  3647. case `"$ac_path_SED" --version 2>&1` in
  3648. *GNU*)
  3649. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3650. *)
  3651. ac_count=0
  3652. $as_echo_n 0123456789 >"conftest.in"
  3653. while :
  3654. do
  3655. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3656. mv "conftest.tmp" "conftest.in"
  3657. cp "conftest.in" "conftest.nl"
  3658. $as_echo '' >> "conftest.nl"
  3659. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3660. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3661. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3662. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3663. # Best one so far, save it but keep looking for a better one
  3664. ac_cv_path_SED="$ac_path_SED"
  3665. ac_path_SED_max=$ac_count
  3666. fi
  3667. # 10*(2^10) chars as input seems more than enough
  3668. test $ac_count -gt 10 && break
  3669. done
  3670. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3671. esac
  3672. $ac_path_SED_found && break 3
  3673. done
  3674. done
  3675. done
  3676. IFS=$as_save_IFS
  3677. if test -z "$ac_cv_path_SED"; then
  3678. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3679. fi
  3680. else
  3681. ac_cv_path_SED=$SED
  3682. fi
  3683. fi
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3685. $as_echo "$ac_cv_path_SED" >&6; }
  3686. SED="$ac_cv_path_SED"
  3687. rm -f conftest.sed
  3688. test -z "$SED" && SED=sed
  3689. Xsed="$SED -e 1s/^X//"
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3691. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3692. if ${ac_cv_path_GREP+:} false; then :
  3693. $as_echo_n "(cached) " >&6
  3694. else
  3695. if test -z "$GREP"; then
  3696. ac_path_GREP_found=false
  3697. # Loop through the user's path and test for each of PROGNAME-LIST
  3698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3699. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3700. do
  3701. IFS=$as_save_IFS
  3702. test -z "$as_dir" && as_dir=.
  3703. for ac_prog in grep ggrep; do
  3704. for ac_exec_ext in '' $ac_executable_extensions; do
  3705. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3706. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3707. # Check for GNU ac_path_GREP and select it if it is found.
  3708. # Check for GNU $ac_path_GREP
  3709. case `"$ac_path_GREP" --version 2>&1` in
  3710. *GNU*)
  3711. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3712. *)
  3713. ac_count=0
  3714. $as_echo_n 0123456789 >"conftest.in"
  3715. while :
  3716. do
  3717. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3718. mv "conftest.tmp" "conftest.in"
  3719. cp "conftest.in" "conftest.nl"
  3720. $as_echo 'GREP' >> "conftest.nl"
  3721. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3722. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3723. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3724. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3725. # Best one so far, save it but keep looking for a better one
  3726. ac_cv_path_GREP="$ac_path_GREP"
  3727. ac_path_GREP_max=$ac_count
  3728. fi
  3729. # 10*(2^10) chars as input seems more than enough
  3730. test $ac_count -gt 10 && break
  3731. done
  3732. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3733. esac
  3734. $ac_path_GREP_found && break 3
  3735. done
  3736. done
  3737. done
  3738. IFS=$as_save_IFS
  3739. if test -z "$ac_cv_path_GREP"; then
  3740. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3741. fi
  3742. else
  3743. ac_cv_path_GREP=$GREP
  3744. fi
  3745. fi
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3747. $as_echo "$ac_cv_path_GREP" >&6; }
  3748. GREP="$ac_cv_path_GREP"
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3750. $as_echo_n "checking for egrep... " >&6; }
  3751. if ${ac_cv_path_EGREP+:} false; then :
  3752. $as_echo_n "(cached) " >&6
  3753. else
  3754. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3755. then ac_cv_path_EGREP="$GREP -E"
  3756. else
  3757. if test -z "$EGREP"; then
  3758. ac_path_EGREP_found=false
  3759. # Loop through the user's path and test for each of PROGNAME-LIST
  3760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3761. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3762. do
  3763. IFS=$as_save_IFS
  3764. test -z "$as_dir" && as_dir=.
  3765. for ac_prog in egrep; do
  3766. for ac_exec_ext in '' $ac_executable_extensions; do
  3767. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3768. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3769. # Check for GNU ac_path_EGREP and select it if it is found.
  3770. # Check for GNU $ac_path_EGREP
  3771. case `"$ac_path_EGREP" --version 2>&1` in
  3772. *GNU*)
  3773. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3774. *)
  3775. ac_count=0
  3776. $as_echo_n 0123456789 >"conftest.in"
  3777. while :
  3778. do
  3779. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3780. mv "conftest.tmp" "conftest.in"
  3781. cp "conftest.in" "conftest.nl"
  3782. $as_echo 'EGREP' >> "conftest.nl"
  3783. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3784. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3785. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3786. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3787. # Best one so far, save it but keep looking for a better one
  3788. ac_cv_path_EGREP="$ac_path_EGREP"
  3789. ac_path_EGREP_max=$ac_count
  3790. fi
  3791. # 10*(2^10) chars as input seems more than enough
  3792. test $ac_count -gt 10 && break
  3793. done
  3794. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3795. esac
  3796. $ac_path_EGREP_found && break 3
  3797. done
  3798. done
  3799. done
  3800. IFS=$as_save_IFS
  3801. if test -z "$ac_cv_path_EGREP"; then
  3802. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3803. fi
  3804. else
  3805. ac_cv_path_EGREP=$EGREP
  3806. fi
  3807. fi
  3808. fi
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3810. $as_echo "$ac_cv_path_EGREP" >&6; }
  3811. EGREP="$ac_cv_path_EGREP"
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3813. $as_echo_n "checking for fgrep... " >&6; }
  3814. if ${ac_cv_path_FGREP+:} false; then :
  3815. $as_echo_n "(cached) " >&6
  3816. else
  3817. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3818. then ac_cv_path_FGREP="$GREP -F"
  3819. else
  3820. if test -z "$FGREP"; then
  3821. ac_path_FGREP_found=false
  3822. # Loop through the user's path and test for each of PROGNAME-LIST
  3823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3824. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3825. do
  3826. IFS=$as_save_IFS
  3827. test -z "$as_dir" && as_dir=.
  3828. for ac_prog in fgrep; do
  3829. for ac_exec_ext in '' $ac_executable_extensions; do
  3830. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3831. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3832. # Check for GNU ac_path_FGREP and select it if it is found.
  3833. # Check for GNU $ac_path_FGREP
  3834. case `"$ac_path_FGREP" --version 2>&1` in
  3835. *GNU*)
  3836. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3837. *)
  3838. ac_count=0
  3839. $as_echo_n 0123456789 >"conftest.in"
  3840. while :
  3841. do
  3842. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3843. mv "conftest.tmp" "conftest.in"
  3844. cp "conftest.in" "conftest.nl"
  3845. $as_echo 'FGREP' >> "conftest.nl"
  3846. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3847. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3848. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3849. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3850. # Best one so far, save it but keep looking for a better one
  3851. ac_cv_path_FGREP="$ac_path_FGREP"
  3852. ac_path_FGREP_max=$ac_count
  3853. fi
  3854. # 10*(2^10) chars as input seems more than enough
  3855. test $ac_count -gt 10 && break
  3856. done
  3857. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3858. esac
  3859. $ac_path_FGREP_found && break 3
  3860. done
  3861. done
  3862. done
  3863. IFS=$as_save_IFS
  3864. if test -z "$ac_cv_path_FGREP"; then
  3865. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3866. fi
  3867. else
  3868. ac_cv_path_FGREP=$FGREP
  3869. fi
  3870. fi
  3871. fi
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3873. $as_echo "$ac_cv_path_FGREP" >&6; }
  3874. FGREP="$ac_cv_path_FGREP"
  3875. test -z "$GREP" && GREP=grep
  3876. @%:@ Check whether --with-gnu-ld was given.
  3877. if test "${with_gnu_ld+set}" = set; then :
  3878. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3879. else
  3880. with_gnu_ld=no
  3881. fi
  3882. ac_prog=ld
  3883. if test "$GCC" = yes; then
  3884. # Check if gcc -print-prog-name=ld gives a path.
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3886. $as_echo_n "checking for ld used by $CC... " >&6; }
  3887. case $host in
  3888. *-*-mingw*)
  3889. # gcc leaves a trailing carriage return which upsets mingw
  3890. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3891. *)
  3892. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3893. esac
  3894. case $ac_prog in
  3895. # Accept absolute paths.
  3896. [\\/]* | ?:[\\/]*)
  3897. re_direlt='/[^/][^/]*/\.\./'
  3898. # Canonicalize the pathname of ld
  3899. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3900. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3901. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3902. done
  3903. test -z "$LD" && LD="$ac_prog"
  3904. ;;
  3905. "")
  3906. # If it fails, then pretend we aren't using GCC.
  3907. ac_prog=ld
  3908. ;;
  3909. *)
  3910. # If it is relative, then search for the first ld in PATH.
  3911. with_gnu_ld=unknown
  3912. ;;
  3913. esac
  3914. elif test "$with_gnu_ld" = yes; then
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3916. $as_echo_n "checking for GNU ld... " >&6; }
  3917. else
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3919. $as_echo_n "checking for non-GNU ld... " >&6; }
  3920. fi
  3921. if ${lt_cv_path_LD+:} false; then :
  3922. $as_echo_n "(cached) " >&6
  3923. else
  3924. if test -z "$LD"; then
  3925. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3926. for ac_dir in $PATH; do
  3927. IFS="$lt_save_ifs"
  3928. test -z "$ac_dir" && ac_dir=.
  3929. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3930. lt_cv_path_LD="$ac_dir/$ac_prog"
  3931. # Check to see if the program is GNU ld. I'd rather use --version,
  3932. # but apparently some variants of GNU ld only accept -v.
  3933. # Break only if it was the GNU/non-GNU ld that we prefer.
  3934. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3935. *GNU* | *'with BFD'*)
  3936. test "$with_gnu_ld" != no && break
  3937. ;;
  3938. *)
  3939. test "$with_gnu_ld" != yes && break
  3940. ;;
  3941. esac
  3942. fi
  3943. done
  3944. IFS="$lt_save_ifs"
  3945. else
  3946. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3947. fi
  3948. fi
  3949. LD="$lt_cv_path_LD"
  3950. if test -n "$LD"; then
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3952. $as_echo "$LD" >&6; }
  3953. else
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3955. $as_echo "no" >&6; }
  3956. fi
  3957. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3959. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3960. if ${lt_cv_prog_gnu_ld+:} false; then :
  3961. $as_echo_n "(cached) " >&6
  3962. else
  3963. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3964. case `$LD -v 2>&1 </dev/null` in
  3965. *GNU* | *'with BFD'*)
  3966. lt_cv_prog_gnu_ld=yes
  3967. ;;
  3968. *)
  3969. lt_cv_prog_gnu_ld=no
  3970. ;;
  3971. esac
  3972. fi
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3974. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3975. with_gnu_ld=$lt_cv_prog_gnu_ld
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3977. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3978. if ${lt_cv_path_NM+:} false; then :
  3979. $as_echo_n "(cached) " >&6
  3980. else
  3981. if test -n "$NM"; then
  3982. # Let the user override the test.
  3983. lt_cv_path_NM="$NM"
  3984. else
  3985. lt_nm_to_check="${ac_tool_prefix}nm"
  3986. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3987. lt_nm_to_check="$lt_nm_to_check nm"
  3988. fi
  3989. for lt_tmp_nm in $lt_nm_to_check; do
  3990. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3991. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3992. IFS="$lt_save_ifs"
  3993. test -z "$ac_dir" && ac_dir=.
  3994. tmp_nm="$ac_dir/$lt_tmp_nm"
  3995. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3996. # Check to see if the nm accepts a BSD-compat flag.
  3997. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3998. # nm: unknown option "B" ignored
  3999. # Tru64's nm complains that /dev/null is an invalid object file
  4000. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4001. */dev/null* | *'Invalid file or object type'*)
  4002. lt_cv_path_NM="$tmp_nm -B"
  4003. break
  4004. ;;
  4005. *)
  4006. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4007. */dev/null*)
  4008. lt_cv_path_NM="$tmp_nm -p"
  4009. break
  4010. ;;
  4011. *)
  4012. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4013. continue # so that we can try to find one that supports BSD flags
  4014. ;;
  4015. esac
  4016. ;;
  4017. esac
  4018. fi
  4019. done
  4020. IFS="$lt_save_ifs"
  4021. done
  4022. : ${lt_cv_path_NM=no}
  4023. fi
  4024. fi
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4026. $as_echo "$lt_cv_path_NM" >&6; }
  4027. if test "$lt_cv_path_NM" != "no"; then
  4028. NM="$lt_cv_path_NM"
  4029. else
  4030. # Didn't find any BSD compatible name lister, look for dumpbin.
  4031. if test -n "$DUMPBIN"; then :
  4032. # Let the user override the test.
  4033. else
  4034. if test -n "$ac_tool_prefix"; then
  4035. for ac_prog in dumpbin "link -dump"
  4036. do
  4037. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4038. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4040. $as_echo_n "checking for $ac_word... " >&6; }
  4041. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4042. $as_echo_n "(cached) " >&6
  4043. else
  4044. if test -n "$DUMPBIN"; then
  4045. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4046. else
  4047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4048. for as_dir in $PATH
  4049. do
  4050. IFS=$as_save_IFS
  4051. test -z "$as_dir" && as_dir=.
  4052. for ac_exec_ext in '' $ac_executable_extensions; do
  4053. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4054. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4056. break 2
  4057. fi
  4058. done
  4059. done
  4060. IFS=$as_save_IFS
  4061. fi
  4062. fi
  4063. DUMPBIN=$ac_cv_prog_DUMPBIN
  4064. if test -n "$DUMPBIN"; then
  4065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4066. $as_echo "$DUMPBIN" >&6; }
  4067. else
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4069. $as_echo "no" >&6; }
  4070. fi
  4071. test -n "$DUMPBIN" && break
  4072. done
  4073. fi
  4074. if test -z "$DUMPBIN"; then
  4075. ac_ct_DUMPBIN=$DUMPBIN
  4076. for ac_prog in dumpbin "link -dump"
  4077. do
  4078. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4079. set dummy $ac_prog; ac_word=$2
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4081. $as_echo_n "checking for $ac_word... " >&6; }
  4082. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4083. $as_echo_n "(cached) " >&6
  4084. else
  4085. if test -n "$ac_ct_DUMPBIN"; then
  4086. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4087. else
  4088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4089. for as_dir in $PATH
  4090. do
  4091. IFS=$as_save_IFS
  4092. test -z "$as_dir" && as_dir=.
  4093. for ac_exec_ext in '' $ac_executable_extensions; do
  4094. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4095. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4096. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4097. break 2
  4098. fi
  4099. done
  4100. done
  4101. IFS=$as_save_IFS
  4102. fi
  4103. fi
  4104. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4105. if test -n "$ac_ct_DUMPBIN"; then
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4107. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4108. else
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4110. $as_echo "no" >&6; }
  4111. fi
  4112. test -n "$ac_ct_DUMPBIN" && break
  4113. done
  4114. if test "x$ac_ct_DUMPBIN" = x; then
  4115. DUMPBIN=":"
  4116. else
  4117. case $cross_compiling:$ac_tool_warned in
  4118. yes:)
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4120. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4121. ac_tool_warned=yes ;;
  4122. esac
  4123. DUMPBIN=$ac_ct_DUMPBIN
  4124. fi
  4125. fi
  4126. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4127. *COFF*)
  4128. DUMPBIN="$DUMPBIN -symbols"
  4129. ;;
  4130. *)
  4131. DUMPBIN=:
  4132. ;;
  4133. esac
  4134. fi
  4135. if test "$DUMPBIN" != ":"; then
  4136. NM="$DUMPBIN"
  4137. fi
  4138. fi
  4139. test -z "$NM" && NM=nm
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4141. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4142. if ${lt_cv_nm_interface+:} false; then :
  4143. $as_echo_n "(cached) " >&6
  4144. else
  4145. lt_cv_nm_interface="BSD nm"
  4146. echo "int some_variable = 0;" > conftest.$ac_ext
  4147. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4148. (eval "$ac_compile" 2>conftest.err)
  4149. cat conftest.err >&5
  4150. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4151. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4152. cat conftest.err >&5
  4153. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4154. cat conftest.out >&5
  4155. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4156. lt_cv_nm_interface="MS dumpbin"
  4157. fi
  4158. rm -f conftest*
  4159. fi
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4161. $as_echo "$lt_cv_nm_interface" >&6; }
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4163. $as_echo_n "checking whether ln -s works... " >&6; }
  4164. LN_S=$as_ln_s
  4165. if test "$LN_S" = "ln -s"; then
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4167. $as_echo "yes" >&6; }
  4168. else
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4170. $as_echo "no, using $LN_S" >&6; }
  4171. fi
  4172. # find the maximum length of command line arguments
  4173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4174. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4175. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4176. $as_echo_n "(cached) " >&6
  4177. else
  4178. i=0
  4179. teststring="ABCD"
  4180. case $build_os in
  4181. msdosdjgpp*)
  4182. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4183. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4184. # during glob expansion). Even if it were fixed, the result of this
  4185. # check would be larger than it should be.
  4186. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4187. ;;
  4188. gnu*)
  4189. # Under GNU Hurd, this test is not required because there is
  4190. # no limit to the length of command line arguments.
  4191. # Libtool will interpret -1 as no limit whatsoever
  4192. lt_cv_sys_max_cmd_len=-1;
  4193. ;;
  4194. cygwin* | mingw* | cegcc*)
  4195. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4196. # about 5 minutes as the teststring grows exponentially.
  4197. # Worse, since 9x/ME are not pre-emptively multitasking,
  4198. # you end up with a "frozen" computer, even though with patience
  4199. # the test eventually succeeds (with a max line length of 256k).
  4200. # Instead, let's just punt: use the minimum linelength reported by
  4201. # all of the supported platforms: 8192 (on NT/2K/XP).
  4202. lt_cv_sys_max_cmd_len=8192;
  4203. ;;
  4204. mint*)
  4205. # On MiNT this can take a long time and run out of memory.
  4206. lt_cv_sys_max_cmd_len=8192;
  4207. ;;
  4208. amigaos*)
  4209. # On AmigaOS with pdksh, this test takes hours, literally.
  4210. # So we just punt and use a minimum line length of 8192.
  4211. lt_cv_sys_max_cmd_len=8192;
  4212. ;;
  4213. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4214. # This has been around since 386BSD, at least. Likely further.
  4215. if test -x /sbin/sysctl; then
  4216. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4217. elif test -x /usr/sbin/sysctl; then
  4218. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4219. else
  4220. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4221. fi
  4222. # And add a safety zone
  4223. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4224. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4225. ;;
  4226. interix*)
  4227. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4228. lt_cv_sys_max_cmd_len=196608
  4229. ;;
  4230. osf*)
  4231. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4232. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4233. # nice to cause kernel panics so lets avoid the loop below.
  4234. # First set a reasonable default.
  4235. lt_cv_sys_max_cmd_len=16384
  4236. #
  4237. if test -x /sbin/sysconfig; then
  4238. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4239. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4240. esac
  4241. fi
  4242. ;;
  4243. sco3.2v5*)
  4244. lt_cv_sys_max_cmd_len=102400
  4245. ;;
  4246. sysv5* | sco5v6* | sysv4.2uw2*)
  4247. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4248. if test -n "$kargmax"; then
  4249. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4250. else
  4251. lt_cv_sys_max_cmd_len=32768
  4252. fi
  4253. ;;
  4254. *)
  4255. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4256. if test -n "$lt_cv_sys_max_cmd_len"; then
  4257. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4258. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4259. else
  4260. # Make teststring a little bigger before we do anything with it.
  4261. # a 1K string should be a reasonable start.
  4262. for i in 1 2 3 4 5 6 7 8 ; do
  4263. teststring=$teststring$teststring
  4264. done
  4265. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4266. # If test is not a shell built-in, we'll probably end up computing a
  4267. # maximum length that is only half of the actual maximum length, but
  4268. # we can't tell.
  4269. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4270. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4271. test $i != 17 # 1/2 MB should be enough
  4272. do
  4273. i=`expr $i + 1`
  4274. teststring=$teststring$teststring
  4275. done
  4276. # Only check the string length outside the loop.
  4277. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4278. teststring=
  4279. # Add a significant safety factor because C++ compilers can tack on
  4280. # massive amounts of additional arguments before passing them to the
  4281. # linker. It appears as though 1/2 is a usable value.
  4282. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4283. fi
  4284. ;;
  4285. esac
  4286. fi
  4287. if test -n $lt_cv_sys_max_cmd_len ; then
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4289. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4290. else
  4291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4292. $as_echo "none" >&6; }
  4293. fi
  4294. max_cmd_len=$lt_cv_sys_max_cmd_len
  4295. : ${CP="cp -f"}
  4296. : ${MV="mv -f"}
  4297. : ${RM="rm -f"}
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4299. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4300. # Try some XSI features
  4301. xsi_shell=no
  4302. ( _lt_dummy="a/b/c"
  4303. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4304. = c,a/b,b/c, \
  4305. && eval 'test $(( 1 + 1 )) -eq 2 \
  4306. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4307. && xsi_shell=yes
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4309. $as_echo "$xsi_shell" >&6; }
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4311. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4312. lt_shell_append=no
  4313. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4314. >/dev/null 2>&1 \
  4315. && lt_shell_append=yes
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4317. $as_echo "$lt_shell_append" >&6; }
  4318. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4319. lt_unset=unset
  4320. else
  4321. lt_unset=false
  4322. fi
  4323. # test EBCDIC or ASCII
  4324. case `echo X|tr X '\101'` in
  4325. A) # ASCII based system
  4326. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4327. lt_SP2NL='tr \040 \012'
  4328. lt_NL2SP='tr \015\012 \040\040'
  4329. ;;
  4330. *) # EBCDIC based system
  4331. lt_SP2NL='tr \100 \n'
  4332. lt_NL2SP='tr \r\n \100\100'
  4333. ;;
  4334. esac
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4336. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4337. if ${lt_cv_to_host_file_cmd+:} false; then :
  4338. $as_echo_n "(cached) " >&6
  4339. else
  4340. case $host in
  4341. *-*-mingw* )
  4342. case $build in
  4343. *-*-mingw* ) # actually msys
  4344. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4345. ;;
  4346. *-*-cygwin* )
  4347. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4348. ;;
  4349. * ) # otherwise, assume *nix
  4350. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4351. ;;
  4352. esac
  4353. ;;
  4354. *-*-cygwin* )
  4355. case $build in
  4356. *-*-mingw* ) # actually msys
  4357. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4358. ;;
  4359. *-*-cygwin* )
  4360. lt_cv_to_host_file_cmd=func_convert_file_noop
  4361. ;;
  4362. * ) # otherwise, assume *nix
  4363. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4364. ;;
  4365. esac
  4366. ;;
  4367. * ) # unhandled hosts (and "normal" native builds)
  4368. lt_cv_to_host_file_cmd=func_convert_file_noop
  4369. ;;
  4370. esac
  4371. fi
  4372. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4374. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4376. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4377. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4378. $as_echo_n "(cached) " >&6
  4379. else
  4380. #assume ordinary cross tools, or native build.
  4381. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4382. case $host in
  4383. *-*-mingw* )
  4384. case $build in
  4385. *-*-mingw* ) # actually msys
  4386. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4387. ;;
  4388. esac
  4389. ;;
  4390. esac
  4391. fi
  4392. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4394. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4396. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4397. if ${lt_cv_ld_reload_flag+:} false; then :
  4398. $as_echo_n "(cached) " >&6
  4399. else
  4400. lt_cv_ld_reload_flag='-r'
  4401. fi
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4403. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4404. reload_flag=$lt_cv_ld_reload_flag
  4405. case $reload_flag in
  4406. "" | " "*) ;;
  4407. *) reload_flag=" $reload_flag" ;;
  4408. esac
  4409. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4410. case $host_os in
  4411. cygwin* | mingw* | pw32* | cegcc*)
  4412. if test "$GCC" != yes; then
  4413. reload_cmds=false
  4414. fi
  4415. ;;
  4416. darwin*)
  4417. if test "$GCC" = yes; then
  4418. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4419. else
  4420. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4421. fi
  4422. ;;
  4423. esac
  4424. if test -n "$ac_tool_prefix"; then
  4425. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4426. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4428. $as_echo_n "checking for $ac_word... " >&6; }
  4429. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4430. $as_echo_n "(cached) " >&6
  4431. else
  4432. if test -n "$OBJDUMP"; then
  4433. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4434. else
  4435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4436. for as_dir in $PATH
  4437. do
  4438. IFS=$as_save_IFS
  4439. test -z "$as_dir" && as_dir=.
  4440. for ac_exec_ext in '' $ac_executable_extensions; do
  4441. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4442. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4444. break 2
  4445. fi
  4446. done
  4447. done
  4448. IFS=$as_save_IFS
  4449. fi
  4450. fi
  4451. OBJDUMP=$ac_cv_prog_OBJDUMP
  4452. if test -n "$OBJDUMP"; then
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4454. $as_echo "$OBJDUMP" >&6; }
  4455. else
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4457. $as_echo "no" >&6; }
  4458. fi
  4459. fi
  4460. if test -z "$ac_cv_prog_OBJDUMP"; then
  4461. ac_ct_OBJDUMP=$OBJDUMP
  4462. # Extract the first word of "objdump", so it can be a program name with args.
  4463. set dummy objdump; ac_word=$2
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4465. $as_echo_n "checking for $ac_word... " >&6; }
  4466. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4467. $as_echo_n "(cached) " >&6
  4468. else
  4469. if test -n "$ac_ct_OBJDUMP"; then
  4470. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4471. else
  4472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4473. for as_dir in $PATH
  4474. do
  4475. IFS=$as_save_IFS
  4476. test -z "$as_dir" && as_dir=.
  4477. for ac_exec_ext in '' $ac_executable_extensions; do
  4478. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4479. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4481. break 2
  4482. fi
  4483. done
  4484. done
  4485. IFS=$as_save_IFS
  4486. fi
  4487. fi
  4488. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4489. if test -n "$ac_ct_OBJDUMP"; then
  4490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4491. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4492. else
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4494. $as_echo "no" >&6; }
  4495. fi
  4496. if test "x$ac_ct_OBJDUMP" = x; then
  4497. OBJDUMP="false"
  4498. else
  4499. case $cross_compiling:$ac_tool_warned in
  4500. yes:)
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4502. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4503. ac_tool_warned=yes ;;
  4504. esac
  4505. OBJDUMP=$ac_ct_OBJDUMP
  4506. fi
  4507. else
  4508. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4509. fi
  4510. test -z "$OBJDUMP" && OBJDUMP=objdump
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4512. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4513. if ${lt_cv_deplibs_check_method+:} false; then :
  4514. $as_echo_n "(cached) " >&6
  4515. else
  4516. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4517. lt_cv_file_magic_test_file=
  4518. lt_cv_deplibs_check_method='unknown'
  4519. # Need to set the preceding variable on all platforms that support
  4520. # interlibrary dependencies.
  4521. # 'none' -- dependencies not supported.
  4522. # `unknown' -- same as none, but documents that we really don't know.
  4523. # 'pass_all' -- all dependencies passed with no checks.
  4524. # 'test_compile' -- check by making test program.
  4525. # 'file_magic [[regex]]' -- check by looking for files in library path
  4526. # which responds to the $file_magic_cmd with a given extended regex.
  4527. # If you have `file' or equivalent on your system and you're not sure
  4528. # whether `pass_all' will *always* work, you probably want this one.
  4529. case $host_os in
  4530. aix[4-9]*)
  4531. lt_cv_deplibs_check_method=pass_all
  4532. ;;
  4533. beos*)
  4534. lt_cv_deplibs_check_method=pass_all
  4535. ;;
  4536. bsdi[45]*)
  4537. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4538. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4539. lt_cv_file_magic_test_file=/shlib/libc.so
  4540. ;;
  4541. cygwin*)
  4542. # func_win32_libid is a shell function defined in ltmain.sh
  4543. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4544. lt_cv_file_magic_cmd='func_win32_libid'
  4545. ;;
  4546. mingw* | pw32*)
  4547. # Base MSYS/MinGW do not provide the 'file' command needed by
  4548. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4549. # unless we find 'file', for example because we are cross-compiling.
  4550. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4551. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4552. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4553. lt_cv_file_magic_cmd='func_win32_libid'
  4554. else
  4555. # Keep this pattern in sync with the one in func_win32_libid.
  4556. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4557. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4558. fi
  4559. ;;
  4560. cegcc*)
  4561. # use the weaker test based on 'objdump'. See mingw*.
  4562. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4563. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4564. ;;
  4565. darwin* | rhapsody*)
  4566. lt_cv_deplibs_check_method=pass_all
  4567. ;;
  4568. freebsd* | dragonfly*)
  4569. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4570. case $host_cpu in
  4571. i*86 )
  4572. # Not sure whether the presence of OpenBSD here was a mistake.
  4573. # Let's accept both of them until this is cleared up.
  4574. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4575. lt_cv_file_magic_cmd=/usr/bin/file
  4576. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4577. ;;
  4578. esac
  4579. else
  4580. lt_cv_deplibs_check_method=pass_all
  4581. fi
  4582. ;;
  4583. gnu*)
  4584. lt_cv_deplibs_check_method=pass_all
  4585. ;;
  4586. haiku*)
  4587. lt_cv_deplibs_check_method=pass_all
  4588. ;;
  4589. hpux10.20* | hpux11*)
  4590. lt_cv_file_magic_cmd=/usr/bin/file
  4591. case $host_cpu in
  4592. ia64*)
  4593. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4594. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4595. ;;
  4596. hppa*64*)
  4597. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4598. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4599. ;;
  4600. *)
  4601. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4602. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4603. ;;
  4604. esac
  4605. ;;
  4606. interix[3-9]*)
  4607. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4608. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4609. ;;
  4610. irix5* | irix6* | nonstopux*)
  4611. case $LD in
  4612. *-32|*"-32 ") libmagic=32-bit;;
  4613. *-n32|*"-n32 ") libmagic=N32;;
  4614. *-64|*"-64 ") libmagic=64-bit;;
  4615. *) libmagic=never-match;;
  4616. esac
  4617. lt_cv_deplibs_check_method=pass_all
  4618. ;;
  4619. # This must be Linux ELF.
  4620. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4621. lt_cv_deplibs_check_method=pass_all
  4622. ;;
  4623. netbsd*)
  4624. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4625. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4626. else
  4627. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4628. fi
  4629. ;;
  4630. newos6*)
  4631. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4632. lt_cv_file_magic_cmd=/usr/bin/file
  4633. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4634. ;;
  4635. *nto* | *qnx*)
  4636. lt_cv_deplibs_check_method=pass_all
  4637. ;;
  4638. openbsd*)
  4639. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4640. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4641. else
  4642. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4643. fi
  4644. ;;
  4645. osf3* | osf4* | osf5*)
  4646. lt_cv_deplibs_check_method=pass_all
  4647. ;;
  4648. rdos*)
  4649. lt_cv_deplibs_check_method=pass_all
  4650. ;;
  4651. solaris*)
  4652. lt_cv_deplibs_check_method=pass_all
  4653. ;;
  4654. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4655. lt_cv_deplibs_check_method=pass_all
  4656. ;;
  4657. sysv4 | sysv4.3*)
  4658. case $host_vendor in
  4659. motorola)
  4660. 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]'
  4661. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4662. ;;
  4663. ncr)
  4664. lt_cv_deplibs_check_method=pass_all
  4665. ;;
  4666. sequent)
  4667. lt_cv_file_magic_cmd='/bin/file'
  4668. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4669. ;;
  4670. sni)
  4671. lt_cv_file_magic_cmd='/bin/file'
  4672. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4673. lt_cv_file_magic_test_file=/lib/libc.so
  4674. ;;
  4675. siemens)
  4676. lt_cv_deplibs_check_method=pass_all
  4677. ;;
  4678. pc)
  4679. lt_cv_deplibs_check_method=pass_all
  4680. ;;
  4681. esac
  4682. ;;
  4683. tpf*)
  4684. lt_cv_deplibs_check_method=pass_all
  4685. ;;
  4686. esac
  4687. fi
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4689. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4690. file_magic_glob=
  4691. want_nocaseglob=no
  4692. if test "$build" = "$host"; then
  4693. case $host_os in
  4694. mingw* | pw32*)
  4695. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4696. want_nocaseglob=yes
  4697. else
  4698. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4699. fi
  4700. ;;
  4701. esac
  4702. fi
  4703. file_magic_cmd=$lt_cv_file_magic_cmd
  4704. deplibs_check_method=$lt_cv_deplibs_check_method
  4705. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4706. if test -n "$ac_tool_prefix"; then
  4707. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4708. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4710. $as_echo_n "checking for $ac_word... " >&6; }
  4711. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4712. $as_echo_n "(cached) " >&6
  4713. else
  4714. if test -n "$DLLTOOL"; then
  4715. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4716. else
  4717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4718. for as_dir in $PATH
  4719. do
  4720. IFS=$as_save_IFS
  4721. test -z "$as_dir" && as_dir=.
  4722. for ac_exec_ext in '' $ac_executable_extensions; do
  4723. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4724. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4726. break 2
  4727. fi
  4728. done
  4729. done
  4730. IFS=$as_save_IFS
  4731. fi
  4732. fi
  4733. DLLTOOL=$ac_cv_prog_DLLTOOL
  4734. if test -n "$DLLTOOL"; then
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4736. $as_echo "$DLLTOOL" >&6; }
  4737. else
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4739. $as_echo "no" >&6; }
  4740. fi
  4741. fi
  4742. if test -z "$ac_cv_prog_DLLTOOL"; then
  4743. ac_ct_DLLTOOL=$DLLTOOL
  4744. # Extract the first word of "dlltool", so it can be a program name with args.
  4745. set dummy dlltool; ac_word=$2
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4747. $as_echo_n "checking for $ac_word... " >&6; }
  4748. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4749. $as_echo_n "(cached) " >&6
  4750. else
  4751. if test -n "$ac_ct_DLLTOOL"; then
  4752. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4753. else
  4754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4755. for as_dir in $PATH
  4756. do
  4757. IFS=$as_save_IFS
  4758. test -z "$as_dir" && as_dir=.
  4759. for ac_exec_ext in '' $ac_executable_extensions; do
  4760. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4761. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4763. break 2
  4764. fi
  4765. done
  4766. done
  4767. IFS=$as_save_IFS
  4768. fi
  4769. fi
  4770. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4771. if test -n "$ac_ct_DLLTOOL"; then
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4773. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4774. else
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4776. $as_echo "no" >&6; }
  4777. fi
  4778. if test "x$ac_ct_DLLTOOL" = x; then
  4779. DLLTOOL="false"
  4780. else
  4781. case $cross_compiling:$ac_tool_warned in
  4782. yes:)
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4784. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4785. ac_tool_warned=yes ;;
  4786. esac
  4787. DLLTOOL=$ac_ct_DLLTOOL
  4788. fi
  4789. else
  4790. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4791. fi
  4792. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4794. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4795. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4796. $as_echo_n "(cached) " >&6
  4797. else
  4798. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4799. case $host_os in
  4800. cygwin* | mingw* | pw32* | cegcc*)
  4801. # two different shell functions defined in ltmain.sh
  4802. # decide which to use based on capabilities of $DLLTOOL
  4803. case `$DLLTOOL --help 2>&1` in
  4804. *--identify-strict*)
  4805. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4806. ;;
  4807. *)
  4808. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4809. ;;
  4810. esac
  4811. ;;
  4812. *)
  4813. # fallback: assume linklib IS sharedlib
  4814. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4815. ;;
  4816. esac
  4817. fi
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4819. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4820. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4821. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4822. if test -n "$ac_tool_prefix"; then
  4823. for ac_prog in ar
  4824. do
  4825. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4826. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4828. $as_echo_n "checking for $ac_word... " >&6; }
  4829. if ${ac_cv_prog_AR+:} false; then :
  4830. $as_echo_n "(cached) " >&6
  4831. else
  4832. if test -n "$AR"; then
  4833. ac_cv_prog_AR="$AR" # Let the user override the test.
  4834. else
  4835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4836. for as_dir in $PATH
  4837. do
  4838. IFS=$as_save_IFS
  4839. test -z "$as_dir" && as_dir=.
  4840. for ac_exec_ext in '' $ac_executable_extensions; do
  4841. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4842. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4844. break 2
  4845. fi
  4846. done
  4847. done
  4848. IFS=$as_save_IFS
  4849. fi
  4850. fi
  4851. AR=$ac_cv_prog_AR
  4852. if test -n "$AR"; then
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4854. $as_echo "$AR" >&6; }
  4855. else
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4857. $as_echo "no" >&6; }
  4858. fi
  4859. test -n "$AR" && break
  4860. done
  4861. fi
  4862. if test -z "$AR"; then
  4863. ac_ct_AR=$AR
  4864. for ac_prog in ar
  4865. do
  4866. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4867. set dummy $ac_prog; ac_word=$2
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4869. $as_echo_n "checking for $ac_word... " >&6; }
  4870. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4871. $as_echo_n "(cached) " >&6
  4872. else
  4873. if test -n "$ac_ct_AR"; then
  4874. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4875. else
  4876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4877. for as_dir in $PATH
  4878. do
  4879. IFS=$as_save_IFS
  4880. test -z "$as_dir" && as_dir=.
  4881. for ac_exec_ext in '' $ac_executable_extensions; do
  4882. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4883. ac_cv_prog_ac_ct_AR="$ac_prog"
  4884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4885. break 2
  4886. fi
  4887. done
  4888. done
  4889. IFS=$as_save_IFS
  4890. fi
  4891. fi
  4892. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4893. if test -n "$ac_ct_AR"; then
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4895. $as_echo "$ac_ct_AR" >&6; }
  4896. else
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4898. $as_echo "no" >&6; }
  4899. fi
  4900. test -n "$ac_ct_AR" && break
  4901. done
  4902. if test "x$ac_ct_AR" = x; then
  4903. AR="false"
  4904. else
  4905. case $cross_compiling:$ac_tool_warned in
  4906. yes:)
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4908. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4909. ac_tool_warned=yes ;;
  4910. esac
  4911. AR=$ac_ct_AR
  4912. fi
  4913. fi
  4914. : ${AR=ar}
  4915. : ${AR_FLAGS=cru}
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4917. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4918. if ${lt_cv_ar_at_file+:} false; then :
  4919. $as_echo_n "(cached) " >&6
  4920. else
  4921. lt_cv_ar_at_file=no
  4922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4923. /* end confdefs.h. */
  4924. int
  4925. main ()
  4926. {
  4927. ;
  4928. return 0;
  4929. }
  4930. _ACEOF
  4931. if ac_fn_c_try_compile "$LINENO"; then :
  4932. echo conftest.$ac_objext > conftest.lst
  4933. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4934. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4935. (eval $lt_ar_try) 2>&5
  4936. ac_status=$?
  4937. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4938. test $ac_status = 0; }
  4939. if test "$ac_status" -eq 0; then
  4940. # Ensure the archiver fails upon bogus file names.
  4941. rm -f conftest.$ac_objext libconftest.a
  4942. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4943. (eval $lt_ar_try) 2>&5
  4944. ac_status=$?
  4945. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4946. test $ac_status = 0; }
  4947. if test "$ac_status" -ne 0; then
  4948. lt_cv_ar_at_file=@
  4949. fi
  4950. fi
  4951. rm -f conftest.* libconftest.a
  4952. fi
  4953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4954. fi
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4956. $as_echo "$lt_cv_ar_at_file" >&6; }
  4957. if test "x$lt_cv_ar_at_file" = xno; then
  4958. archiver_list_spec=
  4959. else
  4960. archiver_list_spec=$lt_cv_ar_at_file
  4961. fi
  4962. if test -n "$ac_tool_prefix"; then
  4963. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4964. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4966. $as_echo_n "checking for $ac_word... " >&6; }
  4967. if ${ac_cv_prog_STRIP+:} false; then :
  4968. $as_echo_n "(cached) " >&6
  4969. else
  4970. if test -n "$STRIP"; then
  4971. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4972. else
  4973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4974. for as_dir in $PATH
  4975. do
  4976. IFS=$as_save_IFS
  4977. test -z "$as_dir" && as_dir=.
  4978. for ac_exec_ext in '' $ac_executable_extensions; do
  4979. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4980. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4982. break 2
  4983. fi
  4984. done
  4985. done
  4986. IFS=$as_save_IFS
  4987. fi
  4988. fi
  4989. STRIP=$ac_cv_prog_STRIP
  4990. if test -n "$STRIP"; then
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4992. $as_echo "$STRIP" >&6; }
  4993. else
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4995. $as_echo "no" >&6; }
  4996. fi
  4997. fi
  4998. if test -z "$ac_cv_prog_STRIP"; then
  4999. ac_ct_STRIP=$STRIP
  5000. # Extract the first word of "strip", so it can be a program name with args.
  5001. set dummy strip; ac_word=$2
  5002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5003. $as_echo_n "checking for $ac_word... " >&6; }
  5004. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5005. $as_echo_n "(cached) " >&6
  5006. else
  5007. if test -n "$ac_ct_STRIP"; then
  5008. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5009. else
  5010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5011. for as_dir in $PATH
  5012. do
  5013. IFS=$as_save_IFS
  5014. test -z "$as_dir" && as_dir=.
  5015. for ac_exec_ext in '' $ac_executable_extensions; do
  5016. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5017. ac_cv_prog_ac_ct_STRIP="strip"
  5018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5019. break 2
  5020. fi
  5021. done
  5022. done
  5023. IFS=$as_save_IFS
  5024. fi
  5025. fi
  5026. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5027. if test -n "$ac_ct_STRIP"; then
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5029. $as_echo "$ac_ct_STRIP" >&6; }
  5030. else
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5032. $as_echo "no" >&6; }
  5033. fi
  5034. if test "x$ac_ct_STRIP" = x; then
  5035. STRIP=":"
  5036. else
  5037. case $cross_compiling:$ac_tool_warned in
  5038. yes:)
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5040. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5041. ac_tool_warned=yes ;;
  5042. esac
  5043. STRIP=$ac_ct_STRIP
  5044. fi
  5045. else
  5046. STRIP="$ac_cv_prog_STRIP"
  5047. fi
  5048. test -z "$STRIP" && STRIP=:
  5049. if test -n "$ac_tool_prefix"; then
  5050. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5051. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5053. $as_echo_n "checking for $ac_word... " >&6; }
  5054. if ${ac_cv_prog_RANLIB+:} false; then :
  5055. $as_echo_n "(cached) " >&6
  5056. else
  5057. if test -n "$RANLIB"; then
  5058. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5059. else
  5060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5061. for as_dir in $PATH
  5062. do
  5063. IFS=$as_save_IFS
  5064. test -z "$as_dir" && as_dir=.
  5065. for ac_exec_ext in '' $ac_executable_extensions; do
  5066. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5067. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5068. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5069. break 2
  5070. fi
  5071. done
  5072. done
  5073. IFS=$as_save_IFS
  5074. fi
  5075. fi
  5076. RANLIB=$ac_cv_prog_RANLIB
  5077. if test -n "$RANLIB"; then
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5079. $as_echo "$RANLIB" >&6; }
  5080. else
  5081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5082. $as_echo "no" >&6; }
  5083. fi
  5084. fi
  5085. if test -z "$ac_cv_prog_RANLIB"; then
  5086. ac_ct_RANLIB=$RANLIB
  5087. # Extract the first word of "ranlib", so it can be a program name with args.
  5088. set dummy ranlib; ac_word=$2
  5089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5090. $as_echo_n "checking for $ac_word... " >&6; }
  5091. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5092. $as_echo_n "(cached) " >&6
  5093. else
  5094. if test -n "$ac_ct_RANLIB"; then
  5095. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5096. else
  5097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5098. for as_dir in $PATH
  5099. do
  5100. IFS=$as_save_IFS
  5101. test -z "$as_dir" && as_dir=.
  5102. for ac_exec_ext in '' $ac_executable_extensions; do
  5103. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5104. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5105. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5106. break 2
  5107. fi
  5108. done
  5109. done
  5110. IFS=$as_save_IFS
  5111. fi
  5112. fi
  5113. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5114. if test -n "$ac_ct_RANLIB"; then
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5116. $as_echo "$ac_ct_RANLIB" >&6; }
  5117. else
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5119. $as_echo "no" >&6; }
  5120. fi
  5121. if test "x$ac_ct_RANLIB" = x; then
  5122. RANLIB=":"
  5123. else
  5124. case $cross_compiling:$ac_tool_warned in
  5125. yes:)
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5127. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5128. ac_tool_warned=yes ;;
  5129. esac
  5130. RANLIB=$ac_ct_RANLIB
  5131. fi
  5132. else
  5133. RANLIB="$ac_cv_prog_RANLIB"
  5134. fi
  5135. test -z "$RANLIB" && RANLIB=:
  5136. # Determine commands to create old-style static archives.
  5137. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5138. old_postinstall_cmds='chmod 644 $oldlib'
  5139. old_postuninstall_cmds=
  5140. if test -n "$RANLIB"; then
  5141. case $host_os in
  5142. openbsd*)
  5143. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5144. ;;
  5145. *)
  5146. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5147. ;;
  5148. esac
  5149. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5150. fi
  5151. case $host_os in
  5152. darwin*)
  5153. lock_old_archive_extraction=yes ;;
  5154. *)
  5155. lock_old_archive_extraction=no ;;
  5156. esac
  5157. # If no C compiler was specified, use CC.
  5158. LTCC=${LTCC-"$CC"}
  5159. # If no C compiler flags were specified, use CFLAGS.
  5160. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5161. # Allow CC to be a program name with arguments.
  5162. compiler=$CC
  5163. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5165. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5166. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5167. $as_echo_n "(cached) " >&6
  5168. else
  5169. # These are sane defaults that work on at least a few old systems.
  5170. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5171. # Character class describing NM global symbol codes.
  5172. symcode='[BCDEGRST]'
  5173. # Regexp to match symbols that can be accessed directly from C.
  5174. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5175. # Define system-specific variables.
  5176. case $host_os in
  5177. aix*)
  5178. symcode='[BCDT]'
  5179. ;;
  5180. cygwin* | mingw* | pw32* | cegcc*)
  5181. symcode='[ABCDGISTW]'
  5182. ;;
  5183. hpux*)
  5184. if test "$host_cpu" = ia64; then
  5185. symcode='[ABCDEGRST]'
  5186. fi
  5187. ;;
  5188. irix* | nonstopux*)
  5189. symcode='[BCDEGRST]'
  5190. ;;
  5191. osf*)
  5192. symcode='[BCDEGQRST]'
  5193. ;;
  5194. solaris*)
  5195. symcode='[BDRT]'
  5196. ;;
  5197. sco3.2v5*)
  5198. symcode='[DT]'
  5199. ;;
  5200. sysv4.2uw2*)
  5201. symcode='[DT]'
  5202. ;;
  5203. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5204. symcode='[ABDT]'
  5205. ;;
  5206. sysv4)
  5207. symcode='[DFNSTU]'
  5208. ;;
  5209. esac
  5210. # If we're using GNU nm, then use its standard symbol codes.
  5211. case `$NM -V 2>&1` in
  5212. *GNU* | *'with BFD'*)
  5213. symcode='[ABCDGIRSTW]' ;;
  5214. esac
  5215. # Transform an extracted symbol line into a proper C declaration.
  5216. # Some systems (esp. on ia64) link data and code symbols differently,
  5217. # so use this general approach.
  5218. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5219. # Transform an extracted symbol line into symbol name and symbol address
  5220. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5221. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5222. # Handle CRLF in mingw tool chain
  5223. opt_cr=
  5224. case $build_os in
  5225. mingw*)
  5226. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5227. ;;
  5228. esac
  5229. # Try without a prefix underscore, then with it.
  5230. for ac_symprfx in "" "_"; do
  5231. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5232. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5233. # Write the raw and C identifiers.
  5234. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5235. # Fake it for dumpbin and say T for any non-static function
  5236. # and D for any global variable.
  5237. # Also find C++ and __fastcall symbols from MSVC++,
  5238. # which start with @ or ?.
  5239. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5240. " {last_section=section; section=\$ 3};"\
  5241. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5242. " \$ 0!~/External *\|/{next};"\
  5243. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5244. " {if(hide[section]) next};"\
  5245. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5246. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5247. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5248. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5249. " ' prfx=^$ac_symprfx"
  5250. else
  5251. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5252. fi
  5253. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5254. # Check to see that the pipe works correctly.
  5255. pipe_works=no
  5256. rm -f conftest*
  5257. cat > conftest.$ac_ext <<_LT_EOF
  5258. #ifdef __cplusplus
  5259. extern "C" {
  5260. #endif
  5261. char nm_test_var;
  5262. void nm_test_func(void);
  5263. void nm_test_func(void){}
  5264. #ifdef __cplusplus
  5265. }
  5266. #endif
  5267. int main(){nm_test_var='a';nm_test_func();return(0);}
  5268. _LT_EOF
  5269. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5270. (eval $ac_compile) 2>&5
  5271. ac_status=$?
  5272. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5273. test $ac_status = 0; }; then
  5274. # Now try to grab the symbols.
  5275. nlist=conftest.nm
  5276. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5277. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5278. ac_status=$?
  5279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5280. test $ac_status = 0; } && test -s "$nlist"; then
  5281. # Try sorting and uniquifying the output.
  5282. if sort "$nlist" | uniq > "$nlist"T; then
  5283. mv -f "$nlist"T "$nlist"
  5284. else
  5285. rm -f "$nlist"T
  5286. fi
  5287. # Make sure that we snagged all the symbols we need.
  5288. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5289. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5290. cat <<_LT_EOF > conftest.$ac_ext
  5291. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5292. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5293. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5294. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5295. # define LT@&t@_DLSYM_CONST
  5296. #elif defined(__osf__)
  5297. /* This system does not cope well with relocations in const data. */
  5298. # define LT@&t@_DLSYM_CONST
  5299. #else
  5300. # define LT@&t@_DLSYM_CONST const
  5301. #endif
  5302. #ifdef __cplusplus
  5303. extern "C" {
  5304. #endif
  5305. _LT_EOF
  5306. # Now generate the symbol file.
  5307. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5308. cat <<_LT_EOF >> conftest.$ac_ext
  5309. /* The mapping between symbol names and symbols. */
  5310. LT@&t@_DLSYM_CONST struct {
  5311. const char *name;
  5312. void *address;
  5313. }
  5314. lt__PROGRAM__LTX_preloaded_symbols[] =
  5315. {
  5316. { "@PROGRAM@", (void *) 0 },
  5317. _LT_EOF
  5318. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5319. cat <<\_LT_EOF >> conftest.$ac_ext
  5320. {0, (void *) 0}
  5321. };
  5322. /* This works around a problem in FreeBSD linker */
  5323. #ifdef FREEBSD_WORKAROUND
  5324. static const void *lt_preloaded_setup() {
  5325. return lt__PROGRAM__LTX_preloaded_symbols;
  5326. }
  5327. #endif
  5328. #ifdef __cplusplus
  5329. }
  5330. #endif
  5331. _LT_EOF
  5332. # Now try linking the two files.
  5333. mv conftest.$ac_objext conftstm.$ac_objext
  5334. lt_globsym_save_LIBS=$LIBS
  5335. lt_globsym_save_CFLAGS=$CFLAGS
  5336. LIBS="conftstm.$ac_objext"
  5337. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5338. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5339. (eval $ac_link) 2>&5
  5340. ac_status=$?
  5341. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5342. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5343. pipe_works=yes
  5344. fi
  5345. LIBS=$lt_globsym_save_LIBS
  5346. CFLAGS=$lt_globsym_save_CFLAGS
  5347. else
  5348. echo "cannot find nm_test_func in $nlist" >&5
  5349. fi
  5350. else
  5351. echo "cannot find nm_test_var in $nlist" >&5
  5352. fi
  5353. else
  5354. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5355. fi
  5356. else
  5357. echo "$progname: failed program was:" >&5
  5358. cat conftest.$ac_ext >&5
  5359. fi
  5360. rm -rf conftest* conftst*
  5361. # Do not use the global_symbol_pipe unless it works.
  5362. if test "$pipe_works" = yes; then
  5363. break
  5364. else
  5365. lt_cv_sys_global_symbol_pipe=
  5366. fi
  5367. done
  5368. fi
  5369. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5370. lt_cv_sys_global_symbol_to_cdecl=
  5371. fi
  5372. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5374. $as_echo "failed" >&6; }
  5375. else
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5377. $as_echo "ok" >&6; }
  5378. fi
  5379. # Response file support.
  5380. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5381. nm_file_list_spec='@'
  5382. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5383. nm_file_list_spec='@'
  5384. fi
  5385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5386. $as_echo_n "checking for sysroot... " >&6; }
  5387. @%:@ Check whether --with-sysroot was given.
  5388. if test "${with_sysroot+set}" = set; then :
  5389. withval=$with_sysroot;
  5390. else
  5391. with_sysroot=no
  5392. fi
  5393. lt_sysroot=
  5394. case ${with_sysroot} in #(
  5395. yes)
  5396. if test "$GCC" = yes; then
  5397. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5398. fi
  5399. ;; #(
  5400. /*)
  5401. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5402. ;; #(
  5403. no|'')
  5404. ;; #(
  5405. *)
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5407. $as_echo "${with_sysroot}" >&6; }
  5408. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5409. ;;
  5410. esac
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5412. $as_echo "${lt_sysroot:-no}" >&6; }
  5413. @%:@ Check whether --enable-libtool-lock was given.
  5414. if test "${enable_libtool_lock+set}" = set; then :
  5415. enableval=$enable_libtool_lock;
  5416. fi
  5417. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5418. # Some flags need to be propagated to the compiler or linker for good
  5419. # libtool support.
  5420. case $host in
  5421. ia64-*-hpux*)
  5422. # Find out which ABI we are using.
  5423. echo 'int i;' > conftest.$ac_ext
  5424. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5425. (eval $ac_compile) 2>&5
  5426. ac_status=$?
  5427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5428. test $ac_status = 0; }; then
  5429. case `/usr/bin/file conftest.$ac_objext` in
  5430. *ELF-32*)
  5431. HPUX_IA64_MODE="32"
  5432. ;;
  5433. *ELF-64*)
  5434. HPUX_IA64_MODE="64"
  5435. ;;
  5436. esac
  5437. fi
  5438. rm -rf conftest*
  5439. ;;
  5440. *-*-irix6*)
  5441. # Find out which ABI we are using.
  5442. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5443. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5444. (eval $ac_compile) 2>&5
  5445. ac_status=$?
  5446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5447. test $ac_status = 0; }; then
  5448. if test "$lt_cv_prog_gnu_ld" = yes; then
  5449. case `/usr/bin/file conftest.$ac_objext` in
  5450. *32-bit*)
  5451. LD="${LD-ld} -melf32bsmip"
  5452. ;;
  5453. *N32*)
  5454. LD="${LD-ld} -melf32bmipn32"
  5455. ;;
  5456. *64-bit*)
  5457. LD="${LD-ld} -melf64bmip"
  5458. ;;
  5459. esac
  5460. else
  5461. case `/usr/bin/file conftest.$ac_objext` in
  5462. *32-bit*)
  5463. LD="${LD-ld} -32"
  5464. ;;
  5465. *N32*)
  5466. LD="${LD-ld} -n32"
  5467. ;;
  5468. *64-bit*)
  5469. LD="${LD-ld} -64"
  5470. ;;
  5471. esac
  5472. fi
  5473. fi
  5474. rm -rf conftest*
  5475. ;;
  5476. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5477. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5478. # Find out which ABI we are using.
  5479. echo 'int i;' > conftest.$ac_ext
  5480. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5481. (eval $ac_compile) 2>&5
  5482. ac_status=$?
  5483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5484. test $ac_status = 0; }; then
  5485. case `/usr/bin/file conftest.o` in
  5486. *32-bit*)
  5487. case $host in
  5488. x86_64-*kfreebsd*-gnu)
  5489. LD="${LD-ld} -m elf_i386_fbsd"
  5490. ;;
  5491. x86_64-*linux*)
  5492. LD="${LD-ld} -m elf_i386"
  5493. ;;
  5494. ppc64-*linux*|powerpc64-*linux*)
  5495. LD="${LD-ld} -m elf32ppclinux"
  5496. ;;
  5497. s390x-*linux*)
  5498. LD="${LD-ld} -m elf_s390"
  5499. ;;
  5500. sparc64-*linux*)
  5501. LD="${LD-ld} -m elf32_sparc"
  5502. ;;
  5503. esac
  5504. ;;
  5505. *64-bit*)
  5506. case $host in
  5507. x86_64-*kfreebsd*-gnu)
  5508. LD="${LD-ld} -m elf_x86_64_fbsd"
  5509. ;;
  5510. x86_64-*linux*)
  5511. LD="${LD-ld} -m elf_x86_64"
  5512. ;;
  5513. ppc*-*linux*|powerpc*-*linux*)
  5514. LD="${LD-ld} -m elf64ppc"
  5515. ;;
  5516. s390*-*linux*|s390*-*tpf*)
  5517. LD="${LD-ld} -m elf64_s390"
  5518. ;;
  5519. sparc*-*linux*)
  5520. LD="${LD-ld} -m elf64_sparc"
  5521. ;;
  5522. esac
  5523. ;;
  5524. esac
  5525. fi
  5526. rm -rf conftest*
  5527. ;;
  5528. *-*-sco3.2v5*)
  5529. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5530. SAVE_CFLAGS="$CFLAGS"
  5531. CFLAGS="$CFLAGS -belf"
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5533. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5534. if ${lt_cv_cc_needs_belf+:} false; then :
  5535. $as_echo_n "(cached) " >&6
  5536. else
  5537. ac_ext=c
  5538. ac_cpp='$CPP $CPPFLAGS'
  5539. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5540. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5541. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5543. /* end confdefs.h. */
  5544. int
  5545. main ()
  5546. {
  5547. ;
  5548. return 0;
  5549. }
  5550. _ACEOF
  5551. if ac_fn_c_try_link "$LINENO"; then :
  5552. lt_cv_cc_needs_belf=yes
  5553. else
  5554. lt_cv_cc_needs_belf=no
  5555. fi
  5556. rm -f core conftest.err conftest.$ac_objext \
  5557. conftest$ac_exeext conftest.$ac_ext
  5558. ac_ext=c
  5559. ac_cpp='$CPP $CPPFLAGS'
  5560. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5561. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5562. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5563. fi
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5565. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5566. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5567. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5568. CFLAGS="$SAVE_CFLAGS"
  5569. fi
  5570. ;;
  5571. sparc*-*solaris*)
  5572. # Find out which ABI we are using.
  5573. echo 'int i;' > conftest.$ac_ext
  5574. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5575. (eval $ac_compile) 2>&5
  5576. ac_status=$?
  5577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5578. test $ac_status = 0; }; then
  5579. case `/usr/bin/file conftest.o` in
  5580. *64-bit*)
  5581. case $lt_cv_prog_gnu_ld in
  5582. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5583. *)
  5584. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5585. LD="${LD-ld} -64"
  5586. fi
  5587. ;;
  5588. esac
  5589. ;;
  5590. esac
  5591. fi
  5592. rm -rf conftest*
  5593. ;;
  5594. esac
  5595. need_locks="$enable_libtool_lock"
  5596. if test -n "$ac_tool_prefix"; then
  5597. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5598. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5600. $as_echo_n "checking for $ac_word... " >&6; }
  5601. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5602. $as_echo_n "(cached) " >&6
  5603. else
  5604. if test -n "$MANIFEST_TOOL"; then
  5605. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5606. else
  5607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5608. for as_dir in $PATH
  5609. do
  5610. IFS=$as_save_IFS
  5611. test -z "$as_dir" && as_dir=.
  5612. for ac_exec_ext in '' $ac_executable_extensions; do
  5613. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5614. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5616. break 2
  5617. fi
  5618. done
  5619. done
  5620. IFS=$as_save_IFS
  5621. fi
  5622. fi
  5623. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5624. if test -n "$MANIFEST_TOOL"; then
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5626. $as_echo "$MANIFEST_TOOL" >&6; }
  5627. else
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5629. $as_echo "no" >&6; }
  5630. fi
  5631. fi
  5632. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5633. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5634. # Extract the first word of "mt", so it can be a program name with args.
  5635. set dummy mt; ac_word=$2
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5637. $as_echo_n "checking for $ac_word... " >&6; }
  5638. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5639. $as_echo_n "(cached) " >&6
  5640. else
  5641. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5642. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5643. else
  5644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5645. for as_dir in $PATH
  5646. do
  5647. IFS=$as_save_IFS
  5648. test -z "$as_dir" && as_dir=.
  5649. for ac_exec_ext in '' $ac_executable_extensions; do
  5650. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5651. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5653. break 2
  5654. fi
  5655. done
  5656. done
  5657. IFS=$as_save_IFS
  5658. fi
  5659. fi
  5660. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5661. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5663. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5664. else
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5666. $as_echo "no" >&6; }
  5667. fi
  5668. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5669. MANIFEST_TOOL=":"
  5670. else
  5671. case $cross_compiling:$ac_tool_warned in
  5672. yes:)
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5674. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5675. ac_tool_warned=yes ;;
  5676. esac
  5677. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5678. fi
  5679. else
  5680. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5681. fi
  5682. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5684. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5685. if ${lt_cv_path_mainfest_tool+:} false; then :
  5686. $as_echo_n "(cached) " >&6
  5687. else
  5688. lt_cv_path_mainfest_tool=no
  5689. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5690. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5691. cat conftest.err >&5
  5692. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5693. lt_cv_path_mainfest_tool=yes
  5694. fi
  5695. rm -f conftest*
  5696. fi
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5698. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5699. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5700. MANIFEST_TOOL=:
  5701. fi
  5702. case $host_os in
  5703. rhapsody* | darwin*)
  5704. if test -n "$ac_tool_prefix"; then
  5705. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5706. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5708. $as_echo_n "checking for $ac_word... " >&6; }
  5709. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5710. $as_echo_n "(cached) " >&6
  5711. else
  5712. if test -n "$DSYMUTIL"; then
  5713. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5714. else
  5715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5716. for as_dir in $PATH
  5717. do
  5718. IFS=$as_save_IFS
  5719. test -z "$as_dir" && as_dir=.
  5720. for ac_exec_ext in '' $ac_executable_extensions; do
  5721. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5722. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5724. break 2
  5725. fi
  5726. done
  5727. done
  5728. IFS=$as_save_IFS
  5729. fi
  5730. fi
  5731. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5732. if test -n "$DSYMUTIL"; then
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5734. $as_echo "$DSYMUTIL" >&6; }
  5735. else
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5737. $as_echo "no" >&6; }
  5738. fi
  5739. fi
  5740. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5741. ac_ct_DSYMUTIL=$DSYMUTIL
  5742. # Extract the first word of "dsymutil", so it can be a program name with args.
  5743. set dummy dsymutil; ac_word=$2
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5745. $as_echo_n "checking for $ac_word... " >&6; }
  5746. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5747. $as_echo_n "(cached) " >&6
  5748. else
  5749. if test -n "$ac_ct_DSYMUTIL"; then
  5750. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5751. else
  5752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5753. for as_dir in $PATH
  5754. do
  5755. IFS=$as_save_IFS
  5756. test -z "$as_dir" && as_dir=.
  5757. for ac_exec_ext in '' $ac_executable_extensions; do
  5758. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5759. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5761. break 2
  5762. fi
  5763. done
  5764. done
  5765. IFS=$as_save_IFS
  5766. fi
  5767. fi
  5768. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5769. if test -n "$ac_ct_DSYMUTIL"; then
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5771. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5772. else
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5774. $as_echo "no" >&6; }
  5775. fi
  5776. if test "x$ac_ct_DSYMUTIL" = x; then
  5777. DSYMUTIL=":"
  5778. else
  5779. case $cross_compiling:$ac_tool_warned in
  5780. yes:)
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5782. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5783. ac_tool_warned=yes ;;
  5784. esac
  5785. DSYMUTIL=$ac_ct_DSYMUTIL
  5786. fi
  5787. else
  5788. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5789. fi
  5790. if test -n "$ac_tool_prefix"; then
  5791. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5792. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5794. $as_echo_n "checking for $ac_word... " >&6; }
  5795. if ${ac_cv_prog_NMEDIT+:} false; then :
  5796. $as_echo_n "(cached) " >&6
  5797. else
  5798. if test -n "$NMEDIT"; then
  5799. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5800. else
  5801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5802. for as_dir in $PATH
  5803. do
  5804. IFS=$as_save_IFS
  5805. test -z "$as_dir" && as_dir=.
  5806. for ac_exec_ext in '' $ac_executable_extensions; do
  5807. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5808. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5810. break 2
  5811. fi
  5812. done
  5813. done
  5814. IFS=$as_save_IFS
  5815. fi
  5816. fi
  5817. NMEDIT=$ac_cv_prog_NMEDIT
  5818. if test -n "$NMEDIT"; then
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5820. $as_echo "$NMEDIT" >&6; }
  5821. else
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5823. $as_echo "no" >&6; }
  5824. fi
  5825. fi
  5826. if test -z "$ac_cv_prog_NMEDIT"; then
  5827. ac_ct_NMEDIT=$NMEDIT
  5828. # Extract the first word of "nmedit", so it can be a program name with args.
  5829. set dummy nmedit; ac_word=$2
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5831. $as_echo_n "checking for $ac_word... " >&6; }
  5832. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5833. $as_echo_n "(cached) " >&6
  5834. else
  5835. if test -n "$ac_ct_NMEDIT"; then
  5836. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5837. else
  5838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5839. for as_dir in $PATH
  5840. do
  5841. IFS=$as_save_IFS
  5842. test -z "$as_dir" && as_dir=.
  5843. for ac_exec_ext in '' $ac_executable_extensions; do
  5844. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5845. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5847. break 2
  5848. fi
  5849. done
  5850. done
  5851. IFS=$as_save_IFS
  5852. fi
  5853. fi
  5854. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5855. if test -n "$ac_ct_NMEDIT"; then
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5857. $as_echo "$ac_ct_NMEDIT" >&6; }
  5858. else
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5860. $as_echo "no" >&6; }
  5861. fi
  5862. if test "x$ac_ct_NMEDIT" = x; then
  5863. NMEDIT=":"
  5864. else
  5865. case $cross_compiling:$ac_tool_warned in
  5866. yes:)
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5868. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5869. ac_tool_warned=yes ;;
  5870. esac
  5871. NMEDIT=$ac_ct_NMEDIT
  5872. fi
  5873. else
  5874. NMEDIT="$ac_cv_prog_NMEDIT"
  5875. fi
  5876. if test -n "$ac_tool_prefix"; then
  5877. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5878. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5880. $as_echo_n "checking for $ac_word... " >&6; }
  5881. if ${ac_cv_prog_LIPO+:} false; then :
  5882. $as_echo_n "(cached) " >&6
  5883. else
  5884. if test -n "$LIPO"; then
  5885. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5886. else
  5887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5888. for as_dir in $PATH
  5889. do
  5890. IFS=$as_save_IFS
  5891. test -z "$as_dir" && as_dir=.
  5892. for ac_exec_ext in '' $ac_executable_extensions; do
  5893. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5894. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5896. break 2
  5897. fi
  5898. done
  5899. done
  5900. IFS=$as_save_IFS
  5901. fi
  5902. fi
  5903. LIPO=$ac_cv_prog_LIPO
  5904. if test -n "$LIPO"; then
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5906. $as_echo "$LIPO" >&6; }
  5907. else
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5909. $as_echo "no" >&6; }
  5910. fi
  5911. fi
  5912. if test -z "$ac_cv_prog_LIPO"; then
  5913. ac_ct_LIPO=$LIPO
  5914. # Extract the first word of "lipo", so it can be a program name with args.
  5915. set dummy lipo; ac_word=$2
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5917. $as_echo_n "checking for $ac_word... " >&6; }
  5918. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5919. $as_echo_n "(cached) " >&6
  5920. else
  5921. if test -n "$ac_ct_LIPO"; then
  5922. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5923. else
  5924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5925. for as_dir in $PATH
  5926. do
  5927. IFS=$as_save_IFS
  5928. test -z "$as_dir" && as_dir=.
  5929. for ac_exec_ext in '' $ac_executable_extensions; do
  5930. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5931. ac_cv_prog_ac_ct_LIPO="lipo"
  5932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5933. break 2
  5934. fi
  5935. done
  5936. done
  5937. IFS=$as_save_IFS
  5938. fi
  5939. fi
  5940. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5941. if test -n "$ac_ct_LIPO"; then
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5943. $as_echo "$ac_ct_LIPO" >&6; }
  5944. else
  5945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5946. $as_echo "no" >&6; }
  5947. fi
  5948. if test "x$ac_ct_LIPO" = x; then
  5949. LIPO=":"
  5950. else
  5951. case $cross_compiling:$ac_tool_warned in
  5952. yes:)
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5954. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5955. ac_tool_warned=yes ;;
  5956. esac
  5957. LIPO=$ac_ct_LIPO
  5958. fi
  5959. else
  5960. LIPO="$ac_cv_prog_LIPO"
  5961. fi
  5962. if test -n "$ac_tool_prefix"; then
  5963. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5964. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5966. $as_echo_n "checking for $ac_word... " >&6; }
  5967. if ${ac_cv_prog_OTOOL+:} false; then :
  5968. $as_echo_n "(cached) " >&6
  5969. else
  5970. if test -n "$OTOOL"; then
  5971. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5972. else
  5973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5974. for as_dir in $PATH
  5975. do
  5976. IFS=$as_save_IFS
  5977. test -z "$as_dir" && as_dir=.
  5978. for ac_exec_ext in '' $ac_executable_extensions; do
  5979. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5980. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5982. break 2
  5983. fi
  5984. done
  5985. done
  5986. IFS=$as_save_IFS
  5987. fi
  5988. fi
  5989. OTOOL=$ac_cv_prog_OTOOL
  5990. if test -n "$OTOOL"; then
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5992. $as_echo "$OTOOL" >&6; }
  5993. else
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5995. $as_echo "no" >&6; }
  5996. fi
  5997. fi
  5998. if test -z "$ac_cv_prog_OTOOL"; then
  5999. ac_ct_OTOOL=$OTOOL
  6000. # Extract the first word of "otool", so it can be a program name with args.
  6001. set dummy otool; ac_word=$2
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6003. $as_echo_n "checking for $ac_word... " >&6; }
  6004. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6005. $as_echo_n "(cached) " >&6
  6006. else
  6007. if test -n "$ac_ct_OTOOL"; then
  6008. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6009. else
  6010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6011. for as_dir in $PATH
  6012. do
  6013. IFS=$as_save_IFS
  6014. test -z "$as_dir" && as_dir=.
  6015. for ac_exec_ext in '' $ac_executable_extensions; do
  6016. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6017. ac_cv_prog_ac_ct_OTOOL="otool"
  6018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6019. break 2
  6020. fi
  6021. done
  6022. done
  6023. IFS=$as_save_IFS
  6024. fi
  6025. fi
  6026. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6027. if test -n "$ac_ct_OTOOL"; then
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6029. $as_echo "$ac_ct_OTOOL" >&6; }
  6030. else
  6031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6032. $as_echo "no" >&6; }
  6033. fi
  6034. if test "x$ac_ct_OTOOL" = x; then
  6035. OTOOL=":"
  6036. else
  6037. case $cross_compiling:$ac_tool_warned in
  6038. yes:)
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6040. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6041. ac_tool_warned=yes ;;
  6042. esac
  6043. OTOOL=$ac_ct_OTOOL
  6044. fi
  6045. else
  6046. OTOOL="$ac_cv_prog_OTOOL"
  6047. fi
  6048. if test -n "$ac_tool_prefix"; then
  6049. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6050. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6052. $as_echo_n "checking for $ac_word... " >&6; }
  6053. if ${ac_cv_prog_OTOOL64+:} false; then :
  6054. $as_echo_n "(cached) " >&6
  6055. else
  6056. if test -n "$OTOOL64"; then
  6057. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6058. else
  6059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6060. for as_dir in $PATH
  6061. do
  6062. IFS=$as_save_IFS
  6063. test -z "$as_dir" && as_dir=.
  6064. for ac_exec_ext in '' $ac_executable_extensions; do
  6065. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6066. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6068. break 2
  6069. fi
  6070. done
  6071. done
  6072. IFS=$as_save_IFS
  6073. fi
  6074. fi
  6075. OTOOL64=$ac_cv_prog_OTOOL64
  6076. if test -n "$OTOOL64"; then
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6078. $as_echo "$OTOOL64" >&6; }
  6079. else
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6081. $as_echo "no" >&6; }
  6082. fi
  6083. fi
  6084. if test -z "$ac_cv_prog_OTOOL64"; then
  6085. ac_ct_OTOOL64=$OTOOL64
  6086. # Extract the first word of "otool64", so it can be a program name with args.
  6087. set dummy otool64; ac_word=$2
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6089. $as_echo_n "checking for $ac_word... " >&6; }
  6090. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6091. $as_echo_n "(cached) " >&6
  6092. else
  6093. if test -n "$ac_ct_OTOOL64"; then
  6094. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6095. else
  6096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6097. for as_dir in $PATH
  6098. do
  6099. IFS=$as_save_IFS
  6100. test -z "$as_dir" && as_dir=.
  6101. for ac_exec_ext in '' $ac_executable_extensions; do
  6102. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6103. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6105. break 2
  6106. fi
  6107. done
  6108. done
  6109. IFS=$as_save_IFS
  6110. fi
  6111. fi
  6112. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6113. if test -n "$ac_ct_OTOOL64"; then
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6115. $as_echo "$ac_ct_OTOOL64" >&6; }
  6116. else
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6118. $as_echo "no" >&6; }
  6119. fi
  6120. if test "x$ac_ct_OTOOL64" = x; then
  6121. OTOOL64=":"
  6122. else
  6123. case $cross_compiling:$ac_tool_warned in
  6124. yes:)
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6126. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6127. ac_tool_warned=yes ;;
  6128. esac
  6129. OTOOL64=$ac_ct_OTOOL64
  6130. fi
  6131. else
  6132. OTOOL64="$ac_cv_prog_OTOOL64"
  6133. fi
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6135. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6136. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6137. $as_echo_n "(cached) " >&6
  6138. else
  6139. lt_cv_apple_cc_single_mod=no
  6140. if test -z "${LT_MULTI_MODULE}"; then
  6141. # By default we will add the -single_module flag. You can override
  6142. # by either setting the environment variable LT_MULTI_MODULE
  6143. # non-empty at configure time, or by adding -multi_module to the
  6144. # link flags.
  6145. rm -rf libconftest.dylib*
  6146. echo "int foo(void){return 1;}" > conftest.c
  6147. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6148. -dynamiclib -Wl,-single_module conftest.c" >&5
  6149. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6150. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6151. _lt_result=$?
  6152. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6153. lt_cv_apple_cc_single_mod=yes
  6154. else
  6155. cat conftest.err >&5
  6156. fi
  6157. rm -rf libconftest.dylib*
  6158. rm -f conftest.*
  6159. fi
  6160. fi
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6162. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6164. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6165. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6166. $as_echo_n "(cached) " >&6
  6167. else
  6168. lt_cv_ld_exported_symbols_list=no
  6169. save_LDFLAGS=$LDFLAGS
  6170. echo "_main" > conftest.sym
  6171. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6173. /* end confdefs.h. */
  6174. int
  6175. main ()
  6176. {
  6177. ;
  6178. return 0;
  6179. }
  6180. _ACEOF
  6181. if ac_fn_c_try_link "$LINENO"; then :
  6182. lt_cv_ld_exported_symbols_list=yes
  6183. else
  6184. lt_cv_ld_exported_symbols_list=no
  6185. fi
  6186. rm -f core conftest.err conftest.$ac_objext \
  6187. conftest$ac_exeext conftest.$ac_ext
  6188. LDFLAGS="$save_LDFLAGS"
  6189. fi
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6191. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6193. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6194. if ${lt_cv_ld_force_load+:} false; then :
  6195. $as_echo_n "(cached) " >&6
  6196. else
  6197. lt_cv_ld_force_load=no
  6198. cat > conftest.c << _LT_EOF
  6199. int forced_loaded() { return 2;}
  6200. _LT_EOF
  6201. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6202. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6203. echo "$AR cru libconftest.a conftest.o" >&5
  6204. $AR cru libconftest.a conftest.o 2>&5
  6205. echo "$RANLIB libconftest.a" >&5
  6206. $RANLIB libconftest.a 2>&5
  6207. cat > conftest.c << _LT_EOF
  6208. int main() { return 0;}
  6209. _LT_EOF
  6210. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6211. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6212. _lt_result=$?
  6213. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6214. lt_cv_ld_force_load=yes
  6215. else
  6216. cat conftest.err >&5
  6217. fi
  6218. rm -f conftest.err libconftest.a conftest conftest.c
  6219. rm -rf conftest.dSYM
  6220. fi
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6222. $as_echo "$lt_cv_ld_force_load" >&6; }
  6223. case $host_os in
  6224. rhapsody* | darwin1.[012])
  6225. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6226. darwin1.*)
  6227. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6228. darwin*) # darwin 5.x on
  6229. # if running on 10.5 or later, the deployment target defaults
  6230. # to the OS version, if on x86, and 10.4, the deployment
  6231. # target defaults to 10.4. Don't you love it?
  6232. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6233. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6234. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6235. 10.[012]*)
  6236. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6237. 10.*)
  6238. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6239. esac
  6240. ;;
  6241. esac
  6242. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6243. _lt_dar_single_mod='$single_module'
  6244. fi
  6245. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6246. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6247. else
  6248. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6249. fi
  6250. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6251. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6252. else
  6253. _lt_dsymutil=
  6254. fi
  6255. ;;
  6256. esac
  6257. ac_ext=c
  6258. ac_cpp='$CPP $CPPFLAGS'
  6259. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6260. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6261. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6263. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6264. # On Suns, sometimes $CPP names a directory.
  6265. if test -n "$CPP" && test -d "$CPP"; then
  6266. CPP=
  6267. fi
  6268. if test -z "$CPP"; then
  6269. if ${ac_cv_prog_CPP+:} false; then :
  6270. $as_echo_n "(cached) " >&6
  6271. else
  6272. # Double quotes because CPP needs to be expanded
  6273. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6274. do
  6275. ac_preproc_ok=false
  6276. for ac_c_preproc_warn_flag in '' yes
  6277. do
  6278. # Use a header file that comes with gcc, so configuring glibc
  6279. # with a fresh cross-compiler works.
  6280. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6281. # <limits.h> exists even on freestanding compilers.
  6282. # On the NeXT, cc -E runs the code through the compiler's parser,
  6283. # not just through cpp. "Syntax error" is here to catch this case.
  6284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6285. /* end confdefs.h. */
  6286. @%:@ifdef __STDC__
  6287. @%:@ include <limits.h>
  6288. @%:@else
  6289. @%:@ include <assert.h>
  6290. @%:@endif
  6291. Syntax error
  6292. _ACEOF
  6293. if ac_fn_c_try_cpp "$LINENO"; then :
  6294. else
  6295. # Broken: fails on valid input.
  6296. continue
  6297. fi
  6298. rm -f conftest.err conftest.i conftest.$ac_ext
  6299. # OK, works on sane cases. Now check whether nonexistent headers
  6300. # can be detected and how.
  6301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6302. /* end confdefs.h. */
  6303. @%:@include <ac_nonexistent.h>
  6304. _ACEOF
  6305. if ac_fn_c_try_cpp "$LINENO"; then :
  6306. # Broken: success on invalid input.
  6307. continue
  6308. else
  6309. # Passes both tests.
  6310. ac_preproc_ok=:
  6311. break
  6312. fi
  6313. rm -f conftest.err conftest.i conftest.$ac_ext
  6314. done
  6315. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6316. rm -f conftest.i conftest.err conftest.$ac_ext
  6317. if $ac_preproc_ok; then :
  6318. break
  6319. fi
  6320. done
  6321. ac_cv_prog_CPP=$CPP
  6322. fi
  6323. CPP=$ac_cv_prog_CPP
  6324. else
  6325. ac_cv_prog_CPP=$CPP
  6326. fi
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6328. $as_echo "$CPP" >&6; }
  6329. ac_preproc_ok=false
  6330. for ac_c_preproc_warn_flag in '' yes
  6331. do
  6332. # Use a header file that comes with gcc, so configuring glibc
  6333. # with a fresh cross-compiler works.
  6334. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6335. # <limits.h> exists even on freestanding compilers.
  6336. # On the NeXT, cc -E runs the code through the compiler's parser,
  6337. # not just through cpp. "Syntax error" is here to catch this case.
  6338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6339. /* end confdefs.h. */
  6340. @%:@ifdef __STDC__
  6341. @%:@ include <limits.h>
  6342. @%:@else
  6343. @%:@ include <assert.h>
  6344. @%:@endif
  6345. Syntax error
  6346. _ACEOF
  6347. if ac_fn_c_try_cpp "$LINENO"; then :
  6348. else
  6349. # Broken: fails on valid input.
  6350. continue
  6351. fi
  6352. rm -f conftest.err conftest.i conftest.$ac_ext
  6353. # OK, works on sane cases. Now check whether nonexistent headers
  6354. # can be detected and how.
  6355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6356. /* end confdefs.h. */
  6357. @%:@include <ac_nonexistent.h>
  6358. _ACEOF
  6359. if ac_fn_c_try_cpp "$LINENO"; then :
  6360. # Broken: success on invalid input.
  6361. continue
  6362. else
  6363. # Passes both tests.
  6364. ac_preproc_ok=:
  6365. break
  6366. fi
  6367. rm -f conftest.err conftest.i conftest.$ac_ext
  6368. done
  6369. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6370. rm -f conftest.i conftest.err conftest.$ac_ext
  6371. if $ac_preproc_ok; then :
  6372. else
  6373. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6374. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6375. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6376. See \`config.log' for more details" "$LINENO" 5 ; }
  6377. fi
  6378. ac_ext=c
  6379. ac_cpp='$CPP $CPPFLAGS'
  6380. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6381. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6382. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6384. $as_echo_n "checking for ANSI C header files... " >&6; }
  6385. if ${ac_cv_header_stdc+:} false; then :
  6386. $as_echo_n "(cached) " >&6
  6387. else
  6388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6389. /* end confdefs.h. */
  6390. #include <stdlib.h>
  6391. #include <stdarg.h>
  6392. #include <string.h>
  6393. #include <float.h>
  6394. int
  6395. main ()
  6396. {
  6397. ;
  6398. return 0;
  6399. }
  6400. _ACEOF
  6401. if ac_fn_c_try_compile "$LINENO"; then :
  6402. ac_cv_header_stdc=yes
  6403. else
  6404. ac_cv_header_stdc=no
  6405. fi
  6406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6407. if test $ac_cv_header_stdc = yes; then
  6408. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6410. /* end confdefs.h. */
  6411. #include <string.h>
  6412. _ACEOF
  6413. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6414. $EGREP "memchr" >/dev/null 2>&1; then :
  6415. else
  6416. ac_cv_header_stdc=no
  6417. fi
  6418. rm -f conftest*
  6419. fi
  6420. if test $ac_cv_header_stdc = yes; then
  6421. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6423. /* end confdefs.h. */
  6424. #include <stdlib.h>
  6425. _ACEOF
  6426. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6427. $EGREP "free" >/dev/null 2>&1; then :
  6428. else
  6429. ac_cv_header_stdc=no
  6430. fi
  6431. rm -f conftest*
  6432. fi
  6433. if test $ac_cv_header_stdc = yes; then
  6434. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6435. if test "$cross_compiling" = yes; then :
  6436. :
  6437. else
  6438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6439. /* end confdefs.h. */
  6440. #include <ctype.h>
  6441. #include <stdlib.h>
  6442. #if ((' ' & 0x0FF) == 0x020)
  6443. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6444. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6445. #else
  6446. # define ISLOWER(c) \
  6447. (('a' <= (c) && (c) <= 'i') \
  6448. || ('j' <= (c) && (c) <= 'r') \
  6449. || ('s' <= (c) && (c) <= 'z'))
  6450. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6451. #endif
  6452. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6453. int
  6454. main ()
  6455. {
  6456. int i;
  6457. for (i = 0; i < 256; i++)
  6458. if (XOR (islower (i), ISLOWER (i))
  6459. || toupper (i) != TOUPPER (i))
  6460. return 2;
  6461. return 0;
  6462. }
  6463. _ACEOF
  6464. if ac_fn_c_try_run "$LINENO"; then :
  6465. else
  6466. ac_cv_header_stdc=no
  6467. fi
  6468. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6469. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6470. fi
  6471. fi
  6472. fi
  6473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6474. $as_echo "$ac_cv_header_stdc" >&6; }
  6475. if test $ac_cv_header_stdc = yes; then
  6476. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  6477. fi
  6478. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6479. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6480. inttypes.h stdint.h unistd.h
  6481. do :
  6482. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6483. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6484. "
  6485. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6486. cat >>confdefs.h <<_ACEOF
  6487. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6488. _ACEOF
  6489. fi
  6490. done
  6491. for ac_header in dlfcn.h
  6492. do :
  6493. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6494. "
  6495. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6496. cat >>confdefs.h <<_ACEOF
  6497. @%:@define HAVE_DLFCN_H 1
  6498. _ACEOF
  6499. fi
  6500. done
  6501. # Set options
  6502. enable_dlopen=no
  6503. enable_win32_dll=no
  6504. @%:@ Check whether --enable-shared was given.
  6505. if test "${enable_shared+set}" = set; then :
  6506. enableval=$enable_shared; p=${PACKAGE-default}
  6507. case $enableval in
  6508. yes) enable_shared=yes ;;
  6509. no) enable_shared=no ;;
  6510. *)
  6511. enable_shared=no
  6512. # Look at the argument we got. We use all the common list separators.
  6513. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6514. for pkg in $enableval; do
  6515. IFS="$lt_save_ifs"
  6516. if test "X$pkg" = "X$p"; then
  6517. enable_shared=yes
  6518. fi
  6519. done
  6520. IFS="$lt_save_ifs"
  6521. ;;
  6522. esac
  6523. else
  6524. enable_shared=yes
  6525. fi
  6526. @%:@ Check whether --enable-static was given.
  6527. if test "${enable_static+set}" = set; then :
  6528. enableval=$enable_static; p=${PACKAGE-default}
  6529. case $enableval in
  6530. yes) enable_static=yes ;;
  6531. no) enable_static=no ;;
  6532. *)
  6533. enable_static=no
  6534. # Look at the argument we got. We use all the common list separators.
  6535. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6536. for pkg in $enableval; do
  6537. IFS="$lt_save_ifs"
  6538. if test "X$pkg" = "X$p"; then
  6539. enable_static=yes
  6540. fi
  6541. done
  6542. IFS="$lt_save_ifs"
  6543. ;;
  6544. esac
  6545. else
  6546. enable_static=yes
  6547. fi
  6548. @%:@ Check whether --with-pic was given.
  6549. if test "${with_pic+set}" = set; then :
  6550. withval=$with_pic; pic_mode="$withval"
  6551. else
  6552. pic_mode=default
  6553. fi
  6554. test -z "$pic_mode" && pic_mode=default
  6555. @%:@ Check whether --enable-fast-install was given.
  6556. if test "${enable_fast_install+set}" = set; then :
  6557. enableval=$enable_fast_install; p=${PACKAGE-default}
  6558. case $enableval in
  6559. yes) enable_fast_install=yes ;;
  6560. no) enable_fast_install=no ;;
  6561. *)
  6562. enable_fast_install=no
  6563. # Look at the argument we got. We use all the common list separators.
  6564. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6565. for pkg in $enableval; do
  6566. IFS="$lt_save_ifs"
  6567. if test "X$pkg" = "X$p"; then
  6568. enable_fast_install=yes
  6569. fi
  6570. done
  6571. IFS="$lt_save_ifs"
  6572. ;;
  6573. esac
  6574. else
  6575. enable_fast_install=yes
  6576. fi
  6577. # This can be used to rebuild libtool when needed
  6578. LIBTOOL_DEPS="$ltmain"
  6579. # Always use our own libtool.
  6580. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6581. test -z "$LN_S" && LN_S="ln -s"
  6582. if test -n "${ZSH_VERSION+set}" ; then
  6583. setopt NO_GLOB_SUBST
  6584. fi
  6585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6586. $as_echo_n "checking for objdir... " >&6; }
  6587. if ${lt_cv_objdir+:} false; then :
  6588. $as_echo_n "(cached) " >&6
  6589. else
  6590. rm -f .libs 2>/dev/null
  6591. mkdir .libs 2>/dev/null
  6592. if test -d .libs; then
  6593. lt_cv_objdir=.libs
  6594. else
  6595. # MS-DOS does not allow filenames that begin with a dot.
  6596. lt_cv_objdir=_libs
  6597. fi
  6598. rmdir .libs 2>/dev/null
  6599. fi
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6601. $as_echo "$lt_cv_objdir" >&6; }
  6602. objdir=$lt_cv_objdir
  6603. cat >>confdefs.h <<_ACEOF
  6604. @%:@define LT_OBJDIR "$lt_cv_objdir/"
  6605. _ACEOF
  6606. case $host_os in
  6607. aix3*)
  6608. # AIX sometimes has problems with the GCC collect2 program. For some
  6609. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6610. # vanish in a puff of smoke.
  6611. if test "X${COLLECT_NAMES+set}" != Xset; then
  6612. COLLECT_NAMES=
  6613. export COLLECT_NAMES
  6614. fi
  6615. ;;
  6616. esac
  6617. # Global variables:
  6618. ofile=libtool
  6619. can_build_shared=yes
  6620. # All known linkers require a `.a' archive for static linking (except MSVC,
  6621. # which needs '.lib').
  6622. libext=a
  6623. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6624. old_CC="$CC"
  6625. old_CFLAGS="$CFLAGS"
  6626. # Set sane defaults for various variables
  6627. test -z "$CC" && CC=cc
  6628. test -z "$LTCC" && LTCC=$CC
  6629. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6630. test -z "$LD" && LD=ld
  6631. test -z "$ac_objext" && ac_objext=o
  6632. for cc_temp in $compiler""; do
  6633. case $cc_temp in
  6634. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6635. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6636. \-*) ;;
  6637. *) break;;
  6638. esac
  6639. done
  6640. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6641. # Only perform the check for file, if the check method requires it
  6642. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6643. case $deplibs_check_method in
  6644. file_magic*)
  6645. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6647. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6648. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6649. $as_echo_n "(cached) " >&6
  6650. else
  6651. case $MAGIC_CMD in
  6652. [\\/*] | ?:[\\/]*)
  6653. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6654. ;;
  6655. *)
  6656. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6657. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6658. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6659. for ac_dir in $ac_dummy; do
  6660. IFS="$lt_save_ifs"
  6661. test -z "$ac_dir" && ac_dir=.
  6662. if test -f $ac_dir/${ac_tool_prefix}file; then
  6663. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6664. if test -n "$file_magic_test_file"; then
  6665. case $deplibs_check_method in
  6666. "file_magic "*)
  6667. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6668. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6669. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6670. $EGREP "$file_magic_regex" > /dev/null; then
  6671. :
  6672. else
  6673. cat <<_LT_EOF 1>&2
  6674. *** Warning: the command libtool uses to detect shared libraries,
  6675. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6676. *** The result is that libtool may fail to recognize shared libraries
  6677. *** as such. This will affect the creation of libtool libraries that
  6678. *** depend on shared libraries, but programs linked with such libtool
  6679. *** libraries will work regardless of this problem. Nevertheless, you
  6680. *** may want to report the problem to your system manager and/or to
  6681. *** bug-libtool@gnu.org
  6682. _LT_EOF
  6683. fi ;;
  6684. esac
  6685. fi
  6686. break
  6687. fi
  6688. done
  6689. IFS="$lt_save_ifs"
  6690. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6691. ;;
  6692. esac
  6693. fi
  6694. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6695. if test -n "$MAGIC_CMD"; then
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6697. $as_echo "$MAGIC_CMD" >&6; }
  6698. else
  6699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6700. $as_echo "no" >&6; }
  6701. fi
  6702. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6703. if test -n "$ac_tool_prefix"; then
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6705. $as_echo_n "checking for file... " >&6; }
  6706. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6707. $as_echo_n "(cached) " >&6
  6708. else
  6709. case $MAGIC_CMD in
  6710. [\\/*] | ?:[\\/]*)
  6711. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6712. ;;
  6713. *)
  6714. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6715. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6716. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6717. for ac_dir in $ac_dummy; do
  6718. IFS="$lt_save_ifs"
  6719. test -z "$ac_dir" && ac_dir=.
  6720. if test -f $ac_dir/file; then
  6721. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6722. if test -n "$file_magic_test_file"; then
  6723. case $deplibs_check_method in
  6724. "file_magic "*)
  6725. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6726. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6727. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6728. $EGREP "$file_magic_regex" > /dev/null; then
  6729. :
  6730. else
  6731. cat <<_LT_EOF 1>&2
  6732. *** Warning: the command libtool uses to detect shared libraries,
  6733. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6734. *** The result is that libtool may fail to recognize shared libraries
  6735. *** as such. This will affect the creation of libtool libraries that
  6736. *** depend on shared libraries, but programs linked with such libtool
  6737. *** libraries will work regardless of this problem. Nevertheless, you
  6738. *** may want to report the problem to your system manager and/or to
  6739. *** bug-libtool@gnu.org
  6740. _LT_EOF
  6741. fi ;;
  6742. esac
  6743. fi
  6744. break
  6745. fi
  6746. done
  6747. IFS="$lt_save_ifs"
  6748. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6749. ;;
  6750. esac
  6751. fi
  6752. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6753. if test -n "$MAGIC_CMD"; then
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6755. $as_echo "$MAGIC_CMD" >&6; }
  6756. else
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6758. $as_echo "no" >&6; }
  6759. fi
  6760. else
  6761. MAGIC_CMD=:
  6762. fi
  6763. fi
  6764. fi
  6765. ;;
  6766. esac
  6767. # Use C for the default configuration in the libtool script
  6768. lt_save_CC="$CC"
  6769. ac_ext=c
  6770. ac_cpp='$CPP $CPPFLAGS'
  6771. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6772. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6773. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6774. # Source file extension for C test sources.
  6775. ac_ext=c
  6776. # Object file extension for compiled C test sources.
  6777. objext=o
  6778. objext=$objext
  6779. # Code to be used in simple compile tests
  6780. lt_simple_compile_test_code="int some_variable = 0;"
  6781. # Code to be used in simple link tests
  6782. lt_simple_link_test_code='int main(){return(0);}'
  6783. # If no C compiler was specified, use CC.
  6784. LTCC=${LTCC-"$CC"}
  6785. # If no C compiler flags were specified, use CFLAGS.
  6786. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6787. # Allow CC to be a program name with arguments.
  6788. compiler=$CC
  6789. # Save the default compiler, since it gets overwritten when the other
  6790. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6791. compiler_DEFAULT=$CC
  6792. # save warnings/boilerplate of simple test code
  6793. ac_outfile=conftest.$ac_objext
  6794. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6795. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6796. _lt_compiler_boilerplate=`cat conftest.err`
  6797. $RM conftest*
  6798. ac_outfile=conftest.$ac_objext
  6799. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6800. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6801. _lt_linker_boilerplate=`cat conftest.err`
  6802. $RM -r conftest*
  6803. ## CAVEAT EMPTOR:
  6804. ## There is no encapsulation within the following macros, do not change
  6805. ## the running order or otherwise move them around unless you know exactly
  6806. ## what you are doing...
  6807. if test -n "$compiler"; then
  6808. lt_prog_compiler_no_builtin_flag=
  6809. if test "$GCC" = yes; then
  6810. case $cc_basename in
  6811. nvcc*)
  6812. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6813. *)
  6814. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6815. esac
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6817. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6818. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6819. $as_echo_n "(cached) " >&6
  6820. else
  6821. lt_cv_prog_compiler_rtti_exceptions=no
  6822. ac_outfile=conftest.$ac_objext
  6823. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6824. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6825. # Insert the option either (1) after the last *FLAGS variable, or
  6826. # (2) before a word containing "conftest.", or (3) at the end.
  6827. # Note that $ac_compile itself does not contain backslashes and begins
  6828. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6829. # The option is referenced via a variable to avoid confusing sed.
  6830. lt_compile=`echo "$ac_compile" | $SED \
  6831. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6832. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6833. -e 's:$: $lt_compiler_flag:'`
  6834. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6835. (eval "$lt_compile" 2>conftest.err)
  6836. ac_status=$?
  6837. cat conftest.err >&5
  6838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6839. if (exit $ac_status) && test -s "$ac_outfile"; then
  6840. # The compiler can only warn and ignore the option if not recognized
  6841. # So say no if there are warnings other than the usual output.
  6842. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6843. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6844. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6845. lt_cv_prog_compiler_rtti_exceptions=yes
  6846. fi
  6847. fi
  6848. $RM conftest*
  6849. fi
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6851. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6852. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6853. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6854. else
  6855. :
  6856. fi
  6857. fi
  6858. lt_prog_compiler_wl=
  6859. lt_prog_compiler_pic=
  6860. lt_prog_compiler_static=
  6861. if test "$GCC" = yes; then
  6862. lt_prog_compiler_wl='-Wl,'
  6863. lt_prog_compiler_static='-static'
  6864. case $host_os in
  6865. aix*)
  6866. # All AIX code is PIC.
  6867. if test "$host_cpu" = ia64; then
  6868. # AIX 5 now supports IA64 processor
  6869. lt_prog_compiler_static='-Bstatic'
  6870. fi
  6871. ;;
  6872. amigaos*)
  6873. case $host_cpu in
  6874. powerpc)
  6875. # see comment about AmigaOS4 .so support
  6876. lt_prog_compiler_pic='-fPIC'
  6877. ;;
  6878. m68k)
  6879. # FIXME: we need at least 68020 code to build shared libraries, but
  6880. # adding the `-m68020' flag to GCC prevents building anything better,
  6881. # like `-m68040'.
  6882. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6883. ;;
  6884. esac
  6885. ;;
  6886. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6887. # PIC is the default for these OSes.
  6888. ;;
  6889. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6890. # This hack is so that the source file can tell whether it is being
  6891. # built for inclusion in a dll (and should export symbols for example).
  6892. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6893. # (--disable-auto-import) libraries
  6894. lt_prog_compiler_pic='-DDLL_EXPORT'
  6895. ;;
  6896. darwin* | rhapsody*)
  6897. # PIC is the default on this platform
  6898. # Common symbols not allowed in MH_DYLIB files
  6899. lt_prog_compiler_pic='-fno-common'
  6900. ;;
  6901. haiku*)
  6902. # PIC is the default for Haiku.
  6903. # The "-static" flag exists, but is broken.
  6904. lt_prog_compiler_static=
  6905. ;;
  6906. hpux*)
  6907. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6908. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6909. # sets the default TLS model and affects inlining.
  6910. case $host_cpu in
  6911. hppa*64*)
  6912. # +Z the default
  6913. ;;
  6914. *)
  6915. lt_prog_compiler_pic='-fPIC'
  6916. ;;
  6917. esac
  6918. ;;
  6919. interix[3-9]*)
  6920. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6921. # Instead, we relocate shared libraries at runtime.
  6922. ;;
  6923. msdosdjgpp*)
  6924. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6925. # on systems that don't support them.
  6926. lt_prog_compiler_can_build_shared=no
  6927. enable_shared=no
  6928. ;;
  6929. *nto* | *qnx*)
  6930. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6931. # it will coredump.
  6932. lt_prog_compiler_pic='-fPIC -shared'
  6933. ;;
  6934. sysv4*MP*)
  6935. if test -d /usr/nec; then
  6936. lt_prog_compiler_pic=-Kconform_pic
  6937. fi
  6938. ;;
  6939. *)
  6940. lt_prog_compiler_pic='-fPIC'
  6941. ;;
  6942. esac
  6943. case $cc_basename in
  6944. nvcc*) # Cuda Compiler Driver 2.2
  6945. lt_prog_compiler_wl='-Xlinker '
  6946. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6947. ;;
  6948. esac
  6949. else
  6950. # PORTME Check for flag to pass linker flags through the system compiler.
  6951. case $host_os in
  6952. aix*)
  6953. lt_prog_compiler_wl='-Wl,'
  6954. if test "$host_cpu" = ia64; then
  6955. # AIX 5 now supports IA64 processor
  6956. lt_prog_compiler_static='-Bstatic'
  6957. else
  6958. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6959. fi
  6960. ;;
  6961. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6962. # This hack is so that the source file can tell whether it is being
  6963. # built for inclusion in a dll (and should export symbols for example).
  6964. lt_prog_compiler_pic='-DDLL_EXPORT'
  6965. ;;
  6966. hpux9* | hpux10* | hpux11*)
  6967. lt_prog_compiler_wl='-Wl,'
  6968. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6969. # not for PA HP-UX.
  6970. case $host_cpu in
  6971. hppa*64*|ia64*)
  6972. # +Z the default
  6973. ;;
  6974. *)
  6975. lt_prog_compiler_pic='+Z'
  6976. ;;
  6977. esac
  6978. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6979. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6980. ;;
  6981. irix5* | irix6* | nonstopux*)
  6982. lt_prog_compiler_wl='-Wl,'
  6983. # PIC (with -KPIC) is the default.
  6984. lt_prog_compiler_static='-non_shared'
  6985. ;;
  6986. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6987. case $cc_basename in
  6988. # old Intel for x86_64 which still supported -KPIC.
  6989. ecc*)
  6990. lt_prog_compiler_wl='-Wl,'
  6991. lt_prog_compiler_pic='-KPIC'
  6992. lt_prog_compiler_static='-static'
  6993. ;;
  6994. # icc used to be incompatible with GCC.
  6995. # ICC 10 doesn't accept -KPIC any more.
  6996. icc* | ifort*)
  6997. lt_prog_compiler_wl='-Wl,'
  6998. lt_prog_compiler_pic='-fPIC'
  6999. lt_prog_compiler_static='-static'
  7000. ;;
  7001. # Lahey Fortran 8.1.
  7002. lf95*)
  7003. lt_prog_compiler_wl='-Wl,'
  7004. lt_prog_compiler_pic='--shared'
  7005. lt_prog_compiler_static='--static'
  7006. ;;
  7007. nagfor*)
  7008. # NAG Fortran compiler
  7009. lt_prog_compiler_wl='-Wl,-Wl,,'
  7010. lt_prog_compiler_pic='-PIC'
  7011. lt_prog_compiler_static='-Bstatic'
  7012. ;;
  7013. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7014. # Portland Group compilers (*not* the Pentium gcc compiler,
  7015. # which looks to be a dead project)
  7016. lt_prog_compiler_wl='-Wl,'
  7017. lt_prog_compiler_pic='-fpic'
  7018. lt_prog_compiler_static='-Bstatic'
  7019. ;;
  7020. ccc*)
  7021. lt_prog_compiler_wl='-Wl,'
  7022. # All Alpha code is PIC.
  7023. lt_prog_compiler_static='-non_shared'
  7024. ;;
  7025. xl* | bgxl* | bgf* | mpixl*)
  7026. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7027. lt_prog_compiler_wl='-Wl,'
  7028. lt_prog_compiler_pic='-qpic'
  7029. lt_prog_compiler_static='-qstaticlink'
  7030. ;;
  7031. *)
  7032. case `$CC -V 2>&1 | sed 5q` in
  7033. *Sun\ F* | *Sun*Fortran*)
  7034. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7035. lt_prog_compiler_pic='-KPIC'
  7036. lt_prog_compiler_static='-Bstatic'
  7037. lt_prog_compiler_wl=''
  7038. ;;
  7039. *Sun\ C*)
  7040. # Sun C 5.9
  7041. lt_prog_compiler_pic='-KPIC'
  7042. lt_prog_compiler_static='-Bstatic'
  7043. lt_prog_compiler_wl='-Wl,'
  7044. ;;
  7045. esac
  7046. ;;
  7047. esac
  7048. ;;
  7049. newsos6)
  7050. lt_prog_compiler_pic='-KPIC'
  7051. lt_prog_compiler_static='-Bstatic'
  7052. ;;
  7053. *nto* | *qnx*)
  7054. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7055. # it will coredump.
  7056. lt_prog_compiler_pic='-fPIC -shared'
  7057. ;;
  7058. osf3* | osf4* | osf5*)
  7059. lt_prog_compiler_wl='-Wl,'
  7060. # All OSF/1 code is PIC.
  7061. lt_prog_compiler_static='-non_shared'
  7062. ;;
  7063. rdos*)
  7064. lt_prog_compiler_static='-non_shared'
  7065. ;;
  7066. solaris*)
  7067. lt_prog_compiler_pic='-KPIC'
  7068. lt_prog_compiler_static='-Bstatic'
  7069. case $cc_basename in
  7070. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7071. lt_prog_compiler_wl='-Qoption ld ';;
  7072. *)
  7073. lt_prog_compiler_wl='-Wl,';;
  7074. esac
  7075. ;;
  7076. sunos4*)
  7077. lt_prog_compiler_wl='-Qoption ld '
  7078. lt_prog_compiler_pic='-PIC'
  7079. lt_prog_compiler_static='-Bstatic'
  7080. ;;
  7081. sysv4 | sysv4.2uw2* | sysv4.3*)
  7082. lt_prog_compiler_wl='-Wl,'
  7083. lt_prog_compiler_pic='-KPIC'
  7084. lt_prog_compiler_static='-Bstatic'
  7085. ;;
  7086. sysv4*MP*)
  7087. if test -d /usr/nec ;then
  7088. lt_prog_compiler_pic='-Kconform_pic'
  7089. lt_prog_compiler_static='-Bstatic'
  7090. fi
  7091. ;;
  7092. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7093. lt_prog_compiler_wl='-Wl,'
  7094. lt_prog_compiler_pic='-KPIC'
  7095. lt_prog_compiler_static='-Bstatic'
  7096. ;;
  7097. unicos*)
  7098. lt_prog_compiler_wl='-Wl,'
  7099. lt_prog_compiler_can_build_shared=no
  7100. ;;
  7101. uts4*)
  7102. lt_prog_compiler_pic='-pic'
  7103. lt_prog_compiler_static='-Bstatic'
  7104. ;;
  7105. *)
  7106. lt_prog_compiler_can_build_shared=no
  7107. ;;
  7108. esac
  7109. fi
  7110. case $host_os in
  7111. # For platforms which do not support PIC, -DPIC is meaningless:
  7112. *djgpp*)
  7113. lt_prog_compiler_pic=
  7114. ;;
  7115. *)
  7116. lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
  7117. ;;
  7118. esac
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7120. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7121. if ${lt_cv_prog_compiler_pic+:} false; then :
  7122. $as_echo_n "(cached) " >&6
  7123. else
  7124. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7125. fi
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7127. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7128. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7129. #
  7130. # Check to make sure the PIC flag actually works.
  7131. #
  7132. if test -n "$lt_prog_compiler_pic"; then
  7133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7134. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7135. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7136. $as_echo_n "(cached) " >&6
  7137. else
  7138. lt_cv_prog_compiler_pic_works=no
  7139. ac_outfile=conftest.$ac_objext
  7140. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7141. lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
  7142. # Insert the option either (1) after the last *FLAGS variable, or
  7143. # (2) before a word containing "conftest.", or (3) at the end.
  7144. # Note that $ac_compile itself does not contain backslashes and begins
  7145. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7146. # The option is referenced via a variable to avoid confusing sed.
  7147. lt_compile=`echo "$ac_compile" | $SED \
  7148. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7149. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7150. -e 's:$: $lt_compiler_flag:'`
  7151. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7152. (eval "$lt_compile" 2>conftest.err)
  7153. ac_status=$?
  7154. cat conftest.err >&5
  7155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7156. if (exit $ac_status) && test -s "$ac_outfile"; then
  7157. # The compiler can only warn and ignore the option if not recognized
  7158. # So say no if there are warnings other than the usual output.
  7159. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7160. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7161. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7162. lt_cv_prog_compiler_pic_works=yes
  7163. fi
  7164. fi
  7165. $RM conftest*
  7166. fi
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7168. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7169. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7170. case $lt_prog_compiler_pic in
  7171. "" | " "*) ;;
  7172. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7173. esac
  7174. else
  7175. lt_prog_compiler_pic=
  7176. lt_prog_compiler_can_build_shared=no
  7177. fi
  7178. fi
  7179. #
  7180. # Check to make sure the static flag actually works.
  7181. #
  7182. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7184. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7185. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7186. $as_echo_n "(cached) " >&6
  7187. else
  7188. lt_cv_prog_compiler_static_works=no
  7189. save_LDFLAGS="$LDFLAGS"
  7190. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7191. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7192. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7193. # The linker can only warn and ignore the option if not recognized
  7194. # So say no if there are warnings
  7195. if test -s conftest.err; then
  7196. # Append any errors to the config.log.
  7197. cat conftest.err 1>&5
  7198. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7199. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7200. if diff conftest.exp conftest.er2 >/dev/null; then
  7201. lt_cv_prog_compiler_static_works=yes
  7202. fi
  7203. else
  7204. lt_cv_prog_compiler_static_works=yes
  7205. fi
  7206. fi
  7207. $RM -r conftest*
  7208. LDFLAGS="$save_LDFLAGS"
  7209. fi
  7210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7211. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7212. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7213. :
  7214. else
  7215. lt_prog_compiler_static=
  7216. fi
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7218. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7219. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7220. $as_echo_n "(cached) " >&6
  7221. else
  7222. lt_cv_prog_compiler_c_o=no
  7223. $RM -r conftest 2>/dev/null
  7224. mkdir conftest
  7225. cd conftest
  7226. mkdir out
  7227. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7228. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7229. # Insert the option either (1) after the last *FLAGS variable, or
  7230. # (2) before a word containing "conftest.", or (3) at the end.
  7231. # Note that $ac_compile itself does not contain backslashes and begins
  7232. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7233. lt_compile=`echo "$ac_compile" | $SED \
  7234. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7235. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7236. -e 's:$: $lt_compiler_flag:'`
  7237. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7238. (eval "$lt_compile" 2>out/conftest.err)
  7239. ac_status=$?
  7240. cat out/conftest.err >&5
  7241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7242. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7243. then
  7244. # The compiler can only warn and ignore the option if not recognized
  7245. # So say no if there are warnings
  7246. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7247. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7248. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7249. lt_cv_prog_compiler_c_o=yes
  7250. fi
  7251. fi
  7252. chmod u+w . 2>&5
  7253. $RM conftest*
  7254. # SGI C++ compiler will create directory out/ii_files/ for
  7255. # template instantiation
  7256. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7257. $RM out/* && rmdir out
  7258. cd ..
  7259. $RM -r conftest
  7260. $RM conftest*
  7261. fi
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7263. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7265. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7266. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7267. $as_echo_n "(cached) " >&6
  7268. else
  7269. lt_cv_prog_compiler_c_o=no
  7270. $RM -r conftest 2>/dev/null
  7271. mkdir conftest
  7272. cd conftest
  7273. mkdir out
  7274. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7275. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7276. # Insert the option either (1) after the last *FLAGS variable, or
  7277. # (2) before a word containing "conftest.", or (3) at the end.
  7278. # Note that $ac_compile itself does not contain backslashes and begins
  7279. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7280. lt_compile=`echo "$ac_compile" | $SED \
  7281. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7282. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7283. -e 's:$: $lt_compiler_flag:'`
  7284. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7285. (eval "$lt_compile" 2>out/conftest.err)
  7286. ac_status=$?
  7287. cat out/conftest.err >&5
  7288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7289. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7290. then
  7291. # The compiler can only warn and ignore the option if not recognized
  7292. # So say no if there are warnings
  7293. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7294. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7295. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7296. lt_cv_prog_compiler_c_o=yes
  7297. fi
  7298. fi
  7299. chmod u+w . 2>&5
  7300. $RM conftest*
  7301. # SGI C++ compiler will create directory out/ii_files/ for
  7302. # template instantiation
  7303. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7304. $RM out/* && rmdir out
  7305. cd ..
  7306. $RM -r conftest
  7307. $RM conftest*
  7308. fi
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7310. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7311. hard_links="nottested"
  7312. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7313. # do not overwrite the value of need_locks provided by the user
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7315. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7316. hard_links=yes
  7317. $RM conftest*
  7318. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7319. touch conftest.a
  7320. ln conftest.a conftest.b 2>&5 || hard_links=no
  7321. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7323. $as_echo "$hard_links" >&6; }
  7324. if test "$hard_links" = no; then
  7325. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7326. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7327. need_locks=warn
  7328. fi
  7329. else
  7330. need_locks=no
  7331. fi
  7332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7333. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7334. runpath_var=
  7335. allow_undefined_flag=
  7336. always_export_symbols=no
  7337. archive_cmds=
  7338. archive_expsym_cmds=
  7339. compiler_needs_object=no
  7340. enable_shared_with_static_runtimes=no
  7341. export_dynamic_flag_spec=
  7342. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7343. hardcode_automatic=no
  7344. hardcode_direct=no
  7345. hardcode_direct_absolute=no
  7346. hardcode_libdir_flag_spec=
  7347. hardcode_libdir_flag_spec_ld=
  7348. hardcode_libdir_separator=
  7349. hardcode_minus_L=no
  7350. hardcode_shlibpath_var=unsupported
  7351. inherit_rpath=no
  7352. link_all_deplibs=unknown
  7353. module_cmds=
  7354. module_expsym_cmds=
  7355. old_archive_from_new_cmds=
  7356. old_archive_from_expsyms_cmds=
  7357. thread_safe_flag_spec=
  7358. whole_archive_flag_spec=
  7359. # include_expsyms should be a list of space-separated symbols to be *always*
  7360. # included in the symbol list
  7361. include_expsyms=
  7362. # exclude_expsyms can be an extended regexp of symbols to exclude
  7363. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7364. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7365. # as well as any symbol that contains `d'.
  7366. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7367. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7368. # platforms (ab)use it in PIC code, but their linkers get confused if
  7369. # the symbol is explicitly referenced. Since portable code cannot
  7370. # rely on this symbol name, it's probably fine to never include it in
  7371. # preloaded symbol tables.
  7372. # Exclude shared library initialization/finalization symbols.
  7373. extract_expsyms_cmds=
  7374. case $host_os in
  7375. cygwin* | mingw* | pw32* | cegcc*)
  7376. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7377. # When not using gcc, we currently assume that we are using
  7378. # Microsoft Visual C++.
  7379. if test "$GCC" != yes; then
  7380. with_gnu_ld=no
  7381. fi
  7382. ;;
  7383. interix*)
  7384. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7385. with_gnu_ld=yes
  7386. ;;
  7387. openbsd*)
  7388. with_gnu_ld=no
  7389. ;;
  7390. esac
  7391. ld_shlibs=yes
  7392. # On some targets, GNU ld is compatible enough with the native linker
  7393. # that we're better off using the native interface for both.
  7394. lt_use_gnu_ld_interface=no
  7395. if test "$with_gnu_ld" = yes; then
  7396. case $host_os in
  7397. aix*)
  7398. # The AIX port of GNU ld has always aspired to compatibility
  7399. # with the native linker. However, as the warning in the GNU ld
  7400. # block says, versions before 2.19.5* couldn't really create working
  7401. # shared libraries, regardless of the interface used.
  7402. case `$LD -v 2>&1` in
  7403. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7404. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7405. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7406. *)
  7407. lt_use_gnu_ld_interface=yes
  7408. ;;
  7409. esac
  7410. ;;
  7411. *)
  7412. lt_use_gnu_ld_interface=yes
  7413. ;;
  7414. esac
  7415. fi
  7416. if test "$lt_use_gnu_ld_interface" = yes; then
  7417. # If archive_cmds runs LD, not CC, wlarc should be empty
  7418. wlarc='${wl}'
  7419. # Set some defaults for GNU ld with shared library support. These
  7420. # are reset later if shared libraries are not supported. Putting them
  7421. # here allows them to be overridden if necessary.
  7422. runpath_var=LD_RUN_PATH
  7423. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7424. export_dynamic_flag_spec='${wl}--export-dynamic'
  7425. # ancient GNU ld didn't support --whole-archive et. al.
  7426. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7427. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7428. else
  7429. whole_archive_flag_spec=
  7430. fi
  7431. supports_anon_versioning=no
  7432. case `$LD -v 2>&1` in
  7433. *GNU\ gold*) supports_anon_versioning=yes ;;
  7434. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7435. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7436. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7437. *\ 2.11.*) ;; # other 2.11 versions
  7438. *) supports_anon_versioning=yes ;;
  7439. esac
  7440. # See if GNU ld supports shared libraries.
  7441. case $host_os in
  7442. aix[3-9]*)
  7443. # On AIX/PPC, the GNU linker is very broken
  7444. if test "$host_cpu" != ia64; then
  7445. ld_shlibs=no
  7446. cat <<_LT_EOF 1>&2
  7447. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7448. *** to be unable to reliably create shared libraries on AIX.
  7449. *** Therefore, libtool is disabling shared libraries support. If you
  7450. *** really care for shared libraries, you may want to install binutils
  7451. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7452. *** You will then need to restart the configuration process.
  7453. _LT_EOF
  7454. fi
  7455. ;;
  7456. amigaos*)
  7457. case $host_cpu in
  7458. powerpc)
  7459. # see comment about AmigaOS4 .so support
  7460. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7461. archive_expsym_cmds=''
  7462. ;;
  7463. m68k)
  7464. 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)'
  7465. hardcode_libdir_flag_spec='-L$libdir'
  7466. hardcode_minus_L=yes
  7467. ;;
  7468. esac
  7469. ;;
  7470. beos*)
  7471. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7472. allow_undefined_flag=unsupported
  7473. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7474. # support --undefined. This deserves some investigation. FIXME
  7475. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7476. else
  7477. ld_shlibs=no
  7478. fi
  7479. ;;
  7480. cygwin* | mingw* | pw32* | cegcc*)
  7481. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7482. # as there is no search path for DLLs.
  7483. hardcode_libdir_flag_spec='-L$libdir'
  7484. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7485. allow_undefined_flag=unsupported
  7486. always_export_symbols=no
  7487. enable_shared_with_static_runtimes=yes
  7488. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7489. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7490. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7491. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7492. # If the export-symbols file already is a .def file (1st line
  7493. # is EXPORTS), use it as is; otherwise, prepend...
  7494. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7495. cp $export_symbols $output_objdir/$soname.def;
  7496. else
  7497. echo EXPORTS > $output_objdir/$soname.def;
  7498. cat $export_symbols >> $output_objdir/$soname.def;
  7499. fi~
  7500. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7501. else
  7502. ld_shlibs=no
  7503. fi
  7504. ;;
  7505. haiku*)
  7506. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7507. link_all_deplibs=yes
  7508. ;;
  7509. interix[3-9]*)
  7510. hardcode_direct=no
  7511. hardcode_shlibpath_var=no
  7512. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7513. export_dynamic_flag_spec='${wl}-E'
  7514. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7515. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7516. # default) and relocated if they conflict, which is a slow very memory
  7517. # consuming and fragmenting process. To avoid this, we pick a random,
  7518. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7519. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7520. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7521. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7522. ;;
  7523. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7524. tmp_diet=no
  7525. if test "$host_os" = linux-dietlibc; then
  7526. case $cc_basename in
  7527. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7528. esac
  7529. fi
  7530. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7531. && test "$tmp_diet" = no
  7532. then
  7533. tmp_addflag=' $pic_flag'
  7534. tmp_sharedflag='-shared'
  7535. case $cc_basename,$host_cpu in
  7536. pgcc*) # Portland Group C compiler
  7537. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7538. tmp_addflag=' $pic_flag'
  7539. ;;
  7540. pgf77* | pgf90* | pgf95* | pgfortran*)
  7541. # Portland Group f77 and f90 compilers
  7542. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7543. tmp_addflag=' $pic_flag -Mnomain' ;;
  7544. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7545. tmp_addflag=' -i_dynamic' ;;
  7546. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7547. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7548. ifc* | ifort*) # Intel Fortran compiler
  7549. tmp_addflag=' -nofor_main' ;;
  7550. lf95*) # Lahey Fortran 8.1
  7551. whole_archive_flag_spec=
  7552. tmp_sharedflag='--shared' ;;
  7553. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7554. tmp_sharedflag='-qmkshrobj'
  7555. tmp_addflag= ;;
  7556. nvcc*) # Cuda Compiler Driver 2.2
  7557. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7558. compiler_needs_object=yes
  7559. ;;
  7560. esac
  7561. case `$CC -V 2>&1 | sed 5q` in
  7562. *Sun\ C*) # Sun C 5.9
  7563. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7564. compiler_needs_object=yes
  7565. tmp_sharedflag='-G' ;;
  7566. *Sun\ F*) # Sun Fortran 8.3
  7567. tmp_sharedflag='-G' ;;
  7568. esac
  7569. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7570. if test "x$supports_anon_versioning" = xyes; then
  7571. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7572. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7573. echo "local: *; };" >> $output_objdir/$libname.ver~
  7574. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7575. fi
  7576. case $cc_basename in
  7577. xlf* | bgf* | bgxlf* | mpixlf*)
  7578. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7579. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7580. hardcode_libdir_flag_spec=
  7581. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7582. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7583. if test "x$supports_anon_versioning" = xyes; then
  7584. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7585. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7586. echo "local: *; };" >> $output_objdir/$libname.ver~
  7587. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7588. fi
  7589. ;;
  7590. esac
  7591. else
  7592. ld_shlibs=no
  7593. fi
  7594. ;;
  7595. netbsd*)
  7596. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7597. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7598. wlarc=
  7599. else
  7600. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7601. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7602. fi
  7603. ;;
  7604. solaris*)
  7605. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7606. ld_shlibs=no
  7607. cat <<_LT_EOF 1>&2
  7608. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7609. *** create shared libraries on Solaris systems. Therefore, libtool
  7610. *** is disabling shared libraries support. We urge you to upgrade GNU
  7611. *** binutils to release 2.9.1 or newer. Another option is to modify
  7612. *** your PATH or compiler configuration so that the native linker is
  7613. *** used, and then restart.
  7614. _LT_EOF
  7615. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7616. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7617. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7618. else
  7619. ld_shlibs=no
  7620. fi
  7621. ;;
  7622. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7623. case `$LD -v 2>&1` in
  7624. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7625. ld_shlibs=no
  7626. cat <<_LT_EOF 1>&2
  7627. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7628. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7629. *** is disabling shared libraries support. We urge you to upgrade GNU
  7630. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7631. *** your PATH or compiler configuration so that the native linker is
  7632. *** used, and then restart.
  7633. _LT_EOF
  7634. ;;
  7635. *)
  7636. # For security reasons, it is highly recommended that you always
  7637. # use absolute paths for naming shared libraries, and exclude the
  7638. # DT_RUNPATH tag from executables and libraries. But doing so
  7639. # requires that you compile everything twice, which is a pain.
  7640. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7641. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7642. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7643. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7644. else
  7645. ld_shlibs=no
  7646. fi
  7647. ;;
  7648. esac
  7649. ;;
  7650. sunos4*)
  7651. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7652. wlarc=
  7653. hardcode_direct=yes
  7654. hardcode_shlibpath_var=no
  7655. ;;
  7656. *)
  7657. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7658. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7659. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7660. else
  7661. ld_shlibs=no
  7662. fi
  7663. ;;
  7664. esac
  7665. if test "$ld_shlibs" = no; then
  7666. runpath_var=
  7667. hardcode_libdir_flag_spec=
  7668. export_dynamic_flag_spec=
  7669. whole_archive_flag_spec=
  7670. fi
  7671. else
  7672. # PORTME fill in a description of your system's linker (not GNU ld)
  7673. case $host_os in
  7674. aix3*)
  7675. allow_undefined_flag=unsupported
  7676. always_export_symbols=yes
  7677. 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'
  7678. # Note: this linker hardcodes the directories in LIBPATH if there
  7679. # are no directories specified by -L.
  7680. hardcode_minus_L=yes
  7681. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7682. # Neither direct hardcoding nor static linking is supported with a
  7683. # broken collect2.
  7684. hardcode_direct=unsupported
  7685. fi
  7686. ;;
  7687. aix[4-9]*)
  7688. if test "$host_cpu" = ia64; then
  7689. # On IA64, the linker does run time linking by default, so we don't
  7690. # have to do anything special.
  7691. aix_use_runtimelinking=no
  7692. exp_sym_flag='-Bexport'
  7693. no_entry_flag=""
  7694. else
  7695. # If we're using GNU nm, then we don't want the "-C" option.
  7696. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7697. # Also, AIX nm treats weak defined symbols like other global
  7698. # defined symbols, whereas GNU nm marks them as "W".
  7699. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7700. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7701. else
  7702. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7703. fi
  7704. aix_use_runtimelinking=no
  7705. # Test if we are trying to use run time linking or normal
  7706. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7707. # need to do runtime linking.
  7708. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7709. for ld_flag in $LDFLAGS; do
  7710. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7711. aix_use_runtimelinking=yes
  7712. break
  7713. fi
  7714. done
  7715. ;;
  7716. esac
  7717. exp_sym_flag='-bexport'
  7718. no_entry_flag='-bnoentry'
  7719. fi
  7720. # When large executables or shared objects are built, AIX ld can
  7721. # have problems creating the table of contents. If linking a library
  7722. # or program results in "error TOC overflow" add -mminimal-toc to
  7723. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7724. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7725. archive_cmds=''
  7726. hardcode_direct=yes
  7727. hardcode_direct_absolute=yes
  7728. hardcode_libdir_separator=':'
  7729. link_all_deplibs=yes
  7730. file_list_spec='${wl}-f,'
  7731. if test "$GCC" = yes; then
  7732. case $host_os in aix4.[012]|aix4.[012].*)
  7733. # We only want to do this on AIX 4.2 and lower, the check
  7734. # below for broken collect2 doesn't work under 4.3+
  7735. collect2name=`${CC} -print-prog-name=collect2`
  7736. if test -f "$collect2name" &&
  7737. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7738. then
  7739. # We have reworked collect2
  7740. :
  7741. else
  7742. # We have old collect2
  7743. hardcode_direct=unsupported
  7744. # It fails to find uninstalled libraries when the uninstalled
  7745. # path is not listed in the libpath. Setting hardcode_minus_L
  7746. # to unsupported forces relinking
  7747. hardcode_minus_L=yes
  7748. hardcode_libdir_flag_spec='-L$libdir'
  7749. hardcode_libdir_separator=
  7750. fi
  7751. ;;
  7752. esac
  7753. shared_flag='-shared'
  7754. if test "$aix_use_runtimelinking" = yes; then
  7755. shared_flag="$shared_flag "'${wl}-G'
  7756. fi
  7757. else
  7758. # not using gcc
  7759. if test "$host_cpu" = ia64; then
  7760. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7761. # chokes on -Wl,-G. The following line is correct:
  7762. shared_flag='-G'
  7763. else
  7764. if test "$aix_use_runtimelinking" = yes; then
  7765. shared_flag='${wl}-G'
  7766. else
  7767. shared_flag='${wl}-bM:SRE'
  7768. fi
  7769. fi
  7770. fi
  7771. export_dynamic_flag_spec='${wl}-bexpall'
  7772. # It seems that -bexpall does not export symbols beginning with
  7773. # underscore (_), so it is better to generate a list of symbols to export.
  7774. always_export_symbols=yes
  7775. if test "$aix_use_runtimelinking" = yes; then
  7776. # Warning - without using the other runtime loading flags (-brtl),
  7777. # -berok will link without error, but may produce a broken library.
  7778. allow_undefined_flag='-berok'
  7779. # Determine the default libpath from the value encoded in an
  7780. # empty executable.
  7781. if test "${lt_cv_aix_libpath+set}" = set; then
  7782. aix_libpath=$lt_cv_aix_libpath
  7783. else
  7784. if ${lt_cv_aix_libpath_+:} false; then :
  7785. $as_echo_n "(cached) " >&6
  7786. else
  7787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7788. /* end confdefs.h. */
  7789. int
  7790. main ()
  7791. {
  7792. ;
  7793. return 0;
  7794. }
  7795. _ACEOF
  7796. if ac_fn_c_try_link "$LINENO"; then :
  7797. lt_aix_libpath_sed='
  7798. /Import File Strings/,/^$/ {
  7799. /^0/ {
  7800. s/^0 *\([^ ]*\) *$/\1/
  7801. p
  7802. }
  7803. }'
  7804. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7805. # Check for a 64-bit object if we didn't find anything.
  7806. if test -z "$lt_cv_aix_libpath_"; then
  7807. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7808. fi
  7809. fi
  7810. rm -f core conftest.err conftest.$ac_objext \
  7811. conftest$ac_exeext conftest.$ac_ext
  7812. if test -z "$lt_cv_aix_libpath_"; then
  7813. lt_cv_aix_libpath_="/usr/lib:/lib"
  7814. fi
  7815. fi
  7816. aix_libpath=$lt_cv_aix_libpath_
  7817. fi
  7818. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7819. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7820. else
  7821. if test "$host_cpu" = ia64; then
  7822. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7823. allow_undefined_flag="-z nodefs"
  7824. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7825. else
  7826. # Determine the default libpath from the value encoded in an
  7827. # empty executable.
  7828. if test "${lt_cv_aix_libpath+set}" = set; then
  7829. aix_libpath=$lt_cv_aix_libpath
  7830. else
  7831. if ${lt_cv_aix_libpath_+:} false; then :
  7832. $as_echo_n "(cached) " >&6
  7833. else
  7834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7835. /* end confdefs.h. */
  7836. int
  7837. main ()
  7838. {
  7839. ;
  7840. return 0;
  7841. }
  7842. _ACEOF
  7843. if ac_fn_c_try_link "$LINENO"; then :
  7844. lt_aix_libpath_sed='
  7845. /Import File Strings/,/^$/ {
  7846. /^0/ {
  7847. s/^0 *\([^ ]*\) *$/\1/
  7848. p
  7849. }
  7850. }'
  7851. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7852. # Check for a 64-bit object if we didn't find anything.
  7853. if test -z "$lt_cv_aix_libpath_"; then
  7854. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7855. fi
  7856. fi
  7857. rm -f core conftest.err conftest.$ac_objext \
  7858. conftest$ac_exeext conftest.$ac_ext
  7859. if test -z "$lt_cv_aix_libpath_"; then
  7860. lt_cv_aix_libpath_="/usr/lib:/lib"
  7861. fi
  7862. fi
  7863. aix_libpath=$lt_cv_aix_libpath_
  7864. fi
  7865. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7866. # Warning - without using the other run time loading flags,
  7867. # -berok will link without error, but may produce a broken library.
  7868. no_undefined_flag=' ${wl}-bernotok'
  7869. allow_undefined_flag=' ${wl}-berok'
  7870. if test "$with_gnu_ld" = yes; then
  7871. # We only use this code for GNU lds that support --whole-archive.
  7872. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7873. else
  7874. # Exported symbols can be pulled into shared objects from archives
  7875. whole_archive_flag_spec='$convenience'
  7876. fi
  7877. archive_cmds_need_lc=yes
  7878. # This is similar to how AIX traditionally builds its shared libraries.
  7879. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7880. fi
  7881. fi
  7882. ;;
  7883. amigaos*)
  7884. case $host_cpu in
  7885. powerpc)
  7886. # see comment about AmigaOS4 .so support
  7887. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7888. archive_expsym_cmds=''
  7889. ;;
  7890. m68k)
  7891. 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)'
  7892. hardcode_libdir_flag_spec='-L$libdir'
  7893. hardcode_minus_L=yes
  7894. ;;
  7895. esac
  7896. ;;
  7897. bsdi[45]*)
  7898. export_dynamic_flag_spec=-rdynamic
  7899. ;;
  7900. cygwin* | mingw* | pw32* | cegcc*)
  7901. # When not using gcc, we currently assume that we are using
  7902. # Microsoft Visual C++.
  7903. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7904. # no search path for DLLs.
  7905. case $cc_basename in
  7906. cl*)
  7907. # Native MSVC
  7908. hardcode_libdir_flag_spec=' '
  7909. allow_undefined_flag=unsupported
  7910. always_export_symbols=yes
  7911. file_list_spec='@'
  7912. # Tell ltmain to make .lib files, not .a files.
  7913. libext=lib
  7914. # Tell ltmain to make .dll files, not .so files.
  7915. shrext_cmds=".dll"
  7916. # FIXME: Setting linknames here is a bad hack.
  7917. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7918. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7919. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7920. else
  7921. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7922. fi~
  7923. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7924. linknames='
  7925. # The linker will not automatically build a static lib if we build a DLL.
  7926. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7927. enable_shared_with_static_runtimes=yes
  7928. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7929. # Don't use ranlib
  7930. old_postinstall_cmds='chmod 644 $oldlib'
  7931. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7932. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7933. case $lt_outputfile in
  7934. *.exe|*.EXE) ;;
  7935. *)
  7936. lt_outputfile="$lt_outputfile.exe"
  7937. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7938. ;;
  7939. esac~
  7940. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7941. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7942. $RM "$lt_outputfile.manifest";
  7943. fi'
  7944. ;;
  7945. *)
  7946. # Assume MSVC wrapper
  7947. hardcode_libdir_flag_spec=' '
  7948. allow_undefined_flag=unsupported
  7949. # Tell ltmain to make .lib files, not .a files.
  7950. libext=lib
  7951. # Tell ltmain to make .dll files, not .so files.
  7952. shrext_cmds=".dll"
  7953. # FIXME: Setting linknames here is a bad hack.
  7954. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7955. # The linker will automatically build a .lib file if we build a DLL.
  7956. old_archive_from_new_cmds='true'
  7957. # FIXME: Should let the user specify the lib program.
  7958. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7959. enable_shared_with_static_runtimes=yes
  7960. ;;
  7961. esac
  7962. ;;
  7963. darwin* | rhapsody*)
  7964. archive_cmds_need_lc=no
  7965. hardcode_direct=no
  7966. hardcode_automatic=yes
  7967. hardcode_shlibpath_var=unsupported
  7968. if test "$lt_cv_ld_force_load" = "yes"; then
  7969. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  7970. else
  7971. whole_archive_flag_spec=''
  7972. fi
  7973. link_all_deplibs=yes
  7974. allow_undefined_flag="$_lt_dar_allow_undefined"
  7975. case $cc_basename in
  7976. ifort*) _lt_dar_can_shared=yes ;;
  7977. *) _lt_dar_can_shared=$GCC ;;
  7978. esac
  7979. if test "$_lt_dar_can_shared" = "yes"; then
  7980. output_verbose_link_cmd=func_echo_all
  7981. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7982. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7983. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  7984. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  7985. else
  7986. ld_shlibs=no
  7987. fi
  7988. ;;
  7989. dgux*)
  7990. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7991. hardcode_libdir_flag_spec='-L$libdir'
  7992. hardcode_shlibpath_var=no
  7993. ;;
  7994. freebsd1*)
  7995. ld_shlibs=no
  7996. ;;
  7997. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7998. # support. Future versions do this automatically, but an explicit c++rt0.o
  7999. # does not break anything, and helps significantly (at the cost of a little
  8000. # extra space).
  8001. freebsd2.2*)
  8002. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8003. hardcode_libdir_flag_spec='-R$libdir'
  8004. hardcode_direct=yes
  8005. hardcode_shlibpath_var=no
  8006. ;;
  8007. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8008. freebsd2*)
  8009. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8010. hardcode_direct=yes
  8011. hardcode_minus_L=yes
  8012. hardcode_shlibpath_var=no
  8013. ;;
  8014. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8015. freebsd* | dragonfly*)
  8016. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8017. hardcode_libdir_flag_spec='-R$libdir'
  8018. hardcode_direct=yes
  8019. hardcode_shlibpath_var=no
  8020. ;;
  8021. hpux9*)
  8022. if test "$GCC" = yes; then
  8023. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8024. else
  8025. 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'
  8026. fi
  8027. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8028. hardcode_libdir_separator=:
  8029. hardcode_direct=yes
  8030. # hardcode_minus_L: Not really in the search PATH,
  8031. # but as the default location of the library.
  8032. hardcode_minus_L=yes
  8033. export_dynamic_flag_spec='${wl}-E'
  8034. ;;
  8035. hpux10*)
  8036. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8037. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8038. else
  8039. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8040. fi
  8041. if test "$with_gnu_ld" = no; then
  8042. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8043. hardcode_libdir_flag_spec_ld='+b $libdir'
  8044. hardcode_libdir_separator=:
  8045. hardcode_direct=yes
  8046. hardcode_direct_absolute=yes
  8047. export_dynamic_flag_spec='${wl}-E'
  8048. # hardcode_minus_L: Not really in the search PATH,
  8049. # but as the default location of the library.
  8050. hardcode_minus_L=yes
  8051. fi
  8052. ;;
  8053. hpux11*)
  8054. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8055. case $host_cpu in
  8056. hppa*64*)
  8057. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8058. ;;
  8059. ia64*)
  8060. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8061. ;;
  8062. *)
  8063. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8064. ;;
  8065. esac
  8066. else
  8067. case $host_cpu in
  8068. hppa*64*)
  8069. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8070. ;;
  8071. ia64*)
  8072. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8073. ;;
  8074. *)
  8075. # Older versions of the 11.00 compiler do not understand -b yet
  8076. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8078. $as_echo_n "checking if $CC understands -b... " >&6; }
  8079. if ${lt_cv_prog_compiler__b+:} false; then :
  8080. $as_echo_n "(cached) " >&6
  8081. else
  8082. lt_cv_prog_compiler__b=no
  8083. save_LDFLAGS="$LDFLAGS"
  8084. LDFLAGS="$LDFLAGS -b"
  8085. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8086. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8087. # The linker can only warn and ignore the option if not recognized
  8088. # So say no if there are warnings
  8089. if test -s conftest.err; then
  8090. # Append any errors to the config.log.
  8091. cat conftest.err 1>&5
  8092. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8093. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8094. if diff conftest.exp conftest.er2 >/dev/null; then
  8095. lt_cv_prog_compiler__b=yes
  8096. fi
  8097. else
  8098. lt_cv_prog_compiler__b=yes
  8099. fi
  8100. fi
  8101. $RM -r conftest*
  8102. LDFLAGS="$save_LDFLAGS"
  8103. fi
  8104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8105. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8106. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8107. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8108. else
  8109. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8110. fi
  8111. ;;
  8112. esac
  8113. fi
  8114. if test "$with_gnu_ld" = no; then
  8115. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8116. hardcode_libdir_separator=:
  8117. case $host_cpu in
  8118. hppa*64*|ia64*)
  8119. hardcode_direct=no
  8120. hardcode_shlibpath_var=no
  8121. ;;
  8122. *)
  8123. hardcode_direct=yes
  8124. hardcode_direct_absolute=yes
  8125. export_dynamic_flag_spec='${wl}-E'
  8126. # hardcode_minus_L: Not really in the search PATH,
  8127. # but as the default location of the library.
  8128. hardcode_minus_L=yes
  8129. ;;
  8130. esac
  8131. fi
  8132. ;;
  8133. irix5* | irix6* | nonstopux*)
  8134. if test "$GCC" = yes; then
  8135. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8136. # Try to use the -exported_symbol ld option, if it does not
  8137. # work, assume that -exports_file does not work either and
  8138. # implicitly export all symbols.
  8139. # This should be the same for all languages, so no per-tag cache variable.
  8140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8141. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8142. if ${lt_cv_irix_exported_symbol+:} false; then :
  8143. $as_echo_n "(cached) " >&6
  8144. else
  8145. save_LDFLAGS="$LDFLAGS"
  8146. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8148. /* end confdefs.h. */
  8149. int foo (void) { return 0; }
  8150. _ACEOF
  8151. if ac_fn_c_try_link "$LINENO"; then :
  8152. lt_cv_irix_exported_symbol=yes
  8153. else
  8154. lt_cv_irix_exported_symbol=no
  8155. fi
  8156. rm -f core conftest.err conftest.$ac_objext \
  8157. conftest$ac_exeext conftest.$ac_ext
  8158. LDFLAGS="$save_LDFLAGS"
  8159. fi
  8160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8161. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8162. if test "$lt_cv_irix_exported_symbol" = yes; then
  8163. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8164. fi
  8165. else
  8166. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8167. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8168. fi
  8169. archive_cmds_need_lc='no'
  8170. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8171. hardcode_libdir_separator=:
  8172. inherit_rpath=yes
  8173. link_all_deplibs=yes
  8174. ;;
  8175. netbsd*)
  8176. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8177. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8178. else
  8179. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8180. fi
  8181. hardcode_libdir_flag_spec='-R$libdir'
  8182. hardcode_direct=yes
  8183. hardcode_shlibpath_var=no
  8184. ;;
  8185. newsos6)
  8186. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8187. hardcode_direct=yes
  8188. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8189. hardcode_libdir_separator=:
  8190. hardcode_shlibpath_var=no
  8191. ;;
  8192. *nto* | *qnx*)
  8193. ;;
  8194. openbsd*)
  8195. if test -f /usr/libexec/ld.so; then
  8196. hardcode_direct=yes
  8197. hardcode_shlibpath_var=no
  8198. hardcode_direct_absolute=yes
  8199. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8200. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8201. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8202. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8203. export_dynamic_flag_spec='${wl}-E'
  8204. else
  8205. case $host_os in
  8206. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8207. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8208. hardcode_libdir_flag_spec='-R$libdir'
  8209. ;;
  8210. *)
  8211. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8212. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8213. ;;
  8214. esac
  8215. fi
  8216. else
  8217. ld_shlibs=no
  8218. fi
  8219. ;;
  8220. os2*)
  8221. hardcode_libdir_flag_spec='-L$libdir'
  8222. hardcode_minus_L=yes
  8223. allow_undefined_flag=unsupported
  8224. 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'
  8225. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8226. ;;
  8227. osf3*)
  8228. if test "$GCC" = yes; then
  8229. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8230. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8231. else
  8232. allow_undefined_flag=' -expect_unresolved \*'
  8233. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8234. fi
  8235. archive_cmds_need_lc='no'
  8236. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8237. hardcode_libdir_separator=:
  8238. ;;
  8239. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8240. if test "$GCC" = yes; then
  8241. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8242. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8243. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8244. else
  8245. allow_undefined_flag=' -expect_unresolved \*'
  8246. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8247. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8248. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8249. # Both c and cxx compiler support -rpath directly
  8250. hardcode_libdir_flag_spec='-rpath $libdir'
  8251. fi
  8252. archive_cmds_need_lc='no'
  8253. hardcode_libdir_separator=:
  8254. ;;
  8255. solaris*)
  8256. no_undefined_flag=' -z defs'
  8257. if test "$GCC" = yes; then
  8258. wlarc='${wl}'
  8259. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8260. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8261. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8262. else
  8263. case `$CC -V 2>&1` in
  8264. *"Compilers 5.0"*)
  8265. wlarc=''
  8266. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8267. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8268. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8269. ;;
  8270. *)
  8271. wlarc='${wl}'
  8272. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8273. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8274. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8275. ;;
  8276. esac
  8277. fi
  8278. hardcode_libdir_flag_spec='-R$libdir'
  8279. hardcode_shlibpath_var=no
  8280. case $host_os in
  8281. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8282. *)
  8283. # The compiler driver will combine and reorder linker options,
  8284. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8285. # but is careful enough not to reorder.
  8286. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8287. if test "$GCC" = yes; then
  8288. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8289. else
  8290. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8291. fi
  8292. ;;
  8293. esac
  8294. link_all_deplibs=yes
  8295. ;;
  8296. sunos4*)
  8297. if test "x$host_vendor" = xsequent; then
  8298. # Use $CC to link under sequent, because it throws in some extra .o
  8299. # files that make .init and .fini sections work.
  8300. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8301. else
  8302. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8303. fi
  8304. hardcode_libdir_flag_spec='-L$libdir'
  8305. hardcode_direct=yes
  8306. hardcode_minus_L=yes
  8307. hardcode_shlibpath_var=no
  8308. ;;
  8309. sysv4)
  8310. case $host_vendor in
  8311. sni)
  8312. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8313. hardcode_direct=yes # is this really true???
  8314. ;;
  8315. siemens)
  8316. ## LD is ld it makes a PLAMLIB
  8317. ## CC just makes a GrossModule.
  8318. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8319. reload_cmds='$CC -r -o $output$reload_objs'
  8320. hardcode_direct=no
  8321. ;;
  8322. motorola)
  8323. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8324. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8325. ;;
  8326. esac
  8327. runpath_var='LD_RUN_PATH'
  8328. hardcode_shlibpath_var=no
  8329. ;;
  8330. sysv4.3*)
  8331. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8332. hardcode_shlibpath_var=no
  8333. export_dynamic_flag_spec='-Bexport'
  8334. ;;
  8335. sysv4*MP*)
  8336. if test -d /usr/nec; then
  8337. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8338. hardcode_shlibpath_var=no
  8339. runpath_var=LD_RUN_PATH
  8340. hardcode_runpath_var=yes
  8341. ld_shlibs=yes
  8342. fi
  8343. ;;
  8344. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8345. no_undefined_flag='${wl}-z,text'
  8346. archive_cmds_need_lc=no
  8347. hardcode_shlibpath_var=no
  8348. runpath_var='LD_RUN_PATH'
  8349. if test "$GCC" = yes; then
  8350. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8351. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8352. else
  8353. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8354. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8355. fi
  8356. ;;
  8357. sysv5* | sco3.2v5* | sco5v6*)
  8358. # Note: We can NOT use -z defs as we might desire, because we do not
  8359. # link with -lc, and that would cause any symbols used from libc to
  8360. # always be unresolved, which means just about no library would
  8361. # ever link correctly. If we're not using GNU ld we use -z text
  8362. # though, which does catch some bad symbols but isn't as heavy-handed
  8363. # as -z defs.
  8364. no_undefined_flag='${wl}-z,text'
  8365. allow_undefined_flag='${wl}-z,nodefs'
  8366. archive_cmds_need_lc=no
  8367. hardcode_shlibpath_var=no
  8368. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8369. hardcode_libdir_separator=':'
  8370. link_all_deplibs=yes
  8371. export_dynamic_flag_spec='${wl}-Bexport'
  8372. runpath_var='LD_RUN_PATH'
  8373. if test "$GCC" = yes; then
  8374. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8375. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8376. else
  8377. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8378. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8379. fi
  8380. ;;
  8381. uts4*)
  8382. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8383. hardcode_libdir_flag_spec='-L$libdir'
  8384. hardcode_shlibpath_var=no
  8385. ;;
  8386. *)
  8387. ld_shlibs=no
  8388. ;;
  8389. esac
  8390. if test x$host_vendor = xsni; then
  8391. case $host in
  8392. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8393. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8394. ;;
  8395. esac
  8396. fi
  8397. fi
  8398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8399. $as_echo "$ld_shlibs" >&6; }
  8400. test "$ld_shlibs" = no && can_build_shared=no
  8401. with_gnu_ld=$with_gnu_ld
  8402. #
  8403. # Do we need to explicitly link libc?
  8404. #
  8405. case "x$archive_cmds_need_lc" in
  8406. x|xyes)
  8407. # Assume -lc should be added
  8408. archive_cmds_need_lc=yes
  8409. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8410. case $archive_cmds in
  8411. *'~'*)
  8412. # FIXME: we may have to deal with multi-command sequences.
  8413. ;;
  8414. '$CC '*)
  8415. # Test whether the compiler implicitly links with -lc since on some
  8416. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8417. # to ld, don't add -lc before -lgcc.
  8418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8419. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8420. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8421. $as_echo_n "(cached) " >&6
  8422. else
  8423. $RM conftest*
  8424. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8425. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8426. (eval $ac_compile) 2>&5
  8427. ac_status=$?
  8428. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8429. test $ac_status = 0; } 2>conftest.err; then
  8430. soname=conftest
  8431. lib=conftest
  8432. libobjs=conftest.$ac_objext
  8433. deplibs=
  8434. wl=$lt_prog_compiler_wl
  8435. pic_flag=$lt_prog_compiler_pic
  8436. compiler_flags=-v
  8437. linker_flags=-v
  8438. verstring=
  8439. output_objdir=.
  8440. libname=conftest
  8441. lt_save_allow_undefined_flag=$allow_undefined_flag
  8442. allow_undefined_flag=
  8443. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8444. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8445. ac_status=$?
  8446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8447. test $ac_status = 0; }
  8448. then
  8449. lt_cv_archive_cmds_need_lc=no
  8450. else
  8451. lt_cv_archive_cmds_need_lc=yes
  8452. fi
  8453. allow_undefined_flag=$lt_save_allow_undefined_flag
  8454. else
  8455. cat conftest.err 1>&5
  8456. fi
  8457. $RM conftest*
  8458. fi
  8459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8460. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8461. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8462. ;;
  8463. esac
  8464. fi
  8465. ;;
  8466. esac
  8467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8468. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8469. if test "$GCC" = yes; then
  8470. case $host_os in
  8471. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8472. *) lt_awk_arg="/^libraries:/" ;;
  8473. esac
  8474. case $host_os in
  8475. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8476. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8477. esac
  8478. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8479. case $lt_search_path_spec in
  8480. *\;*)
  8481. # if the path contains ";" then we assume it to be the separator
  8482. # otherwise default to the standard path separator (i.e. ":") - it is
  8483. # assumed that no part of a normal pathname contains ";" but that should
  8484. # okay in the real world where ";" in dirpaths is itself problematic.
  8485. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8486. ;;
  8487. *)
  8488. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8489. ;;
  8490. esac
  8491. # Ok, now we have the path, separated by spaces, we can step through it
  8492. # and add multilib dir if necessary.
  8493. lt_tmp_lt_search_path_spec=
  8494. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8495. for lt_sys_path in $lt_search_path_spec; do
  8496. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8497. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8498. else
  8499. test -d "$lt_sys_path" && \
  8500. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8501. fi
  8502. done
  8503. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8504. BEGIN {RS=" "; FS="/|\n";} {
  8505. lt_foo="";
  8506. lt_count=0;
  8507. for (lt_i = NF; lt_i > 0; lt_i--) {
  8508. if ($lt_i != "" && $lt_i != ".") {
  8509. if ($lt_i == "..") {
  8510. lt_count++;
  8511. } else {
  8512. if (lt_count == 0) {
  8513. lt_foo="/" $lt_i lt_foo;
  8514. } else {
  8515. lt_count--;
  8516. }
  8517. }
  8518. }
  8519. }
  8520. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8521. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8522. }'`
  8523. # AWK program above erroneously prepends '/' to C:/dos/paths
  8524. # for these hosts.
  8525. case $host_os in
  8526. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8527. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8528. esac
  8529. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8530. else
  8531. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8532. fi
  8533. library_names_spec=
  8534. libname_spec='lib$name'
  8535. soname_spec=
  8536. shrext_cmds=".so"
  8537. postinstall_cmds=
  8538. postuninstall_cmds=
  8539. finish_cmds=
  8540. finish_eval=
  8541. shlibpath_var=
  8542. shlibpath_overrides_runpath=unknown
  8543. version_type=none
  8544. dynamic_linker="$host_os ld.so"
  8545. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8546. need_lib_prefix=unknown
  8547. hardcode_into_libs=no
  8548. # when you set need_version to no, make sure it does not cause -set_version
  8549. # flags to be left without arguments
  8550. need_version=unknown
  8551. case $host_os in
  8552. aix3*)
  8553. version_type=linux
  8554. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8555. shlibpath_var=LIBPATH
  8556. # AIX 3 has no versioning support, so we append a major version to the name.
  8557. soname_spec='${libname}${release}${shared_ext}$major'
  8558. ;;
  8559. aix[4-9]*)
  8560. version_type=linux
  8561. need_lib_prefix=no
  8562. need_version=no
  8563. hardcode_into_libs=yes
  8564. if test "$host_cpu" = ia64; then
  8565. # AIX 5 supports IA64
  8566. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8567. shlibpath_var=LD_LIBRARY_PATH
  8568. else
  8569. # With GCC up to 2.95.x, collect2 would create an import file
  8570. # for dependence libraries. The import file would start with
  8571. # the line `#! .'. This would cause the generated library to
  8572. # depend on `.', always an invalid library. This was fixed in
  8573. # development snapshots of GCC prior to 3.0.
  8574. case $host_os in
  8575. aix4 | aix4.[01] | aix4.[01].*)
  8576. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8577. echo ' yes '
  8578. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8579. :
  8580. else
  8581. can_build_shared=no
  8582. fi
  8583. ;;
  8584. esac
  8585. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8586. # soname into executable. Probably we can add versioning support to
  8587. # collect2, so additional links can be useful in future.
  8588. if test "$aix_use_runtimelinking" = yes; then
  8589. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8590. # instead of lib<name>.a to let people know that these are not
  8591. # typical AIX shared libraries.
  8592. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8593. else
  8594. # We preserve .a as extension for shared libraries through AIX4.2
  8595. # and later when we are not doing run time linking.
  8596. library_names_spec='${libname}${release}.a $libname.a'
  8597. soname_spec='${libname}${release}${shared_ext}$major'
  8598. fi
  8599. shlibpath_var=LIBPATH
  8600. fi
  8601. ;;
  8602. amigaos*)
  8603. case $host_cpu in
  8604. powerpc)
  8605. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8606. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8607. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8608. ;;
  8609. m68k)
  8610. library_names_spec='$libname.ixlibrary $libname.a'
  8611. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8612. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8613. ;;
  8614. esac
  8615. ;;
  8616. beos*)
  8617. library_names_spec='${libname}${shared_ext}'
  8618. dynamic_linker="$host_os ld.so"
  8619. shlibpath_var=LIBRARY_PATH
  8620. ;;
  8621. bsdi[45]*)
  8622. version_type=linux
  8623. need_version=no
  8624. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8625. soname_spec='${libname}${release}${shared_ext}$major'
  8626. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8627. shlibpath_var=LD_LIBRARY_PATH
  8628. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8629. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8630. # the default ld.so.conf also contains /usr/contrib/lib and
  8631. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8632. # libtool to hard-code these into programs
  8633. ;;
  8634. cygwin* | mingw* | pw32* | cegcc*)
  8635. version_type=windows
  8636. shrext_cmds=".dll"
  8637. need_version=no
  8638. need_lib_prefix=no
  8639. case $GCC,$cc_basename in
  8640. yes,*)
  8641. # gcc
  8642. library_names_spec='$libname.dll.a'
  8643. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8644. postinstall_cmds='base_file=`basename \${file}`~
  8645. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8646. dldir=$destdir/`dirname \$dlpath`~
  8647. test -d \$dldir || mkdir -p \$dldir~
  8648. $install_prog $dir/$dlname \$dldir/$dlname~
  8649. chmod a+x \$dldir/$dlname~
  8650. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8651. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8652. fi'
  8653. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8654. dlpath=$dir/\$dldll~
  8655. $RM \$dlpath'
  8656. shlibpath_overrides_runpath=yes
  8657. case $host_os in
  8658. cygwin*)
  8659. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8660. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8661. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8662. ;;
  8663. mingw* | cegcc*)
  8664. # MinGW DLLs use traditional 'lib' prefix
  8665. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8666. ;;
  8667. pw32*)
  8668. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8669. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8670. ;;
  8671. esac
  8672. dynamic_linker='Win32 ld.exe'
  8673. ;;
  8674. *,cl*)
  8675. # Native MSVC
  8676. libname_spec='$name'
  8677. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8678. library_names_spec='${libname}.dll.lib'
  8679. case $build_os in
  8680. mingw*)
  8681. sys_lib_search_path_spec=
  8682. lt_save_ifs=$IFS
  8683. IFS=';'
  8684. for lt_path in $LIB
  8685. do
  8686. IFS=$lt_save_ifs
  8687. # Let DOS variable expansion print the short 8.3 style file name.
  8688. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8689. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8690. done
  8691. IFS=$lt_save_ifs
  8692. # Convert to MSYS style.
  8693. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8694. ;;
  8695. cygwin*)
  8696. # Convert to unix form, then to dos form, then back to unix form
  8697. # but this time dos style (no spaces!) so that the unix form looks
  8698. # like /cygdrive/c/PROGRA~1:/cygdr...
  8699. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8700. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8701. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8702. ;;
  8703. *)
  8704. sys_lib_search_path_spec="$LIB"
  8705. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8706. # It is most probably a Windows format PATH.
  8707. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8708. else
  8709. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8710. fi
  8711. # FIXME: find the short name or the path components, as spaces are
  8712. # common. (e.g. "Program Files" -> "PROGRA~1")
  8713. ;;
  8714. esac
  8715. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8716. postinstall_cmds='base_file=`basename \${file}`~
  8717. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8718. dldir=$destdir/`dirname \$dlpath`~
  8719. test -d \$dldir || mkdir -p \$dldir~
  8720. $install_prog $dir/$dlname \$dldir/$dlname'
  8721. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8722. dlpath=$dir/\$dldll~
  8723. $RM \$dlpath'
  8724. shlibpath_overrides_runpath=yes
  8725. dynamic_linker='Win32 link.exe'
  8726. ;;
  8727. *)
  8728. # Assume MSVC wrapper
  8729. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8730. dynamic_linker='Win32 ld.exe'
  8731. ;;
  8732. esac
  8733. # FIXME: first we should search . and the directory the executable is in
  8734. shlibpath_var=PATH
  8735. ;;
  8736. darwin* | rhapsody*)
  8737. dynamic_linker="$host_os dyld"
  8738. version_type=darwin
  8739. need_lib_prefix=no
  8740. need_version=no
  8741. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8742. soname_spec='${libname}${release}${major}$shared_ext'
  8743. shlibpath_overrides_runpath=yes
  8744. shlibpath_var=DYLD_LIBRARY_PATH
  8745. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8746. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8747. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8748. ;;
  8749. dgux*)
  8750. version_type=linux
  8751. need_lib_prefix=no
  8752. need_version=no
  8753. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8754. soname_spec='${libname}${release}${shared_ext}$major'
  8755. shlibpath_var=LD_LIBRARY_PATH
  8756. ;;
  8757. freebsd1*)
  8758. dynamic_linker=no
  8759. ;;
  8760. freebsd* | dragonfly*)
  8761. # DragonFly does not have aout. When/if they implement a new
  8762. # versioning mechanism, adjust this.
  8763. if test -x /usr/bin/objformat; then
  8764. objformat=`/usr/bin/objformat`
  8765. else
  8766. case $host_os in
  8767. freebsd[123]*) objformat=aout ;;
  8768. *) objformat=elf ;;
  8769. esac
  8770. fi
  8771. version_type=freebsd-$objformat
  8772. case $version_type in
  8773. freebsd-elf*)
  8774. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8775. need_version=no
  8776. need_lib_prefix=no
  8777. ;;
  8778. freebsd-*)
  8779. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8780. need_version=yes
  8781. ;;
  8782. esac
  8783. shlibpath_var=LD_LIBRARY_PATH
  8784. case $host_os in
  8785. freebsd2*)
  8786. shlibpath_overrides_runpath=yes
  8787. ;;
  8788. freebsd3.[01]* | freebsdelf3.[01]*)
  8789. shlibpath_overrides_runpath=yes
  8790. hardcode_into_libs=yes
  8791. ;;
  8792. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8793. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8794. shlibpath_overrides_runpath=no
  8795. hardcode_into_libs=yes
  8796. ;;
  8797. *) # from 4.6 on, and DragonFly
  8798. shlibpath_overrides_runpath=yes
  8799. hardcode_into_libs=yes
  8800. ;;
  8801. esac
  8802. ;;
  8803. gnu*)
  8804. version_type=linux
  8805. need_lib_prefix=no
  8806. need_version=no
  8807. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8808. soname_spec='${libname}${release}${shared_ext}$major'
  8809. shlibpath_var=LD_LIBRARY_PATH
  8810. hardcode_into_libs=yes
  8811. ;;
  8812. haiku*)
  8813. version_type=linux
  8814. need_lib_prefix=no
  8815. need_version=no
  8816. dynamic_linker="$host_os runtime_loader"
  8817. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8818. soname_spec='${libname}${release}${shared_ext}$major'
  8819. shlibpath_var=LIBRARY_PATH
  8820. shlibpath_overrides_runpath=yes
  8821. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8822. hardcode_into_libs=yes
  8823. ;;
  8824. hpux9* | hpux10* | hpux11*)
  8825. # Give a soname corresponding to the major version so that dld.sl refuses to
  8826. # link against other versions.
  8827. version_type=sunos
  8828. need_lib_prefix=no
  8829. need_version=no
  8830. case $host_cpu in
  8831. ia64*)
  8832. shrext_cmds='.so'
  8833. hardcode_into_libs=yes
  8834. dynamic_linker="$host_os dld.so"
  8835. shlibpath_var=LD_LIBRARY_PATH
  8836. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8837. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8838. soname_spec='${libname}${release}${shared_ext}$major'
  8839. if test "X$HPUX_IA64_MODE" = X32; then
  8840. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8841. else
  8842. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8843. fi
  8844. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8845. ;;
  8846. hppa*64*)
  8847. shrext_cmds='.sl'
  8848. hardcode_into_libs=yes
  8849. dynamic_linker="$host_os dld.sl"
  8850. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8851. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8853. soname_spec='${libname}${release}${shared_ext}$major'
  8854. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8855. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8856. ;;
  8857. *)
  8858. shrext_cmds='.sl'
  8859. dynamic_linker="$host_os dld.sl"
  8860. shlibpath_var=SHLIB_PATH
  8861. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8863. soname_spec='${libname}${release}${shared_ext}$major'
  8864. ;;
  8865. esac
  8866. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8867. postinstall_cmds='chmod 555 $lib'
  8868. # or fails outright, so override atomically:
  8869. install_override_mode=555
  8870. ;;
  8871. interix[3-9]*)
  8872. version_type=linux
  8873. need_lib_prefix=no
  8874. need_version=no
  8875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8876. soname_spec='${libname}${release}${shared_ext}$major'
  8877. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8878. shlibpath_var=LD_LIBRARY_PATH
  8879. shlibpath_overrides_runpath=no
  8880. hardcode_into_libs=yes
  8881. ;;
  8882. irix5* | irix6* | nonstopux*)
  8883. case $host_os in
  8884. nonstopux*) version_type=nonstopux ;;
  8885. *)
  8886. if test "$lt_cv_prog_gnu_ld" = yes; then
  8887. version_type=linux
  8888. else
  8889. version_type=irix
  8890. fi ;;
  8891. esac
  8892. need_lib_prefix=no
  8893. need_version=no
  8894. soname_spec='${libname}${release}${shared_ext}$major'
  8895. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8896. case $host_os in
  8897. irix5* | nonstopux*)
  8898. libsuff= shlibsuff=
  8899. ;;
  8900. *)
  8901. case $LD in # libtool.m4 will add one of these switches to LD
  8902. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8903. libsuff= shlibsuff= libmagic=32-bit;;
  8904. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8905. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8906. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8907. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8908. *) libsuff= shlibsuff= libmagic=never-match;;
  8909. esac
  8910. ;;
  8911. esac
  8912. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8913. shlibpath_overrides_runpath=no
  8914. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8915. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8916. hardcode_into_libs=yes
  8917. ;;
  8918. # No shared lib support for Linux oldld, aout, or coff.
  8919. linux*oldld* | linux*aout* | linux*coff*)
  8920. dynamic_linker=no
  8921. ;;
  8922. # This must be Linux ELF.
  8923. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8924. version_type=linux
  8925. need_lib_prefix=no
  8926. need_version=no
  8927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8928. soname_spec='${libname}${release}${shared_ext}$major'
  8929. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8930. shlibpath_var=LD_LIBRARY_PATH
  8931. shlibpath_overrides_runpath=no
  8932. # Some binutils ld are patched to set DT_RUNPATH
  8933. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8934. $as_echo_n "(cached) " >&6
  8935. else
  8936. lt_cv_shlibpath_overrides_runpath=no
  8937. save_LDFLAGS=$LDFLAGS
  8938. save_libdir=$libdir
  8939. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8940. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8942. /* end confdefs.h. */
  8943. int
  8944. main ()
  8945. {
  8946. ;
  8947. return 0;
  8948. }
  8949. _ACEOF
  8950. if ac_fn_c_try_link "$LINENO"; then :
  8951. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8952. lt_cv_shlibpath_overrides_runpath=yes
  8953. fi
  8954. fi
  8955. rm -f core conftest.err conftest.$ac_objext \
  8956. conftest$ac_exeext conftest.$ac_ext
  8957. LDFLAGS=$save_LDFLAGS
  8958. libdir=$save_libdir
  8959. fi
  8960. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8961. # This implies no fast_install, which is unacceptable.
  8962. # Some rework will be needed to allow for fast_install
  8963. # before this can be enabled.
  8964. hardcode_into_libs=yes
  8965. # Append ld.so.conf contents to the search path
  8966. if test -f /etc/ld.so.conf; then
  8967. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  8968. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8969. fi
  8970. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8971. # powerpc, because MkLinux only supported shared libraries with the
  8972. # GNU dynamic linker. Since this was broken with cross compilers,
  8973. # most powerpc-linux boxes support dynamic linking these days and
  8974. # people can always --disable-shared, the test was removed, and we
  8975. # assume the GNU/Linux dynamic linker is in use.
  8976. dynamic_linker='GNU/Linux ld.so'
  8977. ;;
  8978. netbsd*)
  8979. version_type=sunos
  8980. need_lib_prefix=no
  8981. need_version=no
  8982. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8983. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8984. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8985. dynamic_linker='NetBSD (a.out) ld.so'
  8986. else
  8987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8988. soname_spec='${libname}${release}${shared_ext}$major'
  8989. dynamic_linker='NetBSD ld.elf_so'
  8990. fi
  8991. shlibpath_var=LD_LIBRARY_PATH
  8992. shlibpath_overrides_runpath=yes
  8993. hardcode_into_libs=yes
  8994. ;;
  8995. newsos6)
  8996. version_type=linux
  8997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8998. shlibpath_var=LD_LIBRARY_PATH
  8999. shlibpath_overrides_runpath=yes
  9000. ;;
  9001. *nto* | *qnx*)
  9002. version_type=qnx
  9003. need_lib_prefix=no
  9004. need_version=no
  9005. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9006. soname_spec='${libname}${release}${shared_ext}$major'
  9007. shlibpath_var=LD_LIBRARY_PATH
  9008. shlibpath_overrides_runpath=no
  9009. hardcode_into_libs=yes
  9010. dynamic_linker='ldqnx.so'
  9011. ;;
  9012. openbsd*)
  9013. version_type=sunos
  9014. sys_lib_dlsearch_path_spec="/usr/lib"
  9015. need_lib_prefix=no
  9016. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9017. case $host_os in
  9018. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9019. *) need_version=no ;;
  9020. esac
  9021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9022. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9023. shlibpath_var=LD_LIBRARY_PATH
  9024. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9025. case $host_os in
  9026. openbsd2.[89] | openbsd2.[89].*)
  9027. shlibpath_overrides_runpath=no
  9028. ;;
  9029. *)
  9030. shlibpath_overrides_runpath=yes
  9031. ;;
  9032. esac
  9033. else
  9034. shlibpath_overrides_runpath=yes
  9035. fi
  9036. ;;
  9037. os2*)
  9038. libname_spec='$name'
  9039. shrext_cmds=".dll"
  9040. need_lib_prefix=no
  9041. library_names_spec='$libname${shared_ext} $libname.a'
  9042. dynamic_linker='OS/2 ld.exe'
  9043. shlibpath_var=LIBPATH
  9044. ;;
  9045. osf3* | osf4* | osf5*)
  9046. version_type=osf
  9047. need_lib_prefix=no
  9048. need_version=no
  9049. soname_spec='${libname}${release}${shared_ext}$major'
  9050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9051. shlibpath_var=LD_LIBRARY_PATH
  9052. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9053. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9054. ;;
  9055. rdos*)
  9056. dynamic_linker=no
  9057. ;;
  9058. solaris*)
  9059. version_type=linux
  9060. need_lib_prefix=no
  9061. need_version=no
  9062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9063. soname_spec='${libname}${release}${shared_ext}$major'
  9064. shlibpath_var=LD_LIBRARY_PATH
  9065. shlibpath_overrides_runpath=yes
  9066. hardcode_into_libs=yes
  9067. # ldd complains unless libraries are executable
  9068. postinstall_cmds='chmod +x $lib'
  9069. ;;
  9070. sunos4*)
  9071. version_type=sunos
  9072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9073. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9074. shlibpath_var=LD_LIBRARY_PATH
  9075. shlibpath_overrides_runpath=yes
  9076. if test "$with_gnu_ld" = yes; then
  9077. need_lib_prefix=no
  9078. fi
  9079. need_version=yes
  9080. ;;
  9081. sysv4 | sysv4.3*)
  9082. version_type=linux
  9083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9084. soname_spec='${libname}${release}${shared_ext}$major'
  9085. shlibpath_var=LD_LIBRARY_PATH
  9086. case $host_vendor in
  9087. sni)
  9088. shlibpath_overrides_runpath=no
  9089. need_lib_prefix=no
  9090. runpath_var=LD_RUN_PATH
  9091. ;;
  9092. siemens)
  9093. need_lib_prefix=no
  9094. ;;
  9095. motorola)
  9096. need_lib_prefix=no
  9097. need_version=no
  9098. shlibpath_overrides_runpath=no
  9099. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9100. ;;
  9101. esac
  9102. ;;
  9103. sysv4*MP*)
  9104. if test -d /usr/nec ;then
  9105. version_type=linux
  9106. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9107. soname_spec='$libname${shared_ext}.$major'
  9108. shlibpath_var=LD_LIBRARY_PATH
  9109. fi
  9110. ;;
  9111. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9112. version_type=freebsd-elf
  9113. need_lib_prefix=no
  9114. need_version=no
  9115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9116. soname_spec='${libname}${release}${shared_ext}$major'
  9117. shlibpath_var=LD_LIBRARY_PATH
  9118. shlibpath_overrides_runpath=yes
  9119. hardcode_into_libs=yes
  9120. if test "$with_gnu_ld" = yes; then
  9121. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9122. else
  9123. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9124. case $host_os in
  9125. sco3.2v5*)
  9126. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9127. ;;
  9128. esac
  9129. fi
  9130. sys_lib_dlsearch_path_spec='/usr/lib'
  9131. ;;
  9132. tpf*)
  9133. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9134. version_type=linux
  9135. need_lib_prefix=no
  9136. need_version=no
  9137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9138. shlibpath_var=LD_LIBRARY_PATH
  9139. shlibpath_overrides_runpath=no
  9140. hardcode_into_libs=yes
  9141. ;;
  9142. uts4*)
  9143. version_type=linux
  9144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9145. soname_spec='${libname}${release}${shared_ext}$major'
  9146. shlibpath_var=LD_LIBRARY_PATH
  9147. ;;
  9148. *)
  9149. dynamic_linker=no
  9150. ;;
  9151. esac
  9152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9153. $as_echo "$dynamic_linker" >&6; }
  9154. test "$dynamic_linker" = no && can_build_shared=no
  9155. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9156. if test "$GCC" = yes; then
  9157. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9158. fi
  9159. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9160. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9161. fi
  9162. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9163. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9164. fi
  9165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9166. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9167. hardcode_action=
  9168. if test -n "$hardcode_libdir_flag_spec" ||
  9169. test -n "$runpath_var" ||
  9170. test "X$hardcode_automatic" = "Xyes" ; then
  9171. # We can hardcode non-existent directories.
  9172. if test "$hardcode_direct" != no &&
  9173. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9174. # have to relink, otherwise we might link with an installed library
  9175. # when we should be linking with a yet-to-be-installed one
  9176. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9177. test "$hardcode_minus_L" != no; then
  9178. # Linking always hardcodes the temporary library directory.
  9179. hardcode_action=relink
  9180. else
  9181. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9182. hardcode_action=immediate
  9183. fi
  9184. else
  9185. # We cannot hardcode anything, or else we can only hardcode existing
  9186. # directories.
  9187. hardcode_action=unsupported
  9188. fi
  9189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9190. $as_echo "$hardcode_action" >&6; }
  9191. if test "$hardcode_action" = relink ||
  9192. test "$inherit_rpath" = yes; then
  9193. # Fast installation is not supported
  9194. enable_fast_install=no
  9195. elif test "$shlibpath_overrides_runpath" = yes ||
  9196. test "$enable_shared" = no; then
  9197. # Fast installation is not necessary
  9198. enable_fast_install=needless
  9199. fi
  9200. if test "x$enable_dlopen" != xyes; then
  9201. enable_dlopen=unknown
  9202. enable_dlopen_self=unknown
  9203. enable_dlopen_self_static=unknown
  9204. else
  9205. lt_cv_dlopen=no
  9206. lt_cv_dlopen_libs=
  9207. case $host_os in
  9208. beos*)
  9209. lt_cv_dlopen="load_add_on"
  9210. lt_cv_dlopen_libs=
  9211. lt_cv_dlopen_self=yes
  9212. ;;
  9213. mingw* | pw32* | cegcc*)
  9214. lt_cv_dlopen="LoadLibrary"
  9215. lt_cv_dlopen_libs=
  9216. ;;
  9217. cygwin*)
  9218. lt_cv_dlopen="dlopen"
  9219. lt_cv_dlopen_libs=
  9220. ;;
  9221. darwin*)
  9222. # if libdl is installed we need to link against it
  9223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9224. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9225. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9226. $as_echo_n "(cached) " >&6
  9227. else
  9228. ac_check_lib_save_LIBS=$LIBS
  9229. LIBS="-ldl $LIBS"
  9230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9231. /* end confdefs.h. */
  9232. /* Override any GCC internal prototype to avoid an error.
  9233. Use char because int might match the return type of a GCC
  9234. builtin and then its argument prototype would still apply. */
  9235. #ifdef __cplusplus
  9236. extern "C"
  9237. #endif
  9238. char dlopen ();
  9239. int
  9240. main ()
  9241. {
  9242. return dlopen ();
  9243. ;
  9244. return 0;
  9245. }
  9246. _ACEOF
  9247. if ac_fn_c_try_link "$LINENO"; then :
  9248. ac_cv_lib_dl_dlopen=yes
  9249. else
  9250. ac_cv_lib_dl_dlopen=no
  9251. fi
  9252. rm -f core conftest.err conftest.$ac_objext \
  9253. conftest$ac_exeext conftest.$ac_ext
  9254. LIBS=$ac_check_lib_save_LIBS
  9255. fi
  9256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9257. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9258. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9259. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9260. else
  9261. lt_cv_dlopen="dyld"
  9262. lt_cv_dlopen_libs=
  9263. lt_cv_dlopen_self=yes
  9264. fi
  9265. ;;
  9266. *)
  9267. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9268. if test "x$ac_cv_func_shl_load" = xyes; then :
  9269. lt_cv_dlopen="shl_load"
  9270. else
  9271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9272. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9273. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9274. $as_echo_n "(cached) " >&6
  9275. else
  9276. ac_check_lib_save_LIBS=$LIBS
  9277. LIBS="-ldld $LIBS"
  9278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9279. /* end confdefs.h. */
  9280. /* Override any GCC internal prototype to avoid an error.
  9281. Use char because int might match the return type of a GCC
  9282. builtin and then its argument prototype would still apply. */
  9283. #ifdef __cplusplus
  9284. extern "C"
  9285. #endif
  9286. char shl_load ();
  9287. int
  9288. main ()
  9289. {
  9290. return shl_load ();
  9291. ;
  9292. return 0;
  9293. }
  9294. _ACEOF
  9295. if ac_fn_c_try_link "$LINENO"; then :
  9296. ac_cv_lib_dld_shl_load=yes
  9297. else
  9298. ac_cv_lib_dld_shl_load=no
  9299. fi
  9300. rm -f core conftest.err conftest.$ac_objext \
  9301. conftest$ac_exeext conftest.$ac_ext
  9302. LIBS=$ac_check_lib_save_LIBS
  9303. fi
  9304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9305. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9306. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9307. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9308. else
  9309. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9310. if test "x$ac_cv_func_dlopen" = xyes; then :
  9311. lt_cv_dlopen="dlopen"
  9312. else
  9313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9314. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9315. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9316. $as_echo_n "(cached) " >&6
  9317. else
  9318. ac_check_lib_save_LIBS=$LIBS
  9319. LIBS="-ldl $LIBS"
  9320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9321. /* end confdefs.h. */
  9322. /* Override any GCC internal prototype to avoid an error.
  9323. Use char because int might match the return type of a GCC
  9324. builtin and then its argument prototype would still apply. */
  9325. #ifdef __cplusplus
  9326. extern "C"
  9327. #endif
  9328. char dlopen ();
  9329. int
  9330. main ()
  9331. {
  9332. return dlopen ();
  9333. ;
  9334. return 0;
  9335. }
  9336. _ACEOF
  9337. if ac_fn_c_try_link "$LINENO"; then :
  9338. ac_cv_lib_dl_dlopen=yes
  9339. else
  9340. ac_cv_lib_dl_dlopen=no
  9341. fi
  9342. rm -f core conftest.err conftest.$ac_objext \
  9343. conftest$ac_exeext conftest.$ac_ext
  9344. LIBS=$ac_check_lib_save_LIBS
  9345. fi
  9346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9347. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9348. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9349. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9350. else
  9351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9352. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9353. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9354. $as_echo_n "(cached) " >&6
  9355. else
  9356. ac_check_lib_save_LIBS=$LIBS
  9357. LIBS="-lsvld $LIBS"
  9358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9359. /* end confdefs.h. */
  9360. /* Override any GCC internal prototype to avoid an error.
  9361. Use char because int might match the return type of a GCC
  9362. builtin and then its argument prototype would still apply. */
  9363. #ifdef __cplusplus
  9364. extern "C"
  9365. #endif
  9366. char dlopen ();
  9367. int
  9368. main ()
  9369. {
  9370. return dlopen ();
  9371. ;
  9372. return 0;
  9373. }
  9374. _ACEOF
  9375. if ac_fn_c_try_link "$LINENO"; then :
  9376. ac_cv_lib_svld_dlopen=yes
  9377. else
  9378. ac_cv_lib_svld_dlopen=no
  9379. fi
  9380. rm -f core conftest.err conftest.$ac_objext \
  9381. conftest$ac_exeext conftest.$ac_ext
  9382. LIBS=$ac_check_lib_save_LIBS
  9383. fi
  9384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9385. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9386. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9387. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9388. else
  9389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9390. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9391. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9392. $as_echo_n "(cached) " >&6
  9393. else
  9394. ac_check_lib_save_LIBS=$LIBS
  9395. LIBS="-ldld $LIBS"
  9396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9397. /* end confdefs.h. */
  9398. /* Override any GCC internal prototype to avoid an error.
  9399. Use char because int might match the return type of a GCC
  9400. builtin and then its argument prototype would still apply. */
  9401. #ifdef __cplusplus
  9402. extern "C"
  9403. #endif
  9404. char dld_link ();
  9405. int
  9406. main ()
  9407. {
  9408. return dld_link ();
  9409. ;
  9410. return 0;
  9411. }
  9412. _ACEOF
  9413. if ac_fn_c_try_link "$LINENO"; then :
  9414. ac_cv_lib_dld_dld_link=yes
  9415. else
  9416. ac_cv_lib_dld_dld_link=no
  9417. fi
  9418. rm -f core conftest.err conftest.$ac_objext \
  9419. conftest$ac_exeext conftest.$ac_ext
  9420. LIBS=$ac_check_lib_save_LIBS
  9421. fi
  9422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9423. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9424. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9425. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9426. fi
  9427. fi
  9428. fi
  9429. fi
  9430. fi
  9431. fi
  9432. ;;
  9433. esac
  9434. if test "x$lt_cv_dlopen" != xno; then
  9435. enable_dlopen=yes
  9436. else
  9437. enable_dlopen=no
  9438. fi
  9439. case $lt_cv_dlopen in
  9440. dlopen)
  9441. save_CPPFLAGS="$CPPFLAGS"
  9442. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9443. save_LDFLAGS="$LDFLAGS"
  9444. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9445. save_LIBS="$LIBS"
  9446. LIBS="$lt_cv_dlopen_libs $LIBS"
  9447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9448. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9449. if ${lt_cv_dlopen_self+:} false; then :
  9450. $as_echo_n "(cached) " >&6
  9451. else
  9452. if test "$cross_compiling" = yes; then :
  9453. lt_cv_dlopen_self=cross
  9454. else
  9455. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9456. lt_status=$lt_dlunknown
  9457. cat > conftest.$ac_ext <<_LT_EOF
  9458. #line $LINENO "configure"
  9459. #include "confdefs.h"
  9460. #if HAVE_DLFCN_H
  9461. #include <dlfcn.h>
  9462. #endif
  9463. #include <stdio.h>
  9464. #ifdef RTLD_GLOBAL
  9465. # define LT_DLGLOBAL RTLD_GLOBAL
  9466. #else
  9467. # ifdef DL_GLOBAL
  9468. # define LT_DLGLOBAL DL_GLOBAL
  9469. # else
  9470. # define LT_DLGLOBAL 0
  9471. # endif
  9472. #endif
  9473. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9474. find out it does not work in some platform. */
  9475. #ifndef LT_DLLAZY_OR_NOW
  9476. # ifdef RTLD_LAZY
  9477. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9478. # else
  9479. # ifdef DL_LAZY
  9480. # define LT_DLLAZY_OR_NOW DL_LAZY
  9481. # else
  9482. # ifdef RTLD_NOW
  9483. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9484. # else
  9485. # ifdef DL_NOW
  9486. # define LT_DLLAZY_OR_NOW DL_NOW
  9487. # else
  9488. # define LT_DLLAZY_OR_NOW 0
  9489. # endif
  9490. # endif
  9491. # endif
  9492. # endif
  9493. #endif
  9494. /* When -fvisbility=hidden is used, assume the code has been annotated
  9495. correspondingly for the symbols needed. */
  9496. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9497. int fnord () __attribute__((visibility("default")));
  9498. #endif
  9499. int fnord () { return 42; }
  9500. int main ()
  9501. {
  9502. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9503. int status = $lt_dlunknown;
  9504. if (self)
  9505. {
  9506. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9507. else
  9508. {
  9509. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9510. else puts (dlerror ());
  9511. }
  9512. /* dlclose (self); */
  9513. }
  9514. else
  9515. puts (dlerror ());
  9516. return status;
  9517. }
  9518. _LT_EOF
  9519. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9520. (eval $ac_link) 2>&5
  9521. ac_status=$?
  9522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9523. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9524. (./conftest; exit; ) >&5 2>/dev/null
  9525. lt_status=$?
  9526. case x$lt_status in
  9527. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9528. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9529. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9530. esac
  9531. else :
  9532. # compilation failed
  9533. lt_cv_dlopen_self=no
  9534. fi
  9535. fi
  9536. rm -fr conftest*
  9537. fi
  9538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9539. $as_echo "$lt_cv_dlopen_self" >&6; }
  9540. if test "x$lt_cv_dlopen_self" = xyes; then
  9541. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9543. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9544. if ${lt_cv_dlopen_self_static+:} false; then :
  9545. $as_echo_n "(cached) " >&6
  9546. else
  9547. if test "$cross_compiling" = yes; then :
  9548. lt_cv_dlopen_self_static=cross
  9549. else
  9550. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9551. lt_status=$lt_dlunknown
  9552. cat > conftest.$ac_ext <<_LT_EOF
  9553. #line $LINENO "configure"
  9554. #include "confdefs.h"
  9555. #if HAVE_DLFCN_H
  9556. #include <dlfcn.h>
  9557. #endif
  9558. #include <stdio.h>
  9559. #ifdef RTLD_GLOBAL
  9560. # define LT_DLGLOBAL RTLD_GLOBAL
  9561. #else
  9562. # ifdef DL_GLOBAL
  9563. # define LT_DLGLOBAL DL_GLOBAL
  9564. # else
  9565. # define LT_DLGLOBAL 0
  9566. # endif
  9567. #endif
  9568. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9569. find out it does not work in some platform. */
  9570. #ifndef LT_DLLAZY_OR_NOW
  9571. # ifdef RTLD_LAZY
  9572. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9573. # else
  9574. # ifdef DL_LAZY
  9575. # define LT_DLLAZY_OR_NOW DL_LAZY
  9576. # else
  9577. # ifdef RTLD_NOW
  9578. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9579. # else
  9580. # ifdef DL_NOW
  9581. # define LT_DLLAZY_OR_NOW DL_NOW
  9582. # else
  9583. # define LT_DLLAZY_OR_NOW 0
  9584. # endif
  9585. # endif
  9586. # endif
  9587. # endif
  9588. #endif
  9589. /* When -fvisbility=hidden is used, assume the code has been annotated
  9590. correspondingly for the symbols needed. */
  9591. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9592. int fnord () __attribute__((visibility("default")));
  9593. #endif
  9594. int fnord () { return 42; }
  9595. int main ()
  9596. {
  9597. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9598. int status = $lt_dlunknown;
  9599. if (self)
  9600. {
  9601. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9602. else
  9603. {
  9604. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9605. else puts (dlerror ());
  9606. }
  9607. /* dlclose (self); */
  9608. }
  9609. else
  9610. puts (dlerror ());
  9611. return status;
  9612. }
  9613. _LT_EOF
  9614. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9615. (eval $ac_link) 2>&5
  9616. ac_status=$?
  9617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9618. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9619. (./conftest; exit; ) >&5 2>/dev/null
  9620. lt_status=$?
  9621. case x$lt_status in
  9622. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9623. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9624. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9625. esac
  9626. else :
  9627. # compilation failed
  9628. lt_cv_dlopen_self_static=no
  9629. fi
  9630. fi
  9631. rm -fr conftest*
  9632. fi
  9633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9634. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9635. fi
  9636. CPPFLAGS="$save_CPPFLAGS"
  9637. LDFLAGS="$save_LDFLAGS"
  9638. LIBS="$save_LIBS"
  9639. ;;
  9640. esac
  9641. case $lt_cv_dlopen_self in
  9642. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9643. *) enable_dlopen_self=unknown ;;
  9644. esac
  9645. case $lt_cv_dlopen_self_static in
  9646. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9647. *) enable_dlopen_self_static=unknown ;;
  9648. esac
  9649. fi
  9650. striplib=
  9651. old_striplib=
  9652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9653. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9654. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9655. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9656. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9658. $as_echo "yes" >&6; }
  9659. else
  9660. # FIXME - insert some real tests, host_os isn't really good enough
  9661. case $host_os in
  9662. darwin*)
  9663. if test -n "$STRIP" ; then
  9664. striplib="$STRIP -x"
  9665. old_striplib="$STRIP -S"
  9666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9667. $as_echo "yes" >&6; }
  9668. else
  9669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9670. $as_echo "no" >&6; }
  9671. fi
  9672. ;;
  9673. *)
  9674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9675. $as_echo "no" >&6; }
  9676. ;;
  9677. esac
  9678. fi
  9679. # Report which library types will actually be built
  9680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9681. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9683. $as_echo "$can_build_shared" >&6; }
  9684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9685. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9686. test "$can_build_shared" = "no" && enable_shared=no
  9687. # On AIX, shared libraries and static libraries use the same namespace, and
  9688. # are all built from PIC.
  9689. case $host_os in
  9690. aix3*)
  9691. test "$enable_shared" = yes && enable_static=no
  9692. if test -n "$RANLIB"; then
  9693. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9694. postinstall_cmds='$RANLIB $lib'
  9695. fi
  9696. ;;
  9697. aix[4-9]*)
  9698. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9699. test "$enable_shared" = yes && enable_static=no
  9700. fi
  9701. ;;
  9702. esac
  9703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9704. $as_echo "$enable_shared" >&6; }
  9705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9706. $as_echo_n "checking whether to build static libraries... " >&6; }
  9707. # Make sure either enable_shared or enable_static is yes.
  9708. test "$enable_shared" = yes || enable_static=yes
  9709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9710. $as_echo "$enable_static" >&6; }
  9711. fi
  9712. ac_ext=c
  9713. ac_cpp='$CPP $CPPFLAGS'
  9714. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9715. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9716. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9717. CC="$lt_save_CC"
  9718. ac_config_commands="$ac_config_commands libtool"
  9719. # Only expand once:
  9720. if test -n "$ac_tool_prefix"; then
  9721. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9722. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9724. $as_echo_n "checking for $ac_word... " >&6; }
  9725. if ${ac_cv_prog_RC+:} false; then :
  9726. $as_echo_n "(cached) " >&6
  9727. else
  9728. if test -n "$RC"; then
  9729. ac_cv_prog_RC="$RC" # Let the user override the test.
  9730. else
  9731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9732. for as_dir in $PATH
  9733. do
  9734. IFS=$as_save_IFS
  9735. test -z "$as_dir" && as_dir=.
  9736. for ac_exec_ext in '' $ac_executable_extensions; do
  9737. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9738. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9740. break 2
  9741. fi
  9742. done
  9743. done
  9744. IFS=$as_save_IFS
  9745. fi
  9746. fi
  9747. RC=$ac_cv_prog_RC
  9748. if test -n "$RC"; then
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9750. $as_echo "$RC" >&6; }
  9751. else
  9752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9753. $as_echo "no" >&6; }
  9754. fi
  9755. fi
  9756. if test -z "$ac_cv_prog_RC"; then
  9757. ac_ct_RC=$RC
  9758. # Extract the first word of "windres", so it can be a program name with args.
  9759. set dummy windres; ac_word=$2
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9761. $as_echo_n "checking for $ac_word... " >&6; }
  9762. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9763. $as_echo_n "(cached) " >&6
  9764. else
  9765. if test -n "$ac_ct_RC"; then
  9766. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9767. else
  9768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9769. for as_dir in $PATH
  9770. do
  9771. IFS=$as_save_IFS
  9772. test -z "$as_dir" && as_dir=.
  9773. for ac_exec_ext in '' $ac_executable_extensions; do
  9774. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9775. ac_cv_prog_ac_ct_RC="windres"
  9776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9777. break 2
  9778. fi
  9779. done
  9780. done
  9781. IFS=$as_save_IFS
  9782. fi
  9783. fi
  9784. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9785. if test -n "$ac_ct_RC"; then
  9786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9787. $as_echo "$ac_ct_RC" >&6; }
  9788. else
  9789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9790. $as_echo "no" >&6; }
  9791. fi
  9792. if test "x$ac_ct_RC" = x; then
  9793. RC=""
  9794. else
  9795. case $cross_compiling:$ac_tool_warned in
  9796. yes:)
  9797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9798. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9799. ac_tool_warned=yes ;;
  9800. esac
  9801. RC=$ac_ct_RC
  9802. fi
  9803. else
  9804. RC="$ac_cv_prog_RC"
  9805. fi
  9806. # Source file extension for RC test sources.
  9807. ac_ext=rc
  9808. # Object file extension for compiled RC test sources.
  9809. objext=o
  9810. objext_RC=$objext
  9811. # Code to be used in simple compile tests
  9812. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  9813. # Code to be used in simple link tests
  9814. lt_simple_link_test_code="$lt_simple_compile_test_code"
  9815. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9816. # If no C compiler was specified, use CC.
  9817. LTCC=${LTCC-"$CC"}
  9818. # If no C compiler flags were specified, use CFLAGS.
  9819. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9820. # Allow CC to be a program name with arguments.
  9821. compiler=$CC
  9822. # save warnings/boilerplate of simple test code
  9823. ac_outfile=conftest.$ac_objext
  9824. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9825. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9826. _lt_compiler_boilerplate=`cat conftest.err`
  9827. $RM conftest*
  9828. ac_outfile=conftest.$ac_objext
  9829. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9830. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9831. _lt_linker_boilerplate=`cat conftest.err`
  9832. $RM -r conftest*
  9833. # Allow CC to be a program name with arguments.
  9834. lt_save_CC="$CC"
  9835. lt_save_CFLAGS=$CFLAGS
  9836. lt_save_GCC=$GCC
  9837. GCC=
  9838. CC=${RC-"windres"}
  9839. CFLAGS=
  9840. compiler=$CC
  9841. compiler_RC=$CC
  9842. for cc_temp in $compiler""; do
  9843. case $cc_temp in
  9844. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9845. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9846. \-*) ;;
  9847. *) break;;
  9848. esac
  9849. done
  9850. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9851. lt_cv_prog_compiler_c_o_RC=yes
  9852. if test -n "$compiler"; then
  9853. :
  9854. fi
  9855. GCC=$lt_save_GCC
  9856. ac_ext=c
  9857. ac_cpp='$CPP $CPPFLAGS'
  9858. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9859. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9860. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9861. CC=$lt_save_CC
  9862. CFLAGS=$lt_save_CFLAGS
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  9864. $as_echo_n "checking for inline... " >&6; }
  9865. if ${ac_cv_c_inline+:} false; then :
  9866. $as_echo_n "(cached) " >&6
  9867. else
  9868. ac_cv_c_inline=no
  9869. for ac_kw in inline __inline__ __inline; do
  9870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9871. /* end confdefs.h. */
  9872. #ifndef __cplusplus
  9873. typedef int foo_t;
  9874. static $ac_kw foo_t static_foo () {return 0; }
  9875. $ac_kw foo_t foo () {return 0; }
  9876. #endif
  9877. _ACEOF
  9878. if ac_fn_c_try_compile "$LINENO"; then :
  9879. ac_cv_c_inline=$ac_kw
  9880. fi
  9881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9882. test "$ac_cv_c_inline" != no && break
  9883. done
  9884. fi
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  9886. $as_echo "$ac_cv_c_inline" >&6; }
  9887. case $ac_cv_c_inline in
  9888. inline | yes) ;;
  9889. *)
  9890. case $ac_cv_c_inline in
  9891. no) ac_val=;;
  9892. *) ac_val=$ac_cv_c_inline;;
  9893. esac
  9894. cat >>confdefs.h <<_ACEOF
  9895. #ifndef __cplusplus
  9896. #define inline $ac_val
  9897. #endif
  9898. _ACEOF
  9899. ;;
  9900. esac
  9901. if test "x$CC" != xcc; then
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  9903. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  9904. else
  9905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  9906. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  9907. fi
  9908. set dummy $CC; ac_cc=`$as_echo "$2" |
  9909. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9910. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  9911. $as_echo_n "(cached) " >&6
  9912. else
  9913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9914. /* end confdefs.h. */
  9915. int
  9916. main ()
  9917. {
  9918. ;
  9919. return 0;
  9920. }
  9921. _ACEOF
  9922. # Make sure it works both with $CC and with simple cc.
  9923. # We do the test twice because some compilers refuse to overwrite an
  9924. # existing .o file with -o, though they will create one.
  9925. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9926. rm -f conftest2.*
  9927. if { { case "(($ac_try" in
  9928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9929. *) ac_try_echo=$ac_try;;
  9930. esac
  9931. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9932. $as_echo "$ac_try_echo"; } >&5
  9933. (eval "$ac_try") 2>&5
  9934. ac_status=$?
  9935. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9936. test $ac_status = 0; } &&
  9937. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  9938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9939. *) ac_try_echo=$ac_try;;
  9940. esac
  9941. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9942. $as_echo "$ac_try_echo"; } >&5
  9943. (eval "$ac_try") 2>&5
  9944. ac_status=$?
  9945. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9946. test $ac_status = 0; };
  9947. then
  9948. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  9949. if test "x$CC" != xcc; then
  9950. # Test first that cc exists at all.
  9951. if { ac_try='cc -c conftest.$ac_ext >&5'
  9952. { { case "(($ac_try" in
  9953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9954. *) ac_try_echo=$ac_try;;
  9955. esac
  9956. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9957. $as_echo "$ac_try_echo"; } >&5
  9958. (eval "$ac_try") 2>&5
  9959. ac_status=$?
  9960. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9961. test $ac_status = 0; }; }; then
  9962. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9963. rm -f conftest2.*
  9964. if { { case "(($ac_try" in
  9965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9966. *) ac_try_echo=$ac_try;;
  9967. esac
  9968. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9969. $as_echo "$ac_try_echo"; } >&5
  9970. (eval "$ac_try") 2>&5
  9971. ac_status=$?
  9972. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9973. test $ac_status = 0; } &&
  9974. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  9975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9976. *) ac_try_echo=$ac_try;;
  9977. esac
  9978. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9979. $as_echo "$ac_try_echo"; } >&5
  9980. (eval "$ac_try") 2>&5
  9981. ac_status=$?
  9982. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9983. test $ac_status = 0; };
  9984. then
  9985. # cc works too.
  9986. :
  9987. else
  9988. # cc exists but doesn't like -o.
  9989. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9990. fi
  9991. fi
  9992. fi
  9993. else
  9994. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9995. fi
  9996. rm -f core conftest*
  9997. fi
  9998. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  9999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10000. $as_echo "yes" >&6; }
  10001. else
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10003. $as_echo "no" >&6; }
  10004. $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  10005. fi
  10006. # FIXME: we rely on the cache variable name because
  10007. # there is no other way.
  10008. set dummy $CC
  10009. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  10010. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  10011. if test "$am_t" != yes; then
  10012. # Losing compiler, so override with the script.
  10013. # FIXME: It is wrong to rewrite CC.
  10014. # But if we don't then we get into trouble of one sort or another.
  10015. # A longer-term fix would be to have automake use am__CC in this case,
  10016. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  10017. CC="$am_aux_dir/compile $CC"
  10018. fi
  10019. $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
  10020. LTLDFLAGS="${LTLDFLAGS} -no-undefined"
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
  10022. $as_echo_n "checking operating system... " >&6; }
  10023. case $host in
  10024. *-linux*)
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
  10026. $as_echo "Linux" >&6; }
  10027. backend="linux"
  10028. ;;
  10029. *-darwin*)
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin/Mac OS X" >&5
  10031. $as_echo "Darwin/Mac OS X" >&6; }
  10032. backend="darwin"
  10033. ;;
  10034. *-openbsd*)
  10035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
  10036. $as_echo "OpenBSD" >&6; }
  10037. backend="openbsd"
  10038. ;;
  10039. *-netbsd*)
  10040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: NetBSD (using OpenBSD backend)" >&5
  10041. $as_echo "NetBSD (using OpenBSD backend)" >&6; }
  10042. backend="openbsd"
  10043. ;;
  10044. *-mingw*)
  10045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
  10046. $as_echo "Windows" >&6; }
  10047. backend="windows"
  10048. ;;
  10049. *-cygwin*)
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cygwin (using Windows backend)" >&5
  10051. $as_echo "Cygwin (using Windows backend)" >&6; }
  10052. backend="windows"
  10053. threads="posix"
  10054. ;;
  10055. *)
  10056. as_fn_error $? "unsupported operating system" "$LINENO" 5
  10057. esac
  10058. case $backend in
  10059. linux)
  10060. $as_echo "@%:@define OS_LINUX 1" >>confdefs.h
  10061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  10062. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  10063. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  10064. $as_echo_n "(cached) " >&6
  10065. else
  10066. ac_check_lib_save_LIBS=$LIBS
  10067. LIBS="-lrt $LIBS"
  10068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10069. /* end confdefs.h. */
  10070. /* Override any GCC internal prototype to avoid an error.
  10071. Use char because int might match the return type of a GCC
  10072. builtin and then its argument prototype would still apply. */
  10073. #ifdef __cplusplus
  10074. extern "C"
  10075. #endif
  10076. char clock_gettime ();
  10077. int
  10078. main ()
  10079. {
  10080. return clock_gettime ();
  10081. ;
  10082. return 0;
  10083. }
  10084. _ACEOF
  10085. if ac_fn_c_try_link "$LINENO"; then :
  10086. ac_cv_lib_rt_clock_gettime=yes
  10087. else
  10088. ac_cv_lib_rt_clock_gettime=no
  10089. fi
  10090. rm -f core conftest.err conftest.$ac_objext \
  10091. conftest$ac_exeext conftest.$ac_ext
  10092. LIBS=$ac_check_lib_save_LIBS
  10093. fi
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  10095. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  10096. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  10097. -pthread
  10098. fi
  10099. @%:@ Check whether --enable-udev was given.
  10100. if test "${enable_udev+set}" = set; then :
  10101. enableval=$enable_udev;
  10102. else
  10103. enable_udev="yes"
  10104. fi
  10105. if test "x$enable_udev" = "xyes" ; then
  10106. # system has udev. use it or fail!
  10107. for ac_header in libudev.h
  10108. do :
  10109. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  10110. if test "x$ac_cv_header_libudev_h" = xyes; then :
  10111. cat >>confdefs.h <<_ACEOF
  10112. @%:@define HAVE_LIBUDEV_H 1
  10113. _ACEOF
  10114. else
  10115. as_fn_error $? "\"udev support requested but libudev not installed\"" "$LINENO" 5
  10116. fi
  10117. done
  10118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_new in -ludev" >&5
  10119. $as_echo_n "checking for udev_new in -ludev... " >&6; }
  10120. if ${ac_cv_lib_udev_udev_new+:} false; then :
  10121. $as_echo_n "(cached) " >&6
  10122. else
  10123. ac_check_lib_save_LIBS=$LIBS
  10124. LIBS="-ludev $LIBS"
  10125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10126. /* end confdefs.h. */
  10127. /* Override any GCC internal prototype to avoid an error.
  10128. Use char because int might match the return type of a GCC
  10129. builtin and then its argument prototype would still apply. */
  10130. #ifdef __cplusplus
  10131. extern "C"
  10132. #endif
  10133. char udev_new ();
  10134. int
  10135. main ()
  10136. {
  10137. return udev_new ();
  10138. ;
  10139. return 0;
  10140. }
  10141. _ACEOF
  10142. if ac_fn_c_try_link "$LINENO"; then :
  10143. ac_cv_lib_udev_udev_new=yes
  10144. else
  10145. ac_cv_lib_udev_udev_new=no
  10146. fi
  10147. rm -f core conftest.err conftest.$ac_objext \
  10148. conftest$ac_exeext conftest.$ac_ext
  10149. LIBS=$ac_check_lib_save_LIBS
  10150. fi
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_new" >&5
  10152. $as_echo "$ac_cv_lib_udev_udev_new" >&6; }
  10153. if test "x$ac_cv_lib_udev_udev_new" = xyes; then :
  10154. cat >>confdefs.h <<_ACEOF
  10155. @%:@define HAVE_LIBUDEV 1
  10156. _ACEOF
  10157. LIBS="-ludev $LIBS"
  10158. else
  10159. as_fn_error $? "\"udev support requested but libudev not installed\"" "$LINENO" 5
  10160. fi
  10161. $as_echo "@%:@define USE_UDEV 1" >>confdefs.h
  10162. else
  10163. for ac_header in linux/netlink.h linux/filter.h
  10164. do :
  10165. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10166. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10167. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10168. cat >>confdefs.h <<_ACEOF
  10169. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10170. _ACEOF
  10171. else
  10172. as_fn_error $? "\"Linux netlink headers not found\"" "$LINENO" 5
  10173. fi
  10174. done
  10175. fi
  10176. threads="posix"
  10177. THREAD_CFLAGS="-pthread"
  10178. LIBS="${LIBS} -pthread"
  10179. for ac_header in poll.h
  10180. do :
  10181. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  10182. if test "x$ac_cv_header_poll_h" = xyes; then :
  10183. cat >>confdefs.h <<_ACEOF
  10184. @%:@define HAVE_POLL_H 1
  10185. _ACEOF
  10186. fi
  10187. done
  10188. $as_echo "@%:@define POLL_NFDS_TYPE nfds_t" >>confdefs.h
  10189. ;;
  10190. darwin)
  10191. $as_echo "@%:@define OS_DARWIN 1" >>confdefs.h
  10192. threads="posix"
  10193. LIBS="-lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation"
  10194. LTLDFLAGS="${LTLDFLAGS} -Wl,-prebind"
  10195. for ac_header in poll.h
  10196. do :
  10197. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  10198. if test "x$ac_cv_header_poll_h" = xyes; then :
  10199. cat >>confdefs.h <<_ACEOF
  10200. @%:@define HAVE_POLL_H 1
  10201. _ACEOF
  10202. fi
  10203. done
  10204. ac_fn_c_check_type "$LINENO" "nfds_t" "ac_cv_type_nfds_t" "#include <poll.h>
  10205. "
  10206. if test "x$ac_cv_type_nfds_t" = xyes; then :
  10207. $as_echo "@%:@define POLL_NFDS_TYPE nfds_t" >>confdefs.h
  10208. else
  10209. $as_echo "@%:@define POLL_NFDS_TYPE unsigned int" >>confdefs.h
  10210. fi
  10211. ;;
  10212. openbsd)
  10213. $as_echo "@%:@define OS_OPENBSD 1" >>confdefs.h
  10214. threads="posix"
  10215. THREAD_CFLAGS="-pthread"
  10216. LIBS="-pthread"
  10217. for ac_header in poll.h
  10218. do :
  10219. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  10220. if test "x$ac_cv_header_poll_h" = xyes; then :
  10221. cat >>confdefs.h <<_ACEOF
  10222. @%:@define HAVE_POLL_H 1
  10223. _ACEOF
  10224. fi
  10225. done
  10226. $as_echo "@%:@define POLL_NFDS_TYPE nfds_t" >>confdefs.h
  10227. ;;
  10228. windows)
  10229. $as_echo "@%:@define OS_WINDOWS 1" >>confdefs.h
  10230. LIBS=""
  10231. LTLDFLAGS="${LTLDFLAGS} -avoid-version -Wl,--add-stdcall-alias"
  10232. $as_echo "@%:@define POLL_NFDS_TYPE unsigned int" >>confdefs.h
  10233. ;;
  10234. esac
  10235. if test "x$backend" = xlinux; then
  10236. OS_LINUX_TRUE=
  10237. OS_LINUX_FALSE='#'
  10238. else
  10239. OS_LINUX_TRUE='#'
  10240. OS_LINUX_FALSE=
  10241. fi
  10242. if test "x$backend" = xdarwin; then
  10243. OS_DARWIN_TRUE=
  10244. OS_DARWIN_FALSE='#'
  10245. else
  10246. OS_DARWIN_TRUE='#'
  10247. OS_DARWIN_FALSE=
  10248. fi
  10249. if test "x$backend" = xopenbsd; then
  10250. OS_OPENBSD_TRUE=
  10251. OS_OPENBSD_FALSE='#'
  10252. else
  10253. OS_OPENBSD_TRUE='#'
  10254. OS_OPENBSD_FALSE=
  10255. fi
  10256. if test "x$backend" = xwindows; then
  10257. OS_WINDOWS_TRUE=
  10258. OS_WINDOWS_FALSE='#'
  10259. else
  10260. OS_WINDOWS_TRUE='#'
  10261. OS_WINDOWS_FALSE=
  10262. fi
  10263. if test "x$threads" = xposix; then
  10264. THREADS_POSIX_TRUE=
  10265. THREADS_POSIX_FALSE='#'
  10266. else
  10267. THREADS_POSIX_TRUE='#'
  10268. THREADS_POSIX_FALSE=
  10269. fi
  10270. if test "x$enable_udev" = xyes; then
  10271. USE_UDEV_TRUE=
  10272. USE_UDEV_FALSE='#'
  10273. else
  10274. USE_UDEV_TRUE='#'
  10275. USE_UDEV_FALSE=
  10276. fi
  10277. if test "$threads" = posix; then
  10278. $as_echo "@%:@define THREADS_POSIX 1" >>confdefs.h
  10279. fi
  10280. # timerfd
  10281. ac_fn_c_check_header_mongrel "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
  10282. if test "x$ac_cv_header_sys_timerfd_h" = xyes; then :
  10283. timerfd_h=1
  10284. else
  10285. timerfd_h=0
  10286. fi
  10287. @%:@ Check whether --enable-timerfd was given.
  10288. if test "${enable_timerfd+set}" = set; then :
  10289. enableval=$enable_timerfd; use_timerfd=$enableval
  10290. else
  10291. use_timerfd='auto'
  10292. fi
  10293. if test "x$use_timerfd" = "xyes" -a "x$timerfd_h" = "x0"; then
  10294. as_fn_error $? "timerfd header not available; glibc 2.9+ required" "$LINENO" 5
  10295. fi
  10296. ac_fn_c_check_decl "$LINENO" "TFD_NONBLOCK" "ac_cv_have_decl_TFD_NONBLOCK" "#include <sys/timerfd.h>
  10297. "
  10298. if test "x$ac_cv_have_decl_TFD_NONBLOCK" = xyes; then :
  10299. tfd_hdr_ok=yes
  10300. else
  10301. tfd_hdr_ok=no
  10302. fi
  10303. if test "x$use_timerfd" = "xyes" -a "x$tfd_hdr_ok" = "xno"; then
  10304. as_fn_error $? "timerfd header not usable; glibc 2.9+ required" "$LINENO" 5
  10305. fi
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use timerfd for timing" >&5
  10307. $as_echo_n "checking whether to use timerfd for timing... " >&6; }
  10308. if test "x$use_timerfd" = "xno"; then
  10309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled by user)" >&5
  10310. $as_echo "no (disabled by user)" >&6; }
  10311. else
  10312. if test "x$timerfd_h" = "x1" -a "x$tfd_hdr_ok" = "xyes"; then
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10314. $as_echo "yes" >&6; }
  10315. $as_echo "@%:@define USBI_TIMERFD_AVAILABLE 1" >>confdefs.h
  10316. else
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (header not available)" >&5
  10318. $as_echo "no (header not available)" >&6; }
  10319. fi
  10320. fi
  10321. ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
  10322. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  10323. cat >>confdefs.h <<_ACEOF
  10324. @%:@define HAVE_STRUCT_TIMESPEC 1
  10325. _ACEOF
  10326. fi
  10327. # Message logging
  10328. @%:@ Check whether --enable-log was given.
  10329. if test "${enable_log+set}" = set; then :
  10330. enableval=$enable_log; log_enabled=$enableval
  10331. else
  10332. log_enabled='yes'
  10333. fi
  10334. if test "x$log_enabled" != "xno"; then
  10335. $as_echo "@%:@define ENABLE_LOGGING 1" >>confdefs.h
  10336. fi
  10337. @%:@ Check whether --enable-debug-log was given.
  10338. if test "${enable_debug_log+set}" = set; then :
  10339. enableval=$enable_debug_log; debug_log_enabled=$enableval
  10340. else
  10341. debug_log_enabled='no'
  10342. fi
  10343. if test "x$debug_log_enabled" != "xno"; then
  10344. $as_echo "@%:@define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
  10345. fi
  10346. # Examples build
  10347. @%:@ Check whether --enable-examples-build was given.
  10348. if test "${enable_examples_build+set}" = set; then :
  10349. enableval=$enable_examples_build; build_examples=$enableval
  10350. else
  10351. build_examples='no'
  10352. fi
  10353. if test "x$build_examples" != "xno"; then
  10354. BUILD_EXAMPLES_TRUE=
  10355. BUILD_EXAMPLES_FALSE='#'
  10356. else
  10357. BUILD_EXAMPLES_TRUE='#'
  10358. BUILD_EXAMPLES_FALSE=
  10359. fi
  10360. # check for -fvisibility=hidden compiler support (GCC >= 3.4)
  10361. saved_cflags="$CFLAGS"
  10362. # -Werror required for cygwin
  10363. CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
  10364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10365. /* end confdefs.h. */
  10366. int
  10367. main ()
  10368. {
  10369. ;
  10370. return 0;
  10371. }
  10372. _ACEOF
  10373. if ac_fn_c_try_compile "$LINENO"; then :
  10374. VISIBILITY_CFLAGS="-fvisibility=hidden"
  10375. $as_echo "@%:@define DEFAULT_VISIBILITY __attribute__((visibility(\"default\")))" >>confdefs.h
  10376. else
  10377. VISIBILITY_CFLAGS=""
  10378. $as_echo "@%:@define DEFAULT_VISIBILITY /**/" >>confdefs.h
  10379. fi
  10380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10381. CFLAGS="$saved_cflags"
  10382. # check for -Wno-pointer-sign compiler support (GCC >= 4)
  10383. saved_cflags="$CFLAGS"
  10384. CFLAGS="$CFLAGS -Wno-pointer-sign"
  10385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10386. /* end confdefs.h. */
  10387. int
  10388. main ()
  10389. {
  10390. ;
  10391. return 0;
  10392. }
  10393. _ACEOF
  10394. if ac_fn_c_try_compile "$LINENO"; then :
  10395. nopointersign_cflags="-Wno-pointer-sign"
  10396. else
  10397. nopointersign_cflags=""
  10398. fi
  10399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10400. CFLAGS="$saved_cflags"
  10401. # sigaction not available on MinGW
  10402. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  10403. if test "x$ac_cv_func_sigaction" = xyes; then :
  10404. have_sigaction=yes
  10405. else
  10406. have_sigaction=no
  10407. fi
  10408. if test "x$have_sigaction" = "xyes"; then
  10409. HAVE_SIGACTION_TRUE=
  10410. HAVE_SIGACTION_FALSE='#'
  10411. else
  10412. HAVE_SIGACTION_TRUE='#'
  10413. HAVE_SIGACTION_FALSE=
  10414. fi
  10415. # headers not available on all platforms but required on others
  10416. for ac_header in sys/time.h
  10417. do :
  10418. ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  10419. if test "x$ac_cv_header_sys_time_h" = xyes; then :
  10420. cat >>confdefs.h <<_ACEOF
  10421. @%:@define HAVE_SYS_TIME_H 1
  10422. _ACEOF
  10423. fi
  10424. done
  10425. for ac_func in gettimeofday
  10426. do :
  10427. ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  10428. if test "x$ac_cv_func_gettimeofday" = xyes; then :
  10429. cat >>confdefs.h <<_ACEOF
  10430. @%:@define HAVE_GETTIMEOFDAY 1
  10431. _ACEOF
  10432. fi
  10433. done
  10434. AM_CFLAGS="-std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags -Wshadow ${THREAD_CFLAGS} ${VISIBILITY_CFLAGS}"
  10435. ac_config_files="$ac_config_files libusb-1.0.pc"
  10436. ac_config_files="$ac_config_files Makefile"
  10437. ac_config_files="$ac_config_files libusb/Makefile"
  10438. cat >confcache <<\_ACEOF
  10439. # This file is a shell script that caches the results of configure
  10440. # tests run on this system so they can be shared between configure
  10441. # scripts and configure runs, see configure's option --config-cache.
  10442. # It is not useful on other systems. If it contains results you don't
  10443. # want to keep, you may remove or edit it.
  10444. #
  10445. # config.status only pays attention to the cache file if you give it
  10446. # the --recheck option to rerun configure.
  10447. #
  10448. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10449. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10450. # following values.
  10451. _ACEOF
  10452. # The following way of writing the cache mishandles newlines in values,
  10453. # but we know of no workaround that is simple, portable, and efficient.
  10454. # So, we kill variables containing newlines.
  10455. # Ultrix sh set writes to stderr and can't be redirected directly,
  10456. # and sets the high bit in the cache file unless we assign to the vars.
  10457. (
  10458. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10459. eval ac_val=\$$ac_var
  10460. case $ac_val in #(
  10461. *${as_nl}*)
  10462. case $ac_var in #(
  10463. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10464. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10465. esac
  10466. case $ac_var in #(
  10467. _ | IFS | as_nl) ;; #(
  10468. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10469. *) { eval $ac_var=; unset $ac_var;} ;;
  10470. esac ;;
  10471. esac
  10472. done
  10473. (set) 2>&1 |
  10474. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10475. *${as_nl}ac_space=\ *)
  10476. # `set' does not quote correctly, so add quotes: double-quote
  10477. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10478. sed -n \
  10479. "s/'/'\\\\''/g;
  10480. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10481. ;; #(
  10482. *)
  10483. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10484. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10485. ;;
  10486. esac |
  10487. sort
  10488. ) |
  10489. sed '
  10490. /^ac_cv_env_/b end
  10491. t clear
  10492. :clear
  10493. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10494. t end
  10495. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10496. :end' >>confcache
  10497. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10498. if test -w "$cache_file"; then
  10499. if test "x$cache_file" != "x/dev/null"; then
  10500. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10501. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10502. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10503. cat confcache >"$cache_file"
  10504. else
  10505. case $cache_file in #(
  10506. */* | ?:*)
  10507. mv -f confcache "$cache_file"$$ &&
  10508. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10509. *)
  10510. mv -f confcache "$cache_file" ;;
  10511. esac
  10512. fi
  10513. fi
  10514. else
  10515. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10516. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10517. fi
  10518. fi
  10519. rm -f confcache
  10520. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10521. # Let make expand exec_prefix.
  10522. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10523. DEFS=-DHAVE_CONFIG_H
  10524. ac_libobjs=
  10525. ac_ltlibobjs=
  10526. U=
  10527. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  10528. # 1. Remove the extension, and $U if already installed.
  10529. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10530. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10531. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10532. # will be set to the directory where LIBOBJS objects are built.
  10533. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10534. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10535. done
  10536. LIB@&t@OBJS=$ac_libobjs
  10537. LTLIBOBJS=$ac_ltlibobjs
  10538. if test -n "$EXEEXT"; then
  10539. am__EXEEXT_TRUE=
  10540. am__EXEEXT_FALSE='#'
  10541. else
  10542. am__EXEEXT_TRUE='#'
  10543. am__EXEEXT_FALSE=
  10544. fi
  10545. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  10546. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  10547. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10548. fi
  10549. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10550. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10551. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10552. fi
  10553. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10554. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10555. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10556. fi
  10557. if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
  10558. as_fn_error $? "conditional \"OS_LINUX\" was never defined.
  10559. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10560. fi
  10561. if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
  10562. as_fn_error $? "conditional \"OS_DARWIN\" was never defined.
  10563. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10564. fi
  10565. if test -z "${OS_OPENBSD_TRUE}" && test -z "${OS_OPENBSD_FALSE}"; then
  10566. as_fn_error $? "conditional \"OS_OPENBSD\" was never defined.
  10567. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10568. fi
  10569. if test -z "${OS_WINDOWS_TRUE}" && test -z "${OS_WINDOWS_FALSE}"; then
  10570. as_fn_error $? "conditional \"OS_WINDOWS\" was never defined.
  10571. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10572. fi
  10573. if test -z "${THREADS_POSIX_TRUE}" && test -z "${THREADS_POSIX_FALSE}"; then
  10574. as_fn_error $? "conditional \"THREADS_POSIX\" was never defined.
  10575. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10576. fi
  10577. if test -z "${USE_UDEV_TRUE}" && test -z "${USE_UDEV_FALSE}"; then
  10578. as_fn_error $? "conditional \"USE_UDEV\" was never defined.
  10579. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10580. fi
  10581. if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
  10582. as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
  10583. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10584. fi
  10585. if test -z "${HAVE_SIGACTION_TRUE}" && test -z "${HAVE_SIGACTION_FALSE}"; then
  10586. as_fn_error $? "conditional \"HAVE_SIGACTION\" was never defined.
  10587. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10588. fi
  10589. : "${CONFIG_STATUS=./config.status}"
  10590. ac_write_fail=0
  10591. ac_clean_files_save=$ac_clean_files
  10592. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10594. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10595. as_write_fail=0
  10596. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10597. #! $SHELL
  10598. # Generated by $as_me.
  10599. # Run this file to recreate the current configuration.
  10600. # Compiler output produced by configure, useful for debugging
  10601. # configure, is in config.log if it exists.
  10602. debug=false
  10603. ac_cs_recheck=false
  10604. ac_cs_silent=false
  10605. SHELL=\${CONFIG_SHELL-$SHELL}
  10606. export SHELL
  10607. _ASEOF
  10608. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10609. ## -------------------- ##
  10610. ## M4sh Initialization. ##
  10611. ## -------------------- ##
  10612. # Be more Bourne compatible
  10613. DUALCASE=1; export DUALCASE # for MKS sh
  10614. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10615. emulate sh
  10616. NULLCMD=:
  10617. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10618. # is contrary to our usage. Disable this feature.
  10619. alias -g '${1+"$@"}'='"$@"'
  10620. setopt NO_GLOB_SUBST
  10621. else
  10622. case `(set -o) 2>/dev/null` in @%:@(
  10623. *posix*) :
  10624. set -o posix ;; @%:@(
  10625. *) :
  10626. ;;
  10627. esac
  10628. fi
  10629. as_nl='
  10630. '
  10631. export as_nl
  10632. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10633. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10634. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10635. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10636. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10637. # but without wasting forks for bash or zsh.
  10638. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10639. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10640. as_echo='print -r --'
  10641. as_echo_n='print -rn --'
  10642. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10643. as_echo='printf %s\n'
  10644. as_echo_n='printf %s'
  10645. else
  10646. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10647. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10648. as_echo_n='/usr/ucb/echo -n'
  10649. else
  10650. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10651. as_echo_n_body='eval
  10652. arg=$1;
  10653. case $arg in @%:@(
  10654. *"$as_nl"*)
  10655. expr "X$arg" : "X\\(.*\\)$as_nl";
  10656. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10657. esac;
  10658. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10659. '
  10660. export as_echo_n_body
  10661. as_echo_n='sh -c $as_echo_n_body as_echo'
  10662. fi
  10663. export as_echo_body
  10664. as_echo='sh -c $as_echo_body as_echo'
  10665. fi
  10666. # The user is always right.
  10667. if test "${PATH_SEPARATOR+set}" != set; then
  10668. PATH_SEPARATOR=:
  10669. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10670. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10671. PATH_SEPARATOR=';'
  10672. }
  10673. fi
  10674. # IFS
  10675. # We need space, tab and new line, in precisely that order. Quoting is
  10676. # there to prevent editors from complaining about space-tab.
  10677. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10678. # splitting by setting IFS to empty value.)
  10679. IFS=" "" $as_nl"
  10680. # Find who we are. Look in the path if we contain no directory separator.
  10681. as_myself=
  10682. case $0 in @%:@((
  10683. *[\\/]* ) as_myself=$0 ;;
  10684. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10685. for as_dir in $PATH
  10686. do
  10687. IFS=$as_save_IFS
  10688. test -z "$as_dir" && as_dir=.
  10689. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10690. done
  10691. IFS=$as_save_IFS
  10692. ;;
  10693. esac
  10694. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10695. # in which case we are not to be found in the path.
  10696. if test "x$as_myself" = x; then
  10697. as_myself=$0
  10698. fi
  10699. if test ! -f "$as_myself"; then
  10700. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10701. exit 1
  10702. fi
  10703. # Unset variables that we do not need and which cause bugs (e.g. in
  10704. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10705. # suppresses any "Segmentation fault" message there. '((' could
  10706. # trigger a bug in pdksh 5.2.14.
  10707. for as_var in BASH_ENV ENV MAIL MAILPATH
  10708. do eval test x\${$as_var+set} = xset \
  10709. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10710. done
  10711. PS1='$ '
  10712. PS2='> '
  10713. PS4='+ '
  10714. # NLS nuisances.
  10715. LC_ALL=C
  10716. export LC_ALL
  10717. LANGUAGE=C
  10718. export LANGUAGE
  10719. # CDPATH.
  10720. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10721. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  10722. @%:@ ----------------------------------------
  10723. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10724. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10725. @%:@ script with STATUS, using 1 if that was 0.
  10726. as_fn_error ()
  10727. {
  10728. as_status=$1; test $as_status -eq 0 && as_status=1
  10729. if test "$4"; then
  10730. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10731. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10732. fi
  10733. $as_echo "$as_me: error: $2" >&2
  10734. as_fn_exit $as_status
  10735. } @%:@ as_fn_error
  10736. @%:@ as_fn_set_status STATUS
  10737. @%:@ -----------------------
  10738. @%:@ Set @S|@? to STATUS, without forking.
  10739. as_fn_set_status ()
  10740. {
  10741. return $1
  10742. } @%:@ as_fn_set_status
  10743. @%:@ as_fn_exit STATUS
  10744. @%:@ -----------------
  10745. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10746. as_fn_exit ()
  10747. {
  10748. set +e
  10749. as_fn_set_status $1
  10750. exit $1
  10751. } @%:@ as_fn_exit
  10752. @%:@ as_fn_unset VAR
  10753. @%:@ ---------------
  10754. @%:@ Portably unset VAR.
  10755. as_fn_unset ()
  10756. {
  10757. { eval $1=; unset $1;}
  10758. }
  10759. as_unset=as_fn_unset
  10760. @%:@ as_fn_append VAR VALUE
  10761. @%:@ ----------------------
  10762. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  10763. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  10764. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  10765. @%:@ implementations.
  10766. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10767. eval 'as_fn_append ()
  10768. {
  10769. eval $1+=\$2
  10770. }'
  10771. else
  10772. as_fn_append ()
  10773. {
  10774. eval $1=\$$1\$2
  10775. }
  10776. fi # as_fn_append
  10777. @%:@ as_fn_arith ARG...
  10778. @%:@ ------------------
  10779. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  10780. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  10781. @%:@ must be portable across @S|@(()) and expr.
  10782. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10783. eval 'as_fn_arith ()
  10784. {
  10785. as_val=$(( $* ))
  10786. }'
  10787. else
  10788. as_fn_arith ()
  10789. {
  10790. as_val=`expr "$@" || test $? -eq 1`
  10791. }
  10792. fi # as_fn_arith
  10793. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10794. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10795. as_expr=expr
  10796. else
  10797. as_expr=false
  10798. fi
  10799. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10800. as_basename=basename
  10801. else
  10802. as_basename=false
  10803. fi
  10804. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10805. as_dirname=dirname
  10806. else
  10807. as_dirname=false
  10808. fi
  10809. as_me=`$as_basename -- "$0" ||
  10810. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10811. X"$0" : 'X\(//\)$' \| \
  10812. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10813. $as_echo X/"$0" |
  10814. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10815. s//\1/
  10816. q
  10817. }
  10818. /^X\/\(\/\/\)$/{
  10819. s//\1/
  10820. q
  10821. }
  10822. /^X\/\(\/\).*/{
  10823. s//\1/
  10824. q
  10825. }
  10826. s/.*/./; q'`
  10827. # Avoid depending upon Character Ranges.
  10828. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10829. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10830. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10831. as_cr_digits='0123456789'
  10832. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10833. ECHO_C= ECHO_N= ECHO_T=
  10834. case `echo -n x` in @%:@(((((
  10835. -n*)
  10836. case `echo 'xy\c'` in
  10837. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10838. xy) ECHO_C='\c';;
  10839. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10840. ECHO_T=' ';;
  10841. esac;;
  10842. *)
  10843. ECHO_N='-n';;
  10844. esac
  10845. rm -f conf$$ conf$$.exe conf$$.file
  10846. if test -d conf$$.dir; then
  10847. rm -f conf$$.dir/conf$$.file
  10848. else
  10849. rm -f conf$$.dir
  10850. mkdir conf$$.dir 2>/dev/null
  10851. fi
  10852. if (echo >conf$$.file) 2>/dev/null; then
  10853. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10854. as_ln_s='ln -s'
  10855. # ... but there are two gotchas:
  10856. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10857. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10858. # In both cases, we have to default to `cp -p'.
  10859. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10860. as_ln_s='cp -p'
  10861. elif ln conf$$.file conf$$ 2>/dev/null; then
  10862. as_ln_s=ln
  10863. else
  10864. as_ln_s='cp -p'
  10865. fi
  10866. else
  10867. as_ln_s='cp -p'
  10868. fi
  10869. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10870. rmdir conf$$.dir 2>/dev/null
  10871. @%:@ as_fn_mkdir_p
  10872. @%:@ -------------
  10873. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  10874. as_fn_mkdir_p ()
  10875. {
  10876. case $as_dir in #(
  10877. -*) as_dir=./$as_dir;;
  10878. esac
  10879. test -d "$as_dir" || eval $as_mkdir_p || {
  10880. as_dirs=
  10881. while :; do
  10882. case $as_dir in #(
  10883. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10884. *) as_qdir=$as_dir;;
  10885. esac
  10886. as_dirs="'$as_qdir' $as_dirs"
  10887. as_dir=`$as_dirname -- "$as_dir" ||
  10888. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10889. X"$as_dir" : 'X\(//\)[^/]' \| \
  10890. X"$as_dir" : 'X\(//\)$' \| \
  10891. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10892. $as_echo X"$as_dir" |
  10893. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10894. s//\1/
  10895. q
  10896. }
  10897. /^X\(\/\/\)[^/].*/{
  10898. s//\1/
  10899. q
  10900. }
  10901. /^X\(\/\/\)$/{
  10902. s//\1/
  10903. q
  10904. }
  10905. /^X\(\/\).*/{
  10906. s//\1/
  10907. q
  10908. }
  10909. s/.*/./; q'`
  10910. test -d "$as_dir" && break
  10911. done
  10912. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10913. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10914. } @%:@ as_fn_mkdir_p
  10915. if mkdir -p . 2>/dev/null; then
  10916. as_mkdir_p='mkdir -p "$as_dir"'
  10917. else
  10918. test -d ./-p && rmdir ./-p
  10919. as_mkdir_p=false
  10920. fi
  10921. if test -x / >/dev/null 2>&1; then
  10922. as_test_x='test -x'
  10923. else
  10924. if ls -dL / >/dev/null 2>&1; then
  10925. as_ls_L_option=L
  10926. else
  10927. as_ls_L_option=
  10928. fi
  10929. as_test_x='
  10930. eval sh -c '\''
  10931. if test -d "$1"; then
  10932. test -d "$1/.";
  10933. else
  10934. case $1 in @%:@(
  10935. -*)set "./$1";;
  10936. esac;
  10937. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  10938. ???[sx]*):;;*)false;;esac;fi
  10939. '\'' sh
  10940. '
  10941. fi
  10942. as_executable_p=$as_test_x
  10943. # Sed expression to map a string onto a valid CPP name.
  10944. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10945. # Sed expression to map a string onto a valid variable name.
  10946. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10947. exec 6>&1
  10948. ## ----------------------------------- ##
  10949. ## Main body of $CONFIG_STATUS script. ##
  10950. ## ----------------------------------- ##
  10951. _ASEOF
  10952. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10953. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10954. # Save the log message, to keep $0 and so on meaningful, and to
  10955. # report actual input values of CONFIG_FILES etc. instead of their
  10956. # values after options handling.
  10957. ac_log="
  10958. This file was extended by libusb $as_me 1.0.16-rc10, which was
  10959. generated by GNU Autoconf 2.68. Invocation command line was
  10960. CONFIG_FILES = $CONFIG_FILES
  10961. CONFIG_HEADERS = $CONFIG_HEADERS
  10962. CONFIG_LINKS = $CONFIG_LINKS
  10963. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10964. $ $0 $@
  10965. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10966. "
  10967. _ACEOF
  10968. case $ac_config_files in *"
  10969. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10970. esac
  10971. case $ac_config_headers in *"
  10972. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10973. esac
  10974. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10975. # Files that config.status was made for.
  10976. config_files="$ac_config_files"
  10977. config_headers="$ac_config_headers"
  10978. config_commands="$ac_config_commands"
  10979. _ACEOF
  10980. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10981. ac_cs_usage="\
  10982. \`$as_me' instantiates files and other configuration actions
  10983. from templates according to the current configuration. Unless the files
  10984. and actions are specified as TAGs, all are instantiated by default.
  10985. Usage: $0 [OPTION]... [TAG]...
  10986. -h, --help print this help, then exit
  10987. -V, --version print version number and configuration settings, then exit
  10988. --config print configuration, then exit
  10989. -q, --quiet, --silent
  10990. do not print progress messages
  10991. -d, --debug don't remove temporary files
  10992. --recheck update $as_me by reconfiguring in the same conditions
  10993. --file=FILE[:TEMPLATE]
  10994. instantiate the configuration file FILE
  10995. --header=FILE[:TEMPLATE]
  10996. instantiate the configuration header FILE
  10997. Configuration files:
  10998. $config_files
  10999. Configuration headers:
  11000. $config_headers
  11001. Configuration commands:
  11002. $config_commands
  11003. Report bugs to <libusb-devel@lists.sourceforge.net>.
  11004. libusb home page: <http://www.libusb.org/>."
  11005. _ACEOF
  11006. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11007. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11008. ac_cs_version="\\
  11009. libusb config.status 1.0.16-rc10
  11010. configured by $0, generated by GNU Autoconf 2.68,
  11011. with options \\"\$ac_cs_config\\"
  11012. Copyright (C) 2010 Free Software Foundation, Inc.
  11013. This config.status script is free software; the Free Software Foundation
  11014. gives unlimited permission to copy, distribute and modify it."
  11015. ac_pwd='$ac_pwd'
  11016. srcdir='$srcdir'
  11017. INSTALL='$INSTALL'
  11018. MKDIR_P='$MKDIR_P'
  11019. AWK='$AWK'
  11020. test -n "\$AWK" || AWK=awk
  11021. _ACEOF
  11022. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11023. # The default lists apply if the user does not specify any file.
  11024. ac_need_defaults=:
  11025. while test $# != 0
  11026. do
  11027. case $1 in
  11028. --*=?*)
  11029. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11030. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11031. ac_shift=:
  11032. ;;
  11033. --*=)
  11034. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11035. ac_optarg=
  11036. ac_shift=:
  11037. ;;
  11038. *)
  11039. ac_option=$1
  11040. ac_optarg=$2
  11041. ac_shift=shift
  11042. ;;
  11043. esac
  11044. case $ac_option in
  11045. # Handling of the options.
  11046. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11047. ac_cs_recheck=: ;;
  11048. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11049. $as_echo "$ac_cs_version"; exit ;;
  11050. --config | --confi | --conf | --con | --co | --c )
  11051. $as_echo "$ac_cs_config"; exit ;;
  11052. --debug | --debu | --deb | --de | --d | -d )
  11053. debug=: ;;
  11054. --file | --fil | --fi | --f )
  11055. $ac_shift
  11056. case $ac_optarg in
  11057. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11058. '') as_fn_error $? "missing file argument" ;;
  11059. esac
  11060. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11061. ac_need_defaults=false;;
  11062. --header | --heade | --head | --hea )
  11063. $ac_shift
  11064. case $ac_optarg in
  11065. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11066. esac
  11067. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11068. ac_need_defaults=false;;
  11069. --he | --h)
  11070. # Conflict between --help and --header
  11071. as_fn_error $? "ambiguous option: \`$1'
  11072. Try \`$0 --help' for more information.";;
  11073. --help | --hel | -h )
  11074. $as_echo "$ac_cs_usage"; exit ;;
  11075. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11076. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11077. ac_cs_silent=: ;;
  11078. # This is an error.
  11079. -*) as_fn_error $? "unrecognized option: \`$1'
  11080. Try \`$0 --help' for more information." ;;
  11081. *) as_fn_append ac_config_targets " $1"
  11082. ac_need_defaults=false ;;
  11083. esac
  11084. shift
  11085. done
  11086. ac_configure_extra_args=
  11087. if $ac_cs_silent; then
  11088. exec 6>/dev/null
  11089. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11090. fi
  11091. _ACEOF
  11092. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11093. if \$ac_cs_recheck; then
  11094. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11095. shift
  11096. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11097. CONFIG_SHELL='$SHELL'
  11098. export CONFIG_SHELL
  11099. exec "\$@"
  11100. fi
  11101. _ACEOF
  11102. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11103. exec 5>>config.log
  11104. {
  11105. echo
  11106. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  11107. @%:@@%:@ Running $as_me. @%:@@%:@
  11108. _ASBOX
  11109. $as_echo "$ac_log"
  11110. } >&5
  11111. _ACEOF
  11112. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11113. #
  11114. # INIT-COMMANDS
  11115. #
  11116. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11117. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11118. # if CDPATH is set.
  11119. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11120. sed_quote_subst='$sed_quote_subst'
  11121. double_quote_subst='$double_quote_subst'
  11122. delay_variable_subst='$delay_variable_subst'
  11123. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11124. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11125. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11126. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11127. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11128. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11129. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11130. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11131. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11132. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11133. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11134. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11135. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11136. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11137. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11138. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11139. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11140. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11141. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11142. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11143. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11144. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11145. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11146. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11147. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11148. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11149. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11150. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11151. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  11152. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  11153. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11154. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11155. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11156. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11157. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11158. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11159. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11160. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11161. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11162. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11163. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11164. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11165. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11166. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11167. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11168. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11169. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11170. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11171. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11172. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11173. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11174. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11175. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11176. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11177. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11178. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11179. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11180. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11181. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11182. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11183. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11184. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11185. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11186. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11187. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11188. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11189. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11190. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11191. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11192. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11193. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11194. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11195. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11196. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11197. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11198. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11199. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11200. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11201. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11202. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11203. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11204. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11205. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11206. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11207. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11208. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11209. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11210. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11211. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11212. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11213. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  11214. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11215. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11216. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11217. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11218. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11219. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11220. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11221. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11222. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11223. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11224. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11225. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11226. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11227. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11228. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11229. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11230. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11231. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11232. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11233. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11234. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11235. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11236. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11237. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11238. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11239. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11240. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11241. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11242. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11243. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11244. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11245. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11246. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11247. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11248. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11249. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11250. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11251. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11252. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11253. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  11254. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  11255. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11256. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11257. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  11258. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  11259. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  11260. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  11261. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  11262. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  11263. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  11264. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  11265. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  11266. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  11267. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  11268. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  11269. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11270. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11271. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11272. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11273. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11274. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11275. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  11276. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  11277. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  11278. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  11279. hardcode_libdir_flag_spec_ld_RC='`$ECHO "$hardcode_libdir_flag_spec_ld_RC" | $SED "$delay_single_quote_subst"`'
  11280. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  11281. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  11282. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  11283. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  11284. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  11285. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  11286. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  11287. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  11288. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  11289. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11290. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  11291. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  11292. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11293. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11294. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  11295. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  11296. LTCC='$LTCC'
  11297. LTCFLAGS='$LTCFLAGS'
  11298. compiler='$compiler_DEFAULT'
  11299. # A function that is used when there is no print builtin or printf.
  11300. func_fallback_echo ()
  11301. {
  11302. eval 'cat <<_LTECHO_EOF
  11303. \$1
  11304. _LTECHO_EOF'
  11305. }
  11306. # Quote evaled strings.
  11307. for var in SHELL \
  11308. ECHO \
  11309. SED \
  11310. GREP \
  11311. EGREP \
  11312. FGREP \
  11313. LD \
  11314. NM \
  11315. LN_S \
  11316. lt_SP2NL \
  11317. lt_NL2SP \
  11318. reload_flag \
  11319. OBJDUMP \
  11320. deplibs_check_method \
  11321. file_magic_cmd \
  11322. file_magic_glob \
  11323. want_nocaseglob \
  11324. DLLTOOL \
  11325. sharedlib_from_linklib_cmd \
  11326. AR \
  11327. AR_FLAGS \
  11328. archiver_list_spec \
  11329. STRIP \
  11330. RANLIB \
  11331. CC \
  11332. CFLAGS \
  11333. compiler \
  11334. lt_cv_sys_global_symbol_pipe \
  11335. lt_cv_sys_global_symbol_to_cdecl \
  11336. lt_cv_sys_global_symbol_to_c_name_address \
  11337. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11338. nm_file_list_spec \
  11339. lt_prog_compiler_no_builtin_flag \
  11340. lt_prog_compiler_pic \
  11341. lt_prog_compiler_wl \
  11342. lt_prog_compiler_static \
  11343. lt_cv_prog_compiler_c_o \
  11344. need_locks \
  11345. MANIFEST_TOOL \
  11346. DSYMUTIL \
  11347. NMEDIT \
  11348. LIPO \
  11349. OTOOL \
  11350. OTOOL64 \
  11351. shrext_cmds \
  11352. export_dynamic_flag_spec \
  11353. whole_archive_flag_spec \
  11354. compiler_needs_object \
  11355. with_gnu_ld \
  11356. allow_undefined_flag \
  11357. no_undefined_flag \
  11358. hardcode_libdir_flag_spec \
  11359. hardcode_libdir_flag_spec_ld \
  11360. hardcode_libdir_separator \
  11361. exclude_expsyms \
  11362. include_expsyms \
  11363. file_list_spec \
  11364. variables_saved_for_relink \
  11365. libname_spec \
  11366. library_names_spec \
  11367. soname_spec \
  11368. install_override_mode \
  11369. finish_eval \
  11370. old_striplib \
  11371. striplib \
  11372. LD_RC \
  11373. reload_flag_RC \
  11374. compiler_RC \
  11375. lt_prog_compiler_no_builtin_flag_RC \
  11376. lt_prog_compiler_pic_RC \
  11377. lt_prog_compiler_wl_RC \
  11378. lt_prog_compiler_static_RC \
  11379. lt_cv_prog_compiler_c_o_RC \
  11380. export_dynamic_flag_spec_RC \
  11381. whole_archive_flag_spec_RC \
  11382. compiler_needs_object_RC \
  11383. with_gnu_ld_RC \
  11384. allow_undefined_flag_RC \
  11385. no_undefined_flag_RC \
  11386. hardcode_libdir_flag_spec_RC \
  11387. hardcode_libdir_flag_spec_ld_RC \
  11388. hardcode_libdir_separator_RC \
  11389. exclude_expsyms_RC \
  11390. include_expsyms_RC \
  11391. file_list_spec_RC; do
  11392. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11393. *[\\\\\\\`\\"\\\$]*)
  11394. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11395. ;;
  11396. *)
  11397. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11398. ;;
  11399. esac
  11400. done
  11401. # Double-quote double-evaled strings.
  11402. for var in reload_cmds \
  11403. old_postinstall_cmds \
  11404. old_postuninstall_cmds \
  11405. old_archive_cmds \
  11406. extract_expsyms_cmds \
  11407. old_archive_from_new_cmds \
  11408. old_archive_from_expsyms_cmds \
  11409. archive_cmds \
  11410. archive_expsym_cmds \
  11411. module_cmds \
  11412. module_expsym_cmds \
  11413. export_symbols_cmds \
  11414. prelink_cmds \
  11415. postlink_cmds \
  11416. postinstall_cmds \
  11417. postuninstall_cmds \
  11418. finish_cmds \
  11419. sys_lib_search_path_spec \
  11420. sys_lib_dlsearch_path_spec \
  11421. reload_cmds_RC \
  11422. old_archive_cmds_RC \
  11423. old_archive_from_new_cmds_RC \
  11424. old_archive_from_expsyms_cmds_RC \
  11425. archive_cmds_RC \
  11426. archive_expsym_cmds_RC \
  11427. module_cmds_RC \
  11428. module_expsym_cmds_RC \
  11429. export_symbols_cmds_RC \
  11430. prelink_cmds_RC \
  11431. postlink_cmds_RC; do
  11432. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11433. *[\\\\\\\`\\"\\\$]*)
  11434. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11435. ;;
  11436. *)
  11437. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11438. ;;
  11439. esac
  11440. done
  11441. ac_aux_dir='$ac_aux_dir'
  11442. xsi_shell='$xsi_shell'
  11443. lt_shell_append='$lt_shell_append'
  11444. # See if we are running on zsh, and set the options which allow our
  11445. # commands through without removal of \ escapes INIT.
  11446. if test -n "\${ZSH_VERSION+set}" ; then
  11447. setopt NO_GLOB_SUBST
  11448. fi
  11449. PACKAGE='$PACKAGE'
  11450. VERSION='$VERSION'
  11451. TIMESTAMP='$TIMESTAMP'
  11452. RM='$RM'
  11453. ofile='$ofile'
  11454. _ACEOF
  11455. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11456. # Handling of arguments.
  11457. for ac_config_target in $ac_config_targets
  11458. do
  11459. case $ac_config_target in
  11460. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11461. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11462. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11463. "libusb-1.0.pc") CONFIG_FILES="$CONFIG_FILES libusb-1.0.pc" ;;
  11464. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11465. "libusb/Makefile") CONFIG_FILES="$CONFIG_FILES libusb/Makefile" ;;
  11466. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  11467. esac
  11468. done
  11469. # If the user did not use the arguments to specify the items to instantiate,
  11470. # then the envvar interface is used. Set only those that are not.
  11471. # We use the long form for the default assignment because of an extremely
  11472. # bizarre bug on SunOS 4.1.3.
  11473. if $ac_need_defaults; then
  11474. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11475. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11476. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11477. fi
  11478. # Have a temporary directory for convenience. Make it in the build tree
  11479. # simply because there is no reason against having it here, and in addition,
  11480. # creating and moving files from /tmp can sometimes cause problems.
  11481. # Hook for its removal unless debugging.
  11482. # Note that there is a small window in which the directory will not be cleaned:
  11483. # after its creation but before its name has been assigned to `$tmp'.
  11484. $debug ||
  11485. {
  11486. tmp= ac_tmp=
  11487. trap 'exit_status=$?
  11488. : "${ac_tmp:=$tmp}"
  11489. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11490. ' 0
  11491. trap 'as_fn_exit 1' 1 2 13 15
  11492. }
  11493. # Create a (secure) tmp directory for tmp files.
  11494. {
  11495. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11496. test -d "$tmp"
  11497. } ||
  11498. {
  11499. tmp=./conf$$-$RANDOM
  11500. (umask 077 && mkdir "$tmp")
  11501. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11502. ac_tmp=$tmp
  11503. # Set up the scripts for CONFIG_FILES section.
  11504. # No need to generate them if there are no CONFIG_FILES.
  11505. # This happens for instance with `./config.status config.h'.
  11506. if test -n "$CONFIG_FILES"; then
  11507. ac_cr=`echo X | tr X '\015'`
  11508. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11509. # But we know of no other shell where ac_cr would be empty at this
  11510. # point, so we can use a bashism as a fallback.
  11511. if test "x$ac_cr" = x; then
  11512. eval ac_cr=\$\'\\r\'
  11513. fi
  11514. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11515. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11516. ac_cs_awk_cr='\\r'
  11517. else
  11518. ac_cs_awk_cr=$ac_cr
  11519. fi
  11520. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11521. _ACEOF
  11522. {
  11523. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11524. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11525. echo "_ACEOF"
  11526. } >conf$$subs.sh ||
  11527. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11528. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11529. ac_delim='%!_!# '
  11530. for ac_last_try in false false false false false :; do
  11531. . ./conf$$subs.sh ||
  11532. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11533. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11534. if test $ac_delim_n = $ac_delim_num; then
  11535. break
  11536. elif $ac_last_try; then
  11537. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11538. else
  11539. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11540. fi
  11541. done
  11542. rm -f conf$$subs.sh
  11543. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11544. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11545. _ACEOF
  11546. sed -n '
  11547. h
  11548. s/^/S["/; s/!.*/"]=/
  11549. p
  11550. g
  11551. s/^[^!]*!//
  11552. :repl
  11553. t repl
  11554. s/'"$ac_delim"'$//
  11555. t delim
  11556. :nl
  11557. h
  11558. s/\(.\{148\}\)..*/\1/
  11559. t more1
  11560. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11561. p
  11562. n
  11563. b repl
  11564. :more1
  11565. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11566. p
  11567. g
  11568. s/.\{148\}//
  11569. t nl
  11570. :delim
  11571. h
  11572. s/\(.\{148\}\)..*/\1/
  11573. t more2
  11574. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11575. p
  11576. b
  11577. :more2
  11578. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11579. p
  11580. g
  11581. s/.\{148\}//
  11582. t delim
  11583. ' <conf$$subs.awk | sed '
  11584. /^[^""]/{
  11585. N
  11586. s/\n//
  11587. }
  11588. ' >>$CONFIG_STATUS || ac_write_fail=1
  11589. rm -f conf$$subs.awk
  11590. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11591. _ACAWK
  11592. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11593. for (key in S) S_is_set[key] = 1
  11594. FS = ""
  11595. }
  11596. {
  11597. line = $ 0
  11598. nfields = split(line, field, "@")
  11599. substed = 0
  11600. len = length(field[1])
  11601. for (i = 2; i < nfields; i++) {
  11602. key = field[i]
  11603. keylen = length(key)
  11604. if (S_is_set[key]) {
  11605. value = S[key]
  11606. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11607. len += length(value) + length(field[++i])
  11608. substed = 1
  11609. } else
  11610. len += 1 + keylen
  11611. }
  11612. print line
  11613. }
  11614. _ACAWK
  11615. _ACEOF
  11616. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11617. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11618. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11619. else
  11620. cat
  11621. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11622. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11623. _ACEOF
  11624. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11625. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11626. # trailing colons and then remove the whole line if VPATH becomes empty
  11627. # (actually we leave an empty line to preserve line numbers).
  11628. if test "x$srcdir" = x.; then
  11629. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11630. h
  11631. s///
  11632. s/^/:/
  11633. s/[ ]*$/:/
  11634. s/:\$(srcdir):/:/g
  11635. s/:\${srcdir}:/:/g
  11636. s/:@srcdir@:/:/g
  11637. s/^:*//
  11638. s/:*$//
  11639. x
  11640. s/\(=[ ]*\).*/\1/
  11641. G
  11642. s/\n//
  11643. s/^[^=]*=[ ]*$//
  11644. }'
  11645. fi
  11646. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11647. fi # test -n "$CONFIG_FILES"
  11648. # Set up the scripts for CONFIG_HEADERS section.
  11649. # No need to generate them if there are no CONFIG_HEADERS.
  11650. # This happens for instance with `./config.status Makefile'.
  11651. if test -n "$CONFIG_HEADERS"; then
  11652. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11653. BEGIN {
  11654. _ACEOF
  11655. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11656. # here-document in config.status, that substitutes the proper values into
  11657. # config.h.in to produce config.h.
  11658. # Create a delimiter string that does not exist in confdefs.h, to ease
  11659. # handling of long lines.
  11660. ac_delim='%!_!# '
  11661. for ac_last_try in false false :; do
  11662. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11663. if test -z "$ac_tt"; then
  11664. break
  11665. elif $ac_last_try; then
  11666. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11667. else
  11668. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11669. fi
  11670. done
  11671. # For the awk script, D is an array of macro values keyed by name,
  11672. # likewise P contains macro parameters if any. Preserve backslash
  11673. # newline sequences.
  11674. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11675. sed -n '
  11676. s/.\{148\}/&'"$ac_delim"'/g
  11677. t rset
  11678. :rset
  11679. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11680. t def
  11681. d
  11682. :def
  11683. s/\\$//
  11684. t bsnl
  11685. s/["\\]/\\&/g
  11686. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11687. D["\1"]=" \3"/p
  11688. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11689. d
  11690. :bsnl
  11691. s/["\\]/\\&/g
  11692. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11693. D["\1"]=" \3\\\\\\n"\\/p
  11694. t cont
  11695. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11696. t cont
  11697. d
  11698. :cont
  11699. n
  11700. s/.\{148\}/&'"$ac_delim"'/g
  11701. t clear
  11702. :clear
  11703. s/\\$//
  11704. t bsnlc
  11705. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11706. d
  11707. :bsnlc
  11708. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11709. b cont
  11710. ' <confdefs.h | sed '
  11711. s/'"$ac_delim"'/"\\\
  11712. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11713. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11714. for (key in D) D_is_set[key] = 1
  11715. FS = ""
  11716. }
  11717. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11718. line = \$ 0
  11719. split(line, arg, " ")
  11720. if (arg[1] == "#") {
  11721. defundef = arg[2]
  11722. mac1 = arg[3]
  11723. } else {
  11724. defundef = substr(arg[1], 2)
  11725. mac1 = arg[2]
  11726. }
  11727. split(mac1, mac2, "(") #)
  11728. macro = mac2[1]
  11729. prefix = substr(line, 1, index(line, defundef) - 1)
  11730. if (D_is_set[macro]) {
  11731. # Preserve the white space surrounding the "#".
  11732. print prefix "define", macro P[macro] D[macro]
  11733. next
  11734. } else {
  11735. # Replace #undef with comments. This is necessary, for example,
  11736. # in the case of _POSIX_SOURCE, which is predefined and required
  11737. # on some systems where configure will not decide to define it.
  11738. if (defundef == "undef") {
  11739. print "/*", prefix defundef, macro, "*/"
  11740. next
  11741. }
  11742. }
  11743. }
  11744. { print }
  11745. _ACAWK
  11746. _ACEOF
  11747. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11748. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11749. fi # test -n "$CONFIG_HEADERS"
  11750. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11751. shift
  11752. for ac_tag
  11753. do
  11754. case $ac_tag in
  11755. :[FHLC]) ac_mode=$ac_tag; continue;;
  11756. esac
  11757. case $ac_mode$ac_tag in
  11758. :[FHL]*:*);;
  11759. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  11760. :[FH]-) ac_tag=-:-;;
  11761. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11762. esac
  11763. ac_save_IFS=$IFS
  11764. IFS=:
  11765. set x $ac_tag
  11766. IFS=$ac_save_IFS
  11767. shift
  11768. ac_file=$1
  11769. shift
  11770. case $ac_mode in
  11771. :L) ac_source=$1;;
  11772. :[FH])
  11773. ac_file_inputs=
  11774. for ac_f
  11775. do
  11776. case $ac_f in
  11777. -) ac_f="$ac_tmp/stdin";;
  11778. *) # Look for the file first in the build tree, then in the source tree
  11779. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11780. # because $ac_f cannot contain `:'.
  11781. test -f "$ac_f" ||
  11782. case $ac_f in
  11783. [\\/$]*) false;;
  11784. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11785. esac ||
  11786. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  11787. esac
  11788. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11789. as_fn_append ac_file_inputs " '$ac_f'"
  11790. done
  11791. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11792. # use $as_me), people would be surprised to read:
  11793. # /* config.h. Generated by config.status. */
  11794. configure_input='Generated from '`
  11795. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11796. `' by configure.'
  11797. if test x"$ac_file" != x-; then
  11798. configure_input="$ac_file. $configure_input"
  11799. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11800. $as_echo "$as_me: creating $ac_file" >&6;}
  11801. fi
  11802. # Neutralize special characters interpreted by sed in replacement strings.
  11803. case $configure_input in #(
  11804. *\&* | *\|* | *\\* )
  11805. ac_sed_conf_input=`$as_echo "$configure_input" |
  11806. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11807. *) ac_sed_conf_input=$configure_input;;
  11808. esac
  11809. case $ac_tag in
  11810. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11811. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11812. esac
  11813. ;;
  11814. esac
  11815. ac_dir=`$as_dirname -- "$ac_file" ||
  11816. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11817. X"$ac_file" : 'X\(//\)[^/]' \| \
  11818. X"$ac_file" : 'X\(//\)$' \| \
  11819. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11820. $as_echo X"$ac_file" |
  11821. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11822. s//\1/
  11823. q
  11824. }
  11825. /^X\(\/\/\)[^/].*/{
  11826. s//\1/
  11827. q
  11828. }
  11829. /^X\(\/\/\)$/{
  11830. s//\1/
  11831. q
  11832. }
  11833. /^X\(\/\).*/{
  11834. s//\1/
  11835. q
  11836. }
  11837. s/.*/./; q'`
  11838. as_dir="$ac_dir"; as_fn_mkdir_p
  11839. ac_builddir=.
  11840. case "$ac_dir" in
  11841. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11842. *)
  11843. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11844. # A ".." for each directory in $ac_dir_suffix.
  11845. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11846. case $ac_top_builddir_sub in
  11847. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11848. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11849. esac ;;
  11850. esac
  11851. ac_abs_top_builddir=$ac_pwd
  11852. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11853. # for backward compatibility:
  11854. ac_top_builddir=$ac_top_build_prefix
  11855. case $srcdir in
  11856. .) # We are building in place.
  11857. ac_srcdir=.
  11858. ac_top_srcdir=$ac_top_builddir_sub
  11859. ac_abs_top_srcdir=$ac_pwd ;;
  11860. [\\/]* | ?:[\\/]* ) # Absolute name.
  11861. ac_srcdir=$srcdir$ac_dir_suffix;
  11862. ac_top_srcdir=$srcdir
  11863. ac_abs_top_srcdir=$srcdir ;;
  11864. *) # Relative name.
  11865. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11866. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11867. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11868. esac
  11869. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11870. case $ac_mode in
  11871. :F)
  11872. #
  11873. # CONFIG_FILE
  11874. #
  11875. case $INSTALL in
  11876. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11877. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11878. esac
  11879. ac_MKDIR_P=$MKDIR_P
  11880. case $MKDIR_P in
  11881. [\\/$]* | ?:[\\/]* ) ;;
  11882. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11883. esac
  11884. _ACEOF
  11885. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11886. # If the template does not know about datarootdir, expand it.
  11887. # FIXME: This hack should be removed a few years after 2.60.
  11888. ac_datarootdir_hack=; ac_datarootdir_seen=
  11889. ac_sed_dataroot='
  11890. /datarootdir/ {
  11891. p
  11892. q
  11893. }
  11894. /@datadir@/p
  11895. /@docdir@/p
  11896. /@infodir@/p
  11897. /@localedir@/p
  11898. /@mandir@/p'
  11899. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11900. *datarootdir*) ac_datarootdir_seen=yes;;
  11901. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11903. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11904. _ACEOF
  11905. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11906. ac_datarootdir_hack='
  11907. s&@datadir@&$datadir&g
  11908. s&@docdir@&$docdir&g
  11909. s&@infodir@&$infodir&g
  11910. s&@localedir@&$localedir&g
  11911. s&@mandir@&$mandir&g
  11912. s&\\\${datarootdir}&$datarootdir&g' ;;
  11913. esac
  11914. _ACEOF
  11915. # Neutralize VPATH when `$srcdir' = `.'.
  11916. # Shell code in configure.ac might set extrasub.
  11917. # FIXME: do we really want to maintain this feature?
  11918. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11919. ac_sed_extra="$ac_vpsub
  11920. $extrasub
  11921. _ACEOF
  11922. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11923. :t
  11924. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11925. s|@configure_input@|$ac_sed_conf_input|;t t
  11926. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11927. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11928. s&@srcdir@&$ac_srcdir&;t t
  11929. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11930. s&@top_srcdir@&$ac_top_srcdir&;t t
  11931. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11932. s&@builddir@&$ac_builddir&;t t
  11933. s&@abs_builddir@&$ac_abs_builddir&;t t
  11934. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11935. s&@INSTALL@&$ac_INSTALL&;t t
  11936. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11937. $ac_datarootdir_hack
  11938. "
  11939. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11940. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11941. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11942. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11943. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11944. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11945. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11946. which seems to be undefined. Please make sure it is defined" >&5
  11947. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11948. which seems to be undefined. Please make sure it is defined" >&2;}
  11949. rm -f "$ac_tmp/stdin"
  11950. case $ac_file in
  11951. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11952. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11953. esac \
  11954. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11955. ;;
  11956. :H)
  11957. #
  11958. # CONFIG_HEADER
  11959. #
  11960. if test x"$ac_file" != x-; then
  11961. {
  11962. $as_echo "/* $configure_input */" \
  11963. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  11964. } >"$ac_tmp/config.h" \
  11965. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11966. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  11967. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11968. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11969. else
  11970. rm -f "$ac_file"
  11971. mv "$ac_tmp/config.h" "$ac_file" \
  11972. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11973. fi
  11974. else
  11975. $as_echo "/* $configure_input */" \
  11976. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  11977. || as_fn_error $? "could not create -" "$LINENO" 5
  11978. fi
  11979. # Compute "$ac_file"'s index in $config_headers.
  11980. _am_arg="$ac_file"
  11981. _am_stamp_count=1
  11982. for _am_header in $config_headers :; do
  11983. case $_am_header in
  11984. $_am_arg | $_am_arg:* )
  11985. break ;;
  11986. * )
  11987. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11988. esac
  11989. done
  11990. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11991. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11992. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11993. X"$_am_arg" : 'X\(//\)$' \| \
  11994. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11995. $as_echo X"$_am_arg" |
  11996. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11997. s//\1/
  11998. q
  11999. }
  12000. /^X\(\/\/\)[^/].*/{
  12001. s//\1/
  12002. q
  12003. }
  12004. /^X\(\/\/\)$/{
  12005. s//\1/
  12006. q
  12007. }
  12008. /^X\(\/\).*/{
  12009. s//\1/
  12010. q
  12011. }
  12012. s/.*/./; q'`/stamp-h$_am_stamp_count
  12013. ;;
  12014. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12015. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12016. ;;
  12017. esac
  12018. case $ac_file$ac_mode in
  12019. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12020. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  12021. # are listed without --file. Let's play safe and only enable the eval
  12022. # if we detect the quoting.
  12023. case $CONFIG_FILES in
  12024. *\'*) eval set x "$CONFIG_FILES" ;;
  12025. *) set x $CONFIG_FILES ;;
  12026. esac
  12027. shift
  12028. for mf
  12029. do
  12030. # Strip MF so we end up with the name of the file.
  12031. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12032. # Check whether this is an Automake generated Makefile or not.
  12033. # We used to match only the files named `Makefile.in', but
  12034. # some people rename them; so instead we look at the file content.
  12035. # Grep'ing the first line is not enough: some people post-process
  12036. # each Makefile.in and add a new line on top of each file to say so.
  12037. # Grep'ing the whole file is not good either: AIX grep has a line
  12038. # limit of 2048, but all sed's we know have understand at least 4000.
  12039. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12040. dirpart=`$as_dirname -- "$mf" ||
  12041. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12042. X"$mf" : 'X\(//\)[^/]' \| \
  12043. X"$mf" : 'X\(//\)$' \| \
  12044. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12045. $as_echo X"$mf" |
  12046. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12047. s//\1/
  12048. q
  12049. }
  12050. /^X\(\/\/\)[^/].*/{
  12051. s//\1/
  12052. q
  12053. }
  12054. /^X\(\/\/\)$/{
  12055. s//\1/
  12056. q
  12057. }
  12058. /^X\(\/\).*/{
  12059. s//\1/
  12060. q
  12061. }
  12062. s/.*/./; q'`
  12063. else
  12064. continue
  12065. fi
  12066. # Extract the definition of DEPDIR, am__include, and am__quote
  12067. # from the Makefile without running `make'.
  12068. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12069. test -z "$DEPDIR" && continue
  12070. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12071. test -z "am__include" && continue
  12072. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12073. # When using ansi2knr, U may be empty or an underscore; expand it
  12074. U=`sed -n 's/^U = //p' < "$mf"`
  12075. # Find all dependency output files, they are included files with
  12076. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12077. # simplest approach to changing $(DEPDIR) to its actual value in the
  12078. # expansion.
  12079. for file in `sed -n "
  12080. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12081. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12082. # Make sure the directory exists.
  12083. test -f "$dirpart/$file" && continue
  12084. fdir=`$as_dirname -- "$file" ||
  12085. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12086. X"$file" : 'X\(//\)[^/]' \| \
  12087. X"$file" : 'X\(//\)$' \| \
  12088. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12089. $as_echo X"$file" |
  12090. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12091. s//\1/
  12092. q
  12093. }
  12094. /^X\(\/\/\)[^/].*/{
  12095. s//\1/
  12096. q
  12097. }
  12098. /^X\(\/\/\)$/{
  12099. s//\1/
  12100. q
  12101. }
  12102. /^X\(\/\).*/{
  12103. s//\1/
  12104. q
  12105. }
  12106. s/.*/./; q'`
  12107. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12108. # echo "creating $dirpart/$file"
  12109. echo '# dummy' > "$dirpart/$file"
  12110. done
  12111. done
  12112. }
  12113. ;;
  12114. "libtool":C)
  12115. # See if we are running on zsh, and set the options which allow our
  12116. # commands through without removal of \ escapes.
  12117. if test -n "${ZSH_VERSION+set}" ; then
  12118. setopt NO_GLOB_SUBST
  12119. fi
  12120. cfgfile="${ofile}T"
  12121. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12122. $RM "$cfgfile"
  12123. cat <<_LT_EOF >> "$cfgfile"
  12124. #! $SHELL
  12125. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12126. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12127. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12128. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12129. #
  12130. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12131. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  12132. # Inc.
  12133. # Written by Gordon Matzigkeit, 1996
  12134. #
  12135. # This file is part of GNU Libtool.
  12136. #
  12137. # GNU Libtool is free software; you can redistribute it and/or
  12138. # modify it under the terms of the GNU General Public License as
  12139. # published by the Free Software Foundation; either version 2 of
  12140. # the License, or (at your option) any later version.
  12141. #
  12142. # As a special exception to the GNU General Public License,
  12143. # if you distribute this file as part of a program or library that
  12144. # is built using GNU Libtool, you may include this file under the
  12145. # same distribution terms that you use for the rest of that program.
  12146. #
  12147. # GNU Libtool is distributed in the hope that it will be useful,
  12148. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12149. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12150. # GNU General Public License for more details.
  12151. #
  12152. # You should have received a copy of the GNU General Public License
  12153. # along with GNU Libtool; see the file COPYING. If not, a copy
  12154. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12155. # obtained by writing to the Free Software Foundation, Inc.,
  12156. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12157. # The names of the tagged configurations supported by this script.
  12158. available_tags="RC "
  12159. # ### BEGIN LIBTOOL CONFIG
  12160. # Which release of libtool.m4 was used?
  12161. macro_version=$macro_version
  12162. macro_revision=$macro_revision
  12163. # Whether or not to build shared libraries.
  12164. build_libtool_libs=$enable_shared
  12165. # Whether or not to build static libraries.
  12166. build_old_libs=$enable_static
  12167. # What type of objects to build.
  12168. pic_mode=$pic_mode
  12169. # Whether or not to optimize for fast installation.
  12170. fast_install=$enable_fast_install
  12171. # Shell to use when invoking shell scripts.
  12172. SHELL=$lt_SHELL
  12173. # An echo program that protects backslashes.
  12174. ECHO=$lt_ECHO
  12175. # The host system.
  12176. host_alias=$host_alias
  12177. host=$host
  12178. host_os=$host_os
  12179. # The build system.
  12180. build_alias=$build_alias
  12181. build=$build
  12182. build_os=$build_os
  12183. # A sed program that does not truncate output.
  12184. SED=$lt_SED
  12185. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12186. Xsed="\$SED -e 1s/^X//"
  12187. # A grep program that handles long lines.
  12188. GREP=$lt_GREP
  12189. # An ERE matcher.
  12190. EGREP=$lt_EGREP
  12191. # A literal string matcher.
  12192. FGREP=$lt_FGREP
  12193. # A BSD- or MS-compatible name lister.
  12194. NM=$lt_NM
  12195. # Whether we need soft or hard links.
  12196. LN_S=$lt_LN_S
  12197. # What is the maximum length of a command?
  12198. max_cmd_len=$max_cmd_len
  12199. # Object file suffix (normally "o").
  12200. objext=$ac_objext
  12201. # Executable file suffix (normally "").
  12202. exeext=$exeext
  12203. # whether the shell understands "unset".
  12204. lt_unset=$lt_unset
  12205. # turn spaces into newlines.
  12206. SP2NL=$lt_lt_SP2NL
  12207. # turn newlines into spaces.
  12208. NL2SP=$lt_lt_NL2SP
  12209. # convert \$build file names to \$host format.
  12210. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12211. # convert \$build files to toolchain format.
  12212. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12213. # An object symbol dumper.
  12214. OBJDUMP=$lt_OBJDUMP
  12215. # Method to check whether dependent libraries are shared objects.
  12216. deplibs_check_method=$lt_deplibs_check_method
  12217. # Command to use when deplibs_check_method = "file_magic".
  12218. file_magic_cmd=$lt_file_magic_cmd
  12219. # How to find potential files when deplibs_check_method = "file_magic".
  12220. file_magic_glob=$lt_file_magic_glob
  12221. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  12222. want_nocaseglob=$lt_want_nocaseglob
  12223. # DLL creation program.
  12224. DLLTOOL=$lt_DLLTOOL
  12225. # Command to associate shared and link libraries.
  12226. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  12227. # The archiver.
  12228. AR=$lt_AR
  12229. # Flags to create an archive.
  12230. AR_FLAGS=$lt_AR_FLAGS
  12231. # How to feed a file listing to the archiver.
  12232. archiver_list_spec=$lt_archiver_list_spec
  12233. # A symbol stripping program.
  12234. STRIP=$lt_STRIP
  12235. # Commands used to install an old-style archive.
  12236. RANLIB=$lt_RANLIB
  12237. old_postinstall_cmds=$lt_old_postinstall_cmds
  12238. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12239. # Whether to use a lock for old archive extraction.
  12240. lock_old_archive_extraction=$lock_old_archive_extraction
  12241. # A C compiler.
  12242. LTCC=$lt_CC
  12243. # LTCC compiler flags.
  12244. LTCFLAGS=$lt_CFLAGS
  12245. # Take the output of nm and produce a listing of raw symbols and C names.
  12246. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12247. # Transform the output of nm in a proper C declaration.
  12248. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12249. # Transform the output of nm in a C name address pair.
  12250. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12251. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12252. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12253. # Specify filename containing input files for \$NM.
  12254. nm_file_list_spec=$lt_nm_file_list_spec
  12255. # The root where to search for dependent libraries,and in which our libraries should be installed.
  12256. lt_sysroot=$lt_sysroot
  12257. # The name of the directory that contains temporary libtool files.
  12258. objdir=$objdir
  12259. # Used to examine libraries when file_magic_cmd begins with "file".
  12260. MAGIC_CMD=$MAGIC_CMD
  12261. # Must we lock files when doing compilation?
  12262. need_locks=$lt_need_locks
  12263. # Manifest tool.
  12264. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  12265. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12266. DSYMUTIL=$lt_DSYMUTIL
  12267. # Tool to change global to local symbols on Mac OS X.
  12268. NMEDIT=$lt_NMEDIT
  12269. # Tool to manipulate fat objects and archives on Mac OS X.
  12270. LIPO=$lt_LIPO
  12271. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12272. OTOOL=$lt_OTOOL
  12273. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12274. OTOOL64=$lt_OTOOL64
  12275. # Old archive suffix (normally "a").
  12276. libext=$libext
  12277. # Shared library suffix (normally ".so").
  12278. shrext_cmds=$lt_shrext_cmds
  12279. # The commands to extract the exported symbol list from a shared archive.
  12280. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12281. # Variables whose values should be saved in libtool wrapper scripts and
  12282. # restored at link time.
  12283. variables_saved_for_relink=$lt_variables_saved_for_relink
  12284. # Do we need the "lib" prefix for modules?
  12285. need_lib_prefix=$need_lib_prefix
  12286. # Do we need a version for libraries?
  12287. need_version=$need_version
  12288. # Library versioning type.
  12289. version_type=$version_type
  12290. # Shared library runtime path variable.
  12291. runpath_var=$runpath_var
  12292. # Shared library path variable.
  12293. shlibpath_var=$shlibpath_var
  12294. # Is shlibpath searched before the hard-coded library search path?
  12295. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12296. # Format of library name prefix.
  12297. libname_spec=$lt_libname_spec
  12298. # List of archive names. First name is the real one, the rest are links.
  12299. # The last name is the one that the linker finds with -lNAME
  12300. library_names_spec=$lt_library_names_spec
  12301. # The coded name of the library, if different from the real name.
  12302. soname_spec=$lt_soname_spec
  12303. # Permission mode override for installation of shared libraries.
  12304. install_override_mode=$lt_install_override_mode
  12305. # Command to use after installation of a shared archive.
  12306. postinstall_cmds=$lt_postinstall_cmds
  12307. # Command to use after uninstallation of a shared archive.
  12308. postuninstall_cmds=$lt_postuninstall_cmds
  12309. # Commands used to finish a libtool library installation in a directory.
  12310. finish_cmds=$lt_finish_cmds
  12311. # As "finish_cmds", except a single script fragment to be evaled but
  12312. # not shown.
  12313. finish_eval=$lt_finish_eval
  12314. # Whether we should hardcode library paths into libraries.
  12315. hardcode_into_libs=$hardcode_into_libs
  12316. # Compile-time system search path for libraries.
  12317. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12318. # Run-time system search path for libraries.
  12319. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12320. # Whether dlopen is supported.
  12321. dlopen_support=$enable_dlopen
  12322. # Whether dlopen of programs is supported.
  12323. dlopen_self=$enable_dlopen_self
  12324. # Whether dlopen of statically linked programs is supported.
  12325. dlopen_self_static=$enable_dlopen_self_static
  12326. # Commands to strip libraries.
  12327. old_striplib=$lt_old_striplib
  12328. striplib=$lt_striplib
  12329. # The linker used to build libraries.
  12330. LD=$lt_LD
  12331. # How to create reloadable object files.
  12332. reload_flag=$lt_reload_flag
  12333. reload_cmds=$lt_reload_cmds
  12334. # Commands used to build an old-style archive.
  12335. old_archive_cmds=$lt_old_archive_cmds
  12336. # A language specific compiler.
  12337. CC=$lt_compiler
  12338. # Is the compiler the GNU compiler?
  12339. with_gcc=$GCC
  12340. # Compiler flag to turn off builtin functions.
  12341. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12342. # Additional compiler flags for building library objects.
  12343. pic_flag=$lt_lt_prog_compiler_pic
  12344. # How to pass a linker flag through the compiler.
  12345. wl=$lt_lt_prog_compiler_wl
  12346. # Compiler flag to prevent dynamic linking.
  12347. link_static_flag=$lt_lt_prog_compiler_static
  12348. # Does compiler simultaneously support -c and -o options?
  12349. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12350. # Whether or not to add -lc for building shared libraries.
  12351. build_libtool_need_lc=$archive_cmds_need_lc
  12352. # Whether or not to disallow shared libs when runtime libs are static.
  12353. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12354. # Compiler flag to allow reflexive dlopens.
  12355. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12356. # Compiler flag to generate shared objects directly from archives.
  12357. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12358. # Whether the compiler copes with passing no objects directly.
  12359. compiler_needs_object=$lt_compiler_needs_object
  12360. # Create an old-style archive from a shared archive.
  12361. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12362. # Create a temporary old-style archive to link instead of a shared archive.
  12363. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12364. # Commands used to build a shared archive.
  12365. archive_cmds=$lt_archive_cmds
  12366. archive_expsym_cmds=$lt_archive_expsym_cmds
  12367. # Commands used to build a loadable module if different from building
  12368. # a shared archive.
  12369. module_cmds=$lt_module_cmds
  12370. module_expsym_cmds=$lt_module_expsym_cmds
  12371. # Whether we are building with GNU ld or not.
  12372. with_gnu_ld=$lt_with_gnu_ld
  12373. # Flag that allows shared libraries with undefined symbols to be built.
  12374. allow_undefined_flag=$lt_allow_undefined_flag
  12375. # Flag that enforces no undefined symbols.
  12376. no_undefined_flag=$lt_no_undefined_flag
  12377. # Flag to hardcode \$libdir into a binary during linking.
  12378. # This must work even if \$libdir does not exist
  12379. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12380. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12381. # during linking. This must work even if \$libdir does not exist.
  12382. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12383. # Whether we need a single "-rpath" flag with a separated argument.
  12384. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12385. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12386. # DIR into the resulting binary.
  12387. hardcode_direct=$hardcode_direct
  12388. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12389. # DIR into the resulting binary and the resulting library dependency is
  12390. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12391. # library is relocated.
  12392. hardcode_direct_absolute=$hardcode_direct_absolute
  12393. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12394. # into the resulting binary.
  12395. hardcode_minus_L=$hardcode_minus_L
  12396. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12397. # into the resulting binary.
  12398. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12399. # Set to "yes" if building a shared library automatically hardcodes DIR
  12400. # into the library and all subsequent libraries and executables linked
  12401. # against it.
  12402. hardcode_automatic=$hardcode_automatic
  12403. # Set to yes if linker adds runtime paths of dependent libraries
  12404. # to runtime path list.
  12405. inherit_rpath=$inherit_rpath
  12406. # Whether libtool must link a program against all its dependency libraries.
  12407. link_all_deplibs=$link_all_deplibs
  12408. # Set to "yes" if exported symbols are required.
  12409. always_export_symbols=$always_export_symbols
  12410. # The commands to list exported symbols.
  12411. export_symbols_cmds=$lt_export_symbols_cmds
  12412. # Symbols that should not be listed in the preloaded symbols.
  12413. exclude_expsyms=$lt_exclude_expsyms
  12414. # Symbols that must always be exported.
  12415. include_expsyms=$lt_include_expsyms
  12416. # Commands necessary for linking programs (against libraries) with templates.
  12417. prelink_cmds=$lt_prelink_cmds
  12418. # Commands necessary for finishing linking programs.
  12419. postlink_cmds=$lt_postlink_cmds
  12420. # Specify filename containing input files.
  12421. file_list_spec=$lt_file_list_spec
  12422. # How to hardcode a shared library path into an executable.
  12423. hardcode_action=$hardcode_action
  12424. # ### END LIBTOOL CONFIG
  12425. _LT_EOF
  12426. case $host_os in
  12427. aix3*)
  12428. cat <<\_LT_EOF >> "$cfgfile"
  12429. # AIX sometimes has problems with the GCC collect2 program. For some
  12430. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12431. # vanish in a puff of smoke.
  12432. if test "X${COLLECT_NAMES+set}" != Xset; then
  12433. COLLECT_NAMES=
  12434. export COLLECT_NAMES
  12435. fi
  12436. _LT_EOF
  12437. ;;
  12438. esac
  12439. ltmain="$ac_aux_dir/ltmain.sh"
  12440. # We use sed instead of cat because bash on DJGPP gets confused if
  12441. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12442. # text mode, it properly converts lines to CR/LF. This bash problem
  12443. # is reportedly fixed, but why not run on old versions too?
  12444. sed '$q' "$ltmain" >> "$cfgfile" \
  12445. || (rm -f "$cfgfile"; exit 1)
  12446. if test x"$xsi_shell" = xyes; then
  12447. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  12448. func_dirname ()\
  12449. {\
  12450. \ case ${1} in\
  12451. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  12452. \ * ) func_dirname_result="${3}" ;;\
  12453. \ esac\
  12454. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  12455. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12456. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12457. test 0 -eq $? || _lt_function_replace_fail=:
  12458. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  12459. func_basename ()\
  12460. {\
  12461. \ func_basename_result="${1##*/}"\
  12462. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12463. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12464. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12465. test 0 -eq $? || _lt_function_replace_fail=:
  12466. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  12467. func_dirname_and_basename ()\
  12468. {\
  12469. \ case ${1} in\
  12470. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  12471. \ * ) func_dirname_result="${3}" ;;\
  12472. \ esac\
  12473. \ func_basename_result="${1##*/}"\
  12474. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12475. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12476. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12477. test 0 -eq $? || _lt_function_replace_fail=:
  12478. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  12479. func_stripname ()\
  12480. {\
  12481. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  12482. \ # positional parameters, so assign one to ordinary parameter first.\
  12483. \ func_stripname_result=${3}\
  12484. \ func_stripname_result=${func_stripname_result#"${1}"}\
  12485. \ func_stripname_result=${func_stripname_result%"${2}"}\
  12486. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  12487. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12488. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12489. test 0 -eq $? || _lt_function_replace_fail=:
  12490. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  12491. func_split_long_opt ()\
  12492. {\
  12493. \ func_split_long_opt_name=${1%%=*}\
  12494. \ func_split_long_opt_arg=${1#*=}\
  12495. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12496. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12497. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12498. test 0 -eq $? || _lt_function_replace_fail=:
  12499. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  12500. func_split_short_opt ()\
  12501. {\
  12502. \ func_split_short_opt_arg=${1#??}\
  12503. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  12504. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12505. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12506. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12507. test 0 -eq $? || _lt_function_replace_fail=:
  12508. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  12509. func_lo2o ()\
  12510. {\
  12511. \ case ${1} in\
  12512. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  12513. \ *) func_lo2o_result=${1} ;;\
  12514. \ esac\
  12515. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  12516. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12517. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12518. test 0 -eq $? || _lt_function_replace_fail=:
  12519. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  12520. func_xform ()\
  12521. {\
  12522. func_xform_result=${1%.*}.lo\
  12523. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  12524. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12525. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12526. test 0 -eq $? || _lt_function_replace_fail=:
  12527. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  12528. func_arith ()\
  12529. {\
  12530. func_arith_result=$(( $* ))\
  12531. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  12532. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12533. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12534. test 0 -eq $? || _lt_function_replace_fail=:
  12535. sed -e '/^func_len ()$/,/^} # func_len /c\
  12536. func_len ()\
  12537. {\
  12538. func_len_result=${#1}\
  12539. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  12540. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12541. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12542. test 0 -eq $? || _lt_function_replace_fail=:
  12543. fi
  12544. if test x"$lt_shell_append" = xyes; then
  12545. sed -e '/^func_append ()$/,/^} # func_append /c\
  12546. func_append ()\
  12547. {\
  12548. eval "${1}+=\\${2}"\
  12549. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  12550. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12551. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12552. test 0 -eq $? || _lt_function_replace_fail=:
  12553. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  12554. func_append_quoted ()\
  12555. {\
  12556. \ func_quote_for_eval "${2}"\
  12557. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  12558. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  12559. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12560. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12561. test 0 -eq $? || _lt_function_replace_fail=:
  12562. # Save a `func_append' function call where possible by direct use of '+='
  12563. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  12564. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12565. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12566. test 0 -eq $? || _lt_function_replace_fail=:
  12567. else
  12568. # Save a `func_append' function call even when '+=' is not available
  12569. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  12570. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12571. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12572. test 0 -eq $? || _lt_function_replace_fail=:
  12573. fi
  12574. if test x"$_lt_function_replace_fail" = x":"; then
  12575. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  12576. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  12577. fi
  12578. mv -f "$cfgfile" "$ofile" ||
  12579. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12580. chmod +x "$ofile"
  12581. cat <<_LT_EOF >> "$ofile"
  12582. # ### BEGIN LIBTOOL TAG CONFIG: RC
  12583. # The linker used to build libraries.
  12584. LD=$lt_LD_RC
  12585. # How to create reloadable object files.
  12586. reload_flag=$lt_reload_flag_RC
  12587. reload_cmds=$lt_reload_cmds_RC
  12588. # Commands used to build an old-style archive.
  12589. old_archive_cmds=$lt_old_archive_cmds_RC
  12590. # A language specific compiler.
  12591. CC=$lt_compiler_RC
  12592. # Is the compiler the GNU compiler?
  12593. with_gcc=$GCC_RC
  12594. # Compiler flag to turn off builtin functions.
  12595. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  12596. # Additional compiler flags for building library objects.
  12597. pic_flag=$lt_lt_prog_compiler_pic_RC
  12598. # How to pass a linker flag through the compiler.
  12599. wl=$lt_lt_prog_compiler_wl_RC
  12600. # Compiler flag to prevent dynamic linking.
  12601. link_static_flag=$lt_lt_prog_compiler_static_RC
  12602. # Does compiler simultaneously support -c and -o options?
  12603. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  12604. # Whether or not to add -lc for building shared libraries.
  12605. build_libtool_need_lc=$archive_cmds_need_lc_RC
  12606. # Whether or not to disallow shared libs when runtime libs are static.
  12607. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  12608. # Compiler flag to allow reflexive dlopens.
  12609. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  12610. # Compiler flag to generate shared objects directly from archives.
  12611. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  12612. # Whether the compiler copes with passing no objects directly.
  12613. compiler_needs_object=$lt_compiler_needs_object_RC
  12614. # Create an old-style archive from a shared archive.
  12615. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  12616. # Create a temporary old-style archive to link instead of a shared archive.
  12617. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  12618. # Commands used to build a shared archive.
  12619. archive_cmds=$lt_archive_cmds_RC
  12620. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  12621. # Commands used to build a loadable module if different from building
  12622. # a shared archive.
  12623. module_cmds=$lt_module_cmds_RC
  12624. module_expsym_cmds=$lt_module_expsym_cmds_RC
  12625. # Whether we are building with GNU ld or not.
  12626. with_gnu_ld=$lt_with_gnu_ld_RC
  12627. # Flag that allows shared libraries with undefined symbols to be built.
  12628. allow_undefined_flag=$lt_allow_undefined_flag_RC
  12629. # Flag that enforces no undefined symbols.
  12630. no_undefined_flag=$lt_no_undefined_flag_RC
  12631. # Flag to hardcode \$libdir into a binary during linking.
  12632. # This must work even if \$libdir does not exist
  12633. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  12634. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12635. # during linking. This must work even if \$libdir does not exist.
  12636. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  12637. # Whether we need a single "-rpath" flag with a separated argument.
  12638. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  12639. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12640. # DIR into the resulting binary.
  12641. hardcode_direct=$hardcode_direct_RC
  12642. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12643. # DIR into the resulting binary and the resulting library dependency is
  12644. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12645. # library is relocated.
  12646. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  12647. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12648. # into the resulting binary.
  12649. hardcode_minus_L=$hardcode_minus_L_RC
  12650. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12651. # into the resulting binary.
  12652. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  12653. # Set to "yes" if building a shared library automatically hardcodes DIR
  12654. # into the library and all subsequent libraries and executables linked
  12655. # against it.
  12656. hardcode_automatic=$hardcode_automatic_RC
  12657. # Set to yes if linker adds runtime paths of dependent libraries
  12658. # to runtime path list.
  12659. inherit_rpath=$inherit_rpath_RC
  12660. # Whether libtool must link a program against all its dependency libraries.
  12661. link_all_deplibs=$link_all_deplibs_RC
  12662. # Set to "yes" if exported symbols are required.
  12663. always_export_symbols=$always_export_symbols_RC
  12664. # The commands to list exported symbols.
  12665. export_symbols_cmds=$lt_export_symbols_cmds_RC
  12666. # Symbols that should not be listed in the preloaded symbols.
  12667. exclude_expsyms=$lt_exclude_expsyms_RC
  12668. # Symbols that must always be exported.
  12669. include_expsyms=$lt_include_expsyms_RC
  12670. # Commands necessary for linking programs (against libraries) with templates.
  12671. prelink_cmds=$lt_prelink_cmds_RC
  12672. # Commands necessary for finishing linking programs.
  12673. postlink_cmds=$lt_postlink_cmds_RC
  12674. # Specify filename containing input files.
  12675. file_list_spec=$lt_file_list_spec_RC
  12676. # How to hardcode a shared library path into an executable.
  12677. hardcode_action=$hardcode_action_RC
  12678. # ### END LIBTOOL TAG CONFIG: RC
  12679. _LT_EOF
  12680. ;;
  12681. esac
  12682. done # for ac_tag
  12683. as_fn_exit 0
  12684. _ACEOF
  12685. ac_clean_files=$ac_clean_files_save
  12686. test $ac_write_fail = 0 ||
  12687. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12688. # configure is writing to config.log, and then calls config.status.
  12689. # config.status does its own redirection, appending to config.log.
  12690. # Unfortunately, on DOS this fails, as config.log is still kept open
  12691. # by configure, so config.status won't be able to write to it; its
  12692. # output is simply discarded. So we exec the FD to /dev/null,
  12693. # effectively closing config.log, so it can be properly (re)opened and
  12694. # appended to by config.status. When coming back to configure, we
  12695. # need to make the FD available again.
  12696. if test "$no_create" != yes; then
  12697. ac_cs_success=:
  12698. ac_config_status_args=
  12699. test "$silent" = yes &&
  12700. ac_config_status_args="$ac_config_status_args --quiet"
  12701. exec 5>/dev/null
  12702. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12703. exec 5>>config.log
  12704. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12705. # would make configure fail if this is the last instruction.
  12706. $ac_cs_success || as_fn_exit 1
  12707. fi
  12708. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12709. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12710. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12711. fi