configure 412 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for OPCUAServer 1.0.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  127. emulate sh
  128. NULLCMD=:
  129. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  130. # is contrary to our usage. Disable this feature.
  131. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  132. setopt NO_GLOB_SUBST
  133. else
  134. case \`(set -o) 2>/dev/null\` in #(
  135. *posix*) :
  136. set -o posix ;; #(
  137. *) :
  138. ;;
  139. esac
  140. fi
  141. "
  142. as_required="as_fn_return () { (exit \$1); }
  143. as_fn_success () { as_fn_return 0; }
  144. as_fn_failure () { as_fn_return 1; }
  145. as_fn_ret_success () { return 0; }
  146. as_fn_ret_failure () { return 1; }
  147. exitcode=0
  148. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  149. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  150. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  151. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  152. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  153. else
  154. exitcode=1; echo positional parameters were not saved.
  155. fi
  156. test x\$exitcode = x0 || exit 1"
  157. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  158. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  159. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  160. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  161. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  162. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  163. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. PATH=/empty FPATH=/empty; export PATH FPATH
  166. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  167. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  168. test \$(( 1 + 1 )) = 2 || exit 1"
  169. if (eval "$as_required") 2>/dev/null; then :
  170. as_have_required=yes
  171. else
  172. as_have_required=no
  173. fi
  174. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  175. else
  176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  177. as_found=false
  178. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  179. do
  180. IFS=$as_save_IFS
  181. test -z "$as_dir" && as_dir=.
  182. as_found=:
  183. case $as_dir in #(
  184. /*)
  185. for as_base in sh bash ksh sh5; do
  186. # Try only shells that exist, to save several forks.
  187. as_shell=$as_dir/$as_base
  188. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  189. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  190. CONFIG_SHELL=$as_shell as_have_required=yes
  191. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. break 2
  193. fi
  194. fi
  195. done;;
  196. esac
  197. as_found=false
  198. done
  199. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  200. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  201. CONFIG_SHELL=$SHELL as_have_required=yes
  202. fi; }
  203. IFS=$as_save_IFS
  204. if test "x$CONFIG_SHELL" != x; then :
  205. # We cannot yet assume a decent shell, so we have to provide a
  206. # neutralization value for shells without unset; and this also
  207. # works around shells that cannot unset nonexistent variables.
  208. # Preserve -v and -x to the replacement shell.
  209. BASH_ENV=/dev/null
  210. ENV=/dev/null
  211. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  212. export CONFIG_SHELL
  213. case $- in # ((((
  214. *v*x* | *x*v* ) as_opts=-vx ;;
  215. *v* ) as_opts=-v ;;
  216. *x* ) as_opts=-x ;;
  217. * ) as_opts= ;;
  218. esac
  219. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  220. fi
  221. if test x$as_have_required = xno; then :
  222. $as_echo "$0: This script requires a shell more modern than all"
  223. $as_echo "$0: the shells that I found on your system."
  224. if test x${ZSH_VERSION+set} = xset ; then
  225. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  226. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  227. else
  228. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  229. $0: including any error possibly output before this
  230. $0: message. Then install a modern shell, or manually run
  231. $0: the script under such a shell if you do have one."
  232. fi
  233. exit 1
  234. fi
  235. fi
  236. fi
  237. SHELL=${CONFIG_SHELL-/bin/sh}
  238. export SHELL
  239. # Unset more variables known to interfere with behavior of common tools.
  240. CLICOLOR_FORCE= GREP_OPTIONS=
  241. unset CLICOLOR_FORCE GREP_OPTIONS
  242. ## --------------------- ##
  243. ## M4sh Shell Functions. ##
  244. ## --------------------- ##
  245. # as_fn_unset VAR
  246. # ---------------
  247. # Portably unset VAR.
  248. as_fn_unset ()
  249. {
  250. { eval $1=; unset $1;}
  251. }
  252. as_unset=as_fn_unset
  253. # as_fn_set_status STATUS
  254. # -----------------------
  255. # Set $? to STATUS, without forking.
  256. as_fn_set_status ()
  257. {
  258. return $1
  259. } # as_fn_set_status
  260. # as_fn_exit STATUS
  261. # -----------------
  262. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  263. as_fn_exit ()
  264. {
  265. set +e
  266. as_fn_set_status $1
  267. exit $1
  268. } # as_fn_exit
  269. # as_fn_mkdir_p
  270. # -------------
  271. # Create "$as_dir" as a directory, including parents if necessary.
  272. as_fn_mkdir_p ()
  273. {
  274. case $as_dir in #(
  275. -*) as_dir=./$as_dir;;
  276. esac
  277. test -d "$as_dir" || eval $as_mkdir_p || {
  278. as_dirs=
  279. while :; do
  280. case $as_dir in #(
  281. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  282. *) as_qdir=$as_dir;;
  283. esac
  284. as_dirs="'$as_qdir' $as_dirs"
  285. as_dir=`$as_dirname -- "$as_dir" ||
  286. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  287. X"$as_dir" : 'X\(//\)[^/]' \| \
  288. X"$as_dir" : 'X\(//\)$' \| \
  289. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  290. $as_echo X"$as_dir" |
  291. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)[^/].*/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\/\)$/{
  300. s//\1/
  301. q
  302. }
  303. /^X\(\/\).*/{
  304. s//\1/
  305. q
  306. }
  307. s/.*/./; q'`
  308. test -d "$as_dir" && break
  309. done
  310. test -z "$as_dirs" || eval "mkdir $as_dirs"
  311. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  312. } # as_fn_mkdir_p
  313. # as_fn_append VAR VALUE
  314. # ----------------------
  315. # Append the text in VALUE to the end of the definition contained in VAR. Take
  316. # advantage of any shell optimizations that allow amortized linear growth over
  317. # repeated appends, instead of the typical quadratic growth present in naive
  318. # implementations.
  319. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  320. eval 'as_fn_append ()
  321. {
  322. eval $1+=\$2
  323. }'
  324. else
  325. as_fn_append ()
  326. {
  327. eval $1=\$$1\$2
  328. }
  329. fi # as_fn_append
  330. # as_fn_arith ARG...
  331. # ------------------
  332. # Perform arithmetic evaluation on the ARGs, and store the result in the
  333. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  334. # must be portable across $(()) and expr.
  335. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  336. eval 'as_fn_arith ()
  337. {
  338. as_val=$(( $* ))
  339. }'
  340. else
  341. as_fn_arith ()
  342. {
  343. as_val=`expr "$@" || test $? -eq 1`
  344. }
  345. fi # as_fn_arith
  346. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  347. # ----------------------------------------
  348. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  349. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  350. # script with STATUS, using 1 if that was 0.
  351. as_fn_error ()
  352. {
  353. as_status=$1; test $as_status -eq 0 && as_status=1
  354. if test "$4"; then
  355. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  356. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  357. fi
  358. $as_echo "$as_me: error: $2" >&2
  359. as_fn_exit $as_status
  360. } # as_fn_error
  361. if expr a : '\(a\)' >/dev/null 2>&1 &&
  362. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  363. as_expr=expr
  364. else
  365. as_expr=false
  366. fi
  367. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  368. as_basename=basename
  369. else
  370. as_basename=false
  371. fi
  372. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  373. as_dirname=dirname
  374. else
  375. as_dirname=false
  376. fi
  377. as_me=`$as_basename -- "$0" ||
  378. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  379. X"$0" : 'X\(//\)$' \| \
  380. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  381. $as_echo X/"$0" |
  382. sed '/^.*\/\([^/][^/]*\)\/*$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\/\)$/{
  387. s//\1/
  388. q
  389. }
  390. /^X\/\(\/\).*/{
  391. s//\1/
  392. q
  393. }
  394. s/.*/./; q'`
  395. # Avoid depending upon Character Ranges.
  396. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  397. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  398. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  399. as_cr_digits='0123456789'
  400. as_cr_alnum=$as_cr_Letters$as_cr_digits
  401. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  402. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  403. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  404. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  405. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  406. sed -n '
  407. p
  408. /[$]LINENO/=
  409. ' <$as_myself |
  410. sed '
  411. s/[$]LINENO.*/&-/
  412. t lineno
  413. b
  414. :lineno
  415. N
  416. :loop
  417. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  418. t loop
  419. s/-\n.*//
  420. ' >$as_me.lineno &&
  421. chmod +x "$as_me.lineno" ||
  422. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  423. # Don't try to exec as it changes $[0], causing all sort of problems
  424. # (the dirname of $[0] is not the place where we might find the
  425. # original and so on. Autoconf is especially sensitive to this).
  426. . "./$as_me.lineno"
  427. # Exit status is that of the last command.
  428. exit
  429. }
  430. ECHO_C= ECHO_N= ECHO_T=
  431. case `echo -n x` in #(((((
  432. -n*)
  433. case `echo 'xy\c'` in
  434. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  435. xy) ECHO_C='\c';;
  436. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  437. ECHO_T=' ';;
  438. esac;;
  439. *)
  440. ECHO_N='-n';;
  441. esac
  442. rm -f conf$$ conf$$.exe conf$$.file
  443. if test -d conf$$.dir; then
  444. rm -f conf$$.dir/conf$$.file
  445. else
  446. rm -f conf$$.dir
  447. mkdir conf$$.dir 2>/dev/null
  448. fi
  449. if (echo >conf$$.file) 2>/dev/null; then
  450. if ln -s conf$$.file conf$$ 2>/dev/null; then
  451. as_ln_s='ln -s'
  452. # ... but there are two gotchas:
  453. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  454. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  455. # In both cases, we have to default to `cp -p'.
  456. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  457. as_ln_s='cp -p'
  458. elif ln conf$$.file conf$$ 2>/dev/null; then
  459. as_ln_s=ln
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  467. rmdir conf$$.dir 2>/dev/null
  468. if mkdir -p . 2>/dev/null; then
  469. as_mkdir_p='mkdir -p "$as_dir"'
  470. else
  471. test -d ./-p && rmdir ./-p
  472. as_mkdir_p=false
  473. fi
  474. if test -x / >/dev/null 2>&1; then
  475. as_test_x='test -x'
  476. else
  477. if ls -dL / >/dev/null 2>&1; then
  478. as_ls_L_option=L
  479. else
  480. as_ls_L_option=
  481. fi
  482. as_test_x='
  483. eval sh -c '\''
  484. if test -d "$1"; then
  485. test -d "$1/.";
  486. else
  487. case $1 in #(
  488. -*)set "./$1";;
  489. esac;
  490. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  491. ???[sx]*):;;*)false;;esac;fi
  492. '\'' sh
  493. '
  494. fi
  495. as_executable_p=$as_test_x
  496. # Sed expression to map a string onto a valid CPP name.
  497. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  498. # Sed expression to map a string onto a valid variable name.
  499. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  500. SHELL=${CONFIG_SHELL-/bin/sh}
  501. test -n "$DJDIR" || exec 7<&0 </dev/null
  502. exec 6>&1
  503. # Name of the host.
  504. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  505. # so uname gets run too.
  506. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  507. #
  508. # Initializations.
  509. #
  510. ac_default_prefix=/usr/local
  511. ac_clean_files=
  512. ac_config_libobj_dir=.
  513. LIBOBJS=
  514. cross_compiling=no
  515. subdirs=
  516. MFLAGS=
  517. MAKEFLAGS=
  518. # Identity of this package.
  519. PACKAGE_NAME='OPCUAServer'
  520. PACKAGE_TARNAME='opcuaserver'
  521. PACKAGE_VERSION='1.0'
  522. PACKAGE_STRING='OPCUAServer 1.0'
  523. PACKAGE_BUGREPORT=''
  524. PACKAGE_URL=''
  525. # Factoring default headers for most tests.
  526. ac_includes_default="\
  527. #include <stdio.h>
  528. #ifdef HAVE_SYS_TYPES_H
  529. # include <sys/types.h>
  530. #endif
  531. #ifdef HAVE_SYS_STAT_H
  532. # include <sys/stat.h>
  533. #endif
  534. #ifdef STDC_HEADERS
  535. # include <stdlib.h>
  536. # include <stddef.h>
  537. #else
  538. # ifdef HAVE_STDLIB_H
  539. # include <stdlib.h>
  540. # endif
  541. #endif
  542. #ifdef HAVE_STRING_H
  543. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  544. # include <memory.h>
  545. # endif
  546. # include <string.h>
  547. #endif
  548. #ifdef HAVE_STRINGS_H
  549. # include <strings.h>
  550. #endif
  551. #ifdef HAVE_INTTYPES_H
  552. # include <inttypes.h>
  553. #endif
  554. #ifdef HAVE_STDINT_H
  555. # include <stdint.h>
  556. #endif
  557. #ifdef HAVE_UNISTD_H
  558. # include <unistd.h>
  559. #endif"
  560. ac_subst_vars='am__EXEEXT_FALSE
  561. am__EXEEXT_TRUE
  562. LTLIBOBJS
  563. LIBOBJS
  564. CPP
  565. OTOOL64
  566. OTOOL
  567. LIPO
  568. NMEDIT
  569. DSYMUTIL
  570. MANIFEST_TOOL
  571. RANLIB
  572. ac_ct_AR
  573. AR
  574. NM
  575. ac_ct_DUMPBIN
  576. DUMPBIN
  577. LD
  578. FGREP
  579. EGREP
  580. GREP
  581. SED
  582. LIBTOOL
  583. OBJDUMP
  584. DLLTOOL
  585. AS
  586. DEBUG_FALSE
  587. DEBUG_TRUE
  588. TARGET_LINUX_FALSE
  589. TARGET_LINUX_TRUE
  590. TARGET_WIN_FALSE
  591. TARGET_WIN_TRUE
  592. HAVE_CHECK_FALSE
  593. HAVE_CHECK_TRUE
  594. CHECK_LIBS
  595. CHECK_CFLAGS
  596. PKG_CONFIG_LIBDIR
  597. PKG_CONFIG_PATH
  598. PKG_CONFIG
  599. LN_S
  600. am__fastdepCC_FALSE
  601. am__fastdepCC_TRUE
  602. CCDEPMODE
  603. AMDEPBACKSLASH
  604. AMDEP_FALSE
  605. AMDEP_TRUE
  606. am__quote
  607. am__include
  608. DEPDIR
  609. OBJEXT
  610. EXEEXT
  611. ac_ct_CC
  612. CPPFLAGS
  613. LDFLAGS
  614. CFLAGS
  615. CC
  616. am__untar
  617. am__tar
  618. AMTAR
  619. am__leading_dot
  620. SET_MAKE
  621. AWK
  622. mkdir_p
  623. MKDIR_P
  624. INSTALL_STRIP_PROGRAM
  625. STRIP
  626. install_sh
  627. MAKEINFO
  628. AUTOHEADER
  629. AUTOMAKE
  630. AUTOCONF
  631. ACLOCAL
  632. VERSION
  633. PACKAGE
  634. CYGPATH_W
  635. am__isrc
  636. INSTALL_DATA
  637. INSTALL_SCRIPT
  638. INSTALL_PROGRAM
  639. target_os
  640. target_vendor
  641. target_cpu
  642. target
  643. host_os
  644. host_vendor
  645. host_cpu
  646. host
  647. build_os
  648. build_vendor
  649. build_cpu
  650. build
  651. target_alias
  652. host_alias
  653. build_alias
  654. LIBS
  655. ECHO_T
  656. ECHO_N
  657. ECHO_C
  658. DEFS
  659. mandir
  660. localedir
  661. libdir
  662. psdir
  663. pdfdir
  664. dvidir
  665. htmldir
  666. infodir
  667. docdir
  668. oldincludedir
  669. includedir
  670. localstatedir
  671. sharedstatedir
  672. sysconfdir
  673. datadir
  674. datarootdir
  675. libexecdir
  676. sbindir
  677. bindir
  678. program_transform_name
  679. prefix
  680. exec_prefix
  681. PACKAGE_URL
  682. PACKAGE_BUGREPORT
  683. PACKAGE_STRING
  684. PACKAGE_VERSION
  685. PACKAGE_TARNAME
  686. PACKAGE_NAME
  687. PATH_SEPARATOR
  688. SHELL'
  689. ac_subst_files=''
  690. ac_user_opts='
  691. enable_option_checking
  692. enable_dependency_tracking
  693. enable_debug
  694. enable_shared
  695. enable_static
  696. with_pic
  697. enable_fast_install
  698. with_gnu_ld
  699. with_sysroot
  700. enable_libtool_lock
  701. '
  702. ac_precious_vars='build_alias
  703. host_alias
  704. target_alias
  705. CC
  706. CFLAGS
  707. LDFLAGS
  708. LIBS
  709. CPPFLAGS
  710. PKG_CONFIG
  711. PKG_CONFIG_PATH
  712. PKG_CONFIG_LIBDIR
  713. CHECK_CFLAGS
  714. CHECK_LIBS
  715. CPP'
  716. # Initialize some variables set by options.
  717. ac_init_help=
  718. ac_init_version=false
  719. ac_unrecognized_opts=
  720. ac_unrecognized_sep=
  721. # The variables have the same names as the options, with
  722. # dashes changed to underlines.
  723. cache_file=/dev/null
  724. exec_prefix=NONE
  725. no_create=
  726. no_recursion=
  727. prefix=NONE
  728. program_prefix=NONE
  729. program_suffix=NONE
  730. program_transform_name=s,x,x,
  731. silent=
  732. site=
  733. srcdir=
  734. verbose=
  735. x_includes=NONE
  736. x_libraries=NONE
  737. # Installation directory options.
  738. # These are left unexpanded so users can "make install exec_prefix=/foo"
  739. # and all the variables that are supposed to be based on exec_prefix
  740. # by default will actually change.
  741. # Use braces instead of parens because sh, perl, etc. also accept them.
  742. # (The list follows the same order as the GNU Coding Standards.)
  743. bindir='${exec_prefix}/bin'
  744. sbindir='${exec_prefix}/sbin'
  745. libexecdir='${exec_prefix}/libexec'
  746. datarootdir='${prefix}/share'
  747. datadir='${datarootdir}'
  748. sysconfdir='${prefix}/etc'
  749. sharedstatedir='${prefix}/com'
  750. localstatedir='${prefix}/var'
  751. includedir='${prefix}/include'
  752. oldincludedir='/usr/include'
  753. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  754. infodir='${datarootdir}/info'
  755. htmldir='${docdir}'
  756. dvidir='${docdir}'
  757. pdfdir='${docdir}'
  758. psdir='${docdir}'
  759. libdir='${exec_prefix}/lib'
  760. localedir='${datarootdir}/locale'
  761. mandir='${datarootdir}/man'
  762. ac_prev=
  763. ac_dashdash=
  764. for ac_option
  765. do
  766. # If the previous option needs an argument, assign it.
  767. if test -n "$ac_prev"; then
  768. eval $ac_prev=\$ac_option
  769. ac_prev=
  770. continue
  771. fi
  772. case $ac_option in
  773. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  774. *=) ac_optarg= ;;
  775. *) ac_optarg=yes ;;
  776. esac
  777. # Accept the important Cygnus configure options, so we can diagnose typos.
  778. case $ac_dashdash$ac_option in
  779. --)
  780. ac_dashdash=yes ;;
  781. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  782. ac_prev=bindir ;;
  783. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  784. bindir=$ac_optarg ;;
  785. -build | --build | --buil | --bui | --bu)
  786. ac_prev=build_alias ;;
  787. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  788. build_alias=$ac_optarg ;;
  789. -cache-file | --cache-file | --cache-fil | --cache-fi \
  790. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  791. ac_prev=cache_file ;;
  792. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  793. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  794. cache_file=$ac_optarg ;;
  795. --config-cache | -C)
  796. cache_file=config.cache ;;
  797. -datadir | --datadir | --datadi | --datad)
  798. ac_prev=datadir ;;
  799. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  800. datadir=$ac_optarg ;;
  801. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  802. | --dataroo | --dataro | --datar)
  803. ac_prev=datarootdir ;;
  804. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  805. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  806. datarootdir=$ac_optarg ;;
  807. -disable-* | --disable-*)
  808. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  809. # Reject names that are not valid shell variable names.
  810. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  811. as_fn_error $? "invalid feature name: $ac_useropt"
  812. ac_useropt_orig=$ac_useropt
  813. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  814. case $ac_user_opts in
  815. *"
  816. "enable_$ac_useropt"
  817. "*) ;;
  818. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  819. ac_unrecognized_sep=', ';;
  820. esac
  821. eval enable_$ac_useropt=no ;;
  822. -docdir | --docdir | --docdi | --doc | --do)
  823. ac_prev=docdir ;;
  824. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  825. docdir=$ac_optarg ;;
  826. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  827. ac_prev=dvidir ;;
  828. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  829. dvidir=$ac_optarg ;;
  830. -enable-* | --enable-*)
  831. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  832. # Reject names that are not valid shell variable names.
  833. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  834. as_fn_error $? "invalid feature name: $ac_useropt"
  835. ac_useropt_orig=$ac_useropt
  836. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  837. case $ac_user_opts in
  838. *"
  839. "enable_$ac_useropt"
  840. "*) ;;
  841. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  842. ac_unrecognized_sep=', ';;
  843. esac
  844. eval enable_$ac_useropt=\$ac_optarg ;;
  845. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  846. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  847. | --exec | --exe | --ex)
  848. ac_prev=exec_prefix ;;
  849. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  850. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  851. | --exec=* | --exe=* | --ex=*)
  852. exec_prefix=$ac_optarg ;;
  853. -gas | --gas | --ga | --g)
  854. # Obsolete; use --with-gas.
  855. with_gas=yes ;;
  856. -help | --help | --hel | --he | -h)
  857. ac_init_help=long ;;
  858. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  859. ac_init_help=recursive ;;
  860. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  861. ac_init_help=short ;;
  862. -host | --host | --hos | --ho)
  863. ac_prev=host_alias ;;
  864. -host=* | --host=* | --hos=* | --ho=*)
  865. host_alias=$ac_optarg ;;
  866. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  867. ac_prev=htmldir ;;
  868. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  869. | --ht=*)
  870. htmldir=$ac_optarg ;;
  871. -includedir | --includedir | --includedi | --included | --include \
  872. | --includ | --inclu | --incl | --inc)
  873. ac_prev=includedir ;;
  874. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  875. | --includ=* | --inclu=* | --incl=* | --inc=*)
  876. includedir=$ac_optarg ;;
  877. -infodir | --infodir | --infodi | --infod | --info | --inf)
  878. ac_prev=infodir ;;
  879. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  880. infodir=$ac_optarg ;;
  881. -libdir | --libdir | --libdi | --libd)
  882. ac_prev=libdir ;;
  883. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  884. libdir=$ac_optarg ;;
  885. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  886. | --libexe | --libex | --libe)
  887. ac_prev=libexecdir ;;
  888. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  889. | --libexe=* | --libex=* | --libe=*)
  890. libexecdir=$ac_optarg ;;
  891. -localedir | --localedir | --localedi | --localed | --locale)
  892. ac_prev=localedir ;;
  893. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  894. localedir=$ac_optarg ;;
  895. -localstatedir | --localstatedir | --localstatedi | --localstated \
  896. | --localstate | --localstat | --localsta | --localst | --locals)
  897. ac_prev=localstatedir ;;
  898. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  899. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  900. localstatedir=$ac_optarg ;;
  901. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  902. ac_prev=mandir ;;
  903. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  904. mandir=$ac_optarg ;;
  905. -nfp | --nfp | --nf)
  906. # Obsolete; use --without-fp.
  907. with_fp=no ;;
  908. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  909. | --no-cr | --no-c | -n)
  910. no_create=yes ;;
  911. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  912. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  913. no_recursion=yes ;;
  914. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  915. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  916. | --oldin | --oldi | --old | --ol | --o)
  917. ac_prev=oldincludedir ;;
  918. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  919. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  920. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  921. oldincludedir=$ac_optarg ;;
  922. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  923. ac_prev=prefix ;;
  924. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  925. prefix=$ac_optarg ;;
  926. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  927. | --program-pre | --program-pr | --program-p)
  928. ac_prev=program_prefix ;;
  929. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  930. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  931. program_prefix=$ac_optarg ;;
  932. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  933. | --program-suf | --program-su | --program-s)
  934. ac_prev=program_suffix ;;
  935. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  936. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  937. program_suffix=$ac_optarg ;;
  938. -program-transform-name | --program-transform-name \
  939. | --program-transform-nam | --program-transform-na \
  940. | --program-transform-n | --program-transform- \
  941. | --program-transform | --program-transfor \
  942. | --program-transfo | --program-transf \
  943. | --program-trans | --program-tran \
  944. | --progr-tra | --program-tr | --program-t)
  945. ac_prev=program_transform_name ;;
  946. -program-transform-name=* | --program-transform-name=* \
  947. | --program-transform-nam=* | --program-transform-na=* \
  948. | --program-transform-n=* | --program-transform-=* \
  949. | --program-transform=* | --program-transfor=* \
  950. | --program-transfo=* | --program-transf=* \
  951. | --program-trans=* | --program-tran=* \
  952. | --progr-tra=* | --program-tr=* | --program-t=*)
  953. program_transform_name=$ac_optarg ;;
  954. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  955. ac_prev=pdfdir ;;
  956. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  957. pdfdir=$ac_optarg ;;
  958. -psdir | --psdir | --psdi | --psd | --ps)
  959. ac_prev=psdir ;;
  960. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  961. psdir=$ac_optarg ;;
  962. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  963. | -silent | --silent | --silen | --sile | --sil)
  964. silent=yes ;;
  965. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  966. ac_prev=sbindir ;;
  967. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  968. | --sbi=* | --sb=*)
  969. sbindir=$ac_optarg ;;
  970. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  971. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  972. | --sharedst | --shareds | --shared | --share | --shar \
  973. | --sha | --sh)
  974. ac_prev=sharedstatedir ;;
  975. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  976. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  977. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  978. | --sha=* | --sh=*)
  979. sharedstatedir=$ac_optarg ;;
  980. -site | --site | --sit)
  981. ac_prev=site ;;
  982. -site=* | --site=* | --sit=*)
  983. site=$ac_optarg ;;
  984. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  985. ac_prev=srcdir ;;
  986. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  987. srcdir=$ac_optarg ;;
  988. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  989. | --syscon | --sysco | --sysc | --sys | --sy)
  990. ac_prev=sysconfdir ;;
  991. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  992. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  993. sysconfdir=$ac_optarg ;;
  994. -target | --target | --targe | --targ | --tar | --ta | --t)
  995. ac_prev=target_alias ;;
  996. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  997. target_alias=$ac_optarg ;;
  998. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  999. verbose=yes ;;
  1000. -version | --version | --versio | --versi | --vers | -V)
  1001. ac_init_version=: ;;
  1002. -with-* | --with-*)
  1003. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1004. # Reject names that are not valid shell variable names.
  1005. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1006. as_fn_error $? "invalid package name: $ac_useropt"
  1007. ac_useropt_orig=$ac_useropt
  1008. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1009. case $ac_user_opts in
  1010. *"
  1011. "with_$ac_useropt"
  1012. "*) ;;
  1013. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1014. ac_unrecognized_sep=', ';;
  1015. esac
  1016. eval with_$ac_useropt=\$ac_optarg ;;
  1017. -without-* | --without-*)
  1018. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1019. # Reject names that are not valid shell variable names.
  1020. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1021. as_fn_error $? "invalid package name: $ac_useropt"
  1022. ac_useropt_orig=$ac_useropt
  1023. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1024. case $ac_user_opts in
  1025. *"
  1026. "with_$ac_useropt"
  1027. "*) ;;
  1028. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1029. ac_unrecognized_sep=', ';;
  1030. esac
  1031. eval with_$ac_useropt=no ;;
  1032. --x)
  1033. # Obsolete; use --with-x.
  1034. with_x=yes ;;
  1035. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1036. | --x-incl | --x-inc | --x-in | --x-i)
  1037. ac_prev=x_includes ;;
  1038. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1039. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1040. x_includes=$ac_optarg ;;
  1041. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1042. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1043. ac_prev=x_libraries ;;
  1044. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1045. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1046. x_libraries=$ac_optarg ;;
  1047. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1048. Try \`$0 --help' for more information"
  1049. ;;
  1050. *=*)
  1051. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1052. # Reject names that are not valid shell variable names.
  1053. case $ac_envvar in #(
  1054. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1055. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1056. esac
  1057. eval $ac_envvar=\$ac_optarg
  1058. export $ac_envvar ;;
  1059. *)
  1060. # FIXME: should be removed in autoconf 3.0.
  1061. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1062. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1063. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1064. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1065. ;;
  1066. esac
  1067. done
  1068. if test -n "$ac_prev"; then
  1069. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1070. as_fn_error $? "missing argument to $ac_option"
  1071. fi
  1072. if test -n "$ac_unrecognized_opts"; then
  1073. case $enable_option_checking in
  1074. no) ;;
  1075. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1076. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1077. esac
  1078. fi
  1079. # Check all directory arguments for consistency.
  1080. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1081. datadir sysconfdir sharedstatedir localstatedir includedir \
  1082. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1083. libdir localedir mandir
  1084. do
  1085. eval ac_val=\$$ac_var
  1086. # Remove trailing slashes.
  1087. case $ac_val in
  1088. */ )
  1089. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1090. eval $ac_var=\$ac_val;;
  1091. esac
  1092. # Be sure to have absolute directory names.
  1093. case $ac_val in
  1094. [\\/$]* | ?:[\\/]* ) continue;;
  1095. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1096. esac
  1097. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1098. done
  1099. # There might be people who depend on the old broken behavior: `$host'
  1100. # used to hold the argument of --host etc.
  1101. # FIXME: To remove some day.
  1102. build=$build_alias
  1103. host=$host_alias
  1104. target=$target_alias
  1105. # FIXME: To remove some day.
  1106. if test "x$host_alias" != x; then
  1107. if test "x$build_alias" = x; then
  1108. cross_compiling=maybe
  1109. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1110. If a cross compiler is detected then cross compile mode will be used" >&2
  1111. elif test "x$build_alias" != "x$host_alias"; then
  1112. cross_compiling=yes
  1113. fi
  1114. fi
  1115. ac_tool_prefix=
  1116. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1117. test "$silent" = yes && exec 6>/dev/null
  1118. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1119. ac_ls_di=`ls -di .` &&
  1120. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1121. as_fn_error $? "working directory cannot be determined"
  1122. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1123. as_fn_error $? "pwd does not report name of working directory"
  1124. # Find the source files, if location was not specified.
  1125. if test -z "$srcdir"; then
  1126. ac_srcdir_defaulted=yes
  1127. # Try the directory containing this script, then the parent directory.
  1128. ac_confdir=`$as_dirname -- "$as_myself" ||
  1129. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1130. X"$as_myself" : 'X\(//\)[^/]' \| \
  1131. X"$as_myself" : 'X\(//\)$' \| \
  1132. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1133. $as_echo X"$as_myself" |
  1134. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1135. s//\1/
  1136. q
  1137. }
  1138. /^X\(\/\/\)[^/].*/{
  1139. s//\1/
  1140. q
  1141. }
  1142. /^X\(\/\/\)$/{
  1143. s//\1/
  1144. q
  1145. }
  1146. /^X\(\/\).*/{
  1147. s//\1/
  1148. q
  1149. }
  1150. s/.*/./; q'`
  1151. srcdir=$ac_confdir
  1152. if test ! -r "$srcdir/$ac_unique_file"; then
  1153. srcdir=..
  1154. fi
  1155. else
  1156. ac_srcdir_defaulted=no
  1157. fi
  1158. if test ! -r "$srcdir/$ac_unique_file"; then
  1159. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1160. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1161. fi
  1162. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1163. ac_abs_confdir=`(
  1164. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1165. pwd)`
  1166. # When building in place, set srcdir=.
  1167. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1168. srcdir=.
  1169. fi
  1170. # Remove unnecessary trailing slashes from srcdir.
  1171. # Double slashes in file names in object file debugging info
  1172. # mess up M-x gdb in Emacs.
  1173. case $srcdir in
  1174. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1175. esac
  1176. for ac_var in $ac_precious_vars; do
  1177. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1178. eval ac_env_${ac_var}_value=\$${ac_var}
  1179. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1180. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1181. done
  1182. #
  1183. # Report the --help message.
  1184. #
  1185. if test "$ac_init_help" = "long"; then
  1186. # Omit some internal or obsolete options to make the list less imposing.
  1187. # This message is too long to be a string in the A/UX 3.1 sh.
  1188. cat <<_ACEOF
  1189. \`configure' configures OPCUAServer 1.0 to adapt to many kinds of systems.
  1190. Usage: $0 [OPTION]... [VAR=VALUE]...
  1191. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1192. VAR=VALUE. See below for descriptions of some of the useful variables.
  1193. Defaults for the options are specified in brackets.
  1194. Configuration:
  1195. -h, --help display this help and exit
  1196. --help=short display options specific to this package
  1197. --help=recursive display the short help of all the included packages
  1198. -V, --version display version information and exit
  1199. -q, --quiet, --silent do not print \`checking ...' messages
  1200. --cache-file=FILE cache test results in FILE [disabled]
  1201. -C, --config-cache alias for \`--cache-file=config.cache'
  1202. -n, --no-create do not create output files
  1203. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1204. Installation directories:
  1205. --prefix=PREFIX install architecture-independent files in PREFIX
  1206. [$ac_default_prefix]
  1207. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1208. [PREFIX]
  1209. By default, \`make install' will install all the files in
  1210. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1211. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1212. for instance \`--prefix=\$HOME'.
  1213. For better control, use the options below.
  1214. Fine tuning of the installation directories:
  1215. --bindir=DIR user executables [EPREFIX/bin]
  1216. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1217. --libexecdir=DIR program executables [EPREFIX/libexec]
  1218. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1219. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1220. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1221. --libdir=DIR object code libraries [EPREFIX/lib]
  1222. --includedir=DIR C header files [PREFIX/include]
  1223. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1224. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1225. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1226. --infodir=DIR info documentation [DATAROOTDIR/info]
  1227. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1228. --mandir=DIR man documentation [DATAROOTDIR/man]
  1229. --docdir=DIR documentation root [DATAROOTDIR/doc/opcuaserver]
  1230. --htmldir=DIR html documentation [DOCDIR]
  1231. --dvidir=DIR dvi documentation [DOCDIR]
  1232. --pdfdir=DIR pdf documentation [DOCDIR]
  1233. --psdir=DIR ps documentation [DOCDIR]
  1234. _ACEOF
  1235. cat <<\_ACEOF
  1236. Program names:
  1237. --program-prefix=PREFIX prepend PREFIX to installed program names
  1238. --program-suffix=SUFFIX append SUFFIX to installed program names
  1239. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1240. System types:
  1241. --build=BUILD configure for building on BUILD [guessed]
  1242. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1243. --target=TARGET configure for building compilers for TARGET [HOST]
  1244. _ACEOF
  1245. fi
  1246. if test -n "$ac_init_help"; then
  1247. case $ac_init_help in
  1248. short | recursive ) echo "Configuration of OPCUAServer 1.0:";;
  1249. esac
  1250. cat <<\_ACEOF
  1251. Optional Features:
  1252. --disable-option-checking ignore unrecognized --enable/--with options
  1253. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1254. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1255. --disable-dependency-tracking speeds up one-time build
  1256. --enable-dependency-tracking do not reject slow dependency extractors
  1257. --enable-debug enable debugging, default: no
  1258. --enable-shared[=PKGS] build shared libraries [default=yes]
  1259. --enable-static[=PKGS] build static libraries [default=yes]
  1260. --enable-fast-install[=PKGS]
  1261. optimize for fast installation [default=yes]
  1262. --disable-libtool-lock avoid locking (might break parallel builds)
  1263. Optional Packages:
  1264. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1265. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1266. --with-pic try to use only PIC/non-PIC objects [default=use
  1267. both]
  1268. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1269. --with-sysroot=DIR Search for dependent libraries within DIR
  1270. (or the compiler's sysroot if not specified).
  1271. Some influential environment variables:
  1272. CC C compiler command
  1273. CFLAGS C compiler flags
  1274. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1275. nonstandard directory <lib dir>
  1276. LIBS libraries to pass to the linker, e.g. -l<library>
  1277. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1278. you have headers in a nonstandard directory <include dir>
  1279. PKG_CONFIG path to pkg-config utility
  1280. PKG_CONFIG_PATH
  1281. directories to add to pkg-config's search path
  1282. PKG_CONFIG_LIBDIR
  1283. path overriding pkg-config's built-in search path
  1284. CHECK_CFLAGS
  1285. C compiler flags for CHECK, overriding pkg-config
  1286. CHECK_LIBS linker flags for CHECK, overriding pkg-config
  1287. CPP C preprocessor
  1288. Use these variables to override the choices made by `configure' or to help
  1289. it to find libraries and programs with nonstandard names/locations.
  1290. Report bugs to the package provider.
  1291. _ACEOF
  1292. ac_status=$?
  1293. fi
  1294. if test "$ac_init_help" = "recursive"; then
  1295. # If there are subdirs, report their specific --help.
  1296. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1297. test -d "$ac_dir" ||
  1298. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1299. continue
  1300. ac_builddir=.
  1301. case "$ac_dir" in
  1302. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1303. *)
  1304. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1305. # A ".." for each directory in $ac_dir_suffix.
  1306. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1307. case $ac_top_builddir_sub in
  1308. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1309. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1310. esac ;;
  1311. esac
  1312. ac_abs_top_builddir=$ac_pwd
  1313. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1314. # for backward compatibility:
  1315. ac_top_builddir=$ac_top_build_prefix
  1316. case $srcdir in
  1317. .) # We are building in place.
  1318. ac_srcdir=.
  1319. ac_top_srcdir=$ac_top_builddir_sub
  1320. ac_abs_top_srcdir=$ac_pwd ;;
  1321. [\\/]* | ?:[\\/]* ) # Absolute name.
  1322. ac_srcdir=$srcdir$ac_dir_suffix;
  1323. ac_top_srcdir=$srcdir
  1324. ac_abs_top_srcdir=$srcdir ;;
  1325. *) # Relative name.
  1326. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1327. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1328. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1329. esac
  1330. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1331. cd "$ac_dir" || { ac_status=$?; continue; }
  1332. # Check for guested configure.
  1333. if test -f "$ac_srcdir/configure.gnu"; then
  1334. echo &&
  1335. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1336. elif test -f "$ac_srcdir/configure"; then
  1337. echo &&
  1338. $SHELL "$ac_srcdir/configure" --help=recursive
  1339. else
  1340. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1341. fi || ac_status=$?
  1342. cd "$ac_pwd" || { ac_status=$?; break; }
  1343. done
  1344. fi
  1345. test -n "$ac_init_help" && exit $ac_status
  1346. if $ac_init_version; then
  1347. cat <<\_ACEOF
  1348. OPCUAServer configure 1.0
  1349. generated by GNU Autoconf 2.68
  1350. Copyright (C) 2010 Free Software Foundation, Inc.
  1351. This configure script is free software; the Free Software Foundation
  1352. gives unlimited permission to copy, distribute and modify it.
  1353. _ACEOF
  1354. exit
  1355. fi
  1356. ## ------------------------ ##
  1357. ## Autoconf initialization. ##
  1358. ## ------------------------ ##
  1359. # ac_fn_c_try_compile LINENO
  1360. # --------------------------
  1361. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1362. ac_fn_c_try_compile ()
  1363. {
  1364. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1365. rm -f conftest.$ac_objext
  1366. if { { ac_try="$ac_compile"
  1367. case "(($ac_try" in
  1368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1369. *) ac_try_echo=$ac_try;;
  1370. esac
  1371. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1372. $as_echo "$ac_try_echo"; } >&5
  1373. (eval "$ac_compile") 2>conftest.err
  1374. ac_status=$?
  1375. if test -s conftest.err; then
  1376. grep -v '^ *+' conftest.err >conftest.er1
  1377. cat conftest.er1 >&5
  1378. mv -f conftest.er1 conftest.err
  1379. fi
  1380. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1381. test $ac_status = 0; } && {
  1382. test -z "$ac_c_werror_flag" ||
  1383. test ! -s conftest.err
  1384. } && test -s conftest.$ac_objext; then :
  1385. ac_retval=0
  1386. else
  1387. $as_echo "$as_me: failed program was:" >&5
  1388. sed 's/^/| /' conftest.$ac_ext >&5
  1389. ac_retval=1
  1390. fi
  1391. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1392. as_fn_set_status $ac_retval
  1393. } # ac_fn_c_try_compile
  1394. # ac_fn_c_try_link LINENO
  1395. # -----------------------
  1396. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1397. ac_fn_c_try_link ()
  1398. {
  1399. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1400. rm -f conftest.$ac_objext conftest$ac_exeext
  1401. if { { ac_try="$ac_link"
  1402. case "(($ac_try" in
  1403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1404. *) ac_try_echo=$ac_try;;
  1405. esac
  1406. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1407. $as_echo "$ac_try_echo"; } >&5
  1408. (eval "$ac_link") 2>conftest.err
  1409. ac_status=$?
  1410. if test -s conftest.err; then
  1411. grep -v '^ *+' conftest.err >conftest.er1
  1412. cat conftest.er1 >&5
  1413. mv -f conftest.er1 conftest.err
  1414. fi
  1415. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1416. test $ac_status = 0; } && {
  1417. test -z "$ac_c_werror_flag" ||
  1418. test ! -s conftest.err
  1419. } && test -s conftest$ac_exeext && {
  1420. test "$cross_compiling" = yes ||
  1421. $as_test_x conftest$ac_exeext
  1422. }; then :
  1423. ac_retval=0
  1424. else
  1425. $as_echo "$as_me: failed program was:" >&5
  1426. sed 's/^/| /' conftest.$ac_ext >&5
  1427. ac_retval=1
  1428. fi
  1429. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1430. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1431. # interfere with the next link command; also delete a directory that is
  1432. # left behind by Apple's compiler. We do this before executing the actions.
  1433. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1434. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1435. as_fn_set_status $ac_retval
  1436. } # ac_fn_c_try_link
  1437. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1438. # -------------------------------------------------------
  1439. # Tests whether HEADER exists and can be compiled using the include files in
  1440. # INCLUDES, setting the cache variable VAR accordingly.
  1441. ac_fn_c_check_header_compile ()
  1442. {
  1443. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1445. $as_echo_n "checking for $2... " >&6; }
  1446. if eval \${$3+:} false; then :
  1447. $as_echo_n "(cached) " >&6
  1448. else
  1449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1450. /* end confdefs.h. */
  1451. $4
  1452. #include <$2>
  1453. _ACEOF
  1454. if ac_fn_c_try_compile "$LINENO"; then :
  1455. eval "$3=yes"
  1456. else
  1457. eval "$3=no"
  1458. fi
  1459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1460. fi
  1461. eval ac_res=\$$3
  1462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1463. $as_echo "$ac_res" >&6; }
  1464. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1465. } # ac_fn_c_check_header_compile
  1466. # ac_fn_c_try_cpp LINENO
  1467. # ----------------------
  1468. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1469. ac_fn_c_try_cpp ()
  1470. {
  1471. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1472. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1473. case "(($ac_try" in
  1474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1475. *) ac_try_echo=$ac_try;;
  1476. esac
  1477. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1478. $as_echo "$ac_try_echo"; } >&5
  1479. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1480. ac_status=$?
  1481. if test -s conftest.err; then
  1482. grep -v '^ *+' conftest.err >conftest.er1
  1483. cat conftest.er1 >&5
  1484. mv -f conftest.er1 conftest.err
  1485. fi
  1486. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1487. test $ac_status = 0; } > conftest.i && {
  1488. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1489. test ! -s conftest.err
  1490. }; then :
  1491. ac_retval=0
  1492. else
  1493. $as_echo "$as_me: failed program was:" >&5
  1494. sed 's/^/| /' conftest.$ac_ext >&5
  1495. ac_retval=1
  1496. fi
  1497. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1498. as_fn_set_status $ac_retval
  1499. } # ac_fn_c_try_cpp
  1500. # ac_fn_c_try_run LINENO
  1501. # ----------------------
  1502. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1503. # that executables *can* be run.
  1504. ac_fn_c_try_run ()
  1505. {
  1506. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1507. if { { ac_try="$ac_link"
  1508. case "(($ac_try" in
  1509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1510. *) ac_try_echo=$ac_try;;
  1511. esac
  1512. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1513. $as_echo "$ac_try_echo"; } >&5
  1514. (eval "$ac_link") 2>&5
  1515. ac_status=$?
  1516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1517. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1518. { { case "(($ac_try" in
  1519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1520. *) ac_try_echo=$ac_try;;
  1521. esac
  1522. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1523. $as_echo "$ac_try_echo"; } >&5
  1524. (eval "$ac_try") 2>&5
  1525. ac_status=$?
  1526. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1527. test $ac_status = 0; }; }; then :
  1528. ac_retval=0
  1529. else
  1530. $as_echo "$as_me: program exited with status $ac_status" >&5
  1531. $as_echo "$as_me: failed program was:" >&5
  1532. sed 's/^/| /' conftest.$ac_ext >&5
  1533. ac_retval=$ac_status
  1534. fi
  1535. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1536. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1537. as_fn_set_status $ac_retval
  1538. } # ac_fn_c_try_run
  1539. # ac_fn_c_check_func LINENO FUNC VAR
  1540. # ----------------------------------
  1541. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1542. ac_fn_c_check_func ()
  1543. {
  1544. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1546. $as_echo_n "checking for $2... " >&6; }
  1547. if eval \${$3+:} false; then :
  1548. $as_echo_n "(cached) " >&6
  1549. else
  1550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1551. /* end confdefs.h. */
  1552. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1553. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1554. #define $2 innocuous_$2
  1555. /* System header to define __stub macros and hopefully few prototypes,
  1556. which can conflict with char $2 (); below.
  1557. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1558. <limits.h> exists even on freestanding compilers. */
  1559. #ifdef __STDC__
  1560. # include <limits.h>
  1561. #else
  1562. # include <assert.h>
  1563. #endif
  1564. #undef $2
  1565. /* Override any GCC internal prototype to avoid an error.
  1566. Use char because int might match the return type of a GCC
  1567. builtin and then its argument prototype would still apply. */
  1568. #ifdef __cplusplus
  1569. extern "C"
  1570. #endif
  1571. char $2 ();
  1572. /* The GNU C library defines this for functions which it implements
  1573. to always fail with ENOSYS. Some functions are actually named
  1574. something starting with __ and the normal name is an alias. */
  1575. #if defined __stub_$2 || defined __stub___$2
  1576. choke me
  1577. #endif
  1578. int
  1579. main ()
  1580. {
  1581. return $2 ();
  1582. ;
  1583. return 0;
  1584. }
  1585. _ACEOF
  1586. if ac_fn_c_try_link "$LINENO"; then :
  1587. eval "$3=yes"
  1588. else
  1589. eval "$3=no"
  1590. fi
  1591. rm -f core conftest.err conftest.$ac_objext \
  1592. conftest$ac_exeext conftest.$ac_ext
  1593. fi
  1594. eval ac_res=\$$3
  1595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1596. $as_echo "$ac_res" >&6; }
  1597. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1598. } # ac_fn_c_check_func
  1599. cat >config.log <<_ACEOF
  1600. This file contains any messages produced by compilers while
  1601. running configure, to aid debugging if configure makes a mistake.
  1602. It was created by OPCUAServer $as_me 1.0, which was
  1603. generated by GNU Autoconf 2.68. Invocation command line was
  1604. $ $0 $@
  1605. _ACEOF
  1606. exec 5>>config.log
  1607. {
  1608. cat <<_ASUNAME
  1609. ## --------- ##
  1610. ## Platform. ##
  1611. ## --------- ##
  1612. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1613. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1614. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1615. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1616. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1617. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1618. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1619. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1620. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1621. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1622. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1623. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1624. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1625. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1626. _ASUNAME
  1627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1628. for as_dir in $PATH
  1629. do
  1630. IFS=$as_save_IFS
  1631. test -z "$as_dir" && as_dir=.
  1632. $as_echo "PATH: $as_dir"
  1633. done
  1634. IFS=$as_save_IFS
  1635. } >&5
  1636. cat >&5 <<_ACEOF
  1637. ## ----------- ##
  1638. ## Core tests. ##
  1639. ## ----------- ##
  1640. _ACEOF
  1641. # Keep a trace of the command line.
  1642. # Strip out --no-create and --no-recursion so they do not pile up.
  1643. # Strip out --silent because we don't want to record it for future runs.
  1644. # Also quote any args containing shell meta-characters.
  1645. # Make two passes to allow for proper duplicate-argument suppression.
  1646. ac_configure_args=
  1647. ac_configure_args0=
  1648. ac_configure_args1=
  1649. ac_must_keep_next=false
  1650. for ac_pass in 1 2
  1651. do
  1652. for ac_arg
  1653. do
  1654. case $ac_arg in
  1655. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1656. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1657. | -silent | --silent | --silen | --sile | --sil)
  1658. continue ;;
  1659. *\'*)
  1660. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1661. esac
  1662. case $ac_pass in
  1663. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1664. 2)
  1665. as_fn_append ac_configure_args1 " '$ac_arg'"
  1666. if test $ac_must_keep_next = true; then
  1667. ac_must_keep_next=false # Got value, back to normal.
  1668. else
  1669. case $ac_arg in
  1670. *=* | --config-cache | -C | -disable-* | --disable-* \
  1671. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1672. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1673. | -with-* | --with-* | -without-* | --without-* | --x)
  1674. case "$ac_configure_args0 " in
  1675. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1676. esac
  1677. ;;
  1678. -* ) ac_must_keep_next=true ;;
  1679. esac
  1680. fi
  1681. as_fn_append ac_configure_args " '$ac_arg'"
  1682. ;;
  1683. esac
  1684. done
  1685. done
  1686. { ac_configure_args0=; unset ac_configure_args0;}
  1687. { ac_configure_args1=; unset ac_configure_args1;}
  1688. # When interrupted or exit'd, cleanup temporary files, and complete
  1689. # config.log. We remove comments because anyway the quotes in there
  1690. # would cause problems or look ugly.
  1691. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1692. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1693. trap 'exit_status=$?
  1694. # Save into config.log some information that might help in debugging.
  1695. {
  1696. echo
  1697. $as_echo "## ---------------- ##
  1698. ## Cache variables. ##
  1699. ## ---------------- ##"
  1700. echo
  1701. # The following way of writing the cache mishandles newlines in values,
  1702. (
  1703. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1704. eval ac_val=\$$ac_var
  1705. case $ac_val in #(
  1706. *${as_nl}*)
  1707. case $ac_var in #(
  1708. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1709. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1710. esac
  1711. case $ac_var in #(
  1712. _ | IFS | as_nl) ;; #(
  1713. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1714. *) { eval $ac_var=; unset $ac_var;} ;;
  1715. esac ;;
  1716. esac
  1717. done
  1718. (set) 2>&1 |
  1719. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1720. *${as_nl}ac_space=\ *)
  1721. sed -n \
  1722. "s/'\''/'\''\\\\'\'''\''/g;
  1723. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1724. ;; #(
  1725. *)
  1726. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1727. ;;
  1728. esac |
  1729. sort
  1730. )
  1731. echo
  1732. $as_echo "## ----------------- ##
  1733. ## Output variables. ##
  1734. ## ----------------- ##"
  1735. echo
  1736. for ac_var in $ac_subst_vars
  1737. do
  1738. eval ac_val=\$$ac_var
  1739. case $ac_val in
  1740. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1741. esac
  1742. $as_echo "$ac_var='\''$ac_val'\''"
  1743. done | sort
  1744. echo
  1745. if test -n "$ac_subst_files"; then
  1746. $as_echo "## ------------------- ##
  1747. ## File substitutions. ##
  1748. ## ------------------- ##"
  1749. echo
  1750. for ac_var in $ac_subst_files
  1751. do
  1752. eval ac_val=\$$ac_var
  1753. case $ac_val in
  1754. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1755. esac
  1756. $as_echo "$ac_var='\''$ac_val'\''"
  1757. done | sort
  1758. echo
  1759. fi
  1760. if test -s confdefs.h; then
  1761. $as_echo "## ----------- ##
  1762. ## confdefs.h. ##
  1763. ## ----------- ##"
  1764. echo
  1765. cat confdefs.h
  1766. echo
  1767. fi
  1768. test "$ac_signal" != 0 &&
  1769. $as_echo "$as_me: caught signal $ac_signal"
  1770. $as_echo "$as_me: exit $exit_status"
  1771. } >&5
  1772. rm -f core *.core core.conftest.* &&
  1773. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1774. exit $exit_status
  1775. ' 0
  1776. for ac_signal in 1 2 13 15; do
  1777. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1778. done
  1779. ac_signal=0
  1780. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1781. rm -f -r conftest* confdefs.h
  1782. $as_echo "/* confdefs.h */" > confdefs.h
  1783. # Predefined preprocessor variables.
  1784. cat >>confdefs.h <<_ACEOF
  1785. #define PACKAGE_NAME "$PACKAGE_NAME"
  1786. _ACEOF
  1787. cat >>confdefs.h <<_ACEOF
  1788. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1789. _ACEOF
  1790. cat >>confdefs.h <<_ACEOF
  1791. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1792. _ACEOF
  1793. cat >>confdefs.h <<_ACEOF
  1794. #define PACKAGE_STRING "$PACKAGE_STRING"
  1795. _ACEOF
  1796. cat >>confdefs.h <<_ACEOF
  1797. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1798. _ACEOF
  1799. cat >>confdefs.h <<_ACEOF
  1800. #define PACKAGE_URL "$PACKAGE_URL"
  1801. _ACEOF
  1802. # Let the site file select an alternate cache file if it wants to.
  1803. # Prefer an explicitly selected file to automatically selected ones.
  1804. ac_site_file1=NONE
  1805. ac_site_file2=NONE
  1806. if test -n "$CONFIG_SITE"; then
  1807. # We do not want a PATH search for config.site.
  1808. case $CONFIG_SITE in #((
  1809. -*) ac_site_file1=./$CONFIG_SITE;;
  1810. */*) ac_site_file1=$CONFIG_SITE;;
  1811. *) ac_site_file1=./$CONFIG_SITE;;
  1812. esac
  1813. elif test "x$prefix" != xNONE; then
  1814. ac_site_file1=$prefix/share/config.site
  1815. ac_site_file2=$prefix/etc/config.site
  1816. else
  1817. ac_site_file1=$ac_default_prefix/share/config.site
  1818. ac_site_file2=$ac_default_prefix/etc/config.site
  1819. fi
  1820. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1821. do
  1822. test "x$ac_site_file" = xNONE && continue
  1823. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1825. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1826. sed 's/^/| /' "$ac_site_file" >&5
  1827. . "$ac_site_file" \
  1828. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1829. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1830. as_fn_error $? "failed to load site script $ac_site_file
  1831. See \`config.log' for more details" "$LINENO" 5; }
  1832. fi
  1833. done
  1834. if test -r "$cache_file"; then
  1835. # Some versions of bash will fail to source /dev/null (special files
  1836. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1837. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1838. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1839. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1840. case $cache_file in
  1841. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1842. *) . "./$cache_file";;
  1843. esac
  1844. fi
  1845. else
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1847. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1848. >$cache_file
  1849. fi
  1850. # Check that the precious variables saved in the cache have kept the same
  1851. # value.
  1852. ac_cache_corrupted=false
  1853. for ac_var in $ac_precious_vars; do
  1854. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1855. eval ac_new_set=\$ac_env_${ac_var}_set
  1856. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1857. eval ac_new_val=\$ac_env_${ac_var}_value
  1858. case $ac_old_set,$ac_new_set in
  1859. set,)
  1860. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1861. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1862. ac_cache_corrupted=: ;;
  1863. ,set)
  1864. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1865. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1866. ac_cache_corrupted=: ;;
  1867. ,);;
  1868. *)
  1869. if test "x$ac_old_val" != "x$ac_new_val"; then
  1870. # differences in whitespace do not lead to failure.
  1871. ac_old_val_w=`echo x $ac_old_val`
  1872. ac_new_val_w=`echo x $ac_new_val`
  1873. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1875. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1876. ac_cache_corrupted=:
  1877. else
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1879. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1880. eval $ac_var=\$ac_old_val
  1881. fi
  1882. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1883. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1884. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1885. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1886. fi;;
  1887. esac
  1888. # Pass precious variables to config.status.
  1889. if test "$ac_new_set" = set; then
  1890. case $ac_new_val in
  1891. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1892. *) ac_arg=$ac_var=$ac_new_val ;;
  1893. esac
  1894. case " $ac_configure_args " in
  1895. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1896. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1897. esac
  1898. fi
  1899. done
  1900. if $ac_cache_corrupted; then
  1901. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1902. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1903. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1904. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1905. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1906. fi
  1907. ## -------------------- ##
  1908. ## Main body of script. ##
  1909. ## -------------------- ##
  1910. ac_ext=c
  1911. ac_cpp='$CPP $CPPFLAGS'
  1912. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1913. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1914. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1915. ac_aux_dir=
  1916. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1917. if test -f "$ac_dir/install-sh"; then
  1918. ac_aux_dir=$ac_dir
  1919. ac_install_sh="$ac_aux_dir/install-sh -c"
  1920. break
  1921. elif test -f "$ac_dir/install.sh"; then
  1922. ac_aux_dir=$ac_dir
  1923. ac_install_sh="$ac_aux_dir/install.sh -c"
  1924. break
  1925. elif test -f "$ac_dir/shtool"; then
  1926. ac_aux_dir=$ac_dir
  1927. ac_install_sh="$ac_aux_dir/shtool install -c"
  1928. break
  1929. fi
  1930. done
  1931. if test -z "$ac_aux_dir"; then
  1932. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1933. fi
  1934. # These three variables are undocumented and unsupported,
  1935. # and are intended to be withdrawn in a future Autoconf release.
  1936. # They can cause serious problems if a builder's source tree is in a directory
  1937. # whose full name contains unusual characters.
  1938. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1939. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1940. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1941. # Make sure we can run config.sub.
  1942. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1943. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1945. $as_echo_n "checking build system type... " >&6; }
  1946. if ${ac_cv_build+:} false; then :
  1947. $as_echo_n "(cached) " >&6
  1948. else
  1949. ac_build_alias=$build_alias
  1950. test "x$ac_build_alias" = x &&
  1951. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1952. test "x$ac_build_alias" = x &&
  1953. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1954. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1955. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1956. fi
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1958. $as_echo "$ac_cv_build" >&6; }
  1959. case $ac_cv_build in
  1960. *-*-*) ;;
  1961. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  1962. esac
  1963. build=$ac_cv_build
  1964. ac_save_IFS=$IFS; IFS='-'
  1965. set x $ac_cv_build
  1966. shift
  1967. build_cpu=$1
  1968. build_vendor=$2
  1969. shift; shift
  1970. # Remember, the first character of IFS is used to create $*,
  1971. # except with old shells:
  1972. build_os=$*
  1973. IFS=$ac_save_IFS
  1974. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  1976. $as_echo_n "checking host system type... " >&6; }
  1977. if ${ac_cv_host+:} false; then :
  1978. $as_echo_n "(cached) " >&6
  1979. else
  1980. if test "x$host_alias" = x; then
  1981. ac_cv_host=$ac_cv_build
  1982. else
  1983. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1984. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  1985. fi
  1986. fi
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  1988. $as_echo "$ac_cv_host" >&6; }
  1989. case $ac_cv_host in
  1990. *-*-*) ;;
  1991. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  1992. esac
  1993. host=$ac_cv_host
  1994. ac_save_IFS=$IFS; IFS='-'
  1995. set x $ac_cv_host
  1996. shift
  1997. host_cpu=$1
  1998. host_vendor=$2
  1999. shift; shift
  2000. # Remember, the first character of IFS is used to create $*,
  2001. # except with old shells:
  2002. host_os=$*
  2003. IFS=$ac_save_IFS
  2004. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2006. $as_echo_n "checking target system type... " >&6; }
  2007. if ${ac_cv_target+:} false; then :
  2008. $as_echo_n "(cached) " >&6
  2009. else
  2010. if test "x$target_alias" = x; then
  2011. ac_cv_target=$ac_cv_host
  2012. else
  2013. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2014. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2015. fi
  2016. fi
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2018. $as_echo "$ac_cv_target" >&6; }
  2019. case $ac_cv_target in
  2020. *-*-*) ;;
  2021. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2022. esac
  2023. target=$ac_cv_target
  2024. ac_save_IFS=$IFS; IFS='-'
  2025. set x $ac_cv_target
  2026. shift
  2027. target_cpu=$1
  2028. target_vendor=$2
  2029. shift; shift
  2030. # Remember, the first character of IFS is used to create $*,
  2031. # except with old shells:
  2032. target_os=$*
  2033. IFS=$ac_save_IFS
  2034. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2035. # The aliases save the names the user supplied, while $host etc.
  2036. # will get canonicalized.
  2037. test -n "$target_alias" &&
  2038. test "$program_prefix$program_suffix$program_transform_name" = \
  2039. NONENONEs,x,x, &&
  2040. program_prefix=${target_alias}-
  2041. am__api_version='1.11'
  2042. # Find a good install program. We prefer a C program (faster),
  2043. # so one script is as good as another. But avoid the broken or
  2044. # incompatible versions:
  2045. # SysV /etc/install, /usr/sbin/install
  2046. # SunOS /usr/etc/install
  2047. # IRIX /sbin/install
  2048. # AIX /bin/install
  2049. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2050. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2051. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2052. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2053. # OS/2's system install, which has a completely different semantic
  2054. # ./install, which can be erroneously created by make from ./install.sh.
  2055. # Reject install programs that cannot install multiple files.
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2057. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2058. if test -z "$INSTALL"; then
  2059. if ${ac_cv_path_install+:} false; then :
  2060. $as_echo_n "(cached) " >&6
  2061. else
  2062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2063. for as_dir in $PATH
  2064. do
  2065. IFS=$as_save_IFS
  2066. test -z "$as_dir" && as_dir=.
  2067. # Account for people who put trailing slashes in PATH elements.
  2068. case $as_dir/ in #((
  2069. ./ | .// | /[cC]/* | \
  2070. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2071. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2072. /usr/ucb/* ) ;;
  2073. *)
  2074. # OSF1 and SCO ODT 3.0 have their own names for install.
  2075. # Don't use installbsd from OSF since it installs stuff as root
  2076. # by default.
  2077. for ac_prog in ginstall scoinst install; do
  2078. for ac_exec_ext in '' $ac_executable_extensions; do
  2079. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2080. if test $ac_prog = install &&
  2081. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2082. # AIX install. It has an incompatible calling convention.
  2083. :
  2084. elif test $ac_prog = install &&
  2085. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2086. # program-specific install script used by HP pwplus--don't use.
  2087. :
  2088. else
  2089. rm -rf conftest.one conftest.two conftest.dir
  2090. echo one > conftest.one
  2091. echo two > conftest.two
  2092. mkdir conftest.dir
  2093. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2094. test -s conftest.one && test -s conftest.two &&
  2095. test -s conftest.dir/conftest.one &&
  2096. test -s conftest.dir/conftest.two
  2097. then
  2098. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2099. break 3
  2100. fi
  2101. fi
  2102. fi
  2103. done
  2104. done
  2105. ;;
  2106. esac
  2107. done
  2108. IFS=$as_save_IFS
  2109. rm -rf conftest.one conftest.two conftest.dir
  2110. fi
  2111. if test "${ac_cv_path_install+set}" = set; then
  2112. INSTALL=$ac_cv_path_install
  2113. else
  2114. # As a last resort, use the slow shell script. Don't cache a
  2115. # value for INSTALL within a source directory, because that will
  2116. # break other packages using the cache if that directory is
  2117. # removed, or if the value is a relative name.
  2118. INSTALL=$ac_install_sh
  2119. fi
  2120. fi
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2122. $as_echo "$INSTALL" >&6; }
  2123. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2124. # It thinks the first close brace ends the variable substitution.
  2125. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2126. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2127. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2129. $as_echo_n "checking whether build environment is sane... " >&6; }
  2130. # Just in case
  2131. sleep 1
  2132. echo timestamp > conftest.file
  2133. # Reject unsafe characters in $srcdir or the absolute working directory
  2134. # name. Accept space and tab only in the latter.
  2135. am_lf='
  2136. '
  2137. case `pwd` in
  2138. *[\\\"\#\$\&\'\`$am_lf]*)
  2139. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2140. esac
  2141. case $srcdir in
  2142. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2143. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2144. esac
  2145. # Do `set' in a subshell so we don't clobber the current shell's
  2146. # arguments. Must try -L first in case configure is actually a
  2147. # symlink; some systems play weird games with the mod time of symlinks
  2148. # (eg FreeBSD returns the mod time of the symlink's containing
  2149. # directory).
  2150. if (
  2151. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2152. if test "$*" = "X"; then
  2153. # -L didn't work.
  2154. set X `ls -t "$srcdir/configure" conftest.file`
  2155. fi
  2156. rm -f conftest.file
  2157. if test "$*" != "X $srcdir/configure conftest.file" \
  2158. && test "$*" != "X conftest.file $srcdir/configure"; then
  2159. # If neither matched, then we have a broken ls. This can happen
  2160. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2161. # broken ls alias from the environment. This has actually
  2162. # happened. Such a system could not be considered "sane".
  2163. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2164. alias in your environment" "$LINENO" 5
  2165. fi
  2166. test "$2" = conftest.file
  2167. )
  2168. then
  2169. # Ok.
  2170. :
  2171. else
  2172. as_fn_error $? "newly created file is older than distributed files!
  2173. Check your system clock" "$LINENO" 5
  2174. fi
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2176. $as_echo "yes" >&6; }
  2177. test "$program_prefix" != NONE &&
  2178. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2179. # Use a double $ so make ignores it.
  2180. test "$program_suffix" != NONE &&
  2181. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2182. # Double any \ or $.
  2183. # By default was `s,x,x', remove it if useless.
  2184. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2185. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2186. # expand $ac_aux_dir to an absolute path
  2187. am_aux_dir=`cd $ac_aux_dir && pwd`
  2188. if test x"${MISSING+set}" != xset; then
  2189. case $am_aux_dir in
  2190. *\ * | *\ *)
  2191. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2192. *)
  2193. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2194. esac
  2195. fi
  2196. # Use eval to expand $SHELL
  2197. if eval "$MISSING --run true"; then
  2198. am_missing_run="$MISSING --run "
  2199. else
  2200. am_missing_run=
  2201. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2202. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2203. fi
  2204. if test x"${install_sh}" != xset; then
  2205. case $am_aux_dir in
  2206. *\ * | *\ *)
  2207. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2208. *)
  2209. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2210. esac
  2211. fi
  2212. # Installed binaries are usually stripped using `strip' when the user
  2213. # run `make install-strip'. However `strip' might not be the right
  2214. # tool to use in cross-compilation environments, therefore Automake
  2215. # will honor the `STRIP' environment variable to overrule this program.
  2216. if test "$cross_compiling" != no; then
  2217. if test -n "$ac_tool_prefix"; then
  2218. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2219. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2221. $as_echo_n "checking for $ac_word... " >&6; }
  2222. if ${ac_cv_prog_STRIP+:} false; then :
  2223. $as_echo_n "(cached) " >&6
  2224. else
  2225. if test -n "$STRIP"; then
  2226. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2227. else
  2228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2229. for as_dir in $PATH
  2230. do
  2231. IFS=$as_save_IFS
  2232. test -z "$as_dir" && as_dir=.
  2233. for ac_exec_ext in '' $ac_executable_extensions; do
  2234. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2235. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2236. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2237. break 2
  2238. fi
  2239. done
  2240. done
  2241. IFS=$as_save_IFS
  2242. fi
  2243. fi
  2244. STRIP=$ac_cv_prog_STRIP
  2245. if test -n "$STRIP"; then
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2247. $as_echo "$STRIP" >&6; }
  2248. else
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2250. $as_echo "no" >&6; }
  2251. fi
  2252. fi
  2253. if test -z "$ac_cv_prog_STRIP"; then
  2254. ac_ct_STRIP=$STRIP
  2255. # Extract the first word of "strip", so it can be a program name with args.
  2256. set dummy strip; ac_word=$2
  2257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2258. $as_echo_n "checking for $ac_word... " >&6; }
  2259. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2260. $as_echo_n "(cached) " >&6
  2261. else
  2262. if test -n "$ac_ct_STRIP"; then
  2263. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2264. else
  2265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2266. for as_dir in $PATH
  2267. do
  2268. IFS=$as_save_IFS
  2269. test -z "$as_dir" && as_dir=.
  2270. for ac_exec_ext in '' $ac_executable_extensions; do
  2271. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2272. ac_cv_prog_ac_ct_STRIP="strip"
  2273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2274. break 2
  2275. fi
  2276. done
  2277. done
  2278. IFS=$as_save_IFS
  2279. fi
  2280. fi
  2281. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2282. if test -n "$ac_ct_STRIP"; then
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2284. $as_echo "$ac_ct_STRIP" >&6; }
  2285. else
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2287. $as_echo "no" >&6; }
  2288. fi
  2289. if test "x$ac_ct_STRIP" = x; then
  2290. STRIP=":"
  2291. else
  2292. case $cross_compiling:$ac_tool_warned in
  2293. yes:)
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2295. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2296. ac_tool_warned=yes ;;
  2297. esac
  2298. STRIP=$ac_ct_STRIP
  2299. fi
  2300. else
  2301. STRIP="$ac_cv_prog_STRIP"
  2302. fi
  2303. fi
  2304. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2306. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2307. if test -z "$MKDIR_P"; then
  2308. if ${ac_cv_path_mkdir+:} false; then :
  2309. $as_echo_n "(cached) " >&6
  2310. else
  2311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2312. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2313. do
  2314. IFS=$as_save_IFS
  2315. test -z "$as_dir" && as_dir=.
  2316. for ac_prog in mkdir gmkdir; do
  2317. for ac_exec_ext in '' $ac_executable_extensions; do
  2318. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2319. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2320. 'mkdir (GNU coreutils) '* | \
  2321. 'mkdir (coreutils) '* | \
  2322. 'mkdir (fileutils) '4.1*)
  2323. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2324. break 3;;
  2325. esac
  2326. done
  2327. done
  2328. done
  2329. IFS=$as_save_IFS
  2330. fi
  2331. test -d ./--version && rmdir ./--version
  2332. if test "${ac_cv_path_mkdir+set}" = set; then
  2333. MKDIR_P="$ac_cv_path_mkdir -p"
  2334. else
  2335. # As a last resort, use the slow shell script. Don't cache a
  2336. # value for MKDIR_P within a source directory, because that will
  2337. # break other packages using the cache if that directory is
  2338. # removed, or if the value is a relative name.
  2339. MKDIR_P="$ac_install_sh -d"
  2340. fi
  2341. fi
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2343. $as_echo "$MKDIR_P" >&6; }
  2344. mkdir_p="$MKDIR_P"
  2345. case $mkdir_p in
  2346. [\\/$]* | ?:[\\/]*) ;;
  2347. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2348. esac
  2349. for ac_prog in gawk mawk nawk awk
  2350. do
  2351. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2352. set dummy $ac_prog; ac_word=$2
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2354. $as_echo_n "checking for $ac_word... " >&6; }
  2355. if ${ac_cv_prog_AWK+:} false; then :
  2356. $as_echo_n "(cached) " >&6
  2357. else
  2358. if test -n "$AWK"; then
  2359. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2360. else
  2361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2362. for as_dir in $PATH
  2363. do
  2364. IFS=$as_save_IFS
  2365. test -z "$as_dir" && as_dir=.
  2366. for ac_exec_ext in '' $ac_executable_extensions; do
  2367. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2368. ac_cv_prog_AWK="$ac_prog"
  2369. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2370. break 2
  2371. fi
  2372. done
  2373. done
  2374. IFS=$as_save_IFS
  2375. fi
  2376. fi
  2377. AWK=$ac_cv_prog_AWK
  2378. if test -n "$AWK"; then
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2380. $as_echo "$AWK" >&6; }
  2381. else
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2383. $as_echo "no" >&6; }
  2384. fi
  2385. test -n "$AWK" && break
  2386. done
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2388. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2389. set x ${MAKE-make}
  2390. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2391. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2392. $as_echo_n "(cached) " >&6
  2393. else
  2394. cat >conftest.make <<\_ACEOF
  2395. SHELL = /bin/sh
  2396. all:
  2397. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2398. _ACEOF
  2399. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2400. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2401. *@@@%%%=?*=@@@%%%*)
  2402. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2403. *)
  2404. eval ac_cv_prog_make_${ac_make}_set=no;;
  2405. esac
  2406. rm -f conftest.make
  2407. fi
  2408. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2410. $as_echo "yes" >&6; }
  2411. SET_MAKE=
  2412. else
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2414. $as_echo "no" >&6; }
  2415. SET_MAKE="MAKE=${MAKE-make}"
  2416. fi
  2417. rm -rf .tst 2>/dev/null
  2418. mkdir .tst 2>/dev/null
  2419. if test -d .tst; then
  2420. am__leading_dot=.
  2421. else
  2422. am__leading_dot=_
  2423. fi
  2424. rmdir .tst 2>/dev/null
  2425. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2426. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2427. # is not polluted with repeated "-I."
  2428. am__isrc=' -I$(srcdir)'
  2429. # test to see if srcdir already configured
  2430. if test -f $srcdir/config.status; then
  2431. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2432. fi
  2433. fi
  2434. # test whether we have cygpath
  2435. if test -z "$CYGPATH_W"; then
  2436. if (cygpath --version) >/dev/null 2>/dev/null; then
  2437. CYGPATH_W='cygpath -w'
  2438. else
  2439. CYGPATH_W=echo
  2440. fi
  2441. fi
  2442. # Define the identity of the package.
  2443. PACKAGE='opcuaserver'
  2444. VERSION='1.0'
  2445. cat >>confdefs.h <<_ACEOF
  2446. #define PACKAGE "$PACKAGE"
  2447. _ACEOF
  2448. cat >>confdefs.h <<_ACEOF
  2449. #define VERSION "$VERSION"
  2450. _ACEOF
  2451. # Some tools Automake needs.
  2452. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2453. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2454. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2455. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2456. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2457. # We need awk for the "check" target. The system "awk" is bad on
  2458. # some platforms.
  2459. # Always define AMTAR for backward compatibility.
  2460. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2461. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2463. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2464. set x ${MAKE-make}
  2465. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2466. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2467. $as_echo_n "(cached) " >&6
  2468. else
  2469. cat >conftest.make <<\_ACEOF
  2470. SHELL = /bin/sh
  2471. all:
  2472. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2473. _ACEOF
  2474. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2475. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2476. *@@@%%%=?*=@@@%%%*)
  2477. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2478. *)
  2479. eval ac_cv_prog_make_${ac_make}_set=no;;
  2480. esac
  2481. rm -f conftest.make
  2482. fi
  2483. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2485. $as_echo "yes" >&6; }
  2486. SET_MAKE=
  2487. else
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2489. $as_echo "no" >&6; }
  2490. SET_MAKE="MAKE=${MAKE-make}"
  2491. fi
  2492. if test -z $CFLAGS; then
  2493. CFLAGS='-O0'
  2494. fi
  2495. ac_ext=c
  2496. ac_cpp='$CPP $CPPFLAGS'
  2497. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2498. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2499. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2500. if test -n "$ac_tool_prefix"; then
  2501. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2502. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2504. $as_echo_n "checking for $ac_word... " >&6; }
  2505. if ${ac_cv_prog_CC+:} false; then :
  2506. $as_echo_n "(cached) " >&6
  2507. else
  2508. if test -n "$CC"; then
  2509. ac_cv_prog_CC="$CC" # Let the user override the test.
  2510. else
  2511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2512. for as_dir in $PATH
  2513. do
  2514. IFS=$as_save_IFS
  2515. test -z "$as_dir" && as_dir=.
  2516. for ac_exec_ext in '' $ac_executable_extensions; do
  2517. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2518. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2520. break 2
  2521. fi
  2522. done
  2523. done
  2524. IFS=$as_save_IFS
  2525. fi
  2526. fi
  2527. CC=$ac_cv_prog_CC
  2528. if test -n "$CC"; then
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2530. $as_echo "$CC" >&6; }
  2531. else
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2533. $as_echo "no" >&6; }
  2534. fi
  2535. fi
  2536. if test -z "$ac_cv_prog_CC"; then
  2537. ac_ct_CC=$CC
  2538. # Extract the first word of "gcc", so it can be a program name with args.
  2539. set dummy gcc; ac_word=$2
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2541. $as_echo_n "checking for $ac_word... " >&6; }
  2542. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2543. $as_echo_n "(cached) " >&6
  2544. else
  2545. if test -n "$ac_ct_CC"; then
  2546. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2547. else
  2548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2549. for as_dir in $PATH
  2550. do
  2551. IFS=$as_save_IFS
  2552. test -z "$as_dir" && as_dir=.
  2553. for ac_exec_ext in '' $ac_executable_extensions; do
  2554. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2555. ac_cv_prog_ac_ct_CC="gcc"
  2556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2557. break 2
  2558. fi
  2559. done
  2560. done
  2561. IFS=$as_save_IFS
  2562. fi
  2563. fi
  2564. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2565. if test -n "$ac_ct_CC"; then
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2567. $as_echo "$ac_ct_CC" >&6; }
  2568. else
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2570. $as_echo "no" >&6; }
  2571. fi
  2572. if test "x$ac_ct_CC" = x; then
  2573. CC=""
  2574. else
  2575. case $cross_compiling:$ac_tool_warned in
  2576. yes:)
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2578. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2579. ac_tool_warned=yes ;;
  2580. esac
  2581. CC=$ac_ct_CC
  2582. fi
  2583. else
  2584. CC="$ac_cv_prog_CC"
  2585. fi
  2586. if test -z "$CC"; then
  2587. if test -n "$ac_tool_prefix"; then
  2588. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2589. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2591. $as_echo_n "checking for $ac_word... " >&6; }
  2592. if ${ac_cv_prog_CC+:} false; then :
  2593. $as_echo_n "(cached) " >&6
  2594. else
  2595. if test -n "$CC"; then
  2596. ac_cv_prog_CC="$CC" # Let the user override the test.
  2597. else
  2598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2599. for as_dir in $PATH
  2600. do
  2601. IFS=$as_save_IFS
  2602. test -z "$as_dir" && as_dir=.
  2603. for ac_exec_ext in '' $ac_executable_extensions; do
  2604. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2605. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2607. break 2
  2608. fi
  2609. done
  2610. done
  2611. IFS=$as_save_IFS
  2612. fi
  2613. fi
  2614. CC=$ac_cv_prog_CC
  2615. if test -n "$CC"; then
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2617. $as_echo "$CC" >&6; }
  2618. else
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2620. $as_echo "no" >&6; }
  2621. fi
  2622. fi
  2623. fi
  2624. if test -z "$CC"; then
  2625. # Extract the first word of "cc", so it can be a program name with args.
  2626. set dummy cc; ac_word=$2
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2628. $as_echo_n "checking for $ac_word... " >&6; }
  2629. if ${ac_cv_prog_CC+:} false; then :
  2630. $as_echo_n "(cached) " >&6
  2631. else
  2632. if test -n "$CC"; then
  2633. ac_cv_prog_CC="$CC" # Let the user override the test.
  2634. else
  2635. ac_prog_rejected=no
  2636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2637. for as_dir in $PATH
  2638. do
  2639. IFS=$as_save_IFS
  2640. test -z "$as_dir" && as_dir=.
  2641. for ac_exec_ext in '' $ac_executable_extensions; do
  2642. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2643. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2644. ac_prog_rejected=yes
  2645. continue
  2646. fi
  2647. ac_cv_prog_CC="cc"
  2648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2649. break 2
  2650. fi
  2651. done
  2652. done
  2653. IFS=$as_save_IFS
  2654. if test $ac_prog_rejected = yes; then
  2655. # We found a bogon in the path, so make sure we never use it.
  2656. set dummy $ac_cv_prog_CC
  2657. shift
  2658. if test $# != 0; then
  2659. # We chose a different compiler from the bogus one.
  2660. # However, it has the same basename, so the bogon will be chosen
  2661. # first if we set CC to just the basename; use the full file name.
  2662. shift
  2663. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2664. fi
  2665. fi
  2666. fi
  2667. fi
  2668. CC=$ac_cv_prog_CC
  2669. if test -n "$CC"; then
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2671. $as_echo "$CC" >&6; }
  2672. else
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2674. $as_echo "no" >&6; }
  2675. fi
  2676. fi
  2677. if test -z "$CC"; then
  2678. if test -n "$ac_tool_prefix"; then
  2679. for ac_prog in cl.exe
  2680. do
  2681. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2682. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2684. $as_echo_n "checking for $ac_word... " >&6; }
  2685. if ${ac_cv_prog_CC+:} false; then :
  2686. $as_echo_n "(cached) " >&6
  2687. else
  2688. if test -n "$CC"; then
  2689. ac_cv_prog_CC="$CC" # Let the user override the test.
  2690. else
  2691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2692. for as_dir in $PATH
  2693. do
  2694. IFS=$as_save_IFS
  2695. test -z "$as_dir" && as_dir=.
  2696. for ac_exec_ext in '' $ac_executable_extensions; do
  2697. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2698. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2700. break 2
  2701. fi
  2702. done
  2703. done
  2704. IFS=$as_save_IFS
  2705. fi
  2706. fi
  2707. CC=$ac_cv_prog_CC
  2708. if test -n "$CC"; then
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2710. $as_echo "$CC" >&6; }
  2711. else
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2713. $as_echo "no" >&6; }
  2714. fi
  2715. test -n "$CC" && break
  2716. done
  2717. fi
  2718. if test -z "$CC"; then
  2719. ac_ct_CC=$CC
  2720. for ac_prog in cl.exe
  2721. do
  2722. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2723. set dummy $ac_prog; ac_word=$2
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2725. $as_echo_n "checking for $ac_word... " >&6; }
  2726. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2727. $as_echo_n "(cached) " >&6
  2728. else
  2729. if test -n "$ac_ct_CC"; then
  2730. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2731. else
  2732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2733. for as_dir in $PATH
  2734. do
  2735. IFS=$as_save_IFS
  2736. test -z "$as_dir" && as_dir=.
  2737. for ac_exec_ext in '' $ac_executable_extensions; do
  2738. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2739. ac_cv_prog_ac_ct_CC="$ac_prog"
  2740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2741. break 2
  2742. fi
  2743. done
  2744. done
  2745. IFS=$as_save_IFS
  2746. fi
  2747. fi
  2748. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2749. if test -n "$ac_ct_CC"; then
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2751. $as_echo "$ac_ct_CC" >&6; }
  2752. else
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2754. $as_echo "no" >&6; }
  2755. fi
  2756. test -n "$ac_ct_CC" && break
  2757. done
  2758. if test "x$ac_ct_CC" = x; then
  2759. CC=""
  2760. else
  2761. case $cross_compiling:$ac_tool_warned in
  2762. yes:)
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2764. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2765. ac_tool_warned=yes ;;
  2766. esac
  2767. CC=$ac_ct_CC
  2768. fi
  2769. fi
  2770. fi
  2771. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2772. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2773. as_fn_error $? "no acceptable C compiler found in \$PATH
  2774. See \`config.log' for more details" "$LINENO" 5; }
  2775. # Provide some information about the compiler.
  2776. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2777. set X $ac_compile
  2778. ac_compiler=$2
  2779. for ac_option in --version -v -V -qversion; do
  2780. { { ac_try="$ac_compiler $ac_option >&5"
  2781. case "(($ac_try" in
  2782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2783. *) ac_try_echo=$ac_try;;
  2784. esac
  2785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2786. $as_echo "$ac_try_echo"; } >&5
  2787. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2788. ac_status=$?
  2789. if test -s conftest.err; then
  2790. sed '10a\
  2791. ... rest of stderr output deleted ...
  2792. 10q' conftest.err >conftest.er1
  2793. cat conftest.er1 >&5
  2794. fi
  2795. rm -f conftest.er1 conftest.err
  2796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2797. test $ac_status = 0; }
  2798. done
  2799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2800. /* end confdefs.h. */
  2801. int
  2802. main ()
  2803. {
  2804. ;
  2805. return 0;
  2806. }
  2807. _ACEOF
  2808. ac_clean_files_save=$ac_clean_files
  2809. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2810. # Try to create an executable without -o first, disregard a.out.
  2811. # It will help us diagnose broken compilers, and finding out an intuition
  2812. # of exeext.
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2814. $as_echo_n "checking whether the C compiler works... " >&6; }
  2815. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2816. # The possible output files:
  2817. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2818. ac_rmfiles=
  2819. for ac_file in $ac_files
  2820. do
  2821. case $ac_file in
  2822. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2823. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2824. esac
  2825. done
  2826. rm -f $ac_rmfiles
  2827. if { { ac_try="$ac_link_default"
  2828. case "(($ac_try" in
  2829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2830. *) ac_try_echo=$ac_try;;
  2831. esac
  2832. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2833. $as_echo "$ac_try_echo"; } >&5
  2834. (eval "$ac_link_default") 2>&5
  2835. ac_status=$?
  2836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2837. test $ac_status = 0; }; then :
  2838. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2839. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2840. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2841. # so that the user can short-circuit this test for compilers unknown to
  2842. # Autoconf.
  2843. for ac_file in $ac_files ''
  2844. do
  2845. test -f "$ac_file" || continue
  2846. case $ac_file in
  2847. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2848. ;;
  2849. [ab].out )
  2850. # We found the default executable, but exeext='' is most
  2851. # certainly right.
  2852. break;;
  2853. *.* )
  2854. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2855. then :; else
  2856. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2857. fi
  2858. # We set ac_cv_exeext here because the later test for it is not
  2859. # safe: cross compilers may not add the suffix if given an `-o'
  2860. # argument, so we may need to know it at that point already.
  2861. # Even if this section looks crufty: it has the advantage of
  2862. # actually working.
  2863. break;;
  2864. * )
  2865. break;;
  2866. esac
  2867. done
  2868. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2869. else
  2870. ac_file=''
  2871. fi
  2872. if test -z "$ac_file"; then :
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2874. $as_echo "no" >&6; }
  2875. $as_echo "$as_me: failed program was:" >&5
  2876. sed 's/^/| /' conftest.$ac_ext >&5
  2877. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2878. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2879. as_fn_error 77 "C compiler cannot create executables
  2880. See \`config.log' for more details" "$LINENO" 5; }
  2881. else
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2883. $as_echo "yes" >&6; }
  2884. fi
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2886. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2888. $as_echo "$ac_file" >&6; }
  2889. ac_exeext=$ac_cv_exeext
  2890. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2891. ac_clean_files=$ac_clean_files_save
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2893. $as_echo_n "checking for suffix of executables... " >&6; }
  2894. if { { ac_try="$ac_link"
  2895. case "(($ac_try" in
  2896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2897. *) ac_try_echo=$ac_try;;
  2898. esac
  2899. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2900. $as_echo "$ac_try_echo"; } >&5
  2901. (eval "$ac_link") 2>&5
  2902. ac_status=$?
  2903. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2904. test $ac_status = 0; }; then :
  2905. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2906. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2907. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2908. # `rm'.
  2909. for ac_file in conftest.exe conftest conftest.*; do
  2910. test -f "$ac_file" || continue
  2911. case $ac_file in
  2912. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2913. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2914. break;;
  2915. * ) break;;
  2916. esac
  2917. done
  2918. else
  2919. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2920. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2921. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2922. See \`config.log' for more details" "$LINENO" 5; }
  2923. fi
  2924. rm -f conftest conftest$ac_cv_exeext
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2926. $as_echo "$ac_cv_exeext" >&6; }
  2927. rm -f conftest.$ac_ext
  2928. EXEEXT=$ac_cv_exeext
  2929. ac_exeext=$EXEEXT
  2930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2931. /* end confdefs.h. */
  2932. #include <stdio.h>
  2933. int
  2934. main ()
  2935. {
  2936. FILE *f = fopen ("conftest.out", "w");
  2937. return ferror (f) || fclose (f) != 0;
  2938. ;
  2939. return 0;
  2940. }
  2941. _ACEOF
  2942. ac_clean_files="$ac_clean_files conftest.out"
  2943. # Check that the compiler produces executables we can run. If not, either
  2944. # the compiler is broken, or we cross compile.
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2946. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2947. if test "$cross_compiling" != yes; then
  2948. { { ac_try="$ac_link"
  2949. case "(($ac_try" in
  2950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2951. *) ac_try_echo=$ac_try;;
  2952. esac
  2953. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2954. $as_echo "$ac_try_echo"; } >&5
  2955. (eval "$ac_link") 2>&5
  2956. ac_status=$?
  2957. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2958. test $ac_status = 0; }
  2959. if { ac_try='./conftest$ac_cv_exeext'
  2960. { { case "(($ac_try" in
  2961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2962. *) ac_try_echo=$ac_try;;
  2963. esac
  2964. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2965. $as_echo "$ac_try_echo"; } >&5
  2966. (eval "$ac_try") 2>&5
  2967. ac_status=$?
  2968. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2969. test $ac_status = 0; }; }; then
  2970. cross_compiling=no
  2971. else
  2972. if test "$cross_compiling" = maybe; then
  2973. cross_compiling=yes
  2974. else
  2975. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2976. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2977. as_fn_error $? "cannot run C compiled programs.
  2978. If you meant to cross compile, use \`--host'.
  2979. See \`config.log' for more details" "$LINENO" 5; }
  2980. fi
  2981. fi
  2982. fi
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2984. $as_echo "$cross_compiling" >&6; }
  2985. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2986. ac_clean_files=$ac_clean_files_save
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2988. $as_echo_n "checking for suffix of object files... " >&6; }
  2989. if ${ac_cv_objext+:} false; then :
  2990. $as_echo_n "(cached) " >&6
  2991. else
  2992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2993. /* end confdefs.h. */
  2994. int
  2995. main ()
  2996. {
  2997. ;
  2998. return 0;
  2999. }
  3000. _ACEOF
  3001. rm -f conftest.o conftest.obj
  3002. if { { ac_try="$ac_compile"
  3003. case "(($ac_try" in
  3004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3005. *) ac_try_echo=$ac_try;;
  3006. esac
  3007. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3008. $as_echo "$ac_try_echo"; } >&5
  3009. (eval "$ac_compile") 2>&5
  3010. ac_status=$?
  3011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3012. test $ac_status = 0; }; then :
  3013. for ac_file in conftest.o conftest.obj conftest.*; do
  3014. test -f "$ac_file" || continue;
  3015. case $ac_file in
  3016. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3017. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3018. break;;
  3019. esac
  3020. done
  3021. else
  3022. $as_echo "$as_me: failed program was:" >&5
  3023. sed 's/^/| /' conftest.$ac_ext >&5
  3024. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3025. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3026. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3027. See \`config.log' for more details" "$LINENO" 5; }
  3028. fi
  3029. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3030. fi
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3032. $as_echo "$ac_cv_objext" >&6; }
  3033. OBJEXT=$ac_cv_objext
  3034. ac_objext=$OBJEXT
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3036. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3037. if ${ac_cv_c_compiler_gnu+:} false; then :
  3038. $as_echo_n "(cached) " >&6
  3039. else
  3040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3041. /* end confdefs.h. */
  3042. int
  3043. main ()
  3044. {
  3045. #ifndef __GNUC__
  3046. choke me
  3047. #endif
  3048. ;
  3049. return 0;
  3050. }
  3051. _ACEOF
  3052. if ac_fn_c_try_compile "$LINENO"; then :
  3053. ac_compiler_gnu=yes
  3054. else
  3055. ac_compiler_gnu=no
  3056. fi
  3057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3058. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3059. fi
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3061. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3062. if test $ac_compiler_gnu = yes; then
  3063. GCC=yes
  3064. else
  3065. GCC=
  3066. fi
  3067. ac_test_CFLAGS=${CFLAGS+set}
  3068. ac_save_CFLAGS=$CFLAGS
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3070. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3071. if ${ac_cv_prog_cc_g+:} false; then :
  3072. $as_echo_n "(cached) " >&6
  3073. else
  3074. ac_save_c_werror_flag=$ac_c_werror_flag
  3075. ac_c_werror_flag=yes
  3076. ac_cv_prog_cc_g=no
  3077. CFLAGS="-g"
  3078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3079. /* end confdefs.h. */
  3080. int
  3081. main ()
  3082. {
  3083. ;
  3084. return 0;
  3085. }
  3086. _ACEOF
  3087. if ac_fn_c_try_compile "$LINENO"; then :
  3088. ac_cv_prog_cc_g=yes
  3089. else
  3090. CFLAGS=""
  3091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3092. /* end confdefs.h. */
  3093. int
  3094. main ()
  3095. {
  3096. ;
  3097. return 0;
  3098. }
  3099. _ACEOF
  3100. if ac_fn_c_try_compile "$LINENO"; then :
  3101. else
  3102. ac_c_werror_flag=$ac_save_c_werror_flag
  3103. CFLAGS="-g"
  3104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3105. /* end confdefs.h. */
  3106. int
  3107. main ()
  3108. {
  3109. ;
  3110. return 0;
  3111. }
  3112. _ACEOF
  3113. if ac_fn_c_try_compile "$LINENO"; then :
  3114. ac_cv_prog_cc_g=yes
  3115. fi
  3116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3117. fi
  3118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3119. fi
  3120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3121. ac_c_werror_flag=$ac_save_c_werror_flag
  3122. fi
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3124. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3125. if test "$ac_test_CFLAGS" = set; then
  3126. CFLAGS=$ac_save_CFLAGS
  3127. elif test $ac_cv_prog_cc_g = yes; then
  3128. if test "$GCC" = yes; then
  3129. CFLAGS="-g -O2"
  3130. else
  3131. CFLAGS="-g"
  3132. fi
  3133. else
  3134. if test "$GCC" = yes; then
  3135. CFLAGS="-O2"
  3136. else
  3137. CFLAGS=
  3138. fi
  3139. fi
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3141. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3142. if ${ac_cv_prog_cc_c89+:} false; then :
  3143. $as_echo_n "(cached) " >&6
  3144. else
  3145. ac_cv_prog_cc_c89=no
  3146. ac_save_CC=$CC
  3147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3148. /* end confdefs.h. */
  3149. #include <stdarg.h>
  3150. #include <stdio.h>
  3151. #include <sys/types.h>
  3152. #include <sys/stat.h>
  3153. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3154. struct buf { int x; };
  3155. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3156. static char *e (p, i)
  3157. char **p;
  3158. int i;
  3159. {
  3160. return p[i];
  3161. }
  3162. static char *f (char * (*g) (char **, int), char **p, ...)
  3163. {
  3164. char *s;
  3165. va_list v;
  3166. va_start (v,p);
  3167. s = g (p, va_arg (v,int));
  3168. va_end (v);
  3169. return s;
  3170. }
  3171. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3172. function prototypes and stuff, but not '\xHH' hex character constants.
  3173. These don't provoke an error unfortunately, instead are silently treated
  3174. as 'x'. The following induces an error, until -std is added to get
  3175. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3176. array size at least. It's necessary to write '\x00'==0 to get something
  3177. that's true only with -std. */
  3178. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3179. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3180. inside strings and character constants. */
  3181. #define FOO(x) 'x'
  3182. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3183. int test (int i, double x);
  3184. struct s1 {int (*f) (int a);};
  3185. struct s2 {int (*f) (double a);};
  3186. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3187. int argc;
  3188. char **argv;
  3189. int
  3190. main ()
  3191. {
  3192. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3193. ;
  3194. return 0;
  3195. }
  3196. _ACEOF
  3197. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3198. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3199. do
  3200. CC="$ac_save_CC $ac_arg"
  3201. if ac_fn_c_try_compile "$LINENO"; then :
  3202. ac_cv_prog_cc_c89=$ac_arg
  3203. fi
  3204. rm -f core conftest.err conftest.$ac_objext
  3205. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3206. done
  3207. rm -f conftest.$ac_ext
  3208. CC=$ac_save_CC
  3209. fi
  3210. # AC_CACHE_VAL
  3211. case "x$ac_cv_prog_cc_c89" in
  3212. x)
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3214. $as_echo "none needed" >&6; } ;;
  3215. xno)
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3217. $as_echo "unsupported" >&6; } ;;
  3218. *)
  3219. CC="$CC $ac_cv_prog_cc_c89"
  3220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3221. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3222. esac
  3223. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3224. fi
  3225. ac_ext=c
  3226. ac_cpp='$CPP $CPPFLAGS'
  3227. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3228. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3229. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3230. DEPDIR="${am__leading_dot}deps"
  3231. ac_config_commands="$ac_config_commands depfiles"
  3232. am_make=${MAKE-make}
  3233. cat > confinc << 'END'
  3234. am__doit:
  3235. @echo this is the am__doit target
  3236. .PHONY: am__doit
  3237. END
  3238. # If we don't find an include directive, just comment out the code.
  3239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3240. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3241. am__include="#"
  3242. am__quote=
  3243. _am_result=none
  3244. # First try GNU make style include.
  3245. echo "include confinc" > confmf
  3246. # Ignore all kinds of additional output from `make'.
  3247. case `$am_make -s -f confmf 2> /dev/null` in #(
  3248. *the\ am__doit\ target*)
  3249. am__include=include
  3250. am__quote=
  3251. _am_result=GNU
  3252. ;;
  3253. esac
  3254. # Now try BSD make style include.
  3255. if test "$am__include" = "#"; then
  3256. echo '.include "confinc"' > confmf
  3257. case `$am_make -s -f confmf 2> /dev/null` in #(
  3258. *the\ am__doit\ target*)
  3259. am__include=.include
  3260. am__quote="\""
  3261. _am_result=BSD
  3262. ;;
  3263. esac
  3264. fi
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3266. $as_echo "$_am_result" >&6; }
  3267. rm -f confinc confmf
  3268. # Check whether --enable-dependency-tracking was given.
  3269. if test "${enable_dependency_tracking+set}" = set; then :
  3270. enableval=$enable_dependency_tracking;
  3271. fi
  3272. if test "x$enable_dependency_tracking" != xno; then
  3273. am_depcomp="$ac_aux_dir/depcomp"
  3274. AMDEPBACKSLASH='\'
  3275. fi
  3276. if test "x$enable_dependency_tracking" != xno; then
  3277. AMDEP_TRUE=
  3278. AMDEP_FALSE='#'
  3279. else
  3280. AMDEP_TRUE='#'
  3281. AMDEP_FALSE=
  3282. fi
  3283. depcc="$CC" am_compiler_list=
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3285. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3286. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3287. $as_echo_n "(cached) " >&6
  3288. else
  3289. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3290. # We make a subdir and do the tests there. Otherwise we can end up
  3291. # making bogus files that we don't know about and never remove. For
  3292. # instance it was reported that on HP-UX the gcc test will end up
  3293. # making a dummy file named `D' -- because `-MD' means `put the output
  3294. # in D'.
  3295. mkdir conftest.dir
  3296. # Copy depcomp to subdir because otherwise we won't find it if we're
  3297. # using a relative directory.
  3298. cp "$am_depcomp" conftest.dir
  3299. cd conftest.dir
  3300. # We will build objects and dependencies in a subdirectory because
  3301. # it helps to detect inapplicable dependency modes. For instance
  3302. # both Tru64's cc and ICC support -MD to output dependencies as a
  3303. # side effect of compilation, but ICC will put the dependencies in
  3304. # the current directory while Tru64 will put them in the object
  3305. # directory.
  3306. mkdir sub
  3307. am_cv_CC_dependencies_compiler_type=none
  3308. if test "$am_compiler_list" = ""; then
  3309. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3310. fi
  3311. am__universal=false
  3312. case " $depcc " in #(
  3313. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3314. esac
  3315. for depmode in $am_compiler_list; do
  3316. # Setup a source with many dependencies, because some compilers
  3317. # like to wrap large dependency lists on column 80 (with \), and
  3318. # we should not choose a depcomp mode which is confused by this.
  3319. #
  3320. # We need to recreate these files for each test, as the compiler may
  3321. # overwrite some of them when testing with obscure command lines.
  3322. # This happens at least with the AIX C compiler.
  3323. : > sub/conftest.c
  3324. for i in 1 2 3 4 5 6; do
  3325. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3326. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3327. # Solaris 8's {/usr,}/bin/sh.
  3328. touch sub/conftst$i.h
  3329. done
  3330. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3331. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3332. # mode. It turns out that the SunPro C++ compiler does not properly
  3333. # handle `-M -o', and we need to detect this. Also, some Intel
  3334. # versions had trouble with output in subdirs
  3335. am__obj=sub/conftest.${OBJEXT-o}
  3336. am__minus_obj="-o $am__obj"
  3337. case $depmode in
  3338. gcc)
  3339. # This depmode causes a compiler race in universal mode.
  3340. test "$am__universal" = false || continue
  3341. ;;
  3342. nosideeffect)
  3343. # after this tag, mechanisms are not by side-effect, so they'll
  3344. # only be used when explicitly requested
  3345. if test "x$enable_dependency_tracking" = xyes; then
  3346. continue
  3347. else
  3348. break
  3349. fi
  3350. ;;
  3351. msvisualcpp | msvcmsys)
  3352. # This compiler won't grok `-c -o', but also, the minuso test has
  3353. # not run yet. These depmodes are late enough in the game, and
  3354. # so weak that their functioning should not be impacted.
  3355. am__obj=conftest.${OBJEXT-o}
  3356. am__minus_obj=
  3357. ;;
  3358. none) break ;;
  3359. esac
  3360. if depmode=$depmode \
  3361. source=sub/conftest.c object=$am__obj \
  3362. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3363. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3364. >/dev/null 2>conftest.err &&
  3365. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3366. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3367. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3368. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3369. # icc doesn't choke on unknown options, it will just issue warnings
  3370. # or remarks (even with -Werror). So we grep stderr for any message
  3371. # that says an option was ignored or not supported.
  3372. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3373. # icc: Command line warning: ignoring option '-M'; no argument required
  3374. # The diagnosis changed in icc 8.0:
  3375. # icc: Command line remark: option '-MP' not supported
  3376. if (grep 'ignoring option' conftest.err ||
  3377. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3378. am_cv_CC_dependencies_compiler_type=$depmode
  3379. break
  3380. fi
  3381. fi
  3382. done
  3383. cd ..
  3384. rm -rf conftest.dir
  3385. else
  3386. am_cv_CC_dependencies_compiler_type=none
  3387. fi
  3388. fi
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3390. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3391. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3392. if
  3393. test "x$enable_dependency_tracking" != xno \
  3394. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3395. am__fastdepCC_TRUE=
  3396. am__fastdepCC_FALSE='#'
  3397. else
  3398. am__fastdepCC_TRUE='#'
  3399. am__fastdepCC_FALSE=
  3400. fi
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3402. $as_echo_n "checking whether ln -s works... " >&6; }
  3403. LN_S=$as_ln_s
  3404. if test "$LN_S" = "ln -s"; then
  3405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3406. $as_echo "yes" >&6; }
  3407. else
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3409. $as_echo "no, using $LN_S" >&6; }
  3410. fi
  3411. if test "x$CC" != xcc; then
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  3413. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3414. else
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  3416. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3417. fi
  3418. set dummy $CC; ac_cc=`$as_echo "$2" |
  3419. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3420. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  3421. $as_echo_n "(cached) " >&6
  3422. else
  3423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3424. /* end confdefs.h. */
  3425. int
  3426. main ()
  3427. {
  3428. ;
  3429. return 0;
  3430. }
  3431. _ACEOF
  3432. # Make sure it works both with $CC and with simple cc.
  3433. # We do the test twice because some compilers refuse to overwrite an
  3434. # existing .o file with -o, though they will create one.
  3435. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3436. rm -f conftest2.*
  3437. if { { case "(($ac_try" in
  3438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3439. *) ac_try_echo=$ac_try;;
  3440. esac
  3441. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3442. $as_echo "$ac_try_echo"; } >&5
  3443. (eval "$ac_try") 2>&5
  3444. ac_status=$?
  3445. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3446. test $ac_status = 0; } &&
  3447. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3449. *) ac_try_echo=$ac_try;;
  3450. esac
  3451. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3452. $as_echo "$ac_try_echo"; } >&5
  3453. (eval "$ac_try") 2>&5
  3454. ac_status=$?
  3455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3456. test $ac_status = 0; };
  3457. then
  3458. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3459. if test "x$CC" != xcc; then
  3460. # Test first that cc exists at all.
  3461. if { ac_try='cc -c conftest.$ac_ext >&5'
  3462. { { case "(($ac_try" in
  3463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3464. *) ac_try_echo=$ac_try;;
  3465. esac
  3466. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3467. $as_echo "$ac_try_echo"; } >&5
  3468. (eval "$ac_try") 2>&5
  3469. ac_status=$?
  3470. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3471. test $ac_status = 0; }; }; then
  3472. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3473. rm -f conftest2.*
  3474. if { { case "(($ac_try" in
  3475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3476. *) ac_try_echo=$ac_try;;
  3477. esac
  3478. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3479. $as_echo "$ac_try_echo"; } >&5
  3480. (eval "$ac_try") 2>&5
  3481. ac_status=$?
  3482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3483. test $ac_status = 0; } &&
  3484. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3486. *) ac_try_echo=$ac_try;;
  3487. esac
  3488. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3489. $as_echo "$ac_try_echo"; } >&5
  3490. (eval "$ac_try") 2>&5
  3491. ac_status=$?
  3492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3493. test $ac_status = 0; };
  3494. then
  3495. # cc works too.
  3496. :
  3497. else
  3498. # cc exists but doesn't like -o.
  3499. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3500. fi
  3501. fi
  3502. fi
  3503. else
  3504. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3505. fi
  3506. rm -f core conftest*
  3507. fi
  3508. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3510. $as_echo "yes" >&6; }
  3511. else
  3512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3513. $as_echo "no" >&6; }
  3514. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  3515. fi
  3516. # FIXME: we rely on the cache variable name because
  3517. # there is no other way.
  3518. set dummy $CC
  3519. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3520. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  3521. if test "$am_t" != yes; then
  3522. # Losing compiler, so override with the script.
  3523. # FIXME: It is wrong to rewrite CC.
  3524. # But if we don't then we get into trouble of one sort or another.
  3525. # A longer-term fix would be to have automake use am__CC in this case,
  3526. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3527. CC="$am_aux_dir/compile $CC"
  3528. fi
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
  3530. $as_echo_n "checking for exp in -lm... " >&6; }
  3531. if ${ac_cv_lib_m_exp+:} false; then :
  3532. $as_echo_n "(cached) " >&6
  3533. else
  3534. ac_check_lib_save_LIBS=$LIBS
  3535. LIBS="-lm $LIBS"
  3536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3537. /* end confdefs.h. */
  3538. /* Override any GCC internal prototype to avoid an error.
  3539. Use char because int might match the return type of a GCC
  3540. builtin and then its argument prototype would still apply. */
  3541. #ifdef __cplusplus
  3542. extern "C"
  3543. #endif
  3544. char exp ();
  3545. int
  3546. main ()
  3547. {
  3548. return exp ();
  3549. ;
  3550. return 0;
  3551. }
  3552. _ACEOF
  3553. if ac_fn_c_try_link "$LINENO"; then :
  3554. ac_cv_lib_m_exp=yes
  3555. else
  3556. ac_cv_lib_m_exp=no
  3557. fi
  3558. rm -f core conftest.err conftest.$ac_objext \
  3559. conftest$ac_exeext conftest.$ac_ext
  3560. LIBS=$ac_check_lib_save_LIBS
  3561. fi
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
  3563. $as_echo "$ac_cv_lib_m_exp" >&6; }
  3564. if test "x$ac_cv_lib_m_exp" = xyes; then :
  3565. cat >>confdefs.h <<_ACEOF
  3566. #define HAVE_LIBM 1
  3567. _ACEOF
  3568. LIBS="-lm $LIBS"
  3569. else
  3570. as_fn_error $? "Libm missing" "$LINENO" 5
  3571. fi
  3572. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3573. if test -n "$ac_tool_prefix"; then
  3574. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3575. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3577. $as_echo_n "checking for $ac_word... " >&6; }
  3578. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3579. $as_echo_n "(cached) " >&6
  3580. else
  3581. case $PKG_CONFIG in
  3582. [\\/]* | ?:[\\/]*)
  3583. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3584. ;;
  3585. *)
  3586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3587. for as_dir in $PATH
  3588. do
  3589. IFS=$as_save_IFS
  3590. test -z "$as_dir" && as_dir=.
  3591. for ac_exec_ext in '' $ac_executable_extensions; do
  3592. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3593. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3595. break 2
  3596. fi
  3597. done
  3598. done
  3599. IFS=$as_save_IFS
  3600. ;;
  3601. esac
  3602. fi
  3603. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3604. if test -n "$PKG_CONFIG"; then
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3606. $as_echo "$PKG_CONFIG" >&6; }
  3607. else
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3609. $as_echo "no" >&6; }
  3610. fi
  3611. fi
  3612. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3613. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3614. # Extract the first word of "pkg-config", so it can be a program name with args.
  3615. set dummy pkg-config; ac_word=$2
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3617. $as_echo_n "checking for $ac_word... " >&6; }
  3618. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3619. $as_echo_n "(cached) " >&6
  3620. else
  3621. case $ac_pt_PKG_CONFIG in
  3622. [\\/]* | ?:[\\/]*)
  3623. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3624. ;;
  3625. *)
  3626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3627. for as_dir in $PATH
  3628. do
  3629. IFS=$as_save_IFS
  3630. test -z "$as_dir" && as_dir=.
  3631. for ac_exec_ext in '' $ac_executable_extensions; do
  3632. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3633. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3635. break 2
  3636. fi
  3637. done
  3638. done
  3639. IFS=$as_save_IFS
  3640. ;;
  3641. esac
  3642. fi
  3643. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3644. if test -n "$ac_pt_PKG_CONFIG"; then
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3646. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3647. else
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3649. $as_echo "no" >&6; }
  3650. fi
  3651. if test "x$ac_pt_PKG_CONFIG" = x; then
  3652. PKG_CONFIG=""
  3653. else
  3654. case $cross_compiling:$ac_tool_warned in
  3655. yes:)
  3656. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3657. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3658. ac_tool_warned=yes ;;
  3659. esac
  3660. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3661. fi
  3662. else
  3663. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3664. fi
  3665. fi
  3666. if test -n "$PKG_CONFIG"; then
  3667. _pkg_min_version=0.9.0
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3669. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3670. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3672. $as_echo "yes" >&6; }
  3673. else
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3675. $as_echo "no" >&6; }
  3676. PKG_CONFIG=""
  3677. fi
  3678. fi
  3679. pkg_failed=no
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
  3681. $as_echo_n "checking for CHECK... " >&6; }
  3682. if test -n "$CHECK_CFLAGS"; then
  3683. pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
  3684. elif test -n "$PKG_CONFIG"; then
  3685. if test -n "$PKG_CONFIG" && \
  3686. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.12\""; } >&5
  3687. ($PKG_CONFIG --exists --print-errors "check >= 0.9.12") 2>&5
  3688. ac_status=$?
  3689. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3690. test $ac_status = 0; }; then
  3691. pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.12" 2>/dev/null`
  3692. test "x$?" != "x0" && pkg_failed=yes
  3693. else
  3694. pkg_failed=yes
  3695. fi
  3696. else
  3697. pkg_failed=untried
  3698. fi
  3699. if test -n "$CHECK_LIBS"; then
  3700. pkg_cv_CHECK_LIBS="$CHECK_LIBS"
  3701. elif test -n "$PKG_CONFIG"; then
  3702. if test -n "$PKG_CONFIG" && \
  3703. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.12\""; } >&5
  3704. ($PKG_CONFIG --exists --print-errors "check >= 0.9.12") 2>&5
  3705. ac_status=$?
  3706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3707. test $ac_status = 0; }; then
  3708. pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.12" 2>/dev/null`
  3709. test "x$?" != "x0" && pkg_failed=yes
  3710. else
  3711. pkg_failed=yes
  3712. fi
  3713. else
  3714. pkg_failed=untried
  3715. fi
  3716. if test $pkg_failed = yes; then
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3718. $as_echo "no" >&6; }
  3719. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  3720. _pkg_short_errors_supported=yes
  3721. else
  3722. _pkg_short_errors_supported=no
  3723. fi
  3724. if test $_pkg_short_errors_supported = yes; then
  3725. CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.12" 2>&1`
  3726. else
  3727. CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.12" 2>&1`
  3728. fi
  3729. # Put the nasty error message in config.log where it belongs
  3730. echo "$CHECK_PKG_ERRORS" >&5
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check not found or check version lower than 0.9.12; cannot run unit tests!" >&5
  3732. $as_echo "$as_me: WARNING: Check not found or check version lower than 0.9.12; cannot run unit tests!" >&2;}
  3733. have_check="no"
  3734. elif test $pkg_failed = untried; then
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3736. $as_echo "no" >&6; }
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check not found or check version lower than 0.9.12; cannot run unit tests!" >&5
  3738. $as_echo "$as_me: WARNING: Check not found or check version lower than 0.9.12; cannot run unit tests!" >&2;}
  3739. have_check="no"
  3740. else
  3741. CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
  3742. CHECK_LIBS=$pkg_cv_CHECK_LIBS
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3744. $as_echo "yes" >&6; }
  3745. have_check="yes"
  3746. fi
  3747. if test x"$have_check" = "xyes"; then
  3748. HAVE_CHECK_TRUE=
  3749. HAVE_CHECK_FALSE='#'
  3750. else
  3751. HAVE_CHECK_TRUE='#'
  3752. HAVE_CHECK_FALSE=
  3753. fi
  3754. if test "${host_os}" = "mingw32"; then
  3755. TARGET_WIN_TRUE=
  3756. TARGET_WIN_FALSE='#'
  3757. else
  3758. TARGET_WIN_TRUE='#'
  3759. TARGET_WIN_FALSE=
  3760. fi
  3761. if test "${host_os}" = "linux-gnu" || test "${host_os}" = "linux"; then
  3762. TARGET_LINUX_TRUE=
  3763. TARGET_LINUX_FALSE='#'
  3764. else
  3765. TARGET_LINUX_TRUE='#'
  3766. TARGET_LINUX_FALSE=
  3767. fi
  3768. #adding platform-dependent information to compile flags
  3769. if test "${host_os}" = "mingw32"; then
  3770. $as_echo "#define WINDOWS 1" >>confdefs.h
  3771. fi #define WINDOWS is accessible from pre-processor
  3772. if test "${host_os}" = "linux-gnu" || test "${host_os}" = "linux"; then
  3773. $as_echo "#define LINUX 1" >>confdefs.h
  3774. fi
  3775. # Check whether --enable-debug was given.
  3776. if test "${enable_debug+set}" = set; then :
  3777. enableval=$enable_debug; case "${enableval}" in
  3778. yes) debug=true ;;
  3779. no) debug=false ;;
  3780. *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
  3781. esac
  3782. else
  3783. debug=false
  3784. fi
  3785. if test x"$debug" = x"true"; then
  3786. DEBUG_TRUE=
  3787. DEBUG_FALSE='#'
  3788. else
  3789. DEBUG_TRUE='#'
  3790. DEBUG_FALSE=
  3791. fi
  3792. enable_win32_dll=yes
  3793. case $host in
  3794. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  3795. if test -n "$ac_tool_prefix"; then
  3796. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3797. set dummy ${ac_tool_prefix}as; ac_word=$2
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3799. $as_echo_n "checking for $ac_word... " >&6; }
  3800. if ${ac_cv_prog_AS+:} false; then :
  3801. $as_echo_n "(cached) " >&6
  3802. else
  3803. if test -n "$AS"; then
  3804. ac_cv_prog_AS="$AS" # Let the user override the test.
  3805. else
  3806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3807. for as_dir in $PATH
  3808. do
  3809. IFS=$as_save_IFS
  3810. test -z "$as_dir" && as_dir=.
  3811. for ac_exec_ext in '' $ac_executable_extensions; do
  3812. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3813. ac_cv_prog_AS="${ac_tool_prefix}as"
  3814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3815. break 2
  3816. fi
  3817. done
  3818. done
  3819. IFS=$as_save_IFS
  3820. fi
  3821. fi
  3822. AS=$ac_cv_prog_AS
  3823. if test -n "$AS"; then
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3825. $as_echo "$AS" >&6; }
  3826. else
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3828. $as_echo "no" >&6; }
  3829. fi
  3830. fi
  3831. if test -z "$ac_cv_prog_AS"; then
  3832. ac_ct_AS=$AS
  3833. # Extract the first word of "as", so it can be a program name with args.
  3834. set dummy as; ac_word=$2
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3836. $as_echo_n "checking for $ac_word... " >&6; }
  3837. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  3838. $as_echo_n "(cached) " >&6
  3839. else
  3840. if test -n "$ac_ct_AS"; then
  3841. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3842. else
  3843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3844. for as_dir in $PATH
  3845. do
  3846. IFS=$as_save_IFS
  3847. test -z "$as_dir" && as_dir=.
  3848. for ac_exec_ext in '' $ac_executable_extensions; do
  3849. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3850. ac_cv_prog_ac_ct_AS="as"
  3851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3852. break 2
  3853. fi
  3854. done
  3855. done
  3856. IFS=$as_save_IFS
  3857. fi
  3858. fi
  3859. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3860. if test -n "$ac_ct_AS"; then
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3862. $as_echo "$ac_ct_AS" >&6; }
  3863. else
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3865. $as_echo "no" >&6; }
  3866. fi
  3867. if test "x$ac_ct_AS" = x; then
  3868. AS="false"
  3869. else
  3870. case $cross_compiling:$ac_tool_warned in
  3871. yes:)
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3873. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3874. ac_tool_warned=yes ;;
  3875. esac
  3876. AS=$ac_ct_AS
  3877. fi
  3878. else
  3879. AS="$ac_cv_prog_AS"
  3880. fi
  3881. if test -n "$ac_tool_prefix"; then
  3882. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3883. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3885. $as_echo_n "checking for $ac_word... " >&6; }
  3886. if ${ac_cv_prog_DLLTOOL+:} false; then :
  3887. $as_echo_n "(cached) " >&6
  3888. else
  3889. if test -n "$DLLTOOL"; then
  3890. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3891. else
  3892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3893. for as_dir in $PATH
  3894. do
  3895. IFS=$as_save_IFS
  3896. test -z "$as_dir" && as_dir=.
  3897. for ac_exec_ext in '' $ac_executable_extensions; do
  3898. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3899. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3901. break 2
  3902. fi
  3903. done
  3904. done
  3905. IFS=$as_save_IFS
  3906. fi
  3907. fi
  3908. DLLTOOL=$ac_cv_prog_DLLTOOL
  3909. if test -n "$DLLTOOL"; then
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  3911. $as_echo "$DLLTOOL" >&6; }
  3912. else
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3914. $as_echo "no" >&6; }
  3915. fi
  3916. fi
  3917. if test -z "$ac_cv_prog_DLLTOOL"; then
  3918. ac_ct_DLLTOOL=$DLLTOOL
  3919. # Extract the first word of "dlltool", so it can be a program name with args.
  3920. set dummy dlltool; ac_word=$2
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3922. $as_echo_n "checking for $ac_word... " >&6; }
  3923. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  3924. $as_echo_n "(cached) " >&6
  3925. else
  3926. if test -n "$ac_ct_DLLTOOL"; then
  3927. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3928. else
  3929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3930. for as_dir in $PATH
  3931. do
  3932. IFS=$as_save_IFS
  3933. test -z "$as_dir" && as_dir=.
  3934. for ac_exec_ext in '' $ac_executable_extensions; do
  3935. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3936. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3938. break 2
  3939. fi
  3940. done
  3941. done
  3942. IFS=$as_save_IFS
  3943. fi
  3944. fi
  3945. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3946. if test -n "$ac_ct_DLLTOOL"; then
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  3948. $as_echo "$ac_ct_DLLTOOL" >&6; }
  3949. else
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3951. $as_echo "no" >&6; }
  3952. fi
  3953. if test "x$ac_ct_DLLTOOL" = x; then
  3954. DLLTOOL="false"
  3955. else
  3956. case $cross_compiling:$ac_tool_warned in
  3957. yes:)
  3958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3959. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3960. ac_tool_warned=yes ;;
  3961. esac
  3962. DLLTOOL=$ac_ct_DLLTOOL
  3963. fi
  3964. else
  3965. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3966. fi
  3967. if test -n "$ac_tool_prefix"; then
  3968. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3969. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3971. $as_echo_n "checking for $ac_word... " >&6; }
  3972. if ${ac_cv_prog_OBJDUMP+:} false; then :
  3973. $as_echo_n "(cached) " >&6
  3974. else
  3975. if test -n "$OBJDUMP"; then
  3976. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3977. else
  3978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3979. for as_dir in $PATH
  3980. do
  3981. IFS=$as_save_IFS
  3982. test -z "$as_dir" && as_dir=.
  3983. for ac_exec_ext in '' $ac_executable_extensions; do
  3984. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3985. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3986. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3987. break 2
  3988. fi
  3989. done
  3990. done
  3991. IFS=$as_save_IFS
  3992. fi
  3993. fi
  3994. OBJDUMP=$ac_cv_prog_OBJDUMP
  3995. if test -n "$OBJDUMP"; then
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3997. $as_echo "$OBJDUMP" >&6; }
  3998. else
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4000. $as_echo "no" >&6; }
  4001. fi
  4002. fi
  4003. if test -z "$ac_cv_prog_OBJDUMP"; then
  4004. ac_ct_OBJDUMP=$OBJDUMP
  4005. # Extract the first word of "objdump", so it can be a program name with args.
  4006. set dummy objdump; ac_word=$2
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4008. $as_echo_n "checking for $ac_word... " >&6; }
  4009. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4010. $as_echo_n "(cached) " >&6
  4011. else
  4012. if test -n "$ac_ct_OBJDUMP"; then
  4013. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4014. else
  4015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4016. for as_dir in $PATH
  4017. do
  4018. IFS=$as_save_IFS
  4019. test -z "$as_dir" && as_dir=.
  4020. for ac_exec_ext in '' $ac_executable_extensions; do
  4021. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4022. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4023. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4024. break 2
  4025. fi
  4026. done
  4027. done
  4028. IFS=$as_save_IFS
  4029. fi
  4030. fi
  4031. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4032. if test -n "$ac_ct_OBJDUMP"; then
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4034. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4035. else
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4037. $as_echo "no" >&6; }
  4038. fi
  4039. if test "x$ac_ct_OBJDUMP" = x; then
  4040. OBJDUMP="false"
  4041. else
  4042. case $cross_compiling:$ac_tool_warned in
  4043. yes:)
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4045. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4046. ac_tool_warned=yes ;;
  4047. esac
  4048. OBJDUMP=$ac_ct_OBJDUMP
  4049. fi
  4050. else
  4051. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4052. fi
  4053. ;;
  4054. esac
  4055. test -z "$AS" && AS=as
  4056. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4057. test -z "$OBJDUMP" && OBJDUMP=objdump
  4058. case `pwd` in
  4059. *\ * | *\ *)
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4061. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4062. esac
  4063. macro_version='2.4'
  4064. macro_revision='1.3293'
  4065. ltmain="$ac_aux_dir/ltmain.sh"
  4066. # Backslashify metacharacters that are still active within
  4067. # double-quoted strings.
  4068. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4069. # Same as above, but do not quote variable references.
  4070. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4071. # Sed substitution to delay expansion of an escaped shell variable in a
  4072. # double_quote_subst'ed string.
  4073. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4074. # Sed substitution to delay expansion of an escaped single quote.
  4075. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4076. # Sed substitution to avoid accidental globbing in evaled expressions
  4077. no_glob_subst='s/\*/\\\*/g'
  4078. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4079. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4080. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4082. $as_echo_n "checking how to print strings... " >&6; }
  4083. # Test print first, because it will be a builtin if present.
  4084. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4085. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4086. ECHO='print -r --'
  4087. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4088. ECHO='printf %s\n'
  4089. else
  4090. # Use this function as a fallback that always works.
  4091. func_fallback_echo ()
  4092. {
  4093. eval 'cat <<_LTECHO_EOF
  4094. $1
  4095. _LTECHO_EOF'
  4096. }
  4097. ECHO='func_fallback_echo'
  4098. fi
  4099. # func_echo_all arg...
  4100. # Invoke $ECHO with all args, space-separated.
  4101. func_echo_all ()
  4102. {
  4103. $ECHO ""
  4104. }
  4105. case "$ECHO" in
  4106. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4107. $as_echo "printf" >&6; } ;;
  4108. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4109. $as_echo "print -r" >&6; } ;;
  4110. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4111. $as_echo "cat" >&6; } ;;
  4112. esac
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4114. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4115. if ${ac_cv_path_SED+:} false; then :
  4116. $as_echo_n "(cached) " >&6
  4117. else
  4118. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4119. for ac_i in 1 2 3 4 5 6 7; do
  4120. ac_script="$ac_script$as_nl$ac_script"
  4121. done
  4122. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4123. { ac_script=; unset ac_script;}
  4124. if test -z "$SED"; then
  4125. ac_path_SED_found=false
  4126. # Loop through the user's path and test for each of PROGNAME-LIST
  4127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4128. for as_dir in $PATH
  4129. do
  4130. IFS=$as_save_IFS
  4131. test -z "$as_dir" && as_dir=.
  4132. for ac_prog in sed gsed; do
  4133. for ac_exec_ext in '' $ac_executable_extensions; do
  4134. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4135. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4136. # Check for GNU ac_path_SED and select it if it is found.
  4137. # Check for GNU $ac_path_SED
  4138. case `"$ac_path_SED" --version 2>&1` in
  4139. *GNU*)
  4140. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4141. *)
  4142. ac_count=0
  4143. $as_echo_n 0123456789 >"conftest.in"
  4144. while :
  4145. do
  4146. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4147. mv "conftest.tmp" "conftest.in"
  4148. cp "conftest.in" "conftest.nl"
  4149. $as_echo '' >> "conftest.nl"
  4150. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4151. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4152. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4153. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4154. # Best one so far, save it but keep looking for a better one
  4155. ac_cv_path_SED="$ac_path_SED"
  4156. ac_path_SED_max=$ac_count
  4157. fi
  4158. # 10*(2^10) chars as input seems more than enough
  4159. test $ac_count -gt 10 && break
  4160. done
  4161. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4162. esac
  4163. $ac_path_SED_found && break 3
  4164. done
  4165. done
  4166. done
  4167. IFS=$as_save_IFS
  4168. if test -z "$ac_cv_path_SED"; then
  4169. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4170. fi
  4171. else
  4172. ac_cv_path_SED=$SED
  4173. fi
  4174. fi
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4176. $as_echo "$ac_cv_path_SED" >&6; }
  4177. SED="$ac_cv_path_SED"
  4178. rm -f conftest.sed
  4179. test -z "$SED" && SED=sed
  4180. Xsed="$SED -e 1s/^X//"
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4182. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4183. if ${ac_cv_path_GREP+:} false; then :
  4184. $as_echo_n "(cached) " >&6
  4185. else
  4186. if test -z "$GREP"; then
  4187. ac_path_GREP_found=false
  4188. # Loop through the user's path and test for each of PROGNAME-LIST
  4189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4190. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4191. do
  4192. IFS=$as_save_IFS
  4193. test -z "$as_dir" && as_dir=.
  4194. for ac_prog in grep ggrep; do
  4195. for ac_exec_ext in '' $ac_executable_extensions; do
  4196. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4197. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4198. # Check for GNU ac_path_GREP and select it if it is found.
  4199. # Check for GNU $ac_path_GREP
  4200. case `"$ac_path_GREP" --version 2>&1` in
  4201. *GNU*)
  4202. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4203. *)
  4204. ac_count=0
  4205. $as_echo_n 0123456789 >"conftest.in"
  4206. while :
  4207. do
  4208. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4209. mv "conftest.tmp" "conftest.in"
  4210. cp "conftest.in" "conftest.nl"
  4211. $as_echo 'GREP' >> "conftest.nl"
  4212. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4213. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4214. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4215. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4216. # Best one so far, save it but keep looking for a better one
  4217. ac_cv_path_GREP="$ac_path_GREP"
  4218. ac_path_GREP_max=$ac_count
  4219. fi
  4220. # 10*(2^10) chars as input seems more than enough
  4221. test $ac_count -gt 10 && break
  4222. done
  4223. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4224. esac
  4225. $ac_path_GREP_found && break 3
  4226. done
  4227. done
  4228. done
  4229. IFS=$as_save_IFS
  4230. if test -z "$ac_cv_path_GREP"; then
  4231. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4232. fi
  4233. else
  4234. ac_cv_path_GREP=$GREP
  4235. fi
  4236. fi
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4238. $as_echo "$ac_cv_path_GREP" >&6; }
  4239. GREP="$ac_cv_path_GREP"
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4241. $as_echo_n "checking for egrep... " >&6; }
  4242. if ${ac_cv_path_EGREP+:} false; then :
  4243. $as_echo_n "(cached) " >&6
  4244. else
  4245. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4246. then ac_cv_path_EGREP="$GREP -E"
  4247. else
  4248. if test -z "$EGREP"; then
  4249. ac_path_EGREP_found=false
  4250. # Loop through the user's path and test for each of PROGNAME-LIST
  4251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4252. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4253. do
  4254. IFS=$as_save_IFS
  4255. test -z "$as_dir" && as_dir=.
  4256. for ac_prog in egrep; do
  4257. for ac_exec_ext in '' $ac_executable_extensions; do
  4258. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4259. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4260. # Check for GNU ac_path_EGREP and select it if it is found.
  4261. # Check for GNU $ac_path_EGREP
  4262. case `"$ac_path_EGREP" --version 2>&1` in
  4263. *GNU*)
  4264. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4265. *)
  4266. ac_count=0
  4267. $as_echo_n 0123456789 >"conftest.in"
  4268. while :
  4269. do
  4270. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4271. mv "conftest.tmp" "conftest.in"
  4272. cp "conftest.in" "conftest.nl"
  4273. $as_echo 'EGREP' >> "conftest.nl"
  4274. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4275. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4276. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4277. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4278. # Best one so far, save it but keep looking for a better one
  4279. ac_cv_path_EGREP="$ac_path_EGREP"
  4280. ac_path_EGREP_max=$ac_count
  4281. fi
  4282. # 10*(2^10) chars as input seems more than enough
  4283. test $ac_count -gt 10 && break
  4284. done
  4285. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4286. esac
  4287. $ac_path_EGREP_found && break 3
  4288. done
  4289. done
  4290. done
  4291. IFS=$as_save_IFS
  4292. if test -z "$ac_cv_path_EGREP"; then
  4293. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4294. fi
  4295. else
  4296. ac_cv_path_EGREP=$EGREP
  4297. fi
  4298. fi
  4299. fi
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4301. $as_echo "$ac_cv_path_EGREP" >&6; }
  4302. EGREP="$ac_cv_path_EGREP"
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4304. $as_echo_n "checking for fgrep... " >&6; }
  4305. if ${ac_cv_path_FGREP+:} false; then :
  4306. $as_echo_n "(cached) " >&6
  4307. else
  4308. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4309. then ac_cv_path_FGREP="$GREP -F"
  4310. else
  4311. if test -z "$FGREP"; then
  4312. ac_path_FGREP_found=false
  4313. # Loop through the user's path and test for each of PROGNAME-LIST
  4314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4315. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4316. do
  4317. IFS=$as_save_IFS
  4318. test -z "$as_dir" && as_dir=.
  4319. for ac_prog in fgrep; do
  4320. for ac_exec_ext in '' $ac_executable_extensions; do
  4321. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4322. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4323. # Check for GNU ac_path_FGREP and select it if it is found.
  4324. # Check for GNU $ac_path_FGREP
  4325. case `"$ac_path_FGREP" --version 2>&1` in
  4326. *GNU*)
  4327. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4328. *)
  4329. ac_count=0
  4330. $as_echo_n 0123456789 >"conftest.in"
  4331. while :
  4332. do
  4333. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4334. mv "conftest.tmp" "conftest.in"
  4335. cp "conftest.in" "conftest.nl"
  4336. $as_echo 'FGREP' >> "conftest.nl"
  4337. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4338. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4339. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4340. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4341. # Best one so far, save it but keep looking for a better one
  4342. ac_cv_path_FGREP="$ac_path_FGREP"
  4343. ac_path_FGREP_max=$ac_count
  4344. fi
  4345. # 10*(2^10) chars as input seems more than enough
  4346. test $ac_count -gt 10 && break
  4347. done
  4348. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4349. esac
  4350. $ac_path_FGREP_found && break 3
  4351. done
  4352. done
  4353. done
  4354. IFS=$as_save_IFS
  4355. if test -z "$ac_cv_path_FGREP"; then
  4356. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4357. fi
  4358. else
  4359. ac_cv_path_FGREP=$FGREP
  4360. fi
  4361. fi
  4362. fi
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4364. $as_echo "$ac_cv_path_FGREP" >&6; }
  4365. FGREP="$ac_cv_path_FGREP"
  4366. test -z "$GREP" && GREP=grep
  4367. # Check whether --with-gnu-ld was given.
  4368. if test "${with_gnu_ld+set}" = set; then :
  4369. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4370. else
  4371. with_gnu_ld=no
  4372. fi
  4373. ac_prog=ld
  4374. if test "$GCC" = yes; then
  4375. # Check if gcc -print-prog-name=ld gives a path.
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4377. $as_echo_n "checking for ld used by $CC... " >&6; }
  4378. case $host in
  4379. *-*-mingw*)
  4380. # gcc leaves a trailing carriage return which upsets mingw
  4381. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4382. *)
  4383. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4384. esac
  4385. case $ac_prog in
  4386. # Accept absolute paths.
  4387. [\\/]* | ?:[\\/]*)
  4388. re_direlt='/[^/][^/]*/\.\./'
  4389. # Canonicalize the pathname of ld
  4390. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4391. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4392. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4393. done
  4394. test -z "$LD" && LD="$ac_prog"
  4395. ;;
  4396. "")
  4397. # If it fails, then pretend we aren't using GCC.
  4398. ac_prog=ld
  4399. ;;
  4400. *)
  4401. # If it is relative, then search for the first ld in PATH.
  4402. with_gnu_ld=unknown
  4403. ;;
  4404. esac
  4405. elif test "$with_gnu_ld" = yes; then
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4407. $as_echo_n "checking for GNU ld... " >&6; }
  4408. else
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4410. $as_echo_n "checking for non-GNU ld... " >&6; }
  4411. fi
  4412. if ${lt_cv_path_LD+:} false; then :
  4413. $as_echo_n "(cached) " >&6
  4414. else
  4415. if test -z "$LD"; then
  4416. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4417. for ac_dir in $PATH; do
  4418. IFS="$lt_save_ifs"
  4419. test -z "$ac_dir" && ac_dir=.
  4420. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4421. lt_cv_path_LD="$ac_dir/$ac_prog"
  4422. # Check to see if the program is GNU ld. I'd rather use --version,
  4423. # but apparently some variants of GNU ld only accept -v.
  4424. # Break only if it was the GNU/non-GNU ld that we prefer.
  4425. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4426. *GNU* | *'with BFD'*)
  4427. test "$with_gnu_ld" != no && break
  4428. ;;
  4429. *)
  4430. test "$with_gnu_ld" != yes && break
  4431. ;;
  4432. esac
  4433. fi
  4434. done
  4435. IFS="$lt_save_ifs"
  4436. else
  4437. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4438. fi
  4439. fi
  4440. LD="$lt_cv_path_LD"
  4441. if test -n "$LD"; then
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4443. $as_echo "$LD" >&6; }
  4444. else
  4445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4446. $as_echo "no" >&6; }
  4447. fi
  4448. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4450. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4451. if ${lt_cv_prog_gnu_ld+:} false; then :
  4452. $as_echo_n "(cached) " >&6
  4453. else
  4454. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4455. case `$LD -v 2>&1 </dev/null` in
  4456. *GNU* | *'with BFD'*)
  4457. lt_cv_prog_gnu_ld=yes
  4458. ;;
  4459. *)
  4460. lt_cv_prog_gnu_ld=no
  4461. ;;
  4462. esac
  4463. fi
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4465. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4466. with_gnu_ld=$lt_cv_prog_gnu_ld
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4468. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4469. if ${lt_cv_path_NM+:} false; then :
  4470. $as_echo_n "(cached) " >&6
  4471. else
  4472. if test -n "$NM"; then
  4473. # Let the user override the test.
  4474. lt_cv_path_NM="$NM"
  4475. else
  4476. lt_nm_to_check="${ac_tool_prefix}nm"
  4477. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4478. lt_nm_to_check="$lt_nm_to_check nm"
  4479. fi
  4480. for lt_tmp_nm in $lt_nm_to_check; do
  4481. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4482. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4483. IFS="$lt_save_ifs"
  4484. test -z "$ac_dir" && ac_dir=.
  4485. tmp_nm="$ac_dir/$lt_tmp_nm"
  4486. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4487. # Check to see if the nm accepts a BSD-compat flag.
  4488. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4489. # nm: unknown option "B" ignored
  4490. # Tru64's nm complains that /dev/null is an invalid object file
  4491. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4492. */dev/null* | *'Invalid file or object type'*)
  4493. lt_cv_path_NM="$tmp_nm -B"
  4494. break
  4495. ;;
  4496. *)
  4497. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4498. */dev/null*)
  4499. lt_cv_path_NM="$tmp_nm -p"
  4500. break
  4501. ;;
  4502. *)
  4503. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4504. continue # so that we can try to find one that supports BSD flags
  4505. ;;
  4506. esac
  4507. ;;
  4508. esac
  4509. fi
  4510. done
  4511. IFS="$lt_save_ifs"
  4512. done
  4513. : ${lt_cv_path_NM=no}
  4514. fi
  4515. fi
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4517. $as_echo "$lt_cv_path_NM" >&6; }
  4518. if test "$lt_cv_path_NM" != "no"; then
  4519. NM="$lt_cv_path_NM"
  4520. else
  4521. # Didn't find any BSD compatible name lister, look for dumpbin.
  4522. if test -n "$DUMPBIN"; then :
  4523. # Let the user override the test.
  4524. else
  4525. if test -n "$ac_tool_prefix"; then
  4526. for ac_prog in dumpbin "link -dump"
  4527. do
  4528. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4529. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4531. $as_echo_n "checking for $ac_word... " >&6; }
  4532. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4533. $as_echo_n "(cached) " >&6
  4534. else
  4535. if test -n "$DUMPBIN"; then
  4536. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4537. else
  4538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4539. for as_dir in $PATH
  4540. do
  4541. IFS=$as_save_IFS
  4542. test -z "$as_dir" && as_dir=.
  4543. for ac_exec_ext in '' $ac_executable_extensions; do
  4544. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4545. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4547. break 2
  4548. fi
  4549. done
  4550. done
  4551. IFS=$as_save_IFS
  4552. fi
  4553. fi
  4554. DUMPBIN=$ac_cv_prog_DUMPBIN
  4555. if test -n "$DUMPBIN"; then
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4557. $as_echo "$DUMPBIN" >&6; }
  4558. else
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4560. $as_echo "no" >&6; }
  4561. fi
  4562. test -n "$DUMPBIN" && break
  4563. done
  4564. fi
  4565. if test -z "$DUMPBIN"; then
  4566. ac_ct_DUMPBIN=$DUMPBIN
  4567. for ac_prog in dumpbin "link -dump"
  4568. do
  4569. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4570. set dummy $ac_prog; ac_word=$2
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4572. $as_echo_n "checking for $ac_word... " >&6; }
  4573. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4574. $as_echo_n "(cached) " >&6
  4575. else
  4576. if test -n "$ac_ct_DUMPBIN"; then
  4577. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4578. else
  4579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4580. for as_dir in $PATH
  4581. do
  4582. IFS=$as_save_IFS
  4583. test -z "$as_dir" && as_dir=.
  4584. for ac_exec_ext in '' $ac_executable_extensions; do
  4585. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4586. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4588. break 2
  4589. fi
  4590. done
  4591. done
  4592. IFS=$as_save_IFS
  4593. fi
  4594. fi
  4595. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4596. if test -n "$ac_ct_DUMPBIN"; then
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4598. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4599. else
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4601. $as_echo "no" >&6; }
  4602. fi
  4603. test -n "$ac_ct_DUMPBIN" && break
  4604. done
  4605. if test "x$ac_ct_DUMPBIN" = x; then
  4606. DUMPBIN=":"
  4607. else
  4608. case $cross_compiling:$ac_tool_warned in
  4609. yes:)
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4611. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4612. ac_tool_warned=yes ;;
  4613. esac
  4614. DUMPBIN=$ac_ct_DUMPBIN
  4615. fi
  4616. fi
  4617. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4618. *COFF*)
  4619. DUMPBIN="$DUMPBIN -symbols"
  4620. ;;
  4621. *)
  4622. DUMPBIN=:
  4623. ;;
  4624. esac
  4625. fi
  4626. if test "$DUMPBIN" != ":"; then
  4627. NM="$DUMPBIN"
  4628. fi
  4629. fi
  4630. test -z "$NM" && NM=nm
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4632. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4633. if ${lt_cv_nm_interface+:} false; then :
  4634. $as_echo_n "(cached) " >&6
  4635. else
  4636. lt_cv_nm_interface="BSD nm"
  4637. echo "int some_variable = 0;" > conftest.$ac_ext
  4638. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4639. (eval "$ac_compile" 2>conftest.err)
  4640. cat conftest.err >&5
  4641. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4642. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4643. cat conftest.err >&5
  4644. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4645. cat conftest.out >&5
  4646. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4647. lt_cv_nm_interface="MS dumpbin"
  4648. fi
  4649. rm -f conftest*
  4650. fi
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4652. $as_echo "$lt_cv_nm_interface" >&6; }
  4653. # find the maximum length of command line arguments
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4655. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4656. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4657. $as_echo_n "(cached) " >&6
  4658. else
  4659. i=0
  4660. teststring="ABCD"
  4661. case $build_os in
  4662. msdosdjgpp*)
  4663. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4664. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4665. # during glob expansion). Even if it were fixed, the result of this
  4666. # check would be larger than it should be.
  4667. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4668. ;;
  4669. gnu*)
  4670. # Under GNU Hurd, this test is not required because there is
  4671. # no limit to the length of command line arguments.
  4672. # Libtool will interpret -1 as no limit whatsoever
  4673. lt_cv_sys_max_cmd_len=-1;
  4674. ;;
  4675. cygwin* | mingw* | cegcc*)
  4676. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4677. # about 5 minutes as the teststring grows exponentially.
  4678. # Worse, since 9x/ME are not pre-emptively multitasking,
  4679. # you end up with a "frozen" computer, even though with patience
  4680. # the test eventually succeeds (with a max line length of 256k).
  4681. # Instead, let's just punt: use the minimum linelength reported by
  4682. # all of the supported platforms: 8192 (on NT/2K/XP).
  4683. lt_cv_sys_max_cmd_len=8192;
  4684. ;;
  4685. mint*)
  4686. # On MiNT this can take a long time and run out of memory.
  4687. lt_cv_sys_max_cmd_len=8192;
  4688. ;;
  4689. amigaos*)
  4690. # On AmigaOS with pdksh, this test takes hours, literally.
  4691. # So we just punt and use a minimum line length of 8192.
  4692. lt_cv_sys_max_cmd_len=8192;
  4693. ;;
  4694. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4695. # This has been around since 386BSD, at least. Likely further.
  4696. if test -x /sbin/sysctl; then
  4697. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4698. elif test -x /usr/sbin/sysctl; then
  4699. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4700. else
  4701. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4702. fi
  4703. # And add a safety zone
  4704. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4705. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4706. ;;
  4707. interix*)
  4708. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4709. lt_cv_sys_max_cmd_len=196608
  4710. ;;
  4711. osf*)
  4712. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4713. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4714. # nice to cause kernel panics so lets avoid the loop below.
  4715. # First set a reasonable default.
  4716. lt_cv_sys_max_cmd_len=16384
  4717. #
  4718. if test -x /sbin/sysconfig; then
  4719. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4720. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4721. esac
  4722. fi
  4723. ;;
  4724. sco3.2v5*)
  4725. lt_cv_sys_max_cmd_len=102400
  4726. ;;
  4727. sysv5* | sco5v6* | sysv4.2uw2*)
  4728. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4729. if test -n "$kargmax"; then
  4730. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4731. else
  4732. lt_cv_sys_max_cmd_len=32768
  4733. fi
  4734. ;;
  4735. *)
  4736. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4737. if test -n "$lt_cv_sys_max_cmd_len"; then
  4738. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4739. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4740. else
  4741. # Make teststring a little bigger before we do anything with it.
  4742. # a 1K string should be a reasonable start.
  4743. for i in 1 2 3 4 5 6 7 8 ; do
  4744. teststring=$teststring$teststring
  4745. done
  4746. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4747. # If test is not a shell built-in, we'll probably end up computing a
  4748. # maximum length that is only half of the actual maximum length, but
  4749. # we can't tell.
  4750. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4751. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4752. test $i != 17 # 1/2 MB should be enough
  4753. do
  4754. i=`expr $i + 1`
  4755. teststring=$teststring$teststring
  4756. done
  4757. # Only check the string length outside the loop.
  4758. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4759. teststring=
  4760. # Add a significant safety factor because C++ compilers can tack on
  4761. # massive amounts of additional arguments before passing them to the
  4762. # linker. It appears as though 1/2 is a usable value.
  4763. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4764. fi
  4765. ;;
  4766. esac
  4767. fi
  4768. if test -n $lt_cv_sys_max_cmd_len ; then
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4770. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4771. else
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4773. $as_echo "none" >&6; }
  4774. fi
  4775. max_cmd_len=$lt_cv_sys_max_cmd_len
  4776. : ${CP="cp -f"}
  4777. : ${MV="mv -f"}
  4778. : ${RM="rm -f"}
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4780. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4781. # Try some XSI features
  4782. xsi_shell=no
  4783. ( _lt_dummy="a/b/c"
  4784. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4785. = c,a/b,b/c, \
  4786. && eval 'test $(( 1 + 1 )) -eq 2 \
  4787. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4788. && xsi_shell=yes
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4790. $as_echo "$xsi_shell" >&6; }
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4792. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4793. lt_shell_append=no
  4794. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4795. >/dev/null 2>&1 \
  4796. && lt_shell_append=yes
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4798. $as_echo "$lt_shell_append" >&6; }
  4799. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4800. lt_unset=unset
  4801. else
  4802. lt_unset=false
  4803. fi
  4804. # test EBCDIC or ASCII
  4805. case `echo X|tr X '\101'` in
  4806. A) # ASCII based system
  4807. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4808. lt_SP2NL='tr \040 \012'
  4809. lt_NL2SP='tr \015\012 \040\040'
  4810. ;;
  4811. *) # EBCDIC based system
  4812. lt_SP2NL='tr \100 \n'
  4813. lt_NL2SP='tr \r\n \100\100'
  4814. ;;
  4815. esac
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4817. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4818. if ${lt_cv_to_host_file_cmd+:} false; then :
  4819. $as_echo_n "(cached) " >&6
  4820. else
  4821. case $host in
  4822. *-*-mingw* )
  4823. case $build in
  4824. *-*-mingw* ) # actually msys
  4825. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4826. ;;
  4827. *-*-cygwin* )
  4828. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4829. ;;
  4830. * ) # otherwise, assume *nix
  4831. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4832. ;;
  4833. esac
  4834. ;;
  4835. *-*-cygwin* )
  4836. case $build in
  4837. *-*-mingw* ) # actually msys
  4838. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4839. ;;
  4840. *-*-cygwin* )
  4841. lt_cv_to_host_file_cmd=func_convert_file_noop
  4842. ;;
  4843. * ) # otherwise, assume *nix
  4844. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4845. ;;
  4846. esac
  4847. ;;
  4848. * ) # unhandled hosts (and "normal" native builds)
  4849. lt_cv_to_host_file_cmd=func_convert_file_noop
  4850. ;;
  4851. esac
  4852. fi
  4853. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4855. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4857. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4858. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4859. $as_echo_n "(cached) " >&6
  4860. else
  4861. #assume ordinary cross tools, or native build.
  4862. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4863. case $host in
  4864. *-*-mingw* )
  4865. case $build in
  4866. *-*-mingw* ) # actually msys
  4867. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4868. ;;
  4869. esac
  4870. ;;
  4871. esac
  4872. fi
  4873. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4875. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4877. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4878. if ${lt_cv_ld_reload_flag+:} false; then :
  4879. $as_echo_n "(cached) " >&6
  4880. else
  4881. lt_cv_ld_reload_flag='-r'
  4882. fi
  4883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4884. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4885. reload_flag=$lt_cv_ld_reload_flag
  4886. case $reload_flag in
  4887. "" | " "*) ;;
  4888. *) reload_flag=" $reload_flag" ;;
  4889. esac
  4890. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4891. case $host_os in
  4892. cygwin* | mingw* | pw32* | cegcc*)
  4893. if test "$GCC" != yes; then
  4894. reload_cmds=false
  4895. fi
  4896. ;;
  4897. darwin*)
  4898. if test "$GCC" = yes; then
  4899. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4900. else
  4901. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4902. fi
  4903. ;;
  4904. esac
  4905. if test -n "$ac_tool_prefix"; then
  4906. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4907. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4909. $as_echo_n "checking for $ac_word... " >&6; }
  4910. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4911. $as_echo_n "(cached) " >&6
  4912. else
  4913. if test -n "$OBJDUMP"; then
  4914. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4915. else
  4916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4917. for as_dir in $PATH
  4918. do
  4919. IFS=$as_save_IFS
  4920. test -z "$as_dir" && as_dir=.
  4921. for ac_exec_ext in '' $ac_executable_extensions; do
  4922. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4923. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4925. break 2
  4926. fi
  4927. done
  4928. done
  4929. IFS=$as_save_IFS
  4930. fi
  4931. fi
  4932. OBJDUMP=$ac_cv_prog_OBJDUMP
  4933. if test -n "$OBJDUMP"; then
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4935. $as_echo "$OBJDUMP" >&6; }
  4936. else
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4938. $as_echo "no" >&6; }
  4939. fi
  4940. fi
  4941. if test -z "$ac_cv_prog_OBJDUMP"; then
  4942. ac_ct_OBJDUMP=$OBJDUMP
  4943. # Extract the first word of "objdump", so it can be a program name with args.
  4944. set dummy objdump; ac_word=$2
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4946. $as_echo_n "checking for $ac_word... " >&6; }
  4947. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4948. $as_echo_n "(cached) " >&6
  4949. else
  4950. if test -n "$ac_ct_OBJDUMP"; then
  4951. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4952. else
  4953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4954. for as_dir in $PATH
  4955. do
  4956. IFS=$as_save_IFS
  4957. test -z "$as_dir" && as_dir=.
  4958. for ac_exec_ext in '' $ac_executable_extensions; do
  4959. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4960. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4962. break 2
  4963. fi
  4964. done
  4965. done
  4966. IFS=$as_save_IFS
  4967. fi
  4968. fi
  4969. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4970. if test -n "$ac_ct_OBJDUMP"; then
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4972. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4973. else
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4975. $as_echo "no" >&6; }
  4976. fi
  4977. if test "x$ac_ct_OBJDUMP" = x; then
  4978. OBJDUMP="false"
  4979. else
  4980. case $cross_compiling:$ac_tool_warned in
  4981. yes:)
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4983. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4984. ac_tool_warned=yes ;;
  4985. esac
  4986. OBJDUMP=$ac_ct_OBJDUMP
  4987. fi
  4988. else
  4989. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4990. fi
  4991. test -z "$OBJDUMP" && OBJDUMP=objdump
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4993. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4994. if ${lt_cv_deplibs_check_method+:} false; then :
  4995. $as_echo_n "(cached) " >&6
  4996. else
  4997. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4998. lt_cv_file_magic_test_file=
  4999. lt_cv_deplibs_check_method='unknown'
  5000. # Need to set the preceding variable on all platforms that support
  5001. # interlibrary dependencies.
  5002. # 'none' -- dependencies not supported.
  5003. # `unknown' -- same as none, but documents that we really don't know.
  5004. # 'pass_all' -- all dependencies passed with no checks.
  5005. # 'test_compile' -- check by making test program.
  5006. # 'file_magic [[regex]]' -- check by looking for files in library path
  5007. # which responds to the $file_magic_cmd with a given extended regex.
  5008. # If you have `file' or equivalent on your system and you're not sure
  5009. # whether `pass_all' will *always* work, you probably want this one.
  5010. case $host_os in
  5011. aix[4-9]*)
  5012. lt_cv_deplibs_check_method=pass_all
  5013. ;;
  5014. beos*)
  5015. lt_cv_deplibs_check_method=pass_all
  5016. ;;
  5017. bsdi[45]*)
  5018. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5019. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5020. lt_cv_file_magic_test_file=/shlib/libc.so
  5021. ;;
  5022. cygwin*)
  5023. # func_win32_libid is a shell function defined in ltmain.sh
  5024. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5025. lt_cv_file_magic_cmd='func_win32_libid'
  5026. ;;
  5027. mingw* | pw32*)
  5028. # Base MSYS/MinGW do not provide the 'file' command needed by
  5029. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5030. # unless we find 'file', for example because we are cross-compiling.
  5031. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5032. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5033. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5034. lt_cv_file_magic_cmd='func_win32_libid'
  5035. else
  5036. # Keep this pattern in sync with the one in func_win32_libid.
  5037. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5038. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5039. fi
  5040. ;;
  5041. cegcc*)
  5042. # use the weaker test based on 'objdump'. See mingw*.
  5043. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5044. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5045. ;;
  5046. darwin* | rhapsody*)
  5047. lt_cv_deplibs_check_method=pass_all
  5048. ;;
  5049. freebsd* | dragonfly*)
  5050. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5051. case $host_cpu in
  5052. i*86 )
  5053. # Not sure whether the presence of OpenBSD here was a mistake.
  5054. # Let's accept both of them until this is cleared up.
  5055. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5056. lt_cv_file_magic_cmd=/usr/bin/file
  5057. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5058. ;;
  5059. esac
  5060. else
  5061. lt_cv_deplibs_check_method=pass_all
  5062. fi
  5063. ;;
  5064. gnu*)
  5065. lt_cv_deplibs_check_method=pass_all
  5066. ;;
  5067. haiku*)
  5068. lt_cv_deplibs_check_method=pass_all
  5069. ;;
  5070. hpux10.20* | hpux11*)
  5071. lt_cv_file_magic_cmd=/usr/bin/file
  5072. case $host_cpu in
  5073. ia64*)
  5074. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5075. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5076. ;;
  5077. hppa*64*)
  5078. 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]'
  5079. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5080. ;;
  5081. *)
  5082. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5083. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5084. ;;
  5085. esac
  5086. ;;
  5087. interix[3-9]*)
  5088. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5089. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5090. ;;
  5091. irix5* | irix6* | nonstopux*)
  5092. case $LD in
  5093. *-32|*"-32 ") libmagic=32-bit;;
  5094. *-n32|*"-n32 ") libmagic=N32;;
  5095. *-64|*"-64 ") libmagic=64-bit;;
  5096. *) libmagic=never-match;;
  5097. esac
  5098. lt_cv_deplibs_check_method=pass_all
  5099. ;;
  5100. # This must be Linux ELF.
  5101. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5102. lt_cv_deplibs_check_method=pass_all
  5103. ;;
  5104. netbsd* | netbsdelf*-gnu)
  5105. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5106. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5107. else
  5108. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5109. fi
  5110. ;;
  5111. newos6*)
  5112. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5113. lt_cv_file_magic_cmd=/usr/bin/file
  5114. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5115. ;;
  5116. *nto* | *qnx*)
  5117. lt_cv_deplibs_check_method=pass_all
  5118. ;;
  5119. openbsd*)
  5120. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5121. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5122. else
  5123. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5124. fi
  5125. ;;
  5126. osf3* | osf4* | osf5*)
  5127. lt_cv_deplibs_check_method=pass_all
  5128. ;;
  5129. rdos*)
  5130. lt_cv_deplibs_check_method=pass_all
  5131. ;;
  5132. solaris*)
  5133. lt_cv_deplibs_check_method=pass_all
  5134. ;;
  5135. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5136. lt_cv_deplibs_check_method=pass_all
  5137. ;;
  5138. sysv4 | sysv4.3*)
  5139. case $host_vendor in
  5140. motorola)
  5141. 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]'
  5142. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5143. ;;
  5144. ncr)
  5145. lt_cv_deplibs_check_method=pass_all
  5146. ;;
  5147. sequent)
  5148. lt_cv_file_magic_cmd='/bin/file'
  5149. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5150. ;;
  5151. sni)
  5152. lt_cv_file_magic_cmd='/bin/file'
  5153. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5154. lt_cv_file_magic_test_file=/lib/libc.so
  5155. ;;
  5156. siemens)
  5157. lt_cv_deplibs_check_method=pass_all
  5158. ;;
  5159. pc)
  5160. lt_cv_deplibs_check_method=pass_all
  5161. ;;
  5162. esac
  5163. ;;
  5164. tpf*)
  5165. lt_cv_deplibs_check_method=pass_all
  5166. ;;
  5167. esac
  5168. fi
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5170. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5171. file_magic_glob=
  5172. want_nocaseglob=no
  5173. if test "$build" = "$host"; then
  5174. case $host_os in
  5175. mingw* | pw32*)
  5176. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5177. want_nocaseglob=yes
  5178. else
  5179. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5180. fi
  5181. ;;
  5182. esac
  5183. fi
  5184. file_magic_cmd=$lt_cv_file_magic_cmd
  5185. deplibs_check_method=$lt_cv_deplibs_check_method
  5186. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5187. if test -n "$ac_tool_prefix"; then
  5188. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5189. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5191. $as_echo_n "checking for $ac_word... " >&6; }
  5192. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5193. $as_echo_n "(cached) " >&6
  5194. else
  5195. if test -n "$DLLTOOL"; then
  5196. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5197. else
  5198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5199. for as_dir in $PATH
  5200. do
  5201. IFS=$as_save_IFS
  5202. test -z "$as_dir" && as_dir=.
  5203. for ac_exec_ext in '' $ac_executable_extensions; do
  5204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5205. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5207. break 2
  5208. fi
  5209. done
  5210. done
  5211. IFS=$as_save_IFS
  5212. fi
  5213. fi
  5214. DLLTOOL=$ac_cv_prog_DLLTOOL
  5215. if test -n "$DLLTOOL"; then
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5217. $as_echo "$DLLTOOL" >&6; }
  5218. else
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5220. $as_echo "no" >&6; }
  5221. fi
  5222. fi
  5223. if test -z "$ac_cv_prog_DLLTOOL"; then
  5224. ac_ct_DLLTOOL=$DLLTOOL
  5225. # Extract the first word of "dlltool", so it can be a program name with args.
  5226. set dummy dlltool; ac_word=$2
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5228. $as_echo_n "checking for $ac_word... " >&6; }
  5229. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5230. $as_echo_n "(cached) " >&6
  5231. else
  5232. if test -n "$ac_ct_DLLTOOL"; then
  5233. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5234. else
  5235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5236. for as_dir in $PATH
  5237. do
  5238. IFS=$as_save_IFS
  5239. test -z "$as_dir" && as_dir=.
  5240. for ac_exec_ext in '' $ac_executable_extensions; do
  5241. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5242. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5243. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5244. break 2
  5245. fi
  5246. done
  5247. done
  5248. IFS=$as_save_IFS
  5249. fi
  5250. fi
  5251. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5252. if test -n "$ac_ct_DLLTOOL"; then
  5253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5254. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5255. else
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5257. $as_echo "no" >&6; }
  5258. fi
  5259. if test "x$ac_ct_DLLTOOL" = x; then
  5260. DLLTOOL="false"
  5261. else
  5262. case $cross_compiling:$ac_tool_warned in
  5263. yes:)
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5265. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5266. ac_tool_warned=yes ;;
  5267. esac
  5268. DLLTOOL=$ac_ct_DLLTOOL
  5269. fi
  5270. else
  5271. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5272. fi
  5273. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5275. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5276. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5277. $as_echo_n "(cached) " >&6
  5278. else
  5279. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5280. case $host_os in
  5281. cygwin* | mingw* | pw32* | cegcc*)
  5282. # two different shell functions defined in ltmain.sh
  5283. # decide which to use based on capabilities of $DLLTOOL
  5284. case `$DLLTOOL --help 2>&1` in
  5285. *--identify-strict*)
  5286. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5287. ;;
  5288. *)
  5289. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5290. ;;
  5291. esac
  5292. ;;
  5293. *)
  5294. # fallback: assume linklib IS sharedlib
  5295. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5296. ;;
  5297. esac
  5298. fi
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5300. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5301. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5302. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5303. if test -n "$ac_tool_prefix"; then
  5304. for ac_prog in ar
  5305. do
  5306. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5307. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5309. $as_echo_n "checking for $ac_word... " >&6; }
  5310. if ${ac_cv_prog_AR+:} false; then :
  5311. $as_echo_n "(cached) " >&6
  5312. else
  5313. if test -n "$AR"; then
  5314. ac_cv_prog_AR="$AR" # Let the user override the test.
  5315. else
  5316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5317. for as_dir in $PATH
  5318. do
  5319. IFS=$as_save_IFS
  5320. test -z "$as_dir" && as_dir=.
  5321. for ac_exec_ext in '' $ac_executable_extensions; do
  5322. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5323. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5325. break 2
  5326. fi
  5327. done
  5328. done
  5329. IFS=$as_save_IFS
  5330. fi
  5331. fi
  5332. AR=$ac_cv_prog_AR
  5333. if test -n "$AR"; then
  5334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5335. $as_echo "$AR" >&6; }
  5336. else
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5338. $as_echo "no" >&6; }
  5339. fi
  5340. test -n "$AR" && break
  5341. done
  5342. fi
  5343. if test -z "$AR"; then
  5344. ac_ct_AR=$AR
  5345. for ac_prog in ar
  5346. do
  5347. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5348. set dummy $ac_prog; ac_word=$2
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5350. $as_echo_n "checking for $ac_word... " >&6; }
  5351. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5352. $as_echo_n "(cached) " >&6
  5353. else
  5354. if test -n "$ac_ct_AR"; then
  5355. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5356. else
  5357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5358. for as_dir in $PATH
  5359. do
  5360. IFS=$as_save_IFS
  5361. test -z "$as_dir" && as_dir=.
  5362. for ac_exec_ext in '' $ac_executable_extensions; do
  5363. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5364. ac_cv_prog_ac_ct_AR="$ac_prog"
  5365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5366. break 2
  5367. fi
  5368. done
  5369. done
  5370. IFS=$as_save_IFS
  5371. fi
  5372. fi
  5373. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5374. if test -n "$ac_ct_AR"; then
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5376. $as_echo "$ac_ct_AR" >&6; }
  5377. else
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5379. $as_echo "no" >&6; }
  5380. fi
  5381. test -n "$ac_ct_AR" && break
  5382. done
  5383. if test "x$ac_ct_AR" = x; then
  5384. AR="false"
  5385. else
  5386. case $cross_compiling:$ac_tool_warned in
  5387. yes:)
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5389. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5390. ac_tool_warned=yes ;;
  5391. esac
  5392. AR=$ac_ct_AR
  5393. fi
  5394. fi
  5395. : ${AR=ar}
  5396. : ${AR_FLAGS=cru}
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5398. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5399. if ${lt_cv_ar_at_file+:} false; then :
  5400. $as_echo_n "(cached) " >&6
  5401. else
  5402. lt_cv_ar_at_file=no
  5403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5404. /* end confdefs.h. */
  5405. int
  5406. main ()
  5407. {
  5408. ;
  5409. return 0;
  5410. }
  5411. _ACEOF
  5412. if ac_fn_c_try_compile "$LINENO"; then :
  5413. echo conftest.$ac_objext > conftest.lst
  5414. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5415. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5416. (eval $lt_ar_try) 2>&5
  5417. ac_status=$?
  5418. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5419. test $ac_status = 0; }
  5420. if test "$ac_status" -eq 0; then
  5421. # Ensure the archiver fails upon bogus file names.
  5422. rm -f conftest.$ac_objext libconftest.a
  5423. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5424. (eval $lt_ar_try) 2>&5
  5425. ac_status=$?
  5426. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5427. test $ac_status = 0; }
  5428. if test "$ac_status" -ne 0; then
  5429. lt_cv_ar_at_file=@
  5430. fi
  5431. fi
  5432. rm -f conftest.* libconftest.a
  5433. fi
  5434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5435. fi
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5437. $as_echo "$lt_cv_ar_at_file" >&6; }
  5438. if test "x$lt_cv_ar_at_file" = xno; then
  5439. archiver_list_spec=
  5440. else
  5441. archiver_list_spec=$lt_cv_ar_at_file
  5442. fi
  5443. if test -n "$ac_tool_prefix"; then
  5444. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5445. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5447. $as_echo_n "checking for $ac_word... " >&6; }
  5448. if ${ac_cv_prog_STRIP+:} false; then :
  5449. $as_echo_n "(cached) " >&6
  5450. else
  5451. if test -n "$STRIP"; then
  5452. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5453. else
  5454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5455. for as_dir in $PATH
  5456. do
  5457. IFS=$as_save_IFS
  5458. test -z "$as_dir" && as_dir=.
  5459. for ac_exec_ext in '' $ac_executable_extensions; do
  5460. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5461. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5463. break 2
  5464. fi
  5465. done
  5466. done
  5467. IFS=$as_save_IFS
  5468. fi
  5469. fi
  5470. STRIP=$ac_cv_prog_STRIP
  5471. if test -n "$STRIP"; then
  5472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5473. $as_echo "$STRIP" >&6; }
  5474. else
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5476. $as_echo "no" >&6; }
  5477. fi
  5478. fi
  5479. if test -z "$ac_cv_prog_STRIP"; then
  5480. ac_ct_STRIP=$STRIP
  5481. # Extract the first word of "strip", so it can be a program name with args.
  5482. set dummy strip; ac_word=$2
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5484. $as_echo_n "checking for $ac_word... " >&6; }
  5485. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5486. $as_echo_n "(cached) " >&6
  5487. else
  5488. if test -n "$ac_ct_STRIP"; then
  5489. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5490. else
  5491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5492. for as_dir in $PATH
  5493. do
  5494. IFS=$as_save_IFS
  5495. test -z "$as_dir" && as_dir=.
  5496. for ac_exec_ext in '' $ac_executable_extensions; do
  5497. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5498. ac_cv_prog_ac_ct_STRIP="strip"
  5499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5500. break 2
  5501. fi
  5502. done
  5503. done
  5504. IFS=$as_save_IFS
  5505. fi
  5506. fi
  5507. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5508. if test -n "$ac_ct_STRIP"; then
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5510. $as_echo "$ac_ct_STRIP" >&6; }
  5511. else
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5513. $as_echo "no" >&6; }
  5514. fi
  5515. if test "x$ac_ct_STRIP" = x; then
  5516. STRIP=":"
  5517. else
  5518. case $cross_compiling:$ac_tool_warned in
  5519. yes:)
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5521. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5522. ac_tool_warned=yes ;;
  5523. esac
  5524. STRIP=$ac_ct_STRIP
  5525. fi
  5526. else
  5527. STRIP="$ac_cv_prog_STRIP"
  5528. fi
  5529. test -z "$STRIP" && STRIP=:
  5530. if test -n "$ac_tool_prefix"; then
  5531. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5532. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5534. $as_echo_n "checking for $ac_word... " >&6; }
  5535. if ${ac_cv_prog_RANLIB+:} false; then :
  5536. $as_echo_n "(cached) " >&6
  5537. else
  5538. if test -n "$RANLIB"; then
  5539. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5540. else
  5541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5542. for as_dir in $PATH
  5543. do
  5544. IFS=$as_save_IFS
  5545. test -z "$as_dir" && as_dir=.
  5546. for ac_exec_ext in '' $ac_executable_extensions; do
  5547. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5548. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5550. break 2
  5551. fi
  5552. done
  5553. done
  5554. IFS=$as_save_IFS
  5555. fi
  5556. fi
  5557. RANLIB=$ac_cv_prog_RANLIB
  5558. if test -n "$RANLIB"; then
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5560. $as_echo "$RANLIB" >&6; }
  5561. else
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5563. $as_echo "no" >&6; }
  5564. fi
  5565. fi
  5566. if test -z "$ac_cv_prog_RANLIB"; then
  5567. ac_ct_RANLIB=$RANLIB
  5568. # Extract the first word of "ranlib", so it can be a program name with args.
  5569. set dummy ranlib; ac_word=$2
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5571. $as_echo_n "checking for $ac_word... " >&6; }
  5572. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5573. $as_echo_n "(cached) " >&6
  5574. else
  5575. if test -n "$ac_ct_RANLIB"; then
  5576. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5577. else
  5578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5579. for as_dir in $PATH
  5580. do
  5581. IFS=$as_save_IFS
  5582. test -z "$as_dir" && as_dir=.
  5583. for ac_exec_ext in '' $ac_executable_extensions; do
  5584. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5585. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5586. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5587. break 2
  5588. fi
  5589. done
  5590. done
  5591. IFS=$as_save_IFS
  5592. fi
  5593. fi
  5594. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5595. if test -n "$ac_ct_RANLIB"; then
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5597. $as_echo "$ac_ct_RANLIB" >&6; }
  5598. else
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5600. $as_echo "no" >&6; }
  5601. fi
  5602. if test "x$ac_ct_RANLIB" = x; then
  5603. RANLIB=":"
  5604. else
  5605. case $cross_compiling:$ac_tool_warned in
  5606. yes:)
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5608. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5609. ac_tool_warned=yes ;;
  5610. esac
  5611. RANLIB=$ac_ct_RANLIB
  5612. fi
  5613. else
  5614. RANLIB="$ac_cv_prog_RANLIB"
  5615. fi
  5616. test -z "$RANLIB" && RANLIB=:
  5617. # Determine commands to create old-style static archives.
  5618. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5619. old_postinstall_cmds='chmod 644 $oldlib'
  5620. old_postuninstall_cmds=
  5621. if test -n "$RANLIB"; then
  5622. case $host_os in
  5623. openbsd*)
  5624. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5625. ;;
  5626. *)
  5627. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5628. ;;
  5629. esac
  5630. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5631. fi
  5632. case $host_os in
  5633. darwin*)
  5634. lock_old_archive_extraction=yes ;;
  5635. *)
  5636. lock_old_archive_extraction=no ;;
  5637. esac
  5638. # If no C compiler was specified, use CC.
  5639. LTCC=${LTCC-"$CC"}
  5640. # If no C compiler flags were specified, use CFLAGS.
  5641. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5642. # Allow CC to be a program name with arguments.
  5643. compiler=$CC
  5644. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5646. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5647. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5648. $as_echo_n "(cached) " >&6
  5649. else
  5650. # These are sane defaults that work on at least a few old systems.
  5651. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5652. # Character class describing NM global symbol codes.
  5653. symcode='[BCDEGRST]'
  5654. # Regexp to match symbols that can be accessed directly from C.
  5655. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5656. # Define system-specific variables.
  5657. case $host_os in
  5658. aix*)
  5659. symcode='[BCDT]'
  5660. ;;
  5661. cygwin* | mingw* | pw32* | cegcc*)
  5662. symcode='[ABCDGISTW]'
  5663. ;;
  5664. hpux*)
  5665. if test "$host_cpu" = ia64; then
  5666. symcode='[ABCDEGRST]'
  5667. fi
  5668. ;;
  5669. irix* | nonstopux*)
  5670. symcode='[BCDEGRST]'
  5671. ;;
  5672. osf*)
  5673. symcode='[BCDEGQRST]'
  5674. ;;
  5675. solaris*)
  5676. symcode='[BDRT]'
  5677. ;;
  5678. sco3.2v5*)
  5679. symcode='[DT]'
  5680. ;;
  5681. sysv4.2uw2*)
  5682. symcode='[DT]'
  5683. ;;
  5684. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5685. symcode='[ABDT]'
  5686. ;;
  5687. sysv4)
  5688. symcode='[DFNSTU]'
  5689. ;;
  5690. esac
  5691. # If we're using GNU nm, then use its standard symbol codes.
  5692. case `$NM -V 2>&1` in
  5693. *GNU* | *'with BFD'*)
  5694. symcode='[ABCDGIRSTW]' ;;
  5695. esac
  5696. # Transform an extracted symbol line into a proper C declaration.
  5697. # Some systems (esp. on ia64) link data and code symbols differently,
  5698. # so use this general approach.
  5699. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5700. # Transform an extracted symbol line into symbol name and symbol address
  5701. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5702. 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'"
  5703. # Handle CRLF in mingw tool chain
  5704. opt_cr=
  5705. case $build_os in
  5706. mingw*)
  5707. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5708. ;;
  5709. esac
  5710. # Try without a prefix underscore, then with it.
  5711. for ac_symprfx in "" "_"; do
  5712. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5713. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5714. # Write the raw and C identifiers.
  5715. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5716. # Fake it for dumpbin and say T for any non-static function
  5717. # and D for any global variable.
  5718. # Also find C++ and __fastcall symbols from MSVC++,
  5719. # which start with @ or ?.
  5720. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5721. " {last_section=section; section=\$ 3};"\
  5722. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5723. " \$ 0!~/External *\|/{next};"\
  5724. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5725. " {if(hide[section]) next};"\
  5726. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5727. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5728. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5729. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5730. " ' prfx=^$ac_symprfx"
  5731. else
  5732. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5733. fi
  5734. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5735. # Check to see that the pipe works correctly.
  5736. pipe_works=no
  5737. rm -f conftest*
  5738. cat > conftest.$ac_ext <<_LT_EOF
  5739. #ifdef __cplusplus
  5740. extern "C" {
  5741. #endif
  5742. char nm_test_var;
  5743. void nm_test_func(void);
  5744. void nm_test_func(void){}
  5745. #ifdef __cplusplus
  5746. }
  5747. #endif
  5748. int main(){nm_test_var='a';nm_test_func();return(0);}
  5749. _LT_EOF
  5750. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5751. (eval $ac_compile) 2>&5
  5752. ac_status=$?
  5753. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5754. test $ac_status = 0; }; then
  5755. # Now try to grab the symbols.
  5756. nlist=conftest.nm
  5757. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5758. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5759. ac_status=$?
  5760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5761. test $ac_status = 0; } && test -s "$nlist"; then
  5762. # Try sorting and uniquifying the output.
  5763. if sort "$nlist" | uniq > "$nlist"T; then
  5764. mv -f "$nlist"T "$nlist"
  5765. else
  5766. rm -f "$nlist"T
  5767. fi
  5768. # Make sure that we snagged all the symbols we need.
  5769. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5770. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5771. cat <<_LT_EOF > conftest.$ac_ext
  5772. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5773. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5774. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5775. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5776. # define LT_DLSYM_CONST
  5777. #elif defined(__osf__)
  5778. /* This system does not cope well with relocations in const data. */
  5779. # define LT_DLSYM_CONST
  5780. #else
  5781. # define LT_DLSYM_CONST const
  5782. #endif
  5783. #ifdef __cplusplus
  5784. extern "C" {
  5785. #endif
  5786. _LT_EOF
  5787. # Now generate the symbol file.
  5788. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5789. cat <<_LT_EOF >> conftest.$ac_ext
  5790. /* The mapping between symbol names and symbols. */
  5791. LT_DLSYM_CONST struct {
  5792. const char *name;
  5793. void *address;
  5794. }
  5795. lt__PROGRAM__LTX_preloaded_symbols[] =
  5796. {
  5797. { "@PROGRAM@", (void *) 0 },
  5798. _LT_EOF
  5799. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5800. cat <<\_LT_EOF >> conftest.$ac_ext
  5801. {0, (void *) 0}
  5802. };
  5803. /* This works around a problem in FreeBSD linker */
  5804. #ifdef FREEBSD_WORKAROUND
  5805. static const void *lt_preloaded_setup() {
  5806. return lt__PROGRAM__LTX_preloaded_symbols;
  5807. }
  5808. #endif
  5809. #ifdef __cplusplus
  5810. }
  5811. #endif
  5812. _LT_EOF
  5813. # Now try linking the two files.
  5814. mv conftest.$ac_objext conftstm.$ac_objext
  5815. lt_globsym_save_LIBS=$LIBS
  5816. lt_globsym_save_CFLAGS=$CFLAGS
  5817. LIBS="conftstm.$ac_objext"
  5818. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5819. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5820. (eval $ac_link) 2>&5
  5821. ac_status=$?
  5822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5823. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5824. pipe_works=yes
  5825. fi
  5826. LIBS=$lt_globsym_save_LIBS
  5827. CFLAGS=$lt_globsym_save_CFLAGS
  5828. else
  5829. echo "cannot find nm_test_func in $nlist" >&5
  5830. fi
  5831. else
  5832. echo "cannot find nm_test_var in $nlist" >&5
  5833. fi
  5834. else
  5835. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5836. fi
  5837. else
  5838. echo "$progname: failed program was:" >&5
  5839. cat conftest.$ac_ext >&5
  5840. fi
  5841. rm -rf conftest* conftst*
  5842. # Do not use the global_symbol_pipe unless it works.
  5843. if test "$pipe_works" = yes; then
  5844. break
  5845. else
  5846. lt_cv_sys_global_symbol_pipe=
  5847. fi
  5848. done
  5849. fi
  5850. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5851. lt_cv_sys_global_symbol_to_cdecl=
  5852. fi
  5853. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5855. $as_echo "failed" >&6; }
  5856. else
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5858. $as_echo "ok" >&6; }
  5859. fi
  5860. # Response file support.
  5861. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5862. nm_file_list_spec='@'
  5863. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5864. nm_file_list_spec='@'
  5865. fi
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5867. $as_echo_n "checking for sysroot... " >&6; }
  5868. # Check whether --with-sysroot was given.
  5869. if test "${with_sysroot+set}" = set; then :
  5870. withval=$with_sysroot;
  5871. else
  5872. with_sysroot=no
  5873. fi
  5874. lt_sysroot=
  5875. case ${with_sysroot} in #(
  5876. yes)
  5877. if test "$GCC" = yes; then
  5878. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5879. fi
  5880. ;; #(
  5881. /*)
  5882. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5883. ;; #(
  5884. no|'')
  5885. ;; #(
  5886. *)
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5888. $as_echo "${with_sysroot}" >&6; }
  5889. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5890. ;;
  5891. esac
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5893. $as_echo "${lt_sysroot:-no}" >&6; }
  5894. # Check whether --enable-libtool-lock was given.
  5895. if test "${enable_libtool_lock+set}" = set; then :
  5896. enableval=$enable_libtool_lock;
  5897. fi
  5898. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5899. # Some flags need to be propagated to the compiler or linker for good
  5900. # libtool support.
  5901. case $host in
  5902. ia64-*-hpux*)
  5903. # Find out which ABI we are using.
  5904. echo 'int i;' > conftest.$ac_ext
  5905. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5906. (eval $ac_compile) 2>&5
  5907. ac_status=$?
  5908. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5909. test $ac_status = 0; }; then
  5910. case `/usr/bin/file conftest.$ac_objext` in
  5911. *ELF-32*)
  5912. HPUX_IA64_MODE="32"
  5913. ;;
  5914. *ELF-64*)
  5915. HPUX_IA64_MODE="64"
  5916. ;;
  5917. esac
  5918. fi
  5919. rm -rf conftest*
  5920. ;;
  5921. *-*-irix6*)
  5922. # Find out which ABI we are using.
  5923. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5924. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5925. (eval $ac_compile) 2>&5
  5926. ac_status=$?
  5927. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5928. test $ac_status = 0; }; then
  5929. if test "$lt_cv_prog_gnu_ld" = yes; then
  5930. case `/usr/bin/file conftest.$ac_objext` in
  5931. *32-bit*)
  5932. LD="${LD-ld} -melf32bsmip"
  5933. ;;
  5934. *N32*)
  5935. LD="${LD-ld} -melf32bmipn32"
  5936. ;;
  5937. *64-bit*)
  5938. LD="${LD-ld} -melf64bmip"
  5939. ;;
  5940. esac
  5941. else
  5942. case `/usr/bin/file conftest.$ac_objext` in
  5943. *32-bit*)
  5944. LD="${LD-ld} -32"
  5945. ;;
  5946. *N32*)
  5947. LD="${LD-ld} -n32"
  5948. ;;
  5949. *64-bit*)
  5950. LD="${LD-ld} -64"
  5951. ;;
  5952. esac
  5953. fi
  5954. fi
  5955. rm -rf conftest*
  5956. ;;
  5957. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5958. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5959. # Find out which ABI we are using.
  5960. echo 'int i;' > conftest.$ac_ext
  5961. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5962. (eval $ac_compile) 2>&5
  5963. ac_status=$?
  5964. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5965. test $ac_status = 0; }; then
  5966. case `/usr/bin/file conftest.o` in
  5967. *32-bit*)
  5968. case $host in
  5969. x86_64-*kfreebsd*-gnu)
  5970. LD="${LD-ld} -m elf_i386_fbsd"
  5971. ;;
  5972. x86_64-*linux*)
  5973. LD="${LD-ld} -m elf_i386"
  5974. ;;
  5975. ppc64-*linux*|powerpc64-*linux*)
  5976. LD="${LD-ld} -m elf32ppclinux"
  5977. ;;
  5978. s390x-*linux*)
  5979. LD="${LD-ld} -m elf_s390"
  5980. ;;
  5981. sparc64-*linux*)
  5982. LD="${LD-ld} -m elf32_sparc"
  5983. ;;
  5984. esac
  5985. ;;
  5986. *64-bit*)
  5987. case $host in
  5988. x86_64-*kfreebsd*-gnu)
  5989. LD="${LD-ld} -m elf_x86_64_fbsd"
  5990. ;;
  5991. x86_64-*linux*)
  5992. LD="${LD-ld} -m elf_x86_64"
  5993. ;;
  5994. ppc*-*linux*|powerpc*-*linux*)
  5995. LD="${LD-ld} -m elf64ppc"
  5996. ;;
  5997. s390*-*linux*|s390*-*tpf*)
  5998. LD="${LD-ld} -m elf64_s390"
  5999. ;;
  6000. sparc*-*linux*)
  6001. LD="${LD-ld} -m elf64_sparc"
  6002. ;;
  6003. esac
  6004. ;;
  6005. esac
  6006. fi
  6007. rm -rf conftest*
  6008. ;;
  6009. *-*-sco3.2v5*)
  6010. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6011. SAVE_CFLAGS="$CFLAGS"
  6012. CFLAGS="$CFLAGS -belf"
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6014. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6015. if ${lt_cv_cc_needs_belf+:} false; then :
  6016. $as_echo_n "(cached) " >&6
  6017. else
  6018. ac_ext=c
  6019. ac_cpp='$CPP $CPPFLAGS'
  6020. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6021. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6022. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6024. /* end confdefs.h. */
  6025. int
  6026. main ()
  6027. {
  6028. ;
  6029. return 0;
  6030. }
  6031. _ACEOF
  6032. if ac_fn_c_try_link "$LINENO"; then :
  6033. lt_cv_cc_needs_belf=yes
  6034. else
  6035. lt_cv_cc_needs_belf=no
  6036. fi
  6037. rm -f core conftest.err conftest.$ac_objext \
  6038. conftest$ac_exeext conftest.$ac_ext
  6039. ac_ext=c
  6040. ac_cpp='$CPP $CPPFLAGS'
  6041. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6042. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6043. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6044. fi
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6046. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6047. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6048. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6049. CFLAGS="$SAVE_CFLAGS"
  6050. fi
  6051. ;;
  6052. sparc*-*solaris*)
  6053. # Find out which ABI we are using.
  6054. echo 'int i;' > conftest.$ac_ext
  6055. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6056. (eval $ac_compile) 2>&5
  6057. ac_status=$?
  6058. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6059. test $ac_status = 0; }; then
  6060. case `/usr/bin/file conftest.o` in
  6061. *64-bit*)
  6062. case $lt_cv_prog_gnu_ld in
  6063. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6064. *)
  6065. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6066. LD="${LD-ld} -64"
  6067. fi
  6068. ;;
  6069. esac
  6070. ;;
  6071. esac
  6072. fi
  6073. rm -rf conftest*
  6074. ;;
  6075. esac
  6076. need_locks="$enable_libtool_lock"
  6077. if test -n "$ac_tool_prefix"; then
  6078. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6079. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6081. $as_echo_n "checking for $ac_word... " >&6; }
  6082. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6083. $as_echo_n "(cached) " >&6
  6084. else
  6085. if test -n "$MANIFEST_TOOL"; then
  6086. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6087. else
  6088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6089. for as_dir in $PATH
  6090. do
  6091. IFS=$as_save_IFS
  6092. test -z "$as_dir" && as_dir=.
  6093. for ac_exec_ext in '' $ac_executable_extensions; do
  6094. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6095. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6096. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6097. break 2
  6098. fi
  6099. done
  6100. done
  6101. IFS=$as_save_IFS
  6102. fi
  6103. fi
  6104. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6105. if test -n "$MANIFEST_TOOL"; then
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6107. $as_echo "$MANIFEST_TOOL" >&6; }
  6108. else
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6110. $as_echo "no" >&6; }
  6111. fi
  6112. fi
  6113. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6114. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6115. # Extract the first word of "mt", so it can be a program name with args.
  6116. set dummy mt; ac_word=$2
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6118. $as_echo_n "checking for $ac_word... " >&6; }
  6119. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6120. $as_echo_n "(cached) " >&6
  6121. else
  6122. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6123. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6124. else
  6125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6126. for as_dir in $PATH
  6127. do
  6128. IFS=$as_save_IFS
  6129. test -z "$as_dir" && as_dir=.
  6130. for ac_exec_ext in '' $ac_executable_extensions; do
  6131. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6132. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6134. break 2
  6135. fi
  6136. done
  6137. done
  6138. IFS=$as_save_IFS
  6139. fi
  6140. fi
  6141. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6142. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6144. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6145. else
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6147. $as_echo "no" >&6; }
  6148. fi
  6149. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6150. MANIFEST_TOOL=":"
  6151. else
  6152. case $cross_compiling:$ac_tool_warned in
  6153. yes:)
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6155. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6156. ac_tool_warned=yes ;;
  6157. esac
  6158. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6159. fi
  6160. else
  6161. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6162. fi
  6163. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6165. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6166. if ${lt_cv_path_mainfest_tool+:} false; then :
  6167. $as_echo_n "(cached) " >&6
  6168. else
  6169. lt_cv_path_mainfest_tool=no
  6170. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6171. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6172. cat conftest.err >&5
  6173. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6174. lt_cv_path_mainfest_tool=yes
  6175. fi
  6176. rm -f conftest*
  6177. fi
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6179. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6180. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6181. MANIFEST_TOOL=:
  6182. fi
  6183. case $host_os in
  6184. rhapsody* | darwin*)
  6185. if test -n "$ac_tool_prefix"; then
  6186. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6187. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6189. $as_echo_n "checking for $ac_word... " >&6; }
  6190. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6191. $as_echo_n "(cached) " >&6
  6192. else
  6193. if test -n "$DSYMUTIL"; then
  6194. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6195. else
  6196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6197. for as_dir in $PATH
  6198. do
  6199. IFS=$as_save_IFS
  6200. test -z "$as_dir" && as_dir=.
  6201. for ac_exec_ext in '' $ac_executable_extensions; do
  6202. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6203. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6204. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6205. break 2
  6206. fi
  6207. done
  6208. done
  6209. IFS=$as_save_IFS
  6210. fi
  6211. fi
  6212. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6213. if test -n "$DSYMUTIL"; then
  6214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6215. $as_echo "$DSYMUTIL" >&6; }
  6216. else
  6217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6218. $as_echo "no" >&6; }
  6219. fi
  6220. fi
  6221. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6222. ac_ct_DSYMUTIL=$DSYMUTIL
  6223. # Extract the first word of "dsymutil", so it can be a program name with args.
  6224. set dummy dsymutil; ac_word=$2
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6226. $as_echo_n "checking for $ac_word... " >&6; }
  6227. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6228. $as_echo_n "(cached) " >&6
  6229. else
  6230. if test -n "$ac_ct_DSYMUTIL"; then
  6231. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6232. else
  6233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6234. for as_dir in $PATH
  6235. do
  6236. IFS=$as_save_IFS
  6237. test -z "$as_dir" && as_dir=.
  6238. for ac_exec_ext in '' $ac_executable_extensions; do
  6239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6240. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6242. break 2
  6243. fi
  6244. done
  6245. done
  6246. IFS=$as_save_IFS
  6247. fi
  6248. fi
  6249. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6250. if test -n "$ac_ct_DSYMUTIL"; then
  6251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6252. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6253. else
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6255. $as_echo "no" >&6; }
  6256. fi
  6257. if test "x$ac_ct_DSYMUTIL" = x; then
  6258. DSYMUTIL=":"
  6259. else
  6260. case $cross_compiling:$ac_tool_warned in
  6261. yes:)
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6263. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6264. ac_tool_warned=yes ;;
  6265. esac
  6266. DSYMUTIL=$ac_ct_DSYMUTIL
  6267. fi
  6268. else
  6269. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6270. fi
  6271. if test -n "$ac_tool_prefix"; then
  6272. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6273. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6275. $as_echo_n "checking for $ac_word... " >&6; }
  6276. if ${ac_cv_prog_NMEDIT+:} false; then :
  6277. $as_echo_n "(cached) " >&6
  6278. else
  6279. if test -n "$NMEDIT"; then
  6280. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6281. else
  6282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6283. for as_dir in $PATH
  6284. do
  6285. IFS=$as_save_IFS
  6286. test -z "$as_dir" && as_dir=.
  6287. for ac_exec_ext in '' $ac_executable_extensions; do
  6288. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6289. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6290. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6291. break 2
  6292. fi
  6293. done
  6294. done
  6295. IFS=$as_save_IFS
  6296. fi
  6297. fi
  6298. NMEDIT=$ac_cv_prog_NMEDIT
  6299. if test -n "$NMEDIT"; then
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6301. $as_echo "$NMEDIT" >&6; }
  6302. else
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6304. $as_echo "no" >&6; }
  6305. fi
  6306. fi
  6307. if test -z "$ac_cv_prog_NMEDIT"; then
  6308. ac_ct_NMEDIT=$NMEDIT
  6309. # Extract the first word of "nmedit", so it can be a program name with args.
  6310. set dummy nmedit; ac_word=$2
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6312. $as_echo_n "checking for $ac_word... " >&6; }
  6313. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6314. $as_echo_n "(cached) " >&6
  6315. else
  6316. if test -n "$ac_ct_NMEDIT"; then
  6317. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6318. else
  6319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6320. for as_dir in $PATH
  6321. do
  6322. IFS=$as_save_IFS
  6323. test -z "$as_dir" && as_dir=.
  6324. for ac_exec_ext in '' $ac_executable_extensions; do
  6325. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6326. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6328. break 2
  6329. fi
  6330. done
  6331. done
  6332. IFS=$as_save_IFS
  6333. fi
  6334. fi
  6335. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6336. if test -n "$ac_ct_NMEDIT"; then
  6337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6338. $as_echo "$ac_ct_NMEDIT" >&6; }
  6339. else
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6341. $as_echo "no" >&6; }
  6342. fi
  6343. if test "x$ac_ct_NMEDIT" = x; then
  6344. NMEDIT=":"
  6345. else
  6346. case $cross_compiling:$ac_tool_warned in
  6347. yes:)
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6349. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6350. ac_tool_warned=yes ;;
  6351. esac
  6352. NMEDIT=$ac_ct_NMEDIT
  6353. fi
  6354. else
  6355. NMEDIT="$ac_cv_prog_NMEDIT"
  6356. fi
  6357. if test -n "$ac_tool_prefix"; then
  6358. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6359. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6361. $as_echo_n "checking for $ac_word... " >&6; }
  6362. if ${ac_cv_prog_LIPO+:} false; then :
  6363. $as_echo_n "(cached) " >&6
  6364. else
  6365. if test -n "$LIPO"; then
  6366. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6367. else
  6368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6369. for as_dir in $PATH
  6370. do
  6371. IFS=$as_save_IFS
  6372. test -z "$as_dir" && as_dir=.
  6373. for ac_exec_ext in '' $ac_executable_extensions; do
  6374. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6375. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6376. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6377. break 2
  6378. fi
  6379. done
  6380. done
  6381. IFS=$as_save_IFS
  6382. fi
  6383. fi
  6384. LIPO=$ac_cv_prog_LIPO
  6385. if test -n "$LIPO"; then
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6387. $as_echo "$LIPO" >&6; }
  6388. else
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6390. $as_echo "no" >&6; }
  6391. fi
  6392. fi
  6393. if test -z "$ac_cv_prog_LIPO"; then
  6394. ac_ct_LIPO=$LIPO
  6395. # Extract the first word of "lipo", so it can be a program name with args.
  6396. set dummy lipo; ac_word=$2
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6398. $as_echo_n "checking for $ac_word... " >&6; }
  6399. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6400. $as_echo_n "(cached) " >&6
  6401. else
  6402. if test -n "$ac_ct_LIPO"; then
  6403. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6404. else
  6405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6406. for as_dir in $PATH
  6407. do
  6408. IFS=$as_save_IFS
  6409. test -z "$as_dir" && as_dir=.
  6410. for ac_exec_ext in '' $ac_executable_extensions; do
  6411. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6412. ac_cv_prog_ac_ct_LIPO="lipo"
  6413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6414. break 2
  6415. fi
  6416. done
  6417. done
  6418. IFS=$as_save_IFS
  6419. fi
  6420. fi
  6421. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6422. if test -n "$ac_ct_LIPO"; then
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6424. $as_echo "$ac_ct_LIPO" >&6; }
  6425. else
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6427. $as_echo "no" >&6; }
  6428. fi
  6429. if test "x$ac_ct_LIPO" = x; then
  6430. LIPO=":"
  6431. else
  6432. case $cross_compiling:$ac_tool_warned in
  6433. yes:)
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6435. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6436. ac_tool_warned=yes ;;
  6437. esac
  6438. LIPO=$ac_ct_LIPO
  6439. fi
  6440. else
  6441. LIPO="$ac_cv_prog_LIPO"
  6442. fi
  6443. if test -n "$ac_tool_prefix"; then
  6444. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6445. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6447. $as_echo_n "checking for $ac_word... " >&6; }
  6448. if ${ac_cv_prog_OTOOL+:} false; then :
  6449. $as_echo_n "(cached) " >&6
  6450. else
  6451. if test -n "$OTOOL"; then
  6452. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6453. else
  6454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6455. for as_dir in $PATH
  6456. do
  6457. IFS=$as_save_IFS
  6458. test -z "$as_dir" && as_dir=.
  6459. for ac_exec_ext in '' $ac_executable_extensions; do
  6460. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6461. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6463. break 2
  6464. fi
  6465. done
  6466. done
  6467. IFS=$as_save_IFS
  6468. fi
  6469. fi
  6470. OTOOL=$ac_cv_prog_OTOOL
  6471. if test -n "$OTOOL"; then
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6473. $as_echo "$OTOOL" >&6; }
  6474. else
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6476. $as_echo "no" >&6; }
  6477. fi
  6478. fi
  6479. if test -z "$ac_cv_prog_OTOOL"; then
  6480. ac_ct_OTOOL=$OTOOL
  6481. # Extract the first word of "otool", so it can be a program name with args.
  6482. set dummy otool; ac_word=$2
  6483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6484. $as_echo_n "checking for $ac_word... " >&6; }
  6485. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6486. $as_echo_n "(cached) " >&6
  6487. else
  6488. if test -n "$ac_ct_OTOOL"; then
  6489. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6490. else
  6491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6492. for as_dir in $PATH
  6493. do
  6494. IFS=$as_save_IFS
  6495. test -z "$as_dir" && as_dir=.
  6496. for ac_exec_ext in '' $ac_executable_extensions; do
  6497. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6498. ac_cv_prog_ac_ct_OTOOL="otool"
  6499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6500. break 2
  6501. fi
  6502. done
  6503. done
  6504. IFS=$as_save_IFS
  6505. fi
  6506. fi
  6507. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6508. if test -n "$ac_ct_OTOOL"; then
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6510. $as_echo "$ac_ct_OTOOL" >&6; }
  6511. else
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6513. $as_echo "no" >&6; }
  6514. fi
  6515. if test "x$ac_ct_OTOOL" = x; then
  6516. OTOOL=":"
  6517. else
  6518. case $cross_compiling:$ac_tool_warned in
  6519. yes:)
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6521. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6522. ac_tool_warned=yes ;;
  6523. esac
  6524. OTOOL=$ac_ct_OTOOL
  6525. fi
  6526. else
  6527. OTOOL="$ac_cv_prog_OTOOL"
  6528. fi
  6529. if test -n "$ac_tool_prefix"; then
  6530. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6531. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6533. $as_echo_n "checking for $ac_word... " >&6; }
  6534. if ${ac_cv_prog_OTOOL64+:} false; then :
  6535. $as_echo_n "(cached) " >&6
  6536. else
  6537. if test -n "$OTOOL64"; then
  6538. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6539. else
  6540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6541. for as_dir in $PATH
  6542. do
  6543. IFS=$as_save_IFS
  6544. test -z "$as_dir" && as_dir=.
  6545. for ac_exec_ext in '' $ac_executable_extensions; do
  6546. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6547. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6549. break 2
  6550. fi
  6551. done
  6552. done
  6553. IFS=$as_save_IFS
  6554. fi
  6555. fi
  6556. OTOOL64=$ac_cv_prog_OTOOL64
  6557. if test -n "$OTOOL64"; then
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6559. $as_echo "$OTOOL64" >&6; }
  6560. else
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6562. $as_echo "no" >&6; }
  6563. fi
  6564. fi
  6565. if test -z "$ac_cv_prog_OTOOL64"; then
  6566. ac_ct_OTOOL64=$OTOOL64
  6567. # Extract the first word of "otool64", so it can be a program name with args.
  6568. set dummy otool64; ac_word=$2
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6570. $as_echo_n "checking for $ac_word... " >&6; }
  6571. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6572. $as_echo_n "(cached) " >&6
  6573. else
  6574. if test -n "$ac_ct_OTOOL64"; then
  6575. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6576. else
  6577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6578. for as_dir in $PATH
  6579. do
  6580. IFS=$as_save_IFS
  6581. test -z "$as_dir" && as_dir=.
  6582. for ac_exec_ext in '' $ac_executable_extensions; do
  6583. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6584. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6586. break 2
  6587. fi
  6588. done
  6589. done
  6590. IFS=$as_save_IFS
  6591. fi
  6592. fi
  6593. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6594. if test -n "$ac_ct_OTOOL64"; then
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6596. $as_echo "$ac_ct_OTOOL64" >&6; }
  6597. else
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6599. $as_echo "no" >&6; }
  6600. fi
  6601. if test "x$ac_ct_OTOOL64" = x; then
  6602. OTOOL64=":"
  6603. else
  6604. case $cross_compiling:$ac_tool_warned in
  6605. yes:)
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6607. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6608. ac_tool_warned=yes ;;
  6609. esac
  6610. OTOOL64=$ac_ct_OTOOL64
  6611. fi
  6612. else
  6613. OTOOL64="$ac_cv_prog_OTOOL64"
  6614. fi
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6616. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6617. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6618. $as_echo_n "(cached) " >&6
  6619. else
  6620. lt_cv_apple_cc_single_mod=no
  6621. if test -z "${LT_MULTI_MODULE}"; then
  6622. # By default we will add the -single_module flag. You can override
  6623. # by either setting the environment variable LT_MULTI_MODULE
  6624. # non-empty at configure time, or by adding -multi_module to the
  6625. # link flags.
  6626. rm -rf libconftest.dylib*
  6627. echo "int foo(void){return 1;}" > conftest.c
  6628. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6629. -dynamiclib -Wl,-single_module conftest.c" >&5
  6630. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6631. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6632. _lt_result=$?
  6633. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6634. lt_cv_apple_cc_single_mod=yes
  6635. else
  6636. cat conftest.err >&5
  6637. fi
  6638. rm -rf libconftest.dylib*
  6639. rm -f conftest.*
  6640. fi
  6641. fi
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6643. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6645. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6646. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6647. $as_echo_n "(cached) " >&6
  6648. else
  6649. lt_cv_ld_exported_symbols_list=no
  6650. save_LDFLAGS=$LDFLAGS
  6651. echo "_main" > conftest.sym
  6652. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6654. /* end confdefs.h. */
  6655. int
  6656. main ()
  6657. {
  6658. ;
  6659. return 0;
  6660. }
  6661. _ACEOF
  6662. if ac_fn_c_try_link "$LINENO"; then :
  6663. lt_cv_ld_exported_symbols_list=yes
  6664. else
  6665. lt_cv_ld_exported_symbols_list=no
  6666. fi
  6667. rm -f core conftest.err conftest.$ac_objext \
  6668. conftest$ac_exeext conftest.$ac_ext
  6669. LDFLAGS="$save_LDFLAGS"
  6670. fi
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6672. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6674. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6675. if ${lt_cv_ld_force_load+:} false; then :
  6676. $as_echo_n "(cached) " >&6
  6677. else
  6678. lt_cv_ld_force_load=no
  6679. cat > conftest.c << _LT_EOF
  6680. int forced_loaded() { return 2;}
  6681. _LT_EOF
  6682. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6683. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6684. echo "$AR cru libconftest.a conftest.o" >&5
  6685. $AR cru libconftest.a conftest.o 2>&5
  6686. echo "$RANLIB libconftest.a" >&5
  6687. $RANLIB libconftest.a 2>&5
  6688. cat > conftest.c << _LT_EOF
  6689. int main() { return 0;}
  6690. _LT_EOF
  6691. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6692. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6693. _lt_result=$?
  6694. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6695. lt_cv_ld_force_load=yes
  6696. else
  6697. cat conftest.err >&5
  6698. fi
  6699. rm -f conftest.err libconftest.a conftest conftest.c
  6700. rm -rf conftest.dSYM
  6701. fi
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6703. $as_echo "$lt_cv_ld_force_load" >&6; }
  6704. case $host_os in
  6705. rhapsody* | darwin1.[012])
  6706. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6707. darwin1.*)
  6708. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6709. darwin*) # darwin 5.x on
  6710. # if running on 10.5 or later, the deployment target defaults
  6711. # to the OS version, if on x86, and 10.4, the deployment
  6712. # target defaults to 10.4. Don't you love it?
  6713. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6714. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6715. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6716. 10.[012]*)
  6717. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6718. 10.*)
  6719. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6720. esac
  6721. ;;
  6722. esac
  6723. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6724. _lt_dar_single_mod='$single_module'
  6725. fi
  6726. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6727. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6728. else
  6729. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6730. fi
  6731. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6732. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6733. else
  6734. _lt_dsymutil=
  6735. fi
  6736. ;;
  6737. esac
  6738. ac_ext=c
  6739. ac_cpp='$CPP $CPPFLAGS'
  6740. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6741. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6742. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6744. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6745. # On Suns, sometimes $CPP names a directory.
  6746. if test -n "$CPP" && test -d "$CPP"; then
  6747. CPP=
  6748. fi
  6749. if test -z "$CPP"; then
  6750. if ${ac_cv_prog_CPP+:} false; then :
  6751. $as_echo_n "(cached) " >&6
  6752. else
  6753. # Double quotes because CPP needs to be expanded
  6754. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6755. do
  6756. ac_preproc_ok=false
  6757. for ac_c_preproc_warn_flag in '' yes
  6758. do
  6759. # Use a header file that comes with gcc, so configuring glibc
  6760. # with a fresh cross-compiler works.
  6761. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6762. # <limits.h> exists even on freestanding compilers.
  6763. # On the NeXT, cc -E runs the code through the compiler's parser,
  6764. # not just through cpp. "Syntax error" is here to catch this case.
  6765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6766. /* end confdefs.h. */
  6767. #ifdef __STDC__
  6768. # include <limits.h>
  6769. #else
  6770. # include <assert.h>
  6771. #endif
  6772. Syntax error
  6773. _ACEOF
  6774. if ac_fn_c_try_cpp "$LINENO"; then :
  6775. else
  6776. # Broken: fails on valid input.
  6777. continue
  6778. fi
  6779. rm -f conftest.err conftest.i conftest.$ac_ext
  6780. # OK, works on sane cases. Now check whether nonexistent headers
  6781. # can be detected and how.
  6782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6783. /* end confdefs.h. */
  6784. #include <ac_nonexistent.h>
  6785. _ACEOF
  6786. if ac_fn_c_try_cpp "$LINENO"; then :
  6787. # Broken: success on invalid input.
  6788. continue
  6789. else
  6790. # Passes both tests.
  6791. ac_preproc_ok=:
  6792. break
  6793. fi
  6794. rm -f conftest.err conftest.i conftest.$ac_ext
  6795. done
  6796. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6797. rm -f conftest.i conftest.err conftest.$ac_ext
  6798. if $ac_preproc_ok; then :
  6799. break
  6800. fi
  6801. done
  6802. ac_cv_prog_CPP=$CPP
  6803. fi
  6804. CPP=$ac_cv_prog_CPP
  6805. else
  6806. ac_cv_prog_CPP=$CPP
  6807. fi
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6809. $as_echo "$CPP" >&6; }
  6810. ac_preproc_ok=false
  6811. for ac_c_preproc_warn_flag in '' yes
  6812. do
  6813. # Use a header file that comes with gcc, so configuring glibc
  6814. # with a fresh cross-compiler works.
  6815. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6816. # <limits.h> exists even on freestanding compilers.
  6817. # On the NeXT, cc -E runs the code through the compiler's parser,
  6818. # not just through cpp. "Syntax error" is here to catch this case.
  6819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6820. /* end confdefs.h. */
  6821. #ifdef __STDC__
  6822. # include <limits.h>
  6823. #else
  6824. # include <assert.h>
  6825. #endif
  6826. Syntax error
  6827. _ACEOF
  6828. if ac_fn_c_try_cpp "$LINENO"; then :
  6829. else
  6830. # Broken: fails on valid input.
  6831. continue
  6832. fi
  6833. rm -f conftest.err conftest.i conftest.$ac_ext
  6834. # OK, works on sane cases. Now check whether nonexistent headers
  6835. # can be detected and how.
  6836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6837. /* end confdefs.h. */
  6838. #include <ac_nonexistent.h>
  6839. _ACEOF
  6840. if ac_fn_c_try_cpp "$LINENO"; then :
  6841. # Broken: success on invalid input.
  6842. continue
  6843. else
  6844. # Passes both tests.
  6845. ac_preproc_ok=:
  6846. break
  6847. fi
  6848. rm -f conftest.err conftest.i conftest.$ac_ext
  6849. done
  6850. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6851. rm -f conftest.i conftest.err conftest.$ac_ext
  6852. if $ac_preproc_ok; then :
  6853. else
  6854. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6855. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6856. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6857. See \`config.log' for more details" "$LINENO" 5; }
  6858. fi
  6859. ac_ext=c
  6860. ac_cpp='$CPP $CPPFLAGS'
  6861. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6862. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6863. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6865. $as_echo_n "checking for ANSI C header files... " >&6; }
  6866. if ${ac_cv_header_stdc+:} false; then :
  6867. $as_echo_n "(cached) " >&6
  6868. else
  6869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6870. /* end confdefs.h. */
  6871. #include <stdlib.h>
  6872. #include <stdarg.h>
  6873. #include <string.h>
  6874. #include <float.h>
  6875. int
  6876. main ()
  6877. {
  6878. ;
  6879. return 0;
  6880. }
  6881. _ACEOF
  6882. if ac_fn_c_try_compile "$LINENO"; then :
  6883. ac_cv_header_stdc=yes
  6884. else
  6885. ac_cv_header_stdc=no
  6886. fi
  6887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6888. if test $ac_cv_header_stdc = yes; then
  6889. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6891. /* end confdefs.h. */
  6892. #include <string.h>
  6893. _ACEOF
  6894. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6895. $EGREP "memchr" >/dev/null 2>&1; then :
  6896. else
  6897. ac_cv_header_stdc=no
  6898. fi
  6899. rm -f conftest*
  6900. fi
  6901. if test $ac_cv_header_stdc = yes; then
  6902. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6904. /* end confdefs.h. */
  6905. #include <stdlib.h>
  6906. _ACEOF
  6907. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6908. $EGREP "free" >/dev/null 2>&1; then :
  6909. else
  6910. ac_cv_header_stdc=no
  6911. fi
  6912. rm -f conftest*
  6913. fi
  6914. if test $ac_cv_header_stdc = yes; then
  6915. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6916. if test "$cross_compiling" = yes; then :
  6917. :
  6918. else
  6919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6920. /* end confdefs.h. */
  6921. #include <ctype.h>
  6922. #include <stdlib.h>
  6923. #if ((' ' & 0x0FF) == 0x020)
  6924. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6925. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6926. #else
  6927. # define ISLOWER(c) \
  6928. (('a' <= (c) && (c) <= 'i') \
  6929. || ('j' <= (c) && (c) <= 'r') \
  6930. || ('s' <= (c) && (c) <= 'z'))
  6931. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6932. #endif
  6933. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6934. int
  6935. main ()
  6936. {
  6937. int i;
  6938. for (i = 0; i < 256; i++)
  6939. if (XOR (islower (i), ISLOWER (i))
  6940. || toupper (i) != TOUPPER (i))
  6941. return 2;
  6942. return 0;
  6943. }
  6944. _ACEOF
  6945. if ac_fn_c_try_run "$LINENO"; then :
  6946. else
  6947. ac_cv_header_stdc=no
  6948. fi
  6949. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6950. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6951. fi
  6952. fi
  6953. fi
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6955. $as_echo "$ac_cv_header_stdc" >&6; }
  6956. if test $ac_cv_header_stdc = yes; then
  6957. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6958. fi
  6959. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6960. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6961. inttypes.h stdint.h unistd.h
  6962. do :
  6963. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6964. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6965. "
  6966. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6967. cat >>confdefs.h <<_ACEOF
  6968. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6969. _ACEOF
  6970. fi
  6971. done
  6972. for ac_header in dlfcn.h
  6973. do :
  6974. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6975. "
  6976. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6977. cat >>confdefs.h <<_ACEOF
  6978. #define HAVE_DLFCN_H 1
  6979. _ACEOF
  6980. fi
  6981. done
  6982. # Set options
  6983. enable_dlopen=no
  6984. # Check whether --enable-shared was given.
  6985. if test "${enable_shared+set}" = set; then :
  6986. enableval=$enable_shared; p=${PACKAGE-default}
  6987. case $enableval in
  6988. yes) enable_shared=yes ;;
  6989. no) enable_shared=no ;;
  6990. *)
  6991. enable_shared=no
  6992. # Look at the argument we got. We use all the common list separators.
  6993. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6994. for pkg in $enableval; do
  6995. IFS="$lt_save_ifs"
  6996. if test "X$pkg" = "X$p"; then
  6997. enable_shared=yes
  6998. fi
  6999. done
  7000. IFS="$lt_save_ifs"
  7001. ;;
  7002. esac
  7003. else
  7004. enable_shared=yes
  7005. fi
  7006. # Check whether --enable-static was given.
  7007. if test "${enable_static+set}" = set; then :
  7008. enableval=$enable_static; p=${PACKAGE-default}
  7009. case $enableval in
  7010. yes) enable_static=yes ;;
  7011. no) enable_static=no ;;
  7012. *)
  7013. enable_static=no
  7014. # Look at the argument we got. We use all the common list separators.
  7015. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7016. for pkg in $enableval; do
  7017. IFS="$lt_save_ifs"
  7018. if test "X$pkg" = "X$p"; then
  7019. enable_static=yes
  7020. fi
  7021. done
  7022. IFS="$lt_save_ifs"
  7023. ;;
  7024. esac
  7025. else
  7026. enable_static=yes
  7027. fi
  7028. # Check whether --with-pic was given.
  7029. if test "${with_pic+set}" = set; then :
  7030. withval=$with_pic; pic_mode="$withval"
  7031. else
  7032. pic_mode=default
  7033. fi
  7034. test -z "$pic_mode" && pic_mode=default
  7035. # Check whether --enable-fast-install was given.
  7036. if test "${enable_fast_install+set}" = set; then :
  7037. enableval=$enable_fast_install; p=${PACKAGE-default}
  7038. case $enableval in
  7039. yes) enable_fast_install=yes ;;
  7040. no) enable_fast_install=no ;;
  7041. *)
  7042. enable_fast_install=no
  7043. # Look at the argument we got. We use all the common list separators.
  7044. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7045. for pkg in $enableval; do
  7046. IFS="$lt_save_ifs"
  7047. if test "X$pkg" = "X$p"; then
  7048. enable_fast_install=yes
  7049. fi
  7050. done
  7051. IFS="$lt_save_ifs"
  7052. ;;
  7053. esac
  7054. else
  7055. enable_fast_install=yes
  7056. fi
  7057. # This can be used to rebuild libtool when needed
  7058. LIBTOOL_DEPS="$ltmain"
  7059. # Always use our own libtool.
  7060. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7061. test -z "$LN_S" && LN_S="ln -s"
  7062. if test -n "${ZSH_VERSION+set}" ; then
  7063. setopt NO_GLOB_SUBST
  7064. fi
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7066. $as_echo_n "checking for objdir... " >&6; }
  7067. if ${lt_cv_objdir+:} false; then :
  7068. $as_echo_n "(cached) " >&6
  7069. else
  7070. rm -f .libs 2>/dev/null
  7071. mkdir .libs 2>/dev/null
  7072. if test -d .libs; then
  7073. lt_cv_objdir=.libs
  7074. else
  7075. # MS-DOS does not allow filenames that begin with a dot.
  7076. lt_cv_objdir=_libs
  7077. fi
  7078. rmdir .libs 2>/dev/null
  7079. fi
  7080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7081. $as_echo "$lt_cv_objdir" >&6; }
  7082. objdir=$lt_cv_objdir
  7083. cat >>confdefs.h <<_ACEOF
  7084. #define LT_OBJDIR "$lt_cv_objdir/"
  7085. _ACEOF
  7086. case $host_os in
  7087. aix3*)
  7088. # AIX sometimes has problems with the GCC collect2 program. For some
  7089. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7090. # vanish in a puff of smoke.
  7091. if test "X${COLLECT_NAMES+set}" != Xset; then
  7092. COLLECT_NAMES=
  7093. export COLLECT_NAMES
  7094. fi
  7095. ;;
  7096. esac
  7097. # Global variables:
  7098. ofile=libtool
  7099. can_build_shared=yes
  7100. # All known linkers require a `.a' archive for static linking (except MSVC,
  7101. # which needs '.lib').
  7102. libext=a
  7103. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7104. old_CC="$CC"
  7105. old_CFLAGS="$CFLAGS"
  7106. # Set sane defaults for various variables
  7107. test -z "$CC" && CC=cc
  7108. test -z "$LTCC" && LTCC=$CC
  7109. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7110. test -z "$LD" && LD=ld
  7111. test -z "$ac_objext" && ac_objext=o
  7112. for cc_temp in $compiler""; do
  7113. case $cc_temp in
  7114. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7115. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7116. \-*) ;;
  7117. *) break;;
  7118. esac
  7119. done
  7120. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7121. # Only perform the check for file, if the check method requires it
  7122. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7123. case $deplibs_check_method in
  7124. file_magic*)
  7125. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7127. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7128. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7129. $as_echo_n "(cached) " >&6
  7130. else
  7131. case $MAGIC_CMD in
  7132. [\\/*] | ?:[\\/]*)
  7133. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7134. ;;
  7135. *)
  7136. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7137. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7138. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7139. for ac_dir in $ac_dummy; do
  7140. IFS="$lt_save_ifs"
  7141. test -z "$ac_dir" && ac_dir=.
  7142. if test -f $ac_dir/${ac_tool_prefix}file; then
  7143. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7144. if test -n "$file_magic_test_file"; then
  7145. case $deplibs_check_method in
  7146. "file_magic "*)
  7147. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7148. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7149. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7150. $EGREP "$file_magic_regex" > /dev/null; then
  7151. :
  7152. else
  7153. cat <<_LT_EOF 1>&2
  7154. *** Warning: the command libtool uses to detect shared libraries,
  7155. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7156. *** The result is that libtool may fail to recognize shared libraries
  7157. *** as such. This will affect the creation of libtool libraries that
  7158. *** depend on shared libraries, but programs linked with such libtool
  7159. *** libraries will work regardless of this problem. Nevertheless, you
  7160. *** may want to report the problem to your system manager and/or to
  7161. *** bug-libtool@gnu.org
  7162. _LT_EOF
  7163. fi ;;
  7164. esac
  7165. fi
  7166. break
  7167. fi
  7168. done
  7169. IFS="$lt_save_ifs"
  7170. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7171. ;;
  7172. esac
  7173. fi
  7174. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7175. if test -n "$MAGIC_CMD"; then
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7177. $as_echo "$MAGIC_CMD" >&6; }
  7178. else
  7179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7180. $as_echo "no" >&6; }
  7181. fi
  7182. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7183. if test -n "$ac_tool_prefix"; then
  7184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7185. $as_echo_n "checking for file... " >&6; }
  7186. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7187. $as_echo_n "(cached) " >&6
  7188. else
  7189. case $MAGIC_CMD in
  7190. [\\/*] | ?:[\\/]*)
  7191. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7192. ;;
  7193. *)
  7194. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7195. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7196. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7197. for ac_dir in $ac_dummy; do
  7198. IFS="$lt_save_ifs"
  7199. test -z "$ac_dir" && ac_dir=.
  7200. if test -f $ac_dir/file; then
  7201. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7202. if test -n "$file_magic_test_file"; then
  7203. case $deplibs_check_method in
  7204. "file_magic "*)
  7205. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7206. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7207. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7208. $EGREP "$file_magic_regex" > /dev/null; then
  7209. :
  7210. else
  7211. cat <<_LT_EOF 1>&2
  7212. *** Warning: the command libtool uses to detect shared libraries,
  7213. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7214. *** The result is that libtool may fail to recognize shared libraries
  7215. *** as such. This will affect the creation of libtool libraries that
  7216. *** depend on shared libraries, but programs linked with such libtool
  7217. *** libraries will work regardless of this problem. Nevertheless, you
  7218. *** may want to report the problem to your system manager and/or to
  7219. *** bug-libtool@gnu.org
  7220. _LT_EOF
  7221. fi ;;
  7222. esac
  7223. fi
  7224. break
  7225. fi
  7226. done
  7227. IFS="$lt_save_ifs"
  7228. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7229. ;;
  7230. esac
  7231. fi
  7232. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7233. if test -n "$MAGIC_CMD"; then
  7234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7235. $as_echo "$MAGIC_CMD" >&6; }
  7236. else
  7237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7238. $as_echo "no" >&6; }
  7239. fi
  7240. else
  7241. MAGIC_CMD=:
  7242. fi
  7243. fi
  7244. fi
  7245. ;;
  7246. esac
  7247. # Use C for the default configuration in the libtool script
  7248. lt_save_CC="$CC"
  7249. ac_ext=c
  7250. ac_cpp='$CPP $CPPFLAGS'
  7251. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7252. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7254. # Source file extension for C test sources.
  7255. ac_ext=c
  7256. # Object file extension for compiled C test sources.
  7257. objext=o
  7258. objext=$objext
  7259. # Code to be used in simple compile tests
  7260. lt_simple_compile_test_code="int some_variable = 0;"
  7261. # Code to be used in simple link tests
  7262. lt_simple_link_test_code='int main(){return(0);}'
  7263. # If no C compiler was specified, use CC.
  7264. LTCC=${LTCC-"$CC"}
  7265. # If no C compiler flags were specified, use CFLAGS.
  7266. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7267. # Allow CC to be a program name with arguments.
  7268. compiler=$CC
  7269. # Save the default compiler, since it gets overwritten when the other
  7270. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7271. compiler_DEFAULT=$CC
  7272. # save warnings/boilerplate of simple test code
  7273. ac_outfile=conftest.$ac_objext
  7274. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7275. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7276. _lt_compiler_boilerplate=`cat conftest.err`
  7277. $RM conftest*
  7278. ac_outfile=conftest.$ac_objext
  7279. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7280. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7281. _lt_linker_boilerplate=`cat conftest.err`
  7282. $RM -r conftest*
  7283. if test -n "$compiler"; then
  7284. lt_prog_compiler_no_builtin_flag=
  7285. if test "$GCC" = yes; then
  7286. case $cc_basename in
  7287. nvcc*)
  7288. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7289. *)
  7290. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7291. esac
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7293. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7294. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7295. $as_echo_n "(cached) " >&6
  7296. else
  7297. lt_cv_prog_compiler_rtti_exceptions=no
  7298. ac_outfile=conftest.$ac_objext
  7299. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7300. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7301. # Insert the option either (1) after the last *FLAGS variable, or
  7302. # (2) before a word containing "conftest.", or (3) at the end.
  7303. # Note that $ac_compile itself does not contain backslashes and begins
  7304. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7305. # The option is referenced via a variable to avoid confusing sed.
  7306. lt_compile=`echo "$ac_compile" | $SED \
  7307. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7308. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7309. -e 's:$: $lt_compiler_flag:'`
  7310. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7311. (eval "$lt_compile" 2>conftest.err)
  7312. ac_status=$?
  7313. cat conftest.err >&5
  7314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7315. if (exit $ac_status) && test -s "$ac_outfile"; then
  7316. # The compiler can only warn and ignore the option if not recognized
  7317. # So say no if there are warnings other than the usual output.
  7318. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7319. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7320. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7321. lt_cv_prog_compiler_rtti_exceptions=yes
  7322. fi
  7323. fi
  7324. $RM conftest*
  7325. fi
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7327. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7328. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7329. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7330. else
  7331. :
  7332. fi
  7333. fi
  7334. lt_prog_compiler_wl=
  7335. lt_prog_compiler_pic=
  7336. lt_prog_compiler_static=
  7337. if test "$GCC" = yes; then
  7338. lt_prog_compiler_wl='-Wl,'
  7339. lt_prog_compiler_static='-static'
  7340. case $host_os in
  7341. aix*)
  7342. # All AIX code is PIC.
  7343. if test "$host_cpu" = ia64; then
  7344. # AIX 5 now supports IA64 processor
  7345. lt_prog_compiler_static='-Bstatic'
  7346. fi
  7347. ;;
  7348. amigaos*)
  7349. case $host_cpu in
  7350. powerpc)
  7351. # see comment about AmigaOS4 .so support
  7352. lt_prog_compiler_pic='-fPIC'
  7353. ;;
  7354. m68k)
  7355. # FIXME: we need at least 68020 code to build shared libraries, but
  7356. # adding the `-m68020' flag to GCC prevents building anything better,
  7357. # like `-m68040'.
  7358. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7359. ;;
  7360. esac
  7361. ;;
  7362. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7363. # PIC is the default for these OSes.
  7364. ;;
  7365. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7366. # This hack is so that the source file can tell whether it is being
  7367. # built for inclusion in a dll (and should export symbols for example).
  7368. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7369. # (--disable-auto-import) libraries
  7370. lt_prog_compiler_pic='-DDLL_EXPORT'
  7371. ;;
  7372. darwin* | rhapsody*)
  7373. # PIC is the default on this platform
  7374. # Common symbols not allowed in MH_DYLIB files
  7375. lt_prog_compiler_pic='-fno-common'
  7376. ;;
  7377. haiku*)
  7378. # PIC is the default for Haiku.
  7379. # The "-static" flag exists, but is broken.
  7380. lt_prog_compiler_static=
  7381. ;;
  7382. hpux*)
  7383. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7384. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7385. # sets the default TLS model and affects inlining.
  7386. case $host_cpu in
  7387. hppa*64*)
  7388. # +Z the default
  7389. ;;
  7390. *)
  7391. lt_prog_compiler_pic='-fPIC'
  7392. ;;
  7393. esac
  7394. ;;
  7395. interix[3-9]*)
  7396. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7397. # Instead, we relocate shared libraries at runtime.
  7398. ;;
  7399. msdosdjgpp*)
  7400. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7401. # on systems that don't support them.
  7402. lt_prog_compiler_can_build_shared=no
  7403. enable_shared=no
  7404. ;;
  7405. *nto* | *qnx*)
  7406. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7407. # it will coredump.
  7408. lt_prog_compiler_pic='-fPIC -shared'
  7409. ;;
  7410. sysv4*MP*)
  7411. if test -d /usr/nec; then
  7412. lt_prog_compiler_pic=-Kconform_pic
  7413. fi
  7414. ;;
  7415. *)
  7416. lt_prog_compiler_pic='-fPIC'
  7417. ;;
  7418. esac
  7419. case $cc_basename in
  7420. nvcc*) # Cuda Compiler Driver 2.2
  7421. lt_prog_compiler_wl='-Xlinker '
  7422. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7423. ;;
  7424. esac
  7425. else
  7426. # PORTME Check for flag to pass linker flags through the system compiler.
  7427. case $host_os in
  7428. aix*)
  7429. lt_prog_compiler_wl='-Wl,'
  7430. if test "$host_cpu" = ia64; then
  7431. # AIX 5 now supports IA64 processor
  7432. lt_prog_compiler_static='-Bstatic'
  7433. else
  7434. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7435. fi
  7436. ;;
  7437. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7438. # This hack is so that the source file can tell whether it is being
  7439. # built for inclusion in a dll (and should export symbols for example).
  7440. lt_prog_compiler_pic='-DDLL_EXPORT'
  7441. ;;
  7442. hpux9* | hpux10* | hpux11*)
  7443. lt_prog_compiler_wl='-Wl,'
  7444. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7445. # not for PA HP-UX.
  7446. case $host_cpu in
  7447. hppa*64*|ia64*)
  7448. # +Z the default
  7449. ;;
  7450. *)
  7451. lt_prog_compiler_pic='+Z'
  7452. ;;
  7453. esac
  7454. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7455. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7456. ;;
  7457. irix5* | irix6* | nonstopux*)
  7458. lt_prog_compiler_wl='-Wl,'
  7459. # PIC (with -KPIC) is the default.
  7460. lt_prog_compiler_static='-non_shared'
  7461. ;;
  7462. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7463. case $cc_basename in
  7464. # old Intel for x86_64 which still supported -KPIC.
  7465. ecc*)
  7466. lt_prog_compiler_wl='-Wl,'
  7467. lt_prog_compiler_pic='-KPIC'
  7468. lt_prog_compiler_static='-static'
  7469. ;;
  7470. # icc used to be incompatible with GCC.
  7471. # ICC 10 doesn't accept -KPIC any more.
  7472. icc* | ifort*)
  7473. lt_prog_compiler_wl='-Wl,'
  7474. lt_prog_compiler_pic='-fPIC'
  7475. lt_prog_compiler_static='-static'
  7476. ;;
  7477. # Lahey Fortran 8.1.
  7478. lf95*)
  7479. lt_prog_compiler_wl='-Wl,'
  7480. lt_prog_compiler_pic='--shared'
  7481. lt_prog_compiler_static='--static'
  7482. ;;
  7483. nagfor*)
  7484. # NAG Fortran compiler
  7485. lt_prog_compiler_wl='-Wl,-Wl,,'
  7486. lt_prog_compiler_pic='-PIC'
  7487. lt_prog_compiler_static='-Bstatic'
  7488. ;;
  7489. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7490. # Portland Group compilers (*not* the Pentium gcc compiler,
  7491. # which looks to be a dead project)
  7492. lt_prog_compiler_wl='-Wl,'
  7493. lt_prog_compiler_pic='-fpic'
  7494. lt_prog_compiler_static='-Bstatic'
  7495. ;;
  7496. ccc*)
  7497. lt_prog_compiler_wl='-Wl,'
  7498. # All Alpha code is PIC.
  7499. lt_prog_compiler_static='-non_shared'
  7500. ;;
  7501. xl* | bgxl* | bgf* | mpixl*)
  7502. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7503. lt_prog_compiler_wl='-Wl,'
  7504. lt_prog_compiler_pic='-qpic'
  7505. lt_prog_compiler_static='-qstaticlink'
  7506. ;;
  7507. *)
  7508. case `$CC -V 2>&1 | sed 5q` in
  7509. *Sun\ F* | *Sun*Fortran*)
  7510. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7511. lt_prog_compiler_pic='-KPIC'
  7512. lt_prog_compiler_static='-Bstatic'
  7513. lt_prog_compiler_wl=''
  7514. ;;
  7515. *Sun\ C*)
  7516. # Sun C 5.9
  7517. lt_prog_compiler_pic='-KPIC'
  7518. lt_prog_compiler_static='-Bstatic'
  7519. lt_prog_compiler_wl='-Wl,'
  7520. ;;
  7521. esac
  7522. ;;
  7523. esac
  7524. ;;
  7525. newsos6)
  7526. lt_prog_compiler_pic='-KPIC'
  7527. lt_prog_compiler_static='-Bstatic'
  7528. ;;
  7529. *nto* | *qnx*)
  7530. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7531. # it will coredump.
  7532. lt_prog_compiler_pic='-fPIC -shared'
  7533. ;;
  7534. osf3* | osf4* | osf5*)
  7535. lt_prog_compiler_wl='-Wl,'
  7536. # All OSF/1 code is PIC.
  7537. lt_prog_compiler_static='-non_shared'
  7538. ;;
  7539. rdos*)
  7540. lt_prog_compiler_static='-non_shared'
  7541. ;;
  7542. solaris*)
  7543. lt_prog_compiler_pic='-KPIC'
  7544. lt_prog_compiler_static='-Bstatic'
  7545. case $cc_basename in
  7546. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7547. lt_prog_compiler_wl='-Qoption ld ';;
  7548. *)
  7549. lt_prog_compiler_wl='-Wl,';;
  7550. esac
  7551. ;;
  7552. sunos4*)
  7553. lt_prog_compiler_wl='-Qoption ld '
  7554. lt_prog_compiler_pic='-PIC'
  7555. lt_prog_compiler_static='-Bstatic'
  7556. ;;
  7557. sysv4 | sysv4.2uw2* | sysv4.3*)
  7558. lt_prog_compiler_wl='-Wl,'
  7559. lt_prog_compiler_pic='-KPIC'
  7560. lt_prog_compiler_static='-Bstatic'
  7561. ;;
  7562. sysv4*MP*)
  7563. if test -d /usr/nec ;then
  7564. lt_prog_compiler_pic='-Kconform_pic'
  7565. lt_prog_compiler_static='-Bstatic'
  7566. fi
  7567. ;;
  7568. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7569. lt_prog_compiler_wl='-Wl,'
  7570. lt_prog_compiler_pic='-KPIC'
  7571. lt_prog_compiler_static='-Bstatic'
  7572. ;;
  7573. unicos*)
  7574. lt_prog_compiler_wl='-Wl,'
  7575. lt_prog_compiler_can_build_shared=no
  7576. ;;
  7577. uts4*)
  7578. lt_prog_compiler_pic='-pic'
  7579. lt_prog_compiler_static='-Bstatic'
  7580. ;;
  7581. *)
  7582. lt_prog_compiler_can_build_shared=no
  7583. ;;
  7584. esac
  7585. fi
  7586. case $host_os in
  7587. # For platforms which do not support PIC, -DPIC is meaningless:
  7588. *djgpp*)
  7589. lt_prog_compiler_pic=
  7590. ;;
  7591. *)
  7592. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7593. ;;
  7594. esac
  7595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7596. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7597. if ${lt_cv_prog_compiler_pic+:} false; then :
  7598. $as_echo_n "(cached) " >&6
  7599. else
  7600. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7601. fi
  7602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7603. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7604. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7605. #
  7606. # Check to make sure the PIC flag actually works.
  7607. #
  7608. if test -n "$lt_prog_compiler_pic"; then
  7609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7610. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7611. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7612. $as_echo_n "(cached) " >&6
  7613. else
  7614. lt_cv_prog_compiler_pic_works=no
  7615. ac_outfile=conftest.$ac_objext
  7616. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7617. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7618. # Insert the option either (1) after the last *FLAGS variable, or
  7619. # (2) before a word containing "conftest.", or (3) at the end.
  7620. # Note that $ac_compile itself does not contain backslashes and begins
  7621. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7622. # The option is referenced via a variable to avoid confusing sed.
  7623. lt_compile=`echo "$ac_compile" | $SED \
  7624. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7625. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7626. -e 's:$: $lt_compiler_flag:'`
  7627. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7628. (eval "$lt_compile" 2>conftest.err)
  7629. ac_status=$?
  7630. cat conftest.err >&5
  7631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7632. if (exit $ac_status) && test -s "$ac_outfile"; then
  7633. # The compiler can only warn and ignore the option if not recognized
  7634. # So say no if there are warnings other than the usual output.
  7635. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7636. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7637. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7638. lt_cv_prog_compiler_pic_works=yes
  7639. fi
  7640. fi
  7641. $RM conftest*
  7642. fi
  7643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7644. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7645. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7646. case $lt_prog_compiler_pic in
  7647. "" | " "*) ;;
  7648. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7649. esac
  7650. else
  7651. lt_prog_compiler_pic=
  7652. lt_prog_compiler_can_build_shared=no
  7653. fi
  7654. fi
  7655. #
  7656. # Check to make sure the static flag actually works.
  7657. #
  7658. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7660. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7661. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7662. $as_echo_n "(cached) " >&6
  7663. else
  7664. lt_cv_prog_compiler_static_works=no
  7665. save_LDFLAGS="$LDFLAGS"
  7666. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7667. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7668. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7669. # The linker can only warn and ignore the option if not recognized
  7670. # So say no if there are warnings
  7671. if test -s conftest.err; then
  7672. # Append any errors to the config.log.
  7673. cat conftest.err 1>&5
  7674. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7675. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7676. if diff conftest.exp conftest.er2 >/dev/null; then
  7677. lt_cv_prog_compiler_static_works=yes
  7678. fi
  7679. else
  7680. lt_cv_prog_compiler_static_works=yes
  7681. fi
  7682. fi
  7683. $RM -r conftest*
  7684. LDFLAGS="$save_LDFLAGS"
  7685. fi
  7686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7687. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7688. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7689. :
  7690. else
  7691. lt_prog_compiler_static=
  7692. fi
  7693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7694. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7695. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7696. $as_echo_n "(cached) " >&6
  7697. else
  7698. lt_cv_prog_compiler_c_o=no
  7699. $RM -r conftest 2>/dev/null
  7700. mkdir conftest
  7701. cd conftest
  7702. mkdir out
  7703. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7704. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7705. # Insert the option either (1) after the last *FLAGS variable, or
  7706. # (2) before a word containing "conftest.", or (3) at the end.
  7707. # Note that $ac_compile itself does not contain backslashes and begins
  7708. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7709. lt_compile=`echo "$ac_compile" | $SED \
  7710. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7711. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7712. -e 's:$: $lt_compiler_flag:'`
  7713. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7714. (eval "$lt_compile" 2>out/conftest.err)
  7715. ac_status=$?
  7716. cat out/conftest.err >&5
  7717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7718. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7719. then
  7720. # The compiler can only warn and ignore the option if not recognized
  7721. # So say no if there are warnings
  7722. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7723. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7724. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7725. lt_cv_prog_compiler_c_o=yes
  7726. fi
  7727. fi
  7728. chmod u+w . 2>&5
  7729. $RM conftest*
  7730. # SGI C++ compiler will create directory out/ii_files/ for
  7731. # template instantiation
  7732. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7733. $RM out/* && rmdir out
  7734. cd ..
  7735. $RM -r conftest
  7736. $RM conftest*
  7737. fi
  7738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7739. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7741. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7742. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7743. $as_echo_n "(cached) " >&6
  7744. else
  7745. lt_cv_prog_compiler_c_o=no
  7746. $RM -r conftest 2>/dev/null
  7747. mkdir conftest
  7748. cd conftest
  7749. mkdir out
  7750. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7751. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7752. # Insert the option either (1) after the last *FLAGS variable, or
  7753. # (2) before a word containing "conftest.", or (3) at the end.
  7754. # Note that $ac_compile itself does not contain backslashes and begins
  7755. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7756. lt_compile=`echo "$ac_compile" | $SED \
  7757. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7758. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7759. -e 's:$: $lt_compiler_flag:'`
  7760. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7761. (eval "$lt_compile" 2>out/conftest.err)
  7762. ac_status=$?
  7763. cat out/conftest.err >&5
  7764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7765. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7766. then
  7767. # The compiler can only warn and ignore the option if not recognized
  7768. # So say no if there are warnings
  7769. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7770. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7771. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7772. lt_cv_prog_compiler_c_o=yes
  7773. fi
  7774. fi
  7775. chmod u+w . 2>&5
  7776. $RM conftest*
  7777. # SGI C++ compiler will create directory out/ii_files/ for
  7778. # template instantiation
  7779. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7780. $RM out/* && rmdir out
  7781. cd ..
  7782. $RM -r conftest
  7783. $RM conftest*
  7784. fi
  7785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7786. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7787. hard_links="nottested"
  7788. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7789. # do not overwrite the value of need_locks provided by the user
  7790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7791. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7792. hard_links=yes
  7793. $RM conftest*
  7794. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7795. touch conftest.a
  7796. ln conftest.a conftest.b 2>&5 || hard_links=no
  7797. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7799. $as_echo "$hard_links" >&6; }
  7800. if test "$hard_links" = no; then
  7801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7802. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7803. need_locks=warn
  7804. fi
  7805. else
  7806. need_locks=no
  7807. fi
  7808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7809. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7810. runpath_var=
  7811. allow_undefined_flag=
  7812. always_export_symbols=no
  7813. archive_cmds=
  7814. archive_expsym_cmds=
  7815. compiler_needs_object=no
  7816. enable_shared_with_static_runtimes=no
  7817. export_dynamic_flag_spec=
  7818. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7819. hardcode_automatic=no
  7820. hardcode_direct=no
  7821. hardcode_direct_absolute=no
  7822. hardcode_libdir_flag_spec=
  7823. hardcode_libdir_flag_spec_ld=
  7824. hardcode_libdir_separator=
  7825. hardcode_minus_L=no
  7826. hardcode_shlibpath_var=unsupported
  7827. inherit_rpath=no
  7828. link_all_deplibs=unknown
  7829. module_cmds=
  7830. module_expsym_cmds=
  7831. old_archive_from_new_cmds=
  7832. old_archive_from_expsyms_cmds=
  7833. thread_safe_flag_spec=
  7834. whole_archive_flag_spec=
  7835. # include_expsyms should be a list of space-separated symbols to be *always*
  7836. # included in the symbol list
  7837. include_expsyms=
  7838. # exclude_expsyms can be an extended regexp of symbols to exclude
  7839. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7840. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7841. # as well as any symbol that contains `d'.
  7842. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7843. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7844. # platforms (ab)use it in PIC code, but their linkers get confused if
  7845. # the symbol is explicitly referenced. Since portable code cannot
  7846. # rely on this symbol name, it's probably fine to never include it in
  7847. # preloaded symbol tables.
  7848. # Exclude shared library initialization/finalization symbols.
  7849. extract_expsyms_cmds=
  7850. case $host_os in
  7851. cygwin* | mingw* | pw32* | cegcc*)
  7852. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7853. # When not using gcc, we currently assume that we are using
  7854. # Microsoft Visual C++.
  7855. if test "$GCC" != yes; then
  7856. with_gnu_ld=no
  7857. fi
  7858. ;;
  7859. interix*)
  7860. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7861. with_gnu_ld=yes
  7862. ;;
  7863. openbsd*)
  7864. with_gnu_ld=no
  7865. ;;
  7866. linux* | k*bsd*-gnu | gnu*)
  7867. link_all_deplibs=no
  7868. ;;
  7869. esac
  7870. ld_shlibs=yes
  7871. # On some targets, GNU ld is compatible enough with the native linker
  7872. # that we're better off using the native interface for both.
  7873. lt_use_gnu_ld_interface=no
  7874. if test "$with_gnu_ld" = yes; then
  7875. case $host_os in
  7876. aix*)
  7877. # The AIX port of GNU ld has always aspired to compatibility
  7878. # with the native linker. However, as the warning in the GNU ld
  7879. # block says, versions before 2.19.5* couldn't really create working
  7880. # shared libraries, regardless of the interface used.
  7881. case `$LD -v 2>&1` in
  7882. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7883. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7884. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7885. *)
  7886. lt_use_gnu_ld_interface=yes
  7887. ;;
  7888. esac
  7889. ;;
  7890. *)
  7891. lt_use_gnu_ld_interface=yes
  7892. ;;
  7893. esac
  7894. fi
  7895. if test "$lt_use_gnu_ld_interface" = yes; then
  7896. # If archive_cmds runs LD, not CC, wlarc should be empty
  7897. wlarc='${wl}'
  7898. # Set some defaults for GNU ld with shared library support. These
  7899. # are reset later if shared libraries are not supported. Putting them
  7900. # here allows them to be overridden if necessary.
  7901. runpath_var=LD_RUN_PATH
  7902. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7903. export_dynamic_flag_spec='${wl}--export-dynamic'
  7904. # ancient GNU ld didn't support --whole-archive et. al.
  7905. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7906. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7907. else
  7908. whole_archive_flag_spec=
  7909. fi
  7910. supports_anon_versioning=no
  7911. case `$LD -v 2>&1` in
  7912. *GNU\ gold*) supports_anon_versioning=yes ;;
  7913. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7914. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7915. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7916. *\ 2.11.*) ;; # other 2.11 versions
  7917. *) supports_anon_versioning=yes ;;
  7918. esac
  7919. # See if GNU ld supports shared libraries.
  7920. case $host_os in
  7921. aix[3-9]*)
  7922. # On AIX/PPC, the GNU linker is very broken
  7923. if test "$host_cpu" != ia64; then
  7924. ld_shlibs=no
  7925. cat <<_LT_EOF 1>&2
  7926. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7927. *** to be unable to reliably create shared libraries on AIX.
  7928. *** Therefore, libtool is disabling shared libraries support. If you
  7929. *** really care for shared libraries, you may want to install binutils
  7930. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7931. *** You will then need to restart the configuration process.
  7932. _LT_EOF
  7933. fi
  7934. ;;
  7935. amigaos*)
  7936. case $host_cpu in
  7937. powerpc)
  7938. # see comment about AmigaOS4 .so support
  7939. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7940. archive_expsym_cmds=''
  7941. ;;
  7942. m68k)
  7943. 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)'
  7944. hardcode_libdir_flag_spec='-L$libdir'
  7945. hardcode_minus_L=yes
  7946. ;;
  7947. esac
  7948. ;;
  7949. beos*)
  7950. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7951. allow_undefined_flag=unsupported
  7952. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7953. # support --undefined. This deserves some investigation. FIXME
  7954. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7955. else
  7956. ld_shlibs=no
  7957. fi
  7958. ;;
  7959. cygwin* | mingw* | pw32* | cegcc*)
  7960. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7961. # as there is no search path for DLLs.
  7962. hardcode_libdir_flag_spec='-L$libdir'
  7963. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7964. allow_undefined_flag=unsupported
  7965. always_export_symbols=no
  7966. enable_shared_with_static_runtimes=yes
  7967. 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'
  7968. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7969. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7970. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7971. # If the export-symbols file already is a .def file (1st line
  7972. # is EXPORTS), use it as is; otherwise, prepend...
  7973. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7974. cp $export_symbols $output_objdir/$soname.def;
  7975. else
  7976. echo EXPORTS > $output_objdir/$soname.def;
  7977. cat $export_symbols >> $output_objdir/$soname.def;
  7978. fi~
  7979. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7980. else
  7981. ld_shlibs=no
  7982. fi
  7983. ;;
  7984. haiku*)
  7985. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7986. link_all_deplibs=yes
  7987. ;;
  7988. interix[3-9]*)
  7989. hardcode_direct=no
  7990. hardcode_shlibpath_var=no
  7991. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7992. export_dynamic_flag_spec='${wl}-E'
  7993. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7994. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7995. # default) and relocated if they conflict, which is a slow very memory
  7996. # consuming and fragmenting process. To avoid this, we pick a random,
  7997. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7998. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7999. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8000. 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'
  8001. ;;
  8002. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8003. tmp_diet=no
  8004. if test "$host_os" = linux-dietlibc; then
  8005. case $cc_basename in
  8006. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8007. esac
  8008. fi
  8009. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8010. && test "$tmp_diet" = no
  8011. then
  8012. tmp_addflag=' $pic_flag'
  8013. tmp_sharedflag='-shared'
  8014. case $cc_basename,$host_cpu in
  8015. pgcc*) # Portland Group C compiler
  8016. 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'
  8017. tmp_addflag=' $pic_flag'
  8018. ;;
  8019. pgf77* | pgf90* | pgf95* | pgfortran*)
  8020. # Portland Group f77 and f90 compilers
  8021. 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'
  8022. tmp_addflag=' $pic_flag -Mnomain' ;;
  8023. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8024. tmp_addflag=' -i_dynamic' ;;
  8025. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8026. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8027. ifc* | ifort*) # Intel Fortran compiler
  8028. tmp_addflag=' -nofor_main' ;;
  8029. lf95*) # Lahey Fortran 8.1
  8030. whole_archive_flag_spec=
  8031. tmp_sharedflag='--shared' ;;
  8032. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8033. tmp_sharedflag='-qmkshrobj'
  8034. tmp_addflag= ;;
  8035. nvcc*) # Cuda Compiler Driver 2.2
  8036. 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'
  8037. compiler_needs_object=yes
  8038. ;;
  8039. esac
  8040. case `$CC -V 2>&1 | sed 5q` in
  8041. *Sun\ C*) # Sun C 5.9
  8042. 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'
  8043. compiler_needs_object=yes
  8044. tmp_sharedflag='-G' ;;
  8045. *Sun\ F*) # Sun Fortran 8.3
  8046. tmp_sharedflag='-G' ;;
  8047. esac
  8048. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8049. if test "x$supports_anon_versioning" = xyes; then
  8050. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8051. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8052. echo "local: *; };" >> $output_objdir/$libname.ver~
  8053. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8054. fi
  8055. case $cc_basename in
  8056. xlf* | bgf* | bgxlf* | mpixlf*)
  8057. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8058. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8059. hardcode_libdir_flag_spec=
  8060. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8061. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8062. if test "x$supports_anon_versioning" = xyes; then
  8063. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8064. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8065. echo "local: *; };" >> $output_objdir/$libname.ver~
  8066. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8067. fi
  8068. ;;
  8069. esac
  8070. else
  8071. ld_shlibs=no
  8072. fi
  8073. ;;
  8074. netbsd* | netbsdelf*-gnu)
  8075. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8076. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8077. wlarc=
  8078. else
  8079. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8080. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8081. fi
  8082. ;;
  8083. solaris*)
  8084. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8085. ld_shlibs=no
  8086. cat <<_LT_EOF 1>&2
  8087. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8088. *** create shared libraries on Solaris systems. Therefore, libtool
  8089. *** is disabling shared libraries support. We urge you to upgrade GNU
  8090. *** binutils to release 2.9.1 or newer. Another option is to modify
  8091. *** your PATH or compiler configuration so that the native linker is
  8092. *** used, and then restart.
  8093. _LT_EOF
  8094. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8095. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8096. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8097. else
  8098. ld_shlibs=no
  8099. fi
  8100. ;;
  8101. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8102. case `$LD -v 2>&1` in
  8103. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8104. ld_shlibs=no
  8105. cat <<_LT_EOF 1>&2
  8106. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8107. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8108. *** is disabling shared libraries support. We urge you to upgrade GNU
  8109. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8110. *** your PATH or compiler configuration so that the native linker is
  8111. *** used, and then restart.
  8112. _LT_EOF
  8113. ;;
  8114. *)
  8115. # For security reasons, it is highly recommended that you always
  8116. # use absolute paths for naming shared libraries, and exclude the
  8117. # DT_RUNPATH tag from executables and libraries. But doing so
  8118. # requires that you compile everything twice, which is a pain.
  8119. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8120. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8121. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8122. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8123. else
  8124. ld_shlibs=no
  8125. fi
  8126. ;;
  8127. esac
  8128. ;;
  8129. sunos4*)
  8130. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8131. wlarc=
  8132. hardcode_direct=yes
  8133. hardcode_shlibpath_var=no
  8134. ;;
  8135. *)
  8136. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8137. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8138. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8139. else
  8140. ld_shlibs=no
  8141. fi
  8142. ;;
  8143. esac
  8144. if test "$ld_shlibs" = no; then
  8145. runpath_var=
  8146. hardcode_libdir_flag_spec=
  8147. export_dynamic_flag_spec=
  8148. whole_archive_flag_spec=
  8149. fi
  8150. else
  8151. # PORTME fill in a description of your system's linker (not GNU ld)
  8152. case $host_os in
  8153. aix3*)
  8154. allow_undefined_flag=unsupported
  8155. always_export_symbols=yes
  8156. 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'
  8157. # Note: this linker hardcodes the directories in LIBPATH if there
  8158. # are no directories specified by -L.
  8159. hardcode_minus_L=yes
  8160. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8161. # Neither direct hardcoding nor static linking is supported with a
  8162. # broken collect2.
  8163. hardcode_direct=unsupported
  8164. fi
  8165. ;;
  8166. aix[4-9]*)
  8167. if test "$host_cpu" = ia64; then
  8168. # On IA64, the linker does run time linking by default, so we don't
  8169. # have to do anything special.
  8170. aix_use_runtimelinking=no
  8171. exp_sym_flag='-Bexport'
  8172. no_entry_flag=""
  8173. else
  8174. # If we're using GNU nm, then we don't want the "-C" option.
  8175. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8176. # Also, AIX nm treats weak defined symbols like other global
  8177. # defined symbols, whereas GNU nm marks them as "W".
  8178. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8179. 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'
  8180. else
  8181. 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'
  8182. fi
  8183. aix_use_runtimelinking=no
  8184. # Test if we are trying to use run time linking or normal
  8185. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8186. # need to do runtime linking.
  8187. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8188. for ld_flag in $LDFLAGS; do
  8189. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8190. aix_use_runtimelinking=yes
  8191. break
  8192. fi
  8193. done
  8194. ;;
  8195. esac
  8196. exp_sym_flag='-bexport'
  8197. no_entry_flag='-bnoentry'
  8198. fi
  8199. # When large executables or shared objects are built, AIX ld can
  8200. # have problems creating the table of contents. If linking a library
  8201. # or program results in "error TOC overflow" add -mminimal-toc to
  8202. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8203. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8204. archive_cmds=''
  8205. hardcode_direct=yes
  8206. hardcode_direct_absolute=yes
  8207. hardcode_libdir_separator=':'
  8208. link_all_deplibs=yes
  8209. file_list_spec='${wl}-f,'
  8210. if test "$GCC" = yes; then
  8211. case $host_os in aix4.[012]|aix4.[012].*)
  8212. # We only want to do this on AIX 4.2 and lower, the check
  8213. # below for broken collect2 doesn't work under 4.3+
  8214. collect2name=`${CC} -print-prog-name=collect2`
  8215. if test -f "$collect2name" &&
  8216. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8217. then
  8218. # We have reworked collect2
  8219. :
  8220. else
  8221. # We have old collect2
  8222. hardcode_direct=unsupported
  8223. # It fails to find uninstalled libraries when the uninstalled
  8224. # path is not listed in the libpath. Setting hardcode_minus_L
  8225. # to unsupported forces relinking
  8226. hardcode_minus_L=yes
  8227. hardcode_libdir_flag_spec='-L$libdir'
  8228. hardcode_libdir_separator=
  8229. fi
  8230. ;;
  8231. esac
  8232. shared_flag='-shared'
  8233. if test "$aix_use_runtimelinking" = yes; then
  8234. shared_flag="$shared_flag "'${wl}-G'
  8235. fi
  8236. link_all_deplibs=no
  8237. else
  8238. # not using gcc
  8239. if test "$host_cpu" = ia64; then
  8240. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8241. # chokes on -Wl,-G. The following line is correct:
  8242. shared_flag='-G'
  8243. else
  8244. if test "$aix_use_runtimelinking" = yes; then
  8245. shared_flag='${wl}-G'
  8246. else
  8247. shared_flag='${wl}-bM:SRE'
  8248. fi
  8249. fi
  8250. fi
  8251. export_dynamic_flag_spec='${wl}-bexpall'
  8252. # It seems that -bexpall does not export symbols beginning with
  8253. # underscore (_), so it is better to generate a list of symbols to export.
  8254. always_export_symbols=yes
  8255. if test "$aix_use_runtimelinking" = yes; then
  8256. # Warning - without using the other runtime loading flags (-brtl),
  8257. # -berok will link without error, but may produce a broken library.
  8258. allow_undefined_flag='-berok'
  8259. # Determine the default libpath from the value encoded in an
  8260. # empty executable.
  8261. if test "${lt_cv_aix_libpath+set}" = set; then
  8262. aix_libpath=$lt_cv_aix_libpath
  8263. else
  8264. if ${lt_cv_aix_libpath_+:} false; then :
  8265. $as_echo_n "(cached) " >&6
  8266. else
  8267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8268. /* end confdefs.h. */
  8269. int
  8270. main ()
  8271. {
  8272. ;
  8273. return 0;
  8274. }
  8275. _ACEOF
  8276. if ac_fn_c_try_link "$LINENO"; then :
  8277. lt_aix_libpath_sed='
  8278. /Import File Strings/,/^$/ {
  8279. /^0/ {
  8280. s/^0 *\([^ ]*\) *$/\1/
  8281. p
  8282. }
  8283. }'
  8284. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8285. # Check for a 64-bit object if we didn't find anything.
  8286. if test -z "$lt_cv_aix_libpath_"; then
  8287. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8288. fi
  8289. fi
  8290. rm -f core conftest.err conftest.$ac_objext \
  8291. conftest$ac_exeext conftest.$ac_ext
  8292. if test -z "$lt_cv_aix_libpath_"; then
  8293. lt_cv_aix_libpath_="/usr/lib:/lib"
  8294. fi
  8295. fi
  8296. aix_libpath=$lt_cv_aix_libpath_
  8297. fi
  8298. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8299. 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"
  8300. else
  8301. if test "$host_cpu" = ia64; then
  8302. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8303. allow_undefined_flag="-z nodefs"
  8304. 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"
  8305. else
  8306. # Determine the default libpath from the value encoded in an
  8307. # empty executable.
  8308. if test "${lt_cv_aix_libpath+set}" = set; then
  8309. aix_libpath=$lt_cv_aix_libpath
  8310. else
  8311. if ${lt_cv_aix_libpath_+:} false; then :
  8312. $as_echo_n "(cached) " >&6
  8313. else
  8314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8315. /* end confdefs.h. */
  8316. int
  8317. main ()
  8318. {
  8319. ;
  8320. return 0;
  8321. }
  8322. _ACEOF
  8323. if ac_fn_c_try_link "$LINENO"; then :
  8324. lt_aix_libpath_sed='
  8325. /Import File Strings/,/^$/ {
  8326. /^0/ {
  8327. s/^0 *\([^ ]*\) *$/\1/
  8328. p
  8329. }
  8330. }'
  8331. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8332. # Check for a 64-bit object if we didn't find anything.
  8333. if test -z "$lt_cv_aix_libpath_"; then
  8334. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8335. fi
  8336. fi
  8337. rm -f core conftest.err conftest.$ac_objext \
  8338. conftest$ac_exeext conftest.$ac_ext
  8339. if test -z "$lt_cv_aix_libpath_"; then
  8340. lt_cv_aix_libpath_="/usr/lib:/lib"
  8341. fi
  8342. fi
  8343. aix_libpath=$lt_cv_aix_libpath_
  8344. fi
  8345. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8346. # Warning - without using the other run time loading flags,
  8347. # -berok will link without error, but may produce a broken library.
  8348. no_undefined_flag=' ${wl}-bernotok'
  8349. allow_undefined_flag=' ${wl}-berok'
  8350. if test "$with_gnu_ld" = yes; then
  8351. # We only use this code for GNU lds that support --whole-archive.
  8352. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8353. else
  8354. # Exported symbols can be pulled into shared objects from archives
  8355. whole_archive_flag_spec='$convenience'
  8356. fi
  8357. archive_cmds_need_lc=yes
  8358. # This is similar to how AIX traditionally builds its shared libraries.
  8359. 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'
  8360. fi
  8361. fi
  8362. ;;
  8363. amigaos*)
  8364. case $host_cpu in
  8365. powerpc)
  8366. # see comment about AmigaOS4 .so support
  8367. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8368. archive_expsym_cmds=''
  8369. ;;
  8370. m68k)
  8371. 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)'
  8372. hardcode_libdir_flag_spec='-L$libdir'
  8373. hardcode_minus_L=yes
  8374. ;;
  8375. esac
  8376. ;;
  8377. bsdi[45]*)
  8378. export_dynamic_flag_spec=-rdynamic
  8379. ;;
  8380. cygwin* | mingw* | pw32* | cegcc*)
  8381. # When not using gcc, we currently assume that we are using
  8382. # Microsoft Visual C++.
  8383. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8384. # no search path for DLLs.
  8385. case $cc_basename in
  8386. cl*)
  8387. # Native MSVC
  8388. hardcode_libdir_flag_spec=' '
  8389. allow_undefined_flag=unsupported
  8390. always_export_symbols=yes
  8391. file_list_spec='@'
  8392. # Tell ltmain to make .lib files, not .a files.
  8393. libext=lib
  8394. # Tell ltmain to make .dll files, not .so files.
  8395. shrext_cmds=".dll"
  8396. # FIXME: Setting linknames here is a bad hack.
  8397. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8398. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8399. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8400. else
  8401. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8402. fi~
  8403. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8404. linknames='
  8405. # The linker will not automatically build a static lib if we build a DLL.
  8406. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8407. enable_shared_with_static_runtimes=yes
  8408. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8409. # Don't use ranlib
  8410. old_postinstall_cmds='chmod 644 $oldlib'
  8411. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8412. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8413. case $lt_outputfile in
  8414. *.exe|*.EXE) ;;
  8415. *)
  8416. lt_outputfile="$lt_outputfile.exe"
  8417. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8418. ;;
  8419. esac~
  8420. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8421. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8422. $RM "$lt_outputfile.manifest";
  8423. fi'
  8424. ;;
  8425. *)
  8426. # Assume MSVC wrapper
  8427. hardcode_libdir_flag_spec=' '
  8428. allow_undefined_flag=unsupported
  8429. # Tell ltmain to make .lib files, not .a files.
  8430. libext=lib
  8431. # Tell ltmain to make .dll files, not .so files.
  8432. shrext_cmds=".dll"
  8433. # FIXME: Setting linknames here is a bad hack.
  8434. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8435. # The linker will automatically build a .lib file if we build a DLL.
  8436. old_archive_from_new_cmds='true'
  8437. # FIXME: Should let the user specify the lib program.
  8438. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8439. enable_shared_with_static_runtimes=yes
  8440. ;;
  8441. esac
  8442. ;;
  8443. darwin* | rhapsody*)
  8444. archive_cmds_need_lc=no
  8445. hardcode_direct=no
  8446. hardcode_automatic=yes
  8447. hardcode_shlibpath_var=unsupported
  8448. if test "$lt_cv_ld_force_load" = "yes"; then
  8449. 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\"`'
  8450. else
  8451. whole_archive_flag_spec=''
  8452. fi
  8453. link_all_deplibs=yes
  8454. allow_undefined_flag="$_lt_dar_allow_undefined"
  8455. case $cc_basename in
  8456. ifort*) _lt_dar_can_shared=yes ;;
  8457. *) _lt_dar_can_shared=$GCC ;;
  8458. esac
  8459. if test "$_lt_dar_can_shared" = "yes"; then
  8460. output_verbose_link_cmd=func_echo_all
  8461. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8462. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8463. 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}"
  8464. 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}"
  8465. else
  8466. ld_shlibs=no
  8467. fi
  8468. ;;
  8469. dgux*)
  8470. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8471. hardcode_libdir_flag_spec='-L$libdir'
  8472. hardcode_shlibpath_var=no
  8473. ;;
  8474. freebsd1*)
  8475. ld_shlibs=no
  8476. ;;
  8477. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8478. # support. Future versions do this automatically, but an explicit c++rt0.o
  8479. # does not break anything, and helps significantly (at the cost of a little
  8480. # extra space).
  8481. freebsd2.2*)
  8482. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8483. hardcode_libdir_flag_spec='-R$libdir'
  8484. hardcode_direct=yes
  8485. hardcode_shlibpath_var=no
  8486. ;;
  8487. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8488. freebsd2*)
  8489. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8490. hardcode_direct=yes
  8491. hardcode_minus_L=yes
  8492. hardcode_shlibpath_var=no
  8493. ;;
  8494. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8495. freebsd* | dragonfly*)
  8496. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8497. hardcode_libdir_flag_spec='-R$libdir'
  8498. hardcode_direct=yes
  8499. hardcode_shlibpath_var=no
  8500. ;;
  8501. hpux9*)
  8502. if test "$GCC" = yes; then
  8503. 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'
  8504. else
  8505. 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'
  8506. fi
  8507. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8508. hardcode_libdir_separator=:
  8509. hardcode_direct=yes
  8510. # hardcode_minus_L: Not really in the search PATH,
  8511. # but as the default location of the library.
  8512. hardcode_minus_L=yes
  8513. export_dynamic_flag_spec='${wl}-E'
  8514. ;;
  8515. hpux10*)
  8516. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8517. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8518. else
  8519. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8520. fi
  8521. if test "$with_gnu_ld" = no; then
  8522. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8523. hardcode_libdir_flag_spec_ld='+b $libdir'
  8524. hardcode_libdir_separator=:
  8525. hardcode_direct=yes
  8526. hardcode_direct_absolute=yes
  8527. export_dynamic_flag_spec='${wl}-E'
  8528. # hardcode_minus_L: Not really in the search PATH,
  8529. # but as the default location of the library.
  8530. hardcode_minus_L=yes
  8531. fi
  8532. ;;
  8533. hpux11*)
  8534. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8535. case $host_cpu in
  8536. hppa*64*)
  8537. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8538. ;;
  8539. ia64*)
  8540. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8541. ;;
  8542. *)
  8543. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8544. ;;
  8545. esac
  8546. else
  8547. case $host_cpu in
  8548. hppa*64*)
  8549. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8550. ;;
  8551. ia64*)
  8552. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8553. ;;
  8554. *)
  8555. # Older versions of the 11.00 compiler do not understand -b yet
  8556. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8558. $as_echo_n "checking if $CC understands -b... " >&6; }
  8559. if ${lt_cv_prog_compiler__b+:} false; then :
  8560. $as_echo_n "(cached) " >&6
  8561. else
  8562. lt_cv_prog_compiler__b=no
  8563. save_LDFLAGS="$LDFLAGS"
  8564. LDFLAGS="$LDFLAGS -b"
  8565. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8566. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8567. # The linker can only warn and ignore the option if not recognized
  8568. # So say no if there are warnings
  8569. if test -s conftest.err; then
  8570. # Append any errors to the config.log.
  8571. cat conftest.err 1>&5
  8572. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8573. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8574. if diff conftest.exp conftest.er2 >/dev/null; then
  8575. lt_cv_prog_compiler__b=yes
  8576. fi
  8577. else
  8578. lt_cv_prog_compiler__b=yes
  8579. fi
  8580. fi
  8581. $RM -r conftest*
  8582. LDFLAGS="$save_LDFLAGS"
  8583. fi
  8584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8585. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8586. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8587. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8588. else
  8589. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8590. fi
  8591. ;;
  8592. esac
  8593. fi
  8594. if test "$with_gnu_ld" = no; then
  8595. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8596. hardcode_libdir_separator=:
  8597. case $host_cpu in
  8598. hppa*64*|ia64*)
  8599. hardcode_direct=no
  8600. hardcode_shlibpath_var=no
  8601. ;;
  8602. *)
  8603. hardcode_direct=yes
  8604. hardcode_direct_absolute=yes
  8605. export_dynamic_flag_spec='${wl}-E'
  8606. # hardcode_minus_L: Not really in the search PATH,
  8607. # but as the default location of the library.
  8608. hardcode_minus_L=yes
  8609. ;;
  8610. esac
  8611. fi
  8612. ;;
  8613. irix5* | irix6* | nonstopux*)
  8614. if test "$GCC" = yes; then
  8615. 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'
  8616. # Try to use the -exported_symbol ld option, if it does not
  8617. # work, assume that -exports_file does not work either and
  8618. # implicitly export all symbols.
  8619. # This should be the same for all languages, so no per-tag cache variable.
  8620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8621. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8622. if ${lt_cv_irix_exported_symbol+:} false; then :
  8623. $as_echo_n "(cached) " >&6
  8624. else
  8625. save_LDFLAGS="$LDFLAGS"
  8626. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8628. /* end confdefs.h. */
  8629. int foo (void) { return 0; }
  8630. _ACEOF
  8631. if ac_fn_c_try_link "$LINENO"; then :
  8632. lt_cv_irix_exported_symbol=yes
  8633. else
  8634. lt_cv_irix_exported_symbol=no
  8635. fi
  8636. rm -f core conftest.err conftest.$ac_objext \
  8637. conftest$ac_exeext conftest.$ac_ext
  8638. LDFLAGS="$save_LDFLAGS"
  8639. fi
  8640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8641. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8642. if test "$lt_cv_irix_exported_symbol" = yes; then
  8643. 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'
  8644. fi
  8645. else
  8646. 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'
  8647. 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'
  8648. fi
  8649. archive_cmds_need_lc='no'
  8650. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8651. hardcode_libdir_separator=:
  8652. inherit_rpath=yes
  8653. link_all_deplibs=yes
  8654. ;;
  8655. netbsd* | netbsdelf*-gnu)
  8656. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8657. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8658. else
  8659. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8660. fi
  8661. hardcode_libdir_flag_spec='-R$libdir'
  8662. hardcode_direct=yes
  8663. hardcode_shlibpath_var=no
  8664. ;;
  8665. newsos6)
  8666. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8667. hardcode_direct=yes
  8668. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8669. hardcode_libdir_separator=:
  8670. hardcode_shlibpath_var=no
  8671. ;;
  8672. *nto* | *qnx*)
  8673. ;;
  8674. openbsd*)
  8675. if test -f /usr/libexec/ld.so; then
  8676. hardcode_direct=yes
  8677. hardcode_shlibpath_var=no
  8678. hardcode_direct_absolute=yes
  8679. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8680. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8681. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8682. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8683. export_dynamic_flag_spec='${wl}-E'
  8684. else
  8685. case $host_os in
  8686. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8687. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8688. hardcode_libdir_flag_spec='-R$libdir'
  8689. ;;
  8690. *)
  8691. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8692. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8693. ;;
  8694. esac
  8695. fi
  8696. else
  8697. ld_shlibs=no
  8698. fi
  8699. ;;
  8700. os2*)
  8701. hardcode_libdir_flag_spec='-L$libdir'
  8702. hardcode_minus_L=yes
  8703. allow_undefined_flag=unsupported
  8704. 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'
  8705. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8706. ;;
  8707. osf3*)
  8708. if test "$GCC" = yes; then
  8709. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8710. 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'
  8711. else
  8712. allow_undefined_flag=' -expect_unresolved \*'
  8713. 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'
  8714. fi
  8715. archive_cmds_need_lc='no'
  8716. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8717. hardcode_libdir_separator=:
  8718. ;;
  8719. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8720. if test "$GCC" = yes; then
  8721. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8722. 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'
  8723. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8724. else
  8725. allow_undefined_flag=' -expect_unresolved \*'
  8726. 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'
  8727. 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~
  8728. $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'
  8729. # Both c and cxx compiler support -rpath directly
  8730. hardcode_libdir_flag_spec='-rpath $libdir'
  8731. fi
  8732. archive_cmds_need_lc='no'
  8733. hardcode_libdir_separator=:
  8734. ;;
  8735. solaris*)
  8736. no_undefined_flag=' -z defs'
  8737. if test "$GCC" = yes; then
  8738. wlarc='${wl}'
  8739. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8740. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8741. $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'
  8742. else
  8743. case `$CC -V 2>&1` in
  8744. *"Compilers 5.0"*)
  8745. wlarc=''
  8746. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8747. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8748. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8749. ;;
  8750. *)
  8751. wlarc='${wl}'
  8752. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8753. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8754. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8755. ;;
  8756. esac
  8757. fi
  8758. hardcode_libdir_flag_spec='-R$libdir'
  8759. hardcode_shlibpath_var=no
  8760. case $host_os in
  8761. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8762. *)
  8763. # The compiler driver will combine and reorder linker options,
  8764. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8765. # but is careful enough not to reorder.
  8766. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8767. if test "$GCC" = yes; then
  8768. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8769. else
  8770. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8771. fi
  8772. ;;
  8773. esac
  8774. link_all_deplibs=yes
  8775. ;;
  8776. sunos4*)
  8777. if test "x$host_vendor" = xsequent; then
  8778. # Use $CC to link under sequent, because it throws in some extra .o
  8779. # files that make .init and .fini sections work.
  8780. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8781. else
  8782. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8783. fi
  8784. hardcode_libdir_flag_spec='-L$libdir'
  8785. hardcode_direct=yes
  8786. hardcode_minus_L=yes
  8787. hardcode_shlibpath_var=no
  8788. ;;
  8789. sysv4)
  8790. case $host_vendor in
  8791. sni)
  8792. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8793. hardcode_direct=yes # is this really true???
  8794. ;;
  8795. siemens)
  8796. ## LD is ld it makes a PLAMLIB
  8797. ## CC just makes a GrossModule.
  8798. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8799. reload_cmds='$CC -r -o $output$reload_objs'
  8800. hardcode_direct=no
  8801. ;;
  8802. motorola)
  8803. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8804. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8805. ;;
  8806. esac
  8807. runpath_var='LD_RUN_PATH'
  8808. hardcode_shlibpath_var=no
  8809. ;;
  8810. sysv4.3*)
  8811. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8812. hardcode_shlibpath_var=no
  8813. export_dynamic_flag_spec='-Bexport'
  8814. ;;
  8815. sysv4*MP*)
  8816. if test -d /usr/nec; then
  8817. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8818. hardcode_shlibpath_var=no
  8819. runpath_var=LD_RUN_PATH
  8820. hardcode_runpath_var=yes
  8821. ld_shlibs=yes
  8822. fi
  8823. ;;
  8824. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8825. no_undefined_flag='${wl}-z,text'
  8826. archive_cmds_need_lc=no
  8827. hardcode_shlibpath_var=no
  8828. runpath_var='LD_RUN_PATH'
  8829. if test "$GCC" = yes; then
  8830. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8831. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8832. else
  8833. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8834. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8835. fi
  8836. ;;
  8837. sysv5* | sco3.2v5* | sco5v6*)
  8838. # Note: We can NOT use -z defs as we might desire, because we do not
  8839. # link with -lc, and that would cause any symbols used from libc to
  8840. # always be unresolved, which means just about no library would
  8841. # ever link correctly. If we're not using GNU ld we use -z text
  8842. # though, which does catch some bad symbols but isn't as heavy-handed
  8843. # as -z defs.
  8844. no_undefined_flag='${wl}-z,text'
  8845. allow_undefined_flag='${wl}-z,nodefs'
  8846. archive_cmds_need_lc=no
  8847. hardcode_shlibpath_var=no
  8848. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8849. hardcode_libdir_separator=':'
  8850. link_all_deplibs=yes
  8851. export_dynamic_flag_spec='${wl}-Bexport'
  8852. runpath_var='LD_RUN_PATH'
  8853. if test "$GCC" = yes; then
  8854. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8855. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8856. else
  8857. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8858. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8859. fi
  8860. ;;
  8861. uts4*)
  8862. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8863. hardcode_libdir_flag_spec='-L$libdir'
  8864. hardcode_shlibpath_var=no
  8865. ;;
  8866. *)
  8867. ld_shlibs=no
  8868. ;;
  8869. esac
  8870. if test x$host_vendor = xsni; then
  8871. case $host in
  8872. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8873. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8874. ;;
  8875. esac
  8876. fi
  8877. fi
  8878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8879. $as_echo "$ld_shlibs" >&6; }
  8880. test "$ld_shlibs" = no && can_build_shared=no
  8881. with_gnu_ld=$with_gnu_ld
  8882. #
  8883. # Do we need to explicitly link libc?
  8884. #
  8885. case "x$archive_cmds_need_lc" in
  8886. x|xyes)
  8887. # Assume -lc should be added
  8888. archive_cmds_need_lc=yes
  8889. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8890. case $archive_cmds in
  8891. *'~'*)
  8892. # FIXME: we may have to deal with multi-command sequences.
  8893. ;;
  8894. '$CC '*)
  8895. # Test whether the compiler implicitly links with -lc since on some
  8896. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8897. # to ld, don't add -lc before -lgcc.
  8898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8899. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8900. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8901. $as_echo_n "(cached) " >&6
  8902. else
  8903. $RM conftest*
  8904. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8905. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8906. (eval $ac_compile) 2>&5
  8907. ac_status=$?
  8908. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8909. test $ac_status = 0; } 2>conftest.err; then
  8910. soname=conftest
  8911. lib=conftest
  8912. libobjs=conftest.$ac_objext
  8913. deplibs=
  8914. wl=$lt_prog_compiler_wl
  8915. pic_flag=$lt_prog_compiler_pic
  8916. compiler_flags=-v
  8917. linker_flags=-v
  8918. verstring=
  8919. output_objdir=.
  8920. libname=conftest
  8921. lt_save_allow_undefined_flag=$allow_undefined_flag
  8922. allow_undefined_flag=
  8923. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8924. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8925. ac_status=$?
  8926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8927. test $ac_status = 0; }
  8928. then
  8929. lt_cv_archive_cmds_need_lc=no
  8930. else
  8931. lt_cv_archive_cmds_need_lc=yes
  8932. fi
  8933. allow_undefined_flag=$lt_save_allow_undefined_flag
  8934. else
  8935. cat conftest.err 1>&5
  8936. fi
  8937. $RM conftest*
  8938. fi
  8939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8940. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8941. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8942. ;;
  8943. esac
  8944. fi
  8945. ;;
  8946. esac
  8947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8948. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8949. if test "$GCC" = yes; then
  8950. case $host_os in
  8951. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8952. *) lt_awk_arg="/^libraries:/" ;;
  8953. esac
  8954. case $host_os in
  8955. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8956. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8957. esac
  8958. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8959. case $lt_search_path_spec in
  8960. *\;*)
  8961. # if the path contains ";" then we assume it to be the separator
  8962. # otherwise default to the standard path separator (i.e. ":") - it is
  8963. # assumed that no part of a normal pathname contains ";" but that should
  8964. # okay in the real world where ";" in dirpaths is itself problematic.
  8965. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8966. ;;
  8967. *)
  8968. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8969. ;;
  8970. esac
  8971. # Ok, now we have the path, separated by spaces, we can step through it
  8972. # and add multilib dir if necessary.
  8973. lt_tmp_lt_search_path_spec=
  8974. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8975. for lt_sys_path in $lt_search_path_spec; do
  8976. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8977. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8978. else
  8979. test -d "$lt_sys_path" && \
  8980. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8981. fi
  8982. done
  8983. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8984. BEGIN {RS=" "; FS="/|\n";} {
  8985. lt_foo="";
  8986. lt_count=0;
  8987. for (lt_i = NF; lt_i > 0; lt_i--) {
  8988. if ($lt_i != "" && $lt_i != ".") {
  8989. if ($lt_i == "..") {
  8990. lt_count++;
  8991. } else {
  8992. if (lt_count == 0) {
  8993. lt_foo="/" $lt_i lt_foo;
  8994. } else {
  8995. lt_count--;
  8996. }
  8997. }
  8998. }
  8999. }
  9000. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9001. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9002. }'`
  9003. # AWK program above erroneously prepends '/' to C:/dos/paths
  9004. # for these hosts.
  9005. case $host_os in
  9006. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9007. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9008. esac
  9009. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9010. else
  9011. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9012. fi
  9013. library_names_spec=
  9014. libname_spec='lib$name'
  9015. soname_spec=
  9016. shrext_cmds=".so"
  9017. postinstall_cmds=
  9018. postuninstall_cmds=
  9019. finish_cmds=
  9020. finish_eval=
  9021. shlibpath_var=
  9022. shlibpath_overrides_runpath=unknown
  9023. version_type=none
  9024. dynamic_linker="$host_os ld.so"
  9025. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9026. need_lib_prefix=unknown
  9027. hardcode_into_libs=no
  9028. # when you set need_version to no, make sure it does not cause -set_version
  9029. # flags to be left without arguments
  9030. need_version=unknown
  9031. case $host_os in
  9032. aix3*)
  9033. version_type=linux
  9034. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9035. shlibpath_var=LIBPATH
  9036. # AIX 3 has no versioning support, so we append a major version to the name.
  9037. soname_spec='${libname}${release}${shared_ext}$major'
  9038. ;;
  9039. aix[4-9]*)
  9040. version_type=linux
  9041. need_lib_prefix=no
  9042. need_version=no
  9043. hardcode_into_libs=yes
  9044. if test "$host_cpu" = ia64; then
  9045. # AIX 5 supports IA64
  9046. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9047. shlibpath_var=LD_LIBRARY_PATH
  9048. else
  9049. # With GCC up to 2.95.x, collect2 would create an import file
  9050. # for dependence libraries. The import file would start with
  9051. # the line `#! .'. This would cause the generated library to
  9052. # depend on `.', always an invalid library. This was fixed in
  9053. # development snapshots of GCC prior to 3.0.
  9054. case $host_os in
  9055. aix4 | aix4.[01] | aix4.[01].*)
  9056. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9057. echo ' yes '
  9058. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9059. :
  9060. else
  9061. can_build_shared=no
  9062. fi
  9063. ;;
  9064. esac
  9065. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9066. # soname into executable. Probably we can add versioning support to
  9067. # collect2, so additional links can be useful in future.
  9068. if test "$aix_use_runtimelinking" = yes; then
  9069. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9070. # instead of lib<name>.a to let people know that these are not
  9071. # typical AIX shared libraries.
  9072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9073. else
  9074. # We preserve .a as extension for shared libraries through AIX4.2
  9075. # and later when we are not doing run time linking.
  9076. library_names_spec='${libname}${release}.a $libname.a'
  9077. soname_spec='${libname}${release}${shared_ext}$major'
  9078. fi
  9079. shlibpath_var=LIBPATH
  9080. fi
  9081. ;;
  9082. amigaos*)
  9083. case $host_cpu in
  9084. powerpc)
  9085. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9086. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9088. ;;
  9089. m68k)
  9090. library_names_spec='$libname.ixlibrary $libname.a'
  9091. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9092. 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'
  9093. ;;
  9094. esac
  9095. ;;
  9096. beos*)
  9097. library_names_spec='${libname}${shared_ext}'
  9098. dynamic_linker="$host_os ld.so"
  9099. shlibpath_var=LIBRARY_PATH
  9100. ;;
  9101. bsdi[45]*)
  9102. version_type=linux
  9103. need_version=no
  9104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9105. soname_spec='${libname}${release}${shared_ext}$major'
  9106. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9107. shlibpath_var=LD_LIBRARY_PATH
  9108. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9109. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9110. # the default ld.so.conf also contains /usr/contrib/lib and
  9111. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9112. # libtool to hard-code these into programs
  9113. ;;
  9114. cygwin* | mingw* | pw32* | cegcc*)
  9115. version_type=windows
  9116. shrext_cmds=".dll"
  9117. need_version=no
  9118. need_lib_prefix=no
  9119. case $GCC,$cc_basename in
  9120. yes,*)
  9121. # gcc
  9122. library_names_spec='$libname.dll.a'
  9123. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9124. postinstall_cmds='base_file=`basename \${file}`~
  9125. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9126. dldir=$destdir/`dirname \$dlpath`~
  9127. test -d \$dldir || mkdir -p \$dldir~
  9128. $install_prog $dir/$dlname \$dldir/$dlname~
  9129. chmod a+x \$dldir/$dlname~
  9130. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9131. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9132. fi'
  9133. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9134. dlpath=$dir/\$dldll~
  9135. $RM \$dlpath'
  9136. shlibpath_overrides_runpath=yes
  9137. case $host_os in
  9138. cygwin*)
  9139. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9140. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9141. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9142. ;;
  9143. mingw* | cegcc*)
  9144. # MinGW DLLs use traditional 'lib' prefix
  9145. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9146. ;;
  9147. pw32*)
  9148. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9149. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9150. ;;
  9151. esac
  9152. dynamic_linker='Win32 ld.exe'
  9153. ;;
  9154. *,cl*)
  9155. # Native MSVC
  9156. libname_spec='$name'
  9157. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9158. library_names_spec='${libname}.dll.lib'
  9159. case $build_os in
  9160. mingw*)
  9161. sys_lib_search_path_spec=
  9162. lt_save_ifs=$IFS
  9163. IFS=';'
  9164. for lt_path in $LIB
  9165. do
  9166. IFS=$lt_save_ifs
  9167. # Let DOS variable expansion print the short 8.3 style file name.
  9168. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9169. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9170. done
  9171. IFS=$lt_save_ifs
  9172. # Convert to MSYS style.
  9173. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9174. ;;
  9175. cygwin*)
  9176. # Convert to unix form, then to dos form, then back to unix form
  9177. # but this time dos style (no spaces!) so that the unix form looks
  9178. # like /cygdrive/c/PROGRA~1:/cygdr...
  9179. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9180. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9181. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9182. ;;
  9183. *)
  9184. sys_lib_search_path_spec="$LIB"
  9185. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9186. # It is most probably a Windows format PATH.
  9187. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9188. else
  9189. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9190. fi
  9191. # FIXME: find the short name or the path components, as spaces are
  9192. # common. (e.g. "Program Files" -> "PROGRA~1")
  9193. ;;
  9194. esac
  9195. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9196. postinstall_cmds='base_file=`basename \${file}`~
  9197. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9198. dldir=$destdir/`dirname \$dlpath`~
  9199. test -d \$dldir || mkdir -p \$dldir~
  9200. $install_prog $dir/$dlname \$dldir/$dlname'
  9201. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9202. dlpath=$dir/\$dldll~
  9203. $RM \$dlpath'
  9204. shlibpath_overrides_runpath=yes
  9205. dynamic_linker='Win32 link.exe'
  9206. ;;
  9207. *)
  9208. # Assume MSVC wrapper
  9209. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9210. dynamic_linker='Win32 ld.exe'
  9211. ;;
  9212. esac
  9213. # FIXME: first we should search . and the directory the executable is in
  9214. shlibpath_var=PATH
  9215. ;;
  9216. darwin* | rhapsody*)
  9217. dynamic_linker="$host_os dyld"
  9218. version_type=darwin
  9219. need_lib_prefix=no
  9220. need_version=no
  9221. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9222. soname_spec='${libname}${release}${major}$shared_ext'
  9223. shlibpath_overrides_runpath=yes
  9224. shlibpath_var=DYLD_LIBRARY_PATH
  9225. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9226. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9227. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9228. ;;
  9229. dgux*)
  9230. version_type=linux
  9231. need_lib_prefix=no
  9232. need_version=no
  9233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9234. soname_spec='${libname}${release}${shared_ext}$major'
  9235. shlibpath_var=LD_LIBRARY_PATH
  9236. ;;
  9237. freebsd1*)
  9238. dynamic_linker=no
  9239. ;;
  9240. freebsd* | dragonfly*)
  9241. # DragonFly does not have aout. When/if they implement a new
  9242. # versioning mechanism, adjust this.
  9243. if test -x /usr/bin/objformat; then
  9244. objformat=`/usr/bin/objformat`
  9245. else
  9246. case $host_os in
  9247. freebsd[123]*) objformat=aout ;;
  9248. *) objformat=elf ;;
  9249. esac
  9250. fi
  9251. version_type=freebsd-$objformat
  9252. case $version_type in
  9253. freebsd-elf*)
  9254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9255. need_version=no
  9256. need_lib_prefix=no
  9257. ;;
  9258. freebsd-*)
  9259. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9260. need_version=yes
  9261. ;;
  9262. esac
  9263. shlibpath_var=LD_LIBRARY_PATH
  9264. case $host_os in
  9265. freebsd2*)
  9266. shlibpath_overrides_runpath=yes
  9267. ;;
  9268. freebsd3.[01]* | freebsdelf3.[01]*)
  9269. shlibpath_overrides_runpath=yes
  9270. hardcode_into_libs=yes
  9271. ;;
  9272. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9273. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9274. shlibpath_overrides_runpath=no
  9275. hardcode_into_libs=yes
  9276. ;;
  9277. *) # from 4.6 on, and DragonFly
  9278. shlibpath_overrides_runpath=yes
  9279. hardcode_into_libs=yes
  9280. ;;
  9281. esac
  9282. ;;
  9283. gnu*)
  9284. version_type=linux
  9285. need_lib_prefix=no
  9286. need_version=no
  9287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9288. soname_spec='${libname}${release}${shared_ext}$major'
  9289. shlibpath_var=LD_LIBRARY_PATH
  9290. shlibpath_overrides_runpath=no
  9291. hardcode_into_libs=yes
  9292. ;;
  9293. haiku*)
  9294. version_type=linux
  9295. need_lib_prefix=no
  9296. need_version=no
  9297. dynamic_linker="$host_os runtime_loader"
  9298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9299. soname_spec='${libname}${release}${shared_ext}$major'
  9300. shlibpath_var=LIBRARY_PATH
  9301. shlibpath_overrides_runpath=yes
  9302. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9303. hardcode_into_libs=yes
  9304. ;;
  9305. hpux9* | hpux10* | hpux11*)
  9306. # Give a soname corresponding to the major version so that dld.sl refuses to
  9307. # link against other versions.
  9308. version_type=sunos
  9309. need_lib_prefix=no
  9310. need_version=no
  9311. case $host_cpu in
  9312. ia64*)
  9313. shrext_cmds='.so'
  9314. hardcode_into_libs=yes
  9315. dynamic_linker="$host_os dld.so"
  9316. shlibpath_var=LD_LIBRARY_PATH
  9317. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9319. soname_spec='${libname}${release}${shared_ext}$major'
  9320. if test "X$HPUX_IA64_MODE" = X32; then
  9321. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9322. else
  9323. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9324. fi
  9325. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9326. ;;
  9327. hppa*64*)
  9328. shrext_cmds='.sl'
  9329. hardcode_into_libs=yes
  9330. dynamic_linker="$host_os dld.sl"
  9331. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9332. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9334. soname_spec='${libname}${release}${shared_ext}$major'
  9335. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9336. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9337. ;;
  9338. *)
  9339. shrext_cmds='.sl'
  9340. dynamic_linker="$host_os dld.sl"
  9341. shlibpath_var=SHLIB_PATH
  9342. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9344. soname_spec='${libname}${release}${shared_ext}$major'
  9345. ;;
  9346. esac
  9347. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9348. postinstall_cmds='chmod 555 $lib'
  9349. # or fails outright, so override atomically:
  9350. install_override_mode=555
  9351. ;;
  9352. interix[3-9]*)
  9353. version_type=linux
  9354. need_lib_prefix=no
  9355. need_version=no
  9356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9357. soname_spec='${libname}${release}${shared_ext}$major'
  9358. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9359. shlibpath_var=LD_LIBRARY_PATH
  9360. shlibpath_overrides_runpath=no
  9361. hardcode_into_libs=yes
  9362. ;;
  9363. irix5* | irix6* | nonstopux*)
  9364. case $host_os in
  9365. nonstopux*) version_type=nonstopux ;;
  9366. *)
  9367. if test "$lt_cv_prog_gnu_ld" = yes; then
  9368. version_type=linux
  9369. else
  9370. version_type=irix
  9371. fi ;;
  9372. esac
  9373. need_lib_prefix=no
  9374. need_version=no
  9375. soname_spec='${libname}${release}${shared_ext}$major'
  9376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9377. case $host_os in
  9378. irix5* | nonstopux*)
  9379. libsuff= shlibsuff=
  9380. ;;
  9381. *)
  9382. case $LD in # libtool.m4 will add one of these switches to LD
  9383. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9384. libsuff= shlibsuff= libmagic=32-bit;;
  9385. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9386. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9387. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9388. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9389. *) libsuff= shlibsuff= libmagic=never-match;;
  9390. esac
  9391. ;;
  9392. esac
  9393. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9394. shlibpath_overrides_runpath=no
  9395. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9396. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9397. hardcode_into_libs=yes
  9398. ;;
  9399. # No shared lib support for Linux oldld, aout, or coff.
  9400. linux*oldld* | linux*aout* | linux*coff*)
  9401. dynamic_linker=no
  9402. ;;
  9403. # This must be Linux ELF.
  9404. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9405. version_type=linux
  9406. need_lib_prefix=no
  9407. need_version=no
  9408. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9409. soname_spec='${libname}${release}${shared_ext}$major'
  9410. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9411. shlibpath_var=LD_LIBRARY_PATH
  9412. shlibpath_overrides_runpath=no
  9413. # Some binutils ld are patched to set DT_RUNPATH
  9414. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9415. $as_echo_n "(cached) " >&6
  9416. else
  9417. lt_cv_shlibpath_overrides_runpath=no
  9418. save_LDFLAGS=$LDFLAGS
  9419. save_libdir=$libdir
  9420. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9421. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9423. /* end confdefs.h. */
  9424. int
  9425. main ()
  9426. {
  9427. ;
  9428. return 0;
  9429. }
  9430. _ACEOF
  9431. if ac_fn_c_try_link "$LINENO"; then :
  9432. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9433. lt_cv_shlibpath_overrides_runpath=yes
  9434. fi
  9435. fi
  9436. rm -f core conftest.err conftest.$ac_objext \
  9437. conftest$ac_exeext conftest.$ac_ext
  9438. LDFLAGS=$save_LDFLAGS
  9439. libdir=$save_libdir
  9440. fi
  9441. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9442. # This implies no fast_install, which is unacceptable.
  9443. # Some rework will be needed to allow for fast_install
  9444. # before this can be enabled.
  9445. hardcode_into_libs=yes
  9446. # Append ld.so.conf contents to the search path
  9447. if test -f /etc/ld.so.conf; then
  9448. 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' ' '`
  9449. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9450. fi
  9451. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9452. # powerpc, because MkLinux only supported shared libraries with the
  9453. # GNU dynamic linker. Since this was broken with cross compilers,
  9454. # most powerpc-linux boxes support dynamic linking these days and
  9455. # people can always --disable-shared, the test was removed, and we
  9456. # assume the GNU/Linux dynamic linker is in use.
  9457. dynamic_linker='GNU/Linux ld.so'
  9458. ;;
  9459. netbsdelf*-gnu)
  9460. version_type=linux
  9461. need_lib_prefix=no
  9462. need_version=no
  9463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9464. soname_spec='${libname}${release}${shared_ext}$major'
  9465. shlibpath_var=LD_LIBRARY_PATH
  9466. shlibpath_overrides_runpath=no
  9467. hardcode_into_libs=yes
  9468. dynamic_linker='NetBSD ld.elf_so'
  9469. ;;
  9470. netbsd*)
  9471. version_type=sunos
  9472. need_lib_prefix=no
  9473. need_version=no
  9474. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9476. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9477. dynamic_linker='NetBSD (a.out) ld.so'
  9478. else
  9479. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9480. soname_spec='${libname}${release}${shared_ext}$major'
  9481. dynamic_linker='NetBSD ld.elf_so'
  9482. fi
  9483. shlibpath_var=LD_LIBRARY_PATH
  9484. shlibpath_overrides_runpath=yes
  9485. hardcode_into_libs=yes
  9486. ;;
  9487. newsos6)
  9488. version_type=linux
  9489. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9490. shlibpath_var=LD_LIBRARY_PATH
  9491. shlibpath_overrides_runpath=yes
  9492. ;;
  9493. *nto* | *qnx*)
  9494. version_type=qnx
  9495. need_lib_prefix=no
  9496. need_version=no
  9497. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9498. soname_spec='${libname}${release}${shared_ext}$major'
  9499. shlibpath_var=LD_LIBRARY_PATH
  9500. shlibpath_overrides_runpath=no
  9501. hardcode_into_libs=yes
  9502. dynamic_linker='ldqnx.so'
  9503. ;;
  9504. openbsd*)
  9505. version_type=sunos
  9506. sys_lib_dlsearch_path_spec="/usr/lib"
  9507. need_lib_prefix=no
  9508. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9509. case $host_os in
  9510. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9511. *) need_version=no ;;
  9512. esac
  9513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9514. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9515. shlibpath_var=LD_LIBRARY_PATH
  9516. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9517. case $host_os in
  9518. openbsd2.[89] | openbsd2.[89].*)
  9519. shlibpath_overrides_runpath=no
  9520. ;;
  9521. *)
  9522. shlibpath_overrides_runpath=yes
  9523. ;;
  9524. esac
  9525. else
  9526. shlibpath_overrides_runpath=yes
  9527. fi
  9528. ;;
  9529. os2*)
  9530. libname_spec='$name'
  9531. shrext_cmds=".dll"
  9532. need_lib_prefix=no
  9533. library_names_spec='$libname${shared_ext} $libname.a'
  9534. dynamic_linker='OS/2 ld.exe'
  9535. shlibpath_var=LIBPATH
  9536. ;;
  9537. osf3* | osf4* | osf5*)
  9538. version_type=osf
  9539. need_lib_prefix=no
  9540. need_version=no
  9541. soname_spec='${libname}${release}${shared_ext}$major'
  9542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9543. shlibpath_var=LD_LIBRARY_PATH
  9544. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9545. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9546. ;;
  9547. rdos*)
  9548. dynamic_linker=no
  9549. ;;
  9550. solaris*)
  9551. version_type=linux
  9552. need_lib_prefix=no
  9553. need_version=no
  9554. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9555. soname_spec='${libname}${release}${shared_ext}$major'
  9556. shlibpath_var=LD_LIBRARY_PATH
  9557. shlibpath_overrides_runpath=yes
  9558. hardcode_into_libs=yes
  9559. # ldd complains unless libraries are executable
  9560. postinstall_cmds='chmod +x $lib'
  9561. ;;
  9562. sunos4*)
  9563. version_type=sunos
  9564. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9565. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9566. shlibpath_var=LD_LIBRARY_PATH
  9567. shlibpath_overrides_runpath=yes
  9568. if test "$with_gnu_ld" = yes; then
  9569. need_lib_prefix=no
  9570. fi
  9571. need_version=yes
  9572. ;;
  9573. sysv4 | sysv4.3*)
  9574. version_type=linux
  9575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9576. soname_spec='${libname}${release}${shared_ext}$major'
  9577. shlibpath_var=LD_LIBRARY_PATH
  9578. case $host_vendor in
  9579. sni)
  9580. shlibpath_overrides_runpath=no
  9581. need_lib_prefix=no
  9582. runpath_var=LD_RUN_PATH
  9583. ;;
  9584. siemens)
  9585. need_lib_prefix=no
  9586. ;;
  9587. motorola)
  9588. need_lib_prefix=no
  9589. need_version=no
  9590. shlibpath_overrides_runpath=no
  9591. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9592. ;;
  9593. esac
  9594. ;;
  9595. sysv4*MP*)
  9596. if test -d /usr/nec ;then
  9597. version_type=linux
  9598. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9599. soname_spec='$libname${shared_ext}.$major'
  9600. shlibpath_var=LD_LIBRARY_PATH
  9601. fi
  9602. ;;
  9603. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9604. version_type=freebsd-elf
  9605. need_lib_prefix=no
  9606. need_version=no
  9607. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9608. soname_spec='${libname}${release}${shared_ext}$major'
  9609. shlibpath_var=LD_LIBRARY_PATH
  9610. shlibpath_overrides_runpath=yes
  9611. hardcode_into_libs=yes
  9612. if test "$with_gnu_ld" = yes; then
  9613. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9614. else
  9615. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9616. case $host_os in
  9617. sco3.2v5*)
  9618. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9619. ;;
  9620. esac
  9621. fi
  9622. sys_lib_dlsearch_path_spec='/usr/lib'
  9623. ;;
  9624. tpf*)
  9625. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9626. version_type=linux
  9627. need_lib_prefix=no
  9628. need_version=no
  9629. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9630. shlibpath_var=LD_LIBRARY_PATH
  9631. shlibpath_overrides_runpath=no
  9632. hardcode_into_libs=yes
  9633. ;;
  9634. uts4*)
  9635. version_type=linux
  9636. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9637. soname_spec='${libname}${release}${shared_ext}$major'
  9638. shlibpath_var=LD_LIBRARY_PATH
  9639. ;;
  9640. *)
  9641. dynamic_linker=no
  9642. ;;
  9643. esac
  9644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9645. $as_echo "$dynamic_linker" >&6; }
  9646. test "$dynamic_linker" = no && can_build_shared=no
  9647. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9648. if test "$GCC" = yes; then
  9649. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9650. fi
  9651. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9652. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9653. fi
  9654. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9655. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9656. fi
  9657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9658. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9659. hardcode_action=
  9660. if test -n "$hardcode_libdir_flag_spec" ||
  9661. test -n "$runpath_var" ||
  9662. test "X$hardcode_automatic" = "Xyes" ; then
  9663. # We can hardcode non-existent directories.
  9664. if test "$hardcode_direct" != no &&
  9665. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9666. # have to relink, otherwise we might link with an installed library
  9667. # when we should be linking with a yet-to-be-installed one
  9668. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9669. test "$hardcode_minus_L" != no; then
  9670. # Linking always hardcodes the temporary library directory.
  9671. hardcode_action=relink
  9672. else
  9673. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9674. hardcode_action=immediate
  9675. fi
  9676. else
  9677. # We cannot hardcode anything, or else we can only hardcode existing
  9678. # directories.
  9679. hardcode_action=unsupported
  9680. fi
  9681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9682. $as_echo "$hardcode_action" >&6; }
  9683. if test "$hardcode_action" = relink ||
  9684. test "$inherit_rpath" = yes; then
  9685. # Fast installation is not supported
  9686. enable_fast_install=no
  9687. elif test "$shlibpath_overrides_runpath" = yes ||
  9688. test "$enable_shared" = no; then
  9689. # Fast installation is not necessary
  9690. enable_fast_install=needless
  9691. fi
  9692. if test "x$enable_dlopen" != xyes; then
  9693. enable_dlopen=unknown
  9694. enable_dlopen_self=unknown
  9695. enable_dlopen_self_static=unknown
  9696. else
  9697. lt_cv_dlopen=no
  9698. lt_cv_dlopen_libs=
  9699. case $host_os in
  9700. beos*)
  9701. lt_cv_dlopen="load_add_on"
  9702. lt_cv_dlopen_libs=
  9703. lt_cv_dlopen_self=yes
  9704. ;;
  9705. mingw* | pw32* | cegcc*)
  9706. lt_cv_dlopen="LoadLibrary"
  9707. lt_cv_dlopen_libs=
  9708. ;;
  9709. cygwin*)
  9710. lt_cv_dlopen="dlopen"
  9711. lt_cv_dlopen_libs=
  9712. ;;
  9713. darwin*)
  9714. # if libdl is installed we need to link against it
  9715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9716. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9717. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9718. $as_echo_n "(cached) " >&6
  9719. else
  9720. ac_check_lib_save_LIBS=$LIBS
  9721. LIBS="-ldl $LIBS"
  9722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9723. /* end confdefs.h. */
  9724. /* Override any GCC internal prototype to avoid an error.
  9725. Use char because int might match the return type of a GCC
  9726. builtin and then its argument prototype would still apply. */
  9727. #ifdef __cplusplus
  9728. extern "C"
  9729. #endif
  9730. char dlopen ();
  9731. int
  9732. main ()
  9733. {
  9734. return dlopen ();
  9735. ;
  9736. return 0;
  9737. }
  9738. _ACEOF
  9739. if ac_fn_c_try_link "$LINENO"; then :
  9740. ac_cv_lib_dl_dlopen=yes
  9741. else
  9742. ac_cv_lib_dl_dlopen=no
  9743. fi
  9744. rm -f core conftest.err conftest.$ac_objext \
  9745. conftest$ac_exeext conftest.$ac_ext
  9746. LIBS=$ac_check_lib_save_LIBS
  9747. fi
  9748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9749. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9750. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9751. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9752. else
  9753. lt_cv_dlopen="dyld"
  9754. lt_cv_dlopen_libs=
  9755. lt_cv_dlopen_self=yes
  9756. fi
  9757. ;;
  9758. *)
  9759. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9760. if test "x$ac_cv_func_shl_load" = xyes; then :
  9761. lt_cv_dlopen="shl_load"
  9762. else
  9763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9764. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9765. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9766. $as_echo_n "(cached) " >&6
  9767. else
  9768. ac_check_lib_save_LIBS=$LIBS
  9769. LIBS="-ldld $LIBS"
  9770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9771. /* end confdefs.h. */
  9772. /* Override any GCC internal prototype to avoid an error.
  9773. Use char because int might match the return type of a GCC
  9774. builtin and then its argument prototype would still apply. */
  9775. #ifdef __cplusplus
  9776. extern "C"
  9777. #endif
  9778. char shl_load ();
  9779. int
  9780. main ()
  9781. {
  9782. return shl_load ();
  9783. ;
  9784. return 0;
  9785. }
  9786. _ACEOF
  9787. if ac_fn_c_try_link "$LINENO"; then :
  9788. ac_cv_lib_dld_shl_load=yes
  9789. else
  9790. ac_cv_lib_dld_shl_load=no
  9791. fi
  9792. rm -f core conftest.err conftest.$ac_objext \
  9793. conftest$ac_exeext conftest.$ac_ext
  9794. LIBS=$ac_check_lib_save_LIBS
  9795. fi
  9796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9797. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9798. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9799. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9800. else
  9801. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9802. if test "x$ac_cv_func_dlopen" = xyes; then :
  9803. lt_cv_dlopen="dlopen"
  9804. else
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9806. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9807. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9808. $as_echo_n "(cached) " >&6
  9809. else
  9810. ac_check_lib_save_LIBS=$LIBS
  9811. LIBS="-ldl $LIBS"
  9812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9813. /* end confdefs.h. */
  9814. /* Override any GCC internal prototype to avoid an error.
  9815. Use char because int might match the return type of a GCC
  9816. builtin and then its argument prototype would still apply. */
  9817. #ifdef __cplusplus
  9818. extern "C"
  9819. #endif
  9820. char dlopen ();
  9821. int
  9822. main ()
  9823. {
  9824. return dlopen ();
  9825. ;
  9826. return 0;
  9827. }
  9828. _ACEOF
  9829. if ac_fn_c_try_link "$LINENO"; then :
  9830. ac_cv_lib_dl_dlopen=yes
  9831. else
  9832. ac_cv_lib_dl_dlopen=no
  9833. fi
  9834. rm -f core conftest.err conftest.$ac_objext \
  9835. conftest$ac_exeext conftest.$ac_ext
  9836. LIBS=$ac_check_lib_save_LIBS
  9837. fi
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9839. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9840. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9841. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9842. else
  9843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9844. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9845. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9846. $as_echo_n "(cached) " >&6
  9847. else
  9848. ac_check_lib_save_LIBS=$LIBS
  9849. LIBS="-lsvld $LIBS"
  9850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9851. /* end confdefs.h. */
  9852. /* Override any GCC internal prototype to avoid an error.
  9853. Use char because int might match the return type of a GCC
  9854. builtin and then its argument prototype would still apply. */
  9855. #ifdef __cplusplus
  9856. extern "C"
  9857. #endif
  9858. char dlopen ();
  9859. int
  9860. main ()
  9861. {
  9862. return dlopen ();
  9863. ;
  9864. return 0;
  9865. }
  9866. _ACEOF
  9867. if ac_fn_c_try_link "$LINENO"; then :
  9868. ac_cv_lib_svld_dlopen=yes
  9869. else
  9870. ac_cv_lib_svld_dlopen=no
  9871. fi
  9872. rm -f core conftest.err conftest.$ac_objext \
  9873. conftest$ac_exeext conftest.$ac_ext
  9874. LIBS=$ac_check_lib_save_LIBS
  9875. fi
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9877. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9878. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9879. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9880. else
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9882. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9883. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9884. $as_echo_n "(cached) " >&6
  9885. else
  9886. ac_check_lib_save_LIBS=$LIBS
  9887. LIBS="-ldld $LIBS"
  9888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9889. /* end confdefs.h. */
  9890. /* Override any GCC internal prototype to avoid an error.
  9891. Use char because int might match the return type of a GCC
  9892. builtin and then its argument prototype would still apply. */
  9893. #ifdef __cplusplus
  9894. extern "C"
  9895. #endif
  9896. char dld_link ();
  9897. int
  9898. main ()
  9899. {
  9900. return dld_link ();
  9901. ;
  9902. return 0;
  9903. }
  9904. _ACEOF
  9905. if ac_fn_c_try_link "$LINENO"; then :
  9906. ac_cv_lib_dld_dld_link=yes
  9907. else
  9908. ac_cv_lib_dld_dld_link=no
  9909. fi
  9910. rm -f core conftest.err conftest.$ac_objext \
  9911. conftest$ac_exeext conftest.$ac_ext
  9912. LIBS=$ac_check_lib_save_LIBS
  9913. fi
  9914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9915. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9916. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9917. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9918. fi
  9919. fi
  9920. fi
  9921. fi
  9922. fi
  9923. fi
  9924. ;;
  9925. esac
  9926. if test "x$lt_cv_dlopen" != xno; then
  9927. enable_dlopen=yes
  9928. else
  9929. enable_dlopen=no
  9930. fi
  9931. case $lt_cv_dlopen in
  9932. dlopen)
  9933. save_CPPFLAGS="$CPPFLAGS"
  9934. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9935. save_LDFLAGS="$LDFLAGS"
  9936. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9937. save_LIBS="$LIBS"
  9938. LIBS="$lt_cv_dlopen_libs $LIBS"
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9940. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9941. if ${lt_cv_dlopen_self+:} false; then :
  9942. $as_echo_n "(cached) " >&6
  9943. else
  9944. if test "$cross_compiling" = yes; then :
  9945. lt_cv_dlopen_self=cross
  9946. else
  9947. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9948. lt_status=$lt_dlunknown
  9949. cat > conftest.$ac_ext <<_LT_EOF
  9950. #line $LINENO "configure"
  9951. #include "confdefs.h"
  9952. #if HAVE_DLFCN_H
  9953. #include <dlfcn.h>
  9954. #endif
  9955. #include <stdio.h>
  9956. #ifdef RTLD_GLOBAL
  9957. # define LT_DLGLOBAL RTLD_GLOBAL
  9958. #else
  9959. # ifdef DL_GLOBAL
  9960. # define LT_DLGLOBAL DL_GLOBAL
  9961. # else
  9962. # define LT_DLGLOBAL 0
  9963. # endif
  9964. #endif
  9965. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9966. find out it does not work in some platform. */
  9967. #ifndef LT_DLLAZY_OR_NOW
  9968. # ifdef RTLD_LAZY
  9969. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9970. # else
  9971. # ifdef DL_LAZY
  9972. # define LT_DLLAZY_OR_NOW DL_LAZY
  9973. # else
  9974. # ifdef RTLD_NOW
  9975. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9976. # else
  9977. # ifdef DL_NOW
  9978. # define LT_DLLAZY_OR_NOW DL_NOW
  9979. # else
  9980. # define LT_DLLAZY_OR_NOW 0
  9981. # endif
  9982. # endif
  9983. # endif
  9984. # endif
  9985. #endif
  9986. /* When -fvisbility=hidden is used, assume the code has been annotated
  9987. correspondingly for the symbols needed. */
  9988. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9989. int fnord () __attribute__((visibility("default")));
  9990. #endif
  9991. int fnord () { return 42; }
  9992. int main ()
  9993. {
  9994. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9995. int status = $lt_dlunknown;
  9996. if (self)
  9997. {
  9998. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9999. else
  10000. {
  10001. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10002. else puts (dlerror ());
  10003. }
  10004. /* dlclose (self); */
  10005. }
  10006. else
  10007. puts (dlerror ());
  10008. return status;
  10009. }
  10010. _LT_EOF
  10011. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10012. (eval $ac_link) 2>&5
  10013. ac_status=$?
  10014. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10015. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10016. (./conftest; exit; ) >&5 2>/dev/null
  10017. lt_status=$?
  10018. case x$lt_status in
  10019. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10020. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10021. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10022. esac
  10023. else :
  10024. # compilation failed
  10025. lt_cv_dlopen_self=no
  10026. fi
  10027. fi
  10028. rm -fr conftest*
  10029. fi
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10031. $as_echo "$lt_cv_dlopen_self" >&6; }
  10032. if test "x$lt_cv_dlopen_self" = xyes; then
  10033. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10035. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10036. if ${lt_cv_dlopen_self_static+:} false; then :
  10037. $as_echo_n "(cached) " >&6
  10038. else
  10039. if test "$cross_compiling" = yes; then :
  10040. lt_cv_dlopen_self_static=cross
  10041. else
  10042. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10043. lt_status=$lt_dlunknown
  10044. cat > conftest.$ac_ext <<_LT_EOF
  10045. #line $LINENO "configure"
  10046. #include "confdefs.h"
  10047. #if HAVE_DLFCN_H
  10048. #include <dlfcn.h>
  10049. #endif
  10050. #include <stdio.h>
  10051. #ifdef RTLD_GLOBAL
  10052. # define LT_DLGLOBAL RTLD_GLOBAL
  10053. #else
  10054. # ifdef DL_GLOBAL
  10055. # define LT_DLGLOBAL DL_GLOBAL
  10056. # else
  10057. # define LT_DLGLOBAL 0
  10058. # endif
  10059. #endif
  10060. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10061. find out it does not work in some platform. */
  10062. #ifndef LT_DLLAZY_OR_NOW
  10063. # ifdef RTLD_LAZY
  10064. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10065. # else
  10066. # ifdef DL_LAZY
  10067. # define LT_DLLAZY_OR_NOW DL_LAZY
  10068. # else
  10069. # ifdef RTLD_NOW
  10070. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10071. # else
  10072. # ifdef DL_NOW
  10073. # define LT_DLLAZY_OR_NOW DL_NOW
  10074. # else
  10075. # define LT_DLLAZY_OR_NOW 0
  10076. # endif
  10077. # endif
  10078. # endif
  10079. # endif
  10080. #endif
  10081. /* When -fvisbility=hidden is used, assume the code has been annotated
  10082. correspondingly for the symbols needed. */
  10083. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10084. int fnord () __attribute__((visibility("default")));
  10085. #endif
  10086. int fnord () { return 42; }
  10087. int main ()
  10088. {
  10089. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10090. int status = $lt_dlunknown;
  10091. if (self)
  10092. {
  10093. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10094. else
  10095. {
  10096. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10097. else puts (dlerror ());
  10098. }
  10099. /* dlclose (self); */
  10100. }
  10101. else
  10102. puts (dlerror ());
  10103. return status;
  10104. }
  10105. _LT_EOF
  10106. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10107. (eval $ac_link) 2>&5
  10108. ac_status=$?
  10109. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10110. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10111. (./conftest; exit; ) >&5 2>/dev/null
  10112. lt_status=$?
  10113. case x$lt_status in
  10114. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10115. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10116. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10117. esac
  10118. else :
  10119. # compilation failed
  10120. lt_cv_dlopen_self_static=no
  10121. fi
  10122. fi
  10123. rm -fr conftest*
  10124. fi
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10126. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10127. fi
  10128. CPPFLAGS="$save_CPPFLAGS"
  10129. LDFLAGS="$save_LDFLAGS"
  10130. LIBS="$save_LIBS"
  10131. ;;
  10132. esac
  10133. case $lt_cv_dlopen_self in
  10134. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10135. *) enable_dlopen_self=unknown ;;
  10136. esac
  10137. case $lt_cv_dlopen_self_static in
  10138. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10139. *) enable_dlopen_self_static=unknown ;;
  10140. esac
  10141. fi
  10142. striplib=
  10143. old_striplib=
  10144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10145. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10146. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10147. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10148. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10150. $as_echo "yes" >&6; }
  10151. else
  10152. # FIXME - insert some real tests, host_os isn't really good enough
  10153. case $host_os in
  10154. darwin*)
  10155. if test -n "$STRIP" ; then
  10156. striplib="$STRIP -x"
  10157. old_striplib="$STRIP -S"
  10158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10159. $as_echo "yes" >&6; }
  10160. else
  10161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10162. $as_echo "no" >&6; }
  10163. fi
  10164. ;;
  10165. *)
  10166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10167. $as_echo "no" >&6; }
  10168. ;;
  10169. esac
  10170. fi
  10171. # Report which library types will actually be built
  10172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10173. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10175. $as_echo "$can_build_shared" >&6; }
  10176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10177. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10178. test "$can_build_shared" = "no" && enable_shared=no
  10179. # On AIX, shared libraries and static libraries use the same namespace, and
  10180. # are all built from PIC.
  10181. case $host_os in
  10182. aix3*)
  10183. test "$enable_shared" = yes && enable_static=no
  10184. if test -n "$RANLIB"; then
  10185. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10186. postinstall_cmds='$RANLIB $lib'
  10187. fi
  10188. ;;
  10189. aix[4-9]*)
  10190. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10191. test "$enable_shared" = yes && enable_static=no
  10192. fi
  10193. ;;
  10194. esac
  10195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10196. $as_echo "$enable_shared" >&6; }
  10197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10198. $as_echo_n "checking whether to build static libraries... " >&6; }
  10199. # Make sure either enable_shared or enable_static is yes.
  10200. test "$enable_shared" = yes || enable_static=yes
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10202. $as_echo "$enable_static" >&6; }
  10203. fi
  10204. ac_ext=c
  10205. ac_cpp='$CPP $CPPFLAGS'
  10206. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10207. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10208. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10209. CC="$lt_save_CC"
  10210. ac_config_commands="$ac_config_commands libtool"
  10211. # Only expand once:
  10212. ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile examples/src/Makefile"
  10213. cat >confcache <<\_ACEOF
  10214. # This file is a shell script that caches the results of configure
  10215. # tests run on this system so they can be shared between configure
  10216. # scripts and configure runs, see configure's option --config-cache.
  10217. # It is not useful on other systems. If it contains results you don't
  10218. # want to keep, you may remove or edit it.
  10219. #
  10220. # config.status only pays attention to the cache file if you give it
  10221. # the --recheck option to rerun configure.
  10222. #
  10223. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10224. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10225. # following values.
  10226. _ACEOF
  10227. # The following way of writing the cache mishandles newlines in values,
  10228. # but we know of no workaround that is simple, portable, and efficient.
  10229. # So, we kill variables containing newlines.
  10230. # Ultrix sh set writes to stderr and can't be redirected directly,
  10231. # and sets the high bit in the cache file unless we assign to the vars.
  10232. (
  10233. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10234. eval ac_val=\$$ac_var
  10235. case $ac_val in #(
  10236. *${as_nl}*)
  10237. case $ac_var in #(
  10238. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10239. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10240. esac
  10241. case $ac_var in #(
  10242. _ | IFS | as_nl) ;; #(
  10243. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10244. *) { eval $ac_var=; unset $ac_var;} ;;
  10245. esac ;;
  10246. esac
  10247. done
  10248. (set) 2>&1 |
  10249. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10250. *${as_nl}ac_space=\ *)
  10251. # `set' does not quote correctly, so add quotes: double-quote
  10252. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10253. sed -n \
  10254. "s/'/'\\\\''/g;
  10255. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10256. ;; #(
  10257. *)
  10258. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10259. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10260. ;;
  10261. esac |
  10262. sort
  10263. ) |
  10264. sed '
  10265. /^ac_cv_env_/b end
  10266. t clear
  10267. :clear
  10268. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10269. t end
  10270. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10271. :end' >>confcache
  10272. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10273. if test -w "$cache_file"; then
  10274. if test "x$cache_file" != "x/dev/null"; then
  10275. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10276. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10277. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10278. cat confcache >"$cache_file"
  10279. else
  10280. case $cache_file in #(
  10281. */* | ?:*)
  10282. mv -f confcache "$cache_file"$$ &&
  10283. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10284. *)
  10285. mv -f confcache "$cache_file" ;;
  10286. esac
  10287. fi
  10288. fi
  10289. else
  10290. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10291. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10292. fi
  10293. fi
  10294. rm -f confcache
  10295. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10296. # Let make expand exec_prefix.
  10297. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10298. # Transform confdefs.h into DEFS.
  10299. # Protect against shell expansion while executing Makefile rules.
  10300. # Protect against Makefile macro expansion.
  10301. #
  10302. # If the first sed substitution is executed (which looks for macros that
  10303. # take arguments), then branch to the quote section. Otherwise,
  10304. # look for a macro that doesn't take arguments.
  10305. ac_script='
  10306. :mline
  10307. /\\$/{
  10308. N
  10309. s,\\\n,,
  10310. b mline
  10311. }
  10312. t clear
  10313. :clear
  10314. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  10315. t quote
  10316. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  10317. t quote
  10318. b any
  10319. :quote
  10320. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  10321. s/\[/\\&/g
  10322. s/\]/\\&/g
  10323. s/\$/$$/g
  10324. H
  10325. :any
  10326. ${
  10327. g
  10328. s/^\n//
  10329. s/\n/ /g
  10330. p
  10331. }
  10332. '
  10333. DEFS=`sed -n "$ac_script" confdefs.h`
  10334. ac_libobjs=
  10335. ac_ltlibobjs=
  10336. U=
  10337. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10338. # 1. Remove the extension, and $U if already installed.
  10339. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10340. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10341. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10342. # will be set to the directory where LIBOBJS objects are built.
  10343. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10344. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10345. done
  10346. LIBOBJS=$ac_libobjs
  10347. LTLIBOBJS=$ac_ltlibobjs
  10348. if test -n "$EXEEXT"; then
  10349. am__EXEEXT_TRUE=
  10350. am__EXEEXT_FALSE='#'
  10351. else
  10352. am__EXEEXT_TRUE='#'
  10353. am__EXEEXT_FALSE=
  10354. fi
  10355. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10356. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10357. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10358. fi
  10359. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10360. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10361. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10362. fi
  10363. if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
  10364. as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
  10365. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10366. fi
  10367. if test -z "${TARGET_WIN_TRUE}" && test -z "${TARGET_WIN_FALSE}"; then
  10368. as_fn_error $? "conditional \"TARGET_WIN\" was never defined.
  10369. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10370. fi
  10371. if test -z "${TARGET_LINUX_TRUE}" && test -z "${TARGET_LINUX_FALSE}"; then
  10372. as_fn_error $? "conditional \"TARGET_LINUX\" was never defined.
  10373. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10374. fi
  10375. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  10376. as_fn_error $? "conditional \"DEBUG\" was never defined.
  10377. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10378. fi
  10379. : "${CONFIG_STATUS=./config.status}"
  10380. ac_write_fail=0
  10381. ac_clean_files_save=$ac_clean_files
  10382. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10383. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10384. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10385. as_write_fail=0
  10386. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10387. #! $SHELL
  10388. # Generated by $as_me.
  10389. # Run this file to recreate the current configuration.
  10390. # Compiler output produced by configure, useful for debugging
  10391. # configure, is in config.log if it exists.
  10392. debug=false
  10393. ac_cs_recheck=false
  10394. ac_cs_silent=false
  10395. SHELL=\${CONFIG_SHELL-$SHELL}
  10396. export SHELL
  10397. _ASEOF
  10398. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10399. ## -------------------- ##
  10400. ## M4sh Initialization. ##
  10401. ## -------------------- ##
  10402. # Be more Bourne compatible
  10403. DUALCASE=1; export DUALCASE # for MKS sh
  10404. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10405. emulate sh
  10406. NULLCMD=:
  10407. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10408. # is contrary to our usage. Disable this feature.
  10409. alias -g '${1+"$@"}'='"$@"'
  10410. setopt NO_GLOB_SUBST
  10411. else
  10412. case `(set -o) 2>/dev/null` in #(
  10413. *posix*) :
  10414. set -o posix ;; #(
  10415. *) :
  10416. ;;
  10417. esac
  10418. fi
  10419. as_nl='
  10420. '
  10421. export as_nl
  10422. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10423. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10424. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10425. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10426. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10427. # but without wasting forks for bash or zsh.
  10428. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10429. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10430. as_echo='print -r --'
  10431. as_echo_n='print -rn --'
  10432. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10433. as_echo='printf %s\n'
  10434. as_echo_n='printf %s'
  10435. else
  10436. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10437. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10438. as_echo_n='/usr/ucb/echo -n'
  10439. else
  10440. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10441. as_echo_n_body='eval
  10442. arg=$1;
  10443. case $arg in #(
  10444. *"$as_nl"*)
  10445. expr "X$arg" : "X\\(.*\\)$as_nl";
  10446. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10447. esac;
  10448. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10449. '
  10450. export as_echo_n_body
  10451. as_echo_n='sh -c $as_echo_n_body as_echo'
  10452. fi
  10453. export as_echo_body
  10454. as_echo='sh -c $as_echo_body as_echo'
  10455. fi
  10456. # The user is always right.
  10457. if test "${PATH_SEPARATOR+set}" != set; then
  10458. PATH_SEPARATOR=:
  10459. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10460. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10461. PATH_SEPARATOR=';'
  10462. }
  10463. fi
  10464. # IFS
  10465. # We need space, tab and new line, in precisely that order. Quoting is
  10466. # there to prevent editors from complaining about space-tab.
  10467. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10468. # splitting by setting IFS to empty value.)
  10469. IFS=" "" $as_nl"
  10470. # Find who we are. Look in the path if we contain no directory separator.
  10471. as_myself=
  10472. case $0 in #((
  10473. *[\\/]* ) as_myself=$0 ;;
  10474. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10475. for as_dir in $PATH
  10476. do
  10477. IFS=$as_save_IFS
  10478. test -z "$as_dir" && as_dir=.
  10479. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10480. done
  10481. IFS=$as_save_IFS
  10482. ;;
  10483. esac
  10484. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10485. # in which case we are not to be found in the path.
  10486. if test "x$as_myself" = x; then
  10487. as_myself=$0
  10488. fi
  10489. if test ! -f "$as_myself"; then
  10490. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10491. exit 1
  10492. fi
  10493. # Unset variables that we do not need and which cause bugs (e.g. in
  10494. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10495. # suppresses any "Segmentation fault" message there. '((' could
  10496. # trigger a bug in pdksh 5.2.14.
  10497. for as_var in BASH_ENV ENV MAIL MAILPATH
  10498. do eval test x\${$as_var+set} = xset \
  10499. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10500. done
  10501. PS1='$ '
  10502. PS2='> '
  10503. PS4='+ '
  10504. # NLS nuisances.
  10505. LC_ALL=C
  10506. export LC_ALL
  10507. LANGUAGE=C
  10508. export LANGUAGE
  10509. # CDPATH.
  10510. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10511. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10512. # ----------------------------------------
  10513. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10514. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10515. # script with STATUS, using 1 if that was 0.
  10516. as_fn_error ()
  10517. {
  10518. as_status=$1; test $as_status -eq 0 && as_status=1
  10519. if test "$4"; then
  10520. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10521. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10522. fi
  10523. $as_echo "$as_me: error: $2" >&2
  10524. as_fn_exit $as_status
  10525. } # as_fn_error
  10526. # as_fn_set_status STATUS
  10527. # -----------------------
  10528. # Set $? to STATUS, without forking.
  10529. as_fn_set_status ()
  10530. {
  10531. return $1
  10532. } # as_fn_set_status
  10533. # as_fn_exit STATUS
  10534. # -----------------
  10535. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10536. as_fn_exit ()
  10537. {
  10538. set +e
  10539. as_fn_set_status $1
  10540. exit $1
  10541. } # as_fn_exit
  10542. # as_fn_unset VAR
  10543. # ---------------
  10544. # Portably unset VAR.
  10545. as_fn_unset ()
  10546. {
  10547. { eval $1=; unset $1;}
  10548. }
  10549. as_unset=as_fn_unset
  10550. # as_fn_append VAR VALUE
  10551. # ----------------------
  10552. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10553. # advantage of any shell optimizations that allow amortized linear growth over
  10554. # repeated appends, instead of the typical quadratic growth present in naive
  10555. # implementations.
  10556. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10557. eval 'as_fn_append ()
  10558. {
  10559. eval $1+=\$2
  10560. }'
  10561. else
  10562. as_fn_append ()
  10563. {
  10564. eval $1=\$$1\$2
  10565. }
  10566. fi # as_fn_append
  10567. # as_fn_arith ARG...
  10568. # ------------------
  10569. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10570. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10571. # must be portable across $(()) and expr.
  10572. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10573. eval 'as_fn_arith ()
  10574. {
  10575. as_val=$(( $* ))
  10576. }'
  10577. else
  10578. as_fn_arith ()
  10579. {
  10580. as_val=`expr "$@" || test $? -eq 1`
  10581. }
  10582. fi # as_fn_arith
  10583. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10584. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10585. as_expr=expr
  10586. else
  10587. as_expr=false
  10588. fi
  10589. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10590. as_basename=basename
  10591. else
  10592. as_basename=false
  10593. fi
  10594. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10595. as_dirname=dirname
  10596. else
  10597. as_dirname=false
  10598. fi
  10599. as_me=`$as_basename -- "$0" ||
  10600. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10601. X"$0" : 'X\(//\)$' \| \
  10602. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10603. $as_echo X/"$0" |
  10604. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10605. s//\1/
  10606. q
  10607. }
  10608. /^X\/\(\/\/\)$/{
  10609. s//\1/
  10610. q
  10611. }
  10612. /^X\/\(\/\).*/{
  10613. s//\1/
  10614. q
  10615. }
  10616. s/.*/./; q'`
  10617. # Avoid depending upon Character Ranges.
  10618. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10619. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10620. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10621. as_cr_digits='0123456789'
  10622. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10623. ECHO_C= ECHO_N= ECHO_T=
  10624. case `echo -n x` in #(((((
  10625. -n*)
  10626. case `echo 'xy\c'` in
  10627. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10628. xy) ECHO_C='\c';;
  10629. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10630. ECHO_T=' ';;
  10631. esac;;
  10632. *)
  10633. ECHO_N='-n';;
  10634. esac
  10635. rm -f conf$$ conf$$.exe conf$$.file
  10636. if test -d conf$$.dir; then
  10637. rm -f conf$$.dir/conf$$.file
  10638. else
  10639. rm -f conf$$.dir
  10640. mkdir conf$$.dir 2>/dev/null
  10641. fi
  10642. if (echo >conf$$.file) 2>/dev/null; then
  10643. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10644. as_ln_s='ln -s'
  10645. # ... but there are two gotchas:
  10646. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10647. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10648. # In both cases, we have to default to `cp -p'.
  10649. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10650. as_ln_s='cp -p'
  10651. elif ln conf$$.file conf$$ 2>/dev/null; then
  10652. as_ln_s=ln
  10653. else
  10654. as_ln_s='cp -p'
  10655. fi
  10656. else
  10657. as_ln_s='cp -p'
  10658. fi
  10659. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10660. rmdir conf$$.dir 2>/dev/null
  10661. # as_fn_mkdir_p
  10662. # -------------
  10663. # Create "$as_dir" as a directory, including parents if necessary.
  10664. as_fn_mkdir_p ()
  10665. {
  10666. case $as_dir in #(
  10667. -*) as_dir=./$as_dir;;
  10668. esac
  10669. test -d "$as_dir" || eval $as_mkdir_p || {
  10670. as_dirs=
  10671. while :; do
  10672. case $as_dir in #(
  10673. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10674. *) as_qdir=$as_dir;;
  10675. esac
  10676. as_dirs="'$as_qdir' $as_dirs"
  10677. as_dir=`$as_dirname -- "$as_dir" ||
  10678. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10679. X"$as_dir" : 'X\(//\)[^/]' \| \
  10680. X"$as_dir" : 'X\(//\)$' \| \
  10681. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10682. $as_echo X"$as_dir" |
  10683. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10684. s//\1/
  10685. q
  10686. }
  10687. /^X\(\/\/\)[^/].*/{
  10688. s//\1/
  10689. q
  10690. }
  10691. /^X\(\/\/\)$/{
  10692. s//\1/
  10693. q
  10694. }
  10695. /^X\(\/\).*/{
  10696. s//\1/
  10697. q
  10698. }
  10699. s/.*/./; q'`
  10700. test -d "$as_dir" && break
  10701. done
  10702. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10703. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10704. } # as_fn_mkdir_p
  10705. if mkdir -p . 2>/dev/null; then
  10706. as_mkdir_p='mkdir -p "$as_dir"'
  10707. else
  10708. test -d ./-p && rmdir ./-p
  10709. as_mkdir_p=false
  10710. fi
  10711. if test -x / >/dev/null 2>&1; then
  10712. as_test_x='test -x'
  10713. else
  10714. if ls -dL / >/dev/null 2>&1; then
  10715. as_ls_L_option=L
  10716. else
  10717. as_ls_L_option=
  10718. fi
  10719. as_test_x='
  10720. eval sh -c '\''
  10721. if test -d "$1"; then
  10722. test -d "$1/.";
  10723. else
  10724. case $1 in #(
  10725. -*)set "./$1";;
  10726. esac;
  10727. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  10728. ???[sx]*):;;*)false;;esac;fi
  10729. '\'' sh
  10730. '
  10731. fi
  10732. as_executable_p=$as_test_x
  10733. # Sed expression to map a string onto a valid CPP name.
  10734. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10735. # Sed expression to map a string onto a valid variable name.
  10736. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10737. exec 6>&1
  10738. ## ----------------------------------- ##
  10739. ## Main body of $CONFIG_STATUS script. ##
  10740. ## ----------------------------------- ##
  10741. _ASEOF
  10742. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10743. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10744. # Save the log message, to keep $0 and so on meaningful, and to
  10745. # report actual input values of CONFIG_FILES etc. instead of their
  10746. # values after options handling.
  10747. ac_log="
  10748. This file was extended by OPCUAServer $as_me 1.0, which was
  10749. generated by GNU Autoconf 2.68. Invocation command line was
  10750. CONFIG_FILES = $CONFIG_FILES
  10751. CONFIG_HEADERS = $CONFIG_HEADERS
  10752. CONFIG_LINKS = $CONFIG_LINKS
  10753. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10754. $ $0 $@
  10755. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10756. "
  10757. _ACEOF
  10758. case $ac_config_files in *"
  10759. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10760. esac
  10761. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10762. # Files that config.status was made for.
  10763. config_files="$ac_config_files"
  10764. config_commands="$ac_config_commands"
  10765. _ACEOF
  10766. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10767. ac_cs_usage="\
  10768. \`$as_me' instantiates files and other configuration actions
  10769. from templates according to the current configuration. Unless the files
  10770. and actions are specified as TAGs, all are instantiated by default.
  10771. Usage: $0 [OPTION]... [TAG]...
  10772. -h, --help print this help, then exit
  10773. -V, --version print version number and configuration settings, then exit
  10774. --config print configuration, then exit
  10775. -q, --quiet, --silent
  10776. do not print progress messages
  10777. -d, --debug don't remove temporary files
  10778. --recheck update $as_me by reconfiguring in the same conditions
  10779. --file=FILE[:TEMPLATE]
  10780. instantiate the configuration file FILE
  10781. Configuration files:
  10782. $config_files
  10783. Configuration commands:
  10784. $config_commands
  10785. Report bugs to the package provider."
  10786. _ACEOF
  10787. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10788. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10789. ac_cs_version="\\
  10790. OPCUAServer config.status 1.0
  10791. configured by $0, generated by GNU Autoconf 2.68,
  10792. with options \\"\$ac_cs_config\\"
  10793. Copyright (C) 2010 Free Software Foundation, Inc.
  10794. This config.status script is free software; the Free Software Foundation
  10795. gives unlimited permission to copy, distribute and modify it."
  10796. ac_pwd='$ac_pwd'
  10797. srcdir='$srcdir'
  10798. INSTALL='$INSTALL'
  10799. MKDIR_P='$MKDIR_P'
  10800. AWK='$AWK'
  10801. test -n "\$AWK" || AWK=awk
  10802. _ACEOF
  10803. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10804. # The default lists apply if the user does not specify any file.
  10805. ac_need_defaults=:
  10806. while test $# != 0
  10807. do
  10808. case $1 in
  10809. --*=?*)
  10810. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10811. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10812. ac_shift=:
  10813. ;;
  10814. --*=)
  10815. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10816. ac_optarg=
  10817. ac_shift=:
  10818. ;;
  10819. *)
  10820. ac_option=$1
  10821. ac_optarg=$2
  10822. ac_shift=shift
  10823. ;;
  10824. esac
  10825. case $ac_option in
  10826. # Handling of the options.
  10827. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10828. ac_cs_recheck=: ;;
  10829. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10830. $as_echo "$ac_cs_version"; exit ;;
  10831. --config | --confi | --conf | --con | --co | --c )
  10832. $as_echo "$ac_cs_config"; exit ;;
  10833. --debug | --debu | --deb | --de | --d | -d )
  10834. debug=: ;;
  10835. --file | --fil | --fi | --f )
  10836. $ac_shift
  10837. case $ac_optarg in
  10838. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10839. '') as_fn_error $? "missing file argument" ;;
  10840. esac
  10841. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10842. ac_need_defaults=false;;
  10843. --he | --h | --help | --hel | -h )
  10844. $as_echo "$ac_cs_usage"; exit ;;
  10845. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10846. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10847. ac_cs_silent=: ;;
  10848. # This is an error.
  10849. -*) as_fn_error $? "unrecognized option: \`$1'
  10850. Try \`$0 --help' for more information." ;;
  10851. *) as_fn_append ac_config_targets " $1"
  10852. ac_need_defaults=false ;;
  10853. esac
  10854. shift
  10855. done
  10856. ac_configure_extra_args=
  10857. if $ac_cs_silent; then
  10858. exec 6>/dev/null
  10859. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10860. fi
  10861. _ACEOF
  10862. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10863. if \$ac_cs_recheck; then
  10864. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10865. shift
  10866. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10867. CONFIG_SHELL='$SHELL'
  10868. export CONFIG_SHELL
  10869. exec "\$@"
  10870. fi
  10871. _ACEOF
  10872. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10873. exec 5>>config.log
  10874. {
  10875. echo
  10876. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10877. ## Running $as_me. ##
  10878. _ASBOX
  10879. $as_echo "$ac_log"
  10880. } >&5
  10881. _ACEOF
  10882. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10883. #
  10884. # INIT-COMMANDS
  10885. #
  10886. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10887. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10888. # if CDPATH is set.
  10889. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10890. sed_quote_subst='$sed_quote_subst'
  10891. double_quote_subst='$double_quote_subst'
  10892. delay_variable_subst='$delay_variable_subst'
  10893. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  10894. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  10895. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10896. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10897. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10898. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10899. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10900. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10901. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10902. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10903. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10904. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10905. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10906. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10907. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10908. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10909. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10910. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10911. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10912. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10913. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10914. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10915. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10916. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10917. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10918. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10919. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10920. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10921. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10922. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10923. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10924. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  10925. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  10926. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10927. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10928. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10929. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10930. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  10931. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  10932. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  10933. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10934. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10935. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  10936. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10937. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10938. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10939. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10940. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10941. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10942. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10943. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10944. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10945. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10946. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10947. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10948. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10949. 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"`'
  10950. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  10951. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  10952. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10953. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10954. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10955. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10956. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10957. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10958. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10959. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10960. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  10961. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10962. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10963. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10964. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10965. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10966. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10967. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10968. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10969. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10970. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10971. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10972. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10973. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10974. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10975. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10976. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10977. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10978. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10979. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10980. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10981. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10982. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10983. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10984. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  10985. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10986. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10987. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10988. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10989. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10990. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10991. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10992. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10993. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10994. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10995. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10996. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10997. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10998. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  10999. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11000. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11001. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11002. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11003. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11004. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11005. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11006. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11007. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11008. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11009. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11010. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11011. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11012. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11013. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11014. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11015. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11016. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11017. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11018. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11019. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11020. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11021. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11022. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11023. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11024. LTCC='$LTCC'
  11025. LTCFLAGS='$LTCFLAGS'
  11026. compiler='$compiler_DEFAULT'
  11027. # A function that is used when there is no print builtin or printf.
  11028. func_fallback_echo ()
  11029. {
  11030. eval 'cat <<_LTECHO_EOF
  11031. \$1
  11032. _LTECHO_EOF'
  11033. }
  11034. # Quote evaled strings.
  11035. for var in AS \
  11036. DLLTOOL \
  11037. OBJDUMP \
  11038. SHELL \
  11039. ECHO \
  11040. SED \
  11041. GREP \
  11042. EGREP \
  11043. FGREP \
  11044. LD \
  11045. NM \
  11046. LN_S \
  11047. lt_SP2NL \
  11048. lt_NL2SP \
  11049. reload_flag \
  11050. deplibs_check_method \
  11051. file_magic_cmd \
  11052. file_magic_glob \
  11053. want_nocaseglob \
  11054. sharedlib_from_linklib_cmd \
  11055. AR \
  11056. AR_FLAGS \
  11057. archiver_list_spec \
  11058. STRIP \
  11059. RANLIB \
  11060. CC \
  11061. CFLAGS \
  11062. compiler \
  11063. lt_cv_sys_global_symbol_pipe \
  11064. lt_cv_sys_global_symbol_to_cdecl \
  11065. lt_cv_sys_global_symbol_to_c_name_address \
  11066. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11067. nm_file_list_spec \
  11068. lt_prog_compiler_no_builtin_flag \
  11069. lt_prog_compiler_pic \
  11070. lt_prog_compiler_wl \
  11071. lt_prog_compiler_static \
  11072. lt_cv_prog_compiler_c_o \
  11073. need_locks \
  11074. MANIFEST_TOOL \
  11075. DSYMUTIL \
  11076. NMEDIT \
  11077. LIPO \
  11078. OTOOL \
  11079. OTOOL64 \
  11080. shrext_cmds \
  11081. export_dynamic_flag_spec \
  11082. whole_archive_flag_spec \
  11083. compiler_needs_object \
  11084. with_gnu_ld \
  11085. allow_undefined_flag \
  11086. no_undefined_flag \
  11087. hardcode_libdir_flag_spec \
  11088. hardcode_libdir_flag_spec_ld \
  11089. hardcode_libdir_separator \
  11090. exclude_expsyms \
  11091. include_expsyms \
  11092. file_list_spec \
  11093. variables_saved_for_relink \
  11094. libname_spec \
  11095. library_names_spec \
  11096. soname_spec \
  11097. install_override_mode \
  11098. finish_eval \
  11099. old_striplib \
  11100. striplib; do
  11101. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11102. *[\\\\\\\`\\"\\\$]*)
  11103. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11104. ;;
  11105. *)
  11106. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11107. ;;
  11108. esac
  11109. done
  11110. # Double-quote double-evaled strings.
  11111. for var in reload_cmds \
  11112. old_postinstall_cmds \
  11113. old_postuninstall_cmds \
  11114. old_archive_cmds \
  11115. extract_expsyms_cmds \
  11116. old_archive_from_new_cmds \
  11117. old_archive_from_expsyms_cmds \
  11118. archive_cmds \
  11119. archive_expsym_cmds \
  11120. module_cmds \
  11121. module_expsym_cmds \
  11122. export_symbols_cmds \
  11123. prelink_cmds \
  11124. postlink_cmds \
  11125. postinstall_cmds \
  11126. postuninstall_cmds \
  11127. finish_cmds \
  11128. sys_lib_search_path_spec \
  11129. sys_lib_dlsearch_path_spec; do
  11130. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11131. *[\\\\\\\`\\"\\\$]*)
  11132. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11133. ;;
  11134. *)
  11135. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11136. ;;
  11137. esac
  11138. done
  11139. ac_aux_dir='$ac_aux_dir'
  11140. xsi_shell='$xsi_shell'
  11141. lt_shell_append='$lt_shell_append'
  11142. # See if we are running on zsh, and set the options which allow our
  11143. # commands through without removal of \ escapes INIT.
  11144. if test -n "\${ZSH_VERSION+set}" ; then
  11145. setopt NO_GLOB_SUBST
  11146. fi
  11147. PACKAGE='$PACKAGE'
  11148. VERSION='$VERSION'
  11149. TIMESTAMP='$TIMESTAMP'
  11150. RM='$RM'
  11151. ofile='$ofile'
  11152. _ACEOF
  11153. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11154. # Handling of arguments.
  11155. for ac_config_target in $ac_config_targets
  11156. do
  11157. case $ac_config_target in
  11158. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11159. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11160. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11161. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11162. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  11163. "examples/src/Makefile") CONFIG_FILES="$CONFIG_FILES examples/src/Makefile" ;;
  11164. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11165. esac
  11166. done
  11167. # If the user did not use the arguments to specify the items to instantiate,
  11168. # then the envvar interface is used. Set only those that are not.
  11169. # We use the long form for the default assignment because of an extremely
  11170. # bizarre bug on SunOS 4.1.3.
  11171. if $ac_need_defaults; then
  11172. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11173. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11174. fi
  11175. # Have a temporary directory for convenience. Make it in the build tree
  11176. # simply because there is no reason against having it here, and in addition,
  11177. # creating and moving files from /tmp can sometimes cause problems.
  11178. # Hook for its removal unless debugging.
  11179. # Note that there is a small window in which the directory will not be cleaned:
  11180. # after its creation but before its name has been assigned to `$tmp'.
  11181. $debug ||
  11182. {
  11183. tmp= ac_tmp=
  11184. trap 'exit_status=$?
  11185. : "${ac_tmp:=$tmp}"
  11186. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11187. ' 0
  11188. trap 'as_fn_exit 1' 1 2 13 15
  11189. }
  11190. # Create a (secure) tmp directory for tmp files.
  11191. {
  11192. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11193. test -d "$tmp"
  11194. } ||
  11195. {
  11196. tmp=./conf$$-$RANDOM
  11197. (umask 077 && mkdir "$tmp")
  11198. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11199. ac_tmp=$tmp
  11200. # Set up the scripts for CONFIG_FILES section.
  11201. # No need to generate them if there are no CONFIG_FILES.
  11202. # This happens for instance with `./config.status config.h'.
  11203. if test -n "$CONFIG_FILES"; then
  11204. ac_cr=`echo X | tr X '\015'`
  11205. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11206. # But we know of no other shell where ac_cr would be empty at this
  11207. # point, so we can use a bashism as a fallback.
  11208. if test "x$ac_cr" = x; then
  11209. eval ac_cr=\$\'\\r\'
  11210. fi
  11211. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11212. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11213. ac_cs_awk_cr='\\r'
  11214. else
  11215. ac_cs_awk_cr=$ac_cr
  11216. fi
  11217. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11218. _ACEOF
  11219. {
  11220. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11221. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11222. echo "_ACEOF"
  11223. } >conf$$subs.sh ||
  11224. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11225. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11226. ac_delim='%!_!# '
  11227. for ac_last_try in false false false false false :; do
  11228. . ./conf$$subs.sh ||
  11229. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11230. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11231. if test $ac_delim_n = $ac_delim_num; then
  11232. break
  11233. elif $ac_last_try; then
  11234. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11235. else
  11236. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11237. fi
  11238. done
  11239. rm -f conf$$subs.sh
  11240. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11241. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11242. _ACEOF
  11243. sed -n '
  11244. h
  11245. s/^/S["/; s/!.*/"]=/
  11246. p
  11247. g
  11248. s/^[^!]*!//
  11249. :repl
  11250. t repl
  11251. s/'"$ac_delim"'$//
  11252. t delim
  11253. :nl
  11254. h
  11255. s/\(.\{148\}\)..*/\1/
  11256. t more1
  11257. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11258. p
  11259. n
  11260. b repl
  11261. :more1
  11262. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11263. p
  11264. g
  11265. s/.\{148\}//
  11266. t nl
  11267. :delim
  11268. h
  11269. s/\(.\{148\}\)..*/\1/
  11270. t more2
  11271. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11272. p
  11273. b
  11274. :more2
  11275. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11276. p
  11277. g
  11278. s/.\{148\}//
  11279. t delim
  11280. ' <conf$$subs.awk | sed '
  11281. /^[^""]/{
  11282. N
  11283. s/\n//
  11284. }
  11285. ' >>$CONFIG_STATUS || ac_write_fail=1
  11286. rm -f conf$$subs.awk
  11287. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11288. _ACAWK
  11289. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11290. for (key in S) S_is_set[key] = 1
  11291. FS = ""
  11292. }
  11293. {
  11294. line = $ 0
  11295. nfields = split(line, field, "@")
  11296. substed = 0
  11297. len = length(field[1])
  11298. for (i = 2; i < nfields; i++) {
  11299. key = field[i]
  11300. keylen = length(key)
  11301. if (S_is_set[key]) {
  11302. value = S[key]
  11303. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11304. len += length(value) + length(field[++i])
  11305. substed = 1
  11306. } else
  11307. len += 1 + keylen
  11308. }
  11309. print line
  11310. }
  11311. _ACAWK
  11312. _ACEOF
  11313. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11314. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11315. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11316. else
  11317. cat
  11318. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11319. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11320. _ACEOF
  11321. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11322. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11323. # trailing colons and then remove the whole line if VPATH becomes empty
  11324. # (actually we leave an empty line to preserve line numbers).
  11325. if test "x$srcdir" = x.; then
  11326. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11327. h
  11328. s///
  11329. s/^/:/
  11330. s/[ ]*$/:/
  11331. s/:\$(srcdir):/:/g
  11332. s/:\${srcdir}:/:/g
  11333. s/:@srcdir@:/:/g
  11334. s/^:*//
  11335. s/:*$//
  11336. x
  11337. s/\(=[ ]*\).*/\1/
  11338. G
  11339. s/\n//
  11340. s/^[^=]*=[ ]*$//
  11341. }'
  11342. fi
  11343. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11344. fi # test -n "$CONFIG_FILES"
  11345. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  11346. shift
  11347. for ac_tag
  11348. do
  11349. case $ac_tag in
  11350. :[FHLC]) ac_mode=$ac_tag; continue;;
  11351. esac
  11352. case $ac_mode$ac_tag in
  11353. :[FHL]*:*);;
  11354. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11355. :[FH]-) ac_tag=-:-;;
  11356. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11357. esac
  11358. ac_save_IFS=$IFS
  11359. IFS=:
  11360. set x $ac_tag
  11361. IFS=$ac_save_IFS
  11362. shift
  11363. ac_file=$1
  11364. shift
  11365. case $ac_mode in
  11366. :L) ac_source=$1;;
  11367. :[FH])
  11368. ac_file_inputs=
  11369. for ac_f
  11370. do
  11371. case $ac_f in
  11372. -) ac_f="$ac_tmp/stdin";;
  11373. *) # Look for the file first in the build tree, then in the source tree
  11374. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11375. # because $ac_f cannot contain `:'.
  11376. test -f "$ac_f" ||
  11377. case $ac_f in
  11378. [\\/$]*) false;;
  11379. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11380. esac ||
  11381. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11382. esac
  11383. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11384. as_fn_append ac_file_inputs " '$ac_f'"
  11385. done
  11386. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11387. # use $as_me), people would be surprised to read:
  11388. # /* config.h. Generated by config.status. */
  11389. configure_input='Generated from '`
  11390. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11391. `' by configure.'
  11392. if test x"$ac_file" != x-; then
  11393. configure_input="$ac_file. $configure_input"
  11394. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11395. $as_echo "$as_me: creating $ac_file" >&6;}
  11396. fi
  11397. # Neutralize special characters interpreted by sed in replacement strings.
  11398. case $configure_input in #(
  11399. *\&* | *\|* | *\\* )
  11400. ac_sed_conf_input=`$as_echo "$configure_input" |
  11401. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11402. *) ac_sed_conf_input=$configure_input;;
  11403. esac
  11404. case $ac_tag in
  11405. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11406. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11407. esac
  11408. ;;
  11409. esac
  11410. ac_dir=`$as_dirname -- "$ac_file" ||
  11411. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11412. X"$ac_file" : 'X\(//\)[^/]' \| \
  11413. X"$ac_file" : 'X\(//\)$' \| \
  11414. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11415. $as_echo X"$ac_file" |
  11416. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11417. s//\1/
  11418. q
  11419. }
  11420. /^X\(\/\/\)[^/].*/{
  11421. s//\1/
  11422. q
  11423. }
  11424. /^X\(\/\/\)$/{
  11425. s//\1/
  11426. q
  11427. }
  11428. /^X\(\/\).*/{
  11429. s//\1/
  11430. q
  11431. }
  11432. s/.*/./; q'`
  11433. as_dir="$ac_dir"; as_fn_mkdir_p
  11434. ac_builddir=.
  11435. case "$ac_dir" in
  11436. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11437. *)
  11438. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11439. # A ".." for each directory in $ac_dir_suffix.
  11440. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11441. case $ac_top_builddir_sub in
  11442. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11443. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11444. esac ;;
  11445. esac
  11446. ac_abs_top_builddir=$ac_pwd
  11447. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11448. # for backward compatibility:
  11449. ac_top_builddir=$ac_top_build_prefix
  11450. case $srcdir in
  11451. .) # We are building in place.
  11452. ac_srcdir=.
  11453. ac_top_srcdir=$ac_top_builddir_sub
  11454. ac_abs_top_srcdir=$ac_pwd ;;
  11455. [\\/]* | ?:[\\/]* ) # Absolute name.
  11456. ac_srcdir=$srcdir$ac_dir_suffix;
  11457. ac_top_srcdir=$srcdir
  11458. ac_abs_top_srcdir=$srcdir ;;
  11459. *) # Relative name.
  11460. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11461. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11462. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11463. esac
  11464. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11465. case $ac_mode in
  11466. :F)
  11467. #
  11468. # CONFIG_FILE
  11469. #
  11470. case $INSTALL in
  11471. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11472. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11473. esac
  11474. ac_MKDIR_P=$MKDIR_P
  11475. case $MKDIR_P in
  11476. [\\/$]* | ?:[\\/]* ) ;;
  11477. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11478. esac
  11479. _ACEOF
  11480. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11481. # If the template does not know about datarootdir, expand it.
  11482. # FIXME: This hack should be removed a few years after 2.60.
  11483. ac_datarootdir_hack=; ac_datarootdir_seen=
  11484. ac_sed_dataroot='
  11485. /datarootdir/ {
  11486. p
  11487. q
  11488. }
  11489. /@datadir@/p
  11490. /@docdir@/p
  11491. /@infodir@/p
  11492. /@localedir@/p
  11493. /@mandir@/p'
  11494. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11495. *datarootdir*) ac_datarootdir_seen=yes;;
  11496. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11498. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11499. _ACEOF
  11500. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11501. ac_datarootdir_hack='
  11502. s&@datadir@&$datadir&g
  11503. s&@docdir@&$docdir&g
  11504. s&@infodir@&$infodir&g
  11505. s&@localedir@&$localedir&g
  11506. s&@mandir@&$mandir&g
  11507. s&\\\${datarootdir}&$datarootdir&g' ;;
  11508. esac
  11509. _ACEOF
  11510. # Neutralize VPATH when `$srcdir' = `.'.
  11511. # Shell code in configure.ac might set extrasub.
  11512. # FIXME: do we really want to maintain this feature?
  11513. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11514. ac_sed_extra="$ac_vpsub
  11515. $extrasub
  11516. _ACEOF
  11517. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11518. :t
  11519. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11520. s|@configure_input@|$ac_sed_conf_input|;t t
  11521. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11522. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11523. s&@srcdir@&$ac_srcdir&;t t
  11524. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11525. s&@top_srcdir@&$ac_top_srcdir&;t t
  11526. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11527. s&@builddir@&$ac_builddir&;t t
  11528. s&@abs_builddir@&$ac_abs_builddir&;t t
  11529. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11530. s&@INSTALL@&$ac_INSTALL&;t t
  11531. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11532. $ac_datarootdir_hack
  11533. "
  11534. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11535. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11536. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11537. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11538. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11539. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11541. which seems to be undefined. Please make sure it is defined" >&5
  11542. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11543. which seems to be undefined. Please make sure it is defined" >&2;}
  11544. rm -f "$ac_tmp/stdin"
  11545. case $ac_file in
  11546. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11547. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11548. esac \
  11549. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11550. ;;
  11551. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11552. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11553. ;;
  11554. esac
  11555. case $ac_file$ac_mode in
  11556. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11557. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11558. # are listed without --file. Let's play safe and only enable the eval
  11559. # if we detect the quoting.
  11560. case $CONFIG_FILES in
  11561. *\'*) eval set x "$CONFIG_FILES" ;;
  11562. *) set x $CONFIG_FILES ;;
  11563. esac
  11564. shift
  11565. for mf
  11566. do
  11567. # Strip MF so we end up with the name of the file.
  11568. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11569. # Check whether this is an Automake generated Makefile or not.
  11570. # We used to match only the files named `Makefile.in', but
  11571. # some people rename them; so instead we look at the file content.
  11572. # Grep'ing the first line is not enough: some people post-process
  11573. # each Makefile.in and add a new line on top of each file to say so.
  11574. # Grep'ing the whole file is not good either: AIX grep has a line
  11575. # limit of 2048, but all sed's we know have understand at least 4000.
  11576. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11577. dirpart=`$as_dirname -- "$mf" ||
  11578. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11579. X"$mf" : 'X\(//\)[^/]' \| \
  11580. X"$mf" : 'X\(//\)$' \| \
  11581. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11582. $as_echo X"$mf" |
  11583. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11584. s//\1/
  11585. q
  11586. }
  11587. /^X\(\/\/\)[^/].*/{
  11588. s//\1/
  11589. q
  11590. }
  11591. /^X\(\/\/\)$/{
  11592. s//\1/
  11593. q
  11594. }
  11595. /^X\(\/\).*/{
  11596. s//\1/
  11597. q
  11598. }
  11599. s/.*/./; q'`
  11600. else
  11601. continue
  11602. fi
  11603. # Extract the definition of DEPDIR, am__include, and am__quote
  11604. # from the Makefile without running `make'.
  11605. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11606. test -z "$DEPDIR" && continue
  11607. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11608. test -z "am__include" && continue
  11609. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11610. # When using ansi2knr, U may be empty or an underscore; expand it
  11611. U=`sed -n 's/^U = //p' < "$mf"`
  11612. # Find all dependency output files, they are included files with
  11613. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11614. # simplest approach to changing $(DEPDIR) to its actual value in the
  11615. # expansion.
  11616. for file in `sed -n "
  11617. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11618. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11619. # Make sure the directory exists.
  11620. test -f "$dirpart/$file" && continue
  11621. fdir=`$as_dirname -- "$file" ||
  11622. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11623. X"$file" : 'X\(//\)[^/]' \| \
  11624. X"$file" : 'X\(//\)$' \| \
  11625. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11626. $as_echo X"$file" |
  11627. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11628. s//\1/
  11629. q
  11630. }
  11631. /^X\(\/\/\)[^/].*/{
  11632. s//\1/
  11633. q
  11634. }
  11635. /^X\(\/\/\)$/{
  11636. s//\1/
  11637. q
  11638. }
  11639. /^X\(\/\).*/{
  11640. s//\1/
  11641. q
  11642. }
  11643. s/.*/./; q'`
  11644. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11645. # echo "creating $dirpart/$file"
  11646. echo '# dummy' > "$dirpart/$file"
  11647. done
  11648. done
  11649. }
  11650. ;;
  11651. "libtool":C)
  11652. # See if we are running on zsh, and set the options which allow our
  11653. # commands through without removal of \ escapes.
  11654. if test -n "${ZSH_VERSION+set}" ; then
  11655. setopt NO_GLOB_SUBST
  11656. fi
  11657. cfgfile="${ofile}T"
  11658. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11659. $RM "$cfgfile"
  11660. cat <<_LT_EOF >> "$cfgfile"
  11661. #! $SHELL
  11662. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11663. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11664. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11665. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11666. #
  11667. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11668. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  11669. # Inc.
  11670. # Written by Gordon Matzigkeit, 1996
  11671. #
  11672. # This file is part of GNU Libtool.
  11673. #
  11674. # GNU Libtool is free software; you can redistribute it and/or
  11675. # modify it under the terms of the GNU General Public License as
  11676. # published by the Free Software Foundation; either version 2 of
  11677. # the License, or (at your option) any later version.
  11678. #
  11679. # As a special exception to the GNU General Public License,
  11680. # if you distribute this file as part of a program or library that
  11681. # is built using GNU Libtool, you may include this file under the
  11682. # same distribution terms that you use for the rest of that program.
  11683. #
  11684. # GNU Libtool is distributed in the hope that it will be useful,
  11685. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11686. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11687. # GNU General Public License for more details.
  11688. #
  11689. # You should have received a copy of the GNU General Public License
  11690. # along with GNU Libtool; see the file COPYING. If not, a copy
  11691. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11692. # obtained by writing to the Free Software Foundation, Inc.,
  11693. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11694. # The names of the tagged configurations supported by this script.
  11695. available_tags=""
  11696. # ### BEGIN LIBTOOL CONFIG
  11697. # Assembler program.
  11698. AS=$lt_AS
  11699. # DLL creation program.
  11700. DLLTOOL=$lt_DLLTOOL
  11701. # Object dumper program.
  11702. OBJDUMP=$lt_OBJDUMP
  11703. # Which release of libtool.m4 was used?
  11704. macro_version=$macro_version
  11705. macro_revision=$macro_revision
  11706. # Whether or not to build shared libraries.
  11707. build_libtool_libs=$enable_shared
  11708. # Whether or not to build static libraries.
  11709. build_old_libs=$enable_static
  11710. # What type of objects to build.
  11711. pic_mode=$pic_mode
  11712. # Whether or not to optimize for fast installation.
  11713. fast_install=$enable_fast_install
  11714. # Shell to use when invoking shell scripts.
  11715. SHELL=$lt_SHELL
  11716. # An echo program that protects backslashes.
  11717. ECHO=$lt_ECHO
  11718. # The host system.
  11719. host_alias=$host_alias
  11720. host=$host
  11721. host_os=$host_os
  11722. # The build system.
  11723. build_alias=$build_alias
  11724. build=$build
  11725. build_os=$build_os
  11726. # A sed program that does not truncate output.
  11727. SED=$lt_SED
  11728. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11729. Xsed="\$SED -e 1s/^X//"
  11730. # A grep program that handles long lines.
  11731. GREP=$lt_GREP
  11732. # An ERE matcher.
  11733. EGREP=$lt_EGREP
  11734. # A literal string matcher.
  11735. FGREP=$lt_FGREP
  11736. # A BSD- or MS-compatible name lister.
  11737. NM=$lt_NM
  11738. # Whether we need soft or hard links.
  11739. LN_S=$lt_LN_S
  11740. # What is the maximum length of a command?
  11741. max_cmd_len=$max_cmd_len
  11742. # Object file suffix (normally "o").
  11743. objext=$ac_objext
  11744. # Executable file suffix (normally "").
  11745. exeext=$exeext
  11746. # whether the shell understands "unset".
  11747. lt_unset=$lt_unset
  11748. # turn spaces into newlines.
  11749. SP2NL=$lt_lt_SP2NL
  11750. # turn newlines into spaces.
  11751. NL2SP=$lt_lt_NL2SP
  11752. # convert \$build file names to \$host format.
  11753. to_host_file_cmd=$lt_cv_to_host_file_cmd
  11754. # convert \$build files to toolchain format.
  11755. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  11756. # Method to check whether dependent libraries are shared objects.
  11757. deplibs_check_method=$lt_deplibs_check_method
  11758. # Command to use when deplibs_check_method = "file_magic".
  11759. file_magic_cmd=$lt_file_magic_cmd
  11760. # How to find potential files when deplibs_check_method = "file_magic".
  11761. file_magic_glob=$lt_file_magic_glob
  11762. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  11763. want_nocaseglob=$lt_want_nocaseglob
  11764. # Command to associate shared and link libraries.
  11765. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  11766. # The archiver.
  11767. AR=$lt_AR
  11768. # Flags to create an archive.
  11769. AR_FLAGS=$lt_AR_FLAGS
  11770. # How to feed a file listing to the archiver.
  11771. archiver_list_spec=$lt_archiver_list_spec
  11772. # A symbol stripping program.
  11773. STRIP=$lt_STRIP
  11774. # Commands used to install an old-style archive.
  11775. RANLIB=$lt_RANLIB
  11776. old_postinstall_cmds=$lt_old_postinstall_cmds
  11777. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11778. # Whether to use a lock for old archive extraction.
  11779. lock_old_archive_extraction=$lock_old_archive_extraction
  11780. # A C compiler.
  11781. LTCC=$lt_CC
  11782. # LTCC compiler flags.
  11783. LTCFLAGS=$lt_CFLAGS
  11784. # Take the output of nm and produce a listing of raw symbols and C names.
  11785. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11786. # Transform the output of nm in a proper C declaration.
  11787. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11788. # Transform the output of nm in a C name address pair.
  11789. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11790. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11791. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11792. # Specify filename containing input files for \$NM.
  11793. nm_file_list_spec=$lt_nm_file_list_spec
  11794. # The root where to search for dependent libraries,and in which our libraries should be installed.
  11795. lt_sysroot=$lt_sysroot
  11796. # The name of the directory that contains temporary libtool files.
  11797. objdir=$objdir
  11798. # Used to examine libraries when file_magic_cmd begins with "file".
  11799. MAGIC_CMD=$MAGIC_CMD
  11800. # Must we lock files when doing compilation?
  11801. need_locks=$lt_need_locks
  11802. # Manifest tool.
  11803. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  11804. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11805. DSYMUTIL=$lt_DSYMUTIL
  11806. # Tool to change global to local symbols on Mac OS X.
  11807. NMEDIT=$lt_NMEDIT
  11808. # Tool to manipulate fat objects and archives on Mac OS X.
  11809. LIPO=$lt_LIPO
  11810. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11811. OTOOL=$lt_OTOOL
  11812. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11813. OTOOL64=$lt_OTOOL64
  11814. # Old archive suffix (normally "a").
  11815. libext=$libext
  11816. # Shared library suffix (normally ".so").
  11817. shrext_cmds=$lt_shrext_cmds
  11818. # The commands to extract the exported symbol list from a shared archive.
  11819. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11820. # Variables whose values should be saved in libtool wrapper scripts and
  11821. # restored at link time.
  11822. variables_saved_for_relink=$lt_variables_saved_for_relink
  11823. # Do we need the "lib" prefix for modules?
  11824. need_lib_prefix=$need_lib_prefix
  11825. # Do we need a version for libraries?
  11826. need_version=$need_version
  11827. # Library versioning type.
  11828. version_type=$version_type
  11829. # Shared library runtime path variable.
  11830. runpath_var=$runpath_var
  11831. # Shared library path variable.
  11832. shlibpath_var=$shlibpath_var
  11833. # Is shlibpath searched before the hard-coded library search path?
  11834. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11835. # Format of library name prefix.
  11836. libname_spec=$lt_libname_spec
  11837. # List of archive names. First name is the real one, the rest are links.
  11838. # The last name is the one that the linker finds with -lNAME
  11839. library_names_spec=$lt_library_names_spec
  11840. # The coded name of the library, if different from the real name.
  11841. soname_spec=$lt_soname_spec
  11842. # Permission mode override for installation of shared libraries.
  11843. install_override_mode=$lt_install_override_mode
  11844. # Command to use after installation of a shared archive.
  11845. postinstall_cmds=$lt_postinstall_cmds
  11846. # Command to use after uninstallation of a shared archive.
  11847. postuninstall_cmds=$lt_postuninstall_cmds
  11848. # Commands used to finish a libtool library installation in a directory.
  11849. finish_cmds=$lt_finish_cmds
  11850. # As "finish_cmds", except a single script fragment to be evaled but
  11851. # not shown.
  11852. finish_eval=$lt_finish_eval
  11853. # Whether we should hardcode library paths into libraries.
  11854. hardcode_into_libs=$hardcode_into_libs
  11855. # Compile-time system search path for libraries.
  11856. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11857. # Run-time system search path for libraries.
  11858. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11859. # Whether dlopen is supported.
  11860. dlopen_support=$enable_dlopen
  11861. # Whether dlopen of programs is supported.
  11862. dlopen_self=$enable_dlopen_self
  11863. # Whether dlopen of statically linked programs is supported.
  11864. dlopen_self_static=$enable_dlopen_self_static
  11865. # Commands to strip libraries.
  11866. old_striplib=$lt_old_striplib
  11867. striplib=$lt_striplib
  11868. # The linker used to build libraries.
  11869. LD=$lt_LD
  11870. # How to create reloadable object files.
  11871. reload_flag=$lt_reload_flag
  11872. reload_cmds=$lt_reload_cmds
  11873. # Commands used to build an old-style archive.
  11874. old_archive_cmds=$lt_old_archive_cmds
  11875. # A language specific compiler.
  11876. CC=$lt_compiler
  11877. # Is the compiler the GNU compiler?
  11878. with_gcc=$GCC
  11879. # Compiler flag to turn off builtin functions.
  11880. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11881. # Additional compiler flags for building library objects.
  11882. pic_flag=$lt_lt_prog_compiler_pic
  11883. # How to pass a linker flag through the compiler.
  11884. wl=$lt_lt_prog_compiler_wl
  11885. # Compiler flag to prevent dynamic linking.
  11886. link_static_flag=$lt_lt_prog_compiler_static
  11887. # Does compiler simultaneously support -c and -o options?
  11888. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11889. # Whether or not to add -lc for building shared libraries.
  11890. build_libtool_need_lc=$archive_cmds_need_lc
  11891. # Whether or not to disallow shared libs when runtime libs are static.
  11892. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11893. # Compiler flag to allow reflexive dlopens.
  11894. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11895. # Compiler flag to generate shared objects directly from archives.
  11896. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11897. # Whether the compiler copes with passing no objects directly.
  11898. compiler_needs_object=$lt_compiler_needs_object
  11899. # Create an old-style archive from a shared archive.
  11900. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11901. # Create a temporary old-style archive to link instead of a shared archive.
  11902. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11903. # Commands used to build a shared archive.
  11904. archive_cmds=$lt_archive_cmds
  11905. archive_expsym_cmds=$lt_archive_expsym_cmds
  11906. # Commands used to build a loadable module if different from building
  11907. # a shared archive.
  11908. module_cmds=$lt_module_cmds
  11909. module_expsym_cmds=$lt_module_expsym_cmds
  11910. # Whether we are building with GNU ld or not.
  11911. with_gnu_ld=$lt_with_gnu_ld
  11912. # Flag that allows shared libraries with undefined symbols to be built.
  11913. allow_undefined_flag=$lt_allow_undefined_flag
  11914. # Flag that enforces no undefined symbols.
  11915. no_undefined_flag=$lt_no_undefined_flag
  11916. # Flag to hardcode \$libdir into a binary during linking.
  11917. # This must work even if \$libdir does not exist
  11918. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11919. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11920. # during linking. This must work even if \$libdir does not exist.
  11921. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11922. # Whether we need a single "-rpath" flag with a separated argument.
  11923. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11924. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11925. # DIR into the resulting binary.
  11926. hardcode_direct=$hardcode_direct
  11927. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11928. # DIR into the resulting binary and the resulting library dependency is
  11929. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11930. # library is relocated.
  11931. hardcode_direct_absolute=$hardcode_direct_absolute
  11932. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11933. # into the resulting binary.
  11934. hardcode_minus_L=$hardcode_minus_L
  11935. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11936. # into the resulting binary.
  11937. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11938. # Set to "yes" if building a shared library automatically hardcodes DIR
  11939. # into the library and all subsequent libraries and executables linked
  11940. # against it.
  11941. hardcode_automatic=$hardcode_automatic
  11942. # Set to yes if linker adds runtime paths of dependent libraries
  11943. # to runtime path list.
  11944. inherit_rpath=$inherit_rpath
  11945. # Whether libtool must link a program against all its dependency libraries.
  11946. link_all_deplibs=$link_all_deplibs
  11947. # Set to "yes" if exported symbols are required.
  11948. always_export_symbols=$always_export_symbols
  11949. # The commands to list exported symbols.
  11950. export_symbols_cmds=$lt_export_symbols_cmds
  11951. # Symbols that should not be listed in the preloaded symbols.
  11952. exclude_expsyms=$lt_exclude_expsyms
  11953. # Symbols that must always be exported.
  11954. include_expsyms=$lt_include_expsyms
  11955. # Commands necessary for linking programs (against libraries) with templates.
  11956. prelink_cmds=$lt_prelink_cmds
  11957. # Commands necessary for finishing linking programs.
  11958. postlink_cmds=$lt_postlink_cmds
  11959. # Specify filename containing input files.
  11960. file_list_spec=$lt_file_list_spec
  11961. # How to hardcode a shared library path into an executable.
  11962. hardcode_action=$hardcode_action
  11963. # ### END LIBTOOL CONFIG
  11964. _LT_EOF
  11965. case $host_os in
  11966. aix3*)
  11967. cat <<\_LT_EOF >> "$cfgfile"
  11968. # AIX sometimes has problems with the GCC collect2 program. For some
  11969. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11970. # vanish in a puff of smoke.
  11971. if test "X${COLLECT_NAMES+set}" != Xset; then
  11972. COLLECT_NAMES=
  11973. export COLLECT_NAMES
  11974. fi
  11975. _LT_EOF
  11976. ;;
  11977. esac
  11978. ltmain="$ac_aux_dir/ltmain.sh"
  11979. # We use sed instead of cat because bash on DJGPP gets confused if
  11980. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11981. # text mode, it properly converts lines to CR/LF. This bash problem
  11982. # is reportedly fixed, but why not run on old versions too?
  11983. sed '$q' "$ltmain" >> "$cfgfile" \
  11984. || (rm -f "$cfgfile"; exit 1)
  11985. if test x"$xsi_shell" = xyes; then
  11986. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  11987. func_dirname ()\
  11988. {\
  11989. \ case ${1} in\
  11990. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11991. \ * ) func_dirname_result="${3}" ;;\
  11992. \ esac\
  11993. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  11994. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11995. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11996. test 0 -eq $? || _lt_function_replace_fail=:
  11997. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  11998. func_basename ()\
  11999. {\
  12000. \ func_basename_result="${1##*/}"\
  12001. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12002. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12003. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12004. test 0 -eq $? || _lt_function_replace_fail=:
  12005. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  12006. func_dirname_and_basename ()\
  12007. {\
  12008. \ case ${1} in\
  12009. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  12010. \ * ) func_dirname_result="${3}" ;;\
  12011. \ esac\
  12012. \ func_basename_result="${1##*/}"\
  12013. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12014. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12015. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12016. test 0 -eq $? || _lt_function_replace_fail=:
  12017. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  12018. func_stripname ()\
  12019. {\
  12020. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  12021. \ # positional parameters, so assign one to ordinary parameter first.\
  12022. \ func_stripname_result=${3}\
  12023. \ func_stripname_result=${func_stripname_result#"${1}"}\
  12024. \ func_stripname_result=${func_stripname_result%"${2}"}\
  12025. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  12026. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12027. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12028. test 0 -eq $? || _lt_function_replace_fail=:
  12029. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  12030. func_split_long_opt ()\
  12031. {\
  12032. \ func_split_long_opt_name=${1%%=*}\
  12033. \ func_split_long_opt_arg=${1#*=}\
  12034. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12035. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12036. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12037. test 0 -eq $? || _lt_function_replace_fail=:
  12038. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  12039. func_split_short_opt ()\
  12040. {\
  12041. \ func_split_short_opt_arg=${1#??}\
  12042. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  12043. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12044. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12045. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12046. test 0 -eq $? || _lt_function_replace_fail=:
  12047. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  12048. func_lo2o ()\
  12049. {\
  12050. \ case ${1} in\
  12051. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  12052. \ *) func_lo2o_result=${1} ;;\
  12053. \ esac\
  12054. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  12055. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12056. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12057. test 0 -eq $? || _lt_function_replace_fail=:
  12058. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  12059. func_xform ()\
  12060. {\
  12061. func_xform_result=${1%.*}.lo\
  12062. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  12063. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12064. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12065. test 0 -eq $? || _lt_function_replace_fail=:
  12066. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  12067. func_arith ()\
  12068. {\
  12069. func_arith_result=$(( $* ))\
  12070. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  12071. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12072. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12073. test 0 -eq $? || _lt_function_replace_fail=:
  12074. sed -e '/^func_len ()$/,/^} # func_len /c\
  12075. func_len ()\
  12076. {\
  12077. func_len_result=${#1}\
  12078. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  12079. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12080. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12081. test 0 -eq $? || _lt_function_replace_fail=:
  12082. fi
  12083. if test x"$lt_shell_append" = xyes; then
  12084. sed -e '/^func_append ()$/,/^} # func_append /c\
  12085. func_append ()\
  12086. {\
  12087. eval "${1}+=\\${2}"\
  12088. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  12089. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12090. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12091. test 0 -eq $? || _lt_function_replace_fail=:
  12092. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  12093. func_append_quoted ()\
  12094. {\
  12095. \ func_quote_for_eval "${2}"\
  12096. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  12097. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  12098. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12099. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12100. test 0 -eq $? || _lt_function_replace_fail=:
  12101. # Save a `func_append' function call where possible by direct use of '+='
  12102. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  12103. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12104. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12105. test 0 -eq $? || _lt_function_replace_fail=:
  12106. else
  12107. # Save a `func_append' function call even when '+=' is not available
  12108. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  12109. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12110. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12111. test 0 -eq $? || _lt_function_replace_fail=:
  12112. fi
  12113. if test x"$_lt_function_replace_fail" = x":"; then
  12114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  12115. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  12116. fi
  12117. mv -f "$cfgfile" "$ofile" ||
  12118. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12119. chmod +x "$ofile"
  12120. ;;
  12121. esac
  12122. done # for ac_tag
  12123. as_fn_exit 0
  12124. _ACEOF
  12125. ac_clean_files=$ac_clean_files_save
  12126. test $ac_write_fail = 0 ||
  12127. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12128. # configure is writing to config.log, and then calls config.status.
  12129. # config.status does its own redirection, appending to config.log.
  12130. # Unfortunately, on DOS this fails, as config.log is still kept open
  12131. # by configure, so config.status won't be able to write to it; its
  12132. # output is simply discarded. So we exec the FD to /dev/null,
  12133. # effectively closing config.log, so it can be properly (re)opened and
  12134. # appended to by config.status. When coming back to configure, we
  12135. # need to make the FD available again.
  12136. if test "$no_create" != yes; then
  12137. ac_cs_success=:
  12138. ac_config_status_args=
  12139. test "$silent" = yes &&
  12140. ac_config_status_args="$ac_config_status_args --quiet"
  12141. exec 5>/dev/null
  12142. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12143. exec 5>>config.log
  12144. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12145. # would make configure fail if this is the last instruction.
  12146. $ac_cs_success || as_fn_exit 1
  12147. fi
  12148. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12150. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12151. fi