configure 403 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836
  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. DLLTOOL
  575. OBJDUMP
  576. LN_S
  577. NM
  578. ac_ct_DUMPBIN
  579. DUMPBIN
  580. LD
  581. FGREP
  582. EGREP
  583. GREP
  584. SED
  585. LIBTOOL
  586. HAVE_CHECK_FALSE
  587. HAVE_CHECK_TRUE
  588. CHECK_LIBS
  589. CHECK_CFLAGS
  590. PKG_CONFIG_LIBDIR
  591. PKG_CONFIG_PATH
  592. PKG_CONFIG
  593. am__fastdepCC_FALSE
  594. am__fastdepCC_TRUE
  595. CCDEPMODE
  596. am__nodep
  597. AMDEPBACKSLASH
  598. AMDEP_FALSE
  599. AMDEP_TRUE
  600. am__quote
  601. am__include
  602. DEPDIR
  603. OBJEXT
  604. EXEEXT
  605. ac_ct_CC
  606. CPPFLAGS
  607. LDFLAGS
  608. CFLAGS
  609. CC
  610. am__untar
  611. am__tar
  612. AMTAR
  613. am__leading_dot
  614. SET_MAKE
  615. AWK
  616. mkdir_p
  617. MKDIR_P
  618. INSTALL_STRIP_PROGRAM
  619. STRIP
  620. install_sh
  621. MAKEINFO
  622. AUTOHEADER
  623. AUTOMAKE
  624. AUTOCONF
  625. ACLOCAL
  626. VERSION
  627. PACKAGE
  628. CYGPATH_W
  629. am__isrc
  630. INSTALL_DATA
  631. INSTALL_SCRIPT
  632. INSTALL_PROGRAM
  633. target_os
  634. target_vendor
  635. target_cpu
  636. target
  637. host_os
  638. host_vendor
  639. host_cpu
  640. host
  641. build_os
  642. build_vendor
  643. build_cpu
  644. build
  645. target_alias
  646. host_alias
  647. build_alias
  648. LIBS
  649. ECHO_T
  650. ECHO_N
  651. ECHO_C
  652. DEFS
  653. mandir
  654. localedir
  655. libdir
  656. psdir
  657. pdfdir
  658. dvidir
  659. htmldir
  660. infodir
  661. docdir
  662. oldincludedir
  663. includedir
  664. localstatedir
  665. sharedstatedir
  666. sysconfdir
  667. datadir
  668. datarootdir
  669. libexecdir
  670. sbindir
  671. bindir
  672. program_transform_name
  673. prefix
  674. exec_prefix
  675. PACKAGE_URL
  676. PACKAGE_BUGREPORT
  677. PACKAGE_STRING
  678. PACKAGE_VERSION
  679. PACKAGE_TARNAME
  680. PACKAGE_NAME
  681. PATH_SEPARATOR
  682. SHELL'
  683. ac_subst_files=''
  684. ac_user_opts='
  685. enable_option_checking
  686. enable_dependency_tracking
  687. enable_shared
  688. enable_static
  689. with_pic
  690. enable_fast_install
  691. with_gnu_ld
  692. with_sysroot
  693. enable_libtool_lock
  694. '
  695. ac_precious_vars='build_alias
  696. host_alias
  697. target_alias
  698. CC
  699. CFLAGS
  700. LDFLAGS
  701. LIBS
  702. CPPFLAGS
  703. PKG_CONFIG
  704. PKG_CONFIG_PATH
  705. PKG_CONFIG_LIBDIR
  706. CHECK_CFLAGS
  707. CHECK_LIBS
  708. CPP'
  709. # Initialize some variables set by options.
  710. ac_init_help=
  711. ac_init_version=false
  712. ac_unrecognized_opts=
  713. ac_unrecognized_sep=
  714. # The variables have the same names as the options, with
  715. # dashes changed to underlines.
  716. cache_file=/dev/null
  717. exec_prefix=NONE
  718. no_create=
  719. no_recursion=
  720. prefix=NONE
  721. program_prefix=NONE
  722. program_suffix=NONE
  723. program_transform_name=s,x,x,
  724. silent=
  725. site=
  726. srcdir=
  727. verbose=
  728. x_includes=NONE
  729. x_libraries=NONE
  730. # Installation directory options.
  731. # These are left unexpanded so users can "make install exec_prefix=/foo"
  732. # and all the variables that are supposed to be based on exec_prefix
  733. # by default will actually change.
  734. # Use braces instead of parens because sh, perl, etc. also accept them.
  735. # (The list follows the same order as the GNU Coding Standards.)
  736. bindir='${exec_prefix}/bin'
  737. sbindir='${exec_prefix}/sbin'
  738. libexecdir='${exec_prefix}/libexec'
  739. datarootdir='${prefix}/share'
  740. datadir='${datarootdir}'
  741. sysconfdir='${prefix}/etc'
  742. sharedstatedir='${prefix}/com'
  743. localstatedir='${prefix}/var'
  744. includedir='${prefix}/include'
  745. oldincludedir='/usr/include'
  746. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  747. infodir='${datarootdir}/info'
  748. htmldir='${docdir}'
  749. dvidir='${docdir}'
  750. pdfdir='${docdir}'
  751. psdir='${docdir}'
  752. libdir='${exec_prefix}/lib'
  753. localedir='${datarootdir}/locale'
  754. mandir='${datarootdir}/man'
  755. ac_prev=
  756. ac_dashdash=
  757. for ac_option
  758. do
  759. # If the previous option needs an argument, assign it.
  760. if test -n "$ac_prev"; then
  761. eval $ac_prev=\$ac_option
  762. ac_prev=
  763. continue
  764. fi
  765. case $ac_option in
  766. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  767. *=) ac_optarg= ;;
  768. *) ac_optarg=yes ;;
  769. esac
  770. # Accept the important Cygnus configure options, so we can diagnose typos.
  771. case $ac_dashdash$ac_option in
  772. --)
  773. ac_dashdash=yes ;;
  774. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  775. ac_prev=bindir ;;
  776. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  777. bindir=$ac_optarg ;;
  778. -build | --build | --buil | --bui | --bu)
  779. ac_prev=build_alias ;;
  780. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  781. build_alias=$ac_optarg ;;
  782. -cache-file | --cache-file | --cache-fil | --cache-fi \
  783. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  784. ac_prev=cache_file ;;
  785. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  786. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  787. cache_file=$ac_optarg ;;
  788. --config-cache | -C)
  789. cache_file=config.cache ;;
  790. -datadir | --datadir | --datadi | --datad)
  791. ac_prev=datadir ;;
  792. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  793. datadir=$ac_optarg ;;
  794. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  795. | --dataroo | --dataro | --datar)
  796. ac_prev=datarootdir ;;
  797. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  798. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  799. datarootdir=$ac_optarg ;;
  800. -disable-* | --disable-*)
  801. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  802. # Reject names that are not valid shell variable names.
  803. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  804. as_fn_error $? "invalid feature name: $ac_useropt"
  805. ac_useropt_orig=$ac_useropt
  806. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  807. case $ac_user_opts in
  808. *"
  809. "enable_$ac_useropt"
  810. "*) ;;
  811. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  812. ac_unrecognized_sep=', ';;
  813. esac
  814. eval enable_$ac_useropt=no ;;
  815. -docdir | --docdir | --docdi | --doc | --do)
  816. ac_prev=docdir ;;
  817. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  818. docdir=$ac_optarg ;;
  819. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  820. ac_prev=dvidir ;;
  821. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  822. dvidir=$ac_optarg ;;
  823. -enable-* | --enable-*)
  824. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  825. # Reject names that are not valid shell variable names.
  826. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  827. as_fn_error $? "invalid feature name: $ac_useropt"
  828. ac_useropt_orig=$ac_useropt
  829. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  830. case $ac_user_opts in
  831. *"
  832. "enable_$ac_useropt"
  833. "*) ;;
  834. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  835. ac_unrecognized_sep=', ';;
  836. esac
  837. eval enable_$ac_useropt=\$ac_optarg ;;
  838. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  839. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  840. | --exec | --exe | --ex)
  841. ac_prev=exec_prefix ;;
  842. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  843. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  844. | --exec=* | --exe=* | --ex=*)
  845. exec_prefix=$ac_optarg ;;
  846. -gas | --gas | --ga | --g)
  847. # Obsolete; use --with-gas.
  848. with_gas=yes ;;
  849. -help | --help | --hel | --he | -h)
  850. ac_init_help=long ;;
  851. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  852. ac_init_help=recursive ;;
  853. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  854. ac_init_help=short ;;
  855. -host | --host | --hos | --ho)
  856. ac_prev=host_alias ;;
  857. -host=* | --host=* | --hos=* | --ho=*)
  858. host_alias=$ac_optarg ;;
  859. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  860. ac_prev=htmldir ;;
  861. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  862. | --ht=*)
  863. htmldir=$ac_optarg ;;
  864. -includedir | --includedir | --includedi | --included | --include \
  865. | --includ | --inclu | --incl | --inc)
  866. ac_prev=includedir ;;
  867. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  868. | --includ=* | --inclu=* | --incl=* | --inc=*)
  869. includedir=$ac_optarg ;;
  870. -infodir | --infodir | --infodi | --infod | --info | --inf)
  871. ac_prev=infodir ;;
  872. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  873. infodir=$ac_optarg ;;
  874. -libdir | --libdir | --libdi | --libd)
  875. ac_prev=libdir ;;
  876. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  877. libdir=$ac_optarg ;;
  878. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  879. | --libexe | --libex | --libe)
  880. ac_prev=libexecdir ;;
  881. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  882. | --libexe=* | --libex=* | --libe=*)
  883. libexecdir=$ac_optarg ;;
  884. -localedir | --localedir | --localedi | --localed | --locale)
  885. ac_prev=localedir ;;
  886. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  887. localedir=$ac_optarg ;;
  888. -localstatedir | --localstatedir | --localstatedi | --localstated \
  889. | --localstate | --localstat | --localsta | --localst | --locals)
  890. ac_prev=localstatedir ;;
  891. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  892. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  893. localstatedir=$ac_optarg ;;
  894. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  895. ac_prev=mandir ;;
  896. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  897. mandir=$ac_optarg ;;
  898. -nfp | --nfp | --nf)
  899. # Obsolete; use --without-fp.
  900. with_fp=no ;;
  901. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  902. | --no-cr | --no-c | -n)
  903. no_create=yes ;;
  904. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  905. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  906. no_recursion=yes ;;
  907. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  908. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  909. | --oldin | --oldi | --old | --ol | --o)
  910. ac_prev=oldincludedir ;;
  911. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  912. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  913. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  914. oldincludedir=$ac_optarg ;;
  915. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  916. ac_prev=prefix ;;
  917. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  918. prefix=$ac_optarg ;;
  919. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  920. | --program-pre | --program-pr | --program-p)
  921. ac_prev=program_prefix ;;
  922. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  923. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  924. program_prefix=$ac_optarg ;;
  925. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  926. | --program-suf | --program-su | --program-s)
  927. ac_prev=program_suffix ;;
  928. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  929. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  930. program_suffix=$ac_optarg ;;
  931. -program-transform-name | --program-transform-name \
  932. | --program-transform-nam | --program-transform-na \
  933. | --program-transform-n | --program-transform- \
  934. | --program-transform | --program-transfor \
  935. | --program-transfo | --program-transf \
  936. | --program-trans | --program-tran \
  937. | --progr-tra | --program-tr | --program-t)
  938. ac_prev=program_transform_name ;;
  939. -program-transform-name=* | --program-transform-name=* \
  940. | --program-transform-nam=* | --program-transform-na=* \
  941. | --program-transform-n=* | --program-transform-=* \
  942. | --program-transform=* | --program-transfor=* \
  943. | --program-transfo=* | --program-transf=* \
  944. | --program-trans=* | --program-tran=* \
  945. | --progr-tra=* | --program-tr=* | --program-t=*)
  946. program_transform_name=$ac_optarg ;;
  947. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  948. ac_prev=pdfdir ;;
  949. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  950. pdfdir=$ac_optarg ;;
  951. -psdir | --psdir | --psdi | --psd | --ps)
  952. ac_prev=psdir ;;
  953. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  954. psdir=$ac_optarg ;;
  955. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  956. | -silent | --silent | --silen | --sile | --sil)
  957. silent=yes ;;
  958. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  959. ac_prev=sbindir ;;
  960. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  961. | --sbi=* | --sb=*)
  962. sbindir=$ac_optarg ;;
  963. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  964. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  965. | --sharedst | --shareds | --shared | --share | --shar \
  966. | --sha | --sh)
  967. ac_prev=sharedstatedir ;;
  968. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  969. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  970. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  971. | --sha=* | --sh=*)
  972. sharedstatedir=$ac_optarg ;;
  973. -site | --site | --sit)
  974. ac_prev=site ;;
  975. -site=* | --site=* | --sit=*)
  976. site=$ac_optarg ;;
  977. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  978. ac_prev=srcdir ;;
  979. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  980. srcdir=$ac_optarg ;;
  981. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  982. | --syscon | --sysco | --sysc | --sys | --sy)
  983. ac_prev=sysconfdir ;;
  984. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  985. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  986. sysconfdir=$ac_optarg ;;
  987. -target | --target | --targe | --targ | --tar | --ta | --t)
  988. ac_prev=target_alias ;;
  989. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  990. target_alias=$ac_optarg ;;
  991. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  992. verbose=yes ;;
  993. -version | --version | --versio | --versi | --vers | -V)
  994. ac_init_version=: ;;
  995. -with-* | --with-*)
  996. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  997. # Reject names that are not valid shell variable names.
  998. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  999. as_fn_error $? "invalid package name: $ac_useropt"
  1000. ac_useropt_orig=$ac_useropt
  1001. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1002. case $ac_user_opts in
  1003. *"
  1004. "with_$ac_useropt"
  1005. "*) ;;
  1006. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1007. ac_unrecognized_sep=', ';;
  1008. esac
  1009. eval with_$ac_useropt=\$ac_optarg ;;
  1010. -without-* | --without-*)
  1011. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1012. # Reject names that are not valid shell variable names.
  1013. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1014. as_fn_error $? "invalid package name: $ac_useropt"
  1015. ac_useropt_orig=$ac_useropt
  1016. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1017. case $ac_user_opts in
  1018. *"
  1019. "with_$ac_useropt"
  1020. "*) ;;
  1021. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1022. ac_unrecognized_sep=', ';;
  1023. esac
  1024. eval with_$ac_useropt=no ;;
  1025. --x)
  1026. # Obsolete; use --with-x.
  1027. with_x=yes ;;
  1028. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1029. | --x-incl | --x-inc | --x-in | --x-i)
  1030. ac_prev=x_includes ;;
  1031. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1032. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1033. x_includes=$ac_optarg ;;
  1034. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1035. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1036. ac_prev=x_libraries ;;
  1037. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1038. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1039. x_libraries=$ac_optarg ;;
  1040. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1041. Try \`$0 --help' for more information"
  1042. ;;
  1043. *=*)
  1044. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1045. # Reject names that are not valid shell variable names.
  1046. case $ac_envvar in #(
  1047. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1048. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1049. esac
  1050. eval $ac_envvar=\$ac_optarg
  1051. export $ac_envvar ;;
  1052. *)
  1053. # FIXME: should be removed in autoconf 3.0.
  1054. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1055. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1056. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1057. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1058. ;;
  1059. esac
  1060. done
  1061. if test -n "$ac_prev"; then
  1062. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1063. as_fn_error $? "missing argument to $ac_option"
  1064. fi
  1065. if test -n "$ac_unrecognized_opts"; then
  1066. case $enable_option_checking in
  1067. no) ;;
  1068. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1069. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1070. esac
  1071. fi
  1072. # Check all directory arguments for consistency.
  1073. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1074. datadir sysconfdir sharedstatedir localstatedir includedir \
  1075. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1076. libdir localedir mandir
  1077. do
  1078. eval ac_val=\$$ac_var
  1079. # Remove trailing slashes.
  1080. case $ac_val in
  1081. */ )
  1082. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1083. eval $ac_var=\$ac_val;;
  1084. esac
  1085. # Be sure to have absolute directory names.
  1086. case $ac_val in
  1087. [\\/$]* | ?:[\\/]* ) continue;;
  1088. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1089. esac
  1090. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1091. done
  1092. # There might be people who depend on the old broken behavior: `$host'
  1093. # used to hold the argument of --host etc.
  1094. # FIXME: To remove some day.
  1095. build=$build_alias
  1096. host=$host_alias
  1097. target=$target_alias
  1098. # FIXME: To remove some day.
  1099. if test "x$host_alias" != x; then
  1100. if test "x$build_alias" = x; then
  1101. cross_compiling=maybe
  1102. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1103. If a cross compiler is detected then cross compile mode will be used" >&2
  1104. elif test "x$build_alias" != "x$host_alias"; then
  1105. cross_compiling=yes
  1106. fi
  1107. fi
  1108. ac_tool_prefix=
  1109. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1110. test "$silent" = yes && exec 6>/dev/null
  1111. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1112. ac_ls_di=`ls -di .` &&
  1113. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1114. as_fn_error $? "working directory cannot be determined"
  1115. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1116. as_fn_error $? "pwd does not report name of working directory"
  1117. # Find the source files, if location was not specified.
  1118. if test -z "$srcdir"; then
  1119. ac_srcdir_defaulted=yes
  1120. # Try the directory containing this script, then the parent directory.
  1121. ac_confdir=`$as_dirname -- "$as_myself" ||
  1122. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1123. X"$as_myself" : 'X\(//\)[^/]' \| \
  1124. X"$as_myself" : 'X\(//\)$' \| \
  1125. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1126. $as_echo X"$as_myself" |
  1127. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1128. s//\1/
  1129. q
  1130. }
  1131. /^X\(\/\/\)[^/].*/{
  1132. s//\1/
  1133. q
  1134. }
  1135. /^X\(\/\/\)$/{
  1136. s//\1/
  1137. q
  1138. }
  1139. /^X\(\/\).*/{
  1140. s//\1/
  1141. q
  1142. }
  1143. s/.*/./; q'`
  1144. srcdir=$ac_confdir
  1145. if test ! -r "$srcdir/$ac_unique_file"; then
  1146. srcdir=..
  1147. fi
  1148. else
  1149. ac_srcdir_defaulted=no
  1150. fi
  1151. if test ! -r "$srcdir/$ac_unique_file"; then
  1152. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1153. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1154. fi
  1155. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1156. ac_abs_confdir=`(
  1157. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1158. pwd)`
  1159. # When building in place, set srcdir=.
  1160. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1161. srcdir=.
  1162. fi
  1163. # Remove unnecessary trailing slashes from srcdir.
  1164. # Double slashes in file names in object file debugging info
  1165. # mess up M-x gdb in Emacs.
  1166. case $srcdir in
  1167. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1168. esac
  1169. for ac_var in $ac_precious_vars; do
  1170. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1171. eval ac_env_${ac_var}_value=\$${ac_var}
  1172. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1173. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1174. done
  1175. #
  1176. # Report the --help message.
  1177. #
  1178. if test "$ac_init_help" = "long"; then
  1179. # Omit some internal or obsolete options to make the list less imposing.
  1180. # This message is too long to be a string in the A/UX 3.1 sh.
  1181. cat <<_ACEOF
  1182. \`configure' configures OPCUAServer 1.0 to adapt to many kinds of systems.
  1183. Usage: $0 [OPTION]... [VAR=VALUE]...
  1184. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1185. VAR=VALUE. See below for descriptions of some of the useful variables.
  1186. Defaults for the options are specified in brackets.
  1187. Configuration:
  1188. -h, --help display this help and exit
  1189. --help=short display options specific to this package
  1190. --help=recursive display the short help of all the included packages
  1191. -V, --version display version information and exit
  1192. -q, --quiet, --silent do not print \`checking ...' messages
  1193. --cache-file=FILE cache test results in FILE [disabled]
  1194. -C, --config-cache alias for \`--cache-file=config.cache'
  1195. -n, --no-create do not create output files
  1196. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1197. Installation directories:
  1198. --prefix=PREFIX install architecture-independent files in PREFIX
  1199. [$ac_default_prefix]
  1200. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1201. [PREFIX]
  1202. By default, \`make install' will install all the files in
  1203. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1204. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1205. for instance \`--prefix=\$HOME'.
  1206. For better control, use the options below.
  1207. Fine tuning of the installation directories:
  1208. --bindir=DIR user executables [EPREFIX/bin]
  1209. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1210. --libexecdir=DIR program executables [EPREFIX/libexec]
  1211. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1212. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1213. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1214. --libdir=DIR object code libraries [EPREFIX/lib]
  1215. --includedir=DIR C header files [PREFIX/include]
  1216. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1217. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1218. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1219. --infodir=DIR info documentation [DATAROOTDIR/info]
  1220. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1221. --mandir=DIR man documentation [DATAROOTDIR/man]
  1222. --docdir=DIR documentation root [DATAROOTDIR/doc/opcuaserver]
  1223. --htmldir=DIR html documentation [DOCDIR]
  1224. --dvidir=DIR dvi documentation [DOCDIR]
  1225. --pdfdir=DIR pdf documentation [DOCDIR]
  1226. --psdir=DIR ps documentation [DOCDIR]
  1227. _ACEOF
  1228. cat <<\_ACEOF
  1229. Program names:
  1230. --program-prefix=PREFIX prepend PREFIX to installed program names
  1231. --program-suffix=SUFFIX append SUFFIX to installed program names
  1232. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1233. System types:
  1234. --build=BUILD configure for building on BUILD [guessed]
  1235. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1236. --target=TARGET configure for building compilers for TARGET [HOST]
  1237. _ACEOF
  1238. fi
  1239. if test -n "$ac_init_help"; then
  1240. case $ac_init_help in
  1241. short | recursive ) echo "Configuration of OPCUAServer 1.0:";;
  1242. esac
  1243. cat <<\_ACEOF
  1244. Optional Features:
  1245. --disable-option-checking ignore unrecognized --enable/--with options
  1246. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1247. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1248. --disable-dependency-tracking speeds up one-time build
  1249. --enable-dependency-tracking do not reject slow dependency extractors
  1250. --enable-shared[=PKGS] build shared libraries [default=yes]
  1251. --enable-static[=PKGS] build static libraries [default=yes]
  1252. --enable-fast-install[=PKGS]
  1253. optimize for fast installation [default=yes]
  1254. --disable-libtool-lock avoid locking (might break parallel builds)
  1255. Optional Packages:
  1256. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1257. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1258. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1259. both]
  1260. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1261. --with-sysroot=DIR Search for dependent libraries within DIR
  1262. (or the compiler's sysroot if not specified).
  1263. Some influential environment variables:
  1264. CC C compiler command
  1265. CFLAGS C compiler flags
  1266. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1267. nonstandard directory <lib dir>
  1268. LIBS libraries to pass to the linker, e.g. -l<library>
  1269. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1270. you have headers in a nonstandard directory <include dir>
  1271. PKG_CONFIG path to pkg-config utility
  1272. PKG_CONFIG_PATH
  1273. directories to add to pkg-config's search path
  1274. PKG_CONFIG_LIBDIR
  1275. path overriding pkg-config's built-in search path
  1276. CHECK_CFLAGS
  1277. C compiler flags for CHECK, overriding pkg-config
  1278. CHECK_LIBS linker flags for CHECK, overriding pkg-config
  1279. CPP C preprocessor
  1280. Use these variables to override the choices made by `configure' or to help
  1281. it to find libraries and programs with nonstandard names/locations.
  1282. Report bugs to the package provider.
  1283. _ACEOF
  1284. ac_status=$?
  1285. fi
  1286. if test "$ac_init_help" = "recursive"; then
  1287. # If there are subdirs, report their specific --help.
  1288. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1289. test -d "$ac_dir" ||
  1290. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1291. continue
  1292. ac_builddir=.
  1293. case "$ac_dir" in
  1294. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1295. *)
  1296. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1297. # A ".." for each directory in $ac_dir_suffix.
  1298. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1299. case $ac_top_builddir_sub in
  1300. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1301. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1302. esac ;;
  1303. esac
  1304. ac_abs_top_builddir=$ac_pwd
  1305. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1306. # for backward compatibility:
  1307. ac_top_builddir=$ac_top_build_prefix
  1308. case $srcdir in
  1309. .) # We are building in place.
  1310. ac_srcdir=.
  1311. ac_top_srcdir=$ac_top_builddir_sub
  1312. ac_abs_top_srcdir=$ac_pwd ;;
  1313. [\\/]* | ?:[\\/]* ) # Absolute name.
  1314. ac_srcdir=$srcdir$ac_dir_suffix;
  1315. ac_top_srcdir=$srcdir
  1316. ac_abs_top_srcdir=$srcdir ;;
  1317. *) # Relative name.
  1318. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1319. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1320. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1321. esac
  1322. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1323. cd "$ac_dir" || { ac_status=$?; continue; }
  1324. # Check for guested configure.
  1325. if test -f "$ac_srcdir/configure.gnu"; then
  1326. echo &&
  1327. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1328. elif test -f "$ac_srcdir/configure"; then
  1329. echo &&
  1330. $SHELL "$ac_srcdir/configure" --help=recursive
  1331. else
  1332. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1333. fi || ac_status=$?
  1334. cd "$ac_pwd" || { ac_status=$?; break; }
  1335. done
  1336. fi
  1337. test -n "$ac_init_help" && exit $ac_status
  1338. if $ac_init_version; then
  1339. cat <<\_ACEOF
  1340. OPCUAServer configure 1.0
  1341. generated by GNU Autoconf 2.68
  1342. Copyright (C) 2010 Free Software Foundation, Inc.
  1343. This configure script is free software; the Free Software Foundation
  1344. gives unlimited permission to copy, distribute and modify it.
  1345. _ACEOF
  1346. exit
  1347. fi
  1348. ## ------------------------ ##
  1349. ## Autoconf initialization. ##
  1350. ## ------------------------ ##
  1351. # ac_fn_c_try_compile LINENO
  1352. # --------------------------
  1353. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1354. ac_fn_c_try_compile ()
  1355. {
  1356. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1357. rm -f conftest.$ac_objext
  1358. if { { ac_try="$ac_compile"
  1359. case "(($ac_try" in
  1360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1361. *) ac_try_echo=$ac_try;;
  1362. esac
  1363. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1364. $as_echo "$ac_try_echo"; } >&5
  1365. (eval "$ac_compile") 2>conftest.err
  1366. ac_status=$?
  1367. if test -s conftest.err; then
  1368. grep -v '^ *+' conftest.err >conftest.er1
  1369. cat conftest.er1 >&5
  1370. mv -f conftest.er1 conftest.err
  1371. fi
  1372. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1373. test $ac_status = 0; } && {
  1374. test -z "$ac_c_werror_flag" ||
  1375. test ! -s conftest.err
  1376. } && test -s conftest.$ac_objext; then :
  1377. ac_retval=0
  1378. else
  1379. $as_echo "$as_me: failed program was:" >&5
  1380. sed 's/^/| /' conftest.$ac_ext >&5
  1381. ac_retval=1
  1382. fi
  1383. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1384. as_fn_set_status $ac_retval
  1385. } # ac_fn_c_try_compile
  1386. # ac_fn_c_try_link LINENO
  1387. # -----------------------
  1388. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1389. ac_fn_c_try_link ()
  1390. {
  1391. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1392. rm -f conftest.$ac_objext conftest$ac_exeext
  1393. if { { ac_try="$ac_link"
  1394. case "(($ac_try" in
  1395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1396. *) ac_try_echo=$ac_try;;
  1397. esac
  1398. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1399. $as_echo "$ac_try_echo"; } >&5
  1400. (eval "$ac_link") 2>conftest.err
  1401. ac_status=$?
  1402. if test -s conftest.err; then
  1403. grep -v '^ *+' conftest.err >conftest.er1
  1404. cat conftest.er1 >&5
  1405. mv -f conftest.er1 conftest.err
  1406. fi
  1407. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1408. test $ac_status = 0; } && {
  1409. test -z "$ac_c_werror_flag" ||
  1410. test ! -s conftest.err
  1411. } && test -s conftest$ac_exeext && {
  1412. test "$cross_compiling" = yes ||
  1413. $as_test_x conftest$ac_exeext
  1414. }; then :
  1415. ac_retval=0
  1416. else
  1417. $as_echo "$as_me: failed program was:" >&5
  1418. sed 's/^/| /' conftest.$ac_ext >&5
  1419. ac_retval=1
  1420. fi
  1421. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1422. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1423. # interfere with the next link command; also delete a directory that is
  1424. # left behind by Apple's compiler. We do this before executing the actions.
  1425. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1426. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1427. as_fn_set_status $ac_retval
  1428. } # ac_fn_c_try_link
  1429. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1430. # -------------------------------------------------------
  1431. # Tests whether HEADER exists and can be compiled using the include files in
  1432. # INCLUDES, setting the cache variable VAR accordingly.
  1433. ac_fn_c_check_header_compile ()
  1434. {
  1435. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1437. $as_echo_n "checking for $2... " >&6; }
  1438. if eval \${$3+:} false; then :
  1439. $as_echo_n "(cached) " >&6
  1440. else
  1441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1442. /* end confdefs.h. */
  1443. $4
  1444. #include <$2>
  1445. _ACEOF
  1446. if ac_fn_c_try_compile "$LINENO"; then :
  1447. eval "$3=yes"
  1448. else
  1449. eval "$3=no"
  1450. fi
  1451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1452. fi
  1453. eval ac_res=\$$3
  1454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1455. $as_echo "$ac_res" >&6; }
  1456. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1457. } # ac_fn_c_check_header_compile
  1458. # ac_fn_c_try_cpp LINENO
  1459. # ----------------------
  1460. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1461. ac_fn_c_try_cpp ()
  1462. {
  1463. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1464. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1465. case "(($ac_try" in
  1466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1467. *) ac_try_echo=$ac_try;;
  1468. esac
  1469. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1470. $as_echo "$ac_try_echo"; } >&5
  1471. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1472. ac_status=$?
  1473. if test -s conftest.err; then
  1474. grep -v '^ *+' conftest.err >conftest.er1
  1475. cat conftest.er1 >&5
  1476. mv -f conftest.er1 conftest.err
  1477. fi
  1478. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1479. test $ac_status = 0; } > conftest.i && {
  1480. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1481. test ! -s conftest.err
  1482. }; then :
  1483. ac_retval=0
  1484. else
  1485. $as_echo "$as_me: failed program was:" >&5
  1486. sed 's/^/| /' conftest.$ac_ext >&5
  1487. ac_retval=1
  1488. fi
  1489. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1490. as_fn_set_status $ac_retval
  1491. } # ac_fn_c_try_cpp
  1492. # ac_fn_c_try_run LINENO
  1493. # ----------------------
  1494. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1495. # that executables *can* be run.
  1496. ac_fn_c_try_run ()
  1497. {
  1498. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1499. if { { ac_try="$ac_link"
  1500. case "(($ac_try" in
  1501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1502. *) ac_try_echo=$ac_try;;
  1503. esac
  1504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1505. $as_echo "$ac_try_echo"; } >&5
  1506. (eval "$ac_link") 2>&5
  1507. ac_status=$?
  1508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1509. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1510. { { case "(($ac_try" in
  1511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1512. *) ac_try_echo=$ac_try;;
  1513. esac
  1514. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1515. $as_echo "$ac_try_echo"; } >&5
  1516. (eval "$ac_try") 2>&5
  1517. ac_status=$?
  1518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1519. test $ac_status = 0; }; }; then :
  1520. ac_retval=0
  1521. else
  1522. $as_echo "$as_me: program exited with status $ac_status" >&5
  1523. $as_echo "$as_me: failed program was:" >&5
  1524. sed 's/^/| /' conftest.$ac_ext >&5
  1525. ac_retval=$ac_status
  1526. fi
  1527. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1528. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1529. as_fn_set_status $ac_retval
  1530. } # ac_fn_c_try_run
  1531. # ac_fn_c_check_func LINENO FUNC VAR
  1532. # ----------------------------------
  1533. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1534. ac_fn_c_check_func ()
  1535. {
  1536. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1538. $as_echo_n "checking for $2... " >&6; }
  1539. if eval \${$3+:} false; then :
  1540. $as_echo_n "(cached) " >&6
  1541. else
  1542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1543. /* end confdefs.h. */
  1544. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1545. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1546. #define $2 innocuous_$2
  1547. /* System header to define __stub macros and hopefully few prototypes,
  1548. which can conflict with char $2 (); below.
  1549. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1550. <limits.h> exists even on freestanding compilers. */
  1551. #ifdef __STDC__
  1552. # include <limits.h>
  1553. #else
  1554. # include <assert.h>
  1555. #endif
  1556. #undef $2
  1557. /* Override any GCC internal prototype to avoid an error.
  1558. Use char because int might match the return type of a GCC
  1559. builtin and then its argument prototype would still apply. */
  1560. #ifdef __cplusplus
  1561. extern "C"
  1562. #endif
  1563. char $2 ();
  1564. /* The GNU C library defines this for functions which it implements
  1565. to always fail with ENOSYS. Some functions are actually named
  1566. something starting with __ and the normal name is an alias. */
  1567. #if defined __stub_$2 || defined __stub___$2
  1568. choke me
  1569. #endif
  1570. int
  1571. main ()
  1572. {
  1573. return $2 ();
  1574. ;
  1575. return 0;
  1576. }
  1577. _ACEOF
  1578. if ac_fn_c_try_link "$LINENO"; then :
  1579. eval "$3=yes"
  1580. else
  1581. eval "$3=no"
  1582. fi
  1583. rm -f core conftest.err conftest.$ac_objext \
  1584. conftest$ac_exeext conftest.$ac_ext
  1585. fi
  1586. eval ac_res=\$$3
  1587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1588. $as_echo "$ac_res" >&6; }
  1589. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1590. } # ac_fn_c_check_func
  1591. cat >config.log <<_ACEOF
  1592. This file contains any messages produced by compilers while
  1593. running configure, to aid debugging if configure makes a mistake.
  1594. It was created by OPCUAServer $as_me 1.0, which was
  1595. generated by GNU Autoconf 2.68. Invocation command line was
  1596. $ $0 $@
  1597. _ACEOF
  1598. exec 5>>config.log
  1599. {
  1600. cat <<_ASUNAME
  1601. ## --------- ##
  1602. ## Platform. ##
  1603. ## --------- ##
  1604. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1605. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1606. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1607. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1608. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1609. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1610. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1611. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1612. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1613. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1614. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1615. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1616. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1617. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1618. _ASUNAME
  1619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1620. for as_dir in $PATH
  1621. do
  1622. IFS=$as_save_IFS
  1623. test -z "$as_dir" && as_dir=.
  1624. $as_echo "PATH: $as_dir"
  1625. done
  1626. IFS=$as_save_IFS
  1627. } >&5
  1628. cat >&5 <<_ACEOF
  1629. ## ----------- ##
  1630. ## Core tests. ##
  1631. ## ----------- ##
  1632. _ACEOF
  1633. # Keep a trace of the command line.
  1634. # Strip out --no-create and --no-recursion so they do not pile up.
  1635. # Strip out --silent because we don't want to record it for future runs.
  1636. # Also quote any args containing shell meta-characters.
  1637. # Make two passes to allow for proper duplicate-argument suppression.
  1638. ac_configure_args=
  1639. ac_configure_args0=
  1640. ac_configure_args1=
  1641. ac_must_keep_next=false
  1642. for ac_pass in 1 2
  1643. do
  1644. for ac_arg
  1645. do
  1646. case $ac_arg in
  1647. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1648. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1649. | -silent | --silent | --silen | --sile | --sil)
  1650. continue ;;
  1651. *\'*)
  1652. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1653. esac
  1654. case $ac_pass in
  1655. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1656. 2)
  1657. as_fn_append ac_configure_args1 " '$ac_arg'"
  1658. if test $ac_must_keep_next = true; then
  1659. ac_must_keep_next=false # Got value, back to normal.
  1660. else
  1661. case $ac_arg in
  1662. *=* | --config-cache | -C | -disable-* | --disable-* \
  1663. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1664. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1665. | -with-* | --with-* | -without-* | --without-* | --x)
  1666. case "$ac_configure_args0 " in
  1667. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1668. esac
  1669. ;;
  1670. -* ) ac_must_keep_next=true ;;
  1671. esac
  1672. fi
  1673. as_fn_append ac_configure_args " '$ac_arg'"
  1674. ;;
  1675. esac
  1676. done
  1677. done
  1678. { ac_configure_args0=; unset ac_configure_args0;}
  1679. { ac_configure_args1=; unset ac_configure_args1;}
  1680. # When interrupted or exit'd, cleanup temporary files, and complete
  1681. # config.log. We remove comments because anyway the quotes in there
  1682. # would cause problems or look ugly.
  1683. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1684. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1685. trap 'exit_status=$?
  1686. # Save into config.log some information that might help in debugging.
  1687. {
  1688. echo
  1689. $as_echo "## ---------------- ##
  1690. ## Cache variables. ##
  1691. ## ---------------- ##"
  1692. echo
  1693. # The following way of writing the cache mishandles newlines in values,
  1694. (
  1695. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1696. eval ac_val=\$$ac_var
  1697. case $ac_val in #(
  1698. *${as_nl}*)
  1699. case $ac_var in #(
  1700. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1701. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1702. esac
  1703. case $ac_var in #(
  1704. _ | IFS | as_nl) ;; #(
  1705. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1706. *) { eval $ac_var=; unset $ac_var;} ;;
  1707. esac ;;
  1708. esac
  1709. done
  1710. (set) 2>&1 |
  1711. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1712. *${as_nl}ac_space=\ *)
  1713. sed -n \
  1714. "s/'\''/'\''\\\\'\'''\''/g;
  1715. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1716. ;; #(
  1717. *)
  1718. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1719. ;;
  1720. esac |
  1721. sort
  1722. )
  1723. echo
  1724. $as_echo "## ----------------- ##
  1725. ## Output variables. ##
  1726. ## ----------------- ##"
  1727. echo
  1728. for ac_var in $ac_subst_vars
  1729. do
  1730. eval ac_val=\$$ac_var
  1731. case $ac_val in
  1732. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1733. esac
  1734. $as_echo "$ac_var='\''$ac_val'\''"
  1735. done | sort
  1736. echo
  1737. if test -n "$ac_subst_files"; then
  1738. $as_echo "## ------------------- ##
  1739. ## File substitutions. ##
  1740. ## ------------------- ##"
  1741. echo
  1742. for ac_var in $ac_subst_files
  1743. do
  1744. eval ac_val=\$$ac_var
  1745. case $ac_val in
  1746. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1747. esac
  1748. $as_echo "$ac_var='\''$ac_val'\''"
  1749. done | sort
  1750. echo
  1751. fi
  1752. if test -s confdefs.h; then
  1753. $as_echo "## ----------- ##
  1754. ## confdefs.h. ##
  1755. ## ----------- ##"
  1756. echo
  1757. cat confdefs.h
  1758. echo
  1759. fi
  1760. test "$ac_signal" != 0 &&
  1761. $as_echo "$as_me: caught signal $ac_signal"
  1762. $as_echo "$as_me: exit $exit_status"
  1763. } >&5
  1764. rm -f core *.core core.conftest.* &&
  1765. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1766. exit $exit_status
  1767. ' 0
  1768. for ac_signal in 1 2 13 15; do
  1769. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1770. done
  1771. ac_signal=0
  1772. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1773. rm -f -r conftest* confdefs.h
  1774. $as_echo "/* confdefs.h */" > confdefs.h
  1775. # Predefined preprocessor variables.
  1776. cat >>confdefs.h <<_ACEOF
  1777. #define PACKAGE_NAME "$PACKAGE_NAME"
  1778. _ACEOF
  1779. cat >>confdefs.h <<_ACEOF
  1780. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1781. _ACEOF
  1782. cat >>confdefs.h <<_ACEOF
  1783. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1784. _ACEOF
  1785. cat >>confdefs.h <<_ACEOF
  1786. #define PACKAGE_STRING "$PACKAGE_STRING"
  1787. _ACEOF
  1788. cat >>confdefs.h <<_ACEOF
  1789. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1790. _ACEOF
  1791. cat >>confdefs.h <<_ACEOF
  1792. #define PACKAGE_URL "$PACKAGE_URL"
  1793. _ACEOF
  1794. # Let the site file select an alternate cache file if it wants to.
  1795. # Prefer an explicitly selected file to automatically selected ones.
  1796. ac_site_file1=NONE
  1797. ac_site_file2=NONE
  1798. if test -n "$CONFIG_SITE"; then
  1799. # We do not want a PATH search for config.site.
  1800. case $CONFIG_SITE in #((
  1801. -*) ac_site_file1=./$CONFIG_SITE;;
  1802. */*) ac_site_file1=$CONFIG_SITE;;
  1803. *) ac_site_file1=./$CONFIG_SITE;;
  1804. esac
  1805. elif test "x$prefix" != xNONE; then
  1806. ac_site_file1=$prefix/share/config.site
  1807. ac_site_file2=$prefix/etc/config.site
  1808. else
  1809. ac_site_file1=$ac_default_prefix/share/config.site
  1810. ac_site_file2=$ac_default_prefix/etc/config.site
  1811. fi
  1812. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1813. do
  1814. test "x$ac_site_file" = xNONE && continue
  1815. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1816. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1817. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1818. sed 's/^/| /' "$ac_site_file" >&5
  1819. . "$ac_site_file" \
  1820. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1821. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1822. as_fn_error $? "failed to load site script $ac_site_file
  1823. See \`config.log' for more details" "$LINENO" 5; }
  1824. fi
  1825. done
  1826. if test -r "$cache_file"; then
  1827. # Some versions of bash will fail to source /dev/null (special files
  1828. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1829. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1830. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1831. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1832. case $cache_file in
  1833. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1834. *) . "./$cache_file";;
  1835. esac
  1836. fi
  1837. else
  1838. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1839. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1840. >$cache_file
  1841. fi
  1842. # Check that the precious variables saved in the cache have kept the same
  1843. # value.
  1844. ac_cache_corrupted=false
  1845. for ac_var in $ac_precious_vars; do
  1846. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1847. eval ac_new_set=\$ac_env_${ac_var}_set
  1848. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1849. eval ac_new_val=\$ac_env_${ac_var}_value
  1850. case $ac_old_set,$ac_new_set in
  1851. set,)
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1853. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1854. ac_cache_corrupted=: ;;
  1855. ,set)
  1856. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1857. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1858. ac_cache_corrupted=: ;;
  1859. ,);;
  1860. *)
  1861. if test "x$ac_old_val" != "x$ac_new_val"; then
  1862. # differences in whitespace do not lead to failure.
  1863. ac_old_val_w=`echo x $ac_old_val`
  1864. ac_new_val_w=`echo x $ac_new_val`
  1865. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1866. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1867. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1868. ac_cache_corrupted=:
  1869. else
  1870. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1871. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1872. eval $ac_var=\$ac_old_val
  1873. fi
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1875. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1876. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1877. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1878. fi;;
  1879. esac
  1880. # Pass precious variables to config.status.
  1881. if test "$ac_new_set" = set; then
  1882. case $ac_new_val in
  1883. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1884. *) ac_arg=$ac_var=$ac_new_val ;;
  1885. esac
  1886. case " $ac_configure_args " in
  1887. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1888. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1889. esac
  1890. fi
  1891. done
  1892. if $ac_cache_corrupted; then
  1893. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1894. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1895. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1896. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1897. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1898. fi
  1899. ## -------------------- ##
  1900. ## Main body of script. ##
  1901. ## -------------------- ##
  1902. ac_ext=c
  1903. ac_cpp='$CPP $CPPFLAGS'
  1904. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1905. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1906. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1907. ac_aux_dir=
  1908. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1909. if test -f "$ac_dir/install-sh"; then
  1910. ac_aux_dir=$ac_dir
  1911. ac_install_sh="$ac_aux_dir/install-sh -c"
  1912. break
  1913. elif test -f "$ac_dir/install.sh"; then
  1914. ac_aux_dir=$ac_dir
  1915. ac_install_sh="$ac_aux_dir/install.sh -c"
  1916. break
  1917. elif test -f "$ac_dir/shtool"; then
  1918. ac_aux_dir=$ac_dir
  1919. ac_install_sh="$ac_aux_dir/shtool install -c"
  1920. break
  1921. fi
  1922. done
  1923. if test -z "$ac_aux_dir"; then
  1924. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1925. fi
  1926. # These three variables are undocumented and unsupported,
  1927. # and are intended to be withdrawn in a future Autoconf release.
  1928. # They can cause serious problems if a builder's source tree is in a directory
  1929. # whose full name contains unusual characters.
  1930. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1931. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1932. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1933. # Make sure we can run config.sub.
  1934. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1935. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1937. $as_echo_n "checking build system type... " >&6; }
  1938. if ${ac_cv_build+:} false; then :
  1939. $as_echo_n "(cached) " >&6
  1940. else
  1941. ac_build_alias=$build_alias
  1942. test "x$ac_build_alias" = x &&
  1943. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1944. test "x$ac_build_alias" = x &&
  1945. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1946. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1947. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1948. fi
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1950. $as_echo "$ac_cv_build" >&6; }
  1951. case $ac_cv_build in
  1952. *-*-*) ;;
  1953. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  1954. esac
  1955. build=$ac_cv_build
  1956. ac_save_IFS=$IFS; IFS='-'
  1957. set x $ac_cv_build
  1958. shift
  1959. build_cpu=$1
  1960. build_vendor=$2
  1961. shift; shift
  1962. # Remember, the first character of IFS is used to create $*,
  1963. # except with old shells:
  1964. build_os=$*
  1965. IFS=$ac_save_IFS
  1966. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  1968. $as_echo_n "checking host system type... " >&6; }
  1969. if ${ac_cv_host+:} false; then :
  1970. $as_echo_n "(cached) " >&6
  1971. else
  1972. if test "x$host_alias" = x; then
  1973. ac_cv_host=$ac_cv_build
  1974. else
  1975. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1976. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  1977. fi
  1978. fi
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  1980. $as_echo "$ac_cv_host" >&6; }
  1981. case $ac_cv_host in
  1982. *-*-*) ;;
  1983. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  1984. esac
  1985. host=$ac_cv_host
  1986. ac_save_IFS=$IFS; IFS='-'
  1987. set x $ac_cv_host
  1988. shift
  1989. host_cpu=$1
  1990. host_vendor=$2
  1991. shift; shift
  1992. # Remember, the first character of IFS is used to create $*,
  1993. # except with old shells:
  1994. host_os=$*
  1995. IFS=$ac_save_IFS
  1996. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  1998. $as_echo_n "checking target system type... " >&6; }
  1999. if ${ac_cv_target+:} false; then :
  2000. $as_echo_n "(cached) " >&6
  2001. else
  2002. if test "x$target_alias" = x; then
  2003. ac_cv_target=$ac_cv_host
  2004. else
  2005. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2006. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2007. fi
  2008. fi
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2010. $as_echo "$ac_cv_target" >&6; }
  2011. case $ac_cv_target in
  2012. *-*-*) ;;
  2013. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2014. esac
  2015. target=$ac_cv_target
  2016. ac_save_IFS=$IFS; IFS='-'
  2017. set x $ac_cv_target
  2018. shift
  2019. target_cpu=$1
  2020. target_vendor=$2
  2021. shift; shift
  2022. # Remember, the first character of IFS is used to create $*,
  2023. # except with old shells:
  2024. target_os=$*
  2025. IFS=$ac_save_IFS
  2026. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2027. # The aliases save the names the user supplied, while $host etc.
  2028. # will get canonicalized.
  2029. test -n "$target_alias" &&
  2030. test "$program_prefix$program_suffix$program_transform_name" = \
  2031. NONENONEs,x,x, &&
  2032. program_prefix=${target_alias}-
  2033. am__api_version='1.11'
  2034. # Find a good install program. We prefer a C program (faster),
  2035. # so one script is as good as another. But avoid the broken or
  2036. # incompatible versions:
  2037. # SysV /etc/install, /usr/sbin/install
  2038. # SunOS /usr/etc/install
  2039. # IRIX /sbin/install
  2040. # AIX /bin/install
  2041. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2042. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2043. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2044. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2045. # OS/2's system install, which has a completely different semantic
  2046. # ./install, which can be erroneously created by make from ./install.sh.
  2047. # Reject install programs that cannot install multiple files.
  2048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2049. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2050. if test -z "$INSTALL"; then
  2051. if ${ac_cv_path_install+:} false; then :
  2052. $as_echo_n "(cached) " >&6
  2053. else
  2054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2055. for as_dir in $PATH
  2056. do
  2057. IFS=$as_save_IFS
  2058. test -z "$as_dir" && as_dir=.
  2059. # Account for people who put trailing slashes in PATH elements.
  2060. case $as_dir/ in #((
  2061. ./ | .// | /[cC]/* | \
  2062. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2063. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2064. /usr/ucb/* ) ;;
  2065. *)
  2066. # OSF1 and SCO ODT 3.0 have their own names for install.
  2067. # Don't use installbsd from OSF since it installs stuff as root
  2068. # by default.
  2069. for ac_prog in ginstall scoinst install; do
  2070. for ac_exec_ext in '' $ac_executable_extensions; do
  2071. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2072. if test $ac_prog = install &&
  2073. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2074. # AIX install. It has an incompatible calling convention.
  2075. :
  2076. elif test $ac_prog = install &&
  2077. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2078. # program-specific install script used by HP pwplus--don't use.
  2079. :
  2080. else
  2081. rm -rf conftest.one conftest.two conftest.dir
  2082. echo one > conftest.one
  2083. echo two > conftest.two
  2084. mkdir conftest.dir
  2085. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2086. test -s conftest.one && test -s conftest.two &&
  2087. test -s conftest.dir/conftest.one &&
  2088. test -s conftest.dir/conftest.two
  2089. then
  2090. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2091. break 3
  2092. fi
  2093. fi
  2094. fi
  2095. done
  2096. done
  2097. ;;
  2098. esac
  2099. done
  2100. IFS=$as_save_IFS
  2101. rm -rf conftest.one conftest.two conftest.dir
  2102. fi
  2103. if test "${ac_cv_path_install+set}" = set; then
  2104. INSTALL=$ac_cv_path_install
  2105. else
  2106. # As a last resort, use the slow shell script. Don't cache a
  2107. # value for INSTALL within a source directory, because that will
  2108. # break other packages using the cache if that directory is
  2109. # removed, or if the value is a relative name.
  2110. INSTALL=$ac_install_sh
  2111. fi
  2112. fi
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2114. $as_echo "$INSTALL" >&6; }
  2115. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2116. # It thinks the first close brace ends the variable substitution.
  2117. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2118. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2119. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2121. $as_echo_n "checking whether build environment is sane... " >&6; }
  2122. # Just in case
  2123. sleep 1
  2124. echo timestamp > conftest.file
  2125. # Reject unsafe characters in $srcdir or the absolute working directory
  2126. # name. Accept space and tab only in the latter.
  2127. am_lf='
  2128. '
  2129. case `pwd` in
  2130. *[\\\"\#\$\&\'\`$am_lf]*)
  2131. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2132. esac
  2133. case $srcdir in
  2134. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2135. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2136. esac
  2137. # Do `set' in a subshell so we don't clobber the current shell's
  2138. # arguments. Must try -L first in case configure is actually a
  2139. # symlink; some systems play weird games with the mod time of symlinks
  2140. # (eg FreeBSD returns the mod time of the symlink's containing
  2141. # directory).
  2142. if (
  2143. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2144. if test "$*" = "X"; then
  2145. # -L didn't work.
  2146. set X `ls -t "$srcdir/configure" conftest.file`
  2147. fi
  2148. rm -f conftest.file
  2149. if test "$*" != "X $srcdir/configure conftest.file" \
  2150. && test "$*" != "X conftest.file $srcdir/configure"; then
  2151. # If neither matched, then we have a broken ls. This can happen
  2152. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2153. # broken ls alias from the environment. This has actually
  2154. # happened. Such a system could not be considered "sane".
  2155. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2156. alias in your environment" "$LINENO" 5
  2157. fi
  2158. test "$2" = conftest.file
  2159. )
  2160. then
  2161. # Ok.
  2162. :
  2163. else
  2164. as_fn_error $? "newly created file is older than distributed files!
  2165. Check your system clock" "$LINENO" 5
  2166. fi
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2168. $as_echo "yes" >&6; }
  2169. test "$program_prefix" != NONE &&
  2170. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2171. # Use a double $ so make ignores it.
  2172. test "$program_suffix" != NONE &&
  2173. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2174. # Double any \ or $.
  2175. # By default was `s,x,x', remove it if useless.
  2176. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2177. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2178. # expand $ac_aux_dir to an absolute path
  2179. am_aux_dir=`cd $ac_aux_dir && pwd`
  2180. if test x"${MISSING+set}" != xset; then
  2181. case $am_aux_dir in
  2182. *\ * | *\ *)
  2183. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2184. *)
  2185. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2186. esac
  2187. fi
  2188. # Use eval to expand $SHELL
  2189. if eval "$MISSING --run true"; then
  2190. am_missing_run="$MISSING --run "
  2191. else
  2192. am_missing_run=
  2193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2194. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2195. fi
  2196. if test x"${install_sh}" != xset; then
  2197. case $am_aux_dir in
  2198. *\ * | *\ *)
  2199. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2200. *)
  2201. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2202. esac
  2203. fi
  2204. # Installed binaries are usually stripped using `strip' when the user
  2205. # run `make install-strip'. However `strip' might not be the right
  2206. # tool to use in cross-compilation environments, therefore Automake
  2207. # will honor the `STRIP' environment variable to overrule this program.
  2208. if test "$cross_compiling" != no; then
  2209. if test -n "$ac_tool_prefix"; then
  2210. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2211. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2213. $as_echo_n "checking for $ac_word... " >&6; }
  2214. if ${ac_cv_prog_STRIP+:} false; then :
  2215. $as_echo_n "(cached) " >&6
  2216. else
  2217. if test -n "$STRIP"; then
  2218. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2219. else
  2220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2221. for as_dir in $PATH
  2222. do
  2223. IFS=$as_save_IFS
  2224. test -z "$as_dir" && as_dir=.
  2225. for ac_exec_ext in '' $ac_executable_extensions; do
  2226. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2227. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2229. break 2
  2230. fi
  2231. done
  2232. done
  2233. IFS=$as_save_IFS
  2234. fi
  2235. fi
  2236. STRIP=$ac_cv_prog_STRIP
  2237. if test -n "$STRIP"; then
  2238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2239. $as_echo "$STRIP" >&6; }
  2240. else
  2241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2242. $as_echo "no" >&6; }
  2243. fi
  2244. fi
  2245. if test -z "$ac_cv_prog_STRIP"; then
  2246. ac_ct_STRIP=$STRIP
  2247. # Extract the first word of "strip", so it can be a program name with args.
  2248. set dummy strip; ac_word=$2
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2250. $as_echo_n "checking for $ac_word... " >&6; }
  2251. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2252. $as_echo_n "(cached) " >&6
  2253. else
  2254. if test -n "$ac_ct_STRIP"; then
  2255. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2256. else
  2257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2258. for as_dir in $PATH
  2259. do
  2260. IFS=$as_save_IFS
  2261. test -z "$as_dir" && as_dir=.
  2262. for ac_exec_ext in '' $ac_executable_extensions; do
  2263. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2264. ac_cv_prog_ac_ct_STRIP="strip"
  2265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2266. break 2
  2267. fi
  2268. done
  2269. done
  2270. IFS=$as_save_IFS
  2271. fi
  2272. fi
  2273. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2274. if test -n "$ac_ct_STRIP"; then
  2275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2276. $as_echo "$ac_ct_STRIP" >&6; }
  2277. else
  2278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2279. $as_echo "no" >&6; }
  2280. fi
  2281. if test "x$ac_ct_STRIP" = x; then
  2282. STRIP=":"
  2283. else
  2284. case $cross_compiling:$ac_tool_warned in
  2285. yes:)
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2287. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2288. ac_tool_warned=yes ;;
  2289. esac
  2290. STRIP=$ac_ct_STRIP
  2291. fi
  2292. else
  2293. STRIP="$ac_cv_prog_STRIP"
  2294. fi
  2295. fi
  2296. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2298. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2299. if test -z "$MKDIR_P"; then
  2300. if ${ac_cv_path_mkdir+:} false; then :
  2301. $as_echo_n "(cached) " >&6
  2302. else
  2303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2304. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2305. do
  2306. IFS=$as_save_IFS
  2307. test -z "$as_dir" && as_dir=.
  2308. for ac_prog in mkdir gmkdir; do
  2309. for ac_exec_ext in '' $ac_executable_extensions; do
  2310. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2311. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2312. 'mkdir (GNU coreutils) '* | \
  2313. 'mkdir (coreutils) '* | \
  2314. 'mkdir (fileutils) '4.1*)
  2315. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2316. break 3;;
  2317. esac
  2318. done
  2319. done
  2320. done
  2321. IFS=$as_save_IFS
  2322. fi
  2323. test -d ./--version && rmdir ./--version
  2324. if test "${ac_cv_path_mkdir+set}" = set; then
  2325. MKDIR_P="$ac_cv_path_mkdir -p"
  2326. else
  2327. # As a last resort, use the slow shell script. Don't cache a
  2328. # value for MKDIR_P within a source directory, because that will
  2329. # break other packages using the cache if that directory is
  2330. # removed, or if the value is a relative name.
  2331. MKDIR_P="$ac_install_sh -d"
  2332. fi
  2333. fi
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2335. $as_echo "$MKDIR_P" >&6; }
  2336. mkdir_p="$MKDIR_P"
  2337. case $mkdir_p in
  2338. [\\/$]* | ?:[\\/]*) ;;
  2339. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2340. esac
  2341. for ac_prog in gawk mawk nawk awk
  2342. do
  2343. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2344. set dummy $ac_prog; ac_word=$2
  2345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2346. $as_echo_n "checking for $ac_word... " >&6; }
  2347. if ${ac_cv_prog_AWK+:} false; then :
  2348. $as_echo_n "(cached) " >&6
  2349. else
  2350. if test -n "$AWK"; then
  2351. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2352. else
  2353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2354. for as_dir in $PATH
  2355. do
  2356. IFS=$as_save_IFS
  2357. test -z "$as_dir" && as_dir=.
  2358. for ac_exec_ext in '' $ac_executable_extensions; do
  2359. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2360. ac_cv_prog_AWK="$ac_prog"
  2361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2362. break 2
  2363. fi
  2364. done
  2365. done
  2366. IFS=$as_save_IFS
  2367. fi
  2368. fi
  2369. AWK=$ac_cv_prog_AWK
  2370. if test -n "$AWK"; then
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2372. $as_echo "$AWK" >&6; }
  2373. else
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2375. $as_echo "no" >&6; }
  2376. fi
  2377. test -n "$AWK" && break
  2378. done
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2380. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2381. set x ${MAKE-make}
  2382. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2383. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2384. $as_echo_n "(cached) " >&6
  2385. else
  2386. cat >conftest.make <<\_ACEOF
  2387. SHELL = /bin/sh
  2388. all:
  2389. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2390. _ACEOF
  2391. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2392. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2393. *@@@%%%=?*=@@@%%%*)
  2394. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2395. *)
  2396. eval ac_cv_prog_make_${ac_make}_set=no;;
  2397. esac
  2398. rm -f conftest.make
  2399. fi
  2400. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2402. $as_echo "yes" >&6; }
  2403. SET_MAKE=
  2404. else
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2406. $as_echo "no" >&6; }
  2407. SET_MAKE="MAKE=${MAKE-make}"
  2408. fi
  2409. rm -rf .tst 2>/dev/null
  2410. mkdir .tst 2>/dev/null
  2411. if test -d .tst; then
  2412. am__leading_dot=.
  2413. else
  2414. am__leading_dot=_
  2415. fi
  2416. rmdir .tst 2>/dev/null
  2417. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2418. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2419. # is not polluted with repeated "-I."
  2420. am__isrc=' -I$(srcdir)'
  2421. # test to see if srcdir already configured
  2422. if test -f $srcdir/config.status; then
  2423. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2424. fi
  2425. fi
  2426. # test whether we have cygpath
  2427. if test -z "$CYGPATH_W"; then
  2428. if (cygpath --version) >/dev/null 2>/dev/null; then
  2429. CYGPATH_W='cygpath -w'
  2430. else
  2431. CYGPATH_W=echo
  2432. fi
  2433. fi
  2434. # Define the identity of the package.
  2435. PACKAGE='opcuaserver'
  2436. VERSION='1.0'
  2437. cat >>confdefs.h <<_ACEOF
  2438. #define PACKAGE "$PACKAGE"
  2439. _ACEOF
  2440. cat >>confdefs.h <<_ACEOF
  2441. #define VERSION "$VERSION"
  2442. _ACEOF
  2443. # Some tools Automake needs.
  2444. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2445. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2446. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2447. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2448. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2449. # We need awk for the "check" target. The system "awk" is bad on
  2450. # some platforms.
  2451. # Always define AMTAR for backward compatibility. Yes, it's still used
  2452. # in the wild :-( We should find a proper way to deprecate it ...
  2453. AMTAR='$${TAR-tar}'
  2454. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2455. ac_ext=c
  2456. ac_cpp='$CPP $CPPFLAGS'
  2457. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2458. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2459. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2460. if test -n "$ac_tool_prefix"; then
  2461. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2462. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2464. $as_echo_n "checking for $ac_word... " >&6; }
  2465. if ${ac_cv_prog_CC+:} false; then :
  2466. $as_echo_n "(cached) " >&6
  2467. else
  2468. if test -n "$CC"; then
  2469. ac_cv_prog_CC="$CC" # Let the user override the test.
  2470. else
  2471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2472. for as_dir in $PATH
  2473. do
  2474. IFS=$as_save_IFS
  2475. test -z "$as_dir" && as_dir=.
  2476. for ac_exec_ext in '' $ac_executable_extensions; do
  2477. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2478. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2479. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2480. break 2
  2481. fi
  2482. done
  2483. done
  2484. IFS=$as_save_IFS
  2485. fi
  2486. fi
  2487. CC=$ac_cv_prog_CC
  2488. if test -n "$CC"; then
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2490. $as_echo "$CC" >&6; }
  2491. else
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2493. $as_echo "no" >&6; }
  2494. fi
  2495. fi
  2496. if test -z "$ac_cv_prog_CC"; then
  2497. ac_ct_CC=$CC
  2498. # Extract the first word of "gcc", so it can be a program name with args.
  2499. set dummy gcc; ac_word=$2
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2501. $as_echo_n "checking for $ac_word... " >&6; }
  2502. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2503. $as_echo_n "(cached) " >&6
  2504. else
  2505. if test -n "$ac_ct_CC"; then
  2506. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2507. else
  2508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2509. for as_dir in $PATH
  2510. do
  2511. IFS=$as_save_IFS
  2512. test -z "$as_dir" && as_dir=.
  2513. for ac_exec_ext in '' $ac_executable_extensions; do
  2514. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2515. ac_cv_prog_ac_ct_CC="gcc"
  2516. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2517. break 2
  2518. fi
  2519. done
  2520. done
  2521. IFS=$as_save_IFS
  2522. fi
  2523. fi
  2524. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2525. if test -n "$ac_ct_CC"; then
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2527. $as_echo "$ac_ct_CC" >&6; }
  2528. else
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2530. $as_echo "no" >&6; }
  2531. fi
  2532. if test "x$ac_ct_CC" = x; then
  2533. CC=""
  2534. else
  2535. case $cross_compiling:$ac_tool_warned in
  2536. yes:)
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2538. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2539. ac_tool_warned=yes ;;
  2540. esac
  2541. CC=$ac_ct_CC
  2542. fi
  2543. else
  2544. CC="$ac_cv_prog_CC"
  2545. fi
  2546. if test -z "$CC"; then
  2547. if test -n "$ac_tool_prefix"; then
  2548. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2549. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2551. $as_echo_n "checking for $ac_word... " >&6; }
  2552. if ${ac_cv_prog_CC+:} false; then :
  2553. $as_echo_n "(cached) " >&6
  2554. else
  2555. if test -n "$CC"; then
  2556. ac_cv_prog_CC="$CC" # Let the user override the test.
  2557. else
  2558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2559. for as_dir in $PATH
  2560. do
  2561. IFS=$as_save_IFS
  2562. test -z "$as_dir" && as_dir=.
  2563. for ac_exec_ext in '' $ac_executable_extensions; do
  2564. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2565. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2567. break 2
  2568. fi
  2569. done
  2570. done
  2571. IFS=$as_save_IFS
  2572. fi
  2573. fi
  2574. CC=$ac_cv_prog_CC
  2575. if test -n "$CC"; then
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2577. $as_echo "$CC" >&6; }
  2578. else
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2580. $as_echo "no" >&6; }
  2581. fi
  2582. fi
  2583. fi
  2584. if test -z "$CC"; then
  2585. # Extract the first word of "cc", so it can be a program name with args.
  2586. set dummy cc; ac_word=$2
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2588. $as_echo_n "checking for $ac_word... " >&6; }
  2589. if ${ac_cv_prog_CC+:} false; then :
  2590. $as_echo_n "(cached) " >&6
  2591. else
  2592. if test -n "$CC"; then
  2593. ac_cv_prog_CC="$CC" # Let the user override the test.
  2594. else
  2595. ac_prog_rejected=no
  2596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2597. for as_dir in $PATH
  2598. do
  2599. IFS=$as_save_IFS
  2600. test -z "$as_dir" && as_dir=.
  2601. for ac_exec_ext in '' $ac_executable_extensions; do
  2602. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2603. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2604. ac_prog_rejected=yes
  2605. continue
  2606. fi
  2607. ac_cv_prog_CC="cc"
  2608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2609. break 2
  2610. fi
  2611. done
  2612. done
  2613. IFS=$as_save_IFS
  2614. if test $ac_prog_rejected = yes; then
  2615. # We found a bogon in the path, so make sure we never use it.
  2616. set dummy $ac_cv_prog_CC
  2617. shift
  2618. if test $# != 0; then
  2619. # We chose a different compiler from the bogus one.
  2620. # However, it has the same basename, so the bogon will be chosen
  2621. # first if we set CC to just the basename; use the full file name.
  2622. shift
  2623. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2624. fi
  2625. fi
  2626. fi
  2627. fi
  2628. CC=$ac_cv_prog_CC
  2629. if test -n "$CC"; then
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2631. $as_echo "$CC" >&6; }
  2632. else
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2634. $as_echo "no" >&6; }
  2635. fi
  2636. fi
  2637. if test -z "$CC"; then
  2638. if test -n "$ac_tool_prefix"; then
  2639. for ac_prog in cl.exe
  2640. do
  2641. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2642. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2644. $as_echo_n "checking for $ac_word... " >&6; }
  2645. if ${ac_cv_prog_CC+:} false; then :
  2646. $as_echo_n "(cached) " >&6
  2647. else
  2648. if test -n "$CC"; then
  2649. ac_cv_prog_CC="$CC" # Let the user override the test.
  2650. else
  2651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2652. for as_dir in $PATH
  2653. do
  2654. IFS=$as_save_IFS
  2655. test -z "$as_dir" && as_dir=.
  2656. for ac_exec_ext in '' $ac_executable_extensions; do
  2657. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2658. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2660. break 2
  2661. fi
  2662. done
  2663. done
  2664. IFS=$as_save_IFS
  2665. fi
  2666. fi
  2667. CC=$ac_cv_prog_CC
  2668. if test -n "$CC"; then
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2670. $as_echo "$CC" >&6; }
  2671. else
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2673. $as_echo "no" >&6; }
  2674. fi
  2675. test -n "$CC" && break
  2676. done
  2677. fi
  2678. if test -z "$CC"; then
  2679. ac_ct_CC=$CC
  2680. for ac_prog in cl.exe
  2681. do
  2682. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2683. set dummy $ac_prog; ac_word=$2
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2685. $as_echo_n "checking for $ac_word... " >&6; }
  2686. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2687. $as_echo_n "(cached) " >&6
  2688. else
  2689. if test -n "$ac_ct_CC"; then
  2690. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2691. else
  2692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2693. for as_dir in $PATH
  2694. do
  2695. IFS=$as_save_IFS
  2696. test -z "$as_dir" && as_dir=.
  2697. for ac_exec_ext in '' $ac_executable_extensions; do
  2698. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2699. ac_cv_prog_ac_ct_CC="$ac_prog"
  2700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2701. break 2
  2702. fi
  2703. done
  2704. done
  2705. IFS=$as_save_IFS
  2706. fi
  2707. fi
  2708. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2709. if test -n "$ac_ct_CC"; then
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2711. $as_echo "$ac_ct_CC" >&6; }
  2712. else
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2714. $as_echo "no" >&6; }
  2715. fi
  2716. test -n "$ac_ct_CC" && break
  2717. done
  2718. if test "x$ac_ct_CC" = x; then
  2719. CC=""
  2720. else
  2721. case $cross_compiling:$ac_tool_warned in
  2722. yes:)
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2724. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2725. ac_tool_warned=yes ;;
  2726. esac
  2727. CC=$ac_ct_CC
  2728. fi
  2729. fi
  2730. fi
  2731. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2732. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2733. as_fn_error $? "no acceptable C compiler found in \$PATH
  2734. See \`config.log' for more details" "$LINENO" 5; }
  2735. # Provide some information about the compiler.
  2736. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2737. set X $ac_compile
  2738. ac_compiler=$2
  2739. for ac_option in --version -v -V -qversion; do
  2740. { { ac_try="$ac_compiler $ac_option >&5"
  2741. case "(($ac_try" in
  2742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2743. *) ac_try_echo=$ac_try;;
  2744. esac
  2745. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2746. $as_echo "$ac_try_echo"; } >&5
  2747. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2748. ac_status=$?
  2749. if test -s conftest.err; then
  2750. sed '10a\
  2751. ... rest of stderr output deleted ...
  2752. 10q' conftest.err >conftest.er1
  2753. cat conftest.er1 >&5
  2754. fi
  2755. rm -f conftest.er1 conftest.err
  2756. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2757. test $ac_status = 0; }
  2758. done
  2759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2760. /* end confdefs.h. */
  2761. int
  2762. main ()
  2763. {
  2764. ;
  2765. return 0;
  2766. }
  2767. _ACEOF
  2768. ac_clean_files_save=$ac_clean_files
  2769. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2770. # Try to create an executable without -o first, disregard a.out.
  2771. # It will help us diagnose broken compilers, and finding out an intuition
  2772. # of exeext.
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2774. $as_echo_n "checking whether the C compiler works... " >&6; }
  2775. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2776. # The possible output files:
  2777. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2778. ac_rmfiles=
  2779. for ac_file in $ac_files
  2780. do
  2781. case $ac_file in
  2782. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2783. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2784. esac
  2785. done
  2786. rm -f $ac_rmfiles
  2787. if { { ac_try="$ac_link_default"
  2788. case "(($ac_try" in
  2789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2790. *) ac_try_echo=$ac_try;;
  2791. esac
  2792. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2793. $as_echo "$ac_try_echo"; } >&5
  2794. (eval "$ac_link_default") 2>&5
  2795. ac_status=$?
  2796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2797. test $ac_status = 0; }; then :
  2798. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2799. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2800. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2801. # so that the user can short-circuit this test for compilers unknown to
  2802. # Autoconf.
  2803. for ac_file in $ac_files ''
  2804. do
  2805. test -f "$ac_file" || continue
  2806. case $ac_file in
  2807. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2808. ;;
  2809. [ab].out )
  2810. # We found the default executable, but exeext='' is most
  2811. # certainly right.
  2812. break;;
  2813. *.* )
  2814. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2815. then :; else
  2816. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2817. fi
  2818. # We set ac_cv_exeext here because the later test for it is not
  2819. # safe: cross compilers may not add the suffix if given an `-o'
  2820. # argument, so we may need to know it at that point already.
  2821. # Even if this section looks crufty: it has the advantage of
  2822. # actually working.
  2823. break;;
  2824. * )
  2825. break;;
  2826. esac
  2827. done
  2828. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2829. else
  2830. ac_file=''
  2831. fi
  2832. if test -z "$ac_file"; then :
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2834. $as_echo "no" >&6; }
  2835. $as_echo "$as_me: failed program was:" >&5
  2836. sed 's/^/| /' conftest.$ac_ext >&5
  2837. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2838. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2839. as_fn_error 77 "C compiler cannot create executables
  2840. See \`config.log' for more details" "$LINENO" 5; }
  2841. else
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2843. $as_echo "yes" >&6; }
  2844. fi
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2846. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2848. $as_echo "$ac_file" >&6; }
  2849. ac_exeext=$ac_cv_exeext
  2850. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2851. ac_clean_files=$ac_clean_files_save
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2853. $as_echo_n "checking for suffix of executables... " >&6; }
  2854. if { { ac_try="$ac_link"
  2855. case "(($ac_try" in
  2856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2857. *) ac_try_echo=$ac_try;;
  2858. esac
  2859. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2860. $as_echo "$ac_try_echo"; } >&5
  2861. (eval "$ac_link") 2>&5
  2862. ac_status=$?
  2863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2864. test $ac_status = 0; }; then :
  2865. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2866. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2867. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2868. # `rm'.
  2869. for ac_file in conftest.exe conftest conftest.*; do
  2870. test -f "$ac_file" || continue
  2871. case $ac_file in
  2872. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2873. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2874. break;;
  2875. * ) break;;
  2876. esac
  2877. done
  2878. else
  2879. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2880. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2881. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2882. See \`config.log' for more details" "$LINENO" 5; }
  2883. fi
  2884. rm -f conftest conftest$ac_cv_exeext
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2886. $as_echo "$ac_cv_exeext" >&6; }
  2887. rm -f conftest.$ac_ext
  2888. EXEEXT=$ac_cv_exeext
  2889. ac_exeext=$EXEEXT
  2890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2891. /* end confdefs.h. */
  2892. #include <stdio.h>
  2893. int
  2894. main ()
  2895. {
  2896. FILE *f = fopen ("conftest.out", "w");
  2897. return ferror (f) || fclose (f) != 0;
  2898. ;
  2899. return 0;
  2900. }
  2901. _ACEOF
  2902. ac_clean_files="$ac_clean_files conftest.out"
  2903. # Check that the compiler produces executables we can run. If not, either
  2904. # the compiler is broken, or we cross compile.
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2906. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2907. if test "$cross_compiling" != yes; then
  2908. { { ac_try="$ac_link"
  2909. case "(($ac_try" in
  2910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2911. *) ac_try_echo=$ac_try;;
  2912. esac
  2913. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2914. $as_echo "$ac_try_echo"; } >&5
  2915. (eval "$ac_link") 2>&5
  2916. ac_status=$?
  2917. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2918. test $ac_status = 0; }
  2919. if { ac_try='./conftest$ac_cv_exeext'
  2920. { { case "(($ac_try" in
  2921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2922. *) ac_try_echo=$ac_try;;
  2923. esac
  2924. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2925. $as_echo "$ac_try_echo"; } >&5
  2926. (eval "$ac_try") 2>&5
  2927. ac_status=$?
  2928. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2929. test $ac_status = 0; }; }; then
  2930. cross_compiling=no
  2931. else
  2932. if test "$cross_compiling" = maybe; then
  2933. cross_compiling=yes
  2934. else
  2935. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2936. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2937. as_fn_error $? "cannot run C compiled programs.
  2938. If you meant to cross compile, use \`--host'.
  2939. See \`config.log' for more details" "$LINENO" 5; }
  2940. fi
  2941. fi
  2942. fi
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2944. $as_echo "$cross_compiling" >&6; }
  2945. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2946. ac_clean_files=$ac_clean_files_save
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2948. $as_echo_n "checking for suffix of object files... " >&6; }
  2949. if ${ac_cv_objext+:} false; then :
  2950. $as_echo_n "(cached) " >&6
  2951. else
  2952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2953. /* end confdefs.h. */
  2954. int
  2955. main ()
  2956. {
  2957. ;
  2958. return 0;
  2959. }
  2960. _ACEOF
  2961. rm -f conftest.o conftest.obj
  2962. if { { ac_try="$ac_compile"
  2963. case "(($ac_try" in
  2964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2965. *) ac_try_echo=$ac_try;;
  2966. esac
  2967. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2968. $as_echo "$ac_try_echo"; } >&5
  2969. (eval "$ac_compile") 2>&5
  2970. ac_status=$?
  2971. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2972. test $ac_status = 0; }; then :
  2973. for ac_file in conftest.o conftest.obj conftest.*; do
  2974. test -f "$ac_file" || continue;
  2975. case $ac_file in
  2976. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2977. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2978. break;;
  2979. esac
  2980. done
  2981. else
  2982. $as_echo "$as_me: failed program was:" >&5
  2983. sed 's/^/| /' conftest.$ac_ext >&5
  2984. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2985. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2986. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2987. See \`config.log' for more details" "$LINENO" 5; }
  2988. fi
  2989. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2990. fi
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2992. $as_echo "$ac_cv_objext" >&6; }
  2993. OBJEXT=$ac_cv_objext
  2994. ac_objext=$OBJEXT
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2996. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2997. if ${ac_cv_c_compiler_gnu+:} false; then :
  2998. $as_echo_n "(cached) " >&6
  2999. else
  3000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3001. /* end confdefs.h. */
  3002. int
  3003. main ()
  3004. {
  3005. #ifndef __GNUC__
  3006. choke me
  3007. #endif
  3008. ;
  3009. return 0;
  3010. }
  3011. _ACEOF
  3012. if ac_fn_c_try_compile "$LINENO"; then :
  3013. ac_compiler_gnu=yes
  3014. else
  3015. ac_compiler_gnu=no
  3016. fi
  3017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3018. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3019. fi
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3021. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3022. if test $ac_compiler_gnu = yes; then
  3023. GCC=yes
  3024. else
  3025. GCC=
  3026. fi
  3027. ac_test_CFLAGS=${CFLAGS+set}
  3028. ac_save_CFLAGS=$CFLAGS
  3029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3030. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3031. if ${ac_cv_prog_cc_g+:} false; then :
  3032. $as_echo_n "(cached) " >&6
  3033. else
  3034. ac_save_c_werror_flag=$ac_c_werror_flag
  3035. ac_c_werror_flag=yes
  3036. ac_cv_prog_cc_g=no
  3037. CFLAGS="-g"
  3038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3039. /* end confdefs.h. */
  3040. int
  3041. main ()
  3042. {
  3043. ;
  3044. return 0;
  3045. }
  3046. _ACEOF
  3047. if ac_fn_c_try_compile "$LINENO"; then :
  3048. ac_cv_prog_cc_g=yes
  3049. else
  3050. CFLAGS=""
  3051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3052. /* end confdefs.h. */
  3053. int
  3054. main ()
  3055. {
  3056. ;
  3057. return 0;
  3058. }
  3059. _ACEOF
  3060. if ac_fn_c_try_compile "$LINENO"; then :
  3061. else
  3062. ac_c_werror_flag=$ac_save_c_werror_flag
  3063. CFLAGS="-g"
  3064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3065. /* end confdefs.h. */
  3066. int
  3067. main ()
  3068. {
  3069. ;
  3070. return 0;
  3071. }
  3072. _ACEOF
  3073. if ac_fn_c_try_compile "$LINENO"; then :
  3074. ac_cv_prog_cc_g=yes
  3075. fi
  3076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3077. fi
  3078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3079. fi
  3080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3081. ac_c_werror_flag=$ac_save_c_werror_flag
  3082. fi
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3084. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3085. if test "$ac_test_CFLAGS" = set; then
  3086. CFLAGS=$ac_save_CFLAGS
  3087. elif test $ac_cv_prog_cc_g = yes; then
  3088. if test "$GCC" = yes; then
  3089. CFLAGS="-g -O2"
  3090. else
  3091. CFLAGS="-g"
  3092. fi
  3093. else
  3094. if test "$GCC" = yes; then
  3095. CFLAGS="-O2"
  3096. else
  3097. CFLAGS=
  3098. fi
  3099. fi
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3101. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3102. if ${ac_cv_prog_cc_c89+:} false; then :
  3103. $as_echo_n "(cached) " >&6
  3104. else
  3105. ac_cv_prog_cc_c89=no
  3106. ac_save_CC=$CC
  3107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3108. /* end confdefs.h. */
  3109. #include <stdarg.h>
  3110. #include <stdio.h>
  3111. #include <sys/types.h>
  3112. #include <sys/stat.h>
  3113. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3114. struct buf { int x; };
  3115. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3116. static char *e (p, i)
  3117. char **p;
  3118. int i;
  3119. {
  3120. return p[i];
  3121. }
  3122. static char *f (char * (*g) (char **, int), char **p, ...)
  3123. {
  3124. char *s;
  3125. va_list v;
  3126. va_start (v,p);
  3127. s = g (p, va_arg (v,int));
  3128. va_end (v);
  3129. return s;
  3130. }
  3131. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3132. function prototypes and stuff, but not '\xHH' hex character constants.
  3133. These don't provoke an error unfortunately, instead are silently treated
  3134. as 'x'. The following induces an error, until -std is added to get
  3135. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3136. array size at least. It's necessary to write '\x00'==0 to get something
  3137. that's true only with -std. */
  3138. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3139. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3140. inside strings and character constants. */
  3141. #define FOO(x) 'x'
  3142. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3143. int test (int i, double x);
  3144. struct s1 {int (*f) (int a);};
  3145. struct s2 {int (*f) (double a);};
  3146. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3147. int argc;
  3148. char **argv;
  3149. int
  3150. main ()
  3151. {
  3152. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3153. ;
  3154. return 0;
  3155. }
  3156. _ACEOF
  3157. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3158. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3159. do
  3160. CC="$ac_save_CC $ac_arg"
  3161. if ac_fn_c_try_compile "$LINENO"; then :
  3162. ac_cv_prog_cc_c89=$ac_arg
  3163. fi
  3164. rm -f core conftest.err conftest.$ac_objext
  3165. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3166. done
  3167. rm -f conftest.$ac_ext
  3168. CC=$ac_save_CC
  3169. fi
  3170. # AC_CACHE_VAL
  3171. case "x$ac_cv_prog_cc_c89" in
  3172. x)
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3174. $as_echo "none needed" >&6; } ;;
  3175. xno)
  3176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3177. $as_echo "unsupported" >&6; } ;;
  3178. *)
  3179. CC="$CC $ac_cv_prog_cc_c89"
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3181. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3182. esac
  3183. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3184. fi
  3185. ac_ext=c
  3186. ac_cpp='$CPP $CPPFLAGS'
  3187. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3188. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3189. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3190. DEPDIR="${am__leading_dot}deps"
  3191. ac_config_commands="$ac_config_commands depfiles"
  3192. am_make=${MAKE-make}
  3193. cat > confinc << 'END'
  3194. am__doit:
  3195. @echo this is the am__doit target
  3196. .PHONY: am__doit
  3197. END
  3198. # If we don't find an include directive, just comment out the code.
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3200. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3201. am__include="#"
  3202. am__quote=
  3203. _am_result=none
  3204. # First try GNU make style include.
  3205. echo "include confinc" > confmf
  3206. # Ignore all kinds of additional output from `make'.
  3207. case `$am_make -s -f confmf 2> /dev/null` in #(
  3208. *the\ am__doit\ target*)
  3209. am__include=include
  3210. am__quote=
  3211. _am_result=GNU
  3212. ;;
  3213. esac
  3214. # Now try BSD make style include.
  3215. if test "$am__include" = "#"; then
  3216. echo '.include "confinc"' > confmf
  3217. case `$am_make -s -f confmf 2> /dev/null` in #(
  3218. *the\ am__doit\ target*)
  3219. am__include=.include
  3220. am__quote="\""
  3221. _am_result=BSD
  3222. ;;
  3223. esac
  3224. fi
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3226. $as_echo "$_am_result" >&6; }
  3227. rm -f confinc confmf
  3228. # Check whether --enable-dependency-tracking was given.
  3229. if test "${enable_dependency_tracking+set}" = set; then :
  3230. enableval=$enable_dependency_tracking;
  3231. fi
  3232. if test "x$enable_dependency_tracking" != xno; then
  3233. am_depcomp="$ac_aux_dir/depcomp"
  3234. AMDEPBACKSLASH='\'
  3235. am__nodep='_no'
  3236. fi
  3237. if test "x$enable_dependency_tracking" != xno; then
  3238. AMDEP_TRUE=
  3239. AMDEP_FALSE='#'
  3240. else
  3241. AMDEP_TRUE='#'
  3242. AMDEP_FALSE=
  3243. fi
  3244. depcc="$CC" am_compiler_list=
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3246. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3247. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3248. $as_echo_n "(cached) " >&6
  3249. else
  3250. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3251. # We make a subdir and do the tests there. Otherwise we can end up
  3252. # making bogus files that we don't know about and never remove. For
  3253. # instance it was reported that on HP-UX the gcc test will end up
  3254. # making a dummy file named `D' -- because `-MD' means `put the output
  3255. # in D'.
  3256. rm -rf conftest.dir
  3257. mkdir conftest.dir
  3258. # Copy depcomp to subdir because otherwise we won't find it if we're
  3259. # using a relative directory.
  3260. cp "$am_depcomp" conftest.dir
  3261. cd conftest.dir
  3262. # We will build objects and dependencies in a subdirectory because
  3263. # it helps to detect inapplicable dependency modes. For instance
  3264. # both Tru64's cc and ICC support -MD to output dependencies as a
  3265. # side effect of compilation, but ICC will put the dependencies in
  3266. # the current directory while Tru64 will put them in the object
  3267. # directory.
  3268. mkdir sub
  3269. am_cv_CC_dependencies_compiler_type=none
  3270. if test "$am_compiler_list" = ""; then
  3271. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3272. fi
  3273. am__universal=false
  3274. case " $depcc " in #(
  3275. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3276. esac
  3277. for depmode in $am_compiler_list; do
  3278. # Setup a source with many dependencies, because some compilers
  3279. # like to wrap large dependency lists on column 80 (with \), and
  3280. # we should not choose a depcomp mode which is confused by this.
  3281. #
  3282. # We need to recreate these files for each test, as the compiler may
  3283. # overwrite some of them when testing with obscure command lines.
  3284. # This happens at least with the AIX C compiler.
  3285. : > sub/conftest.c
  3286. for i in 1 2 3 4 5 6; do
  3287. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3288. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3289. # Solaris 8's {/usr,}/bin/sh.
  3290. touch sub/conftst$i.h
  3291. done
  3292. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3293. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3294. # mode. It turns out that the SunPro C++ compiler does not properly
  3295. # handle `-M -o', and we need to detect this. Also, some Intel
  3296. # versions had trouble with output in subdirs
  3297. am__obj=sub/conftest.${OBJEXT-o}
  3298. am__minus_obj="-o $am__obj"
  3299. case $depmode in
  3300. gcc)
  3301. # This depmode causes a compiler race in universal mode.
  3302. test "$am__universal" = false || continue
  3303. ;;
  3304. nosideeffect)
  3305. # after this tag, mechanisms are not by side-effect, so they'll
  3306. # only be used when explicitly requested
  3307. if test "x$enable_dependency_tracking" = xyes; then
  3308. continue
  3309. else
  3310. break
  3311. fi
  3312. ;;
  3313. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3314. # This compiler won't grok `-c -o', but also, the minuso test has
  3315. # not run yet. These depmodes are late enough in the game, and
  3316. # so weak that their functioning should not be impacted.
  3317. am__obj=conftest.${OBJEXT-o}
  3318. am__minus_obj=
  3319. ;;
  3320. none) break ;;
  3321. esac
  3322. if depmode=$depmode \
  3323. source=sub/conftest.c object=$am__obj \
  3324. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3325. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3326. >/dev/null 2>conftest.err &&
  3327. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3328. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3329. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3330. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3331. # icc doesn't choke on unknown options, it will just issue warnings
  3332. # or remarks (even with -Werror). So we grep stderr for any message
  3333. # that says an option was ignored or not supported.
  3334. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3335. # icc: Command line warning: ignoring option '-M'; no argument required
  3336. # The diagnosis changed in icc 8.0:
  3337. # icc: Command line remark: option '-MP' not supported
  3338. if (grep 'ignoring option' conftest.err ||
  3339. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3340. am_cv_CC_dependencies_compiler_type=$depmode
  3341. break
  3342. fi
  3343. fi
  3344. done
  3345. cd ..
  3346. rm -rf conftest.dir
  3347. else
  3348. am_cv_CC_dependencies_compiler_type=none
  3349. fi
  3350. fi
  3351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3352. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3353. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3354. if
  3355. test "x$enable_dependency_tracking" != xno \
  3356. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3357. am__fastdepCC_TRUE=
  3358. am__fastdepCC_FALSE='#'
  3359. else
  3360. am__fastdepCC_TRUE='#'
  3361. am__fastdepCC_FALSE=
  3362. fi
  3363. if test "x$CC" != xcc; then
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  3365. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3366. else
  3367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  3368. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3369. fi
  3370. set dummy $CC; ac_cc=`$as_echo "$2" |
  3371. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3372. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  3373. $as_echo_n "(cached) " >&6
  3374. else
  3375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3376. /* end confdefs.h. */
  3377. int
  3378. main ()
  3379. {
  3380. ;
  3381. return 0;
  3382. }
  3383. _ACEOF
  3384. # Make sure it works both with $CC and with simple cc.
  3385. # We do the test twice because some compilers refuse to overwrite an
  3386. # existing .o file with -o, though they will create one.
  3387. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3388. rm -f conftest2.*
  3389. if { { case "(($ac_try" in
  3390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3391. *) ac_try_echo=$ac_try;;
  3392. esac
  3393. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3394. $as_echo "$ac_try_echo"; } >&5
  3395. (eval "$ac_try") 2>&5
  3396. ac_status=$?
  3397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3398. test $ac_status = 0; } &&
  3399. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3401. *) ac_try_echo=$ac_try;;
  3402. esac
  3403. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3404. $as_echo "$ac_try_echo"; } >&5
  3405. (eval "$ac_try") 2>&5
  3406. ac_status=$?
  3407. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3408. test $ac_status = 0; };
  3409. then
  3410. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3411. if test "x$CC" != xcc; then
  3412. # Test first that cc exists at all.
  3413. if { ac_try='cc -c conftest.$ac_ext >&5'
  3414. { { case "(($ac_try" in
  3415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3416. *) ac_try_echo=$ac_try;;
  3417. esac
  3418. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3419. $as_echo "$ac_try_echo"; } >&5
  3420. (eval "$ac_try") 2>&5
  3421. ac_status=$?
  3422. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3423. test $ac_status = 0; }; }; then
  3424. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3425. rm -f conftest2.*
  3426. if { { case "(($ac_try" in
  3427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3428. *) ac_try_echo=$ac_try;;
  3429. esac
  3430. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3431. $as_echo "$ac_try_echo"; } >&5
  3432. (eval "$ac_try") 2>&5
  3433. ac_status=$?
  3434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3435. test $ac_status = 0; } &&
  3436. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3438. *) ac_try_echo=$ac_try;;
  3439. esac
  3440. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3441. $as_echo "$ac_try_echo"; } >&5
  3442. (eval "$ac_try") 2>&5
  3443. ac_status=$?
  3444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3445. test $ac_status = 0; };
  3446. then
  3447. # cc works too.
  3448. :
  3449. else
  3450. # cc exists but doesn't like -o.
  3451. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3452. fi
  3453. fi
  3454. fi
  3455. else
  3456. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3457. fi
  3458. rm -f core conftest*
  3459. fi
  3460. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3462. $as_echo "yes" >&6; }
  3463. else
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3465. $as_echo "no" >&6; }
  3466. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  3467. fi
  3468. # FIXME: we rely on the cache variable name because
  3469. # there is no other way.
  3470. set dummy $CC
  3471. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3472. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  3473. if test "$am_t" != yes; then
  3474. # Losing compiler, so override with the script.
  3475. # FIXME: It is wrong to rewrite CC.
  3476. # But if we don't then we get into trouble of one sort or another.
  3477. # A longer-term fix would be to have automake use am__CC in this case,
  3478. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3479. CC="$am_aux_dir/compile $CC"
  3480. fi
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
  3482. $as_echo_n "checking for exp in -lm... " >&6; }
  3483. if ${ac_cv_lib_m_exp+:} false; then :
  3484. $as_echo_n "(cached) " >&6
  3485. else
  3486. ac_check_lib_save_LIBS=$LIBS
  3487. LIBS="-lm $LIBS"
  3488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3489. /* end confdefs.h. */
  3490. /* Override any GCC internal prototype to avoid an error.
  3491. Use char because int might match the return type of a GCC
  3492. builtin and then its argument prototype would still apply. */
  3493. #ifdef __cplusplus
  3494. extern "C"
  3495. #endif
  3496. char exp ();
  3497. int
  3498. main ()
  3499. {
  3500. return exp ();
  3501. ;
  3502. return 0;
  3503. }
  3504. _ACEOF
  3505. if ac_fn_c_try_link "$LINENO"; then :
  3506. ac_cv_lib_m_exp=yes
  3507. else
  3508. ac_cv_lib_m_exp=no
  3509. fi
  3510. rm -f core conftest.err conftest.$ac_objext \
  3511. conftest$ac_exeext conftest.$ac_ext
  3512. LIBS=$ac_check_lib_save_LIBS
  3513. fi
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
  3515. $as_echo "$ac_cv_lib_m_exp" >&6; }
  3516. if test "x$ac_cv_lib_m_exp" = xyes; then :
  3517. cat >>confdefs.h <<_ACEOF
  3518. #define HAVE_LIBM 1
  3519. _ACEOF
  3520. LIBS="-lm $LIBS"
  3521. else
  3522. as_fn_error $? "Libm missing" "$LINENO" 5
  3523. fi
  3524. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3525. if test -n "$ac_tool_prefix"; then
  3526. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3527. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3529. $as_echo_n "checking for $ac_word... " >&6; }
  3530. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3531. $as_echo_n "(cached) " >&6
  3532. else
  3533. case $PKG_CONFIG in
  3534. [\\/]* | ?:[\\/]*)
  3535. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3536. ;;
  3537. *)
  3538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3539. for as_dir in $PATH
  3540. do
  3541. IFS=$as_save_IFS
  3542. test -z "$as_dir" && as_dir=.
  3543. for ac_exec_ext in '' $ac_executable_extensions; do
  3544. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3545. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3547. break 2
  3548. fi
  3549. done
  3550. done
  3551. IFS=$as_save_IFS
  3552. ;;
  3553. esac
  3554. fi
  3555. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3556. if test -n "$PKG_CONFIG"; then
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3558. $as_echo "$PKG_CONFIG" >&6; }
  3559. else
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3561. $as_echo "no" >&6; }
  3562. fi
  3563. fi
  3564. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3565. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3566. # Extract the first word of "pkg-config", so it can be a program name with args.
  3567. set dummy pkg-config; ac_word=$2
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3569. $as_echo_n "checking for $ac_word... " >&6; }
  3570. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3571. $as_echo_n "(cached) " >&6
  3572. else
  3573. case $ac_pt_PKG_CONFIG in
  3574. [\\/]* | ?:[\\/]*)
  3575. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3576. ;;
  3577. *)
  3578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3579. for as_dir in $PATH
  3580. do
  3581. IFS=$as_save_IFS
  3582. test -z "$as_dir" && as_dir=.
  3583. for ac_exec_ext in '' $ac_executable_extensions; do
  3584. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3585. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3586. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3587. break 2
  3588. fi
  3589. done
  3590. done
  3591. IFS=$as_save_IFS
  3592. ;;
  3593. esac
  3594. fi
  3595. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3596. if test -n "$ac_pt_PKG_CONFIG"; then
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3598. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3599. else
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3601. $as_echo "no" >&6; }
  3602. fi
  3603. if test "x$ac_pt_PKG_CONFIG" = x; then
  3604. PKG_CONFIG=""
  3605. else
  3606. case $cross_compiling:$ac_tool_warned in
  3607. yes:)
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3609. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3610. ac_tool_warned=yes ;;
  3611. esac
  3612. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3613. fi
  3614. else
  3615. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3616. fi
  3617. fi
  3618. if test -n "$PKG_CONFIG"; then
  3619. _pkg_min_version=0.9.0
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3621. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3622. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3624. $as_echo "yes" >&6; }
  3625. else
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3627. $as_echo "no" >&6; }
  3628. PKG_CONFIG=""
  3629. fi
  3630. fi
  3631. pkg_failed=no
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
  3633. $as_echo_n "checking for CHECK... " >&6; }
  3634. if test -n "$CHECK_CFLAGS"; then
  3635. pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
  3636. elif test -n "$PKG_CONFIG"; then
  3637. if test -n "$PKG_CONFIG" && \
  3638. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
  3639. ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
  3640. ac_status=$?
  3641. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3642. test $ac_status = 0; }; then
  3643. pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
  3644. test "x$?" != "x0" && pkg_failed=yes
  3645. else
  3646. pkg_failed=yes
  3647. fi
  3648. else
  3649. pkg_failed=untried
  3650. fi
  3651. if test -n "$CHECK_LIBS"; then
  3652. pkg_cv_CHECK_LIBS="$CHECK_LIBS"
  3653. elif test -n "$PKG_CONFIG"; then
  3654. if test -n "$PKG_CONFIG" && \
  3655. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
  3656. ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
  3657. ac_status=$?
  3658. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3659. test $ac_status = 0; }; then
  3660. pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
  3661. test "x$?" != "x0" && pkg_failed=yes
  3662. else
  3663. pkg_failed=yes
  3664. fi
  3665. else
  3666. pkg_failed=untried
  3667. fi
  3668. if test $pkg_failed = yes; then
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3670. $as_echo "no" >&6; }
  3671. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  3672. _pkg_short_errors_supported=yes
  3673. else
  3674. _pkg_short_errors_supported=no
  3675. fi
  3676. if test $_pkg_short_errors_supported = yes; then
  3677. CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
  3678. else
  3679. CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
  3680. fi
  3681. # Put the nasty error message in config.log where it belongs
  3682. echo "$CHECK_PKG_ERRORS" >&5
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check not found; cannot run unit tests!" >&5
  3684. $as_echo "$as_me: WARNING: Check not found; cannot run unit tests!" >&2;}
  3685. have_check="no"
  3686. elif test $pkg_failed = untried; then
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3688. $as_echo "no" >&6; }
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check not found; cannot run unit tests!" >&5
  3690. $as_echo "$as_me: WARNING: Check not found; cannot run unit tests!" >&2;}
  3691. have_check="no"
  3692. else
  3693. CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
  3694. CHECK_LIBS=$pkg_cv_CHECK_LIBS
  3695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3696. $as_echo "yes" >&6; }
  3697. have_check="yes"
  3698. fi
  3699. if test x"$have_check" = "xyes"; then
  3700. HAVE_CHECK_TRUE=
  3701. HAVE_CHECK_FALSE='#'
  3702. else
  3703. HAVE_CHECK_TRUE='#'
  3704. HAVE_CHECK_FALSE=
  3705. fi
  3706. case `pwd` in
  3707. *\ * | *\ *)
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3709. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3710. esac
  3711. macro_version='2.4.2'
  3712. macro_revision='1.3337'
  3713. ltmain="$ac_aux_dir/ltmain.sh"
  3714. # Backslashify metacharacters that are still active within
  3715. # double-quoted strings.
  3716. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3717. # Same as above, but do not quote variable references.
  3718. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3719. # Sed substitution to delay expansion of an escaped shell variable in a
  3720. # double_quote_subst'ed string.
  3721. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3722. # Sed substitution to delay expansion of an escaped single quote.
  3723. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3724. # Sed substitution to avoid accidental globbing in evaled expressions
  3725. no_glob_subst='s/\*/\\\*/g'
  3726. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3727. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3728. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3730. $as_echo_n "checking how to print strings... " >&6; }
  3731. # Test print first, because it will be a builtin if present.
  3732. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3733. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3734. ECHO='print -r --'
  3735. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3736. ECHO='printf %s\n'
  3737. else
  3738. # Use this function as a fallback that always works.
  3739. func_fallback_echo ()
  3740. {
  3741. eval 'cat <<_LTECHO_EOF
  3742. $1
  3743. _LTECHO_EOF'
  3744. }
  3745. ECHO='func_fallback_echo'
  3746. fi
  3747. # func_echo_all arg...
  3748. # Invoke $ECHO with all args, space-separated.
  3749. func_echo_all ()
  3750. {
  3751. $ECHO ""
  3752. }
  3753. case "$ECHO" in
  3754. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3755. $as_echo "printf" >&6; } ;;
  3756. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3757. $as_echo "print -r" >&6; } ;;
  3758. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3759. $as_echo "cat" >&6; } ;;
  3760. esac
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3762. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3763. if ${ac_cv_path_SED+:} false; then :
  3764. $as_echo_n "(cached) " >&6
  3765. else
  3766. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3767. for ac_i in 1 2 3 4 5 6 7; do
  3768. ac_script="$ac_script$as_nl$ac_script"
  3769. done
  3770. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3771. { ac_script=; unset ac_script;}
  3772. if test -z "$SED"; then
  3773. ac_path_SED_found=false
  3774. # Loop through the user's path and test for each of PROGNAME-LIST
  3775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3776. for as_dir in $PATH
  3777. do
  3778. IFS=$as_save_IFS
  3779. test -z "$as_dir" && as_dir=.
  3780. for ac_prog in sed gsed; do
  3781. for ac_exec_ext in '' $ac_executable_extensions; do
  3782. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3783. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3784. # Check for GNU ac_path_SED and select it if it is found.
  3785. # Check for GNU $ac_path_SED
  3786. case `"$ac_path_SED" --version 2>&1` in
  3787. *GNU*)
  3788. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3789. *)
  3790. ac_count=0
  3791. $as_echo_n 0123456789 >"conftest.in"
  3792. while :
  3793. do
  3794. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3795. mv "conftest.tmp" "conftest.in"
  3796. cp "conftest.in" "conftest.nl"
  3797. $as_echo '' >> "conftest.nl"
  3798. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3799. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3800. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3801. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3802. # Best one so far, save it but keep looking for a better one
  3803. ac_cv_path_SED="$ac_path_SED"
  3804. ac_path_SED_max=$ac_count
  3805. fi
  3806. # 10*(2^10) chars as input seems more than enough
  3807. test $ac_count -gt 10 && break
  3808. done
  3809. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3810. esac
  3811. $ac_path_SED_found && break 3
  3812. done
  3813. done
  3814. done
  3815. IFS=$as_save_IFS
  3816. if test -z "$ac_cv_path_SED"; then
  3817. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3818. fi
  3819. else
  3820. ac_cv_path_SED=$SED
  3821. fi
  3822. fi
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3824. $as_echo "$ac_cv_path_SED" >&6; }
  3825. SED="$ac_cv_path_SED"
  3826. rm -f conftest.sed
  3827. test -z "$SED" && SED=sed
  3828. Xsed="$SED -e 1s/^X//"
  3829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3830. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3831. if ${ac_cv_path_GREP+:} false; then :
  3832. $as_echo_n "(cached) " >&6
  3833. else
  3834. if test -z "$GREP"; then
  3835. ac_path_GREP_found=false
  3836. # Loop through the user's path and test for each of PROGNAME-LIST
  3837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3838. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3839. do
  3840. IFS=$as_save_IFS
  3841. test -z "$as_dir" && as_dir=.
  3842. for ac_prog in grep ggrep; do
  3843. for ac_exec_ext in '' $ac_executable_extensions; do
  3844. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3845. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3846. # Check for GNU ac_path_GREP and select it if it is found.
  3847. # Check for GNU $ac_path_GREP
  3848. case `"$ac_path_GREP" --version 2>&1` in
  3849. *GNU*)
  3850. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3851. *)
  3852. ac_count=0
  3853. $as_echo_n 0123456789 >"conftest.in"
  3854. while :
  3855. do
  3856. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3857. mv "conftest.tmp" "conftest.in"
  3858. cp "conftest.in" "conftest.nl"
  3859. $as_echo 'GREP' >> "conftest.nl"
  3860. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3861. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3862. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3863. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3864. # Best one so far, save it but keep looking for a better one
  3865. ac_cv_path_GREP="$ac_path_GREP"
  3866. ac_path_GREP_max=$ac_count
  3867. fi
  3868. # 10*(2^10) chars as input seems more than enough
  3869. test $ac_count -gt 10 && break
  3870. done
  3871. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3872. esac
  3873. $ac_path_GREP_found && break 3
  3874. done
  3875. done
  3876. done
  3877. IFS=$as_save_IFS
  3878. if test -z "$ac_cv_path_GREP"; then
  3879. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3880. fi
  3881. else
  3882. ac_cv_path_GREP=$GREP
  3883. fi
  3884. fi
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3886. $as_echo "$ac_cv_path_GREP" >&6; }
  3887. GREP="$ac_cv_path_GREP"
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3889. $as_echo_n "checking for egrep... " >&6; }
  3890. if ${ac_cv_path_EGREP+:} false; then :
  3891. $as_echo_n "(cached) " >&6
  3892. else
  3893. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3894. then ac_cv_path_EGREP="$GREP -E"
  3895. else
  3896. if test -z "$EGREP"; then
  3897. ac_path_EGREP_found=false
  3898. # Loop through the user's path and test for each of PROGNAME-LIST
  3899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3900. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3901. do
  3902. IFS=$as_save_IFS
  3903. test -z "$as_dir" && as_dir=.
  3904. for ac_prog in egrep; do
  3905. for ac_exec_ext in '' $ac_executable_extensions; do
  3906. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3907. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3908. # Check for GNU ac_path_EGREP and select it if it is found.
  3909. # Check for GNU $ac_path_EGREP
  3910. case `"$ac_path_EGREP" --version 2>&1` in
  3911. *GNU*)
  3912. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3913. *)
  3914. ac_count=0
  3915. $as_echo_n 0123456789 >"conftest.in"
  3916. while :
  3917. do
  3918. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3919. mv "conftest.tmp" "conftest.in"
  3920. cp "conftest.in" "conftest.nl"
  3921. $as_echo 'EGREP' >> "conftest.nl"
  3922. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3923. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3924. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3925. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3926. # Best one so far, save it but keep looking for a better one
  3927. ac_cv_path_EGREP="$ac_path_EGREP"
  3928. ac_path_EGREP_max=$ac_count
  3929. fi
  3930. # 10*(2^10) chars as input seems more than enough
  3931. test $ac_count -gt 10 && break
  3932. done
  3933. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3934. esac
  3935. $ac_path_EGREP_found && break 3
  3936. done
  3937. done
  3938. done
  3939. IFS=$as_save_IFS
  3940. if test -z "$ac_cv_path_EGREP"; then
  3941. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3942. fi
  3943. else
  3944. ac_cv_path_EGREP=$EGREP
  3945. fi
  3946. fi
  3947. fi
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3949. $as_echo "$ac_cv_path_EGREP" >&6; }
  3950. EGREP="$ac_cv_path_EGREP"
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3952. $as_echo_n "checking for fgrep... " >&6; }
  3953. if ${ac_cv_path_FGREP+:} false; then :
  3954. $as_echo_n "(cached) " >&6
  3955. else
  3956. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3957. then ac_cv_path_FGREP="$GREP -F"
  3958. else
  3959. if test -z "$FGREP"; then
  3960. ac_path_FGREP_found=false
  3961. # Loop through the user's path and test for each of PROGNAME-LIST
  3962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3963. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3964. do
  3965. IFS=$as_save_IFS
  3966. test -z "$as_dir" && as_dir=.
  3967. for ac_prog in fgrep; do
  3968. for ac_exec_ext in '' $ac_executable_extensions; do
  3969. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3970. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3971. # Check for GNU ac_path_FGREP and select it if it is found.
  3972. # Check for GNU $ac_path_FGREP
  3973. case `"$ac_path_FGREP" --version 2>&1` in
  3974. *GNU*)
  3975. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3976. *)
  3977. ac_count=0
  3978. $as_echo_n 0123456789 >"conftest.in"
  3979. while :
  3980. do
  3981. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3982. mv "conftest.tmp" "conftest.in"
  3983. cp "conftest.in" "conftest.nl"
  3984. $as_echo 'FGREP' >> "conftest.nl"
  3985. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3986. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3987. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3988. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3989. # Best one so far, save it but keep looking for a better one
  3990. ac_cv_path_FGREP="$ac_path_FGREP"
  3991. ac_path_FGREP_max=$ac_count
  3992. fi
  3993. # 10*(2^10) chars as input seems more than enough
  3994. test $ac_count -gt 10 && break
  3995. done
  3996. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3997. esac
  3998. $ac_path_FGREP_found && break 3
  3999. done
  4000. done
  4001. done
  4002. IFS=$as_save_IFS
  4003. if test -z "$ac_cv_path_FGREP"; then
  4004. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4005. fi
  4006. else
  4007. ac_cv_path_FGREP=$FGREP
  4008. fi
  4009. fi
  4010. fi
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4012. $as_echo "$ac_cv_path_FGREP" >&6; }
  4013. FGREP="$ac_cv_path_FGREP"
  4014. test -z "$GREP" && GREP=grep
  4015. # Check whether --with-gnu-ld was given.
  4016. if test "${with_gnu_ld+set}" = set; then :
  4017. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4018. else
  4019. with_gnu_ld=no
  4020. fi
  4021. ac_prog=ld
  4022. if test "$GCC" = yes; then
  4023. # Check if gcc -print-prog-name=ld gives a path.
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4025. $as_echo_n "checking for ld used by $CC... " >&6; }
  4026. case $host in
  4027. *-*-mingw*)
  4028. # gcc leaves a trailing carriage return which upsets mingw
  4029. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4030. *)
  4031. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4032. esac
  4033. case $ac_prog in
  4034. # Accept absolute paths.
  4035. [\\/]* | ?:[\\/]*)
  4036. re_direlt='/[^/][^/]*/\.\./'
  4037. # Canonicalize the pathname of ld
  4038. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4039. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4040. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4041. done
  4042. test -z "$LD" && LD="$ac_prog"
  4043. ;;
  4044. "")
  4045. # If it fails, then pretend we aren't using GCC.
  4046. ac_prog=ld
  4047. ;;
  4048. *)
  4049. # If it is relative, then search for the first ld in PATH.
  4050. with_gnu_ld=unknown
  4051. ;;
  4052. esac
  4053. elif test "$with_gnu_ld" = yes; then
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4055. $as_echo_n "checking for GNU ld... " >&6; }
  4056. else
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4058. $as_echo_n "checking for non-GNU ld... " >&6; }
  4059. fi
  4060. if ${lt_cv_path_LD+:} false; then :
  4061. $as_echo_n "(cached) " >&6
  4062. else
  4063. if test -z "$LD"; then
  4064. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4065. for ac_dir in $PATH; do
  4066. IFS="$lt_save_ifs"
  4067. test -z "$ac_dir" && ac_dir=.
  4068. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4069. lt_cv_path_LD="$ac_dir/$ac_prog"
  4070. # Check to see if the program is GNU ld. I'd rather use --version,
  4071. # but apparently some variants of GNU ld only accept -v.
  4072. # Break only if it was the GNU/non-GNU ld that we prefer.
  4073. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4074. *GNU* | *'with BFD'*)
  4075. test "$with_gnu_ld" != no && break
  4076. ;;
  4077. *)
  4078. test "$with_gnu_ld" != yes && break
  4079. ;;
  4080. esac
  4081. fi
  4082. done
  4083. IFS="$lt_save_ifs"
  4084. else
  4085. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4086. fi
  4087. fi
  4088. LD="$lt_cv_path_LD"
  4089. if test -n "$LD"; then
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4091. $as_echo "$LD" >&6; }
  4092. else
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4094. $as_echo "no" >&6; }
  4095. fi
  4096. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4098. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4099. if ${lt_cv_prog_gnu_ld+:} false; then :
  4100. $as_echo_n "(cached) " >&6
  4101. else
  4102. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4103. case `$LD -v 2>&1 </dev/null` in
  4104. *GNU* | *'with BFD'*)
  4105. lt_cv_prog_gnu_ld=yes
  4106. ;;
  4107. *)
  4108. lt_cv_prog_gnu_ld=no
  4109. ;;
  4110. esac
  4111. fi
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4113. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4114. with_gnu_ld=$lt_cv_prog_gnu_ld
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4116. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4117. if ${lt_cv_path_NM+:} false; then :
  4118. $as_echo_n "(cached) " >&6
  4119. else
  4120. if test -n "$NM"; then
  4121. # Let the user override the test.
  4122. lt_cv_path_NM="$NM"
  4123. else
  4124. lt_nm_to_check="${ac_tool_prefix}nm"
  4125. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4126. lt_nm_to_check="$lt_nm_to_check nm"
  4127. fi
  4128. for lt_tmp_nm in $lt_nm_to_check; do
  4129. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4130. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4131. IFS="$lt_save_ifs"
  4132. test -z "$ac_dir" && ac_dir=.
  4133. tmp_nm="$ac_dir/$lt_tmp_nm"
  4134. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4135. # Check to see if the nm accepts a BSD-compat flag.
  4136. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4137. # nm: unknown option "B" ignored
  4138. # Tru64's nm complains that /dev/null is an invalid object file
  4139. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4140. */dev/null* | *'Invalid file or object type'*)
  4141. lt_cv_path_NM="$tmp_nm -B"
  4142. break
  4143. ;;
  4144. *)
  4145. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4146. */dev/null*)
  4147. lt_cv_path_NM="$tmp_nm -p"
  4148. break
  4149. ;;
  4150. *)
  4151. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4152. continue # so that we can try to find one that supports BSD flags
  4153. ;;
  4154. esac
  4155. ;;
  4156. esac
  4157. fi
  4158. done
  4159. IFS="$lt_save_ifs"
  4160. done
  4161. : ${lt_cv_path_NM=no}
  4162. fi
  4163. fi
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4165. $as_echo "$lt_cv_path_NM" >&6; }
  4166. if test "$lt_cv_path_NM" != "no"; then
  4167. NM="$lt_cv_path_NM"
  4168. else
  4169. # Didn't find any BSD compatible name lister, look for dumpbin.
  4170. if test -n "$DUMPBIN"; then :
  4171. # Let the user override the test.
  4172. else
  4173. if test -n "$ac_tool_prefix"; then
  4174. for ac_prog in dumpbin "link -dump"
  4175. do
  4176. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4177. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4179. $as_echo_n "checking for $ac_word... " >&6; }
  4180. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4181. $as_echo_n "(cached) " >&6
  4182. else
  4183. if test -n "$DUMPBIN"; then
  4184. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4185. else
  4186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4187. for as_dir in $PATH
  4188. do
  4189. IFS=$as_save_IFS
  4190. test -z "$as_dir" && as_dir=.
  4191. for ac_exec_ext in '' $ac_executable_extensions; do
  4192. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4193. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4195. break 2
  4196. fi
  4197. done
  4198. done
  4199. IFS=$as_save_IFS
  4200. fi
  4201. fi
  4202. DUMPBIN=$ac_cv_prog_DUMPBIN
  4203. if test -n "$DUMPBIN"; then
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4205. $as_echo "$DUMPBIN" >&6; }
  4206. else
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4208. $as_echo "no" >&6; }
  4209. fi
  4210. test -n "$DUMPBIN" && break
  4211. done
  4212. fi
  4213. if test -z "$DUMPBIN"; then
  4214. ac_ct_DUMPBIN=$DUMPBIN
  4215. for ac_prog in dumpbin "link -dump"
  4216. do
  4217. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4218. set dummy $ac_prog; ac_word=$2
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4220. $as_echo_n "checking for $ac_word... " >&6; }
  4221. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4222. $as_echo_n "(cached) " >&6
  4223. else
  4224. if test -n "$ac_ct_DUMPBIN"; then
  4225. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4226. else
  4227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4228. for as_dir in $PATH
  4229. do
  4230. IFS=$as_save_IFS
  4231. test -z "$as_dir" && as_dir=.
  4232. for ac_exec_ext in '' $ac_executable_extensions; do
  4233. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4234. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4235. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4236. break 2
  4237. fi
  4238. done
  4239. done
  4240. IFS=$as_save_IFS
  4241. fi
  4242. fi
  4243. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4244. if test -n "$ac_ct_DUMPBIN"; then
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4246. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4247. else
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4249. $as_echo "no" >&6; }
  4250. fi
  4251. test -n "$ac_ct_DUMPBIN" && break
  4252. done
  4253. if test "x$ac_ct_DUMPBIN" = x; then
  4254. DUMPBIN=":"
  4255. else
  4256. case $cross_compiling:$ac_tool_warned in
  4257. yes:)
  4258. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4259. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4260. ac_tool_warned=yes ;;
  4261. esac
  4262. DUMPBIN=$ac_ct_DUMPBIN
  4263. fi
  4264. fi
  4265. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4266. *COFF*)
  4267. DUMPBIN="$DUMPBIN -symbols"
  4268. ;;
  4269. *)
  4270. DUMPBIN=:
  4271. ;;
  4272. esac
  4273. fi
  4274. if test "$DUMPBIN" != ":"; then
  4275. NM="$DUMPBIN"
  4276. fi
  4277. fi
  4278. test -z "$NM" && NM=nm
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4280. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4281. if ${lt_cv_nm_interface+:} false; then :
  4282. $as_echo_n "(cached) " >&6
  4283. else
  4284. lt_cv_nm_interface="BSD nm"
  4285. echo "int some_variable = 0;" > conftest.$ac_ext
  4286. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4287. (eval "$ac_compile" 2>conftest.err)
  4288. cat conftest.err >&5
  4289. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4290. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4291. cat conftest.err >&5
  4292. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4293. cat conftest.out >&5
  4294. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4295. lt_cv_nm_interface="MS dumpbin"
  4296. fi
  4297. rm -f conftest*
  4298. fi
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4300. $as_echo "$lt_cv_nm_interface" >&6; }
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4302. $as_echo_n "checking whether ln -s works... " >&6; }
  4303. LN_S=$as_ln_s
  4304. if test "$LN_S" = "ln -s"; then
  4305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4306. $as_echo "yes" >&6; }
  4307. else
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4309. $as_echo "no, using $LN_S" >&6; }
  4310. fi
  4311. # find the maximum length of command line arguments
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4313. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4314. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4315. $as_echo_n "(cached) " >&6
  4316. else
  4317. i=0
  4318. teststring="ABCD"
  4319. case $build_os in
  4320. msdosdjgpp*)
  4321. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4322. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4323. # during glob expansion). Even if it were fixed, the result of this
  4324. # check would be larger than it should be.
  4325. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4326. ;;
  4327. gnu*)
  4328. # Under GNU Hurd, this test is not required because there is
  4329. # no limit to the length of command line arguments.
  4330. # Libtool will interpret -1 as no limit whatsoever
  4331. lt_cv_sys_max_cmd_len=-1;
  4332. ;;
  4333. cygwin* | mingw* | cegcc*)
  4334. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4335. # about 5 minutes as the teststring grows exponentially.
  4336. # Worse, since 9x/ME are not pre-emptively multitasking,
  4337. # you end up with a "frozen" computer, even though with patience
  4338. # the test eventually succeeds (with a max line length of 256k).
  4339. # Instead, let's just punt: use the minimum linelength reported by
  4340. # all of the supported platforms: 8192 (on NT/2K/XP).
  4341. lt_cv_sys_max_cmd_len=8192;
  4342. ;;
  4343. mint*)
  4344. # On MiNT this can take a long time and run out of memory.
  4345. lt_cv_sys_max_cmd_len=8192;
  4346. ;;
  4347. amigaos*)
  4348. # On AmigaOS with pdksh, this test takes hours, literally.
  4349. # So we just punt and use a minimum line length of 8192.
  4350. lt_cv_sys_max_cmd_len=8192;
  4351. ;;
  4352. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4353. # This has been around since 386BSD, at least. Likely further.
  4354. if test -x /sbin/sysctl; then
  4355. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4356. elif test -x /usr/sbin/sysctl; then
  4357. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4358. else
  4359. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4360. fi
  4361. # And add a safety zone
  4362. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4363. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4364. ;;
  4365. interix*)
  4366. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4367. lt_cv_sys_max_cmd_len=196608
  4368. ;;
  4369. os2*)
  4370. # The test takes a long time on OS/2.
  4371. lt_cv_sys_max_cmd_len=8192
  4372. ;;
  4373. osf*)
  4374. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4375. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4376. # nice to cause kernel panics so lets avoid the loop below.
  4377. # First set a reasonable default.
  4378. lt_cv_sys_max_cmd_len=16384
  4379. #
  4380. if test -x /sbin/sysconfig; then
  4381. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4382. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4383. esac
  4384. fi
  4385. ;;
  4386. sco3.2v5*)
  4387. lt_cv_sys_max_cmd_len=102400
  4388. ;;
  4389. sysv5* | sco5v6* | sysv4.2uw2*)
  4390. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4391. if test -n "$kargmax"; then
  4392. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4393. else
  4394. lt_cv_sys_max_cmd_len=32768
  4395. fi
  4396. ;;
  4397. *)
  4398. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4399. if test -n "$lt_cv_sys_max_cmd_len"; then
  4400. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4401. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4402. else
  4403. # Make teststring a little bigger before we do anything with it.
  4404. # a 1K string should be a reasonable start.
  4405. for i in 1 2 3 4 5 6 7 8 ; do
  4406. teststring=$teststring$teststring
  4407. done
  4408. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4409. # If test is not a shell built-in, we'll probably end up computing a
  4410. # maximum length that is only half of the actual maximum length, but
  4411. # we can't tell.
  4412. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4413. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4414. test $i != 17 # 1/2 MB should be enough
  4415. do
  4416. i=`expr $i + 1`
  4417. teststring=$teststring$teststring
  4418. done
  4419. # Only check the string length outside the loop.
  4420. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4421. teststring=
  4422. # Add a significant safety factor because C++ compilers can tack on
  4423. # massive amounts of additional arguments before passing them to the
  4424. # linker. It appears as though 1/2 is a usable value.
  4425. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4426. fi
  4427. ;;
  4428. esac
  4429. fi
  4430. if test -n $lt_cv_sys_max_cmd_len ; then
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4432. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4433. else
  4434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4435. $as_echo "none" >&6; }
  4436. fi
  4437. max_cmd_len=$lt_cv_sys_max_cmd_len
  4438. : ${CP="cp -f"}
  4439. : ${MV="mv -f"}
  4440. : ${RM="rm -f"}
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4442. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4443. # Try some XSI features
  4444. xsi_shell=no
  4445. ( _lt_dummy="a/b/c"
  4446. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4447. = c,a/b,b/c, \
  4448. && eval 'test $(( 1 + 1 )) -eq 2 \
  4449. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4450. && xsi_shell=yes
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4452. $as_echo "$xsi_shell" >&6; }
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4454. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4455. lt_shell_append=no
  4456. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4457. >/dev/null 2>&1 \
  4458. && lt_shell_append=yes
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4460. $as_echo "$lt_shell_append" >&6; }
  4461. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4462. lt_unset=unset
  4463. else
  4464. lt_unset=false
  4465. fi
  4466. # test EBCDIC or ASCII
  4467. case `echo X|tr X '\101'` in
  4468. A) # ASCII based system
  4469. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4470. lt_SP2NL='tr \040 \012'
  4471. lt_NL2SP='tr \015\012 \040\040'
  4472. ;;
  4473. *) # EBCDIC based system
  4474. lt_SP2NL='tr \100 \n'
  4475. lt_NL2SP='tr \r\n \100\100'
  4476. ;;
  4477. esac
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4479. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4480. if ${lt_cv_to_host_file_cmd+:} false; then :
  4481. $as_echo_n "(cached) " >&6
  4482. else
  4483. case $host in
  4484. *-*-mingw* )
  4485. case $build in
  4486. *-*-mingw* ) # actually msys
  4487. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4488. ;;
  4489. *-*-cygwin* )
  4490. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4491. ;;
  4492. * ) # otherwise, assume *nix
  4493. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4494. ;;
  4495. esac
  4496. ;;
  4497. *-*-cygwin* )
  4498. case $build in
  4499. *-*-mingw* ) # actually msys
  4500. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4501. ;;
  4502. *-*-cygwin* )
  4503. lt_cv_to_host_file_cmd=func_convert_file_noop
  4504. ;;
  4505. * ) # otherwise, assume *nix
  4506. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4507. ;;
  4508. esac
  4509. ;;
  4510. * ) # unhandled hosts (and "normal" native builds)
  4511. lt_cv_to_host_file_cmd=func_convert_file_noop
  4512. ;;
  4513. esac
  4514. fi
  4515. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4517. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4519. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4520. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4521. $as_echo_n "(cached) " >&6
  4522. else
  4523. #assume ordinary cross tools, or native build.
  4524. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4525. case $host in
  4526. *-*-mingw* )
  4527. case $build in
  4528. *-*-mingw* ) # actually msys
  4529. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4530. ;;
  4531. esac
  4532. ;;
  4533. esac
  4534. fi
  4535. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4537. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4539. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4540. if ${lt_cv_ld_reload_flag+:} false; then :
  4541. $as_echo_n "(cached) " >&6
  4542. else
  4543. lt_cv_ld_reload_flag='-r'
  4544. fi
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4546. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4547. reload_flag=$lt_cv_ld_reload_flag
  4548. case $reload_flag in
  4549. "" | " "*) ;;
  4550. *) reload_flag=" $reload_flag" ;;
  4551. esac
  4552. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4553. case $host_os in
  4554. cygwin* | mingw* | pw32* | cegcc*)
  4555. if test "$GCC" != yes; then
  4556. reload_cmds=false
  4557. fi
  4558. ;;
  4559. darwin*)
  4560. if test "$GCC" = yes; then
  4561. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4562. else
  4563. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4564. fi
  4565. ;;
  4566. esac
  4567. if test -n "$ac_tool_prefix"; then
  4568. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4569. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4571. $as_echo_n "checking for $ac_word... " >&6; }
  4572. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4573. $as_echo_n "(cached) " >&6
  4574. else
  4575. if test -n "$OBJDUMP"; then
  4576. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4577. else
  4578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4579. for as_dir in $PATH
  4580. do
  4581. IFS=$as_save_IFS
  4582. test -z "$as_dir" && as_dir=.
  4583. for ac_exec_ext in '' $ac_executable_extensions; do
  4584. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4585. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4586. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4587. break 2
  4588. fi
  4589. done
  4590. done
  4591. IFS=$as_save_IFS
  4592. fi
  4593. fi
  4594. OBJDUMP=$ac_cv_prog_OBJDUMP
  4595. if test -n "$OBJDUMP"; then
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4597. $as_echo "$OBJDUMP" >&6; }
  4598. else
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4600. $as_echo "no" >&6; }
  4601. fi
  4602. fi
  4603. if test -z "$ac_cv_prog_OBJDUMP"; then
  4604. ac_ct_OBJDUMP=$OBJDUMP
  4605. # Extract the first word of "objdump", so it can be a program name with args.
  4606. set dummy objdump; ac_word=$2
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4608. $as_echo_n "checking for $ac_word... " >&6; }
  4609. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4610. $as_echo_n "(cached) " >&6
  4611. else
  4612. if test -n "$ac_ct_OBJDUMP"; then
  4613. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4614. else
  4615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4616. for as_dir in $PATH
  4617. do
  4618. IFS=$as_save_IFS
  4619. test -z "$as_dir" && as_dir=.
  4620. for ac_exec_ext in '' $ac_executable_extensions; do
  4621. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4622. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4624. break 2
  4625. fi
  4626. done
  4627. done
  4628. IFS=$as_save_IFS
  4629. fi
  4630. fi
  4631. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4632. if test -n "$ac_ct_OBJDUMP"; then
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4634. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4635. else
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4637. $as_echo "no" >&6; }
  4638. fi
  4639. if test "x$ac_ct_OBJDUMP" = x; then
  4640. OBJDUMP="false"
  4641. else
  4642. case $cross_compiling:$ac_tool_warned in
  4643. yes:)
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4645. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4646. ac_tool_warned=yes ;;
  4647. esac
  4648. OBJDUMP=$ac_ct_OBJDUMP
  4649. fi
  4650. else
  4651. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4652. fi
  4653. test -z "$OBJDUMP" && OBJDUMP=objdump
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4655. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4656. if ${lt_cv_deplibs_check_method+:} false; then :
  4657. $as_echo_n "(cached) " >&6
  4658. else
  4659. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4660. lt_cv_file_magic_test_file=
  4661. lt_cv_deplibs_check_method='unknown'
  4662. # Need to set the preceding variable on all platforms that support
  4663. # interlibrary dependencies.
  4664. # 'none' -- dependencies not supported.
  4665. # `unknown' -- same as none, but documents that we really don't know.
  4666. # 'pass_all' -- all dependencies passed with no checks.
  4667. # 'test_compile' -- check by making test program.
  4668. # 'file_magic [[regex]]' -- check by looking for files in library path
  4669. # which responds to the $file_magic_cmd with a given extended regex.
  4670. # If you have `file' or equivalent on your system and you're not sure
  4671. # whether `pass_all' will *always* work, you probably want this one.
  4672. case $host_os in
  4673. aix[4-9]*)
  4674. lt_cv_deplibs_check_method=pass_all
  4675. ;;
  4676. beos*)
  4677. lt_cv_deplibs_check_method=pass_all
  4678. ;;
  4679. bsdi[45]*)
  4680. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4681. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4682. lt_cv_file_magic_test_file=/shlib/libc.so
  4683. ;;
  4684. cygwin*)
  4685. # func_win32_libid is a shell function defined in ltmain.sh
  4686. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4687. lt_cv_file_magic_cmd='func_win32_libid'
  4688. ;;
  4689. mingw* | pw32*)
  4690. # Base MSYS/MinGW do not provide the 'file' command needed by
  4691. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4692. # unless we find 'file', for example because we are cross-compiling.
  4693. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4694. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4695. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4696. lt_cv_file_magic_cmd='func_win32_libid'
  4697. else
  4698. # Keep this pattern in sync with the one in func_win32_libid.
  4699. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4700. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4701. fi
  4702. ;;
  4703. cegcc*)
  4704. # use the weaker test based on 'objdump'. See mingw*.
  4705. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4706. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4707. ;;
  4708. darwin* | rhapsody*)
  4709. lt_cv_deplibs_check_method=pass_all
  4710. ;;
  4711. freebsd* | dragonfly*)
  4712. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4713. case $host_cpu in
  4714. i*86 )
  4715. # Not sure whether the presence of OpenBSD here was a mistake.
  4716. # Let's accept both of them until this is cleared up.
  4717. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4718. lt_cv_file_magic_cmd=/usr/bin/file
  4719. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4720. ;;
  4721. esac
  4722. else
  4723. lt_cv_deplibs_check_method=pass_all
  4724. fi
  4725. ;;
  4726. gnu*)
  4727. lt_cv_deplibs_check_method=pass_all
  4728. ;;
  4729. haiku*)
  4730. lt_cv_deplibs_check_method=pass_all
  4731. ;;
  4732. hpux10.20* | hpux11*)
  4733. lt_cv_file_magic_cmd=/usr/bin/file
  4734. case $host_cpu in
  4735. ia64*)
  4736. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4737. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4738. ;;
  4739. hppa*64*)
  4740. 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]'
  4741. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4742. ;;
  4743. *)
  4744. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4745. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4746. ;;
  4747. esac
  4748. ;;
  4749. interix[3-9]*)
  4750. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4751. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4752. ;;
  4753. irix5* | irix6* | nonstopux*)
  4754. case $LD in
  4755. *-32|*"-32 ") libmagic=32-bit;;
  4756. *-n32|*"-n32 ") libmagic=N32;;
  4757. *-64|*"-64 ") libmagic=64-bit;;
  4758. *) libmagic=never-match;;
  4759. esac
  4760. lt_cv_deplibs_check_method=pass_all
  4761. ;;
  4762. # This must be glibc/ELF.
  4763. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4764. lt_cv_deplibs_check_method=pass_all
  4765. ;;
  4766. netbsd* | netbsdelf*-gnu)
  4767. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4768. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4769. else
  4770. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4771. fi
  4772. ;;
  4773. newos6*)
  4774. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4775. lt_cv_file_magic_cmd=/usr/bin/file
  4776. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4777. ;;
  4778. *nto* | *qnx*)
  4779. lt_cv_deplibs_check_method=pass_all
  4780. ;;
  4781. openbsd*)
  4782. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4783. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4784. else
  4785. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4786. fi
  4787. ;;
  4788. osf3* | osf4* | osf5*)
  4789. lt_cv_deplibs_check_method=pass_all
  4790. ;;
  4791. rdos*)
  4792. lt_cv_deplibs_check_method=pass_all
  4793. ;;
  4794. solaris*)
  4795. lt_cv_deplibs_check_method=pass_all
  4796. ;;
  4797. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4798. lt_cv_deplibs_check_method=pass_all
  4799. ;;
  4800. sysv4 | sysv4.3*)
  4801. case $host_vendor in
  4802. motorola)
  4803. 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]'
  4804. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4805. ;;
  4806. ncr)
  4807. lt_cv_deplibs_check_method=pass_all
  4808. ;;
  4809. sequent)
  4810. lt_cv_file_magic_cmd='/bin/file'
  4811. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4812. ;;
  4813. sni)
  4814. lt_cv_file_magic_cmd='/bin/file'
  4815. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4816. lt_cv_file_magic_test_file=/lib/libc.so
  4817. ;;
  4818. siemens)
  4819. lt_cv_deplibs_check_method=pass_all
  4820. ;;
  4821. pc)
  4822. lt_cv_deplibs_check_method=pass_all
  4823. ;;
  4824. esac
  4825. ;;
  4826. tpf*)
  4827. lt_cv_deplibs_check_method=pass_all
  4828. ;;
  4829. esac
  4830. fi
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4832. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4833. file_magic_glob=
  4834. want_nocaseglob=no
  4835. if test "$build" = "$host"; then
  4836. case $host_os in
  4837. mingw* | pw32*)
  4838. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4839. want_nocaseglob=yes
  4840. else
  4841. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4842. fi
  4843. ;;
  4844. esac
  4845. fi
  4846. file_magic_cmd=$lt_cv_file_magic_cmd
  4847. deplibs_check_method=$lt_cv_deplibs_check_method
  4848. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4849. if test -n "$ac_tool_prefix"; then
  4850. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4851. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4853. $as_echo_n "checking for $ac_word... " >&6; }
  4854. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4855. $as_echo_n "(cached) " >&6
  4856. else
  4857. if test -n "$DLLTOOL"; then
  4858. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4859. else
  4860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4861. for as_dir in $PATH
  4862. do
  4863. IFS=$as_save_IFS
  4864. test -z "$as_dir" && as_dir=.
  4865. for ac_exec_ext in '' $ac_executable_extensions; do
  4866. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4867. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4869. break 2
  4870. fi
  4871. done
  4872. done
  4873. IFS=$as_save_IFS
  4874. fi
  4875. fi
  4876. DLLTOOL=$ac_cv_prog_DLLTOOL
  4877. if test -n "$DLLTOOL"; then
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4879. $as_echo "$DLLTOOL" >&6; }
  4880. else
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4882. $as_echo "no" >&6; }
  4883. fi
  4884. fi
  4885. if test -z "$ac_cv_prog_DLLTOOL"; then
  4886. ac_ct_DLLTOOL=$DLLTOOL
  4887. # Extract the first word of "dlltool", so it can be a program name with args.
  4888. set dummy dlltool; ac_word=$2
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4890. $as_echo_n "checking for $ac_word... " >&6; }
  4891. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4892. $as_echo_n "(cached) " >&6
  4893. else
  4894. if test -n "$ac_ct_DLLTOOL"; then
  4895. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4896. else
  4897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4898. for as_dir in $PATH
  4899. do
  4900. IFS=$as_save_IFS
  4901. test -z "$as_dir" && as_dir=.
  4902. for ac_exec_ext in '' $ac_executable_extensions; do
  4903. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4904. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4906. break 2
  4907. fi
  4908. done
  4909. done
  4910. IFS=$as_save_IFS
  4911. fi
  4912. fi
  4913. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4914. if test -n "$ac_ct_DLLTOOL"; then
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4916. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4917. else
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4919. $as_echo "no" >&6; }
  4920. fi
  4921. if test "x$ac_ct_DLLTOOL" = x; then
  4922. DLLTOOL="false"
  4923. else
  4924. case $cross_compiling:$ac_tool_warned in
  4925. yes:)
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4927. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4928. ac_tool_warned=yes ;;
  4929. esac
  4930. DLLTOOL=$ac_ct_DLLTOOL
  4931. fi
  4932. else
  4933. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4934. fi
  4935. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4937. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4938. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4939. $as_echo_n "(cached) " >&6
  4940. else
  4941. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4942. case $host_os in
  4943. cygwin* | mingw* | pw32* | cegcc*)
  4944. # two different shell functions defined in ltmain.sh
  4945. # decide which to use based on capabilities of $DLLTOOL
  4946. case `$DLLTOOL --help 2>&1` in
  4947. *--identify-strict*)
  4948. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4949. ;;
  4950. *)
  4951. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4952. ;;
  4953. esac
  4954. ;;
  4955. *)
  4956. # fallback: assume linklib IS sharedlib
  4957. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4958. ;;
  4959. esac
  4960. fi
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4962. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4963. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4964. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4965. if test -n "$ac_tool_prefix"; then
  4966. for ac_prog in ar
  4967. do
  4968. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4969. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4971. $as_echo_n "checking for $ac_word... " >&6; }
  4972. if ${ac_cv_prog_AR+:} false; then :
  4973. $as_echo_n "(cached) " >&6
  4974. else
  4975. if test -n "$AR"; then
  4976. ac_cv_prog_AR="$AR" # Let the user override the test.
  4977. else
  4978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4979. for as_dir in $PATH
  4980. do
  4981. IFS=$as_save_IFS
  4982. test -z "$as_dir" && as_dir=.
  4983. for ac_exec_ext in '' $ac_executable_extensions; do
  4984. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4985. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4986. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4987. break 2
  4988. fi
  4989. done
  4990. done
  4991. IFS=$as_save_IFS
  4992. fi
  4993. fi
  4994. AR=$ac_cv_prog_AR
  4995. if test -n "$AR"; then
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4997. $as_echo "$AR" >&6; }
  4998. else
  4999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5000. $as_echo "no" >&6; }
  5001. fi
  5002. test -n "$AR" && break
  5003. done
  5004. fi
  5005. if test -z "$AR"; then
  5006. ac_ct_AR=$AR
  5007. for ac_prog in ar
  5008. do
  5009. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5010. set dummy $ac_prog; ac_word=$2
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5012. $as_echo_n "checking for $ac_word... " >&6; }
  5013. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5014. $as_echo_n "(cached) " >&6
  5015. else
  5016. if test -n "$ac_ct_AR"; then
  5017. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5018. else
  5019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5020. for as_dir in $PATH
  5021. do
  5022. IFS=$as_save_IFS
  5023. test -z "$as_dir" && as_dir=.
  5024. for ac_exec_ext in '' $ac_executable_extensions; do
  5025. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5026. ac_cv_prog_ac_ct_AR="$ac_prog"
  5027. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5028. break 2
  5029. fi
  5030. done
  5031. done
  5032. IFS=$as_save_IFS
  5033. fi
  5034. fi
  5035. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5036. if test -n "$ac_ct_AR"; then
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5038. $as_echo "$ac_ct_AR" >&6; }
  5039. else
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5041. $as_echo "no" >&6; }
  5042. fi
  5043. test -n "$ac_ct_AR" && break
  5044. done
  5045. if test "x$ac_ct_AR" = x; then
  5046. AR="false"
  5047. else
  5048. case $cross_compiling:$ac_tool_warned in
  5049. yes:)
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5051. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5052. ac_tool_warned=yes ;;
  5053. esac
  5054. AR=$ac_ct_AR
  5055. fi
  5056. fi
  5057. : ${AR=ar}
  5058. : ${AR_FLAGS=cru}
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5060. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5061. if ${lt_cv_ar_at_file+:} false; then :
  5062. $as_echo_n "(cached) " >&6
  5063. else
  5064. lt_cv_ar_at_file=no
  5065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5066. /* end confdefs.h. */
  5067. int
  5068. main ()
  5069. {
  5070. ;
  5071. return 0;
  5072. }
  5073. _ACEOF
  5074. if ac_fn_c_try_compile "$LINENO"; then :
  5075. echo conftest.$ac_objext > conftest.lst
  5076. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5077. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5078. (eval $lt_ar_try) 2>&5
  5079. ac_status=$?
  5080. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5081. test $ac_status = 0; }
  5082. if test "$ac_status" -eq 0; then
  5083. # Ensure the archiver fails upon bogus file names.
  5084. rm -f conftest.$ac_objext libconftest.a
  5085. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5086. (eval $lt_ar_try) 2>&5
  5087. ac_status=$?
  5088. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5089. test $ac_status = 0; }
  5090. if test "$ac_status" -ne 0; then
  5091. lt_cv_ar_at_file=@
  5092. fi
  5093. fi
  5094. rm -f conftest.* libconftest.a
  5095. fi
  5096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5097. fi
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5099. $as_echo "$lt_cv_ar_at_file" >&6; }
  5100. if test "x$lt_cv_ar_at_file" = xno; then
  5101. archiver_list_spec=
  5102. else
  5103. archiver_list_spec=$lt_cv_ar_at_file
  5104. fi
  5105. if test -n "$ac_tool_prefix"; then
  5106. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5107. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5109. $as_echo_n "checking for $ac_word... " >&6; }
  5110. if ${ac_cv_prog_STRIP+:} false; then :
  5111. $as_echo_n "(cached) " >&6
  5112. else
  5113. if test -n "$STRIP"; then
  5114. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5115. else
  5116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5117. for as_dir in $PATH
  5118. do
  5119. IFS=$as_save_IFS
  5120. test -z "$as_dir" && as_dir=.
  5121. for ac_exec_ext in '' $ac_executable_extensions; do
  5122. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5123. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5125. break 2
  5126. fi
  5127. done
  5128. done
  5129. IFS=$as_save_IFS
  5130. fi
  5131. fi
  5132. STRIP=$ac_cv_prog_STRIP
  5133. if test -n "$STRIP"; then
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5135. $as_echo "$STRIP" >&6; }
  5136. else
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5138. $as_echo "no" >&6; }
  5139. fi
  5140. fi
  5141. if test -z "$ac_cv_prog_STRIP"; then
  5142. ac_ct_STRIP=$STRIP
  5143. # Extract the first word of "strip", so it can be a program name with args.
  5144. set dummy strip; ac_word=$2
  5145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5146. $as_echo_n "checking for $ac_word... " >&6; }
  5147. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5148. $as_echo_n "(cached) " >&6
  5149. else
  5150. if test -n "$ac_ct_STRIP"; then
  5151. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5152. else
  5153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5154. for as_dir in $PATH
  5155. do
  5156. IFS=$as_save_IFS
  5157. test -z "$as_dir" && as_dir=.
  5158. for ac_exec_ext in '' $ac_executable_extensions; do
  5159. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5160. ac_cv_prog_ac_ct_STRIP="strip"
  5161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5162. break 2
  5163. fi
  5164. done
  5165. done
  5166. IFS=$as_save_IFS
  5167. fi
  5168. fi
  5169. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5170. if test -n "$ac_ct_STRIP"; then
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5172. $as_echo "$ac_ct_STRIP" >&6; }
  5173. else
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5175. $as_echo "no" >&6; }
  5176. fi
  5177. if test "x$ac_ct_STRIP" = x; then
  5178. STRIP=":"
  5179. else
  5180. case $cross_compiling:$ac_tool_warned in
  5181. yes:)
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5183. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5184. ac_tool_warned=yes ;;
  5185. esac
  5186. STRIP=$ac_ct_STRIP
  5187. fi
  5188. else
  5189. STRIP="$ac_cv_prog_STRIP"
  5190. fi
  5191. test -z "$STRIP" && STRIP=:
  5192. if test -n "$ac_tool_prefix"; then
  5193. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5194. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5196. $as_echo_n "checking for $ac_word... " >&6; }
  5197. if ${ac_cv_prog_RANLIB+:} false; then :
  5198. $as_echo_n "(cached) " >&6
  5199. else
  5200. if test -n "$RANLIB"; then
  5201. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5202. else
  5203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5204. for as_dir in $PATH
  5205. do
  5206. IFS=$as_save_IFS
  5207. test -z "$as_dir" && as_dir=.
  5208. for ac_exec_ext in '' $ac_executable_extensions; do
  5209. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5210. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5211. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5212. break 2
  5213. fi
  5214. done
  5215. done
  5216. IFS=$as_save_IFS
  5217. fi
  5218. fi
  5219. RANLIB=$ac_cv_prog_RANLIB
  5220. if test -n "$RANLIB"; then
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5222. $as_echo "$RANLIB" >&6; }
  5223. else
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5225. $as_echo "no" >&6; }
  5226. fi
  5227. fi
  5228. if test -z "$ac_cv_prog_RANLIB"; then
  5229. ac_ct_RANLIB=$RANLIB
  5230. # Extract the first word of "ranlib", so it can be a program name with args.
  5231. set dummy ranlib; ac_word=$2
  5232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5233. $as_echo_n "checking for $ac_word... " >&6; }
  5234. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5235. $as_echo_n "(cached) " >&6
  5236. else
  5237. if test -n "$ac_ct_RANLIB"; then
  5238. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5239. else
  5240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5241. for as_dir in $PATH
  5242. do
  5243. IFS=$as_save_IFS
  5244. test -z "$as_dir" && as_dir=.
  5245. for ac_exec_ext in '' $ac_executable_extensions; do
  5246. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5247. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5248. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5249. break 2
  5250. fi
  5251. done
  5252. done
  5253. IFS=$as_save_IFS
  5254. fi
  5255. fi
  5256. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5257. if test -n "$ac_ct_RANLIB"; then
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5259. $as_echo "$ac_ct_RANLIB" >&6; }
  5260. else
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5262. $as_echo "no" >&6; }
  5263. fi
  5264. if test "x$ac_ct_RANLIB" = x; then
  5265. RANLIB=":"
  5266. else
  5267. case $cross_compiling:$ac_tool_warned in
  5268. yes:)
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5270. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5271. ac_tool_warned=yes ;;
  5272. esac
  5273. RANLIB=$ac_ct_RANLIB
  5274. fi
  5275. else
  5276. RANLIB="$ac_cv_prog_RANLIB"
  5277. fi
  5278. test -z "$RANLIB" && RANLIB=:
  5279. # Determine commands to create old-style static archives.
  5280. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5281. old_postinstall_cmds='chmod 644 $oldlib'
  5282. old_postuninstall_cmds=
  5283. if test -n "$RANLIB"; then
  5284. case $host_os in
  5285. openbsd*)
  5286. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5287. ;;
  5288. *)
  5289. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5290. ;;
  5291. esac
  5292. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5293. fi
  5294. case $host_os in
  5295. darwin*)
  5296. lock_old_archive_extraction=yes ;;
  5297. *)
  5298. lock_old_archive_extraction=no ;;
  5299. esac
  5300. # If no C compiler was specified, use CC.
  5301. LTCC=${LTCC-"$CC"}
  5302. # If no C compiler flags were specified, use CFLAGS.
  5303. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5304. # Allow CC to be a program name with arguments.
  5305. compiler=$CC
  5306. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5308. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5309. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5310. $as_echo_n "(cached) " >&6
  5311. else
  5312. # These are sane defaults that work on at least a few old systems.
  5313. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5314. # Character class describing NM global symbol codes.
  5315. symcode='[BCDEGRST]'
  5316. # Regexp to match symbols that can be accessed directly from C.
  5317. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5318. # Define system-specific variables.
  5319. case $host_os in
  5320. aix*)
  5321. symcode='[BCDT]'
  5322. ;;
  5323. cygwin* | mingw* | pw32* | cegcc*)
  5324. symcode='[ABCDGISTW]'
  5325. ;;
  5326. hpux*)
  5327. if test "$host_cpu" = ia64; then
  5328. symcode='[ABCDEGRST]'
  5329. fi
  5330. ;;
  5331. irix* | nonstopux*)
  5332. symcode='[BCDEGRST]'
  5333. ;;
  5334. osf*)
  5335. symcode='[BCDEGQRST]'
  5336. ;;
  5337. solaris*)
  5338. symcode='[BDRT]'
  5339. ;;
  5340. sco3.2v5*)
  5341. symcode='[DT]'
  5342. ;;
  5343. sysv4.2uw2*)
  5344. symcode='[DT]'
  5345. ;;
  5346. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5347. symcode='[ABDT]'
  5348. ;;
  5349. sysv4)
  5350. symcode='[DFNSTU]'
  5351. ;;
  5352. esac
  5353. # If we're using GNU nm, then use its standard symbol codes.
  5354. case `$NM -V 2>&1` in
  5355. *GNU* | *'with BFD'*)
  5356. symcode='[ABCDGIRSTW]' ;;
  5357. esac
  5358. # Transform an extracted symbol line into a proper C declaration.
  5359. # Some systems (esp. on ia64) link data and code symbols differently,
  5360. # so use this general approach.
  5361. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5362. # Transform an extracted symbol line into symbol name and symbol address
  5363. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5364. 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'"
  5365. # Handle CRLF in mingw tool chain
  5366. opt_cr=
  5367. case $build_os in
  5368. mingw*)
  5369. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5370. ;;
  5371. esac
  5372. # Try without a prefix underscore, then with it.
  5373. for ac_symprfx in "" "_"; do
  5374. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5375. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5376. # Write the raw and C identifiers.
  5377. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5378. # Fake it for dumpbin and say T for any non-static function
  5379. # and D for any global variable.
  5380. # Also find C++ and __fastcall symbols from MSVC++,
  5381. # which start with @ or ?.
  5382. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5383. " {last_section=section; section=\$ 3};"\
  5384. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5385. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5386. " \$ 0!~/External *\|/{next};"\
  5387. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5388. " {if(hide[section]) next};"\
  5389. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5390. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5391. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5392. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5393. " ' prfx=^$ac_symprfx"
  5394. else
  5395. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5396. fi
  5397. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5398. # Check to see that the pipe works correctly.
  5399. pipe_works=no
  5400. rm -f conftest*
  5401. cat > conftest.$ac_ext <<_LT_EOF
  5402. #ifdef __cplusplus
  5403. extern "C" {
  5404. #endif
  5405. char nm_test_var;
  5406. void nm_test_func(void);
  5407. void nm_test_func(void){}
  5408. #ifdef __cplusplus
  5409. }
  5410. #endif
  5411. int main(){nm_test_var='a';nm_test_func();return(0);}
  5412. _LT_EOF
  5413. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5414. (eval $ac_compile) 2>&5
  5415. ac_status=$?
  5416. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5417. test $ac_status = 0; }; then
  5418. # Now try to grab the symbols.
  5419. nlist=conftest.nm
  5420. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5421. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5422. ac_status=$?
  5423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5424. test $ac_status = 0; } && test -s "$nlist"; then
  5425. # Try sorting and uniquifying the output.
  5426. if sort "$nlist" | uniq > "$nlist"T; then
  5427. mv -f "$nlist"T "$nlist"
  5428. else
  5429. rm -f "$nlist"T
  5430. fi
  5431. # Make sure that we snagged all the symbols we need.
  5432. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5433. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5434. cat <<_LT_EOF > conftest.$ac_ext
  5435. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5436. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5437. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5438. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5439. # define LT_DLSYM_CONST
  5440. #elif defined(__osf__)
  5441. /* This system does not cope well with relocations in const data. */
  5442. # define LT_DLSYM_CONST
  5443. #else
  5444. # define LT_DLSYM_CONST const
  5445. #endif
  5446. #ifdef __cplusplus
  5447. extern "C" {
  5448. #endif
  5449. _LT_EOF
  5450. # Now generate the symbol file.
  5451. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5452. cat <<_LT_EOF >> conftest.$ac_ext
  5453. /* The mapping between symbol names and symbols. */
  5454. LT_DLSYM_CONST struct {
  5455. const char *name;
  5456. void *address;
  5457. }
  5458. lt__PROGRAM__LTX_preloaded_symbols[] =
  5459. {
  5460. { "@PROGRAM@", (void *) 0 },
  5461. _LT_EOF
  5462. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5463. cat <<\_LT_EOF >> conftest.$ac_ext
  5464. {0, (void *) 0}
  5465. };
  5466. /* This works around a problem in FreeBSD linker */
  5467. #ifdef FREEBSD_WORKAROUND
  5468. static const void *lt_preloaded_setup() {
  5469. return lt__PROGRAM__LTX_preloaded_symbols;
  5470. }
  5471. #endif
  5472. #ifdef __cplusplus
  5473. }
  5474. #endif
  5475. _LT_EOF
  5476. # Now try linking the two files.
  5477. mv conftest.$ac_objext conftstm.$ac_objext
  5478. lt_globsym_save_LIBS=$LIBS
  5479. lt_globsym_save_CFLAGS=$CFLAGS
  5480. LIBS="conftstm.$ac_objext"
  5481. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5482. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5483. (eval $ac_link) 2>&5
  5484. ac_status=$?
  5485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5486. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5487. pipe_works=yes
  5488. fi
  5489. LIBS=$lt_globsym_save_LIBS
  5490. CFLAGS=$lt_globsym_save_CFLAGS
  5491. else
  5492. echo "cannot find nm_test_func in $nlist" >&5
  5493. fi
  5494. else
  5495. echo "cannot find nm_test_var in $nlist" >&5
  5496. fi
  5497. else
  5498. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5499. fi
  5500. else
  5501. echo "$progname: failed program was:" >&5
  5502. cat conftest.$ac_ext >&5
  5503. fi
  5504. rm -rf conftest* conftst*
  5505. # Do not use the global_symbol_pipe unless it works.
  5506. if test "$pipe_works" = yes; then
  5507. break
  5508. else
  5509. lt_cv_sys_global_symbol_pipe=
  5510. fi
  5511. done
  5512. fi
  5513. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5514. lt_cv_sys_global_symbol_to_cdecl=
  5515. fi
  5516. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5518. $as_echo "failed" >&6; }
  5519. else
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5521. $as_echo "ok" >&6; }
  5522. fi
  5523. # Response file support.
  5524. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5525. nm_file_list_spec='@'
  5526. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5527. nm_file_list_spec='@'
  5528. fi
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5530. $as_echo_n "checking for sysroot... " >&6; }
  5531. # Check whether --with-sysroot was given.
  5532. if test "${with_sysroot+set}" = set; then :
  5533. withval=$with_sysroot;
  5534. else
  5535. with_sysroot=no
  5536. fi
  5537. lt_sysroot=
  5538. case ${with_sysroot} in #(
  5539. yes)
  5540. if test "$GCC" = yes; then
  5541. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5542. fi
  5543. ;; #(
  5544. /*)
  5545. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5546. ;; #(
  5547. no|'')
  5548. ;; #(
  5549. *)
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5551. $as_echo "${with_sysroot}" >&6; }
  5552. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5553. ;;
  5554. esac
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5556. $as_echo "${lt_sysroot:-no}" >&6; }
  5557. # Check whether --enable-libtool-lock was given.
  5558. if test "${enable_libtool_lock+set}" = set; then :
  5559. enableval=$enable_libtool_lock;
  5560. fi
  5561. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5562. # Some flags need to be propagated to the compiler or linker for good
  5563. # libtool support.
  5564. case $host in
  5565. ia64-*-hpux*)
  5566. # Find out which ABI we are using.
  5567. echo 'int i;' > conftest.$ac_ext
  5568. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5569. (eval $ac_compile) 2>&5
  5570. ac_status=$?
  5571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5572. test $ac_status = 0; }; then
  5573. case `/usr/bin/file conftest.$ac_objext` in
  5574. *ELF-32*)
  5575. HPUX_IA64_MODE="32"
  5576. ;;
  5577. *ELF-64*)
  5578. HPUX_IA64_MODE="64"
  5579. ;;
  5580. esac
  5581. fi
  5582. rm -rf conftest*
  5583. ;;
  5584. *-*-irix6*)
  5585. # Find out which ABI we are using.
  5586. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5587. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5588. (eval $ac_compile) 2>&5
  5589. ac_status=$?
  5590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5591. test $ac_status = 0; }; then
  5592. if test "$lt_cv_prog_gnu_ld" = yes; then
  5593. case `/usr/bin/file conftest.$ac_objext` in
  5594. *32-bit*)
  5595. LD="${LD-ld} -melf32bsmip"
  5596. ;;
  5597. *N32*)
  5598. LD="${LD-ld} -melf32bmipn32"
  5599. ;;
  5600. *64-bit*)
  5601. LD="${LD-ld} -melf64bmip"
  5602. ;;
  5603. esac
  5604. else
  5605. case `/usr/bin/file conftest.$ac_objext` in
  5606. *32-bit*)
  5607. LD="${LD-ld} -32"
  5608. ;;
  5609. *N32*)
  5610. LD="${LD-ld} -n32"
  5611. ;;
  5612. *64-bit*)
  5613. LD="${LD-ld} -64"
  5614. ;;
  5615. esac
  5616. fi
  5617. fi
  5618. rm -rf conftest*
  5619. ;;
  5620. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5621. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5622. # Find out which ABI we are using.
  5623. echo 'int i;' > conftest.$ac_ext
  5624. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5625. (eval $ac_compile) 2>&5
  5626. ac_status=$?
  5627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5628. test $ac_status = 0; }; then
  5629. case `/usr/bin/file conftest.o` in
  5630. *32-bit*)
  5631. case $host in
  5632. x86_64-*kfreebsd*-gnu)
  5633. LD="${LD-ld} -m elf_i386_fbsd"
  5634. ;;
  5635. x86_64-*linux*)
  5636. LD="${LD-ld} -m elf_i386"
  5637. ;;
  5638. ppc64-*linux*|powerpc64-*linux*)
  5639. LD="${LD-ld} -m elf32ppclinux"
  5640. ;;
  5641. s390x-*linux*)
  5642. LD="${LD-ld} -m elf_s390"
  5643. ;;
  5644. sparc64-*linux*)
  5645. LD="${LD-ld} -m elf32_sparc"
  5646. ;;
  5647. esac
  5648. ;;
  5649. *64-bit*)
  5650. case $host in
  5651. x86_64-*kfreebsd*-gnu)
  5652. LD="${LD-ld} -m elf_x86_64_fbsd"
  5653. ;;
  5654. x86_64-*linux*)
  5655. LD="${LD-ld} -m elf_x86_64"
  5656. ;;
  5657. ppc*-*linux*|powerpc*-*linux*)
  5658. LD="${LD-ld} -m elf64ppc"
  5659. ;;
  5660. s390*-*linux*|s390*-*tpf*)
  5661. LD="${LD-ld} -m elf64_s390"
  5662. ;;
  5663. sparc*-*linux*)
  5664. LD="${LD-ld} -m elf64_sparc"
  5665. ;;
  5666. esac
  5667. ;;
  5668. esac
  5669. fi
  5670. rm -rf conftest*
  5671. ;;
  5672. *-*-sco3.2v5*)
  5673. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5674. SAVE_CFLAGS="$CFLAGS"
  5675. CFLAGS="$CFLAGS -belf"
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5677. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5678. if ${lt_cv_cc_needs_belf+:} false; then :
  5679. $as_echo_n "(cached) " >&6
  5680. else
  5681. ac_ext=c
  5682. ac_cpp='$CPP $CPPFLAGS'
  5683. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5684. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5685. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5687. /* end confdefs.h. */
  5688. int
  5689. main ()
  5690. {
  5691. ;
  5692. return 0;
  5693. }
  5694. _ACEOF
  5695. if ac_fn_c_try_link "$LINENO"; then :
  5696. lt_cv_cc_needs_belf=yes
  5697. else
  5698. lt_cv_cc_needs_belf=no
  5699. fi
  5700. rm -f core conftest.err conftest.$ac_objext \
  5701. conftest$ac_exeext conftest.$ac_ext
  5702. ac_ext=c
  5703. ac_cpp='$CPP $CPPFLAGS'
  5704. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5705. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5706. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5707. fi
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5709. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5710. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5711. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5712. CFLAGS="$SAVE_CFLAGS"
  5713. fi
  5714. ;;
  5715. *-*solaris*)
  5716. # Find out which ABI we are using.
  5717. echo 'int i;' > conftest.$ac_ext
  5718. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5719. (eval $ac_compile) 2>&5
  5720. ac_status=$?
  5721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5722. test $ac_status = 0; }; then
  5723. case `/usr/bin/file conftest.o` in
  5724. *64-bit*)
  5725. case $lt_cv_prog_gnu_ld in
  5726. yes*)
  5727. case $host in
  5728. i?86-*-solaris*)
  5729. LD="${LD-ld} -m elf_x86_64"
  5730. ;;
  5731. sparc*-*-solaris*)
  5732. LD="${LD-ld} -m elf64_sparc"
  5733. ;;
  5734. esac
  5735. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5736. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5737. LD="${LD-ld}_sol2"
  5738. fi
  5739. ;;
  5740. *)
  5741. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5742. LD="${LD-ld} -64"
  5743. fi
  5744. ;;
  5745. esac
  5746. ;;
  5747. esac
  5748. fi
  5749. rm -rf conftest*
  5750. ;;
  5751. esac
  5752. need_locks="$enable_libtool_lock"
  5753. if test -n "$ac_tool_prefix"; then
  5754. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5755. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5757. $as_echo_n "checking for $ac_word... " >&6; }
  5758. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5759. $as_echo_n "(cached) " >&6
  5760. else
  5761. if test -n "$MANIFEST_TOOL"; then
  5762. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5763. else
  5764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5765. for as_dir in $PATH
  5766. do
  5767. IFS=$as_save_IFS
  5768. test -z "$as_dir" && as_dir=.
  5769. for ac_exec_ext in '' $ac_executable_extensions; do
  5770. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5771. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5773. break 2
  5774. fi
  5775. done
  5776. done
  5777. IFS=$as_save_IFS
  5778. fi
  5779. fi
  5780. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5781. if test -n "$MANIFEST_TOOL"; then
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5783. $as_echo "$MANIFEST_TOOL" >&6; }
  5784. else
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5786. $as_echo "no" >&6; }
  5787. fi
  5788. fi
  5789. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5790. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5791. # Extract the first word of "mt", so it can be a program name with args.
  5792. set dummy mt; ac_word=$2
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5794. $as_echo_n "checking for $ac_word... " >&6; }
  5795. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5796. $as_echo_n "(cached) " >&6
  5797. else
  5798. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5799. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5800. else
  5801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5802. for as_dir in $PATH
  5803. do
  5804. IFS=$as_save_IFS
  5805. test -z "$as_dir" && as_dir=.
  5806. for ac_exec_ext in '' $ac_executable_extensions; do
  5807. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5808. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5810. break 2
  5811. fi
  5812. done
  5813. done
  5814. IFS=$as_save_IFS
  5815. fi
  5816. fi
  5817. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5818. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5820. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5821. else
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5823. $as_echo "no" >&6; }
  5824. fi
  5825. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5826. MANIFEST_TOOL=":"
  5827. else
  5828. case $cross_compiling:$ac_tool_warned in
  5829. yes:)
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5831. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5832. ac_tool_warned=yes ;;
  5833. esac
  5834. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5835. fi
  5836. else
  5837. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5838. fi
  5839. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5841. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5842. if ${lt_cv_path_mainfest_tool+:} false; then :
  5843. $as_echo_n "(cached) " >&6
  5844. else
  5845. lt_cv_path_mainfest_tool=no
  5846. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5847. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5848. cat conftest.err >&5
  5849. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5850. lt_cv_path_mainfest_tool=yes
  5851. fi
  5852. rm -f conftest*
  5853. fi
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5855. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5856. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5857. MANIFEST_TOOL=:
  5858. fi
  5859. case $host_os in
  5860. rhapsody* | darwin*)
  5861. if test -n "$ac_tool_prefix"; then
  5862. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5863. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5865. $as_echo_n "checking for $ac_word... " >&6; }
  5866. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5867. $as_echo_n "(cached) " >&6
  5868. else
  5869. if test -n "$DSYMUTIL"; then
  5870. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5871. else
  5872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5873. for as_dir in $PATH
  5874. do
  5875. IFS=$as_save_IFS
  5876. test -z "$as_dir" && as_dir=.
  5877. for ac_exec_ext in '' $ac_executable_extensions; do
  5878. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5879. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5881. break 2
  5882. fi
  5883. done
  5884. done
  5885. IFS=$as_save_IFS
  5886. fi
  5887. fi
  5888. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5889. if test -n "$DSYMUTIL"; then
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5891. $as_echo "$DSYMUTIL" >&6; }
  5892. else
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5894. $as_echo "no" >&6; }
  5895. fi
  5896. fi
  5897. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5898. ac_ct_DSYMUTIL=$DSYMUTIL
  5899. # Extract the first word of "dsymutil", so it can be a program name with args.
  5900. set dummy dsymutil; ac_word=$2
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5902. $as_echo_n "checking for $ac_word... " >&6; }
  5903. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5904. $as_echo_n "(cached) " >&6
  5905. else
  5906. if test -n "$ac_ct_DSYMUTIL"; then
  5907. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5908. else
  5909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5910. for as_dir in $PATH
  5911. do
  5912. IFS=$as_save_IFS
  5913. test -z "$as_dir" && as_dir=.
  5914. for ac_exec_ext in '' $ac_executable_extensions; do
  5915. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5916. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5918. break 2
  5919. fi
  5920. done
  5921. done
  5922. IFS=$as_save_IFS
  5923. fi
  5924. fi
  5925. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5926. if test -n "$ac_ct_DSYMUTIL"; then
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5928. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5929. else
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5931. $as_echo "no" >&6; }
  5932. fi
  5933. if test "x$ac_ct_DSYMUTIL" = x; then
  5934. DSYMUTIL=":"
  5935. else
  5936. case $cross_compiling:$ac_tool_warned in
  5937. yes:)
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5939. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5940. ac_tool_warned=yes ;;
  5941. esac
  5942. DSYMUTIL=$ac_ct_DSYMUTIL
  5943. fi
  5944. else
  5945. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5946. fi
  5947. if test -n "$ac_tool_prefix"; then
  5948. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5949. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5951. $as_echo_n "checking for $ac_word... " >&6; }
  5952. if ${ac_cv_prog_NMEDIT+:} false; then :
  5953. $as_echo_n "(cached) " >&6
  5954. else
  5955. if test -n "$NMEDIT"; then
  5956. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5957. else
  5958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5959. for as_dir in $PATH
  5960. do
  5961. IFS=$as_save_IFS
  5962. test -z "$as_dir" && as_dir=.
  5963. for ac_exec_ext in '' $ac_executable_extensions; do
  5964. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5965. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5967. break 2
  5968. fi
  5969. done
  5970. done
  5971. IFS=$as_save_IFS
  5972. fi
  5973. fi
  5974. NMEDIT=$ac_cv_prog_NMEDIT
  5975. if test -n "$NMEDIT"; then
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5977. $as_echo "$NMEDIT" >&6; }
  5978. else
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5980. $as_echo "no" >&6; }
  5981. fi
  5982. fi
  5983. if test -z "$ac_cv_prog_NMEDIT"; then
  5984. ac_ct_NMEDIT=$NMEDIT
  5985. # Extract the first word of "nmedit", so it can be a program name with args.
  5986. set dummy nmedit; ac_word=$2
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5988. $as_echo_n "checking for $ac_word... " >&6; }
  5989. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5990. $as_echo_n "(cached) " >&6
  5991. else
  5992. if test -n "$ac_ct_NMEDIT"; then
  5993. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5994. else
  5995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5996. for as_dir in $PATH
  5997. do
  5998. IFS=$as_save_IFS
  5999. test -z "$as_dir" && as_dir=.
  6000. for ac_exec_ext in '' $ac_executable_extensions; do
  6001. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6002. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6003. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6004. break 2
  6005. fi
  6006. done
  6007. done
  6008. IFS=$as_save_IFS
  6009. fi
  6010. fi
  6011. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6012. if test -n "$ac_ct_NMEDIT"; then
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6014. $as_echo "$ac_ct_NMEDIT" >&6; }
  6015. else
  6016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6017. $as_echo "no" >&6; }
  6018. fi
  6019. if test "x$ac_ct_NMEDIT" = x; then
  6020. NMEDIT=":"
  6021. else
  6022. case $cross_compiling:$ac_tool_warned in
  6023. yes:)
  6024. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6025. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6026. ac_tool_warned=yes ;;
  6027. esac
  6028. NMEDIT=$ac_ct_NMEDIT
  6029. fi
  6030. else
  6031. NMEDIT="$ac_cv_prog_NMEDIT"
  6032. fi
  6033. if test -n "$ac_tool_prefix"; then
  6034. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6035. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6037. $as_echo_n "checking for $ac_word... " >&6; }
  6038. if ${ac_cv_prog_LIPO+:} false; then :
  6039. $as_echo_n "(cached) " >&6
  6040. else
  6041. if test -n "$LIPO"; then
  6042. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6043. else
  6044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6045. for as_dir in $PATH
  6046. do
  6047. IFS=$as_save_IFS
  6048. test -z "$as_dir" && as_dir=.
  6049. for ac_exec_ext in '' $ac_executable_extensions; do
  6050. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6051. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6053. break 2
  6054. fi
  6055. done
  6056. done
  6057. IFS=$as_save_IFS
  6058. fi
  6059. fi
  6060. LIPO=$ac_cv_prog_LIPO
  6061. if test -n "$LIPO"; then
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6063. $as_echo "$LIPO" >&6; }
  6064. else
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6066. $as_echo "no" >&6; }
  6067. fi
  6068. fi
  6069. if test -z "$ac_cv_prog_LIPO"; then
  6070. ac_ct_LIPO=$LIPO
  6071. # Extract the first word of "lipo", so it can be a program name with args.
  6072. set dummy lipo; ac_word=$2
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6074. $as_echo_n "checking for $ac_word... " >&6; }
  6075. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6076. $as_echo_n "(cached) " >&6
  6077. else
  6078. if test -n "$ac_ct_LIPO"; then
  6079. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6080. else
  6081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6082. for as_dir in $PATH
  6083. do
  6084. IFS=$as_save_IFS
  6085. test -z "$as_dir" && as_dir=.
  6086. for ac_exec_ext in '' $ac_executable_extensions; do
  6087. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6088. ac_cv_prog_ac_ct_LIPO="lipo"
  6089. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6090. break 2
  6091. fi
  6092. done
  6093. done
  6094. IFS=$as_save_IFS
  6095. fi
  6096. fi
  6097. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6098. if test -n "$ac_ct_LIPO"; then
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6100. $as_echo "$ac_ct_LIPO" >&6; }
  6101. else
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6103. $as_echo "no" >&6; }
  6104. fi
  6105. if test "x$ac_ct_LIPO" = x; then
  6106. LIPO=":"
  6107. else
  6108. case $cross_compiling:$ac_tool_warned in
  6109. yes:)
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6111. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6112. ac_tool_warned=yes ;;
  6113. esac
  6114. LIPO=$ac_ct_LIPO
  6115. fi
  6116. else
  6117. LIPO="$ac_cv_prog_LIPO"
  6118. fi
  6119. if test -n "$ac_tool_prefix"; then
  6120. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6121. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6123. $as_echo_n "checking for $ac_word... " >&6; }
  6124. if ${ac_cv_prog_OTOOL+:} false; then :
  6125. $as_echo_n "(cached) " >&6
  6126. else
  6127. if test -n "$OTOOL"; then
  6128. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6129. else
  6130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6131. for as_dir in $PATH
  6132. do
  6133. IFS=$as_save_IFS
  6134. test -z "$as_dir" && as_dir=.
  6135. for ac_exec_ext in '' $ac_executable_extensions; do
  6136. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6137. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6138. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6139. break 2
  6140. fi
  6141. done
  6142. done
  6143. IFS=$as_save_IFS
  6144. fi
  6145. fi
  6146. OTOOL=$ac_cv_prog_OTOOL
  6147. if test -n "$OTOOL"; then
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6149. $as_echo "$OTOOL" >&6; }
  6150. else
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6152. $as_echo "no" >&6; }
  6153. fi
  6154. fi
  6155. if test -z "$ac_cv_prog_OTOOL"; then
  6156. ac_ct_OTOOL=$OTOOL
  6157. # Extract the first word of "otool", so it can be a program name with args.
  6158. set dummy otool; ac_word=$2
  6159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6160. $as_echo_n "checking for $ac_word... " >&6; }
  6161. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6162. $as_echo_n "(cached) " >&6
  6163. else
  6164. if test -n "$ac_ct_OTOOL"; then
  6165. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6166. else
  6167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6168. for as_dir in $PATH
  6169. do
  6170. IFS=$as_save_IFS
  6171. test -z "$as_dir" && as_dir=.
  6172. for ac_exec_ext in '' $ac_executable_extensions; do
  6173. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6174. ac_cv_prog_ac_ct_OTOOL="otool"
  6175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6176. break 2
  6177. fi
  6178. done
  6179. done
  6180. IFS=$as_save_IFS
  6181. fi
  6182. fi
  6183. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6184. if test -n "$ac_ct_OTOOL"; then
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6186. $as_echo "$ac_ct_OTOOL" >&6; }
  6187. else
  6188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6189. $as_echo "no" >&6; }
  6190. fi
  6191. if test "x$ac_ct_OTOOL" = x; then
  6192. OTOOL=":"
  6193. else
  6194. case $cross_compiling:$ac_tool_warned in
  6195. yes:)
  6196. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6197. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6198. ac_tool_warned=yes ;;
  6199. esac
  6200. OTOOL=$ac_ct_OTOOL
  6201. fi
  6202. else
  6203. OTOOL="$ac_cv_prog_OTOOL"
  6204. fi
  6205. if test -n "$ac_tool_prefix"; then
  6206. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6207. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6209. $as_echo_n "checking for $ac_word... " >&6; }
  6210. if ${ac_cv_prog_OTOOL64+:} false; then :
  6211. $as_echo_n "(cached) " >&6
  6212. else
  6213. if test -n "$OTOOL64"; then
  6214. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6215. else
  6216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6217. for as_dir in $PATH
  6218. do
  6219. IFS=$as_save_IFS
  6220. test -z "$as_dir" && as_dir=.
  6221. for ac_exec_ext in '' $ac_executable_extensions; do
  6222. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6223. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6224. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6225. break 2
  6226. fi
  6227. done
  6228. done
  6229. IFS=$as_save_IFS
  6230. fi
  6231. fi
  6232. OTOOL64=$ac_cv_prog_OTOOL64
  6233. if test -n "$OTOOL64"; then
  6234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6235. $as_echo "$OTOOL64" >&6; }
  6236. else
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6238. $as_echo "no" >&6; }
  6239. fi
  6240. fi
  6241. if test -z "$ac_cv_prog_OTOOL64"; then
  6242. ac_ct_OTOOL64=$OTOOL64
  6243. # Extract the first word of "otool64", so it can be a program name with args.
  6244. set dummy otool64; ac_word=$2
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6246. $as_echo_n "checking for $ac_word... " >&6; }
  6247. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6248. $as_echo_n "(cached) " >&6
  6249. else
  6250. if test -n "$ac_ct_OTOOL64"; then
  6251. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6252. else
  6253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6254. for as_dir in $PATH
  6255. do
  6256. IFS=$as_save_IFS
  6257. test -z "$as_dir" && as_dir=.
  6258. for ac_exec_ext in '' $ac_executable_extensions; do
  6259. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6260. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6262. break 2
  6263. fi
  6264. done
  6265. done
  6266. IFS=$as_save_IFS
  6267. fi
  6268. fi
  6269. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6270. if test -n "$ac_ct_OTOOL64"; then
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6272. $as_echo "$ac_ct_OTOOL64" >&6; }
  6273. else
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6275. $as_echo "no" >&6; }
  6276. fi
  6277. if test "x$ac_ct_OTOOL64" = x; then
  6278. OTOOL64=":"
  6279. else
  6280. case $cross_compiling:$ac_tool_warned in
  6281. yes:)
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6283. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6284. ac_tool_warned=yes ;;
  6285. esac
  6286. OTOOL64=$ac_ct_OTOOL64
  6287. fi
  6288. else
  6289. OTOOL64="$ac_cv_prog_OTOOL64"
  6290. fi
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6292. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6293. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6294. $as_echo_n "(cached) " >&6
  6295. else
  6296. lt_cv_apple_cc_single_mod=no
  6297. if test -z "${LT_MULTI_MODULE}"; then
  6298. # By default we will add the -single_module flag. You can override
  6299. # by either setting the environment variable LT_MULTI_MODULE
  6300. # non-empty at configure time, or by adding -multi_module to the
  6301. # link flags.
  6302. rm -rf libconftest.dylib*
  6303. echo "int foo(void){return 1;}" > conftest.c
  6304. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6305. -dynamiclib -Wl,-single_module conftest.c" >&5
  6306. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6307. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6308. _lt_result=$?
  6309. # If there is a non-empty error log, and "single_module"
  6310. # appears in it, assume the flag caused a linker warning
  6311. if test -s conftest.err && $GREP single_module conftest.err; then
  6312. cat conftest.err >&5
  6313. # Otherwise, if the output was created with a 0 exit code from
  6314. # the compiler, it worked.
  6315. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6316. lt_cv_apple_cc_single_mod=yes
  6317. else
  6318. cat conftest.err >&5
  6319. fi
  6320. rm -rf libconftest.dylib*
  6321. rm -f conftest.*
  6322. fi
  6323. fi
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6325. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6327. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6328. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6329. $as_echo_n "(cached) " >&6
  6330. else
  6331. lt_cv_ld_exported_symbols_list=no
  6332. save_LDFLAGS=$LDFLAGS
  6333. echo "_main" > conftest.sym
  6334. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6336. /* end confdefs.h. */
  6337. int
  6338. main ()
  6339. {
  6340. ;
  6341. return 0;
  6342. }
  6343. _ACEOF
  6344. if ac_fn_c_try_link "$LINENO"; then :
  6345. lt_cv_ld_exported_symbols_list=yes
  6346. else
  6347. lt_cv_ld_exported_symbols_list=no
  6348. fi
  6349. rm -f core conftest.err conftest.$ac_objext \
  6350. conftest$ac_exeext conftest.$ac_ext
  6351. LDFLAGS="$save_LDFLAGS"
  6352. fi
  6353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6354. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6356. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6357. if ${lt_cv_ld_force_load+:} false; then :
  6358. $as_echo_n "(cached) " >&6
  6359. else
  6360. lt_cv_ld_force_load=no
  6361. cat > conftest.c << _LT_EOF
  6362. int forced_loaded() { return 2;}
  6363. _LT_EOF
  6364. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6365. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6366. echo "$AR cru libconftest.a conftest.o" >&5
  6367. $AR cru libconftest.a conftest.o 2>&5
  6368. echo "$RANLIB libconftest.a" >&5
  6369. $RANLIB libconftest.a 2>&5
  6370. cat > conftest.c << _LT_EOF
  6371. int main() { return 0;}
  6372. _LT_EOF
  6373. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6374. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6375. _lt_result=$?
  6376. if test -s conftest.err && $GREP force_load conftest.err; then
  6377. cat conftest.err >&5
  6378. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6379. lt_cv_ld_force_load=yes
  6380. else
  6381. cat conftest.err >&5
  6382. fi
  6383. rm -f conftest.err libconftest.a conftest conftest.c
  6384. rm -rf conftest.dSYM
  6385. fi
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6387. $as_echo "$lt_cv_ld_force_load" >&6; }
  6388. case $host_os in
  6389. rhapsody* | darwin1.[012])
  6390. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6391. darwin1.*)
  6392. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6393. darwin*) # darwin 5.x on
  6394. # if running on 10.5 or later, the deployment target defaults
  6395. # to the OS version, if on x86, and 10.4, the deployment
  6396. # target defaults to 10.4. Don't you love it?
  6397. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6398. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6399. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6400. 10.[012]*)
  6401. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6402. 10.*)
  6403. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6404. esac
  6405. ;;
  6406. esac
  6407. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6408. _lt_dar_single_mod='$single_module'
  6409. fi
  6410. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6411. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6412. else
  6413. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6414. fi
  6415. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6416. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6417. else
  6418. _lt_dsymutil=
  6419. fi
  6420. ;;
  6421. esac
  6422. ac_ext=c
  6423. ac_cpp='$CPP $CPPFLAGS'
  6424. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6425. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6426. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6428. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6429. # On Suns, sometimes $CPP names a directory.
  6430. if test -n "$CPP" && test -d "$CPP"; then
  6431. CPP=
  6432. fi
  6433. if test -z "$CPP"; then
  6434. if ${ac_cv_prog_CPP+:} false; then :
  6435. $as_echo_n "(cached) " >&6
  6436. else
  6437. # Double quotes because CPP needs to be expanded
  6438. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6439. do
  6440. ac_preproc_ok=false
  6441. for ac_c_preproc_warn_flag in '' yes
  6442. do
  6443. # Use a header file that comes with gcc, so configuring glibc
  6444. # with a fresh cross-compiler works.
  6445. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6446. # <limits.h> exists even on freestanding compilers.
  6447. # On the NeXT, cc -E runs the code through the compiler's parser,
  6448. # not just through cpp. "Syntax error" is here to catch this case.
  6449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6450. /* end confdefs.h. */
  6451. #ifdef __STDC__
  6452. # include <limits.h>
  6453. #else
  6454. # include <assert.h>
  6455. #endif
  6456. Syntax error
  6457. _ACEOF
  6458. if ac_fn_c_try_cpp "$LINENO"; then :
  6459. else
  6460. # Broken: fails on valid input.
  6461. continue
  6462. fi
  6463. rm -f conftest.err conftest.i conftest.$ac_ext
  6464. # OK, works on sane cases. Now check whether nonexistent headers
  6465. # can be detected and how.
  6466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6467. /* end confdefs.h. */
  6468. #include <ac_nonexistent.h>
  6469. _ACEOF
  6470. if ac_fn_c_try_cpp "$LINENO"; then :
  6471. # Broken: success on invalid input.
  6472. continue
  6473. else
  6474. # Passes both tests.
  6475. ac_preproc_ok=:
  6476. break
  6477. fi
  6478. rm -f conftest.err conftest.i conftest.$ac_ext
  6479. done
  6480. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6481. rm -f conftest.i conftest.err conftest.$ac_ext
  6482. if $ac_preproc_ok; then :
  6483. break
  6484. fi
  6485. done
  6486. ac_cv_prog_CPP=$CPP
  6487. fi
  6488. CPP=$ac_cv_prog_CPP
  6489. else
  6490. ac_cv_prog_CPP=$CPP
  6491. fi
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6493. $as_echo "$CPP" >&6; }
  6494. ac_preproc_ok=false
  6495. for ac_c_preproc_warn_flag in '' yes
  6496. do
  6497. # Use a header file that comes with gcc, so configuring glibc
  6498. # with a fresh cross-compiler works.
  6499. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6500. # <limits.h> exists even on freestanding compilers.
  6501. # On the NeXT, cc -E runs the code through the compiler's parser,
  6502. # not just through cpp. "Syntax error" is here to catch this case.
  6503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6504. /* end confdefs.h. */
  6505. #ifdef __STDC__
  6506. # include <limits.h>
  6507. #else
  6508. # include <assert.h>
  6509. #endif
  6510. Syntax error
  6511. _ACEOF
  6512. if ac_fn_c_try_cpp "$LINENO"; then :
  6513. else
  6514. # Broken: fails on valid input.
  6515. continue
  6516. fi
  6517. rm -f conftest.err conftest.i conftest.$ac_ext
  6518. # OK, works on sane cases. Now check whether nonexistent headers
  6519. # can be detected and how.
  6520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6521. /* end confdefs.h. */
  6522. #include <ac_nonexistent.h>
  6523. _ACEOF
  6524. if ac_fn_c_try_cpp "$LINENO"; then :
  6525. # Broken: success on invalid input.
  6526. continue
  6527. else
  6528. # Passes both tests.
  6529. ac_preproc_ok=:
  6530. break
  6531. fi
  6532. rm -f conftest.err conftest.i conftest.$ac_ext
  6533. done
  6534. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6535. rm -f conftest.i conftest.err conftest.$ac_ext
  6536. if $ac_preproc_ok; then :
  6537. else
  6538. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6539. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6540. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6541. See \`config.log' for more details" "$LINENO" 5; }
  6542. fi
  6543. ac_ext=c
  6544. ac_cpp='$CPP $CPPFLAGS'
  6545. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6546. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6547. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6549. $as_echo_n "checking for ANSI C header files... " >&6; }
  6550. if ${ac_cv_header_stdc+:} false; then :
  6551. $as_echo_n "(cached) " >&6
  6552. else
  6553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6554. /* end confdefs.h. */
  6555. #include <stdlib.h>
  6556. #include <stdarg.h>
  6557. #include <string.h>
  6558. #include <float.h>
  6559. int
  6560. main ()
  6561. {
  6562. ;
  6563. return 0;
  6564. }
  6565. _ACEOF
  6566. if ac_fn_c_try_compile "$LINENO"; then :
  6567. ac_cv_header_stdc=yes
  6568. else
  6569. ac_cv_header_stdc=no
  6570. fi
  6571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6572. if test $ac_cv_header_stdc = yes; then
  6573. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6575. /* end confdefs.h. */
  6576. #include <string.h>
  6577. _ACEOF
  6578. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6579. $EGREP "memchr" >/dev/null 2>&1; then :
  6580. else
  6581. ac_cv_header_stdc=no
  6582. fi
  6583. rm -f conftest*
  6584. fi
  6585. if test $ac_cv_header_stdc = yes; then
  6586. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6588. /* end confdefs.h. */
  6589. #include <stdlib.h>
  6590. _ACEOF
  6591. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6592. $EGREP "free" >/dev/null 2>&1; then :
  6593. else
  6594. ac_cv_header_stdc=no
  6595. fi
  6596. rm -f conftest*
  6597. fi
  6598. if test $ac_cv_header_stdc = yes; then
  6599. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6600. if test "$cross_compiling" = yes; then :
  6601. :
  6602. else
  6603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6604. /* end confdefs.h. */
  6605. #include <ctype.h>
  6606. #include <stdlib.h>
  6607. #if ((' ' & 0x0FF) == 0x020)
  6608. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6609. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6610. #else
  6611. # define ISLOWER(c) \
  6612. (('a' <= (c) && (c) <= 'i') \
  6613. || ('j' <= (c) && (c) <= 'r') \
  6614. || ('s' <= (c) && (c) <= 'z'))
  6615. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6616. #endif
  6617. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6618. int
  6619. main ()
  6620. {
  6621. int i;
  6622. for (i = 0; i < 256; i++)
  6623. if (XOR (islower (i), ISLOWER (i))
  6624. || toupper (i) != TOUPPER (i))
  6625. return 2;
  6626. return 0;
  6627. }
  6628. _ACEOF
  6629. if ac_fn_c_try_run "$LINENO"; then :
  6630. else
  6631. ac_cv_header_stdc=no
  6632. fi
  6633. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6634. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6635. fi
  6636. fi
  6637. fi
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6639. $as_echo "$ac_cv_header_stdc" >&6; }
  6640. if test $ac_cv_header_stdc = yes; then
  6641. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6642. fi
  6643. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6644. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6645. inttypes.h stdint.h unistd.h
  6646. do :
  6647. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6648. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6649. "
  6650. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6651. cat >>confdefs.h <<_ACEOF
  6652. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6653. _ACEOF
  6654. fi
  6655. done
  6656. for ac_header in dlfcn.h
  6657. do :
  6658. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6659. "
  6660. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6661. cat >>confdefs.h <<_ACEOF
  6662. #define HAVE_DLFCN_H 1
  6663. _ACEOF
  6664. fi
  6665. done
  6666. # Set options
  6667. enable_dlopen=no
  6668. enable_win32_dll=no
  6669. # Check whether --enable-shared was given.
  6670. if test "${enable_shared+set}" = set; then :
  6671. enableval=$enable_shared; p=${PACKAGE-default}
  6672. case $enableval in
  6673. yes) enable_shared=yes ;;
  6674. no) enable_shared=no ;;
  6675. *)
  6676. enable_shared=no
  6677. # Look at the argument we got. We use all the common list separators.
  6678. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6679. for pkg in $enableval; do
  6680. IFS="$lt_save_ifs"
  6681. if test "X$pkg" = "X$p"; then
  6682. enable_shared=yes
  6683. fi
  6684. done
  6685. IFS="$lt_save_ifs"
  6686. ;;
  6687. esac
  6688. else
  6689. enable_shared=yes
  6690. fi
  6691. # Check whether --enable-static was given.
  6692. if test "${enable_static+set}" = set; then :
  6693. enableval=$enable_static; p=${PACKAGE-default}
  6694. case $enableval in
  6695. yes) enable_static=yes ;;
  6696. no) enable_static=no ;;
  6697. *)
  6698. enable_static=no
  6699. # Look at the argument we got. We use all the common list separators.
  6700. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6701. for pkg in $enableval; do
  6702. IFS="$lt_save_ifs"
  6703. if test "X$pkg" = "X$p"; then
  6704. enable_static=yes
  6705. fi
  6706. done
  6707. IFS="$lt_save_ifs"
  6708. ;;
  6709. esac
  6710. else
  6711. enable_static=yes
  6712. fi
  6713. # Check whether --with-pic was given.
  6714. if test "${with_pic+set}" = set; then :
  6715. withval=$with_pic; lt_p=${PACKAGE-default}
  6716. case $withval in
  6717. yes|no) pic_mode=$withval ;;
  6718. *)
  6719. pic_mode=default
  6720. # Look at the argument we got. We use all the common list separators.
  6721. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6722. for lt_pkg in $withval; do
  6723. IFS="$lt_save_ifs"
  6724. if test "X$lt_pkg" = "X$lt_p"; then
  6725. pic_mode=yes
  6726. fi
  6727. done
  6728. IFS="$lt_save_ifs"
  6729. ;;
  6730. esac
  6731. else
  6732. pic_mode=default
  6733. fi
  6734. test -z "$pic_mode" && pic_mode=default
  6735. # Check whether --enable-fast-install was given.
  6736. if test "${enable_fast_install+set}" = set; then :
  6737. enableval=$enable_fast_install; p=${PACKAGE-default}
  6738. case $enableval in
  6739. yes) enable_fast_install=yes ;;
  6740. no) enable_fast_install=no ;;
  6741. *)
  6742. enable_fast_install=no
  6743. # Look at the argument we got. We use all the common list separators.
  6744. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6745. for pkg in $enableval; do
  6746. IFS="$lt_save_ifs"
  6747. if test "X$pkg" = "X$p"; then
  6748. enable_fast_install=yes
  6749. fi
  6750. done
  6751. IFS="$lt_save_ifs"
  6752. ;;
  6753. esac
  6754. else
  6755. enable_fast_install=yes
  6756. fi
  6757. # This can be used to rebuild libtool when needed
  6758. LIBTOOL_DEPS="$ltmain"
  6759. # Always use our own libtool.
  6760. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6761. test -z "$LN_S" && LN_S="ln -s"
  6762. if test -n "${ZSH_VERSION+set}" ; then
  6763. setopt NO_GLOB_SUBST
  6764. fi
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6766. $as_echo_n "checking for objdir... " >&6; }
  6767. if ${lt_cv_objdir+:} false; then :
  6768. $as_echo_n "(cached) " >&6
  6769. else
  6770. rm -f .libs 2>/dev/null
  6771. mkdir .libs 2>/dev/null
  6772. if test -d .libs; then
  6773. lt_cv_objdir=.libs
  6774. else
  6775. # MS-DOS does not allow filenames that begin with a dot.
  6776. lt_cv_objdir=_libs
  6777. fi
  6778. rmdir .libs 2>/dev/null
  6779. fi
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6781. $as_echo "$lt_cv_objdir" >&6; }
  6782. objdir=$lt_cv_objdir
  6783. cat >>confdefs.h <<_ACEOF
  6784. #define LT_OBJDIR "$lt_cv_objdir/"
  6785. _ACEOF
  6786. case $host_os in
  6787. aix3*)
  6788. # AIX sometimes has problems with the GCC collect2 program. For some
  6789. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6790. # vanish in a puff of smoke.
  6791. if test "X${COLLECT_NAMES+set}" != Xset; then
  6792. COLLECT_NAMES=
  6793. export COLLECT_NAMES
  6794. fi
  6795. ;;
  6796. esac
  6797. # Global variables:
  6798. ofile=libtool
  6799. can_build_shared=yes
  6800. # All known linkers require a `.a' archive for static linking (except MSVC,
  6801. # which needs '.lib').
  6802. libext=a
  6803. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6804. old_CC="$CC"
  6805. old_CFLAGS="$CFLAGS"
  6806. # Set sane defaults for various variables
  6807. test -z "$CC" && CC=cc
  6808. test -z "$LTCC" && LTCC=$CC
  6809. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6810. test -z "$LD" && LD=ld
  6811. test -z "$ac_objext" && ac_objext=o
  6812. for cc_temp in $compiler""; do
  6813. case $cc_temp in
  6814. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6815. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6816. \-*) ;;
  6817. *) break;;
  6818. esac
  6819. done
  6820. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6821. # Only perform the check for file, if the check method requires it
  6822. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6823. case $deplibs_check_method in
  6824. file_magic*)
  6825. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6827. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6828. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6829. $as_echo_n "(cached) " >&6
  6830. else
  6831. case $MAGIC_CMD in
  6832. [\\/*] | ?:[\\/]*)
  6833. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6834. ;;
  6835. *)
  6836. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6837. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6838. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6839. for ac_dir in $ac_dummy; do
  6840. IFS="$lt_save_ifs"
  6841. test -z "$ac_dir" && ac_dir=.
  6842. if test -f $ac_dir/${ac_tool_prefix}file; then
  6843. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6844. if test -n "$file_magic_test_file"; then
  6845. case $deplibs_check_method in
  6846. "file_magic "*)
  6847. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6848. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6849. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6850. $EGREP "$file_magic_regex" > /dev/null; then
  6851. :
  6852. else
  6853. cat <<_LT_EOF 1>&2
  6854. *** Warning: the command libtool uses to detect shared libraries,
  6855. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6856. *** The result is that libtool may fail to recognize shared libraries
  6857. *** as such. This will affect the creation of libtool libraries that
  6858. *** depend on shared libraries, but programs linked with such libtool
  6859. *** libraries will work regardless of this problem. Nevertheless, you
  6860. *** may want to report the problem to your system manager and/or to
  6861. *** bug-libtool@gnu.org
  6862. _LT_EOF
  6863. fi ;;
  6864. esac
  6865. fi
  6866. break
  6867. fi
  6868. done
  6869. IFS="$lt_save_ifs"
  6870. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6871. ;;
  6872. esac
  6873. fi
  6874. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6875. if test -n "$MAGIC_CMD"; then
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6877. $as_echo "$MAGIC_CMD" >&6; }
  6878. else
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6880. $as_echo "no" >&6; }
  6881. fi
  6882. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6883. if test -n "$ac_tool_prefix"; then
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6885. $as_echo_n "checking for file... " >&6; }
  6886. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6887. $as_echo_n "(cached) " >&6
  6888. else
  6889. case $MAGIC_CMD in
  6890. [\\/*] | ?:[\\/]*)
  6891. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6892. ;;
  6893. *)
  6894. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6895. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6896. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6897. for ac_dir in $ac_dummy; do
  6898. IFS="$lt_save_ifs"
  6899. test -z "$ac_dir" && ac_dir=.
  6900. if test -f $ac_dir/file; then
  6901. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6902. if test -n "$file_magic_test_file"; then
  6903. case $deplibs_check_method in
  6904. "file_magic "*)
  6905. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6906. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6907. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6908. $EGREP "$file_magic_regex" > /dev/null; then
  6909. :
  6910. else
  6911. cat <<_LT_EOF 1>&2
  6912. *** Warning: the command libtool uses to detect shared libraries,
  6913. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6914. *** The result is that libtool may fail to recognize shared libraries
  6915. *** as such. This will affect the creation of libtool libraries that
  6916. *** depend on shared libraries, but programs linked with such libtool
  6917. *** libraries will work regardless of this problem. Nevertheless, you
  6918. *** may want to report the problem to your system manager and/or to
  6919. *** bug-libtool@gnu.org
  6920. _LT_EOF
  6921. fi ;;
  6922. esac
  6923. fi
  6924. break
  6925. fi
  6926. done
  6927. IFS="$lt_save_ifs"
  6928. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6929. ;;
  6930. esac
  6931. fi
  6932. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6933. if test -n "$MAGIC_CMD"; then
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6935. $as_echo "$MAGIC_CMD" >&6; }
  6936. else
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6938. $as_echo "no" >&6; }
  6939. fi
  6940. else
  6941. MAGIC_CMD=:
  6942. fi
  6943. fi
  6944. fi
  6945. ;;
  6946. esac
  6947. # Use C for the default configuration in the libtool script
  6948. lt_save_CC="$CC"
  6949. ac_ext=c
  6950. ac_cpp='$CPP $CPPFLAGS'
  6951. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6952. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6953. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6954. # Source file extension for C test sources.
  6955. ac_ext=c
  6956. # Object file extension for compiled C test sources.
  6957. objext=o
  6958. objext=$objext
  6959. # Code to be used in simple compile tests
  6960. lt_simple_compile_test_code="int some_variable = 0;"
  6961. # Code to be used in simple link tests
  6962. lt_simple_link_test_code='int main(){return(0);}'
  6963. # If no C compiler was specified, use CC.
  6964. LTCC=${LTCC-"$CC"}
  6965. # If no C compiler flags were specified, use CFLAGS.
  6966. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6967. # Allow CC to be a program name with arguments.
  6968. compiler=$CC
  6969. # Save the default compiler, since it gets overwritten when the other
  6970. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6971. compiler_DEFAULT=$CC
  6972. # save warnings/boilerplate of simple test code
  6973. ac_outfile=conftest.$ac_objext
  6974. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6975. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6976. _lt_compiler_boilerplate=`cat conftest.err`
  6977. $RM conftest*
  6978. ac_outfile=conftest.$ac_objext
  6979. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6980. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6981. _lt_linker_boilerplate=`cat conftest.err`
  6982. $RM -r conftest*
  6983. if test -n "$compiler"; then
  6984. lt_prog_compiler_no_builtin_flag=
  6985. if test "$GCC" = yes; then
  6986. case $cc_basename in
  6987. nvcc*)
  6988. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6989. *)
  6990. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6991. esac
  6992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6993. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6994. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6995. $as_echo_n "(cached) " >&6
  6996. else
  6997. lt_cv_prog_compiler_rtti_exceptions=no
  6998. ac_outfile=conftest.$ac_objext
  6999. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7000. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7001. # Insert the option either (1) after the last *FLAGS variable, or
  7002. # (2) before a word containing "conftest.", or (3) at the end.
  7003. # Note that $ac_compile itself does not contain backslashes and begins
  7004. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7005. # The option is referenced via a variable to avoid confusing sed.
  7006. lt_compile=`echo "$ac_compile" | $SED \
  7007. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7008. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7009. -e 's:$: $lt_compiler_flag:'`
  7010. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7011. (eval "$lt_compile" 2>conftest.err)
  7012. ac_status=$?
  7013. cat conftest.err >&5
  7014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7015. if (exit $ac_status) && test -s "$ac_outfile"; then
  7016. # The compiler can only warn and ignore the option if not recognized
  7017. # So say no if there are warnings other than the usual output.
  7018. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7019. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7020. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7021. lt_cv_prog_compiler_rtti_exceptions=yes
  7022. fi
  7023. fi
  7024. $RM conftest*
  7025. fi
  7026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7027. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7028. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7029. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7030. else
  7031. :
  7032. fi
  7033. fi
  7034. lt_prog_compiler_wl=
  7035. lt_prog_compiler_pic=
  7036. lt_prog_compiler_static=
  7037. if test "$GCC" = yes; then
  7038. lt_prog_compiler_wl='-Wl,'
  7039. lt_prog_compiler_static='-static'
  7040. case $host_os in
  7041. aix*)
  7042. # All AIX code is PIC.
  7043. if test "$host_cpu" = ia64; then
  7044. # AIX 5 now supports IA64 processor
  7045. lt_prog_compiler_static='-Bstatic'
  7046. fi
  7047. ;;
  7048. amigaos*)
  7049. case $host_cpu in
  7050. powerpc)
  7051. # see comment about AmigaOS4 .so support
  7052. lt_prog_compiler_pic='-fPIC'
  7053. ;;
  7054. m68k)
  7055. # FIXME: we need at least 68020 code to build shared libraries, but
  7056. # adding the `-m68020' flag to GCC prevents building anything better,
  7057. # like `-m68040'.
  7058. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7059. ;;
  7060. esac
  7061. ;;
  7062. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7063. # PIC is the default for these OSes.
  7064. ;;
  7065. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7066. # This hack is so that the source file can tell whether it is being
  7067. # built for inclusion in a dll (and should export symbols for example).
  7068. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7069. # (--disable-auto-import) libraries
  7070. lt_prog_compiler_pic='-DDLL_EXPORT'
  7071. ;;
  7072. darwin* | rhapsody*)
  7073. # PIC is the default on this platform
  7074. # Common symbols not allowed in MH_DYLIB files
  7075. lt_prog_compiler_pic='-fno-common'
  7076. ;;
  7077. haiku*)
  7078. # PIC is the default for Haiku.
  7079. # The "-static" flag exists, but is broken.
  7080. lt_prog_compiler_static=
  7081. ;;
  7082. hpux*)
  7083. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7084. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7085. # sets the default TLS model and affects inlining.
  7086. case $host_cpu in
  7087. hppa*64*)
  7088. # +Z the default
  7089. ;;
  7090. *)
  7091. lt_prog_compiler_pic='-fPIC'
  7092. ;;
  7093. esac
  7094. ;;
  7095. interix[3-9]*)
  7096. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7097. # Instead, we relocate shared libraries at runtime.
  7098. ;;
  7099. msdosdjgpp*)
  7100. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7101. # on systems that don't support them.
  7102. lt_prog_compiler_can_build_shared=no
  7103. enable_shared=no
  7104. ;;
  7105. *nto* | *qnx*)
  7106. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7107. # it will coredump.
  7108. lt_prog_compiler_pic='-fPIC -shared'
  7109. ;;
  7110. sysv4*MP*)
  7111. if test -d /usr/nec; then
  7112. lt_prog_compiler_pic=-Kconform_pic
  7113. fi
  7114. ;;
  7115. *)
  7116. lt_prog_compiler_pic='-fPIC'
  7117. ;;
  7118. esac
  7119. case $cc_basename in
  7120. nvcc*) # Cuda Compiler Driver 2.2
  7121. lt_prog_compiler_wl='-Xlinker '
  7122. if test -n "$lt_prog_compiler_pic"; then
  7123. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7124. fi
  7125. ;;
  7126. esac
  7127. else
  7128. # PORTME Check for flag to pass linker flags through the system compiler.
  7129. case $host_os in
  7130. aix*)
  7131. lt_prog_compiler_wl='-Wl,'
  7132. if test "$host_cpu" = ia64; then
  7133. # AIX 5 now supports IA64 processor
  7134. lt_prog_compiler_static='-Bstatic'
  7135. else
  7136. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7137. fi
  7138. ;;
  7139. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7140. # This hack is so that the source file can tell whether it is being
  7141. # built for inclusion in a dll (and should export symbols for example).
  7142. lt_prog_compiler_pic='-DDLL_EXPORT'
  7143. ;;
  7144. hpux9* | hpux10* | hpux11*)
  7145. lt_prog_compiler_wl='-Wl,'
  7146. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7147. # not for PA HP-UX.
  7148. case $host_cpu in
  7149. hppa*64*|ia64*)
  7150. # +Z the default
  7151. ;;
  7152. *)
  7153. lt_prog_compiler_pic='+Z'
  7154. ;;
  7155. esac
  7156. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7157. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7158. ;;
  7159. irix5* | irix6* | nonstopux*)
  7160. lt_prog_compiler_wl='-Wl,'
  7161. # PIC (with -KPIC) is the default.
  7162. lt_prog_compiler_static='-non_shared'
  7163. ;;
  7164. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7165. case $cc_basename in
  7166. # old Intel for x86_64 which still supported -KPIC.
  7167. ecc*)
  7168. lt_prog_compiler_wl='-Wl,'
  7169. lt_prog_compiler_pic='-KPIC'
  7170. lt_prog_compiler_static='-static'
  7171. ;;
  7172. # icc used to be incompatible with GCC.
  7173. # ICC 10 doesn't accept -KPIC any more.
  7174. icc* | ifort*)
  7175. lt_prog_compiler_wl='-Wl,'
  7176. lt_prog_compiler_pic='-fPIC'
  7177. lt_prog_compiler_static='-static'
  7178. ;;
  7179. # Lahey Fortran 8.1.
  7180. lf95*)
  7181. lt_prog_compiler_wl='-Wl,'
  7182. lt_prog_compiler_pic='--shared'
  7183. lt_prog_compiler_static='--static'
  7184. ;;
  7185. nagfor*)
  7186. # NAG Fortran compiler
  7187. lt_prog_compiler_wl='-Wl,-Wl,,'
  7188. lt_prog_compiler_pic='-PIC'
  7189. lt_prog_compiler_static='-Bstatic'
  7190. ;;
  7191. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7192. # Portland Group compilers (*not* the Pentium gcc compiler,
  7193. # which looks to be a dead project)
  7194. lt_prog_compiler_wl='-Wl,'
  7195. lt_prog_compiler_pic='-fpic'
  7196. lt_prog_compiler_static='-Bstatic'
  7197. ;;
  7198. ccc*)
  7199. lt_prog_compiler_wl='-Wl,'
  7200. # All Alpha code is PIC.
  7201. lt_prog_compiler_static='-non_shared'
  7202. ;;
  7203. xl* | bgxl* | bgf* | mpixl*)
  7204. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7205. lt_prog_compiler_wl='-Wl,'
  7206. lt_prog_compiler_pic='-qpic'
  7207. lt_prog_compiler_static='-qstaticlink'
  7208. ;;
  7209. *)
  7210. case `$CC -V 2>&1 | sed 5q` in
  7211. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7212. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7213. lt_prog_compiler_pic='-KPIC'
  7214. lt_prog_compiler_static='-Bstatic'
  7215. lt_prog_compiler_wl=''
  7216. ;;
  7217. *Sun\ F* | *Sun*Fortran*)
  7218. lt_prog_compiler_pic='-KPIC'
  7219. lt_prog_compiler_static='-Bstatic'
  7220. lt_prog_compiler_wl='-Qoption ld '
  7221. ;;
  7222. *Sun\ C*)
  7223. # Sun C 5.9
  7224. lt_prog_compiler_pic='-KPIC'
  7225. lt_prog_compiler_static='-Bstatic'
  7226. lt_prog_compiler_wl='-Wl,'
  7227. ;;
  7228. *Intel*\ [CF]*Compiler*)
  7229. lt_prog_compiler_wl='-Wl,'
  7230. lt_prog_compiler_pic='-fPIC'
  7231. lt_prog_compiler_static='-static'
  7232. ;;
  7233. *Portland\ Group*)
  7234. lt_prog_compiler_wl='-Wl,'
  7235. lt_prog_compiler_pic='-fpic'
  7236. lt_prog_compiler_static='-Bstatic'
  7237. ;;
  7238. esac
  7239. ;;
  7240. esac
  7241. ;;
  7242. newsos6)
  7243. lt_prog_compiler_pic='-KPIC'
  7244. lt_prog_compiler_static='-Bstatic'
  7245. ;;
  7246. *nto* | *qnx*)
  7247. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7248. # it will coredump.
  7249. lt_prog_compiler_pic='-fPIC -shared'
  7250. ;;
  7251. osf3* | osf4* | osf5*)
  7252. lt_prog_compiler_wl='-Wl,'
  7253. # All OSF/1 code is PIC.
  7254. lt_prog_compiler_static='-non_shared'
  7255. ;;
  7256. rdos*)
  7257. lt_prog_compiler_static='-non_shared'
  7258. ;;
  7259. solaris*)
  7260. lt_prog_compiler_pic='-KPIC'
  7261. lt_prog_compiler_static='-Bstatic'
  7262. case $cc_basename in
  7263. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7264. lt_prog_compiler_wl='-Qoption ld ';;
  7265. *)
  7266. lt_prog_compiler_wl='-Wl,';;
  7267. esac
  7268. ;;
  7269. sunos4*)
  7270. lt_prog_compiler_wl='-Qoption ld '
  7271. lt_prog_compiler_pic='-PIC'
  7272. lt_prog_compiler_static='-Bstatic'
  7273. ;;
  7274. sysv4 | sysv4.2uw2* | sysv4.3*)
  7275. lt_prog_compiler_wl='-Wl,'
  7276. lt_prog_compiler_pic='-KPIC'
  7277. lt_prog_compiler_static='-Bstatic'
  7278. ;;
  7279. sysv4*MP*)
  7280. if test -d /usr/nec ;then
  7281. lt_prog_compiler_pic='-Kconform_pic'
  7282. lt_prog_compiler_static='-Bstatic'
  7283. fi
  7284. ;;
  7285. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7286. lt_prog_compiler_wl='-Wl,'
  7287. lt_prog_compiler_pic='-KPIC'
  7288. lt_prog_compiler_static='-Bstatic'
  7289. ;;
  7290. unicos*)
  7291. lt_prog_compiler_wl='-Wl,'
  7292. lt_prog_compiler_can_build_shared=no
  7293. ;;
  7294. uts4*)
  7295. lt_prog_compiler_pic='-pic'
  7296. lt_prog_compiler_static='-Bstatic'
  7297. ;;
  7298. *)
  7299. lt_prog_compiler_can_build_shared=no
  7300. ;;
  7301. esac
  7302. fi
  7303. case $host_os in
  7304. # For platforms which do not support PIC, -DPIC is meaningless:
  7305. *djgpp*)
  7306. lt_prog_compiler_pic=
  7307. ;;
  7308. *)
  7309. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7310. ;;
  7311. esac
  7312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7313. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7314. if ${lt_cv_prog_compiler_pic+:} false; then :
  7315. $as_echo_n "(cached) " >&6
  7316. else
  7317. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7318. fi
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7320. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7321. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7322. #
  7323. # Check to make sure the PIC flag actually works.
  7324. #
  7325. if test -n "$lt_prog_compiler_pic"; then
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7327. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7328. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7329. $as_echo_n "(cached) " >&6
  7330. else
  7331. lt_cv_prog_compiler_pic_works=no
  7332. ac_outfile=conftest.$ac_objext
  7333. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7334. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7335. # Insert the option either (1) after the last *FLAGS variable, or
  7336. # (2) before a word containing "conftest.", or (3) at the end.
  7337. # Note that $ac_compile itself does not contain backslashes and begins
  7338. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7339. # The option is referenced via a variable to avoid confusing sed.
  7340. lt_compile=`echo "$ac_compile" | $SED \
  7341. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7342. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7343. -e 's:$: $lt_compiler_flag:'`
  7344. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7345. (eval "$lt_compile" 2>conftest.err)
  7346. ac_status=$?
  7347. cat conftest.err >&5
  7348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7349. if (exit $ac_status) && test -s "$ac_outfile"; then
  7350. # The compiler can only warn and ignore the option if not recognized
  7351. # So say no if there are warnings other than the usual output.
  7352. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7353. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7354. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7355. lt_cv_prog_compiler_pic_works=yes
  7356. fi
  7357. fi
  7358. $RM conftest*
  7359. fi
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7361. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7362. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7363. case $lt_prog_compiler_pic in
  7364. "" | " "*) ;;
  7365. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7366. esac
  7367. else
  7368. lt_prog_compiler_pic=
  7369. lt_prog_compiler_can_build_shared=no
  7370. fi
  7371. fi
  7372. #
  7373. # Check to make sure the static flag actually works.
  7374. #
  7375. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7377. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7378. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7379. $as_echo_n "(cached) " >&6
  7380. else
  7381. lt_cv_prog_compiler_static_works=no
  7382. save_LDFLAGS="$LDFLAGS"
  7383. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7384. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7385. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7386. # The linker can only warn and ignore the option if not recognized
  7387. # So say no if there are warnings
  7388. if test -s conftest.err; then
  7389. # Append any errors to the config.log.
  7390. cat conftest.err 1>&5
  7391. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7392. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7393. if diff conftest.exp conftest.er2 >/dev/null; then
  7394. lt_cv_prog_compiler_static_works=yes
  7395. fi
  7396. else
  7397. lt_cv_prog_compiler_static_works=yes
  7398. fi
  7399. fi
  7400. $RM -r conftest*
  7401. LDFLAGS="$save_LDFLAGS"
  7402. fi
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7404. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7405. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7406. :
  7407. else
  7408. lt_prog_compiler_static=
  7409. fi
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7411. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7412. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7413. $as_echo_n "(cached) " >&6
  7414. else
  7415. lt_cv_prog_compiler_c_o=no
  7416. $RM -r conftest 2>/dev/null
  7417. mkdir conftest
  7418. cd conftest
  7419. mkdir out
  7420. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7421. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7422. # Insert the option either (1) after the last *FLAGS variable, or
  7423. # (2) before a word containing "conftest.", or (3) at the end.
  7424. # Note that $ac_compile itself does not contain backslashes and begins
  7425. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7426. lt_compile=`echo "$ac_compile" | $SED \
  7427. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7428. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7429. -e 's:$: $lt_compiler_flag:'`
  7430. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7431. (eval "$lt_compile" 2>out/conftest.err)
  7432. ac_status=$?
  7433. cat out/conftest.err >&5
  7434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7435. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7436. then
  7437. # The compiler can only warn and ignore the option if not recognized
  7438. # So say no if there are warnings
  7439. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7440. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7441. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7442. lt_cv_prog_compiler_c_o=yes
  7443. fi
  7444. fi
  7445. chmod u+w . 2>&5
  7446. $RM conftest*
  7447. # SGI C++ compiler will create directory out/ii_files/ for
  7448. # template instantiation
  7449. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7450. $RM out/* && rmdir out
  7451. cd ..
  7452. $RM -r conftest
  7453. $RM conftest*
  7454. fi
  7455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7456. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7458. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7459. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7460. $as_echo_n "(cached) " >&6
  7461. else
  7462. lt_cv_prog_compiler_c_o=no
  7463. $RM -r conftest 2>/dev/null
  7464. mkdir conftest
  7465. cd conftest
  7466. mkdir out
  7467. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7468. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7469. # Insert the option either (1) after the last *FLAGS variable, or
  7470. # (2) before a word containing "conftest.", or (3) at the end.
  7471. # Note that $ac_compile itself does not contain backslashes and begins
  7472. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7473. lt_compile=`echo "$ac_compile" | $SED \
  7474. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7475. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7476. -e 's:$: $lt_compiler_flag:'`
  7477. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7478. (eval "$lt_compile" 2>out/conftest.err)
  7479. ac_status=$?
  7480. cat out/conftest.err >&5
  7481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7482. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7483. then
  7484. # The compiler can only warn and ignore the option if not recognized
  7485. # So say no if there are warnings
  7486. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7487. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7488. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7489. lt_cv_prog_compiler_c_o=yes
  7490. fi
  7491. fi
  7492. chmod u+w . 2>&5
  7493. $RM conftest*
  7494. # SGI C++ compiler will create directory out/ii_files/ for
  7495. # template instantiation
  7496. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7497. $RM out/* && rmdir out
  7498. cd ..
  7499. $RM -r conftest
  7500. $RM conftest*
  7501. fi
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7503. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7504. hard_links="nottested"
  7505. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7506. # do not overwrite the value of need_locks provided by the user
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7508. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7509. hard_links=yes
  7510. $RM conftest*
  7511. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7512. touch conftest.a
  7513. ln conftest.a conftest.b 2>&5 || hard_links=no
  7514. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7516. $as_echo "$hard_links" >&6; }
  7517. if test "$hard_links" = no; then
  7518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7519. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7520. need_locks=warn
  7521. fi
  7522. else
  7523. need_locks=no
  7524. fi
  7525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7526. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7527. runpath_var=
  7528. allow_undefined_flag=
  7529. always_export_symbols=no
  7530. archive_cmds=
  7531. archive_expsym_cmds=
  7532. compiler_needs_object=no
  7533. enable_shared_with_static_runtimes=no
  7534. export_dynamic_flag_spec=
  7535. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7536. hardcode_automatic=no
  7537. hardcode_direct=no
  7538. hardcode_direct_absolute=no
  7539. hardcode_libdir_flag_spec=
  7540. hardcode_libdir_separator=
  7541. hardcode_minus_L=no
  7542. hardcode_shlibpath_var=unsupported
  7543. inherit_rpath=no
  7544. link_all_deplibs=unknown
  7545. module_cmds=
  7546. module_expsym_cmds=
  7547. old_archive_from_new_cmds=
  7548. old_archive_from_expsyms_cmds=
  7549. thread_safe_flag_spec=
  7550. whole_archive_flag_spec=
  7551. # include_expsyms should be a list of space-separated symbols to be *always*
  7552. # included in the symbol list
  7553. include_expsyms=
  7554. # exclude_expsyms can be an extended regexp of symbols to exclude
  7555. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7556. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7557. # as well as any symbol that contains `d'.
  7558. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7559. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7560. # platforms (ab)use it in PIC code, but their linkers get confused if
  7561. # the symbol is explicitly referenced. Since portable code cannot
  7562. # rely on this symbol name, it's probably fine to never include it in
  7563. # preloaded symbol tables.
  7564. # Exclude shared library initialization/finalization symbols.
  7565. extract_expsyms_cmds=
  7566. case $host_os in
  7567. cygwin* | mingw* | pw32* | cegcc*)
  7568. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7569. # When not using gcc, we currently assume that we are using
  7570. # Microsoft Visual C++.
  7571. if test "$GCC" != yes; then
  7572. with_gnu_ld=no
  7573. fi
  7574. ;;
  7575. interix*)
  7576. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7577. with_gnu_ld=yes
  7578. ;;
  7579. openbsd*)
  7580. with_gnu_ld=no
  7581. ;;
  7582. linux* | k*bsd*-gnu | gnu*)
  7583. link_all_deplibs=no
  7584. ;;
  7585. esac
  7586. ld_shlibs=yes
  7587. # On some targets, GNU ld is compatible enough with the native linker
  7588. # that we're better off using the native interface for both.
  7589. lt_use_gnu_ld_interface=no
  7590. if test "$with_gnu_ld" = yes; then
  7591. case $host_os in
  7592. aix*)
  7593. # The AIX port of GNU ld has always aspired to compatibility
  7594. # with the native linker. However, as the warning in the GNU ld
  7595. # block says, versions before 2.19.5* couldn't really create working
  7596. # shared libraries, regardless of the interface used.
  7597. case `$LD -v 2>&1` in
  7598. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7599. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7600. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7601. *)
  7602. lt_use_gnu_ld_interface=yes
  7603. ;;
  7604. esac
  7605. ;;
  7606. *)
  7607. lt_use_gnu_ld_interface=yes
  7608. ;;
  7609. esac
  7610. fi
  7611. if test "$lt_use_gnu_ld_interface" = yes; then
  7612. # If archive_cmds runs LD, not CC, wlarc should be empty
  7613. wlarc='${wl}'
  7614. # Set some defaults for GNU ld with shared library support. These
  7615. # are reset later if shared libraries are not supported. Putting them
  7616. # here allows them to be overridden if necessary.
  7617. runpath_var=LD_RUN_PATH
  7618. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7619. export_dynamic_flag_spec='${wl}--export-dynamic'
  7620. # ancient GNU ld didn't support --whole-archive et. al.
  7621. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7622. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7623. else
  7624. whole_archive_flag_spec=
  7625. fi
  7626. supports_anon_versioning=no
  7627. case `$LD -v 2>&1` in
  7628. *GNU\ gold*) supports_anon_versioning=yes ;;
  7629. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7630. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7631. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7632. *\ 2.11.*) ;; # other 2.11 versions
  7633. *) supports_anon_versioning=yes ;;
  7634. esac
  7635. # See if GNU ld supports shared libraries.
  7636. case $host_os in
  7637. aix[3-9]*)
  7638. # On AIX/PPC, the GNU linker is very broken
  7639. if test "$host_cpu" != ia64; then
  7640. ld_shlibs=no
  7641. cat <<_LT_EOF 1>&2
  7642. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7643. *** to be unable to reliably create shared libraries on AIX.
  7644. *** Therefore, libtool is disabling shared libraries support. If you
  7645. *** really care for shared libraries, you may want to install binutils
  7646. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7647. *** You will then need to restart the configuration process.
  7648. _LT_EOF
  7649. fi
  7650. ;;
  7651. amigaos*)
  7652. case $host_cpu in
  7653. powerpc)
  7654. # see comment about AmigaOS4 .so support
  7655. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7656. archive_expsym_cmds=''
  7657. ;;
  7658. m68k)
  7659. 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)'
  7660. hardcode_libdir_flag_spec='-L$libdir'
  7661. hardcode_minus_L=yes
  7662. ;;
  7663. esac
  7664. ;;
  7665. beos*)
  7666. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7667. allow_undefined_flag=unsupported
  7668. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7669. # support --undefined. This deserves some investigation. FIXME
  7670. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7671. else
  7672. ld_shlibs=no
  7673. fi
  7674. ;;
  7675. cygwin* | mingw* | pw32* | cegcc*)
  7676. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7677. # as there is no search path for DLLs.
  7678. hardcode_libdir_flag_spec='-L$libdir'
  7679. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7680. allow_undefined_flag=unsupported
  7681. always_export_symbols=no
  7682. enable_shared_with_static_runtimes=yes
  7683. 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'
  7684. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7685. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7686. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7687. # If the export-symbols file already is a .def file (1st line
  7688. # is EXPORTS), use it as is; otherwise, prepend...
  7689. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7690. cp $export_symbols $output_objdir/$soname.def;
  7691. else
  7692. echo EXPORTS > $output_objdir/$soname.def;
  7693. cat $export_symbols >> $output_objdir/$soname.def;
  7694. fi~
  7695. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7696. else
  7697. ld_shlibs=no
  7698. fi
  7699. ;;
  7700. haiku*)
  7701. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7702. link_all_deplibs=yes
  7703. ;;
  7704. interix[3-9]*)
  7705. hardcode_direct=no
  7706. hardcode_shlibpath_var=no
  7707. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7708. export_dynamic_flag_spec='${wl}-E'
  7709. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7710. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7711. # default) and relocated if they conflict, which is a slow very memory
  7712. # consuming and fragmenting process. To avoid this, we pick a random,
  7713. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7714. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7715. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7716. 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'
  7717. ;;
  7718. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7719. tmp_diet=no
  7720. if test "$host_os" = linux-dietlibc; then
  7721. case $cc_basename in
  7722. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7723. esac
  7724. fi
  7725. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7726. && test "$tmp_diet" = no
  7727. then
  7728. tmp_addflag=' $pic_flag'
  7729. tmp_sharedflag='-shared'
  7730. case $cc_basename,$host_cpu in
  7731. pgcc*) # Portland Group C compiler
  7732. 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'
  7733. tmp_addflag=' $pic_flag'
  7734. ;;
  7735. pgf77* | pgf90* | pgf95* | pgfortran*)
  7736. # Portland Group f77 and f90 compilers
  7737. 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'
  7738. tmp_addflag=' $pic_flag -Mnomain' ;;
  7739. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7740. tmp_addflag=' -i_dynamic' ;;
  7741. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7742. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7743. ifc* | ifort*) # Intel Fortran compiler
  7744. tmp_addflag=' -nofor_main' ;;
  7745. lf95*) # Lahey Fortran 8.1
  7746. whole_archive_flag_spec=
  7747. tmp_sharedflag='--shared' ;;
  7748. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7749. tmp_sharedflag='-qmkshrobj'
  7750. tmp_addflag= ;;
  7751. nvcc*) # Cuda Compiler Driver 2.2
  7752. 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'
  7753. compiler_needs_object=yes
  7754. ;;
  7755. esac
  7756. case `$CC -V 2>&1 | sed 5q` in
  7757. *Sun\ C*) # Sun C 5.9
  7758. 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'
  7759. compiler_needs_object=yes
  7760. tmp_sharedflag='-G' ;;
  7761. *Sun\ F*) # Sun Fortran 8.3
  7762. tmp_sharedflag='-G' ;;
  7763. esac
  7764. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7765. if test "x$supports_anon_versioning" = xyes; then
  7766. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7767. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7768. echo "local: *; };" >> $output_objdir/$libname.ver~
  7769. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7770. fi
  7771. case $cc_basename in
  7772. xlf* | bgf* | bgxlf* | mpixlf*)
  7773. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7774. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7775. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7776. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7777. if test "x$supports_anon_versioning" = xyes; then
  7778. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7779. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7780. echo "local: *; };" >> $output_objdir/$libname.ver~
  7781. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7782. fi
  7783. ;;
  7784. esac
  7785. else
  7786. ld_shlibs=no
  7787. fi
  7788. ;;
  7789. netbsd* | netbsdelf*-gnu)
  7790. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7791. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7792. wlarc=
  7793. else
  7794. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7795. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7796. fi
  7797. ;;
  7798. solaris*)
  7799. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7800. ld_shlibs=no
  7801. cat <<_LT_EOF 1>&2
  7802. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7803. *** create shared libraries on Solaris systems. Therefore, libtool
  7804. *** is disabling shared libraries support. We urge you to upgrade GNU
  7805. *** binutils to release 2.9.1 or newer. Another option is to modify
  7806. *** your PATH or compiler configuration so that the native linker is
  7807. *** used, and then restart.
  7808. _LT_EOF
  7809. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7810. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7811. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7812. else
  7813. ld_shlibs=no
  7814. fi
  7815. ;;
  7816. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7817. case `$LD -v 2>&1` in
  7818. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7819. ld_shlibs=no
  7820. cat <<_LT_EOF 1>&2
  7821. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7822. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7823. *** is disabling shared libraries support. We urge you to upgrade GNU
  7824. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7825. *** your PATH or compiler configuration so that the native linker is
  7826. *** used, and then restart.
  7827. _LT_EOF
  7828. ;;
  7829. *)
  7830. # For security reasons, it is highly recommended that you always
  7831. # use absolute paths for naming shared libraries, and exclude the
  7832. # DT_RUNPATH tag from executables and libraries. But doing so
  7833. # requires that you compile everything twice, which is a pain.
  7834. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7835. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7836. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7837. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7838. else
  7839. ld_shlibs=no
  7840. fi
  7841. ;;
  7842. esac
  7843. ;;
  7844. sunos4*)
  7845. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7846. wlarc=
  7847. hardcode_direct=yes
  7848. hardcode_shlibpath_var=no
  7849. ;;
  7850. *)
  7851. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7852. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7853. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7854. else
  7855. ld_shlibs=no
  7856. fi
  7857. ;;
  7858. esac
  7859. if test "$ld_shlibs" = no; then
  7860. runpath_var=
  7861. hardcode_libdir_flag_spec=
  7862. export_dynamic_flag_spec=
  7863. whole_archive_flag_spec=
  7864. fi
  7865. else
  7866. # PORTME fill in a description of your system's linker (not GNU ld)
  7867. case $host_os in
  7868. aix3*)
  7869. allow_undefined_flag=unsupported
  7870. always_export_symbols=yes
  7871. 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'
  7872. # Note: this linker hardcodes the directories in LIBPATH if there
  7873. # are no directories specified by -L.
  7874. hardcode_minus_L=yes
  7875. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7876. # Neither direct hardcoding nor static linking is supported with a
  7877. # broken collect2.
  7878. hardcode_direct=unsupported
  7879. fi
  7880. ;;
  7881. aix[4-9]*)
  7882. if test "$host_cpu" = ia64; then
  7883. # On IA64, the linker does run time linking by default, so we don't
  7884. # have to do anything special.
  7885. aix_use_runtimelinking=no
  7886. exp_sym_flag='-Bexport'
  7887. no_entry_flag=""
  7888. else
  7889. # If we're using GNU nm, then we don't want the "-C" option.
  7890. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7891. # Also, AIX nm treats weak defined symbols like other global
  7892. # defined symbols, whereas GNU nm marks them as "W".
  7893. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7894. 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'
  7895. else
  7896. 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'
  7897. fi
  7898. aix_use_runtimelinking=no
  7899. # Test if we are trying to use run time linking or normal
  7900. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7901. # need to do runtime linking.
  7902. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7903. for ld_flag in $LDFLAGS; do
  7904. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7905. aix_use_runtimelinking=yes
  7906. break
  7907. fi
  7908. done
  7909. ;;
  7910. esac
  7911. exp_sym_flag='-bexport'
  7912. no_entry_flag='-bnoentry'
  7913. fi
  7914. # When large executables or shared objects are built, AIX ld can
  7915. # have problems creating the table of contents. If linking a library
  7916. # or program results in "error TOC overflow" add -mminimal-toc to
  7917. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7918. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7919. archive_cmds=''
  7920. hardcode_direct=yes
  7921. hardcode_direct_absolute=yes
  7922. hardcode_libdir_separator=':'
  7923. link_all_deplibs=yes
  7924. file_list_spec='${wl}-f,'
  7925. if test "$GCC" = yes; then
  7926. case $host_os in aix4.[012]|aix4.[012].*)
  7927. # We only want to do this on AIX 4.2 and lower, the check
  7928. # below for broken collect2 doesn't work under 4.3+
  7929. collect2name=`${CC} -print-prog-name=collect2`
  7930. if test -f "$collect2name" &&
  7931. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7932. then
  7933. # We have reworked collect2
  7934. :
  7935. else
  7936. # We have old collect2
  7937. hardcode_direct=unsupported
  7938. # It fails to find uninstalled libraries when the uninstalled
  7939. # path is not listed in the libpath. Setting hardcode_minus_L
  7940. # to unsupported forces relinking
  7941. hardcode_minus_L=yes
  7942. hardcode_libdir_flag_spec='-L$libdir'
  7943. hardcode_libdir_separator=
  7944. fi
  7945. ;;
  7946. esac
  7947. shared_flag='-shared'
  7948. if test "$aix_use_runtimelinking" = yes; then
  7949. shared_flag="$shared_flag "'${wl}-G'
  7950. fi
  7951. link_all_deplibs=no
  7952. else
  7953. # not using gcc
  7954. if test "$host_cpu" = ia64; then
  7955. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7956. # chokes on -Wl,-G. The following line is correct:
  7957. shared_flag='-G'
  7958. else
  7959. if test "$aix_use_runtimelinking" = yes; then
  7960. shared_flag='${wl}-G'
  7961. else
  7962. shared_flag='${wl}-bM:SRE'
  7963. fi
  7964. fi
  7965. fi
  7966. export_dynamic_flag_spec='${wl}-bexpall'
  7967. # It seems that -bexpall does not export symbols beginning with
  7968. # underscore (_), so it is better to generate a list of symbols to export.
  7969. always_export_symbols=yes
  7970. if test "$aix_use_runtimelinking" = yes; then
  7971. # Warning - without using the other runtime loading flags (-brtl),
  7972. # -berok will link without error, but may produce a broken library.
  7973. allow_undefined_flag='-berok'
  7974. # Determine the default libpath from the value encoded in an
  7975. # empty executable.
  7976. if test "${lt_cv_aix_libpath+set}" = set; then
  7977. aix_libpath=$lt_cv_aix_libpath
  7978. else
  7979. if ${lt_cv_aix_libpath_+:} false; then :
  7980. $as_echo_n "(cached) " >&6
  7981. else
  7982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7983. /* end confdefs.h. */
  7984. int
  7985. main ()
  7986. {
  7987. ;
  7988. return 0;
  7989. }
  7990. _ACEOF
  7991. if ac_fn_c_try_link "$LINENO"; then :
  7992. lt_aix_libpath_sed='
  7993. /Import File Strings/,/^$/ {
  7994. /^0/ {
  7995. s/^0 *\([^ ]*\) *$/\1/
  7996. p
  7997. }
  7998. }'
  7999. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8000. # Check for a 64-bit object if we didn't find anything.
  8001. if test -z "$lt_cv_aix_libpath_"; then
  8002. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8003. fi
  8004. fi
  8005. rm -f core conftest.err conftest.$ac_objext \
  8006. conftest$ac_exeext conftest.$ac_ext
  8007. if test -z "$lt_cv_aix_libpath_"; then
  8008. lt_cv_aix_libpath_="/usr/lib:/lib"
  8009. fi
  8010. fi
  8011. aix_libpath=$lt_cv_aix_libpath_
  8012. fi
  8013. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8014. 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"
  8015. else
  8016. if test "$host_cpu" = ia64; then
  8017. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8018. allow_undefined_flag="-z nodefs"
  8019. 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"
  8020. else
  8021. # Determine the default libpath from the value encoded in an
  8022. # empty executable.
  8023. if test "${lt_cv_aix_libpath+set}" = set; then
  8024. aix_libpath=$lt_cv_aix_libpath
  8025. else
  8026. if ${lt_cv_aix_libpath_+:} false; then :
  8027. $as_echo_n "(cached) " >&6
  8028. else
  8029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8030. /* end confdefs.h. */
  8031. int
  8032. main ()
  8033. {
  8034. ;
  8035. return 0;
  8036. }
  8037. _ACEOF
  8038. if ac_fn_c_try_link "$LINENO"; then :
  8039. lt_aix_libpath_sed='
  8040. /Import File Strings/,/^$/ {
  8041. /^0/ {
  8042. s/^0 *\([^ ]*\) *$/\1/
  8043. p
  8044. }
  8045. }'
  8046. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8047. # Check for a 64-bit object if we didn't find anything.
  8048. if test -z "$lt_cv_aix_libpath_"; then
  8049. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8050. fi
  8051. fi
  8052. rm -f core conftest.err conftest.$ac_objext \
  8053. conftest$ac_exeext conftest.$ac_ext
  8054. if test -z "$lt_cv_aix_libpath_"; then
  8055. lt_cv_aix_libpath_="/usr/lib:/lib"
  8056. fi
  8057. fi
  8058. aix_libpath=$lt_cv_aix_libpath_
  8059. fi
  8060. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8061. # Warning - without using the other run time loading flags,
  8062. # -berok will link without error, but may produce a broken library.
  8063. no_undefined_flag=' ${wl}-bernotok'
  8064. allow_undefined_flag=' ${wl}-berok'
  8065. if test "$with_gnu_ld" = yes; then
  8066. # We only use this code for GNU lds that support --whole-archive.
  8067. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8068. else
  8069. # Exported symbols can be pulled into shared objects from archives
  8070. whole_archive_flag_spec='$convenience'
  8071. fi
  8072. archive_cmds_need_lc=yes
  8073. # This is similar to how AIX traditionally builds its shared libraries.
  8074. 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'
  8075. fi
  8076. fi
  8077. ;;
  8078. amigaos*)
  8079. case $host_cpu in
  8080. powerpc)
  8081. # see comment about AmigaOS4 .so support
  8082. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8083. archive_expsym_cmds=''
  8084. ;;
  8085. m68k)
  8086. 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)'
  8087. hardcode_libdir_flag_spec='-L$libdir'
  8088. hardcode_minus_L=yes
  8089. ;;
  8090. esac
  8091. ;;
  8092. bsdi[45]*)
  8093. export_dynamic_flag_spec=-rdynamic
  8094. ;;
  8095. cygwin* | mingw* | pw32* | cegcc*)
  8096. # When not using gcc, we currently assume that we are using
  8097. # Microsoft Visual C++.
  8098. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8099. # no search path for DLLs.
  8100. case $cc_basename in
  8101. cl*)
  8102. # Native MSVC
  8103. hardcode_libdir_flag_spec=' '
  8104. allow_undefined_flag=unsupported
  8105. always_export_symbols=yes
  8106. file_list_spec='@'
  8107. # Tell ltmain to make .lib files, not .a files.
  8108. libext=lib
  8109. # Tell ltmain to make .dll files, not .so files.
  8110. shrext_cmds=".dll"
  8111. # FIXME: Setting linknames here is a bad hack.
  8112. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8113. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8114. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8115. else
  8116. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8117. fi~
  8118. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8119. linknames='
  8120. # The linker will not automatically build a static lib if we build a DLL.
  8121. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8122. enable_shared_with_static_runtimes=yes
  8123. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8124. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8125. # Don't use ranlib
  8126. old_postinstall_cmds='chmod 644 $oldlib'
  8127. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8128. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8129. case $lt_outputfile in
  8130. *.exe|*.EXE) ;;
  8131. *)
  8132. lt_outputfile="$lt_outputfile.exe"
  8133. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8134. ;;
  8135. esac~
  8136. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8137. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8138. $RM "$lt_outputfile.manifest";
  8139. fi'
  8140. ;;
  8141. *)
  8142. # Assume MSVC wrapper
  8143. hardcode_libdir_flag_spec=' '
  8144. allow_undefined_flag=unsupported
  8145. # Tell ltmain to make .lib files, not .a files.
  8146. libext=lib
  8147. # Tell ltmain to make .dll files, not .so files.
  8148. shrext_cmds=".dll"
  8149. # FIXME: Setting linknames here is a bad hack.
  8150. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8151. # The linker will automatically build a .lib file if we build a DLL.
  8152. old_archive_from_new_cmds='true'
  8153. # FIXME: Should let the user specify the lib program.
  8154. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8155. enable_shared_with_static_runtimes=yes
  8156. ;;
  8157. esac
  8158. ;;
  8159. darwin* | rhapsody*)
  8160. archive_cmds_need_lc=no
  8161. hardcode_direct=no
  8162. hardcode_automatic=yes
  8163. hardcode_shlibpath_var=unsupported
  8164. if test "$lt_cv_ld_force_load" = "yes"; then
  8165. 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\"`'
  8166. else
  8167. whole_archive_flag_spec=''
  8168. fi
  8169. link_all_deplibs=yes
  8170. allow_undefined_flag="$_lt_dar_allow_undefined"
  8171. case $cc_basename in
  8172. ifort*) _lt_dar_can_shared=yes ;;
  8173. *) _lt_dar_can_shared=$GCC ;;
  8174. esac
  8175. if test "$_lt_dar_can_shared" = "yes"; then
  8176. output_verbose_link_cmd=func_echo_all
  8177. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8178. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8179. 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}"
  8180. 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}"
  8181. else
  8182. ld_shlibs=no
  8183. fi
  8184. ;;
  8185. dgux*)
  8186. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8187. hardcode_libdir_flag_spec='-L$libdir'
  8188. hardcode_shlibpath_var=no
  8189. ;;
  8190. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8191. # support. Future versions do this automatically, but an explicit c++rt0.o
  8192. # does not break anything, and helps significantly (at the cost of a little
  8193. # extra space).
  8194. freebsd2.2*)
  8195. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8196. hardcode_libdir_flag_spec='-R$libdir'
  8197. hardcode_direct=yes
  8198. hardcode_shlibpath_var=no
  8199. ;;
  8200. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8201. freebsd2.*)
  8202. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8203. hardcode_direct=yes
  8204. hardcode_minus_L=yes
  8205. hardcode_shlibpath_var=no
  8206. ;;
  8207. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8208. freebsd* | dragonfly*)
  8209. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8210. hardcode_libdir_flag_spec='-R$libdir'
  8211. hardcode_direct=yes
  8212. hardcode_shlibpath_var=no
  8213. ;;
  8214. hpux9*)
  8215. if test "$GCC" = yes; then
  8216. 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'
  8217. else
  8218. 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'
  8219. fi
  8220. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8221. hardcode_libdir_separator=:
  8222. hardcode_direct=yes
  8223. # hardcode_minus_L: Not really in the search PATH,
  8224. # but as the default location of the library.
  8225. hardcode_minus_L=yes
  8226. export_dynamic_flag_spec='${wl}-E'
  8227. ;;
  8228. hpux10*)
  8229. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8230. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8231. else
  8232. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8233. fi
  8234. if test "$with_gnu_ld" = no; then
  8235. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8236. hardcode_libdir_separator=:
  8237. hardcode_direct=yes
  8238. hardcode_direct_absolute=yes
  8239. export_dynamic_flag_spec='${wl}-E'
  8240. # hardcode_minus_L: Not really in the search PATH,
  8241. # but as the default location of the library.
  8242. hardcode_minus_L=yes
  8243. fi
  8244. ;;
  8245. hpux11*)
  8246. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8247. case $host_cpu in
  8248. hppa*64*)
  8249. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8250. ;;
  8251. ia64*)
  8252. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8253. ;;
  8254. *)
  8255. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8256. ;;
  8257. esac
  8258. else
  8259. case $host_cpu in
  8260. hppa*64*)
  8261. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8262. ;;
  8263. ia64*)
  8264. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8265. ;;
  8266. *)
  8267. # Older versions of the 11.00 compiler do not understand -b yet
  8268. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8270. $as_echo_n "checking if $CC understands -b... " >&6; }
  8271. if ${lt_cv_prog_compiler__b+:} false; then :
  8272. $as_echo_n "(cached) " >&6
  8273. else
  8274. lt_cv_prog_compiler__b=no
  8275. save_LDFLAGS="$LDFLAGS"
  8276. LDFLAGS="$LDFLAGS -b"
  8277. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8278. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8279. # The linker can only warn and ignore the option if not recognized
  8280. # So say no if there are warnings
  8281. if test -s conftest.err; then
  8282. # Append any errors to the config.log.
  8283. cat conftest.err 1>&5
  8284. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8285. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8286. if diff conftest.exp conftest.er2 >/dev/null; then
  8287. lt_cv_prog_compiler__b=yes
  8288. fi
  8289. else
  8290. lt_cv_prog_compiler__b=yes
  8291. fi
  8292. fi
  8293. $RM -r conftest*
  8294. LDFLAGS="$save_LDFLAGS"
  8295. fi
  8296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8297. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8298. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8299. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8300. else
  8301. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8302. fi
  8303. ;;
  8304. esac
  8305. fi
  8306. if test "$with_gnu_ld" = no; then
  8307. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8308. hardcode_libdir_separator=:
  8309. case $host_cpu in
  8310. hppa*64*|ia64*)
  8311. hardcode_direct=no
  8312. hardcode_shlibpath_var=no
  8313. ;;
  8314. *)
  8315. hardcode_direct=yes
  8316. hardcode_direct_absolute=yes
  8317. export_dynamic_flag_spec='${wl}-E'
  8318. # hardcode_minus_L: Not really in the search PATH,
  8319. # but as the default location of the library.
  8320. hardcode_minus_L=yes
  8321. ;;
  8322. esac
  8323. fi
  8324. ;;
  8325. irix5* | irix6* | nonstopux*)
  8326. if test "$GCC" = yes; then
  8327. 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'
  8328. # Try to use the -exported_symbol ld option, if it does not
  8329. # work, assume that -exports_file does not work either and
  8330. # implicitly export all symbols.
  8331. # This should be the same for all languages, so no per-tag cache variable.
  8332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8333. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8334. if ${lt_cv_irix_exported_symbol+:} false; then :
  8335. $as_echo_n "(cached) " >&6
  8336. else
  8337. save_LDFLAGS="$LDFLAGS"
  8338. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8340. /* end confdefs.h. */
  8341. int foo (void) { return 0; }
  8342. _ACEOF
  8343. if ac_fn_c_try_link "$LINENO"; then :
  8344. lt_cv_irix_exported_symbol=yes
  8345. else
  8346. lt_cv_irix_exported_symbol=no
  8347. fi
  8348. rm -f core conftest.err conftest.$ac_objext \
  8349. conftest$ac_exeext conftest.$ac_ext
  8350. LDFLAGS="$save_LDFLAGS"
  8351. fi
  8352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8353. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8354. if test "$lt_cv_irix_exported_symbol" = yes; then
  8355. 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'
  8356. fi
  8357. else
  8358. 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'
  8359. 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'
  8360. fi
  8361. archive_cmds_need_lc='no'
  8362. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8363. hardcode_libdir_separator=:
  8364. inherit_rpath=yes
  8365. link_all_deplibs=yes
  8366. ;;
  8367. netbsd* | netbsdelf*-gnu)
  8368. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8369. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8370. else
  8371. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8372. fi
  8373. hardcode_libdir_flag_spec='-R$libdir'
  8374. hardcode_direct=yes
  8375. hardcode_shlibpath_var=no
  8376. ;;
  8377. newsos6)
  8378. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8379. hardcode_direct=yes
  8380. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8381. hardcode_libdir_separator=:
  8382. hardcode_shlibpath_var=no
  8383. ;;
  8384. *nto* | *qnx*)
  8385. ;;
  8386. openbsd*)
  8387. if test -f /usr/libexec/ld.so; then
  8388. hardcode_direct=yes
  8389. hardcode_shlibpath_var=no
  8390. hardcode_direct_absolute=yes
  8391. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8392. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8393. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8394. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8395. export_dynamic_flag_spec='${wl}-E'
  8396. else
  8397. case $host_os in
  8398. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8399. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8400. hardcode_libdir_flag_spec='-R$libdir'
  8401. ;;
  8402. *)
  8403. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8404. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8405. ;;
  8406. esac
  8407. fi
  8408. else
  8409. ld_shlibs=no
  8410. fi
  8411. ;;
  8412. os2*)
  8413. hardcode_libdir_flag_spec='-L$libdir'
  8414. hardcode_minus_L=yes
  8415. allow_undefined_flag=unsupported
  8416. 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'
  8417. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8418. ;;
  8419. osf3*)
  8420. if test "$GCC" = yes; then
  8421. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8422. 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'
  8423. else
  8424. allow_undefined_flag=' -expect_unresolved \*'
  8425. 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'
  8426. fi
  8427. archive_cmds_need_lc='no'
  8428. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8429. hardcode_libdir_separator=:
  8430. ;;
  8431. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8432. if test "$GCC" = yes; then
  8433. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8434. 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'
  8435. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8436. else
  8437. allow_undefined_flag=' -expect_unresolved \*'
  8438. 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'
  8439. 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~
  8440. $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'
  8441. # Both c and cxx compiler support -rpath directly
  8442. hardcode_libdir_flag_spec='-rpath $libdir'
  8443. fi
  8444. archive_cmds_need_lc='no'
  8445. hardcode_libdir_separator=:
  8446. ;;
  8447. solaris*)
  8448. no_undefined_flag=' -z defs'
  8449. if test "$GCC" = yes; then
  8450. wlarc='${wl}'
  8451. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8452. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8453. $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'
  8454. else
  8455. case `$CC -V 2>&1` in
  8456. *"Compilers 5.0"*)
  8457. wlarc=''
  8458. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8459. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8460. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8461. ;;
  8462. *)
  8463. wlarc='${wl}'
  8464. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8465. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8466. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8467. ;;
  8468. esac
  8469. fi
  8470. hardcode_libdir_flag_spec='-R$libdir'
  8471. hardcode_shlibpath_var=no
  8472. case $host_os in
  8473. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8474. *)
  8475. # The compiler driver will combine and reorder linker options,
  8476. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8477. # but is careful enough not to reorder.
  8478. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8479. if test "$GCC" = yes; then
  8480. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8481. else
  8482. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8483. fi
  8484. ;;
  8485. esac
  8486. link_all_deplibs=yes
  8487. ;;
  8488. sunos4*)
  8489. if test "x$host_vendor" = xsequent; then
  8490. # Use $CC to link under sequent, because it throws in some extra .o
  8491. # files that make .init and .fini sections work.
  8492. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8493. else
  8494. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8495. fi
  8496. hardcode_libdir_flag_spec='-L$libdir'
  8497. hardcode_direct=yes
  8498. hardcode_minus_L=yes
  8499. hardcode_shlibpath_var=no
  8500. ;;
  8501. sysv4)
  8502. case $host_vendor in
  8503. sni)
  8504. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8505. hardcode_direct=yes # is this really true???
  8506. ;;
  8507. siemens)
  8508. ## LD is ld it makes a PLAMLIB
  8509. ## CC just makes a GrossModule.
  8510. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8511. reload_cmds='$CC -r -o $output$reload_objs'
  8512. hardcode_direct=no
  8513. ;;
  8514. motorola)
  8515. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8516. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8517. ;;
  8518. esac
  8519. runpath_var='LD_RUN_PATH'
  8520. hardcode_shlibpath_var=no
  8521. ;;
  8522. sysv4.3*)
  8523. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8524. hardcode_shlibpath_var=no
  8525. export_dynamic_flag_spec='-Bexport'
  8526. ;;
  8527. sysv4*MP*)
  8528. if test -d /usr/nec; then
  8529. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8530. hardcode_shlibpath_var=no
  8531. runpath_var=LD_RUN_PATH
  8532. hardcode_runpath_var=yes
  8533. ld_shlibs=yes
  8534. fi
  8535. ;;
  8536. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8537. no_undefined_flag='${wl}-z,text'
  8538. archive_cmds_need_lc=no
  8539. hardcode_shlibpath_var=no
  8540. runpath_var='LD_RUN_PATH'
  8541. if test "$GCC" = yes; then
  8542. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8543. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8544. else
  8545. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8546. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8547. fi
  8548. ;;
  8549. sysv5* | sco3.2v5* | sco5v6*)
  8550. # Note: We can NOT use -z defs as we might desire, because we do not
  8551. # link with -lc, and that would cause any symbols used from libc to
  8552. # always be unresolved, which means just about no library would
  8553. # ever link correctly. If we're not using GNU ld we use -z text
  8554. # though, which does catch some bad symbols but isn't as heavy-handed
  8555. # as -z defs.
  8556. no_undefined_flag='${wl}-z,text'
  8557. allow_undefined_flag='${wl}-z,nodefs'
  8558. archive_cmds_need_lc=no
  8559. hardcode_shlibpath_var=no
  8560. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8561. hardcode_libdir_separator=':'
  8562. link_all_deplibs=yes
  8563. export_dynamic_flag_spec='${wl}-Bexport'
  8564. runpath_var='LD_RUN_PATH'
  8565. if test "$GCC" = yes; then
  8566. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8567. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8568. else
  8569. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8570. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8571. fi
  8572. ;;
  8573. uts4*)
  8574. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8575. hardcode_libdir_flag_spec='-L$libdir'
  8576. hardcode_shlibpath_var=no
  8577. ;;
  8578. *)
  8579. ld_shlibs=no
  8580. ;;
  8581. esac
  8582. if test x$host_vendor = xsni; then
  8583. case $host in
  8584. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8585. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8586. ;;
  8587. esac
  8588. fi
  8589. fi
  8590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8591. $as_echo "$ld_shlibs" >&6; }
  8592. test "$ld_shlibs" = no && can_build_shared=no
  8593. with_gnu_ld=$with_gnu_ld
  8594. #
  8595. # Do we need to explicitly link libc?
  8596. #
  8597. case "x$archive_cmds_need_lc" in
  8598. x|xyes)
  8599. # Assume -lc should be added
  8600. archive_cmds_need_lc=yes
  8601. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8602. case $archive_cmds in
  8603. *'~'*)
  8604. # FIXME: we may have to deal with multi-command sequences.
  8605. ;;
  8606. '$CC '*)
  8607. # Test whether the compiler implicitly links with -lc since on some
  8608. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8609. # to ld, don't add -lc before -lgcc.
  8610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8611. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8612. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8613. $as_echo_n "(cached) " >&6
  8614. else
  8615. $RM conftest*
  8616. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8617. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8618. (eval $ac_compile) 2>&5
  8619. ac_status=$?
  8620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8621. test $ac_status = 0; } 2>conftest.err; then
  8622. soname=conftest
  8623. lib=conftest
  8624. libobjs=conftest.$ac_objext
  8625. deplibs=
  8626. wl=$lt_prog_compiler_wl
  8627. pic_flag=$lt_prog_compiler_pic
  8628. compiler_flags=-v
  8629. linker_flags=-v
  8630. verstring=
  8631. output_objdir=.
  8632. libname=conftest
  8633. lt_save_allow_undefined_flag=$allow_undefined_flag
  8634. allow_undefined_flag=
  8635. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8636. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8637. ac_status=$?
  8638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8639. test $ac_status = 0; }
  8640. then
  8641. lt_cv_archive_cmds_need_lc=no
  8642. else
  8643. lt_cv_archive_cmds_need_lc=yes
  8644. fi
  8645. allow_undefined_flag=$lt_save_allow_undefined_flag
  8646. else
  8647. cat conftest.err 1>&5
  8648. fi
  8649. $RM conftest*
  8650. fi
  8651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8652. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8653. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8654. ;;
  8655. esac
  8656. fi
  8657. ;;
  8658. esac
  8659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8660. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8661. if test "$GCC" = yes; then
  8662. case $host_os in
  8663. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8664. *) lt_awk_arg="/^libraries:/" ;;
  8665. esac
  8666. case $host_os in
  8667. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8668. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8669. esac
  8670. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8671. case $lt_search_path_spec in
  8672. *\;*)
  8673. # if the path contains ";" then we assume it to be the separator
  8674. # otherwise default to the standard path separator (i.e. ":") - it is
  8675. # assumed that no part of a normal pathname contains ";" but that should
  8676. # okay in the real world where ";" in dirpaths is itself problematic.
  8677. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8678. ;;
  8679. *)
  8680. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8681. ;;
  8682. esac
  8683. # Ok, now we have the path, separated by spaces, we can step through it
  8684. # and add multilib dir if necessary.
  8685. lt_tmp_lt_search_path_spec=
  8686. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8687. for lt_sys_path in $lt_search_path_spec; do
  8688. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8689. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8690. else
  8691. test -d "$lt_sys_path" && \
  8692. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8693. fi
  8694. done
  8695. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8696. BEGIN {RS=" "; FS="/|\n";} {
  8697. lt_foo="";
  8698. lt_count=0;
  8699. for (lt_i = NF; lt_i > 0; lt_i--) {
  8700. if ($lt_i != "" && $lt_i != ".") {
  8701. if ($lt_i == "..") {
  8702. lt_count++;
  8703. } else {
  8704. if (lt_count == 0) {
  8705. lt_foo="/" $lt_i lt_foo;
  8706. } else {
  8707. lt_count--;
  8708. }
  8709. }
  8710. }
  8711. }
  8712. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8713. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8714. }'`
  8715. # AWK program above erroneously prepends '/' to C:/dos/paths
  8716. # for these hosts.
  8717. case $host_os in
  8718. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8719. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8720. esac
  8721. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8722. else
  8723. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8724. fi
  8725. library_names_spec=
  8726. libname_spec='lib$name'
  8727. soname_spec=
  8728. shrext_cmds=".so"
  8729. postinstall_cmds=
  8730. postuninstall_cmds=
  8731. finish_cmds=
  8732. finish_eval=
  8733. shlibpath_var=
  8734. shlibpath_overrides_runpath=unknown
  8735. version_type=none
  8736. dynamic_linker="$host_os ld.so"
  8737. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8738. need_lib_prefix=unknown
  8739. hardcode_into_libs=no
  8740. # when you set need_version to no, make sure it does not cause -set_version
  8741. # flags to be left without arguments
  8742. need_version=unknown
  8743. case $host_os in
  8744. aix3*)
  8745. version_type=linux # correct to gnu/linux during the next big refactor
  8746. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8747. shlibpath_var=LIBPATH
  8748. # AIX 3 has no versioning support, so we append a major version to the name.
  8749. soname_spec='${libname}${release}${shared_ext}$major'
  8750. ;;
  8751. aix[4-9]*)
  8752. version_type=linux # correct to gnu/linux during the next big refactor
  8753. need_lib_prefix=no
  8754. need_version=no
  8755. hardcode_into_libs=yes
  8756. if test "$host_cpu" = ia64; then
  8757. # AIX 5 supports IA64
  8758. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8759. shlibpath_var=LD_LIBRARY_PATH
  8760. else
  8761. # With GCC up to 2.95.x, collect2 would create an import file
  8762. # for dependence libraries. The import file would start with
  8763. # the line `#! .'. This would cause the generated library to
  8764. # depend on `.', always an invalid library. This was fixed in
  8765. # development snapshots of GCC prior to 3.0.
  8766. case $host_os in
  8767. aix4 | aix4.[01] | aix4.[01].*)
  8768. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8769. echo ' yes '
  8770. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8771. :
  8772. else
  8773. can_build_shared=no
  8774. fi
  8775. ;;
  8776. esac
  8777. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8778. # soname into executable. Probably we can add versioning support to
  8779. # collect2, so additional links can be useful in future.
  8780. if test "$aix_use_runtimelinking" = yes; then
  8781. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8782. # instead of lib<name>.a to let people know that these are not
  8783. # typical AIX shared libraries.
  8784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8785. else
  8786. # We preserve .a as extension for shared libraries through AIX4.2
  8787. # and later when we are not doing run time linking.
  8788. library_names_spec='${libname}${release}.a $libname.a'
  8789. soname_spec='${libname}${release}${shared_ext}$major'
  8790. fi
  8791. shlibpath_var=LIBPATH
  8792. fi
  8793. ;;
  8794. amigaos*)
  8795. case $host_cpu in
  8796. powerpc)
  8797. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8798. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8800. ;;
  8801. m68k)
  8802. library_names_spec='$libname.ixlibrary $libname.a'
  8803. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8804. 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'
  8805. ;;
  8806. esac
  8807. ;;
  8808. beos*)
  8809. library_names_spec='${libname}${shared_ext}'
  8810. dynamic_linker="$host_os ld.so"
  8811. shlibpath_var=LIBRARY_PATH
  8812. ;;
  8813. bsdi[45]*)
  8814. version_type=linux # correct to gnu/linux during the next big refactor
  8815. need_version=no
  8816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8817. soname_spec='${libname}${release}${shared_ext}$major'
  8818. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8819. shlibpath_var=LD_LIBRARY_PATH
  8820. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8821. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8822. # the default ld.so.conf also contains /usr/contrib/lib and
  8823. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8824. # libtool to hard-code these into programs
  8825. ;;
  8826. cygwin* | mingw* | pw32* | cegcc*)
  8827. version_type=windows
  8828. shrext_cmds=".dll"
  8829. need_version=no
  8830. need_lib_prefix=no
  8831. case $GCC,$cc_basename in
  8832. yes,*)
  8833. # gcc
  8834. library_names_spec='$libname.dll.a'
  8835. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8836. postinstall_cmds='base_file=`basename \${file}`~
  8837. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8838. dldir=$destdir/`dirname \$dlpath`~
  8839. test -d \$dldir || mkdir -p \$dldir~
  8840. $install_prog $dir/$dlname \$dldir/$dlname~
  8841. chmod a+x \$dldir/$dlname~
  8842. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8843. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8844. fi'
  8845. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8846. dlpath=$dir/\$dldll~
  8847. $RM \$dlpath'
  8848. shlibpath_overrides_runpath=yes
  8849. case $host_os in
  8850. cygwin*)
  8851. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8852. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8853. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8854. ;;
  8855. mingw* | cegcc*)
  8856. # MinGW DLLs use traditional 'lib' prefix
  8857. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8858. ;;
  8859. pw32*)
  8860. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8861. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8862. ;;
  8863. esac
  8864. dynamic_linker='Win32 ld.exe'
  8865. ;;
  8866. *,cl*)
  8867. # Native MSVC
  8868. libname_spec='$name'
  8869. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8870. library_names_spec='${libname}.dll.lib'
  8871. case $build_os in
  8872. mingw*)
  8873. sys_lib_search_path_spec=
  8874. lt_save_ifs=$IFS
  8875. IFS=';'
  8876. for lt_path in $LIB
  8877. do
  8878. IFS=$lt_save_ifs
  8879. # Let DOS variable expansion print the short 8.3 style file name.
  8880. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8881. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8882. done
  8883. IFS=$lt_save_ifs
  8884. # Convert to MSYS style.
  8885. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8886. ;;
  8887. cygwin*)
  8888. # Convert to unix form, then to dos form, then back to unix form
  8889. # but this time dos style (no spaces!) so that the unix form looks
  8890. # like /cygdrive/c/PROGRA~1:/cygdr...
  8891. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8892. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8893. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8894. ;;
  8895. *)
  8896. sys_lib_search_path_spec="$LIB"
  8897. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8898. # It is most probably a Windows format PATH.
  8899. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8900. else
  8901. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8902. fi
  8903. # FIXME: find the short name or the path components, as spaces are
  8904. # common. (e.g. "Program Files" -> "PROGRA~1")
  8905. ;;
  8906. esac
  8907. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8908. postinstall_cmds='base_file=`basename \${file}`~
  8909. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8910. dldir=$destdir/`dirname \$dlpath`~
  8911. test -d \$dldir || mkdir -p \$dldir~
  8912. $install_prog $dir/$dlname \$dldir/$dlname'
  8913. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8914. dlpath=$dir/\$dldll~
  8915. $RM \$dlpath'
  8916. shlibpath_overrides_runpath=yes
  8917. dynamic_linker='Win32 link.exe'
  8918. ;;
  8919. *)
  8920. # Assume MSVC wrapper
  8921. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8922. dynamic_linker='Win32 ld.exe'
  8923. ;;
  8924. esac
  8925. # FIXME: first we should search . and the directory the executable is in
  8926. shlibpath_var=PATH
  8927. ;;
  8928. darwin* | rhapsody*)
  8929. dynamic_linker="$host_os dyld"
  8930. version_type=darwin
  8931. need_lib_prefix=no
  8932. need_version=no
  8933. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8934. soname_spec='${libname}${release}${major}$shared_ext'
  8935. shlibpath_overrides_runpath=yes
  8936. shlibpath_var=DYLD_LIBRARY_PATH
  8937. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8938. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8939. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8940. ;;
  8941. dgux*)
  8942. version_type=linux # correct to gnu/linux during the next big refactor
  8943. need_lib_prefix=no
  8944. need_version=no
  8945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8946. soname_spec='${libname}${release}${shared_ext}$major'
  8947. shlibpath_var=LD_LIBRARY_PATH
  8948. ;;
  8949. freebsd* | dragonfly*)
  8950. # DragonFly does not have aout. When/if they implement a new
  8951. # versioning mechanism, adjust this.
  8952. if test -x /usr/bin/objformat; then
  8953. objformat=`/usr/bin/objformat`
  8954. else
  8955. case $host_os in
  8956. freebsd[23].*) objformat=aout ;;
  8957. *) objformat=elf ;;
  8958. esac
  8959. fi
  8960. version_type=freebsd-$objformat
  8961. case $version_type in
  8962. freebsd-elf*)
  8963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8964. need_version=no
  8965. need_lib_prefix=no
  8966. ;;
  8967. freebsd-*)
  8968. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8969. need_version=yes
  8970. ;;
  8971. esac
  8972. shlibpath_var=LD_LIBRARY_PATH
  8973. case $host_os in
  8974. freebsd2.*)
  8975. shlibpath_overrides_runpath=yes
  8976. ;;
  8977. freebsd3.[01]* | freebsdelf3.[01]*)
  8978. shlibpath_overrides_runpath=yes
  8979. hardcode_into_libs=yes
  8980. ;;
  8981. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8982. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8983. shlibpath_overrides_runpath=no
  8984. hardcode_into_libs=yes
  8985. ;;
  8986. *) # from 4.6 on, and DragonFly
  8987. shlibpath_overrides_runpath=yes
  8988. hardcode_into_libs=yes
  8989. ;;
  8990. esac
  8991. ;;
  8992. gnu*)
  8993. version_type=linux # correct to gnu/linux during the next big refactor
  8994. need_lib_prefix=no
  8995. need_version=no
  8996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8997. soname_spec='${libname}${release}${shared_ext}$major'
  8998. shlibpath_var=LD_LIBRARY_PATH
  8999. shlibpath_overrides_runpath=no
  9000. hardcode_into_libs=yes
  9001. ;;
  9002. haiku*)
  9003. version_type=linux # correct to gnu/linux during the next big refactor
  9004. need_lib_prefix=no
  9005. need_version=no
  9006. dynamic_linker="$host_os runtime_loader"
  9007. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9008. soname_spec='${libname}${release}${shared_ext}$major'
  9009. shlibpath_var=LIBRARY_PATH
  9010. shlibpath_overrides_runpath=yes
  9011. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9012. hardcode_into_libs=yes
  9013. ;;
  9014. hpux9* | hpux10* | hpux11*)
  9015. # Give a soname corresponding to the major version so that dld.sl refuses to
  9016. # link against other versions.
  9017. version_type=sunos
  9018. need_lib_prefix=no
  9019. need_version=no
  9020. case $host_cpu in
  9021. ia64*)
  9022. shrext_cmds='.so'
  9023. hardcode_into_libs=yes
  9024. dynamic_linker="$host_os dld.so"
  9025. shlibpath_var=LD_LIBRARY_PATH
  9026. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9028. soname_spec='${libname}${release}${shared_ext}$major'
  9029. if test "X$HPUX_IA64_MODE" = X32; then
  9030. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9031. else
  9032. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9033. fi
  9034. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9035. ;;
  9036. hppa*64*)
  9037. shrext_cmds='.sl'
  9038. hardcode_into_libs=yes
  9039. dynamic_linker="$host_os dld.sl"
  9040. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9041. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9043. soname_spec='${libname}${release}${shared_ext}$major'
  9044. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9045. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9046. ;;
  9047. *)
  9048. shrext_cmds='.sl'
  9049. dynamic_linker="$host_os dld.sl"
  9050. shlibpath_var=SHLIB_PATH
  9051. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9053. soname_spec='${libname}${release}${shared_ext}$major'
  9054. ;;
  9055. esac
  9056. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9057. postinstall_cmds='chmod 555 $lib'
  9058. # or fails outright, so override atomically:
  9059. install_override_mode=555
  9060. ;;
  9061. interix[3-9]*)
  9062. version_type=linux # correct to gnu/linux during the next big refactor
  9063. need_lib_prefix=no
  9064. need_version=no
  9065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9066. soname_spec='${libname}${release}${shared_ext}$major'
  9067. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9068. shlibpath_var=LD_LIBRARY_PATH
  9069. shlibpath_overrides_runpath=no
  9070. hardcode_into_libs=yes
  9071. ;;
  9072. irix5* | irix6* | nonstopux*)
  9073. case $host_os in
  9074. nonstopux*) version_type=nonstopux ;;
  9075. *)
  9076. if test "$lt_cv_prog_gnu_ld" = yes; then
  9077. version_type=linux # correct to gnu/linux during the next big refactor
  9078. else
  9079. version_type=irix
  9080. fi ;;
  9081. esac
  9082. need_lib_prefix=no
  9083. need_version=no
  9084. soname_spec='${libname}${release}${shared_ext}$major'
  9085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9086. case $host_os in
  9087. irix5* | nonstopux*)
  9088. libsuff= shlibsuff=
  9089. ;;
  9090. *)
  9091. case $LD in # libtool.m4 will add one of these switches to LD
  9092. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9093. libsuff= shlibsuff= libmagic=32-bit;;
  9094. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9095. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9096. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9097. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9098. *) libsuff= shlibsuff= libmagic=never-match;;
  9099. esac
  9100. ;;
  9101. esac
  9102. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9103. shlibpath_overrides_runpath=no
  9104. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9105. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9106. hardcode_into_libs=yes
  9107. ;;
  9108. # No shared lib support for Linux oldld, aout, or coff.
  9109. linux*oldld* | linux*aout* | linux*coff*)
  9110. dynamic_linker=no
  9111. ;;
  9112. # This must be glibc/ELF.
  9113. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9114. version_type=linux # correct to gnu/linux during the next big refactor
  9115. need_lib_prefix=no
  9116. need_version=no
  9117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9118. soname_spec='${libname}${release}${shared_ext}$major'
  9119. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9120. shlibpath_var=LD_LIBRARY_PATH
  9121. shlibpath_overrides_runpath=no
  9122. # Some binutils ld are patched to set DT_RUNPATH
  9123. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9124. $as_echo_n "(cached) " >&6
  9125. else
  9126. lt_cv_shlibpath_overrides_runpath=no
  9127. save_LDFLAGS=$LDFLAGS
  9128. save_libdir=$libdir
  9129. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9130. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9132. /* end confdefs.h. */
  9133. int
  9134. main ()
  9135. {
  9136. ;
  9137. return 0;
  9138. }
  9139. _ACEOF
  9140. if ac_fn_c_try_link "$LINENO"; then :
  9141. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9142. lt_cv_shlibpath_overrides_runpath=yes
  9143. fi
  9144. fi
  9145. rm -f core conftest.err conftest.$ac_objext \
  9146. conftest$ac_exeext conftest.$ac_ext
  9147. LDFLAGS=$save_LDFLAGS
  9148. libdir=$save_libdir
  9149. fi
  9150. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9151. # This implies no fast_install, which is unacceptable.
  9152. # Some rework will be needed to allow for fast_install
  9153. # before this can be enabled.
  9154. hardcode_into_libs=yes
  9155. # Append ld.so.conf contents to the search path
  9156. if test -f /etc/ld.so.conf; then
  9157. 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' ' '`
  9158. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9159. fi
  9160. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9161. # powerpc, because MkLinux only supported shared libraries with the
  9162. # GNU dynamic linker. Since this was broken with cross compilers,
  9163. # most powerpc-linux boxes support dynamic linking these days and
  9164. # people can always --disable-shared, the test was removed, and we
  9165. # assume the GNU/Linux dynamic linker is in use.
  9166. dynamic_linker='GNU/Linux ld.so'
  9167. ;;
  9168. netbsdelf*-gnu)
  9169. version_type=linux
  9170. need_lib_prefix=no
  9171. need_version=no
  9172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9173. soname_spec='${libname}${release}${shared_ext}$major'
  9174. shlibpath_var=LD_LIBRARY_PATH
  9175. shlibpath_overrides_runpath=no
  9176. hardcode_into_libs=yes
  9177. dynamic_linker='NetBSD ld.elf_so'
  9178. ;;
  9179. netbsd*)
  9180. version_type=sunos
  9181. need_lib_prefix=no
  9182. need_version=no
  9183. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9185. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9186. dynamic_linker='NetBSD (a.out) ld.so'
  9187. else
  9188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9189. soname_spec='${libname}${release}${shared_ext}$major'
  9190. dynamic_linker='NetBSD ld.elf_so'
  9191. fi
  9192. shlibpath_var=LD_LIBRARY_PATH
  9193. shlibpath_overrides_runpath=yes
  9194. hardcode_into_libs=yes
  9195. ;;
  9196. newsos6)
  9197. version_type=linux # correct to gnu/linux during the next big refactor
  9198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9199. shlibpath_var=LD_LIBRARY_PATH
  9200. shlibpath_overrides_runpath=yes
  9201. ;;
  9202. *nto* | *qnx*)
  9203. version_type=qnx
  9204. need_lib_prefix=no
  9205. need_version=no
  9206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9207. soname_spec='${libname}${release}${shared_ext}$major'
  9208. shlibpath_var=LD_LIBRARY_PATH
  9209. shlibpath_overrides_runpath=no
  9210. hardcode_into_libs=yes
  9211. dynamic_linker='ldqnx.so'
  9212. ;;
  9213. openbsd*)
  9214. version_type=sunos
  9215. sys_lib_dlsearch_path_spec="/usr/lib"
  9216. need_lib_prefix=no
  9217. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9218. case $host_os in
  9219. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9220. *) need_version=no ;;
  9221. esac
  9222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9223. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9224. shlibpath_var=LD_LIBRARY_PATH
  9225. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9226. case $host_os in
  9227. openbsd2.[89] | openbsd2.[89].*)
  9228. shlibpath_overrides_runpath=no
  9229. ;;
  9230. *)
  9231. shlibpath_overrides_runpath=yes
  9232. ;;
  9233. esac
  9234. else
  9235. shlibpath_overrides_runpath=yes
  9236. fi
  9237. ;;
  9238. os2*)
  9239. libname_spec='$name'
  9240. shrext_cmds=".dll"
  9241. need_lib_prefix=no
  9242. library_names_spec='$libname${shared_ext} $libname.a'
  9243. dynamic_linker='OS/2 ld.exe'
  9244. shlibpath_var=LIBPATH
  9245. ;;
  9246. osf3* | osf4* | osf5*)
  9247. version_type=osf
  9248. need_lib_prefix=no
  9249. need_version=no
  9250. soname_spec='${libname}${release}${shared_ext}$major'
  9251. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9252. shlibpath_var=LD_LIBRARY_PATH
  9253. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9254. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9255. ;;
  9256. rdos*)
  9257. dynamic_linker=no
  9258. ;;
  9259. solaris*)
  9260. version_type=linux # correct to gnu/linux during the next big refactor
  9261. need_lib_prefix=no
  9262. need_version=no
  9263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9264. soname_spec='${libname}${release}${shared_ext}$major'
  9265. shlibpath_var=LD_LIBRARY_PATH
  9266. shlibpath_overrides_runpath=yes
  9267. hardcode_into_libs=yes
  9268. # ldd complains unless libraries are executable
  9269. postinstall_cmds='chmod +x $lib'
  9270. ;;
  9271. sunos4*)
  9272. version_type=sunos
  9273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9274. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9275. shlibpath_var=LD_LIBRARY_PATH
  9276. shlibpath_overrides_runpath=yes
  9277. if test "$with_gnu_ld" = yes; then
  9278. need_lib_prefix=no
  9279. fi
  9280. need_version=yes
  9281. ;;
  9282. sysv4 | sysv4.3*)
  9283. version_type=linux # correct to gnu/linux during the next big refactor
  9284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9285. soname_spec='${libname}${release}${shared_ext}$major'
  9286. shlibpath_var=LD_LIBRARY_PATH
  9287. case $host_vendor in
  9288. sni)
  9289. shlibpath_overrides_runpath=no
  9290. need_lib_prefix=no
  9291. runpath_var=LD_RUN_PATH
  9292. ;;
  9293. siemens)
  9294. need_lib_prefix=no
  9295. ;;
  9296. motorola)
  9297. need_lib_prefix=no
  9298. need_version=no
  9299. shlibpath_overrides_runpath=no
  9300. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9301. ;;
  9302. esac
  9303. ;;
  9304. sysv4*MP*)
  9305. if test -d /usr/nec ;then
  9306. version_type=linux # correct to gnu/linux during the next big refactor
  9307. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9308. soname_spec='$libname${shared_ext}.$major'
  9309. shlibpath_var=LD_LIBRARY_PATH
  9310. fi
  9311. ;;
  9312. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9313. version_type=freebsd-elf
  9314. need_lib_prefix=no
  9315. need_version=no
  9316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9317. soname_spec='${libname}${release}${shared_ext}$major'
  9318. shlibpath_var=LD_LIBRARY_PATH
  9319. shlibpath_overrides_runpath=yes
  9320. hardcode_into_libs=yes
  9321. if test "$with_gnu_ld" = yes; then
  9322. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9323. else
  9324. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9325. case $host_os in
  9326. sco3.2v5*)
  9327. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9328. ;;
  9329. esac
  9330. fi
  9331. sys_lib_dlsearch_path_spec='/usr/lib'
  9332. ;;
  9333. tpf*)
  9334. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9335. version_type=linux # correct to gnu/linux during the next big refactor
  9336. need_lib_prefix=no
  9337. need_version=no
  9338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9339. shlibpath_var=LD_LIBRARY_PATH
  9340. shlibpath_overrides_runpath=no
  9341. hardcode_into_libs=yes
  9342. ;;
  9343. uts4*)
  9344. version_type=linux # correct to gnu/linux during the next big refactor
  9345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9346. soname_spec='${libname}${release}${shared_ext}$major'
  9347. shlibpath_var=LD_LIBRARY_PATH
  9348. ;;
  9349. *)
  9350. dynamic_linker=no
  9351. ;;
  9352. esac
  9353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9354. $as_echo "$dynamic_linker" >&6; }
  9355. test "$dynamic_linker" = no && can_build_shared=no
  9356. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9357. if test "$GCC" = yes; then
  9358. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9359. fi
  9360. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9361. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9362. fi
  9363. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9364. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9365. fi
  9366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9367. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9368. hardcode_action=
  9369. if test -n "$hardcode_libdir_flag_spec" ||
  9370. test -n "$runpath_var" ||
  9371. test "X$hardcode_automatic" = "Xyes" ; then
  9372. # We can hardcode non-existent directories.
  9373. if test "$hardcode_direct" != no &&
  9374. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9375. # have to relink, otherwise we might link with an installed library
  9376. # when we should be linking with a yet-to-be-installed one
  9377. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9378. test "$hardcode_minus_L" != no; then
  9379. # Linking always hardcodes the temporary library directory.
  9380. hardcode_action=relink
  9381. else
  9382. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9383. hardcode_action=immediate
  9384. fi
  9385. else
  9386. # We cannot hardcode anything, or else we can only hardcode existing
  9387. # directories.
  9388. hardcode_action=unsupported
  9389. fi
  9390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9391. $as_echo "$hardcode_action" >&6; }
  9392. if test "$hardcode_action" = relink ||
  9393. test "$inherit_rpath" = yes; then
  9394. # Fast installation is not supported
  9395. enable_fast_install=no
  9396. elif test "$shlibpath_overrides_runpath" = yes ||
  9397. test "$enable_shared" = no; then
  9398. # Fast installation is not necessary
  9399. enable_fast_install=needless
  9400. fi
  9401. if test "x$enable_dlopen" != xyes; then
  9402. enable_dlopen=unknown
  9403. enable_dlopen_self=unknown
  9404. enable_dlopen_self_static=unknown
  9405. else
  9406. lt_cv_dlopen=no
  9407. lt_cv_dlopen_libs=
  9408. case $host_os in
  9409. beos*)
  9410. lt_cv_dlopen="load_add_on"
  9411. lt_cv_dlopen_libs=
  9412. lt_cv_dlopen_self=yes
  9413. ;;
  9414. mingw* | pw32* | cegcc*)
  9415. lt_cv_dlopen="LoadLibrary"
  9416. lt_cv_dlopen_libs=
  9417. ;;
  9418. cygwin*)
  9419. lt_cv_dlopen="dlopen"
  9420. lt_cv_dlopen_libs=
  9421. ;;
  9422. darwin*)
  9423. # if libdl is installed we need to link against it
  9424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9425. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9426. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9427. $as_echo_n "(cached) " >&6
  9428. else
  9429. ac_check_lib_save_LIBS=$LIBS
  9430. LIBS="-ldl $LIBS"
  9431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9432. /* end confdefs.h. */
  9433. /* Override any GCC internal prototype to avoid an error.
  9434. Use char because int might match the return type of a GCC
  9435. builtin and then its argument prototype would still apply. */
  9436. #ifdef __cplusplus
  9437. extern "C"
  9438. #endif
  9439. char dlopen ();
  9440. int
  9441. main ()
  9442. {
  9443. return dlopen ();
  9444. ;
  9445. return 0;
  9446. }
  9447. _ACEOF
  9448. if ac_fn_c_try_link "$LINENO"; then :
  9449. ac_cv_lib_dl_dlopen=yes
  9450. else
  9451. ac_cv_lib_dl_dlopen=no
  9452. fi
  9453. rm -f core conftest.err conftest.$ac_objext \
  9454. conftest$ac_exeext conftest.$ac_ext
  9455. LIBS=$ac_check_lib_save_LIBS
  9456. fi
  9457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9458. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9459. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9460. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9461. else
  9462. lt_cv_dlopen="dyld"
  9463. lt_cv_dlopen_libs=
  9464. lt_cv_dlopen_self=yes
  9465. fi
  9466. ;;
  9467. *)
  9468. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9469. if test "x$ac_cv_func_shl_load" = xyes; then :
  9470. lt_cv_dlopen="shl_load"
  9471. else
  9472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9473. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9474. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9475. $as_echo_n "(cached) " >&6
  9476. else
  9477. ac_check_lib_save_LIBS=$LIBS
  9478. LIBS="-ldld $LIBS"
  9479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9480. /* end confdefs.h. */
  9481. /* Override any GCC internal prototype to avoid an error.
  9482. Use char because int might match the return type of a GCC
  9483. builtin and then its argument prototype would still apply. */
  9484. #ifdef __cplusplus
  9485. extern "C"
  9486. #endif
  9487. char shl_load ();
  9488. int
  9489. main ()
  9490. {
  9491. return shl_load ();
  9492. ;
  9493. return 0;
  9494. }
  9495. _ACEOF
  9496. if ac_fn_c_try_link "$LINENO"; then :
  9497. ac_cv_lib_dld_shl_load=yes
  9498. else
  9499. ac_cv_lib_dld_shl_load=no
  9500. fi
  9501. rm -f core conftest.err conftest.$ac_objext \
  9502. conftest$ac_exeext conftest.$ac_ext
  9503. LIBS=$ac_check_lib_save_LIBS
  9504. fi
  9505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9506. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9507. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9508. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9509. else
  9510. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9511. if test "x$ac_cv_func_dlopen" = xyes; then :
  9512. lt_cv_dlopen="dlopen"
  9513. else
  9514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9515. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9516. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9517. $as_echo_n "(cached) " >&6
  9518. else
  9519. ac_check_lib_save_LIBS=$LIBS
  9520. LIBS="-ldl $LIBS"
  9521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9522. /* end confdefs.h. */
  9523. /* Override any GCC internal prototype to avoid an error.
  9524. Use char because int might match the return type of a GCC
  9525. builtin and then its argument prototype would still apply. */
  9526. #ifdef __cplusplus
  9527. extern "C"
  9528. #endif
  9529. char dlopen ();
  9530. int
  9531. main ()
  9532. {
  9533. return dlopen ();
  9534. ;
  9535. return 0;
  9536. }
  9537. _ACEOF
  9538. if ac_fn_c_try_link "$LINENO"; then :
  9539. ac_cv_lib_dl_dlopen=yes
  9540. else
  9541. ac_cv_lib_dl_dlopen=no
  9542. fi
  9543. rm -f core conftest.err conftest.$ac_objext \
  9544. conftest$ac_exeext conftest.$ac_ext
  9545. LIBS=$ac_check_lib_save_LIBS
  9546. fi
  9547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9548. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9549. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9550. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9551. else
  9552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9553. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9554. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9555. $as_echo_n "(cached) " >&6
  9556. else
  9557. ac_check_lib_save_LIBS=$LIBS
  9558. LIBS="-lsvld $LIBS"
  9559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9560. /* end confdefs.h. */
  9561. /* Override any GCC internal prototype to avoid an error.
  9562. Use char because int might match the return type of a GCC
  9563. builtin and then its argument prototype would still apply. */
  9564. #ifdef __cplusplus
  9565. extern "C"
  9566. #endif
  9567. char dlopen ();
  9568. int
  9569. main ()
  9570. {
  9571. return dlopen ();
  9572. ;
  9573. return 0;
  9574. }
  9575. _ACEOF
  9576. if ac_fn_c_try_link "$LINENO"; then :
  9577. ac_cv_lib_svld_dlopen=yes
  9578. else
  9579. ac_cv_lib_svld_dlopen=no
  9580. fi
  9581. rm -f core conftest.err conftest.$ac_objext \
  9582. conftest$ac_exeext conftest.$ac_ext
  9583. LIBS=$ac_check_lib_save_LIBS
  9584. fi
  9585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9586. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9587. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9588. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9589. else
  9590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9591. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9592. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9593. $as_echo_n "(cached) " >&6
  9594. else
  9595. ac_check_lib_save_LIBS=$LIBS
  9596. LIBS="-ldld $LIBS"
  9597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9598. /* end confdefs.h. */
  9599. /* Override any GCC internal prototype to avoid an error.
  9600. Use char because int might match the return type of a GCC
  9601. builtin and then its argument prototype would still apply. */
  9602. #ifdef __cplusplus
  9603. extern "C"
  9604. #endif
  9605. char dld_link ();
  9606. int
  9607. main ()
  9608. {
  9609. return dld_link ();
  9610. ;
  9611. return 0;
  9612. }
  9613. _ACEOF
  9614. if ac_fn_c_try_link "$LINENO"; then :
  9615. ac_cv_lib_dld_dld_link=yes
  9616. else
  9617. ac_cv_lib_dld_dld_link=no
  9618. fi
  9619. rm -f core conftest.err conftest.$ac_objext \
  9620. conftest$ac_exeext conftest.$ac_ext
  9621. LIBS=$ac_check_lib_save_LIBS
  9622. fi
  9623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9624. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9625. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9626. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9627. fi
  9628. fi
  9629. fi
  9630. fi
  9631. fi
  9632. fi
  9633. ;;
  9634. esac
  9635. if test "x$lt_cv_dlopen" != xno; then
  9636. enable_dlopen=yes
  9637. else
  9638. enable_dlopen=no
  9639. fi
  9640. case $lt_cv_dlopen in
  9641. dlopen)
  9642. save_CPPFLAGS="$CPPFLAGS"
  9643. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9644. save_LDFLAGS="$LDFLAGS"
  9645. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9646. save_LIBS="$LIBS"
  9647. LIBS="$lt_cv_dlopen_libs $LIBS"
  9648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9649. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9650. if ${lt_cv_dlopen_self+:} false; then :
  9651. $as_echo_n "(cached) " >&6
  9652. else
  9653. if test "$cross_compiling" = yes; then :
  9654. lt_cv_dlopen_self=cross
  9655. else
  9656. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9657. lt_status=$lt_dlunknown
  9658. cat > conftest.$ac_ext <<_LT_EOF
  9659. #line $LINENO "configure"
  9660. #include "confdefs.h"
  9661. #if HAVE_DLFCN_H
  9662. #include <dlfcn.h>
  9663. #endif
  9664. #include <stdio.h>
  9665. #ifdef RTLD_GLOBAL
  9666. # define LT_DLGLOBAL RTLD_GLOBAL
  9667. #else
  9668. # ifdef DL_GLOBAL
  9669. # define LT_DLGLOBAL DL_GLOBAL
  9670. # else
  9671. # define LT_DLGLOBAL 0
  9672. # endif
  9673. #endif
  9674. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9675. find out it does not work in some platform. */
  9676. #ifndef LT_DLLAZY_OR_NOW
  9677. # ifdef RTLD_LAZY
  9678. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9679. # else
  9680. # ifdef DL_LAZY
  9681. # define LT_DLLAZY_OR_NOW DL_LAZY
  9682. # else
  9683. # ifdef RTLD_NOW
  9684. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9685. # else
  9686. # ifdef DL_NOW
  9687. # define LT_DLLAZY_OR_NOW DL_NOW
  9688. # else
  9689. # define LT_DLLAZY_OR_NOW 0
  9690. # endif
  9691. # endif
  9692. # endif
  9693. # endif
  9694. #endif
  9695. /* When -fvisbility=hidden is used, assume the code has been annotated
  9696. correspondingly for the symbols needed. */
  9697. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9698. int fnord () __attribute__((visibility("default")));
  9699. #endif
  9700. int fnord () { return 42; }
  9701. int main ()
  9702. {
  9703. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9704. int status = $lt_dlunknown;
  9705. if (self)
  9706. {
  9707. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9708. else
  9709. {
  9710. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9711. else puts (dlerror ());
  9712. }
  9713. /* dlclose (self); */
  9714. }
  9715. else
  9716. puts (dlerror ());
  9717. return status;
  9718. }
  9719. _LT_EOF
  9720. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9721. (eval $ac_link) 2>&5
  9722. ac_status=$?
  9723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9724. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9725. (./conftest; exit; ) >&5 2>/dev/null
  9726. lt_status=$?
  9727. case x$lt_status in
  9728. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9729. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9730. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9731. esac
  9732. else :
  9733. # compilation failed
  9734. lt_cv_dlopen_self=no
  9735. fi
  9736. fi
  9737. rm -fr conftest*
  9738. fi
  9739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9740. $as_echo "$lt_cv_dlopen_self" >&6; }
  9741. if test "x$lt_cv_dlopen_self" = xyes; then
  9742. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9744. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9745. if ${lt_cv_dlopen_self_static+:} false; then :
  9746. $as_echo_n "(cached) " >&6
  9747. else
  9748. if test "$cross_compiling" = yes; then :
  9749. lt_cv_dlopen_self_static=cross
  9750. else
  9751. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9752. lt_status=$lt_dlunknown
  9753. cat > conftest.$ac_ext <<_LT_EOF
  9754. #line $LINENO "configure"
  9755. #include "confdefs.h"
  9756. #if HAVE_DLFCN_H
  9757. #include <dlfcn.h>
  9758. #endif
  9759. #include <stdio.h>
  9760. #ifdef RTLD_GLOBAL
  9761. # define LT_DLGLOBAL RTLD_GLOBAL
  9762. #else
  9763. # ifdef DL_GLOBAL
  9764. # define LT_DLGLOBAL DL_GLOBAL
  9765. # else
  9766. # define LT_DLGLOBAL 0
  9767. # endif
  9768. #endif
  9769. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9770. find out it does not work in some platform. */
  9771. #ifndef LT_DLLAZY_OR_NOW
  9772. # ifdef RTLD_LAZY
  9773. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9774. # else
  9775. # ifdef DL_LAZY
  9776. # define LT_DLLAZY_OR_NOW DL_LAZY
  9777. # else
  9778. # ifdef RTLD_NOW
  9779. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9780. # else
  9781. # ifdef DL_NOW
  9782. # define LT_DLLAZY_OR_NOW DL_NOW
  9783. # else
  9784. # define LT_DLLAZY_OR_NOW 0
  9785. # endif
  9786. # endif
  9787. # endif
  9788. # endif
  9789. #endif
  9790. /* When -fvisbility=hidden is used, assume the code has been annotated
  9791. correspondingly for the symbols needed. */
  9792. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9793. int fnord () __attribute__((visibility("default")));
  9794. #endif
  9795. int fnord () { return 42; }
  9796. int main ()
  9797. {
  9798. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9799. int status = $lt_dlunknown;
  9800. if (self)
  9801. {
  9802. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9803. else
  9804. {
  9805. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9806. else puts (dlerror ());
  9807. }
  9808. /* dlclose (self); */
  9809. }
  9810. else
  9811. puts (dlerror ());
  9812. return status;
  9813. }
  9814. _LT_EOF
  9815. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9816. (eval $ac_link) 2>&5
  9817. ac_status=$?
  9818. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9819. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9820. (./conftest; exit; ) >&5 2>/dev/null
  9821. lt_status=$?
  9822. case x$lt_status in
  9823. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9824. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9825. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9826. esac
  9827. else :
  9828. # compilation failed
  9829. lt_cv_dlopen_self_static=no
  9830. fi
  9831. fi
  9832. rm -fr conftest*
  9833. fi
  9834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9835. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9836. fi
  9837. CPPFLAGS="$save_CPPFLAGS"
  9838. LDFLAGS="$save_LDFLAGS"
  9839. LIBS="$save_LIBS"
  9840. ;;
  9841. esac
  9842. case $lt_cv_dlopen_self in
  9843. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9844. *) enable_dlopen_self=unknown ;;
  9845. esac
  9846. case $lt_cv_dlopen_self_static in
  9847. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9848. *) enable_dlopen_self_static=unknown ;;
  9849. esac
  9850. fi
  9851. striplib=
  9852. old_striplib=
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9854. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9855. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9856. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9857. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9859. $as_echo "yes" >&6; }
  9860. else
  9861. # FIXME - insert some real tests, host_os isn't really good enough
  9862. case $host_os in
  9863. darwin*)
  9864. if test -n "$STRIP" ; then
  9865. striplib="$STRIP -x"
  9866. old_striplib="$STRIP -S"
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9868. $as_echo "yes" >&6; }
  9869. else
  9870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9871. $as_echo "no" >&6; }
  9872. fi
  9873. ;;
  9874. *)
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9876. $as_echo "no" >&6; }
  9877. ;;
  9878. esac
  9879. fi
  9880. # Report which library types will actually be built
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9882. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9884. $as_echo "$can_build_shared" >&6; }
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9886. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9887. test "$can_build_shared" = "no" && enable_shared=no
  9888. # On AIX, shared libraries and static libraries use the same namespace, and
  9889. # are all built from PIC.
  9890. case $host_os in
  9891. aix3*)
  9892. test "$enable_shared" = yes && enable_static=no
  9893. if test -n "$RANLIB"; then
  9894. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9895. postinstall_cmds='$RANLIB $lib'
  9896. fi
  9897. ;;
  9898. aix[4-9]*)
  9899. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9900. test "$enable_shared" = yes && enable_static=no
  9901. fi
  9902. ;;
  9903. esac
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9905. $as_echo "$enable_shared" >&6; }
  9906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9907. $as_echo_n "checking whether to build static libraries... " >&6; }
  9908. # Make sure either enable_shared or enable_static is yes.
  9909. test "$enable_shared" = yes || enable_static=yes
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9911. $as_echo "$enable_static" >&6; }
  9912. fi
  9913. ac_ext=c
  9914. ac_cpp='$CPP $CPPFLAGS'
  9915. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9916. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9917. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9918. CC="$lt_save_CC"
  9919. ac_config_commands="$ac_config_commands libtool"
  9920. # Only expand once:
  9921. ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile"
  9922. cat >confcache <<\_ACEOF
  9923. # This file is a shell script that caches the results of configure
  9924. # tests run on this system so they can be shared between configure
  9925. # scripts and configure runs, see configure's option --config-cache.
  9926. # It is not useful on other systems. If it contains results you don't
  9927. # want to keep, you may remove or edit it.
  9928. #
  9929. # config.status only pays attention to the cache file if you give it
  9930. # the --recheck option to rerun configure.
  9931. #
  9932. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9933. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9934. # following values.
  9935. _ACEOF
  9936. # The following way of writing the cache mishandles newlines in values,
  9937. # but we know of no workaround that is simple, portable, and efficient.
  9938. # So, we kill variables containing newlines.
  9939. # Ultrix sh set writes to stderr and can't be redirected directly,
  9940. # and sets the high bit in the cache file unless we assign to the vars.
  9941. (
  9942. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9943. eval ac_val=\$$ac_var
  9944. case $ac_val in #(
  9945. *${as_nl}*)
  9946. case $ac_var in #(
  9947. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9948. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9949. esac
  9950. case $ac_var in #(
  9951. _ | IFS | as_nl) ;; #(
  9952. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9953. *) { eval $ac_var=; unset $ac_var;} ;;
  9954. esac ;;
  9955. esac
  9956. done
  9957. (set) 2>&1 |
  9958. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9959. *${as_nl}ac_space=\ *)
  9960. # `set' does not quote correctly, so add quotes: double-quote
  9961. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9962. sed -n \
  9963. "s/'/'\\\\''/g;
  9964. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9965. ;; #(
  9966. *)
  9967. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9968. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9969. ;;
  9970. esac |
  9971. sort
  9972. ) |
  9973. sed '
  9974. /^ac_cv_env_/b end
  9975. t clear
  9976. :clear
  9977. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9978. t end
  9979. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9980. :end' >>confcache
  9981. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9982. if test -w "$cache_file"; then
  9983. if test "x$cache_file" != "x/dev/null"; then
  9984. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9985. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9986. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9987. cat confcache >"$cache_file"
  9988. else
  9989. case $cache_file in #(
  9990. */* | ?:*)
  9991. mv -f confcache "$cache_file"$$ &&
  9992. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9993. *)
  9994. mv -f confcache "$cache_file" ;;
  9995. esac
  9996. fi
  9997. fi
  9998. else
  9999. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10000. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10001. fi
  10002. fi
  10003. rm -f confcache
  10004. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10005. # Let make expand exec_prefix.
  10006. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10007. # Transform confdefs.h into DEFS.
  10008. # Protect against shell expansion while executing Makefile rules.
  10009. # Protect against Makefile macro expansion.
  10010. #
  10011. # If the first sed substitution is executed (which looks for macros that
  10012. # take arguments), then branch to the quote section. Otherwise,
  10013. # look for a macro that doesn't take arguments.
  10014. ac_script='
  10015. :mline
  10016. /\\$/{
  10017. N
  10018. s,\\\n,,
  10019. b mline
  10020. }
  10021. t clear
  10022. :clear
  10023. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  10024. t quote
  10025. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  10026. t quote
  10027. b any
  10028. :quote
  10029. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  10030. s/\[/\\&/g
  10031. s/\]/\\&/g
  10032. s/\$/$$/g
  10033. H
  10034. :any
  10035. ${
  10036. g
  10037. s/^\n//
  10038. s/\n/ /g
  10039. p
  10040. }
  10041. '
  10042. DEFS=`sed -n "$ac_script" confdefs.h`
  10043. ac_libobjs=
  10044. ac_ltlibobjs=
  10045. U=
  10046. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10047. # 1. Remove the extension, and $U if already installed.
  10048. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10049. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10050. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10051. # will be set to the directory where LIBOBJS objects are built.
  10052. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10053. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10054. done
  10055. LIBOBJS=$ac_libobjs
  10056. LTLIBOBJS=$ac_ltlibobjs
  10057. if test -n "$EXEEXT"; then
  10058. am__EXEEXT_TRUE=
  10059. am__EXEEXT_FALSE='#'
  10060. else
  10061. am__EXEEXT_TRUE='#'
  10062. am__EXEEXT_FALSE=
  10063. fi
  10064. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10065. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10066. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10067. fi
  10068. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10069. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10070. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10071. fi
  10072. if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
  10073. as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
  10074. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10075. fi
  10076. : "${CONFIG_STATUS=./config.status}"
  10077. ac_write_fail=0
  10078. ac_clean_files_save=$ac_clean_files
  10079. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10081. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10082. as_write_fail=0
  10083. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10084. #! $SHELL
  10085. # Generated by $as_me.
  10086. # Run this file to recreate the current configuration.
  10087. # Compiler output produced by configure, useful for debugging
  10088. # configure, is in config.log if it exists.
  10089. debug=false
  10090. ac_cs_recheck=false
  10091. ac_cs_silent=false
  10092. SHELL=\${CONFIG_SHELL-$SHELL}
  10093. export SHELL
  10094. _ASEOF
  10095. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10096. ## -------------------- ##
  10097. ## M4sh Initialization. ##
  10098. ## -------------------- ##
  10099. # Be more Bourne compatible
  10100. DUALCASE=1; export DUALCASE # for MKS sh
  10101. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10102. emulate sh
  10103. NULLCMD=:
  10104. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10105. # is contrary to our usage. Disable this feature.
  10106. alias -g '${1+"$@"}'='"$@"'
  10107. setopt NO_GLOB_SUBST
  10108. else
  10109. case `(set -o) 2>/dev/null` in #(
  10110. *posix*) :
  10111. set -o posix ;; #(
  10112. *) :
  10113. ;;
  10114. esac
  10115. fi
  10116. as_nl='
  10117. '
  10118. export as_nl
  10119. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10120. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10121. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10122. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10123. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10124. # but without wasting forks for bash or zsh.
  10125. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10126. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10127. as_echo='print -r --'
  10128. as_echo_n='print -rn --'
  10129. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10130. as_echo='printf %s\n'
  10131. as_echo_n='printf %s'
  10132. else
  10133. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10134. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10135. as_echo_n='/usr/ucb/echo -n'
  10136. else
  10137. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10138. as_echo_n_body='eval
  10139. arg=$1;
  10140. case $arg in #(
  10141. *"$as_nl"*)
  10142. expr "X$arg" : "X\\(.*\\)$as_nl";
  10143. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10144. esac;
  10145. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10146. '
  10147. export as_echo_n_body
  10148. as_echo_n='sh -c $as_echo_n_body as_echo'
  10149. fi
  10150. export as_echo_body
  10151. as_echo='sh -c $as_echo_body as_echo'
  10152. fi
  10153. # The user is always right.
  10154. if test "${PATH_SEPARATOR+set}" != set; then
  10155. PATH_SEPARATOR=:
  10156. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10157. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10158. PATH_SEPARATOR=';'
  10159. }
  10160. fi
  10161. # IFS
  10162. # We need space, tab and new line, in precisely that order. Quoting is
  10163. # there to prevent editors from complaining about space-tab.
  10164. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10165. # splitting by setting IFS to empty value.)
  10166. IFS=" "" $as_nl"
  10167. # Find who we are. Look in the path if we contain no directory separator.
  10168. as_myself=
  10169. case $0 in #((
  10170. *[\\/]* ) as_myself=$0 ;;
  10171. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10172. for as_dir in $PATH
  10173. do
  10174. IFS=$as_save_IFS
  10175. test -z "$as_dir" && as_dir=.
  10176. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10177. done
  10178. IFS=$as_save_IFS
  10179. ;;
  10180. esac
  10181. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10182. # in which case we are not to be found in the path.
  10183. if test "x$as_myself" = x; then
  10184. as_myself=$0
  10185. fi
  10186. if test ! -f "$as_myself"; then
  10187. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10188. exit 1
  10189. fi
  10190. # Unset variables that we do not need and which cause bugs (e.g. in
  10191. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10192. # suppresses any "Segmentation fault" message there. '((' could
  10193. # trigger a bug in pdksh 5.2.14.
  10194. for as_var in BASH_ENV ENV MAIL MAILPATH
  10195. do eval test x\${$as_var+set} = xset \
  10196. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10197. done
  10198. PS1='$ '
  10199. PS2='> '
  10200. PS4='+ '
  10201. # NLS nuisances.
  10202. LC_ALL=C
  10203. export LC_ALL
  10204. LANGUAGE=C
  10205. export LANGUAGE
  10206. # CDPATH.
  10207. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10208. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10209. # ----------------------------------------
  10210. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10211. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10212. # script with STATUS, using 1 if that was 0.
  10213. as_fn_error ()
  10214. {
  10215. as_status=$1; test $as_status -eq 0 && as_status=1
  10216. if test "$4"; then
  10217. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10218. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10219. fi
  10220. $as_echo "$as_me: error: $2" >&2
  10221. as_fn_exit $as_status
  10222. } # as_fn_error
  10223. # as_fn_set_status STATUS
  10224. # -----------------------
  10225. # Set $? to STATUS, without forking.
  10226. as_fn_set_status ()
  10227. {
  10228. return $1
  10229. } # as_fn_set_status
  10230. # as_fn_exit STATUS
  10231. # -----------------
  10232. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10233. as_fn_exit ()
  10234. {
  10235. set +e
  10236. as_fn_set_status $1
  10237. exit $1
  10238. } # as_fn_exit
  10239. # as_fn_unset VAR
  10240. # ---------------
  10241. # Portably unset VAR.
  10242. as_fn_unset ()
  10243. {
  10244. { eval $1=; unset $1;}
  10245. }
  10246. as_unset=as_fn_unset
  10247. # as_fn_append VAR VALUE
  10248. # ----------------------
  10249. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10250. # advantage of any shell optimizations that allow amortized linear growth over
  10251. # repeated appends, instead of the typical quadratic growth present in naive
  10252. # implementations.
  10253. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10254. eval 'as_fn_append ()
  10255. {
  10256. eval $1+=\$2
  10257. }'
  10258. else
  10259. as_fn_append ()
  10260. {
  10261. eval $1=\$$1\$2
  10262. }
  10263. fi # as_fn_append
  10264. # as_fn_arith ARG...
  10265. # ------------------
  10266. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10267. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10268. # must be portable across $(()) and expr.
  10269. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10270. eval 'as_fn_arith ()
  10271. {
  10272. as_val=$(( $* ))
  10273. }'
  10274. else
  10275. as_fn_arith ()
  10276. {
  10277. as_val=`expr "$@" || test $? -eq 1`
  10278. }
  10279. fi # as_fn_arith
  10280. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10281. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10282. as_expr=expr
  10283. else
  10284. as_expr=false
  10285. fi
  10286. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10287. as_basename=basename
  10288. else
  10289. as_basename=false
  10290. fi
  10291. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10292. as_dirname=dirname
  10293. else
  10294. as_dirname=false
  10295. fi
  10296. as_me=`$as_basename -- "$0" ||
  10297. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10298. X"$0" : 'X\(//\)$' \| \
  10299. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10300. $as_echo X/"$0" |
  10301. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10302. s//\1/
  10303. q
  10304. }
  10305. /^X\/\(\/\/\)$/{
  10306. s//\1/
  10307. q
  10308. }
  10309. /^X\/\(\/\).*/{
  10310. s//\1/
  10311. q
  10312. }
  10313. s/.*/./; q'`
  10314. # Avoid depending upon Character Ranges.
  10315. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10316. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10317. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10318. as_cr_digits='0123456789'
  10319. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10320. ECHO_C= ECHO_N= ECHO_T=
  10321. case `echo -n x` in #(((((
  10322. -n*)
  10323. case `echo 'xy\c'` in
  10324. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10325. xy) ECHO_C='\c';;
  10326. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10327. ECHO_T=' ';;
  10328. esac;;
  10329. *)
  10330. ECHO_N='-n';;
  10331. esac
  10332. rm -f conf$$ conf$$.exe conf$$.file
  10333. if test -d conf$$.dir; then
  10334. rm -f conf$$.dir/conf$$.file
  10335. else
  10336. rm -f conf$$.dir
  10337. mkdir conf$$.dir 2>/dev/null
  10338. fi
  10339. if (echo >conf$$.file) 2>/dev/null; then
  10340. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10341. as_ln_s='ln -s'
  10342. # ... but there are two gotchas:
  10343. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10344. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10345. # In both cases, we have to default to `cp -p'.
  10346. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10347. as_ln_s='cp -p'
  10348. elif ln conf$$.file conf$$ 2>/dev/null; then
  10349. as_ln_s=ln
  10350. else
  10351. as_ln_s='cp -p'
  10352. fi
  10353. else
  10354. as_ln_s='cp -p'
  10355. fi
  10356. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10357. rmdir conf$$.dir 2>/dev/null
  10358. # as_fn_mkdir_p
  10359. # -------------
  10360. # Create "$as_dir" as a directory, including parents if necessary.
  10361. as_fn_mkdir_p ()
  10362. {
  10363. case $as_dir in #(
  10364. -*) as_dir=./$as_dir;;
  10365. esac
  10366. test -d "$as_dir" || eval $as_mkdir_p || {
  10367. as_dirs=
  10368. while :; do
  10369. case $as_dir in #(
  10370. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10371. *) as_qdir=$as_dir;;
  10372. esac
  10373. as_dirs="'$as_qdir' $as_dirs"
  10374. as_dir=`$as_dirname -- "$as_dir" ||
  10375. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10376. X"$as_dir" : 'X\(//\)[^/]' \| \
  10377. X"$as_dir" : 'X\(//\)$' \| \
  10378. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10379. $as_echo X"$as_dir" |
  10380. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10381. s//\1/
  10382. q
  10383. }
  10384. /^X\(\/\/\)[^/].*/{
  10385. s//\1/
  10386. q
  10387. }
  10388. /^X\(\/\/\)$/{
  10389. s//\1/
  10390. q
  10391. }
  10392. /^X\(\/\).*/{
  10393. s//\1/
  10394. q
  10395. }
  10396. s/.*/./; q'`
  10397. test -d "$as_dir" && break
  10398. done
  10399. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10400. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10401. } # as_fn_mkdir_p
  10402. if mkdir -p . 2>/dev/null; then
  10403. as_mkdir_p='mkdir -p "$as_dir"'
  10404. else
  10405. test -d ./-p && rmdir ./-p
  10406. as_mkdir_p=false
  10407. fi
  10408. if test -x / >/dev/null 2>&1; then
  10409. as_test_x='test -x'
  10410. else
  10411. if ls -dL / >/dev/null 2>&1; then
  10412. as_ls_L_option=L
  10413. else
  10414. as_ls_L_option=
  10415. fi
  10416. as_test_x='
  10417. eval sh -c '\''
  10418. if test -d "$1"; then
  10419. test -d "$1/.";
  10420. else
  10421. case $1 in #(
  10422. -*)set "./$1";;
  10423. esac;
  10424. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  10425. ???[sx]*):;;*)false;;esac;fi
  10426. '\'' sh
  10427. '
  10428. fi
  10429. as_executable_p=$as_test_x
  10430. # Sed expression to map a string onto a valid CPP name.
  10431. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10432. # Sed expression to map a string onto a valid variable name.
  10433. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10434. exec 6>&1
  10435. ## ----------------------------------- ##
  10436. ## Main body of $CONFIG_STATUS script. ##
  10437. ## ----------------------------------- ##
  10438. _ASEOF
  10439. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10440. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10441. # Save the log message, to keep $0 and so on meaningful, and to
  10442. # report actual input values of CONFIG_FILES etc. instead of their
  10443. # values after options handling.
  10444. ac_log="
  10445. This file was extended by OPCUAServer $as_me 1.0, which was
  10446. generated by GNU Autoconf 2.68. Invocation command line was
  10447. CONFIG_FILES = $CONFIG_FILES
  10448. CONFIG_HEADERS = $CONFIG_HEADERS
  10449. CONFIG_LINKS = $CONFIG_LINKS
  10450. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10451. $ $0 $@
  10452. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10453. "
  10454. _ACEOF
  10455. case $ac_config_files in *"
  10456. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10457. esac
  10458. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10459. # Files that config.status was made for.
  10460. config_files="$ac_config_files"
  10461. config_commands="$ac_config_commands"
  10462. _ACEOF
  10463. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10464. ac_cs_usage="\
  10465. \`$as_me' instantiates files and other configuration actions
  10466. from templates according to the current configuration. Unless the files
  10467. and actions are specified as TAGs, all are instantiated by default.
  10468. Usage: $0 [OPTION]... [TAG]...
  10469. -h, --help print this help, then exit
  10470. -V, --version print version number and configuration settings, then exit
  10471. --config print configuration, then exit
  10472. -q, --quiet, --silent
  10473. do not print progress messages
  10474. -d, --debug don't remove temporary files
  10475. --recheck update $as_me by reconfiguring in the same conditions
  10476. --file=FILE[:TEMPLATE]
  10477. instantiate the configuration file FILE
  10478. Configuration files:
  10479. $config_files
  10480. Configuration commands:
  10481. $config_commands
  10482. Report bugs to the package provider."
  10483. _ACEOF
  10484. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10485. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10486. ac_cs_version="\\
  10487. OPCUAServer config.status 1.0
  10488. configured by $0, generated by GNU Autoconf 2.68,
  10489. with options \\"\$ac_cs_config\\"
  10490. Copyright (C) 2010 Free Software Foundation, Inc.
  10491. This config.status script is free software; the Free Software Foundation
  10492. gives unlimited permission to copy, distribute and modify it."
  10493. ac_pwd='$ac_pwd'
  10494. srcdir='$srcdir'
  10495. INSTALL='$INSTALL'
  10496. MKDIR_P='$MKDIR_P'
  10497. AWK='$AWK'
  10498. test -n "\$AWK" || AWK=awk
  10499. _ACEOF
  10500. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10501. # The default lists apply if the user does not specify any file.
  10502. ac_need_defaults=:
  10503. while test $# != 0
  10504. do
  10505. case $1 in
  10506. --*=?*)
  10507. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10508. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10509. ac_shift=:
  10510. ;;
  10511. --*=)
  10512. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10513. ac_optarg=
  10514. ac_shift=:
  10515. ;;
  10516. *)
  10517. ac_option=$1
  10518. ac_optarg=$2
  10519. ac_shift=shift
  10520. ;;
  10521. esac
  10522. case $ac_option in
  10523. # Handling of the options.
  10524. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10525. ac_cs_recheck=: ;;
  10526. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10527. $as_echo "$ac_cs_version"; exit ;;
  10528. --config | --confi | --conf | --con | --co | --c )
  10529. $as_echo "$ac_cs_config"; exit ;;
  10530. --debug | --debu | --deb | --de | --d | -d )
  10531. debug=: ;;
  10532. --file | --fil | --fi | --f )
  10533. $ac_shift
  10534. case $ac_optarg in
  10535. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10536. '') as_fn_error $? "missing file argument" ;;
  10537. esac
  10538. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10539. ac_need_defaults=false;;
  10540. --he | --h | --help | --hel | -h )
  10541. $as_echo "$ac_cs_usage"; exit ;;
  10542. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10543. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10544. ac_cs_silent=: ;;
  10545. # This is an error.
  10546. -*) as_fn_error $? "unrecognized option: \`$1'
  10547. Try \`$0 --help' for more information." ;;
  10548. *) as_fn_append ac_config_targets " $1"
  10549. ac_need_defaults=false ;;
  10550. esac
  10551. shift
  10552. done
  10553. ac_configure_extra_args=
  10554. if $ac_cs_silent; then
  10555. exec 6>/dev/null
  10556. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10557. fi
  10558. _ACEOF
  10559. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10560. if \$ac_cs_recheck; then
  10561. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10562. shift
  10563. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10564. CONFIG_SHELL='$SHELL'
  10565. export CONFIG_SHELL
  10566. exec "\$@"
  10567. fi
  10568. _ACEOF
  10569. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10570. exec 5>>config.log
  10571. {
  10572. echo
  10573. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10574. ## Running $as_me. ##
  10575. _ASBOX
  10576. $as_echo "$ac_log"
  10577. } >&5
  10578. _ACEOF
  10579. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10580. #
  10581. # INIT-COMMANDS
  10582. #
  10583. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10584. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10585. # if CDPATH is set.
  10586. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10587. sed_quote_subst='$sed_quote_subst'
  10588. double_quote_subst='$double_quote_subst'
  10589. delay_variable_subst='$delay_variable_subst'
  10590. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10591. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10592. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10593. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10594. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10595. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10596. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10597. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10598. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  10599. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10600. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10601. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10602. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10603. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10604. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10605. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10606. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10607. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10608. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10609. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10610. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10611. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10612. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10613. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10614. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10615. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10616. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10617. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10618. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10619. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  10620. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  10621. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10622. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10623. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10624. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10625. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10626. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  10627. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  10628. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  10629. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  10630. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10631. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10632. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  10633. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10634. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10635. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10636. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10637. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10638. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10639. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10640. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10641. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10642. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10643. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10644. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10645. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10646. 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"`'
  10647. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  10648. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  10649. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10650. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10651. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10652. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10653. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10654. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10655. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10656. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10657. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  10658. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10659. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10660. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10661. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10662. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10663. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10664. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10665. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10666. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10667. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10668. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10669. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10670. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10671. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10672. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10673. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10674. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10675. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10676. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10677. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10678. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10679. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10680. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10681. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10682. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10683. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10684. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10685. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10686. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10687. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10688. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10689. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10690. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10691. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10692. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10693. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10694. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  10695. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10696. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10697. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10698. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10699. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10700. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10701. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10702. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10703. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10704. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10705. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10706. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10707. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10708. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10709. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10710. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10711. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10712. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10713. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10714. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10715. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10716. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10717. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10718. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10719. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10720. LTCC='$LTCC'
  10721. LTCFLAGS='$LTCFLAGS'
  10722. compiler='$compiler_DEFAULT'
  10723. # A function that is used when there is no print builtin or printf.
  10724. func_fallback_echo ()
  10725. {
  10726. eval 'cat <<_LTECHO_EOF
  10727. \$1
  10728. _LTECHO_EOF'
  10729. }
  10730. # Quote evaled strings.
  10731. for var in SHELL \
  10732. ECHO \
  10733. PATH_SEPARATOR \
  10734. SED \
  10735. GREP \
  10736. EGREP \
  10737. FGREP \
  10738. LD \
  10739. NM \
  10740. LN_S \
  10741. lt_SP2NL \
  10742. lt_NL2SP \
  10743. reload_flag \
  10744. OBJDUMP \
  10745. deplibs_check_method \
  10746. file_magic_cmd \
  10747. file_magic_glob \
  10748. want_nocaseglob \
  10749. DLLTOOL \
  10750. sharedlib_from_linklib_cmd \
  10751. AR \
  10752. AR_FLAGS \
  10753. archiver_list_spec \
  10754. STRIP \
  10755. RANLIB \
  10756. CC \
  10757. CFLAGS \
  10758. compiler \
  10759. lt_cv_sys_global_symbol_pipe \
  10760. lt_cv_sys_global_symbol_to_cdecl \
  10761. lt_cv_sys_global_symbol_to_c_name_address \
  10762. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10763. nm_file_list_spec \
  10764. lt_prog_compiler_no_builtin_flag \
  10765. lt_prog_compiler_pic \
  10766. lt_prog_compiler_wl \
  10767. lt_prog_compiler_static \
  10768. lt_cv_prog_compiler_c_o \
  10769. need_locks \
  10770. MANIFEST_TOOL \
  10771. DSYMUTIL \
  10772. NMEDIT \
  10773. LIPO \
  10774. OTOOL \
  10775. OTOOL64 \
  10776. shrext_cmds \
  10777. export_dynamic_flag_spec \
  10778. whole_archive_flag_spec \
  10779. compiler_needs_object \
  10780. with_gnu_ld \
  10781. allow_undefined_flag \
  10782. no_undefined_flag \
  10783. hardcode_libdir_flag_spec \
  10784. hardcode_libdir_separator \
  10785. exclude_expsyms \
  10786. include_expsyms \
  10787. file_list_spec \
  10788. variables_saved_for_relink \
  10789. libname_spec \
  10790. library_names_spec \
  10791. soname_spec \
  10792. install_override_mode \
  10793. finish_eval \
  10794. old_striplib \
  10795. striplib; do
  10796. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10797. *[\\\\\\\`\\"\\\$]*)
  10798. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10799. ;;
  10800. *)
  10801. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10802. ;;
  10803. esac
  10804. done
  10805. # Double-quote double-evaled strings.
  10806. for var in reload_cmds \
  10807. old_postinstall_cmds \
  10808. old_postuninstall_cmds \
  10809. old_archive_cmds \
  10810. extract_expsyms_cmds \
  10811. old_archive_from_new_cmds \
  10812. old_archive_from_expsyms_cmds \
  10813. archive_cmds \
  10814. archive_expsym_cmds \
  10815. module_cmds \
  10816. module_expsym_cmds \
  10817. export_symbols_cmds \
  10818. prelink_cmds \
  10819. postlink_cmds \
  10820. postinstall_cmds \
  10821. postuninstall_cmds \
  10822. finish_cmds \
  10823. sys_lib_search_path_spec \
  10824. sys_lib_dlsearch_path_spec; do
  10825. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10826. *[\\\\\\\`\\"\\\$]*)
  10827. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10828. ;;
  10829. *)
  10830. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10831. ;;
  10832. esac
  10833. done
  10834. ac_aux_dir='$ac_aux_dir'
  10835. xsi_shell='$xsi_shell'
  10836. lt_shell_append='$lt_shell_append'
  10837. # See if we are running on zsh, and set the options which allow our
  10838. # commands through without removal of \ escapes INIT.
  10839. if test -n "\${ZSH_VERSION+set}" ; then
  10840. setopt NO_GLOB_SUBST
  10841. fi
  10842. PACKAGE='$PACKAGE'
  10843. VERSION='$VERSION'
  10844. TIMESTAMP='$TIMESTAMP'
  10845. RM='$RM'
  10846. ofile='$ofile'
  10847. _ACEOF
  10848. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10849. # Handling of arguments.
  10850. for ac_config_target in $ac_config_targets
  10851. do
  10852. case $ac_config_target in
  10853. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10854. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10855. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10856. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10857. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  10858. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10859. esac
  10860. done
  10861. # If the user did not use the arguments to specify the items to instantiate,
  10862. # then the envvar interface is used. Set only those that are not.
  10863. # We use the long form for the default assignment because of an extremely
  10864. # bizarre bug on SunOS 4.1.3.
  10865. if $ac_need_defaults; then
  10866. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10867. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10868. fi
  10869. # Have a temporary directory for convenience. Make it in the build tree
  10870. # simply because there is no reason against having it here, and in addition,
  10871. # creating and moving files from /tmp can sometimes cause problems.
  10872. # Hook for its removal unless debugging.
  10873. # Note that there is a small window in which the directory will not be cleaned:
  10874. # after its creation but before its name has been assigned to `$tmp'.
  10875. $debug ||
  10876. {
  10877. tmp= ac_tmp=
  10878. trap 'exit_status=$?
  10879. : "${ac_tmp:=$tmp}"
  10880. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10881. ' 0
  10882. trap 'as_fn_exit 1' 1 2 13 15
  10883. }
  10884. # Create a (secure) tmp directory for tmp files.
  10885. {
  10886. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10887. test -d "$tmp"
  10888. } ||
  10889. {
  10890. tmp=./conf$$-$RANDOM
  10891. (umask 077 && mkdir "$tmp")
  10892. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10893. ac_tmp=$tmp
  10894. # Set up the scripts for CONFIG_FILES section.
  10895. # No need to generate them if there are no CONFIG_FILES.
  10896. # This happens for instance with `./config.status config.h'.
  10897. if test -n "$CONFIG_FILES"; then
  10898. ac_cr=`echo X | tr X '\015'`
  10899. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10900. # But we know of no other shell where ac_cr would be empty at this
  10901. # point, so we can use a bashism as a fallback.
  10902. if test "x$ac_cr" = x; then
  10903. eval ac_cr=\$\'\\r\'
  10904. fi
  10905. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10906. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10907. ac_cs_awk_cr='\\r'
  10908. else
  10909. ac_cs_awk_cr=$ac_cr
  10910. fi
  10911. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10912. _ACEOF
  10913. {
  10914. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10915. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10916. echo "_ACEOF"
  10917. } >conf$$subs.sh ||
  10918. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10919. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10920. ac_delim='%!_!# '
  10921. for ac_last_try in false false false false false :; do
  10922. . ./conf$$subs.sh ||
  10923. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10924. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10925. if test $ac_delim_n = $ac_delim_num; then
  10926. break
  10927. elif $ac_last_try; then
  10928. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10929. else
  10930. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10931. fi
  10932. done
  10933. rm -f conf$$subs.sh
  10934. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10935. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10936. _ACEOF
  10937. sed -n '
  10938. h
  10939. s/^/S["/; s/!.*/"]=/
  10940. p
  10941. g
  10942. s/^[^!]*!//
  10943. :repl
  10944. t repl
  10945. s/'"$ac_delim"'$//
  10946. t delim
  10947. :nl
  10948. h
  10949. s/\(.\{148\}\)..*/\1/
  10950. t more1
  10951. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10952. p
  10953. n
  10954. b repl
  10955. :more1
  10956. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10957. p
  10958. g
  10959. s/.\{148\}//
  10960. t nl
  10961. :delim
  10962. h
  10963. s/\(.\{148\}\)..*/\1/
  10964. t more2
  10965. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10966. p
  10967. b
  10968. :more2
  10969. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10970. p
  10971. g
  10972. s/.\{148\}//
  10973. t delim
  10974. ' <conf$$subs.awk | sed '
  10975. /^[^""]/{
  10976. N
  10977. s/\n//
  10978. }
  10979. ' >>$CONFIG_STATUS || ac_write_fail=1
  10980. rm -f conf$$subs.awk
  10981. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10982. _ACAWK
  10983. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10984. for (key in S) S_is_set[key] = 1
  10985. FS = ""
  10986. }
  10987. {
  10988. line = $ 0
  10989. nfields = split(line, field, "@")
  10990. substed = 0
  10991. len = length(field[1])
  10992. for (i = 2; i < nfields; i++) {
  10993. key = field[i]
  10994. keylen = length(key)
  10995. if (S_is_set[key]) {
  10996. value = S[key]
  10997. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10998. len += length(value) + length(field[++i])
  10999. substed = 1
  11000. } else
  11001. len += 1 + keylen
  11002. }
  11003. print line
  11004. }
  11005. _ACAWK
  11006. _ACEOF
  11007. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11008. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11009. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11010. else
  11011. cat
  11012. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11013. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11014. _ACEOF
  11015. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11016. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11017. # trailing colons and then remove the whole line if VPATH becomes empty
  11018. # (actually we leave an empty line to preserve line numbers).
  11019. if test "x$srcdir" = x.; then
  11020. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11021. h
  11022. s///
  11023. s/^/:/
  11024. s/[ ]*$/:/
  11025. s/:\$(srcdir):/:/g
  11026. s/:\${srcdir}:/:/g
  11027. s/:@srcdir@:/:/g
  11028. s/^:*//
  11029. s/:*$//
  11030. x
  11031. s/\(=[ ]*\).*/\1/
  11032. G
  11033. s/\n//
  11034. s/^[^=]*=[ ]*$//
  11035. }'
  11036. fi
  11037. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11038. fi # test -n "$CONFIG_FILES"
  11039. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  11040. shift
  11041. for ac_tag
  11042. do
  11043. case $ac_tag in
  11044. :[FHLC]) ac_mode=$ac_tag; continue;;
  11045. esac
  11046. case $ac_mode$ac_tag in
  11047. :[FHL]*:*);;
  11048. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11049. :[FH]-) ac_tag=-:-;;
  11050. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11051. esac
  11052. ac_save_IFS=$IFS
  11053. IFS=:
  11054. set x $ac_tag
  11055. IFS=$ac_save_IFS
  11056. shift
  11057. ac_file=$1
  11058. shift
  11059. case $ac_mode in
  11060. :L) ac_source=$1;;
  11061. :[FH])
  11062. ac_file_inputs=
  11063. for ac_f
  11064. do
  11065. case $ac_f in
  11066. -) ac_f="$ac_tmp/stdin";;
  11067. *) # Look for the file first in the build tree, then in the source tree
  11068. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11069. # because $ac_f cannot contain `:'.
  11070. test -f "$ac_f" ||
  11071. case $ac_f in
  11072. [\\/$]*) false;;
  11073. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11074. esac ||
  11075. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11076. esac
  11077. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11078. as_fn_append ac_file_inputs " '$ac_f'"
  11079. done
  11080. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11081. # use $as_me), people would be surprised to read:
  11082. # /* config.h. Generated by config.status. */
  11083. configure_input='Generated from '`
  11084. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11085. `' by configure.'
  11086. if test x"$ac_file" != x-; then
  11087. configure_input="$ac_file. $configure_input"
  11088. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11089. $as_echo "$as_me: creating $ac_file" >&6;}
  11090. fi
  11091. # Neutralize special characters interpreted by sed in replacement strings.
  11092. case $configure_input in #(
  11093. *\&* | *\|* | *\\* )
  11094. ac_sed_conf_input=`$as_echo "$configure_input" |
  11095. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11096. *) ac_sed_conf_input=$configure_input;;
  11097. esac
  11098. case $ac_tag in
  11099. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11100. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11101. esac
  11102. ;;
  11103. esac
  11104. ac_dir=`$as_dirname -- "$ac_file" ||
  11105. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11106. X"$ac_file" : 'X\(//\)[^/]' \| \
  11107. X"$ac_file" : 'X\(//\)$' \| \
  11108. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11109. $as_echo X"$ac_file" |
  11110. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11111. s//\1/
  11112. q
  11113. }
  11114. /^X\(\/\/\)[^/].*/{
  11115. s//\1/
  11116. q
  11117. }
  11118. /^X\(\/\/\)$/{
  11119. s//\1/
  11120. q
  11121. }
  11122. /^X\(\/\).*/{
  11123. s//\1/
  11124. q
  11125. }
  11126. s/.*/./; q'`
  11127. as_dir="$ac_dir"; as_fn_mkdir_p
  11128. ac_builddir=.
  11129. case "$ac_dir" in
  11130. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11131. *)
  11132. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11133. # A ".." for each directory in $ac_dir_suffix.
  11134. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11135. case $ac_top_builddir_sub in
  11136. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11137. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11138. esac ;;
  11139. esac
  11140. ac_abs_top_builddir=$ac_pwd
  11141. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11142. # for backward compatibility:
  11143. ac_top_builddir=$ac_top_build_prefix
  11144. case $srcdir in
  11145. .) # We are building in place.
  11146. ac_srcdir=.
  11147. ac_top_srcdir=$ac_top_builddir_sub
  11148. ac_abs_top_srcdir=$ac_pwd ;;
  11149. [\\/]* | ?:[\\/]* ) # Absolute name.
  11150. ac_srcdir=$srcdir$ac_dir_suffix;
  11151. ac_top_srcdir=$srcdir
  11152. ac_abs_top_srcdir=$srcdir ;;
  11153. *) # Relative name.
  11154. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11155. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11156. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11157. esac
  11158. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11159. case $ac_mode in
  11160. :F)
  11161. #
  11162. # CONFIG_FILE
  11163. #
  11164. case $INSTALL in
  11165. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11166. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11167. esac
  11168. ac_MKDIR_P=$MKDIR_P
  11169. case $MKDIR_P in
  11170. [\\/$]* | ?:[\\/]* ) ;;
  11171. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11172. esac
  11173. _ACEOF
  11174. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11175. # If the template does not know about datarootdir, expand it.
  11176. # FIXME: This hack should be removed a few years after 2.60.
  11177. ac_datarootdir_hack=; ac_datarootdir_seen=
  11178. ac_sed_dataroot='
  11179. /datarootdir/ {
  11180. p
  11181. q
  11182. }
  11183. /@datadir@/p
  11184. /@docdir@/p
  11185. /@infodir@/p
  11186. /@localedir@/p
  11187. /@mandir@/p'
  11188. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11189. *datarootdir*) ac_datarootdir_seen=yes;;
  11190. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11191. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11192. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11193. _ACEOF
  11194. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11195. ac_datarootdir_hack='
  11196. s&@datadir@&$datadir&g
  11197. s&@docdir@&$docdir&g
  11198. s&@infodir@&$infodir&g
  11199. s&@localedir@&$localedir&g
  11200. s&@mandir@&$mandir&g
  11201. s&\\\${datarootdir}&$datarootdir&g' ;;
  11202. esac
  11203. _ACEOF
  11204. # Neutralize VPATH when `$srcdir' = `.'.
  11205. # Shell code in configure.ac might set extrasub.
  11206. # FIXME: do we really want to maintain this feature?
  11207. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11208. ac_sed_extra="$ac_vpsub
  11209. $extrasub
  11210. _ACEOF
  11211. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11212. :t
  11213. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11214. s|@configure_input@|$ac_sed_conf_input|;t t
  11215. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11216. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11217. s&@srcdir@&$ac_srcdir&;t t
  11218. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11219. s&@top_srcdir@&$ac_top_srcdir&;t t
  11220. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11221. s&@builddir@&$ac_builddir&;t t
  11222. s&@abs_builddir@&$ac_abs_builddir&;t t
  11223. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11224. s&@INSTALL@&$ac_INSTALL&;t t
  11225. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11226. $ac_datarootdir_hack
  11227. "
  11228. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11229. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11230. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11231. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11232. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11233. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11234. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11235. which seems to be undefined. Please make sure it is defined" >&5
  11236. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11237. which seems to be undefined. Please make sure it is defined" >&2;}
  11238. rm -f "$ac_tmp/stdin"
  11239. case $ac_file in
  11240. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11241. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11242. esac \
  11243. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11244. ;;
  11245. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11246. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11247. ;;
  11248. esac
  11249. case $ac_file$ac_mode in
  11250. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11251. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11252. # are listed without --file. Let's play safe and only enable the eval
  11253. # if we detect the quoting.
  11254. case $CONFIG_FILES in
  11255. *\'*) eval set x "$CONFIG_FILES" ;;
  11256. *) set x $CONFIG_FILES ;;
  11257. esac
  11258. shift
  11259. for mf
  11260. do
  11261. # Strip MF so we end up with the name of the file.
  11262. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11263. # Check whether this is an Automake generated Makefile or not.
  11264. # We used to match only the files named `Makefile.in', but
  11265. # some people rename them; so instead we look at the file content.
  11266. # Grep'ing the first line is not enough: some people post-process
  11267. # each Makefile.in and add a new line on top of each file to say so.
  11268. # Grep'ing the whole file is not good either: AIX grep has a line
  11269. # limit of 2048, but all sed's we know have understand at least 4000.
  11270. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11271. dirpart=`$as_dirname -- "$mf" ||
  11272. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11273. X"$mf" : 'X\(//\)[^/]' \| \
  11274. X"$mf" : 'X\(//\)$' \| \
  11275. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11276. $as_echo X"$mf" |
  11277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11278. s//\1/
  11279. q
  11280. }
  11281. /^X\(\/\/\)[^/].*/{
  11282. s//\1/
  11283. q
  11284. }
  11285. /^X\(\/\/\)$/{
  11286. s//\1/
  11287. q
  11288. }
  11289. /^X\(\/\).*/{
  11290. s//\1/
  11291. q
  11292. }
  11293. s/.*/./; q'`
  11294. else
  11295. continue
  11296. fi
  11297. # Extract the definition of DEPDIR, am__include, and am__quote
  11298. # from the Makefile without running `make'.
  11299. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11300. test -z "$DEPDIR" && continue
  11301. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11302. test -z "am__include" && continue
  11303. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11304. # When using ansi2knr, U may be empty or an underscore; expand it
  11305. U=`sed -n 's/^U = //p' < "$mf"`
  11306. # Find all dependency output files, they are included files with
  11307. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11308. # simplest approach to changing $(DEPDIR) to its actual value in the
  11309. # expansion.
  11310. for file in `sed -n "
  11311. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11312. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11313. # Make sure the directory exists.
  11314. test -f "$dirpart/$file" && continue
  11315. fdir=`$as_dirname -- "$file" ||
  11316. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11317. X"$file" : 'X\(//\)[^/]' \| \
  11318. X"$file" : 'X\(//\)$' \| \
  11319. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11320. $as_echo X"$file" |
  11321. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11322. s//\1/
  11323. q
  11324. }
  11325. /^X\(\/\/\)[^/].*/{
  11326. s//\1/
  11327. q
  11328. }
  11329. /^X\(\/\/\)$/{
  11330. s//\1/
  11331. q
  11332. }
  11333. /^X\(\/\).*/{
  11334. s//\1/
  11335. q
  11336. }
  11337. s/.*/./; q'`
  11338. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11339. # echo "creating $dirpart/$file"
  11340. echo '# dummy' > "$dirpart/$file"
  11341. done
  11342. done
  11343. }
  11344. ;;
  11345. "libtool":C)
  11346. # See if we are running on zsh, and set the options which allow our
  11347. # commands through without removal of \ escapes.
  11348. if test -n "${ZSH_VERSION+set}" ; then
  11349. setopt NO_GLOB_SUBST
  11350. fi
  11351. cfgfile="${ofile}T"
  11352. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11353. $RM "$cfgfile"
  11354. cat <<_LT_EOF >> "$cfgfile"
  11355. #! $SHELL
  11356. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11357. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11358. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11359. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11360. #
  11361. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11362. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  11363. # Foundation, Inc.
  11364. # Written by Gordon Matzigkeit, 1996
  11365. #
  11366. # This file is part of GNU Libtool.
  11367. #
  11368. # GNU Libtool is free software; you can redistribute it and/or
  11369. # modify it under the terms of the GNU General Public License as
  11370. # published by the Free Software Foundation; either version 2 of
  11371. # the License, or (at your option) any later version.
  11372. #
  11373. # As a special exception to the GNU General Public License,
  11374. # if you distribute this file as part of a program or library that
  11375. # is built using GNU Libtool, you may include this file under the
  11376. # same distribution terms that you use for the rest of that program.
  11377. #
  11378. # GNU Libtool is distributed in the hope that it will be useful,
  11379. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11380. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11381. # GNU General Public License for more details.
  11382. #
  11383. # You should have received a copy of the GNU General Public License
  11384. # along with GNU Libtool; see the file COPYING. If not, a copy
  11385. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11386. # obtained by writing to the Free Software Foundation, Inc.,
  11387. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11388. # The names of the tagged configurations supported by this script.
  11389. available_tags=""
  11390. # ### BEGIN LIBTOOL CONFIG
  11391. # Which release of libtool.m4 was used?
  11392. macro_version=$macro_version
  11393. macro_revision=$macro_revision
  11394. # Whether or not to build shared libraries.
  11395. build_libtool_libs=$enable_shared
  11396. # Whether or not to build static libraries.
  11397. build_old_libs=$enable_static
  11398. # What type of objects to build.
  11399. pic_mode=$pic_mode
  11400. # Whether or not to optimize for fast installation.
  11401. fast_install=$enable_fast_install
  11402. # Shell to use when invoking shell scripts.
  11403. SHELL=$lt_SHELL
  11404. # An echo program that protects backslashes.
  11405. ECHO=$lt_ECHO
  11406. # The PATH separator for the build system.
  11407. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  11408. # The host system.
  11409. host_alias=$host_alias
  11410. host=$host
  11411. host_os=$host_os
  11412. # The build system.
  11413. build_alias=$build_alias
  11414. build=$build
  11415. build_os=$build_os
  11416. # A sed program that does not truncate output.
  11417. SED=$lt_SED
  11418. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11419. Xsed="\$SED -e 1s/^X//"
  11420. # A grep program that handles long lines.
  11421. GREP=$lt_GREP
  11422. # An ERE matcher.
  11423. EGREP=$lt_EGREP
  11424. # A literal string matcher.
  11425. FGREP=$lt_FGREP
  11426. # A BSD- or MS-compatible name lister.
  11427. NM=$lt_NM
  11428. # Whether we need soft or hard links.
  11429. LN_S=$lt_LN_S
  11430. # What is the maximum length of a command?
  11431. max_cmd_len=$max_cmd_len
  11432. # Object file suffix (normally "o").
  11433. objext=$ac_objext
  11434. # Executable file suffix (normally "").
  11435. exeext=$exeext
  11436. # whether the shell understands "unset".
  11437. lt_unset=$lt_unset
  11438. # turn spaces into newlines.
  11439. SP2NL=$lt_lt_SP2NL
  11440. # turn newlines into spaces.
  11441. NL2SP=$lt_lt_NL2SP
  11442. # convert \$build file names to \$host format.
  11443. to_host_file_cmd=$lt_cv_to_host_file_cmd
  11444. # convert \$build files to toolchain format.
  11445. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  11446. # An object symbol dumper.
  11447. OBJDUMP=$lt_OBJDUMP
  11448. # Method to check whether dependent libraries are shared objects.
  11449. deplibs_check_method=$lt_deplibs_check_method
  11450. # Command to use when deplibs_check_method = "file_magic".
  11451. file_magic_cmd=$lt_file_magic_cmd
  11452. # How to find potential files when deplibs_check_method = "file_magic".
  11453. file_magic_glob=$lt_file_magic_glob
  11454. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  11455. want_nocaseglob=$lt_want_nocaseglob
  11456. # DLL creation program.
  11457. DLLTOOL=$lt_DLLTOOL
  11458. # Command to associate shared and link libraries.
  11459. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  11460. # The archiver.
  11461. AR=$lt_AR
  11462. # Flags to create an archive.
  11463. AR_FLAGS=$lt_AR_FLAGS
  11464. # How to feed a file listing to the archiver.
  11465. archiver_list_spec=$lt_archiver_list_spec
  11466. # A symbol stripping program.
  11467. STRIP=$lt_STRIP
  11468. # Commands used to install an old-style archive.
  11469. RANLIB=$lt_RANLIB
  11470. old_postinstall_cmds=$lt_old_postinstall_cmds
  11471. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11472. # Whether to use a lock for old archive extraction.
  11473. lock_old_archive_extraction=$lock_old_archive_extraction
  11474. # A C compiler.
  11475. LTCC=$lt_CC
  11476. # LTCC compiler flags.
  11477. LTCFLAGS=$lt_CFLAGS
  11478. # Take the output of nm and produce a listing of raw symbols and C names.
  11479. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11480. # Transform the output of nm in a proper C declaration.
  11481. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11482. # Transform the output of nm in a C name address pair.
  11483. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11484. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11485. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11486. # Specify filename containing input files for \$NM.
  11487. nm_file_list_spec=$lt_nm_file_list_spec
  11488. # The root where to search for dependent libraries,and in which our libraries should be installed.
  11489. lt_sysroot=$lt_sysroot
  11490. # The name of the directory that contains temporary libtool files.
  11491. objdir=$objdir
  11492. # Used to examine libraries when file_magic_cmd begins with "file".
  11493. MAGIC_CMD=$MAGIC_CMD
  11494. # Must we lock files when doing compilation?
  11495. need_locks=$lt_need_locks
  11496. # Manifest tool.
  11497. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  11498. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11499. DSYMUTIL=$lt_DSYMUTIL
  11500. # Tool to change global to local symbols on Mac OS X.
  11501. NMEDIT=$lt_NMEDIT
  11502. # Tool to manipulate fat objects and archives on Mac OS X.
  11503. LIPO=$lt_LIPO
  11504. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11505. OTOOL=$lt_OTOOL
  11506. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11507. OTOOL64=$lt_OTOOL64
  11508. # Old archive suffix (normally "a").
  11509. libext=$libext
  11510. # Shared library suffix (normally ".so").
  11511. shrext_cmds=$lt_shrext_cmds
  11512. # The commands to extract the exported symbol list from a shared archive.
  11513. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11514. # Variables whose values should be saved in libtool wrapper scripts and
  11515. # restored at link time.
  11516. variables_saved_for_relink=$lt_variables_saved_for_relink
  11517. # Do we need the "lib" prefix for modules?
  11518. need_lib_prefix=$need_lib_prefix
  11519. # Do we need a version for libraries?
  11520. need_version=$need_version
  11521. # Library versioning type.
  11522. version_type=$version_type
  11523. # Shared library runtime path variable.
  11524. runpath_var=$runpath_var
  11525. # Shared library path variable.
  11526. shlibpath_var=$shlibpath_var
  11527. # Is shlibpath searched before the hard-coded library search path?
  11528. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11529. # Format of library name prefix.
  11530. libname_spec=$lt_libname_spec
  11531. # List of archive names. First name is the real one, the rest are links.
  11532. # The last name is the one that the linker finds with -lNAME
  11533. library_names_spec=$lt_library_names_spec
  11534. # The coded name of the library, if different from the real name.
  11535. soname_spec=$lt_soname_spec
  11536. # Permission mode override for installation of shared libraries.
  11537. install_override_mode=$lt_install_override_mode
  11538. # Command to use after installation of a shared archive.
  11539. postinstall_cmds=$lt_postinstall_cmds
  11540. # Command to use after uninstallation of a shared archive.
  11541. postuninstall_cmds=$lt_postuninstall_cmds
  11542. # Commands used to finish a libtool library installation in a directory.
  11543. finish_cmds=$lt_finish_cmds
  11544. # As "finish_cmds", except a single script fragment to be evaled but
  11545. # not shown.
  11546. finish_eval=$lt_finish_eval
  11547. # Whether we should hardcode library paths into libraries.
  11548. hardcode_into_libs=$hardcode_into_libs
  11549. # Compile-time system search path for libraries.
  11550. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11551. # Run-time system search path for libraries.
  11552. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11553. # Whether dlopen is supported.
  11554. dlopen_support=$enable_dlopen
  11555. # Whether dlopen of programs is supported.
  11556. dlopen_self=$enable_dlopen_self
  11557. # Whether dlopen of statically linked programs is supported.
  11558. dlopen_self_static=$enable_dlopen_self_static
  11559. # Commands to strip libraries.
  11560. old_striplib=$lt_old_striplib
  11561. striplib=$lt_striplib
  11562. # The linker used to build libraries.
  11563. LD=$lt_LD
  11564. # How to create reloadable object files.
  11565. reload_flag=$lt_reload_flag
  11566. reload_cmds=$lt_reload_cmds
  11567. # Commands used to build an old-style archive.
  11568. old_archive_cmds=$lt_old_archive_cmds
  11569. # A language specific compiler.
  11570. CC=$lt_compiler
  11571. # Is the compiler the GNU compiler?
  11572. with_gcc=$GCC
  11573. # Compiler flag to turn off builtin functions.
  11574. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11575. # Additional compiler flags for building library objects.
  11576. pic_flag=$lt_lt_prog_compiler_pic
  11577. # How to pass a linker flag through the compiler.
  11578. wl=$lt_lt_prog_compiler_wl
  11579. # Compiler flag to prevent dynamic linking.
  11580. link_static_flag=$lt_lt_prog_compiler_static
  11581. # Does compiler simultaneously support -c and -o options?
  11582. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11583. # Whether or not to add -lc for building shared libraries.
  11584. build_libtool_need_lc=$archive_cmds_need_lc
  11585. # Whether or not to disallow shared libs when runtime libs are static.
  11586. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11587. # Compiler flag to allow reflexive dlopens.
  11588. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11589. # Compiler flag to generate shared objects directly from archives.
  11590. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11591. # Whether the compiler copes with passing no objects directly.
  11592. compiler_needs_object=$lt_compiler_needs_object
  11593. # Create an old-style archive from a shared archive.
  11594. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11595. # Create a temporary old-style archive to link instead of a shared archive.
  11596. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11597. # Commands used to build a shared archive.
  11598. archive_cmds=$lt_archive_cmds
  11599. archive_expsym_cmds=$lt_archive_expsym_cmds
  11600. # Commands used to build a loadable module if different from building
  11601. # a shared archive.
  11602. module_cmds=$lt_module_cmds
  11603. module_expsym_cmds=$lt_module_expsym_cmds
  11604. # Whether we are building with GNU ld or not.
  11605. with_gnu_ld=$lt_with_gnu_ld
  11606. # Flag that allows shared libraries with undefined symbols to be built.
  11607. allow_undefined_flag=$lt_allow_undefined_flag
  11608. # Flag that enforces no undefined symbols.
  11609. no_undefined_flag=$lt_no_undefined_flag
  11610. # Flag to hardcode \$libdir into a binary during linking.
  11611. # This must work even if \$libdir does not exist
  11612. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11613. # Whether we need a single "-rpath" flag with a separated argument.
  11614. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11615. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11616. # DIR into the resulting binary.
  11617. hardcode_direct=$hardcode_direct
  11618. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11619. # DIR into the resulting binary and the resulting library dependency is
  11620. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11621. # library is relocated.
  11622. hardcode_direct_absolute=$hardcode_direct_absolute
  11623. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11624. # into the resulting binary.
  11625. hardcode_minus_L=$hardcode_minus_L
  11626. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11627. # into the resulting binary.
  11628. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11629. # Set to "yes" if building a shared library automatically hardcodes DIR
  11630. # into the library and all subsequent libraries and executables linked
  11631. # against it.
  11632. hardcode_automatic=$hardcode_automatic
  11633. # Set to yes if linker adds runtime paths of dependent libraries
  11634. # to runtime path list.
  11635. inherit_rpath=$inherit_rpath
  11636. # Whether libtool must link a program against all its dependency libraries.
  11637. link_all_deplibs=$link_all_deplibs
  11638. # Set to "yes" if exported symbols are required.
  11639. always_export_symbols=$always_export_symbols
  11640. # The commands to list exported symbols.
  11641. export_symbols_cmds=$lt_export_symbols_cmds
  11642. # Symbols that should not be listed in the preloaded symbols.
  11643. exclude_expsyms=$lt_exclude_expsyms
  11644. # Symbols that must always be exported.
  11645. include_expsyms=$lt_include_expsyms
  11646. # Commands necessary for linking programs (against libraries) with templates.
  11647. prelink_cmds=$lt_prelink_cmds
  11648. # Commands necessary for finishing linking programs.
  11649. postlink_cmds=$lt_postlink_cmds
  11650. # Specify filename containing input files.
  11651. file_list_spec=$lt_file_list_spec
  11652. # How to hardcode a shared library path into an executable.
  11653. hardcode_action=$hardcode_action
  11654. # ### END LIBTOOL CONFIG
  11655. _LT_EOF
  11656. case $host_os in
  11657. aix3*)
  11658. cat <<\_LT_EOF >> "$cfgfile"
  11659. # AIX sometimes has problems with the GCC collect2 program. For some
  11660. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11661. # vanish in a puff of smoke.
  11662. if test "X${COLLECT_NAMES+set}" != Xset; then
  11663. COLLECT_NAMES=
  11664. export COLLECT_NAMES
  11665. fi
  11666. _LT_EOF
  11667. ;;
  11668. esac
  11669. ltmain="$ac_aux_dir/ltmain.sh"
  11670. # We use sed instead of cat because bash on DJGPP gets confused if
  11671. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11672. # text mode, it properly converts lines to CR/LF. This bash problem
  11673. # is reportedly fixed, but why not run on old versions too?
  11674. sed '$q' "$ltmain" >> "$cfgfile" \
  11675. || (rm -f "$cfgfile"; exit 1)
  11676. if test x"$xsi_shell" = xyes; then
  11677. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  11678. func_dirname ()\
  11679. {\
  11680. \ case ${1} in\
  11681. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11682. \ * ) func_dirname_result="${3}" ;;\
  11683. \ esac\
  11684. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  11685. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11686. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11687. test 0 -eq $? || _lt_function_replace_fail=:
  11688. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  11689. func_basename ()\
  11690. {\
  11691. \ func_basename_result="${1##*/}"\
  11692. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11693. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11694. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11695. test 0 -eq $? || _lt_function_replace_fail=:
  11696. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  11697. func_dirname_and_basename ()\
  11698. {\
  11699. \ case ${1} in\
  11700. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11701. \ * ) func_dirname_result="${3}" ;;\
  11702. \ esac\
  11703. \ func_basename_result="${1##*/}"\
  11704. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11705. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11706. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11707. test 0 -eq $? || _lt_function_replace_fail=:
  11708. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  11709. func_stripname ()\
  11710. {\
  11711. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  11712. \ # positional parameters, so assign one to ordinary parameter first.\
  11713. \ func_stripname_result=${3}\
  11714. \ func_stripname_result=${func_stripname_result#"${1}"}\
  11715. \ func_stripname_result=${func_stripname_result%"${2}"}\
  11716. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  11717. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11718. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11719. test 0 -eq $? || _lt_function_replace_fail=:
  11720. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  11721. func_split_long_opt ()\
  11722. {\
  11723. \ func_split_long_opt_name=${1%%=*}\
  11724. \ func_split_long_opt_arg=${1#*=}\
  11725. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11726. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11727. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11728. test 0 -eq $? || _lt_function_replace_fail=:
  11729. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  11730. func_split_short_opt ()\
  11731. {\
  11732. \ func_split_short_opt_arg=${1#??}\
  11733. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  11734. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11735. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11736. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11737. test 0 -eq $? || _lt_function_replace_fail=:
  11738. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  11739. func_lo2o ()\
  11740. {\
  11741. \ case ${1} in\
  11742. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  11743. \ *) func_lo2o_result=${1} ;;\
  11744. \ esac\
  11745. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  11746. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11747. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11748. test 0 -eq $? || _lt_function_replace_fail=:
  11749. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  11750. func_xform ()\
  11751. {\
  11752. func_xform_result=${1%.*}.lo\
  11753. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  11754. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11755. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11756. test 0 -eq $? || _lt_function_replace_fail=:
  11757. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  11758. func_arith ()\
  11759. {\
  11760. func_arith_result=$(( $* ))\
  11761. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  11762. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11763. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11764. test 0 -eq $? || _lt_function_replace_fail=:
  11765. sed -e '/^func_len ()$/,/^} # func_len /c\
  11766. func_len ()\
  11767. {\
  11768. func_len_result=${#1}\
  11769. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  11770. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11771. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11772. test 0 -eq $? || _lt_function_replace_fail=:
  11773. fi
  11774. if test x"$lt_shell_append" = xyes; then
  11775. sed -e '/^func_append ()$/,/^} # func_append /c\
  11776. func_append ()\
  11777. {\
  11778. eval "${1}+=\\${2}"\
  11779. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  11780. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11781. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11782. test 0 -eq $? || _lt_function_replace_fail=:
  11783. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  11784. func_append_quoted ()\
  11785. {\
  11786. \ func_quote_for_eval "${2}"\
  11787. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  11788. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  11789. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11790. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11791. test 0 -eq $? || _lt_function_replace_fail=:
  11792. # Save a `func_append' function call where possible by direct use of '+='
  11793. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  11794. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11795. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11796. test 0 -eq $? || _lt_function_replace_fail=:
  11797. else
  11798. # Save a `func_append' function call even when '+=' is not available
  11799. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  11800. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11801. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11802. test 0 -eq $? || _lt_function_replace_fail=:
  11803. fi
  11804. if test x"$_lt_function_replace_fail" = x":"; then
  11805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  11806. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  11807. fi
  11808. mv -f "$cfgfile" "$ofile" ||
  11809. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11810. chmod +x "$ofile"
  11811. ;;
  11812. esac
  11813. done # for ac_tag
  11814. as_fn_exit 0
  11815. _ACEOF
  11816. ac_clean_files=$ac_clean_files_save
  11817. test $ac_write_fail = 0 ||
  11818. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11819. # configure is writing to config.log, and then calls config.status.
  11820. # config.status does its own redirection, appending to config.log.
  11821. # Unfortunately, on DOS this fails, as config.log is still kept open
  11822. # by configure, so config.status won't be able to write to it; its
  11823. # output is simply discarded. So we exec the FD to /dev/null,
  11824. # effectively closing config.log, so it can be properly (re)opened and
  11825. # appended to by config.status. When coming back to configure, we
  11826. # need to make the FD available again.
  11827. if test "$no_create" != yes; then
  11828. ac_cs_success=:
  11829. ac_config_status_args=
  11830. test "$silent" = yes &&
  11831. ac_config_status_args="$ac_config_status_args --quiet"
  11832. exec 5>/dev/null
  11833. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11834. exec 5>>config.log
  11835. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11836. # would make configure fail if this is the last instruction.
  11837. $ac_cs_success || as_fn_exit 1
  11838. fi
  11839. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11841. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11842. fi