configure 387 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  159. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  160. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. PATH=/empty FPATH=/empty; export PATH FPATH
  163. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  164. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  165. test \$(( 1 + 1 )) = 2 || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME=
  509. PACKAGE_TARNAME=
  510. PACKAGE_VERSION=
  511. PACKAGE_STRING=
  512. PACKAGE_BUGREPORT=
  513. PACKAGE_URL=
  514. ac_unique_file="zlib.h"
  515. # Factoring default headers for most tests.
  516. ac_includes_default="\
  517. #include <stdio.h>
  518. #ifdef HAVE_SYS_TYPES_H
  519. # include <sys/types.h>
  520. #endif
  521. #ifdef HAVE_SYS_STAT_H
  522. # include <sys/stat.h>
  523. #endif
  524. #ifdef STDC_HEADERS
  525. # include <stdlib.h>
  526. # include <stddef.h>
  527. #else
  528. # ifdef HAVE_STDLIB_H
  529. # include <stdlib.h>
  530. # endif
  531. #endif
  532. #ifdef HAVE_STRING_H
  533. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  534. # include <memory.h>
  535. # endif
  536. # include <string.h>
  537. #endif
  538. #ifdef HAVE_STRINGS_H
  539. # include <strings.h>
  540. #endif
  541. #ifdef HAVE_INTTYPES_H
  542. # include <inttypes.h>
  543. #endif
  544. #ifdef HAVE_STDINT_H
  545. # include <stdint.h>
  546. #endif
  547. #ifdef HAVE_UNISTD_H
  548. # include <unistd.h>
  549. #endif"
  550. ac_subst_vars='am__EXEEXT_FALSE
  551. am__EXEEXT_TRUE
  552. LTLIBOBJS
  553. LIBOBJS
  554. PICFLAG
  555. TARGET_LIBRARY_FALSE
  556. TARGET_LIBRARY_TRUE
  557. toolexeclibdir
  558. toolexecdir
  559. target_all
  560. CPP
  561. OTOOL64
  562. OTOOL
  563. LIPO
  564. NMEDIT
  565. DSYMUTIL
  566. RANLIB
  567. AR
  568. OBJDUMP
  569. LN_S
  570. NM
  571. ac_ct_DUMPBIN
  572. DUMPBIN
  573. LD
  574. FGREP
  575. EGREP
  576. GREP
  577. SED
  578. LIBTOOL
  579. am__fastdepCC_FALSE
  580. am__fastdepCC_TRUE
  581. CCDEPMODE
  582. AMDEPBACKSLASH
  583. AMDEP_FALSE
  584. AMDEP_TRUE
  585. am__quote
  586. am__include
  587. DEPDIR
  588. OBJEXT
  589. EXEEXT
  590. ac_ct_CC
  591. CPPFLAGS
  592. LDFLAGS
  593. CFLAGS
  594. CC
  595. COMPPATH
  596. MAINT
  597. MAINTAINER_MODE_FALSE
  598. MAINTAINER_MODE_TRUE
  599. am__untar
  600. am__tar
  601. AMTAR
  602. am__leading_dot
  603. SET_MAKE
  604. AWK
  605. mkdir_p
  606. MKDIR_P
  607. INSTALL_STRIP_PROGRAM
  608. STRIP
  609. install_sh
  610. MAKEINFO
  611. AUTOHEADER
  612. AUTOMAKE
  613. AUTOCONF
  614. ACLOCAL
  615. VERSION
  616. PACKAGE
  617. CYGPATH_W
  618. am__isrc
  619. INSTALL_DATA
  620. INSTALL_SCRIPT
  621. INSTALL_PROGRAM
  622. mkinstalldirs
  623. target_os
  624. target_vendor
  625. target_cpu
  626. target
  627. host_os
  628. host_vendor
  629. host_cpu
  630. host
  631. build_os
  632. build_vendor
  633. build_cpu
  634. build
  635. multi_basedir
  636. target_alias
  637. host_alias
  638. build_alias
  639. LIBS
  640. ECHO_T
  641. ECHO_N
  642. ECHO_C
  643. DEFS
  644. mandir
  645. localedir
  646. libdir
  647. psdir
  648. pdfdir
  649. dvidir
  650. htmldir
  651. infodir
  652. docdir
  653. oldincludedir
  654. includedir
  655. localstatedir
  656. sharedstatedir
  657. sysconfdir
  658. datadir
  659. datarootdir
  660. libexecdir
  661. sbindir
  662. bindir
  663. program_transform_name
  664. prefix
  665. exec_prefix
  666. PACKAGE_URL
  667. PACKAGE_BUGREPORT
  668. PACKAGE_STRING
  669. PACKAGE_VERSION
  670. PACKAGE_TARNAME
  671. PACKAGE_NAME
  672. PATH_SEPARATOR
  673. SHELL'
  674. ac_subst_files=''
  675. ac_user_opts='
  676. enable_option_checking
  677. enable_multilib
  678. enable_maintainer_mode
  679. with_target_subdir
  680. with_cross_host
  681. with_system_zlib
  682. enable_dependency_tracking
  683. enable_shared
  684. enable_static
  685. with_pic
  686. enable_fast_install
  687. with_gnu_ld
  688. enable_libtool_lock
  689. enable_host_shared
  690. '
  691. ac_precious_vars='build_alias
  692. host_alias
  693. target_alias
  694. CPP
  695. CPPFLAGS'
  696. # Initialize some variables set by options.
  697. ac_init_help=
  698. ac_init_version=false
  699. ac_unrecognized_opts=
  700. ac_unrecognized_sep=
  701. # The variables have the same names as the options, with
  702. # dashes changed to underlines.
  703. cache_file=/dev/null
  704. exec_prefix=NONE
  705. no_create=
  706. no_recursion=
  707. prefix=NONE
  708. program_prefix=NONE
  709. program_suffix=NONE
  710. program_transform_name=s,x,x,
  711. silent=
  712. site=
  713. srcdir=
  714. verbose=
  715. x_includes=NONE
  716. x_libraries=NONE
  717. # Installation directory options.
  718. # These are left unexpanded so users can "make install exec_prefix=/foo"
  719. # and all the variables that are supposed to be based on exec_prefix
  720. # by default will actually change.
  721. # Use braces instead of parens because sh, perl, etc. also accept them.
  722. # (The list follows the same order as the GNU Coding Standards.)
  723. bindir='${exec_prefix}/bin'
  724. sbindir='${exec_prefix}/sbin'
  725. libexecdir='${exec_prefix}/libexec'
  726. datarootdir='${prefix}/share'
  727. datadir='${datarootdir}'
  728. sysconfdir='${prefix}/etc'
  729. sharedstatedir='${prefix}/com'
  730. localstatedir='${prefix}/var'
  731. includedir='${prefix}/include'
  732. oldincludedir='/usr/include'
  733. docdir='${datarootdir}/doc/${PACKAGE}'
  734. infodir='${datarootdir}/info'
  735. htmldir='${docdir}'
  736. dvidir='${docdir}'
  737. pdfdir='${docdir}'
  738. psdir='${docdir}'
  739. libdir='${exec_prefix}/lib'
  740. localedir='${datarootdir}/locale'
  741. mandir='${datarootdir}/man'
  742. ac_prev=
  743. ac_dashdash=
  744. for ac_option
  745. do
  746. # If the previous option needs an argument, assign it.
  747. if test -n "$ac_prev"; then
  748. eval $ac_prev=\$ac_option
  749. ac_prev=
  750. continue
  751. fi
  752. case $ac_option in
  753. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  754. *) ac_optarg=yes ;;
  755. esac
  756. # Accept the important Cygnus configure options, so we can diagnose typos.
  757. case $ac_dashdash$ac_option in
  758. --)
  759. ac_dashdash=yes ;;
  760. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  761. ac_prev=bindir ;;
  762. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  763. bindir=$ac_optarg ;;
  764. -build | --build | --buil | --bui | --bu)
  765. ac_prev=build_alias ;;
  766. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  767. build_alias=$ac_optarg ;;
  768. -cache-file | --cache-file | --cache-fil | --cache-fi \
  769. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  770. ac_prev=cache_file ;;
  771. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  772. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  773. cache_file=$ac_optarg ;;
  774. --config-cache | -C)
  775. cache_file=config.cache ;;
  776. -datadir | --datadir | --datadi | --datad)
  777. ac_prev=datadir ;;
  778. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  779. datadir=$ac_optarg ;;
  780. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  781. | --dataroo | --dataro | --datar)
  782. ac_prev=datarootdir ;;
  783. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  784. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  785. datarootdir=$ac_optarg ;;
  786. -disable-* | --disable-*)
  787. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  788. # Reject names that are not valid shell variable names.
  789. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  790. as_fn_error "invalid feature name: $ac_useropt"
  791. ac_useropt_orig=$ac_useropt
  792. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  793. case $ac_user_opts in
  794. *"
  795. "enable_$ac_useropt"
  796. "*) ;;
  797. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  798. ac_unrecognized_sep=', ';;
  799. esac
  800. eval enable_$ac_useropt=no ;;
  801. -docdir | --docdir | --docdi | --doc | --do)
  802. ac_prev=docdir ;;
  803. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  804. docdir=$ac_optarg ;;
  805. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  806. ac_prev=dvidir ;;
  807. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  808. dvidir=$ac_optarg ;;
  809. -enable-* | --enable-*)
  810. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  811. # Reject names that are not valid shell variable names.
  812. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  813. as_fn_error "invalid feature name: $ac_useropt"
  814. ac_useropt_orig=$ac_useropt
  815. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  816. case $ac_user_opts in
  817. *"
  818. "enable_$ac_useropt"
  819. "*) ;;
  820. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  821. ac_unrecognized_sep=', ';;
  822. esac
  823. eval enable_$ac_useropt=\$ac_optarg ;;
  824. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  825. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  826. | --exec | --exe | --ex)
  827. ac_prev=exec_prefix ;;
  828. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  829. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  830. | --exec=* | --exe=* | --ex=*)
  831. exec_prefix=$ac_optarg ;;
  832. -gas | --gas | --ga | --g)
  833. # Obsolete; use --with-gas.
  834. with_gas=yes ;;
  835. -help | --help | --hel | --he | -h)
  836. ac_init_help=long ;;
  837. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  838. ac_init_help=recursive ;;
  839. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  840. ac_init_help=short ;;
  841. -host | --host | --hos | --ho)
  842. ac_prev=host_alias ;;
  843. -host=* | --host=* | --hos=* | --ho=*)
  844. host_alias=$ac_optarg ;;
  845. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  846. ac_prev=htmldir ;;
  847. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  848. | --ht=*)
  849. htmldir=$ac_optarg ;;
  850. -includedir | --includedir | --includedi | --included | --include \
  851. | --includ | --inclu | --incl | --inc)
  852. ac_prev=includedir ;;
  853. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  854. | --includ=* | --inclu=* | --incl=* | --inc=*)
  855. includedir=$ac_optarg ;;
  856. -infodir | --infodir | --infodi | --infod | --info | --inf)
  857. ac_prev=infodir ;;
  858. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  859. infodir=$ac_optarg ;;
  860. -libdir | --libdir | --libdi | --libd)
  861. ac_prev=libdir ;;
  862. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  863. libdir=$ac_optarg ;;
  864. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  865. | --libexe | --libex | --libe)
  866. ac_prev=libexecdir ;;
  867. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  868. | --libexe=* | --libex=* | --libe=*)
  869. libexecdir=$ac_optarg ;;
  870. -localedir | --localedir | --localedi | --localed | --locale)
  871. ac_prev=localedir ;;
  872. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  873. localedir=$ac_optarg ;;
  874. -localstatedir | --localstatedir | --localstatedi | --localstated \
  875. | --localstate | --localstat | --localsta | --localst | --locals)
  876. ac_prev=localstatedir ;;
  877. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  878. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  879. localstatedir=$ac_optarg ;;
  880. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  881. ac_prev=mandir ;;
  882. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  883. mandir=$ac_optarg ;;
  884. -nfp | --nfp | --nf)
  885. # Obsolete; use --without-fp.
  886. with_fp=no ;;
  887. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  888. | --no-cr | --no-c | -n)
  889. no_create=yes ;;
  890. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  891. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  892. no_recursion=yes ;;
  893. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  894. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  895. | --oldin | --oldi | --old | --ol | --o)
  896. ac_prev=oldincludedir ;;
  897. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  898. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  899. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  900. oldincludedir=$ac_optarg ;;
  901. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  902. ac_prev=prefix ;;
  903. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  904. prefix=$ac_optarg ;;
  905. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  906. | --program-pre | --program-pr | --program-p)
  907. ac_prev=program_prefix ;;
  908. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  909. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  910. program_prefix=$ac_optarg ;;
  911. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  912. | --program-suf | --program-su | --program-s)
  913. ac_prev=program_suffix ;;
  914. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  915. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  916. program_suffix=$ac_optarg ;;
  917. -program-transform-name | --program-transform-name \
  918. | --program-transform-nam | --program-transform-na \
  919. | --program-transform-n | --program-transform- \
  920. | --program-transform | --program-transfor \
  921. | --program-transfo | --program-transf \
  922. | --program-trans | --program-tran \
  923. | --progr-tra | --program-tr | --program-t)
  924. ac_prev=program_transform_name ;;
  925. -program-transform-name=* | --program-transform-name=* \
  926. | --program-transform-nam=* | --program-transform-na=* \
  927. | --program-transform-n=* | --program-transform-=* \
  928. | --program-transform=* | --program-transfor=* \
  929. | --program-transfo=* | --program-transf=* \
  930. | --program-trans=* | --program-tran=* \
  931. | --progr-tra=* | --program-tr=* | --program-t=*)
  932. program_transform_name=$ac_optarg ;;
  933. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  934. ac_prev=pdfdir ;;
  935. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  936. pdfdir=$ac_optarg ;;
  937. -psdir | --psdir | --psdi | --psd | --ps)
  938. ac_prev=psdir ;;
  939. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  940. psdir=$ac_optarg ;;
  941. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  942. | -silent | --silent | --silen | --sile | --sil)
  943. silent=yes ;;
  944. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  945. ac_prev=sbindir ;;
  946. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  947. | --sbi=* | --sb=*)
  948. sbindir=$ac_optarg ;;
  949. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  950. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  951. | --sharedst | --shareds | --shared | --share | --shar \
  952. | --sha | --sh)
  953. ac_prev=sharedstatedir ;;
  954. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  955. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  956. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  957. | --sha=* | --sh=*)
  958. sharedstatedir=$ac_optarg ;;
  959. -site | --site | --sit)
  960. ac_prev=site ;;
  961. -site=* | --site=* | --sit=*)
  962. site=$ac_optarg ;;
  963. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  964. ac_prev=srcdir ;;
  965. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  966. srcdir=$ac_optarg ;;
  967. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  968. | --syscon | --sysco | --sysc | --sys | --sy)
  969. ac_prev=sysconfdir ;;
  970. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  971. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  972. sysconfdir=$ac_optarg ;;
  973. -target | --target | --targe | --targ | --tar | --ta | --t)
  974. ac_prev=target_alias ;;
  975. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  976. target_alias=$ac_optarg ;;
  977. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  978. verbose=yes ;;
  979. -version | --version | --versio | --versi | --vers | -V)
  980. ac_init_version=: ;;
  981. -with-* | --with-*)
  982. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  983. # Reject names that are not valid shell variable names.
  984. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  985. as_fn_error "invalid package name: $ac_useropt"
  986. ac_useropt_orig=$ac_useropt
  987. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  988. case $ac_user_opts in
  989. *"
  990. "with_$ac_useropt"
  991. "*) ;;
  992. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  993. ac_unrecognized_sep=', ';;
  994. esac
  995. eval with_$ac_useropt=\$ac_optarg ;;
  996. -without-* | --without-*)
  997. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  998. # Reject names that are not valid shell variable names.
  999. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1000. as_fn_error "invalid package name: $ac_useropt"
  1001. ac_useropt_orig=$ac_useropt
  1002. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1003. case $ac_user_opts in
  1004. *"
  1005. "with_$ac_useropt"
  1006. "*) ;;
  1007. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1008. ac_unrecognized_sep=', ';;
  1009. esac
  1010. eval with_$ac_useropt=no ;;
  1011. --x)
  1012. # Obsolete; use --with-x.
  1013. with_x=yes ;;
  1014. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1015. | --x-incl | --x-inc | --x-in | --x-i)
  1016. ac_prev=x_includes ;;
  1017. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1018. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1019. x_includes=$ac_optarg ;;
  1020. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1021. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1022. ac_prev=x_libraries ;;
  1023. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1024. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1025. x_libraries=$ac_optarg ;;
  1026. -*) as_fn_error "unrecognized option: \`$ac_option'
  1027. Try \`$0 --help' for more information."
  1028. ;;
  1029. *=*)
  1030. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1031. # Reject names that are not valid shell variable names.
  1032. case $ac_envvar in #(
  1033. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1034. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1035. esac
  1036. eval $ac_envvar=\$ac_optarg
  1037. export $ac_envvar ;;
  1038. *)
  1039. # FIXME: should be removed in autoconf 3.0.
  1040. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1041. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1042. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1043. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1044. ;;
  1045. esac
  1046. done
  1047. if test -n "$ac_prev"; then
  1048. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1049. as_fn_error "missing argument to $ac_option"
  1050. fi
  1051. if test -n "$ac_unrecognized_opts"; then
  1052. case $enable_option_checking in
  1053. no) ;;
  1054. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1055. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1056. esac
  1057. fi
  1058. # Check all directory arguments for consistency.
  1059. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1060. datadir sysconfdir sharedstatedir localstatedir includedir \
  1061. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1062. libdir localedir mandir
  1063. do
  1064. eval ac_val=\$$ac_var
  1065. # Remove trailing slashes.
  1066. case $ac_val in
  1067. */ )
  1068. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1069. eval $ac_var=\$ac_val;;
  1070. esac
  1071. # Be sure to have absolute directory names.
  1072. case $ac_val in
  1073. [\\/$]* | ?:[\\/]* ) continue;;
  1074. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1075. esac
  1076. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1077. done
  1078. # There might be people who depend on the old broken behavior: `$host'
  1079. # used to hold the argument of --host etc.
  1080. # FIXME: To remove some day.
  1081. build=$build_alias
  1082. host=$host_alias
  1083. target=$target_alias
  1084. # FIXME: To remove some day.
  1085. if test "x$host_alias" != x; then
  1086. if test "x$build_alias" = x; then
  1087. cross_compiling=maybe
  1088. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1089. If a cross compiler is detected then cross compile mode will be used." >&2
  1090. elif test "x$build_alias" != "x$host_alias"; then
  1091. cross_compiling=yes
  1092. fi
  1093. fi
  1094. ac_tool_prefix=
  1095. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1096. test "$silent" = yes && exec 6>/dev/null
  1097. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1098. ac_ls_di=`ls -di .` &&
  1099. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1100. as_fn_error "working directory cannot be determined"
  1101. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1102. as_fn_error "pwd does not report name of working directory"
  1103. # Find the source files, if location was not specified.
  1104. if test -z "$srcdir"; then
  1105. ac_srcdir_defaulted=yes
  1106. # Try the directory containing this script, then the parent directory.
  1107. ac_confdir=`$as_dirname -- "$as_myself" ||
  1108. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1109. X"$as_myself" : 'X\(//\)[^/]' \| \
  1110. X"$as_myself" : 'X\(//\)$' \| \
  1111. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1112. $as_echo X"$as_myself" |
  1113. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1114. s//\1/
  1115. q
  1116. }
  1117. /^X\(\/\/\)[^/].*/{
  1118. s//\1/
  1119. q
  1120. }
  1121. /^X\(\/\/\)$/{
  1122. s//\1/
  1123. q
  1124. }
  1125. /^X\(\/\).*/{
  1126. s//\1/
  1127. q
  1128. }
  1129. s/.*/./; q'`
  1130. srcdir=$ac_confdir
  1131. if test ! -r "$srcdir/$ac_unique_file"; then
  1132. srcdir=..
  1133. fi
  1134. else
  1135. ac_srcdir_defaulted=no
  1136. fi
  1137. if test ! -r "$srcdir/$ac_unique_file"; then
  1138. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1139. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1140. fi
  1141. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1142. ac_abs_confdir=`(
  1143. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1144. pwd)`
  1145. # When building in place, set srcdir=.
  1146. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1147. srcdir=.
  1148. fi
  1149. # Remove unnecessary trailing slashes from srcdir.
  1150. # Double slashes in file names in object file debugging info
  1151. # mess up M-x gdb in Emacs.
  1152. case $srcdir in
  1153. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1154. esac
  1155. for ac_var in $ac_precious_vars; do
  1156. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1157. eval ac_env_${ac_var}_value=\$${ac_var}
  1158. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1159. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1160. done
  1161. #
  1162. # Report the --help message.
  1163. #
  1164. if test "$ac_init_help" = "long"; then
  1165. # Omit some internal or obsolete options to make the list less imposing.
  1166. # This message is too long to be a string in the A/UX 3.1 sh.
  1167. cat <<_ACEOF
  1168. \`configure' configures this package to adapt to many kinds of systems.
  1169. Usage: $0 [OPTION]... [VAR=VALUE]...
  1170. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1171. VAR=VALUE. See below for descriptions of some of the useful variables.
  1172. Defaults for the options are specified in brackets.
  1173. Configuration:
  1174. -h, --help display this help and exit
  1175. --help=short display options specific to this package
  1176. --help=recursive display the short help of all the included packages
  1177. -V, --version display version information and exit
  1178. -q, --quiet, --silent do not print \`checking...' messages
  1179. --cache-file=FILE cache test results in FILE [disabled]
  1180. -C, --config-cache alias for \`--cache-file=config.cache'
  1181. -n, --no-create do not create output files
  1182. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1183. Installation directories:
  1184. --prefix=PREFIX install architecture-independent files in PREFIX
  1185. [$ac_default_prefix]
  1186. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1187. [PREFIX]
  1188. By default, \`make install' will install all the files in
  1189. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1190. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1191. for instance \`--prefix=\$HOME'.
  1192. For better control, use the options below.
  1193. Fine tuning of the installation directories:
  1194. --bindir=DIR user executables [EPREFIX/bin]
  1195. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1196. --libexecdir=DIR program executables [EPREFIX/libexec]
  1197. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1198. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1199. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1200. --libdir=DIR object code libraries [EPREFIX/lib]
  1201. --includedir=DIR C header files [PREFIX/include]
  1202. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1203. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1204. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1205. --infodir=DIR info documentation [DATAROOTDIR/info]
  1206. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1207. --mandir=DIR man documentation [DATAROOTDIR/man]
  1208. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1209. --htmldir=DIR html documentation [DOCDIR]
  1210. --dvidir=DIR dvi documentation [DOCDIR]
  1211. --pdfdir=DIR pdf documentation [DOCDIR]
  1212. --psdir=DIR ps documentation [DOCDIR]
  1213. _ACEOF
  1214. cat <<\_ACEOF
  1215. Program names:
  1216. --program-prefix=PREFIX prepend PREFIX to installed program names
  1217. --program-suffix=SUFFIX append SUFFIX to installed program names
  1218. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1219. System types:
  1220. --build=BUILD configure for building on BUILD [guessed]
  1221. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1222. --target=TARGET configure for building compilers for TARGET [HOST]
  1223. _ACEOF
  1224. fi
  1225. if test -n "$ac_init_help"; then
  1226. cat <<\_ACEOF
  1227. Optional Features:
  1228. --disable-option-checking ignore unrecognized --enable/--with options
  1229. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1230. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1231. --enable-multilib build many library versions (default)
  1232. --enable-maintainer-mode enable make rules and dependencies not useful
  1233. (and sometimes confusing) to the casual installer
  1234. --disable-dependency-tracking speeds up one-time build
  1235. --enable-dependency-tracking do not reject slow dependency extractors
  1236. --enable-shared[=PKGS] build shared libraries [default=yes]
  1237. --enable-static[=PKGS] build static libraries [default=yes]
  1238. --enable-fast-install[=PKGS]
  1239. optimize for fast installation [default=yes]
  1240. --disable-libtool-lock avoid locking (might break parallel builds)
  1241. --enable-host-shared build host code as shared libraries
  1242. Optional Packages:
  1243. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1244. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1245. --with-target-subdir=SUBDIR
  1246. configuring in a subdirectory
  1247. --with-cross-host=HOST configuring with a cross compiler
  1248. --with-system-zlib use installed libz
  1249. --with-pic try to use only PIC/non-PIC objects [default=use
  1250. both]
  1251. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1252. Some influential environment variables:
  1253. CC C compiler command
  1254. CFLAGS C compiler flags
  1255. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1256. nonstandard directory <lib dir>
  1257. LIBS libraries to pass to the linker, e.g. -l<library>
  1258. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1259. you have headers in a nonstandard directory <include dir>
  1260. CPP C preprocessor
  1261. Use these variables to override the choices made by `configure' or to help
  1262. it to find libraries and programs with nonstandard names/locations.
  1263. Report bugs to the package provider.
  1264. _ACEOF
  1265. ac_status=$?
  1266. fi
  1267. if test "$ac_init_help" = "recursive"; then
  1268. # If there are subdirs, report their specific --help.
  1269. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1270. test -d "$ac_dir" ||
  1271. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1272. continue
  1273. ac_builddir=.
  1274. case "$ac_dir" in
  1275. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1276. *)
  1277. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1278. # A ".." for each directory in $ac_dir_suffix.
  1279. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1280. case $ac_top_builddir_sub in
  1281. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1282. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1283. esac ;;
  1284. esac
  1285. ac_abs_top_builddir=$ac_pwd
  1286. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1287. # for backward compatibility:
  1288. ac_top_builddir=$ac_top_build_prefix
  1289. case $srcdir in
  1290. .) # We are building in place.
  1291. ac_srcdir=.
  1292. ac_top_srcdir=$ac_top_builddir_sub
  1293. ac_abs_top_srcdir=$ac_pwd ;;
  1294. [\\/]* | ?:[\\/]* ) # Absolute name.
  1295. ac_srcdir=$srcdir$ac_dir_suffix;
  1296. ac_top_srcdir=$srcdir
  1297. ac_abs_top_srcdir=$srcdir ;;
  1298. *) # Relative name.
  1299. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1300. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1301. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1302. esac
  1303. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1304. cd "$ac_dir" || { ac_status=$?; continue; }
  1305. # Check for guested configure.
  1306. if test -f "$ac_srcdir/configure.gnu"; then
  1307. echo &&
  1308. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1309. elif test -f "$ac_srcdir/configure"; then
  1310. echo &&
  1311. $SHELL "$ac_srcdir/configure" --help=recursive
  1312. else
  1313. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1314. fi || ac_status=$?
  1315. cd "$ac_pwd" || { ac_status=$?; break; }
  1316. done
  1317. fi
  1318. test -n "$ac_init_help" && exit $ac_status
  1319. if $ac_init_version; then
  1320. cat <<\_ACEOF
  1321. configure
  1322. generated by GNU Autoconf 2.64
  1323. Copyright (C) 2009 Free Software Foundation, Inc.
  1324. This configure script is free software; the Free Software Foundation
  1325. gives unlimited permission to copy, distribute and modify it.
  1326. _ACEOF
  1327. exit
  1328. fi
  1329. ## ------------------------ ##
  1330. ## Autoconf initialization. ##
  1331. ## ------------------------ ##
  1332. # ac_fn_c_try_compile LINENO
  1333. # --------------------------
  1334. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1335. ac_fn_c_try_compile ()
  1336. {
  1337. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1338. rm -f conftest.$ac_objext
  1339. if { { ac_try="$ac_compile"
  1340. case "(($ac_try" in
  1341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1342. *) ac_try_echo=$ac_try;;
  1343. esac
  1344. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1345. $as_echo "$ac_try_echo"; } >&5
  1346. (eval "$ac_compile") 2>conftest.err
  1347. ac_status=$?
  1348. if test -s conftest.err; then
  1349. grep -v '^ *+' conftest.err >conftest.er1
  1350. cat conftest.er1 >&5
  1351. mv -f conftest.er1 conftest.err
  1352. fi
  1353. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1354. test $ac_status = 0; } && {
  1355. test -z "$ac_c_werror_flag" ||
  1356. test ! -s conftest.err
  1357. } && test -s conftest.$ac_objext; then :
  1358. ac_retval=0
  1359. else
  1360. $as_echo "$as_me: failed program was:" >&5
  1361. sed 's/^/| /' conftest.$ac_ext >&5
  1362. ac_retval=1
  1363. fi
  1364. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1365. return $ac_retval
  1366. } # ac_fn_c_try_compile
  1367. # ac_fn_c_try_link LINENO
  1368. # -----------------------
  1369. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1370. ac_fn_c_try_link ()
  1371. {
  1372. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1373. rm -f conftest.$ac_objext conftest$ac_exeext
  1374. if { { ac_try="$ac_link"
  1375. case "(($ac_try" in
  1376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1377. *) ac_try_echo=$ac_try;;
  1378. esac
  1379. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1380. $as_echo "$ac_try_echo"; } >&5
  1381. (eval "$ac_link") 2>conftest.err
  1382. ac_status=$?
  1383. if test -s conftest.err; then
  1384. grep -v '^ *+' conftest.err >conftest.er1
  1385. cat conftest.er1 >&5
  1386. mv -f conftest.er1 conftest.err
  1387. fi
  1388. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1389. test $ac_status = 0; } && {
  1390. test -z "$ac_c_werror_flag" ||
  1391. test ! -s conftest.err
  1392. } && test -s conftest$ac_exeext && {
  1393. test "$cross_compiling" = yes ||
  1394. $as_test_x conftest$ac_exeext
  1395. }; then :
  1396. ac_retval=0
  1397. else
  1398. $as_echo "$as_me: failed program was:" >&5
  1399. sed 's/^/| /' conftest.$ac_ext >&5
  1400. ac_retval=1
  1401. fi
  1402. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1403. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1404. # interfere with the next link command; also delete a directory that is
  1405. # left behind by Apple's compiler. We do this before executing the actions.
  1406. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1407. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1408. return $ac_retval
  1409. } # ac_fn_c_try_link
  1410. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1411. # -------------------------------------------------------
  1412. # Tests whether HEADER exists and can be compiled using the include files in
  1413. # INCLUDES, setting the cache variable VAR accordingly.
  1414. ac_fn_c_check_header_compile ()
  1415. {
  1416. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1418. $as_echo_n "checking for $2... " >&6; }
  1419. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1420. $as_echo_n "(cached) " >&6
  1421. else
  1422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1423. /* end confdefs.h. */
  1424. $4
  1425. #include <$2>
  1426. _ACEOF
  1427. if ac_fn_c_try_compile "$LINENO"; then :
  1428. eval "$3=yes"
  1429. else
  1430. eval "$3=no"
  1431. fi
  1432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1433. fi
  1434. eval ac_res=\$$3
  1435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1436. $as_echo "$ac_res" >&6; }
  1437. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1438. } # ac_fn_c_check_header_compile
  1439. # ac_fn_c_try_cpp LINENO
  1440. # ----------------------
  1441. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1442. ac_fn_c_try_cpp ()
  1443. {
  1444. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1445. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1446. case "(($ac_try" in
  1447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1448. *) ac_try_echo=$ac_try;;
  1449. esac
  1450. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1451. $as_echo "$ac_try_echo"; } >&5
  1452. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1453. ac_status=$?
  1454. if test -s conftest.err; then
  1455. grep -v '^ *+' conftest.err >conftest.er1
  1456. cat conftest.er1 >&5
  1457. mv -f conftest.er1 conftest.err
  1458. fi
  1459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1460. test $ac_status = 0; } >/dev/null && {
  1461. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1462. test ! -s conftest.err
  1463. }; then :
  1464. ac_retval=0
  1465. else
  1466. $as_echo "$as_me: failed program was:" >&5
  1467. sed 's/^/| /' conftest.$ac_ext >&5
  1468. ac_retval=1
  1469. fi
  1470. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1471. return $ac_retval
  1472. } # ac_fn_c_try_cpp
  1473. # ac_fn_c_try_run LINENO
  1474. # ----------------------
  1475. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1476. # that executables *can* be run.
  1477. ac_fn_c_try_run ()
  1478. {
  1479. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1480. if { { ac_try="$ac_link"
  1481. case "(($ac_try" in
  1482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1483. *) ac_try_echo=$ac_try;;
  1484. esac
  1485. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1486. $as_echo "$ac_try_echo"; } >&5
  1487. (eval "$ac_link") 2>&5
  1488. ac_status=$?
  1489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1490. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1491. { { case "(($ac_try" in
  1492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1493. *) ac_try_echo=$ac_try;;
  1494. esac
  1495. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1496. $as_echo "$ac_try_echo"; } >&5
  1497. (eval "$ac_try") 2>&5
  1498. ac_status=$?
  1499. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1500. test $ac_status = 0; }; }; then :
  1501. ac_retval=0
  1502. else
  1503. $as_echo "$as_me: program exited with status $ac_status" >&5
  1504. $as_echo "$as_me: failed program was:" >&5
  1505. sed 's/^/| /' conftest.$ac_ext >&5
  1506. ac_retval=$ac_status
  1507. fi
  1508. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1509. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1510. return $ac_retval
  1511. } # ac_fn_c_try_run
  1512. # ac_fn_c_check_func LINENO FUNC VAR
  1513. # ----------------------------------
  1514. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1515. ac_fn_c_check_func ()
  1516. {
  1517. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1519. $as_echo_n "checking for $2... " >&6; }
  1520. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1521. $as_echo_n "(cached) " >&6
  1522. else
  1523. if test x$gcc_no_link = xyes; then
  1524. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1525. fi
  1526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1527. /* end confdefs.h. */
  1528. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1529. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1530. #define $2 innocuous_$2
  1531. /* System header to define __stub macros and hopefully few prototypes,
  1532. which can conflict with char $2 (); below.
  1533. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1534. <limits.h> exists even on freestanding compilers. */
  1535. #ifdef __STDC__
  1536. # include <limits.h>
  1537. #else
  1538. # include <assert.h>
  1539. #endif
  1540. #undef $2
  1541. /* Override any GCC internal prototype to avoid an error.
  1542. Use char because int might match the return type of a GCC
  1543. builtin and then its argument prototype would still apply. */
  1544. #ifdef __cplusplus
  1545. extern "C"
  1546. #endif
  1547. char $2 ();
  1548. /* The GNU C library defines this for functions which it implements
  1549. to always fail with ENOSYS. Some functions are actually named
  1550. something starting with __ and the normal name is an alias. */
  1551. #if defined __stub_$2 || defined __stub___$2
  1552. choke me
  1553. #endif
  1554. int
  1555. main ()
  1556. {
  1557. return $2 ();
  1558. ;
  1559. return 0;
  1560. }
  1561. _ACEOF
  1562. if ac_fn_c_try_link "$LINENO"; then :
  1563. eval "$3=yes"
  1564. else
  1565. eval "$3=no"
  1566. fi
  1567. rm -f core conftest.err conftest.$ac_objext \
  1568. conftest$ac_exeext conftest.$ac_ext
  1569. fi
  1570. eval ac_res=\$$3
  1571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1572. $as_echo "$ac_res" >&6; }
  1573. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1574. } # ac_fn_c_check_func
  1575. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1576. # -------------------------------------------------------
  1577. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1578. # the include files in INCLUDES and setting the cache variable VAR
  1579. # accordingly.
  1580. ac_fn_c_check_header_mongrel ()
  1581. {
  1582. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1583. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1585. $as_echo_n "checking for $2... " >&6; }
  1586. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1587. $as_echo_n "(cached) " >&6
  1588. fi
  1589. eval ac_res=\$$3
  1590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1591. $as_echo "$ac_res" >&6; }
  1592. else
  1593. # Is the header compilable?
  1594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1595. $as_echo_n "checking $2 usability... " >&6; }
  1596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1597. /* end confdefs.h. */
  1598. $4
  1599. #include <$2>
  1600. _ACEOF
  1601. if ac_fn_c_try_compile "$LINENO"; then :
  1602. ac_header_compiler=yes
  1603. else
  1604. ac_header_compiler=no
  1605. fi
  1606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1608. $as_echo "$ac_header_compiler" >&6; }
  1609. # Is the header present?
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1611. $as_echo_n "checking $2 presence... " >&6; }
  1612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1613. /* end confdefs.h. */
  1614. #include <$2>
  1615. _ACEOF
  1616. if ac_fn_c_try_cpp "$LINENO"; then :
  1617. ac_header_preproc=yes
  1618. else
  1619. ac_header_preproc=no
  1620. fi
  1621. rm -f conftest.err conftest.$ac_ext
  1622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1623. $as_echo "$ac_header_preproc" >&6; }
  1624. # So? What about this header?
  1625. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1626. yes:no: )
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1628. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1630. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1631. ;;
  1632. no:yes:* )
  1633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1634. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1636. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1638. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1640. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1642. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1643. ;;
  1644. esac
  1645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1646. $as_echo_n "checking for $2... " >&6; }
  1647. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1648. $as_echo_n "(cached) " >&6
  1649. else
  1650. eval "$3=\$ac_header_compiler"
  1651. fi
  1652. eval ac_res=\$$3
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1654. $as_echo "$ac_res" >&6; }
  1655. fi
  1656. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1657. } # ac_fn_c_check_header_mongrel
  1658. cat >config.log <<_ACEOF
  1659. This file contains any messages produced by compilers while
  1660. running configure, to aid debugging if configure makes a mistake.
  1661. It was created by $as_me, which was
  1662. generated by GNU Autoconf 2.64. Invocation command line was
  1663. $ $0 $@
  1664. _ACEOF
  1665. exec 5>>config.log
  1666. {
  1667. cat <<_ASUNAME
  1668. ## --------- ##
  1669. ## Platform. ##
  1670. ## --------- ##
  1671. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1672. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1673. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1674. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1675. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1676. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1677. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1678. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1679. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1680. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1681. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1682. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1683. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1684. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1685. _ASUNAME
  1686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1687. for as_dir in $PATH
  1688. do
  1689. IFS=$as_save_IFS
  1690. test -z "$as_dir" && as_dir=.
  1691. $as_echo "PATH: $as_dir"
  1692. done
  1693. IFS=$as_save_IFS
  1694. } >&5
  1695. cat >&5 <<_ACEOF
  1696. ## ----------- ##
  1697. ## Core tests. ##
  1698. ## ----------- ##
  1699. _ACEOF
  1700. # Keep a trace of the command line.
  1701. # Strip out --no-create and --no-recursion so they do not pile up.
  1702. # Strip out --silent because we don't want to record it for future runs.
  1703. # Also quote any args containing shell meta-characters.
  1704. # Make two passes to allow for proper duplicate-argument suppression.
  1705. ac_configure_args=
  1706. ac_configure_args0=
  1707. ac_configure_args1=
  1708. ac_must_keep_next=false
  1709. for ac_pass in 1 2
  1710. do
  1711. for ac_arg
  1712. do
  1713. case $ac_arg in
  1714. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1715. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1716. | -silent | --silent | --silen | --sile | --sil)
  1717. continue ;;
  1718. *\'*)
  1719. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1720. esac
  1721. case $ac_pass in
  1722. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1723. 2)
  1724. as_fn_append ac_configure_args1 " '$ac_arg'"
  1725. if test $ac_must_keep_next = true; then
  1726. ac_must_keep_next=false # Got value, back to normal.
  1727. else
  1728. case $ac_arg in
  1729. *=* | --config-cache | -C | -disable-* | --disable-* \
  1730. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1731. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1732. | -with-* | --with-* | -without-* | --without-* | --x)
  1733. case "$ac_configure_args0 " in
  1734. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1735. esac
  1736. ;;
  1737. -* ) ac_must_keep_next=true ;;
  1738. esac
  1739. fi
  1740. as_fn_append ac_configure_args " '$ac_arg'"
  1741. ;;
  1742. esac
  1743. done
  1744. done
  1745. { ac_configure_args0=; unset ac_configure_args0;}
  1746. { ac_configure_args1=; unset ac_configure_args1;}
  1747. # When interrupted or exit'd, cleanup temporary files, and complete
  1748. # config.log. We remove comments because anyway the quotes in there
  1749. # would cause problems or look ugly.
  1750. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1751. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1752. trap 'exit_status=$?
  1753. # Save into config.log some information that might help in debugging.
  1754. {
  1755. echo
  1756. cat <<\_ASBOX
  1757. ## ---------------- ##
  1758. ## Cache variables. ##
  1759. ## ---------------- ##
  1760. _ASBOX
  1761. echo
  1762. # The following way of writing the cache mishandles newlines in values,
  1763. (
  1764. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1765. eval ac_val=\$$ac_var
  1766. case $ac_val in #(
  1767. *${as_nl}*)
  1768. case $ac_var in #(
  1769. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1770. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1771. esac
  1772. case $ac_var in #(
  1773. _ | IFS | as_nl) ;; #(
  1774. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1775. *) { eval $ac_var=; unset $ac_var;} ;;
  1776. esac ;;
  1777. esac
  1778. done
  1779. (set) 2>&1 |
  1780. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1781. *${as_nl}ac_space=\ *)
  1782. sed -n \
  1783. "s/'\''/'\''\\\\'\'''\''/g;
  1784. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1785. ;; #(
  1786. *)
  1787. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1788. ;;
  1789. esac |
  1790. sort
  1791. )
  1792. echo
  1793. cat <<\_ASBOX
  1794. ## ----------------- ##
  1795. ## Output variables. ##
  1796. ## ----------------- ##
  1797. _ASBOX
  1798. echo
  1799. for ac_var in $ac_subst_vars
  1800. do
  1801. eval ac_val=\$$ac_var
  1802. case $ac_val in
  1803. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1804. esac
  1805. $as_echo "$ac_var='\''$ac_val'\''"
  1806. done | sort
  1807. echo
  1808. if test -n "$ac_subst_files"; then
  1809. cat <<\_ASBOX
  1810. ## ------------------- ##
  1811. ## File substitutions. ##
  1812. ## ------------------- ##
  1813. _ASBOX
  1814. echo
  1815. for ac_var in $ac_subst_files
  1816. do
  1817. eval ac_val=\$$ac_var
  1818. case $ac_val in
  1819. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1820. esac
  1821. $as_echo "$ac_var='\''$ac_val'\''"
  1822. done | sort
  1823. echo
  1824. fi
  1825. if test -s confdefs.h; then
  1826. cat <<\_ASBOX
  1827. ## ----------- ##
  1828. ## confdefs.h. ##
  1829. ## ----------- ##
  1830. _ASBOX
  1831. echo
  1832. cat confdefs.h
  1833. echo
  1834. fi
  1835. test "$ac_signal" != 0 &&
  1836. $as_echo "$as_me: caught signal $ac_signal"
  1837. $as_echo "$as_me: exit $exit_status"
  1838. } >&5
  1839. rm -f core *.core core.conftest.* &&
  1840. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1841. exit $exit_status
  1842. ' 0
  1843. for ac_signal in 1 2 13 15; do
  1844. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1845. done
  1846. ac_signal=0
  1847. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1848. rm -f -r conftest* confdefs.h
  1849. $as_echo "/* confdefs.h */" > confdefs.h
  1850. # Predefined preprocessor variables.
  1851. cat >>confdefs.h <<_ACEOF
  1852. #define PACKAGE_NAME "$PACKAGE_NAME"
  1853. _ACEOF
  1854. cat >>confdefs.h <<_ACEOF
  1855. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1856. _ACEOF
  1857. cat >>confdefs.h <<_ACEOF
  1858. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1859. _ACEOF
  1860. cat >>confdefs.h <<_ACEOF
  1861. #define PACKAGE_STRING "$PACKAGE_STRING"
  1862. _ACEOF
  1863. cat >>confdefs.h <<_ACEOF
  1864. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1865. _ACEOF
  1866. cat >>confdefs.h <<_ACEOF
  1867. #define PACKAGE_URL "$PACKAGE_URL"
  1868. _ACEOF
  1869. # Let the site file select an alternate cache file if it wants to.
  1870. # Prefer an explicitly selected file to automatically selected ones.
  1871. ac_site_file1=NONE
  1872. ac_site_file2=NONE
  1873. if test -n "$CONFIG_SITE"; then
  1874. ac_site_file1=$CONFIG_SITE
  1875. elif test "x$prefix" != xNONE; then
  1876. ac_site_file1=$prefix/share/config.site
  1877. ac_site_file2=$prefix/etc/config.site
  1878. else
  1879. ac_site_file1=$ac_default_prefix/share/config.site
  1880. ac_site_file2=$ac_default_prefix/etc/config.site
  1881. fi
  1882. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1883. do
  1884. test "x$ac_site_file" = xNONE && continue
  1885. if test -r "$ac_site_file"; then
  1886. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1887. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1888. sed 's/^/| /' "$ac_site_file" >&5
  1889. . "$ac_site_file"
  1890. fi
  1891. done
  1892. if test -r "$cache_file"; then
  1893. # Some versions of bash will fail to source /dev/null (special
  1894. # files actually), so we avoid doing that.
  1895. if test -f "$cache_file"; then
  1896. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1897. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1898. case $cache_file in
  1899. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1900. *) . "./$cache_file";;
  1901. esac
  1902. fi
  1903. else
  1904. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1905. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1906. >$cache_file
  1907. fi
  1908. # Check that the precious variables saved in the cache have kept the same
  1909. # value.
  1910. ac_cache_corrupted=false
  1911. for ac_var in $ac_precious_vars; do
  1912. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1913. eval ac_new_set=\$ac_env_${ac_var}_set
  1914. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1915. eval ac_new_val=\$ac_env_${ac_var}_value
  1916. case $ac_old_set,$ac_new_set in
  1917. set,)
  1918. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1919. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1920. ac_cache_corrupted=: ;;
  1921. ,set)
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1923. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1924. ac_cache_corrupted=: ;;
  1925. ,);;
  1926. *)
  1927. if test "x$ac_old_val" != "x$ac_new_val"; then
  1928. # differences in whitespace do not lead to failure.
  1929. ac_old_val_w=`echo x $ac_old_val`
  1930. ac_new_val_w=`echo x $ac_new_val`
  1931. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1933. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1934. ac_cache_corrupted=:
  1935. else
  1936. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1937. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1938. eval $ac_var=\$ac_old_val
  1939. fi
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1941. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1943. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1944. fi;;
  1945. esac
  1946. # Pass precious variables to config.status.
  1947. if test "$ac_new_set" = set; then
  1948. case $ac_new_val in
  1949. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1950. *) ac_arg=$ac_var=$ac_new_val ;;
  1951. esac
  1952. case " $ac_configure_args " in
  1953. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1954. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1955. esac
  1956. fi
  1957. done
  1958. if $ac_cache_corrupted; then
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1960. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1962. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1963. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1964. fi
  1965. ## -------------------- ##
  1966. ## Main body of script. ##
  1967. ## -------------------- ##
  1968. ac_ext=c
  1969. ac_cpp='$CPP $CPPFLAGS'
  1970. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1971. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1972. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1973. # Default to --enable-multilib
  1974. # Check whether --enable-multilib was given.
  1975. if test "${enable_multilib+set}" = set; then :
  1976. enableval=$enable_multilib; case "$enableval" in
  1977. yes) multilib=yes ;;
  1978. no) multilib=no ;;
  1979. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  1980. esac
  1981. else
  1982. multilib=yes
  1983. fi
  1984. # We may get other options which we leave undocumented:
  1985. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  1986. # See config-ml.in if you want the gory details.
  1987. if test "$srcdir" = "."; then
  1988. if test "$with_target_subdir" != "."; then
  1989. multi_basedir="$srcdir/$with_multisrctop../.."
  1990. else
  1991. multi_basedir="$srcdir/$with_multisrctop.."
  1992. fi
  1993. else
  1994. multi_basedir="$srcdir/.."
  1995. fi
  1996. # Even if the default multilib is not a cross compilation,
  1997. # it may be that some of the other multilibs are.
  1998. if test $cross_compiling = no && test $multilib = yes \
  1999. && test "x${with_multisubdir}" != x ; then
  2000. cross_compiling=maybe
  2001. fi
  2002. ac_config_commands="$ac_config_commands default-1"
  2003. ac_aux_dir=
  2004. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2005. for ac_t in install-sh install.sh shtool; do
  2006. if test -f "$ac_dir/$ac_t"; then
  2007. ac_aux_dir=$ac_dir
  2008. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2009. break 2
  2010. fi
  2011. done
  2012. done
  2013. if test -z "$ac_aux_dir"; then
  2014. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2015. fi
  2016. # These three variables are undocumented and unsupported,
  2017. # and are intended to be withdrawn in a future Autoconf release.
  2018. # They can cause serious problems if a builder's source tree is in a directory
  2019. # whose full name contains unusual characters.
  2020. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2021. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2022. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2023. # Make sure we can run config.sub.
  2024. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2025. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2027. $as_echo_n "checking build system type... " >&6; }
  2028. if test "${ac_cv_build+set}" = set; then :
  2029. $as_echo_n "(cached) " >&6
  2030. else
  2031. ac_build_alias=$build_alias
  2032. test "x$ac_build_alias" = x &&
  2033. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2034. test "x$ac_build_alias" = x &&
  2035. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2036. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2037. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2038. fi
  2039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2040. $as_echo "$ac_cv_build" >&6; }
  2041. case $ac_cv_build in
  2042. *-*-*) ;;
  2043. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2044. esac
  2045. build=$ac_cv_build
  2046. ac_save_IFS=$IFS; IFS='-'
  2047. set x $ac_cv_build
  2048. shift
  2049. build_cpu=$1
  2050. build_vendor=$2
  2051. shift; shift
  2052. # Remember, the first character of IFS is used to create $*,
  2053. # except with old shells:
  2054. build_os=$*
  2055. IFS=$ac_save_IFS
  2056. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2058. $as_echo_n "checking host system type... " >&6; }
  2059. if test "${ac_cv_host+set}" = set; then :
  2060. $as_echo_n "(cached) " >&6
  2061. else
  2062. if test "x$host_alias" = x; then
  2063. ac_cv_host=$ac_cv_build
  2064. else
  2065. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2066. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2067. fi
  2068. fi
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2070. $as_echo "$ac_cv_host" >&6; }
  2071. case $ac_cv_host in
  2072. *-*-*) ;;
  2073. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2074. esac
  2075. host=$ac_cv_host
  2076. ac_save_IFS=$IFS; IFS='-'
  2077. set x $ac_cv_host
  2078. shift
  2079. host_cpu=$1
  2080. host_vendor=$2
  2081. shift; shift
  2082. # Remember, the first character of IFS is used to create $*,
  2083. # except with old shells:
  2084. host_os=$*
  2085. IFS=$ac_save_IFS
  2086. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2088. $as_echo_n "checking target system type... " >&6; }
  2089. if test "${ac_cv_target+set}" = set; then :
  2090. $as_echo_n "(cached) " >&6
  2091. else
  2092. if test "x$target_alias" = x; then
  2093. ac_cv_target=$ac_cv_host
  2094. else
  2095. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2096. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2097. fi
  2098. fi
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2100. $as_echo "$ac_cv_target" >&6; }
  2101. case $ac_cv_target in
  2102. *-*-*) ;;
  2103. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2104. esac
  2105. target=$ac_cv_target
  2106. ac_save_IFS=$IFS; IFS='-'
  2107. set x $ac_cv_target
  2108. shift
  2109. target_cpu=$1
  2110. target_vendor=$2
  2111. shift; shift
  2112. # Remember, the first character of IFS is used to create $*,
  2113. # except with old shells:
  2114. target_os=$*
  2115. IFS=$ac_save_IFS
  2116. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2117. # The aliases save the names the user supplied, while $host etc.
  2118. # will get canonicalized.
  2119. test -n "$target_alias" &&
  2120. test "$program_prefix$program_suffix$program_transform_name" = \
  2121. NONENONEs,x,x, &&
  2122. program_prefix=${target_alias}-
  2123. # This works around an automake problem.
  2124. mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
  2125. am__api_version='1.11'
  2126. # Find a good install program. We prefer a C program (faster),
  2127. # so one script is as good as another. But avoid the broken or
  2128. # incompatible versions:
  2129. # SysV /etc/install, /usr/sbin/install
  2130. # SunOS /usr/etc/install
  2131. # IRIX /sbin/install
  2132. # AIX /bin/install
  2133. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2134. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2135. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2136. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2137. # OS/2's system install, which has a completely different semantic
  2138. # ./install, which can be erroneously created by make from ./install.sh.
  2139. # Reject install programs that cannot install multiple files.
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2141. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2142. if test -z "$INSTALL"; then
  2143. if test "${ac_cv_path_install+set}" = set; then :
  2144. $as_echo_n "(cached) " >&6
  2145. else
  2146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2147. for as_dir in $PATH
  2148. do
  2149. IFS=$as_save_IFS
  2150. test -z "$as_dir" && as_dir=.
  2151. # Account for people who put trailing slashes in PATH elements.
  2152. case $as_dir/ in #((
  2153. ./ | .// | /[cC]/* | \
  2154. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2155. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2156. /usr/ucb/* ) ;;
  2157. *)
  2158. # OSF1 and SCO ODT 3.0 have their own names for install.
  2159. # Don't use installbsd from OSF since it installs stuff as root
  2160. # by default.
  2161. for ac_prog in ginstall scoinst install; do
  2162. for ac_exec_ext in '' $ac_executable_extensions; do
  2163. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2164. if test $ac_prog = install &&
  2165. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2166. # AIX install. It has an incompatible calling convention.
  2167. :
  2168. elif test $ac_prog = install &&
  2169. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2170. # program-specific install script used by HP pwplus--don't use.
  2171. :
  2172. else
  2173. rm -rf conftest.one conftest.two conftest.dir
  2174. echo one > conftest.one
  2175. echo two > conftest.two
  2176. mkdir conftest.dir
  2177. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2178. test -s conftest.one && test -s conftest.two &&
  2179. test -s conftest.dir/conftest.one &&
  2180. test -s conftest.dir/conftest.two
  2181. then
  2182. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2183. break 3
  2184. fi
  2185. fi
  2186. fi
  2187. done
  2188. done
  2189. ;;
  2190. esac
  2191. done
  2192. IFS=$as_save_IFS
  2193. rm -rf conftest.one conftest.two conftest.dir
  2194. fi
  2195. if test "${ac_cv_path_install+set}" = set; then
  2196. INSTALL=$ac_cv_path_install
  2197. else
  2198. # As a last resort, use the slow shell script. Don't cache a
  2199. # value for INSTALL within a source directory, because that will
  2200. # break other packages using the cache if that directory is
  2201. # removed, or if the value is a relative name.
  2202. INSTALL=$ac_install_sh
  2203. fi
  2204. fi
  2205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2206. $as_echo "$INSTALL" >&6; }
  2207. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2208. # It thinks the first close brace ends the variable substitution.
  2209. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2210. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2211. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2213. $as_echo_n "checking whether build environment is sane... " >&6; }
  2214. # Just in case
  2215. sleep 1
  2216. echo timestamp > conftest.file
  2217. # Reject unsafe characters in $srcdir or the absolute working directory
  2218. # name. Accept space and tab only in the latter.
  2219. am_lf='
  2220. '
  2221. case `pwd` in
  2222. *[\\\"\#\$\&\'\`$am_lf]*)
  2223. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2224. esac
  2225. case $srcdir in
  2226. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2227. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2228. esac
  2229. # Do `set' in a subshell so we don't clobber the current shell's
  2230. # arguments. Must try -L first in case configure is actually a
  2231. # symlink; some systems play weird games with the mod time of symlinks
  2232. # (eg FreeBSD returns the mod time of the symlink's containing
  2233. # directory).
  2234. if (
  2235. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2236. if test "$*" = "X"; then
  2237. # -L didn't work.
  2238. set X `ls -t "$srcdir/configure" conftest.file`
  2239. fi
  2240. rm -f conftest.file
  2241. if test "$*" != "X $srcdir/configure conftest.file" \
  2242. && test "$*" != "X conftest.file $srcdir/configure"; then
  2243. # If neither matched, then we have a broken ls. This can happen
  2244. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2245. # broken ls alias from the environment. This has actually
  2246. # happened. Such a system could not be considered "sane".
  2247. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2248. alias in your environment" "$LINENO" 5
  2249. fi
  2250. test "$2" = conftest.file
  2251. )
  2252. then
  2253. # Ok.
  2254. :
  2255. else
  2256. as_fn_error "newly created file is older than distributed files!
  2257. Check your system clock" "$LINENO" 5
  2258. fi
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2260. $as_echo "yes" >&6; }
  2261. test "$program_prefix" != NONE &&
  2262. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2263. # Use a double $ so make ignores it.
  2264. test "$program_suffix" != NONE &&
  2265. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2266. # Double any \ or $.
  2267. # By default was `s,x,x', remove it if useless.
  2268. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2269. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2270. # expand $ac_aux_dir to an absolute path
  2271. am_aux_dir=`cd $ac_aux_dir && pwd`
  2272. if test x"${MISSING+set}" != xset; then
  2273. case $am_aux_dir in
  2274. *\ * | *\ *)
  2275. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2276. *)
  2277. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2278. esac
  2279. fi
  2280. # Use eval to expand $SHELL
  2281. if eval "$MISSING --run true"; then
  2282. am_missing_run="$MISSING --run "
  2283. else
  2284. am_missing_run=
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2286. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2287. fi
  2288. if test x"${install_sh}" != xset; then
  2289. case $am_aux_dir in
  2290. *\ * | *\ *)
  2291. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2292. *)
  2293. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2294. esac
  2295. fi
  2296. # Installed binaries are usually stripped using `strip' when the user
  2297. # run `make install-strip'. However `strip' might not be the right
  2298. # tool to use in cross-compilation environments, therefore Automake
  2299. # will honor the `STRIP' environment variable to overrule this program.
  2300. if test "$cross_compiling" != no; then
  2301. if test -n "$ac_tool_prefix"; then
  2302. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2303. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2305. $as_echo_n "checking for $ac_word... " >&6; }
  2306. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2307. $as_echo_n "(cached) " >&6
  2308. else
  2309. if test -n "$STRIP"; then
  2310. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2311. else
  2312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2313. for as_dir in $PATH
  2314. do
  2315. IFS=$as_save_IFS
  2316. test -z "$as_dir" && as_dir=.
  2317. for ac_exec_ext in '' $ac_executable_extensions; do
  2318. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2319. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2321. break 2
  2322. fi
  2323. done
  2324. done
  2325. IFS=$as_save_IFS
  2326. fi
  2327. fi
  2328. STRIP=$ac_cv_prog_STRIP
  2329. if test -n "$STRIP"; then
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2331. $as_echo "$STRIP" >&6; }
  2332. else
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2334. $as_echo "no" >&6; }
  2335. fi
  2336. fi
  2337. if test -z "$ac_cv_prog_STRIP"; then
  2338. ac_ct_STRIP=$STRIP
  2339. # Extract the first word of "strip", so it can be a program name with args.
  2340. set dummy strip; ac_word=$2
  2341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2342. $as_echo_n "checking for $ac_word... " >&6; }
  2343. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2344. $as_echo_n "(cached) " >&6
  2345. else
  2346. if test -n "$ac_ct_STRIP"; then
  2347. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2348. else
  2349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2350. for as_dir in $PATH
  2351. do
  2352. IFS=$as_save_IFS
  2353. test -z "$as_dir" && as_dir=.
  2354. for ac_exec_ext in '' $ac_executable_extensions; do
  2355. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2356. ac_cv_prog_ac_ct_STRIP="strip"
  2357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2358. break 2
  2359. fi
  2360. done
  2361. done
  2362. IFS=$as_save_IFS
  2363. fi
  2364. fi
  2365. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2366. if test -n "$ac_ct_STRIP"; then
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2368. $as_echo "$ac_ct_STRIP" >&6; }
  2369. else
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2371. $as_echo "no" >&6; }
  2372. fi
  2373. if test "x$ac_ct_STRIP" = x; then
  2374. STRIP=":"
  2375. else
  2376. case $cross_compiling:$ac_tool_warned in
  2377. yes:)
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2379. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2380. ac_tool_warned=yes ;;
  2381. esac
  2382. STRIP=$ac_ct_STRIP
  2383. fi
  2384. else
  2385. STRIP="$ac_cv_prog_STRIP"
  2386. fi
  2387. fi
  2388. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2390. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2391. if test -z "$MKDIR_P"; then
  2392. if test "${ac_cv_path_mkdir+set}" = set; then :
  2393. $as_echo_n "(cached) " >&6
  2394. else
  2395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2396. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2397. do
  2398. IFS=$as_save_IFS
  2399. test -z "$as_dir" && as_dir=.
  2400. for ac_prog in mkdir gmkdir; do
  2401. for ac_exec_ext in '' $ac_executable_extensions; do
  2402. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2403. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2404. 'mkdir (GNU coreutils) '* | \
  2405. 'mkdir (coreutils) '* | \
  2406. 'mkdir (fileutils) '4.1*)
  2407. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2408. break 3;;
  2409. esac
  2410. done
  2411. done
  2412. done
  2413. IFS=$as_save_IFS
  2414. fi
  2415. if test "${ac_cv_path_mkdir+set}" = set; then
  2416. MKDIR_P="$ac_cv_path_mkdir -p"
  2417. else
  2418. # As a last resort, use the slow shell script. Don't cache a
  2419. # value for MKDIR_P within a source directory, because that will
  2420. # break other packages using the cache if that directory is
  2421. # removed, or if the value is a relative name.
  2422. test -d ./--version && rmdir ./--version
  2423. MKDIR_P="$ac_install_sh -d"
  2424. fi
  2425. fi
  2426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2427. $as_echo "$MKDIR_P" >&6; }
  2428. mkdir_p="$MKDIR_P"
  2429. case $mkdir_p in
  2430. [\\/$]* | ?:[\\/]*) ;;
  2431. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2432. esac
  2433. for ac_prog in gawk mawk nawk awk
  2434. do
  2435. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2436. set dummy $ac_prog; ac_word=$2
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2438. $as_echo_n "checking for $ac_word... " >&6; }
  2439. if test "${ac_cv_prog_AWK+set}" = set; then :
  2440. $as_echo_n "(cached) " >&6
  2441. else
  2442. if test -n "$AWK"; then
  2443. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2444. else
  2445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2446. for as_dir in $PATH
  2447. do
  2448. IFS=$as_save_IFS
  2449. test -z "$as_dir" && as_dir=.
  2450. for ac_exec_ext in '' $ac_executable_extensions; do
  2451. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2452. ac_cv_prog_AWK="$ac_prog"
  2453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2454. break 2
  2455. fi
  2456. done
  2457. done
  2458. IFS=$as_save_IFS
  2459. fi
  2460. fi
  2461. AWK=$ac_cv_prog_AWK
  2462. if test -n "$AWK"; then
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2464. $as_echo "$AWK" >&6; }
  2465. else
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2467. $as_echo "no" >&6; }
  2468. fi
  2469. test -n "$AWK" && break
  2470. done
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2472. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2473. set x ${MAKE-make}
  2474. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2475. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2476. $as_echo_n "(cached) " >&6
  2477. else
  2478. cat >conftest.make <<\_ACEOF
  2479. SHELL = /bin/sh
  2480. all:
  2481. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2482. _ACEOF
  2483. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2484. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2485. *@@@%%%=?*=@@@%%%*)
  2486. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2487. *)
  2488. eval ac_cv_prog_make_${ac_make}_set=no;;
  2489. esac
  2490. rm -f conftest.make
  2491. fi
  2492. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2494. $as_echo "yes" >&6; }
  2495. SET_MAKE=
  2496. else
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2498. $as_echo "no" >&6; }
  2499. SET_MAKE="MAKE=${MAKE-make}"
  2500. fi
  2501. rm -rf .tst 2>/dev/null
  2502. mkdir .tst 2>/dev/null
  2503. if test -d .tst; then
  2504. am__leading_dot=.
  2505. else
  2506. am__leading_dot=_
  2507. fi
  2508. rmdir .tst 2>/dev/null
  2509. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2510. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2511. # is not polluted with repeated "-I."
  2512. am__isrc=' -I$(srcdir)'
  2513. # test to see if srcdir already configured
  2514. if test -f $srcdir/config.status; then
  2515. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2516. fi
  2517. fi
  2518. # test whether we have cygpath
  2519. if test -z "$CYGPATH_W"; then
  2520. if (cygpath --version) >/dev/null 2>/dev/null; then
  2521. CYGPATH_W='cygpath -w'
  2522. else
  2523. CYGPATH_W=echo
  2524. fi
  2525. fi
  2526. # Define the identity of the package.
  2527. PACKAGE=zlib
  2528. VERSION=1.1.4
  2529. cat >>confdefs.h <<_ACEOF
  2530. #define PACKAGE "$PACKAGE"
  2531. _ACEOF
  2532. cat >>confdefs.h <<_ACEOF
  2533. #define VERSION "$VERSION"
  2534. _ACEOF
  2535. # Some tools Automake needs.
  2536. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2537. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2538. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2539. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2540. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2541. # We need awk for the "check" target. The system "awk" is bad on
  2542. # some platforms.
  2543. # Always define AMTAR for backward compatibility.
  2544. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2545. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2547. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2548. # Check whether --enable-maintainer-mode was given.
  2549. if test "${enable_maintainer_mode+set}" = set; then :
  2550. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2551. else
  2552. USE_MAINTAINER_MODE=no
  2553. fi
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2555. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2556. if test $USE_MAINTAINER_MODE = yes; then
  2557. MAINTAINER_MODE_TRUE=
  2558. MAINTAINER_MODE_FALSE='#'
  2559. else
  2560. MAINTAINER_MODE_TRUE='#'
  2561. MAINTAINER_MODE_FALSE=
  2562. fi
  2563. MAINT=$MAINTAINER_MODE_TRUE
  2564. # Check whether --with-target-subdir was given.
  2565. if test "${with_target_subdir+set}" = set; then :
  2566. withval=$with_target_subdir;
  2567. fi
  2568. if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
  2569. COMPPATH=.
  2570. else
  2571. COMPPATH=..
  2572. fi
  2573. # Check whether --with-cross-host was given.
  2574. if test "${with_cross_host+set}" = set; then :
  2575. withval=$with_cross_host;
  2576. fi
  2577. # Check whether --enable-multilib was given.
  2578. if test "${enable_multilib+set}" = set; then :
  2579. enableval=$enable_multilib; case "${enableval}" in
  2580. yes) multilib=yes ;;
  2581. no) multilib=no ;;
  2582. *) as_fn_error "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
  2583. esac
  2584. else
  2585. test -z "$with_target_subdir" && multilib=no || multilib=yes
  2586. fi
  2587. # Check whether --with-system-zlib was given.
  2588. if test "${with_system_zlib+set}" = set; then :
  2589. withval=$with_system_zlib;
  2590. fi
  2591. # Make sure we don't test executables when making cross-tools.
  2592. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  2593. # We must force CC to /not/ be precious variables; otherwise
  2594. # the wrong, non-multilib-adjusted value will be used in multilibs.
  2595. # As a side effect, we have to subst CFLAGS ourselves.
  2596. ac_ext=c
  2597. ac_cpp='$CPP $CPPFLAGS'
  2598. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2599. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2600. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2601. if test -n "$ac_tool_prefix"; then
  2602. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2603. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2605. $as_echo_n "checking for $ac_word... " >&6; }
  2606. if test "${ac_cv_prog_CC+set}" = set; then :
  2607. $as_echo_n "(cached) " >&6
  2608. else
  2609. if test -n "$CC"; then
  2610. ac_cv_prog_CC="$CC" # Let the user override the test.
  2611. else
  2612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2613. for as_dir in $PATH
  2614. do
  2615. IFS=$as_save_IFS
  2616. test -z "$as_dir" && as_dir=.
  2617. for ac_exec_ext in '' $ac_executable_extensions; do
  2618. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2619. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2621. break 2
  2622. fi
  2623. done
  2624. done
  2625. IFS=$as_save_IFS
  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 "$ac_cv_prog_CC"; then
  2638. ac_ct_CC=$CC
  2639. # Extract the first word of "gcc", so it can be a program name with args.
  2640. set dummy gcc; ac_word=$2
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2642. $as_echo_n "checking for $ac_word... " >&6; }
  2643. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2644. $as_echo_n "(cached) " >&6
  2645. else
  2646. if test -n "$ac_ct_CC"; then
  2647. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2648. else
  2649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2650. for as_dir in $PATH
  2651. do
  2652. IFS=$as_save_IFS
  2653. test -z "$as_dir" && as_dir=.
  2654. for ac_exec_ext in '' $ac_executable_extensions; do
  2655. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2656. ac_cv_prog_ac_ct_CC="gcc"
  2657. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2658. break 2
  2659. fi
  2660. done
  2661. done
  2662. IFS=$as_save_IFS
  2663. fi
  2664. fi
  2665. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2666. if test -n "$ac_ct_CC"; then
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2668. $as_echo "$ac_ct_CC" >&6; }
  2669. else
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2671. $as_echo "no" >&6; }
  2672. fi
  2673. if test "x$ac_ct_CC" = x; then
  2674. CC=""
  2675. else
  2676. case $cross_compiling:$ac_tool_warned in
  2677. yes:)
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2679. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2680. ac_tool_warned=yes ;;
  2681. esac
  2682. CC=$ac_ct_CC
  2683. fi
  2684. else
  2685. CC="$ac_cv_prog_CC"
  2686. fi
  2687. if test -z "$CC"; then
  2688. if test -n "$ac_tool_prefix"; then
  2689. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2690. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2692. $as_echo_n "checking for $ac_word... " >&6; }
  2693. if test "${ac_cv_prog_CC+set}" = set; then :
  2694. $as_echo_n "(cached) " >&6
  2695. else
  2696. if test -n "$CC"; then
  2697. ac_cv_prog_CC="$CC" # Let the user override the test.
  2698. else
  2699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2700. for as_dir in $PATH
  2701. do
  2702. IFS=$as_save_IFS
  2703. test -z "$as_dir" && as_dir=.
  2704. for ac_exec_ext in '' $ac_executable_extensions; do
  2705. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2706. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2707. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2708. break 2
  2709. fi
  2710. done
  2711. done
  2712. IFS=$as_save_IFS
  2713. fi
  2714. fi
  2715. CC=$ac_cv_prog_CC
  2716. if test -n "$CC"; then
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2718. $as_echo "$CC" >&6; }
  2719. else
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2721. $as_echo "no" >&6; }
  2722. fi
  2723. fi
  2724. fi
  2725. if test -z "$CC"; then
  2726. # Extract the first word of "cc", so it can be a program name with args.
  2727. set dummy cc; ac_word=$2
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2729. $as_echo_n "checking for $ac_word... " >&6; }
  2730. if test "${ac_cv_prog_CC+set}" = set; then :
  2731. $as_echo_n "(cached) " >&6
  2732. else
  2733. if test -n "$CC"; then
  2734. ac_cv_prog_CC="$CC" # Let the user override the test.
  2735. else
  2736. ac_prog_rejected=no
  2737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2738. for as_dir in $PATH
  2739. do
  2740. IFS=$as_save_IFS
  2741. test -z "$as_dir" && as_dir=.
  2742. for ac_exec_ext in '' $ac_executable_extensions; do
  2743. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2744. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2745. ac_prog_rejected=yes
  2746. continue
  2747. fi
  2748. ac_cv_prog_CC="cc"
  2749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2750. break 2
  2751. fi
  2752. done
  2753. done
  2754. IFS=$as_save_IFS
  2755. if test $ac_prog_rejected = yes; then
  2756. # We found a bogon in the path, so make sure we never use it.
  2757. set dummy $ac_cv_prog_CC
  2758. shift
  2759. if test $# != 0; then
  2760. # We chose a different compiler from the bogus one.
  2761. # However, it has the same basename, so the bogon will be chosen
  2762. # first if we set CC to just the basename; use the full file name.
  2763. shift
  2764. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2765. fi
  2766. fi
  2767. fi
  2768. fi
  2769. CC=$ac_cv_prog_CC
  2770. if test -n "$CC"; then
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2772. $as_echo "$CC" >&6; }
  2773. else
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2775. $as_echo "no" >&6; }
  2776. fi
  2777. fi
  2778. if test -z "$CC"; then
  2779. if test -n "$ac_tool_prefix"; then
  2780. for ac_prog in cl.exe
  2781. do
  2782. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2783. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2785. $as_echo_n "checking for $ac_word... " >&6; }
  2786. if test "${ac_cv_prog_CC+set}" = set; then :
  2787. $as_echo_n "(cached) " >&6
  2788. else
  2789. if test -n "$CC"; then
  2790. ac_cv_prog_CC="$CC" # Let the user override the test.
  2791. else
  2792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2793. for as_dir in $PATH
  2794. do
  2795. IFS=$as_save_IFS
  2796. test -z "$as_dir" && as_dir=.
  2797. for ac_exec_ext in '' $ac_executable_extensions; do
  2798. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2799. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2800. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2801. break 2
  2802. fi
  2803. done
  2804. done
  2805. IFS=$as_save_IFS
  2806. fi
  2807. fi
  2808. CC=$ac_cv_prog_CC
  2809. if test -n "$CC"; then
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2811. $as_echo "$CC" >&6; }
  2812. else
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2814. $as_echo "no" >&6; }
  2815. fi
  2816. test -n "$CC" && break
  2817. done
  2818. fi
  2819. if test -z "$CC"; then
  2820. ac_ct_CC=$CC
  2821. for ac_prog in cl.exe
  2822. do
  2823. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2824. set dummy $ac_prog; ac_word=$2
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2826. $as_echo_n "checking for $ac_word... " >&6; }
  2827. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2828. $as_echo_n "(cached) " >&6
  2829. else
  2830. if test -n "$ac_ct_CC"; then
  2831. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2832. else
  2833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2834. for as_dir in $PATH
  2835. do
  2836. IFS=$as_save_IFS
  2837. test -z "$as_dir" && as_dir=.
  2838. for ac_exec_ext in '' $ac_executable_extensions; do
  2839. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2840. ac_cv_prog_ac_ct_CC="$ac_prog"
  2841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2842. break 2
  2843. fi
  2844. done
  2845. done
  2846. IFS=$as_save_IFS
  2847. fi
  2848. fi
  2849. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2850. if test -n "$ac_ct_CC"; then
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2852. $as_echo "$ac_ct_CC" >&6; }
  2853. else
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2855. $as_echo "no" >&6; }
  2856. fi
  2857. test -n "$ac_ct_CC" && break
  2858. done
  2859. if test "x$ac_ct_CC" = x; then
  2860. CC=""
  2861. else
  2862. case $cross_compiling:$ac_tool_warned in
  2863. yes:)
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2865. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2866. ac_tool_warned=yes ;;
  2867. esac
  2868. CC=$ac_ct_CC
  2869. fi
  2870. fi
  2871. fi
  2872. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2873. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2874. as_fn_error "no acceptable C compiler found in \$PATH
  2875. See \`config.log' for more details." "$LINENO" 5; }
  2876. # Provide some information about the compiler.
  2877. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2878. set X $ac_compile
  2879. ac_compiler=$2
  2880. for ac_option in --version -v -V -qversion; do
  2881. { { ac_try="$ac_compiler $ac_option >&5"
  2882. case "(($ac_try" in
  2883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2884. *) ac_try_echo=$ac_try;;
  2885. esac
  2886. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2887. $as_echo "$ac_try_echo"; } >&5
  2888. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2889. ac_status=$?
  2890. if test -s conftest.err; then
  2891. sed '10a\
  2892. ... rest of stderr output deleted ...
  2893. 10q' conftest.err >conftest.er1
  2894. cat conftest.er1 >&5
  2895. rm -f conftest.er1 conftest.err
  2896. fi
  2897. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2898. test $ac_status = 0; }
  2899. done
  2900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2901. /* end confdefs.h. */
  2902. int
  2903. main ()
  2904. {
  2905. ;
  2906. return 0;
  2907. }
  2908. _ACEOF
  2909. # FIXME: Cleanup?
  2910. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  2911. (eval $ac_link) 2>&5
  2912. ac_status=$?
  2913. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2914. test $ac_status = 0; }; then :
  2915. gcc_no_link=no
  2916. else
  2917. gcc_no_link=yes
  2918. fi
  2919. if test x$gcc_no_link = xyes; then
  2920. # Setting cross_compile will disable run tests; it will
  2921. # also disable AC_CHECK_FILE but that's generally
  2922. # correct if we can't link.
  2923. cross_compiling=yes
  2924. EXEEXT=
  2925. else
  2926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2927. /* end confdefs.h. */
  2928. int
  2929. main ()
  2930. {
  2931. ;
  2932. return 0;
  2933. }
  2934. _ACEOF
  2935. ac_clean_files_save=$ac_clean_files
  2936. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2937. # Try to create an executable without -o first, disregard a.out.
  2938. # It will help us diagnose broken compilers, and finding out an intuition
  2939. # of exeext.
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2941. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2942. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2943. # The possible output files:
  2944. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2945. ac_rmfiles=
  2946. for ac_file in $ac_files
  2947. do
  2948. case $ac_file in
  2949. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2950. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2951. esac
  2952. done
  2953. rm -f $ac_rmfiles
  2954. if { { ac_try="$ac_link_default"
  2955. case "(($ac_try" in
  2956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2957. *) ac_try_echo=$ac_try;;
  2958. esac
  2959. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2960. $as_echo "$ac_try_echo"; } >&5
  2961. (eval "$ac_link_default") 2>&5
  2962. ac_status=$?
  2963. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2964. test $ac_status = 0; }; then :
  2965. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2966. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2967. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2968. # so that the user can short-circuit this test for compilers unknown to
  2969. # Autoconf.
  2970. for ac_file in $ac_files ''
  2971. do
  2972. test -f "$ac_file" || continue
  2973. case $ac_file in
  2974. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2975. ;;
  2976. [ab].out )
  2977. # We found the default executable, but exeext='' is most
  2978. # certainly right.
  2979. break;;
  2980. *.* )
  2981. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2982. then :; else
  2983. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2984. fi
  2985. # We set ac_cv_exeext here because the later test for it is not
  2986. # safe: cross compilers may not add the suffix if given an `-o'
  2987. # argument, so we may need to know it at that point already.
  2988. # Even if this section looks crufty: it has the advantage of
  2989. # actually working.
  2990. break;;
  2991. * )
  2992. break;;
  2993. esac
  2994. done
  2995. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2996. else
  2997. ac_file=''
  2998. fi
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3000. $as_echo "$ac_file" >&6; }
  3001. if test -z "$ac_file"; then :
  3002. $as_echo "$as_me: failed program was:" >&5
  3003. sed 's/^/| /' conftest.$ac_ext >&5
  3004. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3005. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3006. { as_fn_set_status 77
  3007. as_fn_error "C compiler cannot create executables
  3008. See \`config.log' for more details." "$LINENO" 5; }; }
  3009. fi
  3010. ac_exeext=$ac_cv_exeext
  3011. # Check that the compiler produces executables we can run. If not, either
  3012. # the compiler is broken, or we cross compile.
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3014. $as_echo_n "checking whether the C compiler works... " >&6; }
  3015. # If not cross compiling, check that we can run a simple program.
  3016. if test "$cross_compiling" != yes; then
  3017. if { ac_try='./$ac_file'
  3018. { { case "(($ac_try" in
  3019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3020. *) ac_try_echo=$ac_try;;
  3021. esac
  3022. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3023. $as_echo "$ac_try_echo"; } >&5
  3024. (eval "$ac_try") 2>&5
  3025. ac_status=$?
  3026. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3027. test $ac_status = 0; }; }; then
  3028. cross_compiling=no
  3029. else
  3030. if test "$cross_compiling" = maybe; then
  3031. cross_compiling=yes
  3032. else
  3033. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3035. as_fn_error "cannot run C compiled programs.
  3036. If you meant to cross compile, use \`--host'.
  3037. See \`config.log' for more details." "$LINENO" 5; }
  3038. fi
  3039. fi
  3040. fi
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3042. $as_echo "yes" >&6; }
  3043. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3044. ac_clean_files=$ac_clean_files_save
  3045. # Check that the compiler produces executables we can run. If not, either
  3046. # the compiler is broken, or we cross compile.
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3048. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3050. $as_echo "$cross_compiling" >&6; }
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3052. $as_echo_n "checking for suffix of executables... " >&6; }
  3053. if { { ac_try="$ac_link"
  3054. case "(($ac_try" in
  3055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3056. *) ac_try_echo=$ac_try;;
  3057. esac
  3058. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3059. $as_echo "$ac_try_echo"; } >&5
  3060. (eval "$ac_link") 2>&5
  3061. ac_status=$?
  3062. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3063. test $ac_status = 0; }; then :
  3064. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3065. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3066. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3067. # `rm'.
  3068. for ac_file in conftest.exe conftest conftest.*; do
  3069. test -f "$ac_file" || continue
  3070. case $ac_file in
  3071. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3072. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3073. break;;
  3074. * ) break;;
  3075. esac
  3076. done
  3077. else
  3078. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3079. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3080. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3081. See \`config.log' for more details." "$LINENO" 5; }
  3082. fi
  3083. rm -f conftest$ac_cv_exeext
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3085. $as_echo "$ac_cv_exeext" >&6; }
  3086. rm -f conftest.$ac_ext
  3087. EXEEXT=$ac_cv_exeext
  3088. ac_exeext=$EXEEXT
  3089. fi
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3091. $as_echo_n "checking for suffix of object files... " >&6; }
  3092. if test "${ac_cv_objext+set}" = set; then :
  3093. $as_echo_n "(cached) " >&6
  3094. else
  3095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3096. /* end confdefs.h. */
  3097. int
  3098. main ()
  3099. {
  3100. ;
  3101. return 0;
  3102. }
  3103. _ACEOF
  3104. rm -f conftest.o conftest.obj
  3105. if { { ac_try="$ac_compile"
  3106. case "(($ac_try" in
  3107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3108. *) ac_try_echo=$ac_try;;
  3109. esac
  3110. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3111. $as_echo "$ac_try_echo"; } >&5
  3112. (eval "$ac_compile") 2>&5
  3113. ac_status=$?
  3114. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3115. test $ac_status = 0; }; then :
  3116. for ac_file in conftest.o conftest.obj conftest.*; do
  3117. test -f "$ac_file" || continue;
  3118. case $ac_file in
  3119. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3120. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3121. break;;
  3122. esac
  3123. done
  3124. else
  3125. $as_echo "$as_me: failed program was:" >&5
  3126. sed 's/^/| /' conftest.$ac_ext >&5
  3127. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3128. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3129. as_fn_error "cannot compute suffix of object files: cannot compile
  3130. See \`config.log' for more details." "$LINENO" 5; }
  3131. fi
  3132. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3133. fi
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3135. $as_echo "$ac_cv_objext" >&6; }
  3136. OBJEXT=$ac_cv_objext
  3137. ac_objext=$OBJEXT
  3138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3139. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3140. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3141. $as_echo_n "(cached) " >&6
  3142. else
  3143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3144. /* end confdefs.h. */
  3145. int
  3146. main ()
  3147. {
  3148. #ifndef __GNUC__
  3149. choke me
  3150. #endif
  3151. ;
  3152. return 0;
  3153. }
  3154. _ACEOF
  3155. if ac_fn_c_try_compile "$LINENO"; then :
  3156. ac_compiler_gnu=yes
  3157. else
  3158. ac_compiler_gnu=no
  3159. fi
  3160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3161. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3162. fi
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3164. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3165. if test $ac_compiler_gnu = yes; then
  3166. GCC=yes
  3167. else
  3168. GCC=
  3169. fi
  3170. ac_test_CFLAGS=${CFLAGS+set}
  3171. ac_save_CFLAGS=$CFLAGS
  3172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3173. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3174. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3175. $as_echo_n "(cached) " >&6
  3176. else
  3177. ac_save_c_werror_flag=$ac_c_werror_flag
  3178. ac_c_werror_flag=yes
  3179. ac_cv_prog_cc_g=no
  3180. CFLAGS="-g"
  3181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3182. /* end confdefs.h. */
  3183. int
  3184. main ()
  3185. {
  3186. ;
  3187. return 0;
  3188. }
  3189. _ACEOF
  3190. if ac_fn_c_try_compile "$LINENO"; then :
  3191. ac_cv_prog_cc_g=yes
  3192. else
  3193. CFLAGS=""
  3194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3195. /* end confdefs.h. */
  3196. int
  3197. main ()
  3198. {
  3199. ;
  3200. return 0;
  3201. }
  3202. _ACEOF
  3203. if ac_fn_c_try_compile "$LINENO"; then :
  3204. else
  3205. ac_c_werror_flag=$ac_save_c_werror_flag
  3206. CFLAGS="-g"
  3207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3208. /* end confdefs.h. */
  3209. int
  3210. main ()
  3211. {
  3212. ;
  3213. return 0;
  3214. }
  3215. _ACEOF
  3216. if ac_fn_c_try_compile "$LINENO"; then :
  3217. ac_cv_prog_cc_g=yes
  3218. fi
  3219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3220. fi
  3221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3222. fi
  3223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3224. ac_c_werror_flag=$ac_save_c_werror_flag
  3225. fi
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3227. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3228. if test "$ac_test_CFLAGS" = set; then
  3229. CFLAGS=$ac_save_CFLAGS
  3230. elif test $ac_cv_prog_cc_g = yes; then
  3231. if test "$GCC" = yes; then
  3232. CFLAGS="-g -O2"
  3233. else
  3234. CFLAGS="-g"
  3235. fi
  3236. else
  3237. if test "$GCC" = yes; then
  3238. CFLAGS="-O2"
  3239. else
  3240. CFLAGS=
  3241. fi
  3242. fi
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3244. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3245. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3246. $as_echo_n "(cached) " >&6
  3247. else
  3248. ac_cv_prog_cc_c89=no
  3249. ac_save_CC=$CC
  3250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3251. /* end confdefs.h. */
  3252. #include <stdarg.h>
  3253. #include <stdio.h>
  3254. #include <sys/types.h>
  3255. #include <sys/stat.h>
  3256. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3257. struct buf { int x; };
  3258. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3259. static char *e (p, i)
  3260. char **p;
  3261. int i;
  3262. {
  3263. return p[i];
  3264. }
  3265. static char *f (char * (*g) (char **, int), char **p, ...)
  3266. {
  3267. char *s;
  3268. va_list v;
  3269. va_start (v,p);
  3270. s = g (p, va_arg (v,int));
  3271. va_end (v);
  3272. return s;
  3273. }
  3274. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3275. function prototypes and stuff, but not '\xHH' hex character constants.
  3276. These don't provoke an error unfortunately, instead are silently treated
  3277. as 'x'. The following induces an error, until -std is added to get
  3278. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3279. array size at least. It's necessary to write '\x00'==0 to get something
  3280. that's true only with -std. */
  3281. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3282. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3283. inside strings and character constants. */
  3284. #define FOO(x) 'x'
  3285. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3286. int test (int i, double x);
  3287. struct s1 {int (*f) (int a);};
  3288. struct s2 {int (*f) (double a);};
  3289. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3290. int argc;
  3291. char **argv;
  3292. int
  3293. main ()
  3294. {
  3295. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3296. ;
  3297. return 0;
  3298. }
  3299. _ACEOF
  3300. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3301. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3302. do
  3303. CC="$ac_save_CC $ac_arg"
  3304. if ac_fn_c_try_compile "$LINENO"; then :
  3305. ac_cv_prog_cc_c89=$ac_arg
  3306. fi
  3307. rm -f core conftest.err conftest.$ac_objext
  3308. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3309. done
  3310. rm -f conftest.$ac_ext
  3311. CC=$ac_save_CC
  3312. fi
  3313. # AC_CACHE_VAL
  3314. case "x$ac_cv_prog_cc_c89" in
  3315. x)
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3317. $as_echo "none needed" >&6; } ;;
  3318. xno)
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3320. $as_echo "unsupported" >&6; } ;;
  3321. *)
  3322. CC="$CC $ac_cv_prog_cc_c89"
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3324. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3325. esac
  3326. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3327. fi
  3328. ac_ext=c
  3329. ac_cpp='$CPP $CPPFLAGS'
  3330. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3331. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3332. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3333. DEPDIR="${am__leading_dot}deps"
  3334. ac_config_commands="$ac_config_commands depfiles"
  3335. am_make=${MAKE-make}
  3336. cat > confinc << 'END'
  3337. am__doit:
  3338. @echo this is the am__doit target
  3339. .PHONY: am__doit
  3340. END
  3341. # If we don't find an include directive, just comment out the code.
  3342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3343. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3344. am__include="#"
  3345. am__quote=
  3346. _am_result=none
  3347. # First try GNU make style include.
  3348. echo "include confinc" > confmf
  3349. # Ignore all kinds of additional output from `make'.
  3350. case `$am_make -s -f confmf 2> /dev/null` in #(
  3351. *the\ am__doit\ target*)
  3352. am__include=include
  3353. am__quote=
  3354. _am_result=GNU
  3355. ;;
  3356. esac
  3357. # Now try BSD make style include.
  3358. if test "$am__include" = "#"; then
  3359. echo '.include "confinc"' > confmf
  3360. case `$am_make -s -f confmf 2> /dev/null` in #(
  3361. *the\ am__doit\ target*)
  3362. am__include=.include
  3363. am__quote="\""
  3364. _am_result=BSD
  3365. ;;
  3366. esac
  3367. fi
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3369. $as_echo "$_am_result" >&6; }
  3370. rm -f confinc confmf
  3371. # Check whether --enable-dependency-tracking was given.
  3372. if test "${enable_dependency_tracking+set}" = set; then :
  3373. enableval=$enable_dependency_tracking;
  3374. fi
  3375. if test "x$enable_dependency_tracking" != xno; then
  3376. am_depcomp="$ac_aux_dir/depcomp"
  3377. AMDEPBACKSLASH='\'
  3378. fi
  3379. if test "x$enable_dependency_tracking" != xno; then
  3380. AMDEP_TRUE=
  3381. AMDEP_FALSE='#'
  3382. else
  3383. AMDEP_TRUE='#'
  3384. AMDEP_FALSE=
  3385. fi
  3386. depcc="$CC" am_compiler_list=
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3388. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3389. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3390. $as_echo_n "(cached) " >&6
  3391. else
  3392. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3393. # We make a subdir and do the tests there. Otherwise we can end up
  3394. # making bogus files that we don't know about and never remove. For
  3395. # instance it was reported that on HP-UX the gcc test will end up
  3396. # making a dummy file named `D' -- because `-MD' means `put the output
  3397. # in D'.
  3398. mkdir conftest.dir
  3399. # Copy depcomp to subdir because otherwise we won't find it if we're
  3400. # using a relative directory.
  3401. cp "$am_depcomp" conftest.dir
  3402. cd conftest.dir
  3403. # We will build objects and dependencies in a subdirectory because
  3404. # it helps to detect inapplicable dependency modes. For instance
  3405. # both Tru64's cc and ICC support -MD to output dependencies as a
  3406. # side effect of compilation, but ICC will put the dependencies in
  3407. # the current directory while Tru64 will put them in the object
  3408. # directory.
  3409. mkdir sub
  3410. am_cv_CC_dependencies_compiler_type=none
  3411. if test "$am_compiler_list" = ""; then
  3412. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3413. fi
  3414. am__universal=false
  3415. case " $depcc " in #(
  3416. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3417. esac
  3418. for depmode in $am_compiler_list; do
  3419. # Setup a source with many dependencies, because some compilers
  3420. # like to wrap large dependency lists on column 80 (with \), and
  3421. # we should not choose a depcomp mode which is confused by this.
  3422. #
  3423. # We need to recreate these files for each test, as the compiler may
  3424. # overwrite some of them when testing with obscure command lines.
  3425. # This happens at least with the AIX C compiler.
  3426. : > sub/conftest.c
  3427. for i in 1 2 3 4 5 6; do
  3428. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3429. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3430. # Solaris 8's {/usr,}/bin/sh.
  3431. touch sub/conftst$i.h
  3432. done
  3433. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3434. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3435. # mode. It turns out that the SunPro C++ compiler does not properly
  3436. # handle `-M -o', and we need to detect this. Also, some Intel
  3437. # versions had trouble with output in subdirs
  3438. am__obj=sub/conftest.${OBJEXT-o}
  3439. am__minus_obj="-o $am__obj"
  3440. case $depmode in
  3441. gcc)
  3442. # This depmode causes a compiler race in universal mode.
  3443. test "$am__universal" = false || continue
  3444. ;;
  3445. nosideeffect)
  3446. # after this tag, mechanisms are not by side-effect, so they'll
  3447. # only be used when explicitly requested
  3448. if test "x$enable_dependency_tracking" = xyes; then
  3449. continue
  3450. else
  3451. break
  3452. fi
  3453. ;;
  3454. msvisualcpp | msvcmsys)
  3455. # This compiler won't grok `-c -o', but also, the minuso test has
  3456. # not run yet. These depmodes are late enough in the game, and
  3457. # so weak that their functioning should not be impacted.
  3458. am__obj=conftest.${OBJEXT-o}
  3459. am__minus_obj=
  3460. ;;
  3461. none) break ;;
  3462. esac
  3463. if depmode=$depmode \
  3464. source=sub/conftest.c object=$am__obj \
  3465. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3466. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3467. >/dev/null 2>conftest.err &&
  3468. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3469. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3470. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3471. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3472. # icc doesn't choke on unknown options, it will just issue warnings
  3473. # or remarks (even with -Werror). So we grep stderr for any message
  3474. # that says an option was ignored or not supported.
  3475. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3476. # icc: Command line warning: ignoring option '-M'; no argument required
  3477. # The diagnosis changed in icc 8.0:
  3478. # icc: Command line remark: option '-MP' not supported
  3479. if (grep 'ignoring option' conftest.err ||
  3480. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3481. am_cv_CC_dependencies_compiler_type=$depmode
  3482. break
  3483. fi
  3484. fi
  3485. done
  3486. cd ..
  3487. rm -rf conftest.dir
  3488. else
  3489. am_cv_CC_dependencies_compiler_type=none
  3490. fi
  3491. fi
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3493. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3494. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3495. if
  3496. test "x$enable_dependency_tracking" != xno \
  3497. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3498. am__fastdepCC_TRUE=
  3499. am__fastdepCC_FALSE='#'
  3500. else
  3501. am__fastdepCC_TRUE='#'
  3502. am__fastdepCC_FALSE=
  3503. fi
  3504. case `pwd` in
  3505. *\ * | *\ *)
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3507. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3508. esac
  3509. macro_version='2.2.7a'
  3510. macro_revision='1.3134'
  3511. ltmain="$ac_aux_dir/ltmain.sh"
  3512. # Backslashify metacharacters that are still active within
  3513. # double-quoted strings.
  3514. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3515. # Same as above, but do not quote variable references.
  3516. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3517. # Sed substitution to delay expansion of an escaped shell variable in a
  3518. # double_quote_subst'ed string.
  3519. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3520. # Sed substitution to delay expansion of an escaped single quote.
  3521. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3522. # Sed substitution to avoid accidental globbing in evaled expressions
  3523. no_glob_subst='s/\*/\\\*/g'
  3524. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3525. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3526. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3528. $as_echo_n "checking how to print strings... " >&6; }
  3529. # Test print first, because it will be a builtin if present.
  3530. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  3531. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3532. ECHO='print -r --'
  3533. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3534. ECHO='printf %s\n'
  3535. else
  3536. # Use this function as a fallback that always works.
  3537. func_fallback_echo ()
  3538. {
  3539. eval 'cat <<_LTECHO_EOF
  3540. $1
  3541. _LTECHO_EOF'
  3542. }
  3543. ECHO='func_fallback_echo'
  3544. fi
  3545. # func_echo_all arg...
  3546. # Invoke $ECHO with all args, space-separated.
  3547. func_echo_all ()
  3548. {
  3549. $ECHO ""
  3550. }
  3551. case "$ECHO" in
  3552. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3553. $as_echo "printf" >&6; } ;;
  3554. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3555. $as_echo "print -r" >&6; } ;;
  3556. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3557. $as_echo "cat" >&6; } ;;
  3558. esac
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3560. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3561. if test "${ac_cv_path_SED+set}" = set; then :
  3562. $as_echo_n "(cached) " >&6
  3563. else
  3564. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3565. for ac_i in 1 2 3 4 5 6 7; do
  3566. ac_script="$ac_script$as_nl$ac_script"
  3567. done
  3568. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3569. { ac_script=; unset ac_script;}
  3570. if test -z "$SED"; then
  3571. ac_path_SED_found=false
  3572. # Loop through the user's path and test for each of PROGNAME-LIST
  3573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3574. for as_dir in $PATH
  3575. do
  3576. IFS=$as_save_IFS
  3577. test -z "$as_dir" && as_dir=.
  3578. for ac_prog in sed gsed; do
  3579. for ac_exec_ext in '' $ac_executable_extensions; do
  3580. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3581. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3582. # Check for GNU ac_path_SED and select it if it is found.
  3583. # Check for GNU $ac_path_SED
  3584. case `"$ac_path_SED" --version 2>&1` in
  3585. *GNU*)
  3586. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3587. *)
  3588. ac_count=0
  3589. $as_echo_n 0123456789 >"conftest.in"
  3590. while :
  3591. do
  3592. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3593. mv "conftest.tmp" "conftest.in"
  3594. cp "conftest.in" "conftest.nl"
  3595. $as_echo '' >> "conftest.nl"
  3596. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3597. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3598. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3599. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3600. # Best one so far, save it but keep looking for a better one
  3601. ac_cv_path_SED="$ac_path_SED"
  3602. ac_path_SED_max=$ac_count
  3603. fi
  3604. # 10*(2^10) chars as input seems more than enough
  3605. test $ac_count -gt 10 && break
  3606. done
  3607. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3608. esac
  3609. $ac_path_SED_found && break 3
  3610. done
  3611. done
  3612. done
  3613. IFS=$as_save_IFS
  3614. if test -z "$ac_cv_path_SED"; then
  3615. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3616. fi
  3617. else
  3618. ac_cv_path_SED=$SED
  3619. fi
  3620. fi
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3622. $as_echo "$ac_cv_path_SED" >&6; }
  3623. SED="$ac_cv_path_SED"
  3624. rm -f conftest.sed
  3625. test -z "$SED" && SED=sed
  3626. Xsed="$SED -e 1s/^X//"
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3628. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3629. if test "${ac_cv_path_GREP+set}" = set; then :
  3630. $as_echo_n "(cached) " >&6
  3631. else
  3632. if test -z "$GREP"; then
  3633. ac_path_GREP_found=false
  3634. # Loop through the user's path and test for each of PROGNAME-LIST
  3635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3636. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3637. do
  3638. IFS=$as_save_IFS
  3639. test -z "$as_dir" && as_dir=.
  3640. for ac_prog in grep ggrep; do
  3641. for ac_exec_ext in '' $ac_executable_extensions; do
  3642. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3643. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3644. # Check for GNU ac_path_GREP and select it if it is found.
  3645. # Check for GNU $ac_path_GREP
  3646. case `"$ac_path_GREP" --version 2>&1` in
  3647. *GNU*)
  3648. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3649. *)
  3650. ac_count=0
  3651. $as_echo_n 0123456789 >"conftest.in"
  3652. while :
  3653. do
  3654. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3655. mv "conftest.tmp" "conftest.in"
  3656. cp "conftest.in" "conftest.nl"
  3657. $as_echo 'GREP' >> "conftest.nl"
  3658. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3659. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3660. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3661. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3662. # Best one so far, save it but keep looking for a better one
  3663. ac_cv_path_GREP="$ac_path_GREP"
  3664. ac_path_GREP_max=$ac_count
  3665. fi
  3666. # 10*(2^10) chars as input seems more than enough
  3667. test $ac_count -gt 10 && break
  3668. done
  3669. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3670. esac
  3671. $ac_path_GREP_found && break 3
  3672. done
  3673. done
  3674. done
  3675. IFS=$as_save_IFS
  3676. if test -z "$ac_cv_path_GREP"; then
  3677. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3678. fi
  3679. else
  3680. ac_cv_path_GREP=$GREP
  3681. fi
  3682. fi
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3684. $as_echo "$ac_cv_path_GREP" >&6; }
  3685. GREP="$ac_cv_path_GREP"
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3687. $as_echo_n "checking for egrep... " >&6; }
  3688. if test "${ac_cv_path_EGREP+set}" = set; then :
  3689. $as_echo_n "(cached) " >&6
  3690. else
  3691. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3692. then ac_cv_path_EGREP="$GREP -E"
  3693. else
  3694. if test -z "$EGREP"; then
  3695. ac_path_EGREP_found=false
  3696. # Loop through the user's path and test for each of PROGNAME-LIST
  3697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3698. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3699. do
  3700. IFS=$as_save_IFS
  3701. test -z "$as_dir" && as_dir=.
  3702. for ac_prog in egrep; do
  3703. for ac_exec_ext in '' $ac_executable_extensions; do
  3704. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3705. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3706. # Check for GNU ac_path_EGREP and select it if it is found.
  3707. # Check for GNU $ac_path_EGREP
  3708. case `"$ac_path_EGREP" --version 2>&1` in
  3709. *GNU*)
  3710. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3711. *)
  3712. ac_count=0
  3713. $as_echo_n 0123456789 >"conftest.in"
  3714. while :
  3715. do
  3716. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3717. mv "conftest.tmp" "conftest.in"
  3718. cp "conftest.in" "conftest.nl"
  3719. $as_echo 'EGREP' >> "conftest.nl"
  3720. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3721. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3722. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3723. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3724. # Best one so far, save it but keep looking for a better one
  3725. ac_cv_path_EGREP="$ac_path_EGREP"
  3726. ac_path_EGREP_max=$ac_count
  3727. fi
  3728. # 10*(2^10) chars as input seems more than enough
  3729. test $ac_count -gt 10 && break
  3730. done
  3731. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3732. esac
  3733. $ac_path_EGREP_found && break 3
  3734. done
  3735. done
  3736. done
  3737. IFS=$as_save_IFS
  3738. if test -z "$ac_cv_path_EGREP"; then
  3739. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3740. fi
  3741. else
  3742. ac_cv_path_EGREP=$EGREP
  3743. fi
  3744. fi
  3745. fi
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3747. $as_echo "$ac_cv_path_EGREP" >&6; }
  3748. EGREP="$ac_cv_path_EGREP"
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3750. $as_echo_n "checking for fgrep... " >&6; }
  3751. if test "${ac_cv_path_FGREP+set}" = set; then :
  3752. $as_echo_n "(cached) " >&6
  3753. else
  3754. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3755. then ac_cv_path_FGREP="$GREP -F"
  3756. else
  3757. if test -z "$FGREP"; then
  3758. ac_path_FGREP_found=false
  3759. # Loop through the user's path and test for each of PROGNAME-LIST
  3760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3761. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3762. do
  3763. IFS=$as_save_IFS
  3764. test -z "$as_dir" && as_dir=.
  3765. for ac_prog in fgrep; do
  3766. for ac_exec_ext in '' $ac_executable_extensions; do
  3767. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3768. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3769. # Check for GNU ac_path_FGREP and select it if it is found.
  3770. # Check for GNU $ac_path_FGREP
  3771. case `"$ac_path_FGREP" --version 2>&1` in
  3772. *GNU*)
  3773. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3774. *)
  3775. ac_count=0
  3776. $as_echo_n 0123456789 >"conftest.in"
  3777. while :
  3778. do
  3779. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3780. mv "conftest.tmp" "conftest.in"
  3781. cp "conftest.in" "conftest.nl"
  3782. $as_echo 'FGREP' >> "conftest.nl"
  3783. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3784. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3785. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3786. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3787. # Best one so far, save it but keep looking for a better one
  3788. ac_cv_path_FGREP="$ac_path_FGREP"
  3789. ac_path_FGREP_max=$ac_count
  3790. fi
  3791. # 10*(2^10) chars as input seems more than enough
  3792. test $ac_count -gt 10 && break
  3793. done
  3794. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3795. esac
  3796. $ac_path_FGREP_found && break 3
  3797. done
  3798. done
  3799. done
  3800. IFS=$as_save_IFS
  3801. if test -z "$ac_cv_path_FGREP"; then
  3802. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3803. fi
  3804. else
  3805. ac_cv_path_FGREP=$FGREP
  3806. fi
  3807. fi
  3808. fi
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3810. $as_echo "$ac_cv_path_FGREP" >&6; }
  3811. FGREP="$ac_cv_path_FGREP"
  3812. test -z "$GREP" && GREP=grep
  3813. # Check whether --with-gnu-ld was given.
  3814. if test "${with_gnu_ld+set}" = set; then :
  3815. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3816. else
  3817. with_gnu_ld=no
  3818. fi
  3819. ac_prog=ld
  3820. if test "$GCC" = yes; then
  3821. # Check if gcc -print-prog-name=ld gives a path.
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3823. $as_echo_n "checking for ld used by $CC... " >&6; }
  3824. case $host in
  3825. *-*-mingw*)
  3826. # gcc leaves a trailing carriage return which upsets mingw
  3827. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3828. *)
  3829. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3830. esac
  3831. case $ac_prog in
  3832. # Accept absolute paths.
  3833. [\\/]* | ?:[\\/]*)
  3834. re_direlt='/[^/][^/]*/\.\./'
  3835. # Canonicalize the pathname of ld
  3836. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3837. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3838. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3839. done
  3840. test -z "$LD" && LD="$ac_prog"
  3841. ;;
  3842. "")
  3843. # If it fails, then pretend we aren't using GCC.
  3844. ac_prog=ld
  3845. ;;
  3846. *)
  3847. # If it is relative, then search for the first ld in PATH.
  3848. with_gnu_ld=unknown
  3849. ;;
  3850. esac
  3851. elif test "$with_gnu_ld" = yes; then
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3853. $as_echo_n "checking for GNU ld... " >&6; }
  3854. else
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3856. $as_echo_n "checking for non-GNU ld... " >&6; }
  3857. fi
  3858. if test "${lt_cv_path_LD+set}" = set; then :
  3859. $as_echo_n "(cached) " >&6
  3860. else
  3861. if test -z "$LD"; then
  3862. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3863. for ac_dir in $PATH; do
  3864. IFS="$lt_save_ifs"
  3865. test -z "$ac_dir" && ac_dir=.
  3866. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3867. lt_cv_path_LD="$ac_dir/$ac_prog"
  3868. # Check to see if the program is GNU ld. I'd rather use --version,
  3869. # but apparently some variants of GNU ld only accept -v.
  3870. # Break only if it was the GNU/non-GNU ld that we prefer.
  3871. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3872. *GNU* | *'with BFD'*)
  3873. test "$with_gnu_ld" != no && break
  3874. ;;
  3875. *)
  3876. test "$with_gnu_ld" != yes && break
  3877. ;;
  3878. esac
  3879. fi
  3880. done
  3881. IFS="$lt_save_ifs"
  3882. else
  3883. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3884. fi
  3885. fi
  3886. LD="$lt_cv_path_LD"
  3887. if test -n "$LD"; then
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3889. $as_echo "$LD" >&6; }
  3890. else
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3892. $as_echo "no" >&6; }
  3893. fi
  3894. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3896. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3897. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  3898. $as_echo_n "(cached) " >&6
  3899. else
  3900. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3901. case `$LD -v 2>&1 </dev/null` in
  3902. *GNU* | *'with BFD'*)
  3903. lt_cv_prog_gnu_ld=yes
  3904. ;;
  3905. *)
  3906. lt_cv_prog_gnu_ld=no
  3907. ;;
  3908. esac
  3909. fi
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3911. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3912. with_gnu_ld=$lt_cv_prog_gnu_ld
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3914. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3915. if test "${lt_cv_path_NM+set}" = set; then :
  3916. $as_echo_n "(cached) " >&6
  3917. else
  3918. if test -n "$NM"; then
  3919. # Let the user override the test.
  3920. lt_cv_path_NM="$NM"
  3921. else
  3922. lt_nm_to_check="${ac_tool_prefix}nm"
  3923. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3924. lt_nm_to_check="$lt_nm_to_check nm"
  3925. fi
  3926. for lt_tmp_nm in $lt_nm_to_check; do
  3927. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3928. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3929. IFS="$lt_save_ifs"
  3930. test -z "$ac_dir" && ac_dir=.
  3931. tmp_nm="$ac_dir/$lt_tmp_nm"
  3932. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3933. # Check to see if the nm accepts a BSD-compat flag.
  3934. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3935. # nm: unknown option "B" ignored
  3936. # Tru64's nm complains that /dev/null is an invalid object file
  3937. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3938. */dev/null* | *'Invalid file or object type'*)
  3939. lt_cv_path_NM="$tmp_nm -B"
  3940. break
  3941. ;;
  3942. *)
  3943. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3944. */dev/null*)
  3945. lt_cv_path_NM="$tmp_nm -p"
  3946. break
  3947. ;;
  3948. *)
  3949. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3950. continue # so that we can try to find one that supports BSD flags
  3951. ;;
  3952. esac
  3953. ;;
  3954. esac
  3955. fi
  3956. done
  3957. IFS="$lt_save_ifs"
  3958. done
  3959. : ${lt_cv_path_NM=no}
  3960. fi
  3961. fi
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3963. $as_echo "$lt_cv_path_NM" >&6; }
  3964. if test "$lt_cv_path_NM" != "no"; then
  3965. NM="$lt_cv_path_NM"
  3966. else
  3967. # Didn't find any BSD compatible name lister, look for dumpbin.
  3968. if test -n "$DUMPBIN"; then :
  3969. # Let the user override the test.
  3970. else
  3971. if test -n "$ac_tool_prefix"; then
  3972. for ac_prog in dumpbin "link -dump"
  3973. do
  3974. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3975. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3977. $as_echo_n "checking for $ac_word... " >&6; }
  3978. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  3979. $as_echo_n "(cached) " >&6
  3980. else
  3981. if test -n "$DUMPBIN"; then
  3982. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3983. else
  3984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3985. for as_dir in $PATH
  3986. do
  3987. IFS=$as_save_IFS
  3988. test -z "$as_dir" && as_dir=.
  3989. for ac_exec_ext in '' $ac_executable_extensions; do
  3990. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3991. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3993. break 2
  3994. fi
  3995. done
  3996. done
  3997. IFS=$as_save_IFS
  3998. fi
  3999. fi
  4000. DUMPBIN=$ac_cv_prog_DUMPBIN
  4001. if test -n "$DUMPBIN"; then
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4003. $as_echo "$DUMPBIN" >&6; }
  4004. else
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4006. $as_echo "no" >&6; }
  4007. fi
  4008. test -n "$DUMPBIN" && break
  4009. done
  4010. fi
  4011. if test -z "$DUMPBIN"; then
  4012. ac_ct_DUMPBIN=$DUMPBIN
  4013. for ac_prog in dumpbin "link -dump"
  4014. do
  4015. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4016. set dummy $ac_prog; ac_word=$2
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4018. $as_echo_n "checking for $ac_word... " >&6; }
  4019. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4020. $as_echo_n "(cached) " >&6
  4021. else
  4022. if test -n "$ac_ct_DUMPBIN"; then
  4023. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4024. else
  4025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4026. for as_dir in $PATH
  4027. do
  4028. IFS=$as_save_IFS
  4029. test -z "$as_dir" && as_dir=.
  4030. for ac_exec_ext in '' $ac_executable_extensions; do
  4031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4032. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4034. break 2
  4035. fi
  4036. done
  4037. done
  4038. IFS=$as_save_IFS
  4039. fi
  4040. fi
  4041. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4042. if test -n "$ac_ct_DUMPBIN"; then
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4044. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4045. else
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4047. $as_echo "no" >&6; }
  4048. fi
  4049. test -n "$ac_ct_DUMPBIN" && break
  4050. done
  4051. if test "x$ac_ct_DUMPBIN" = x; then
  4052. DUMPBIN=":"
  4053. else
  4054. case $cross_compiling:$ac_tool_warned in
  4055. yes:)
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4057. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4058. ac_tool_warned=yes ;;
  4059. esac
  4060. DUMPBIN=$ac_ct_DUMPBIN
  4061. fi
  4062. fi
  4063. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4064. *COFF*)
  4065. DUMPBIN="$DUMPBIN -symbols"
  4066. ;;
  4067. *)
  4068. DUMPBIN=:
  4069. ;;
  4070. esac
  4071. fi
  4072. if test "$DUMPBIN" != ":"; then
  4073. NM="$DUMPBIN"
  4074. fi
  4075. fi
  4076. test -z "$NM" && NM=nm
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4078. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4079. if test "${lt_cv_nm_interface+set}" = set; then :
  4080. $as_echo_n "(cached) " >&6
  4081. else
  4082. lt_cv_nm_interface="BSD nm"
  4083. echo "int some_variable = 0;" > conftest.$ac_ext
  4084. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4085. (eval "$ac_compile" 2>conftest.err)
  4086. cat conftest.err >&5
  4087. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4088. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4089. cat conftest.err >&5
  4090. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4091. cat conftest.out >&5
  4092. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4093. lt_cv_nm_interface="MS dumpbin"
  4094. fi
  4095. rm -f conftest*
  4096. fi
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4098. $as_echo "$lt_cv_nm_interface" >&6; }
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4100. $as_echo_n "checking whether ln -s works... " >&6; }
  4101. LN_S=$as_ln_s
  4102. if test "$LN_S" = "ln -s"; then
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4104. $as_echo "yes" >&6; }
  4105. else
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4107. $as_echo "no, using $LN_S" >&6; }
  4108. fi
  4109. # find the maximum length of command line arguments
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4111. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4112. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4113. $as_echo_n "(cached) " >&6
  4114. else
  4115. i=0
  4116. teststring="ABCD"
  4117. case $build_os in
  4118. msdosdjgpp*)
  4119. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4120. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4121. # during glob expansion). Even if it were fixed, the result of this
  4122. # check would be larger than it should be.
  4123. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4124. ;;
  4125. gnu*)
  4126. # Under GNU Hurd, this test is not required because there is
  4127. # no limit to the length of command line arguments.
  4128. # Libtool will interpret -1 as no limit whatsoever
  4129. lt_cv_sys_max_cmd_len=-1;
  4130. ;;
  4131. cygwin* | mingw* | cegcc*)
  4132. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4133. # about 5 minutes as the teststring grows exponentially.
  4134. # Worse, since 9x/ME are not pre-emptively multitasking,
  4135. # you end up with a "frozen" computer, even though with patience
  4136. # the test eventually succeeds (with a max line length of 256k).
  4137. # Instead, let's just punt: use the minimum linelength reported by
  4138. # all of the supported platforms: 8192 (on NT/2K/XP).
  4139. lt_cv_sys_max_cmd_len=8192;
  4140. ;;
  4141. mint*)
  4142. # On MiNT this can take a long time and run out of memory.
  4143. lt_cv_sys_max_cmd_len=8192;
  4144. ;;
  4145. amigaos*)
  4146. # On AmigaOS with pdksh, this test takes hours, literally.
  4147. # So we just punt and use a minimum line length of 8192.
  4148. lt_cv_sys_max_cmd_len=8192;
  4149. ;;
  4150. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4151. # This has been around since 386BSD, at least. Likely further.
  4152. if test -x /sbin/sysctl; then
  4153. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4154. elif test -x /usr/sbin/sysctl; then
  4155. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4156. else
  4157. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4158. fi
  4159. # And add a safety zone
  4160. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4161. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4162. ;;
  4163. interix*)
  4164. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4165. lt_cv_sys_max_cmd_len=196608
  4166. ;;
  4167. osf*)
  4168. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4169. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4170. # nice to cause kernel panics so lets avoid the loop below.
  4171. # First set a reasonable default.
  4172. lt_cv_sys_max_cmd_len=16384
  4173. #
  4174. if test -x /sbin/sysconfig; then
  4175. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4176. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4177. esac
  4178. fi
  4179. ;;
  4180. sco3.2v5*)
  4181. lt_cv_sys_max_cmd_len=102400
  4182. ;;
  4183. sysv5* | sco5v6* | sysv4.2uw2*)
  4184. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4185. if test -n "$kargmax"; then
  4186. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4187. else
  4188. lt_cv_sys_max_cmd_len=32768
  4189. fi
  4190. ;;
  4191. *)
  4192. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4193. if test -n "$lt_cv_sys_max_cmd_len"; then
  4194. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4195. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4196. else
  4197. # Make teststring a little bigger before we do anything with it.
  4198. # a 1K string should be a reasonable start.
  4199. for i in 1 2 3 4 5 6 7 8 ; do
  4200. teststring=$teststring$teststring
  4201. done
  4202. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4203. # If test is not a shell built-in, we'll probably end up computing a
  4204. # maximum length that is only half of the actual maximum length, but
  4205. # we can't tell.
  4206. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4207. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4208. test $i != 17 # 1/2 MB should be enough
  4209. do
  4210. i=`expr $i + 1`
  4211. teststring=$teststring$teststring
  4212. done
  4213. # Only check the string length outside the loop.
  4214. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4215. teststring=
  4216. # Add a significant safety factor because C++ compilers can tack on
  4217. # massive amounts of additional arguments before passing them to the
  4218. # linker. It appears as though 1/2 is a usable value.
  4219. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4220. fi
  4221. ;;
  4222. esac
  4223. fi
  4224. if test -n $lt_cv_sys_max_cmd_len ; then
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4226. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4227. else
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4229. $as_echo "none" >&6; }
  4230. fi
  4231. max_cmd_len=$lt_cv_sys_max_cmd_len
  4232. : ${CP="cp -f"}
  4233. : ${MV="mv -f"}
  4234. : ${RM="rm -f"}
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4236. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4237. # Try some XSI features
  4238. xsi_shell=no
  4239. ( _lt_dummy="a/b/c"
  4240. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4241. = c,a/b,, \
  4242. && eval 'test $(( 1 + 1 )) -eq 2 \
  4243. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4244. && xsi_shell=yes
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4246. $as_echo "$xsi_shell" >&6; }
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4248. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4249. lt_shell_append=no
  4250. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4251. >/dev/null 2>&1 \
  4252. && lt_shell_append=yes
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4254. $as_echo "$lt_shell_append" >&6; }
  4255. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4256. lt_unset=unset
  4257. else
  4258. lt_unset=false
  4259. fi
  4260. # test EBCDIC or ASCII
  4261. case `echo X|tr X '\101'` in
  4262. A) # ASCII based system
  4263. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4264. lt_SP2NL='tr \040 \012'
  4265. lt_NL2SP='tr \015\012 \040\040'
  4266. ;;
  4267. *) # EBCDIC based system
  4268. lt_SP2NL='tr \100 \n'
  4269. lt_NL2SP='tr \r\n \100\100'
  4270. ;;
  4271. esac
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4273. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4274. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4275. $as_echo_n "(cached) " >&6
  4276. else
  4277. lt_cv_ld_reload_flag='-r'
  4278. fi
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4280. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4281. reload_flag=$lt_cv_ld_reload_flag
  4282. case $reload_flag in
  4283. "" | " "*) ;;
  4284. *) reload_flag=" $reload_flag" ;;
  4285. esac
  4286. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4287. case $host_os in
  4288. darwin*)
  4289. if test "$GCC" = yes; then
  4290. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4291. else
  4292. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4293. fi
  4294. ;;
  4295. esac
  4296. if test -n "$ac_tool_prefix"; then
  4297. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4298. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4300. $as_echo_n "checking for $ac_word... " >&6; }
  4301. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4302. $as_echo_n "(cached) " >&6
  4303. else
  4304. if test -n "$OBJDUMP"; then
  4305. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4306. else
  4307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4308. for as_dir in $PATH
  4309. do
  4310. IFS=$as_save_IFS
  4311. test -z "$as_dir" && as_dir=.
  4312. for ac_exec_ext in '' $ac_executable_extensions; do
  4313. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4314. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4316. break 2
  4317. fi
  4318. done
  4319. done
  4320. IFS=$as_save_IFS
  4321. fi
  4322. fi
  4323. OBJDUMP=$ac_cv_prog_OBJDUMP
  4324. if test -n "$OBJDUMP"; then
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4326. $as_echo "$OBJDUMP" >&6; }
  4327. else
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4329. $as_echo "no" >&6; }
  4330. fi
  4331. fi
  4332. if test -z "$ac_cv_prog_OBJDUMP"; then
  4333. ac_ct_OBJDUMP=$OBJDUMP
  4334. # Extract the first word of "objdump", so it can be a program name with args.
  4335. set dummy objdump; ac_word=$2
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4337. $as_echo_n "checking for $ac_word... " >&6; }
  4338. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4339. $as_echo_n "(cached) " >&6
  4340. else
  4341. if test -n "$ac_ct_OBJDUMP"; then
  4342. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4343. else
  4344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4345. for as_dir in $PATH
  4346. do
  4347. IFS=$as_save_IFS
  4348. test -z "$as_dir" && as_dir=.
  4349. for ac_exec_ext in '' $ac_executable_extensions; do
  4350. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4351. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4353. break 2
  4354. fi
  4355. done
  4356. done
  4357. IFS=$as_save_IFS
  4358. fi
  4359. fi
  4360. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4361. if test -n "$ac_ct_OBJDUMP"; then
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4363. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4364. else
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4366. $as_echo "no" >&6; }
  4367. fi
  4368. if test "x$ac_ct_OBJDUMP" = x; then
  4369. OBJDUMP="false"
  4370. else
  4371. case $cross_compiling:$ac_tool_warned in
  4372. yes:)
  4373. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4374. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4375. ac_tool_warned=yes ;;
  4376. esac
  4377. OBJDUMP=$ac_ct_OBJDUMP
  4378. fi
  4379. else
  4380. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4381. fi
  4382. test -z "$OBJDUMP" && OBJDUMP=objdump
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4384. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4385. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4386. $as_echo_n "(cached) " >&6
  4387. else
  4388. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4389. lt_cv_file_magic_test_file=
  4390. lt_cv_deplibs_check_method='unknown'
  4391. # Need to set the preceding variable on all platforms that support
  4392. # interlibrary dependencies.
  4393. # 'none' -- dependencies not supported.
  4394. # `unknown' -- same as none, but documents that we really don't know.
  4395. # 'pass_all' -- all dependencies passed with no checks.
  4396. # 'test_compile' -- check by making test program.
  4397. # 'file_magic [[regex]]' -- check by looking for files in library path
  4398. # which responds to the $file_magic_cmd with a given extended regex.
  4399. # If you have `file' or equivalent on your system and you're not sure
  4400. # whether `pass_all' will *always* work, you probably want this one.
  4401. case $host_os in
  4402. aix[4-9]*)
  4403. lt_cv_deplibs_check_method=pass_all
  4404. ;;
  4405. beos*)
  4406. lt_cv_deplibs_check_method=pass_all
  4407. ;;
  4408. bsdi[45]*)
  4409. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4410. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4411. lt_cv_file_magic_test_file=/shlib/libc.so
  4412. ;;
  4413. cygwin*)
  4414. # func_win32_libid is a shell function defined in ltmain.sh
  4415. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4416. lt_cv_file_magic_cmd='func_win32_libid'
  4417. ;;
  4418. mingw* | pw32*)
  4419. # Base MSYS/MinGW do not provide the 'file' command needed by
  4420. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4421. # unless we find 'file', for example because we are cross-compiling.
  4422. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4423. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4424. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4425. lt_cv_file_magic_cmd='func_win32_libid'
  4426. else
  4427. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4428. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4429. fi
  4430. ;;
  4431. cegcc*)
  4432. # use the weaker test based on 'objdump'. See mingw*.
  4433. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4434. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4435. ;;
  4436. darwin* | rhapsody*)
  4437. lt_cv_deplibs_check_method=pass_all
  4438. ;;
  4439. freebsd* | dragonfly*)
  4440. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4441. case $host_cpu in
  4442. i*86 )
  4443. # Not sure whether the presence of OpenBSD here was a mistake.
  4444. # Let's accept both of them until this is cleared up.
  4445. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4446. lt_cv_file_magic_cmd=/usr/bin/file
  4447. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4448. ;;
  4449. esac
  4450. else
  4451. lt_cv_deplibs_check_method=pass_all
  4452. fi
  4453. ;;
  4454. gnu*)
  4455. lt_cv_deplibs_check_method=pass_all
  4456. ;;
  4457. haiku*)
  4458. lt_cv_deplibs_check_method=pass_all
  4459. ;;
  4460. hpux10.20* | hpux11*)
  4461. lt_cv_file_magic_cmd=/usr/bin/file
  4462. case $host_cpu in
  4463. ia64*)
  4464. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4465. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4466. ;;
  4467. hppa*64*)
  4468. 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]'
  4469. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4470. ;;
  4471. *)
  4472. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4473. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4474. ;;
  4475. esac
  4476. ;;
  4477. interix[3-9]*)
  4478. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4479. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4480. ;;
  4481. irix5* | irix6* | nonstopux*)
  4482. case $LD in
  4483. *-32|*"-32 ") libmagic=32-bit;;
  4484. *-n32|*"-n32 ") libmagic=N32;;
  4485. *-64|*"-64 ") libmagic=64-bit;;
  4486. *) libmagic=never-match;;
  4487. esac
  4488. lt_cv_deplibs_check_method=pass_all
  4489. ;;
  4490. # This must be Linux ELF.
  4491. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4492. lt_cv_deplibs_check_method=pass_all
  4493. ;;
  4494. netbsd*)
  4495. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4496. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4497. else
  4498. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4499. fi
  4500. ;;
  4501. newos6*)
  4502. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4503. lt_cv_file_magic_cmd=/usr/bin/file
  4504. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4505. ;;
  4506. *nto* | *qnx*)
  4507. lt_cv_deplibs_check_method=pass_all
  4508. ;;
  4509. openbsd*)
  4510. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4511. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4512. else
  4513. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4514. fi
  4515. ;;
  4516. osf3* | osf4* | osf5*)
  4517. lt_cv_deplibs_check_method=pass_all
  4518. ;;
  4519. rdos*)
  4520. lt_cv_deplibs_check_method=pass_all
  4521. ;;
  4522. solaris*)
  4523. lt_cv_deplibs_check_method=pass_all
  4524. ;;
  4525. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4526. lt_cv_deplibs_check_method=pass_all
  4527. ;;
  4528. sysv4 | sysv4.3*)
  4529. case $host_vendor in
  4530. motorola)
  4531. 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]'
  4532. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4533. ;;
  4534. ncr)
  4535. lt_cv_deplibs_check_method=pass_all
  4536. ;;
  4537. sequent)
  4538. lt_cv_file_magic_cmd='/bin/file'
  4539. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4540. ;;
  4541. sni)
  4542. lt_cv_file_magic_cmd='/bin/file'
  4543. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4544. lt_cv_file_magic_test_file=/lib/libc.so
  4545. ;;
  4546. siemens)
  4547. lt_cv_deplibs_check_method=pass_all
  4548. ;;
  4549. pc)
  4550. lt_cv_deplibs_check_method=pass_all
  4551. ;;
  4552. esac
  4553. ;;
  4554. tpf*)
  4555. lt_cv_deplibs_check_method=pass_all
  4556. ;;
  4557. esac
  4558. fi
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4560. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4561. file_magic_cmd=$lt_cv_file_magic_cmd
  4562. deplibs_check_method=$lt_cv_deplibs_check_method
  4563. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4564. if test -n "$ac_tool_prefix"; then
  4565. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4566. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4568. $as_echo_n "checking for $ac_word... " >&6; }
  4569. if test "${ac_cv_prog_AR+set}" = set; then :
  4570. $as_echo_n "(cached) " >&6
  4571. else
  4572. if test -n "$AR"; then
  4573. ac_cv_prog_AR="$AR" # Let the user override the test.
  4574. else
  4575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4576. for as_dir in $PATH
  4577. do
  4578. IFS=$as_save_IFS
  4579. test -z "$as_dir" && as_dir=.
  4580. for ac_exec_ext in '' $ac_executable_extensions; do
  4581. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4582. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4584. break 2
  4585. fi
  4586. done
  4587. done
  4588. IFS=$as_save_IFS
  4589. fi
  4590. fi
  4591. AR=$ac_cv_prog_AR
  4592. if test -n "$AR"; then
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4594. $as_echo "$AR" >&6; }
  4595. else
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4597. $as_echo "no" >&6; }
  4598. fi
  4599. fi
  4600. if test -z "$ac_cv_prog_AR"; then
  4601. ac_ct_AR=$AR
  4602. # Extract the first word of "ar", so it can be a program name with args.
  4603. set dummy ar; ac_word=$2
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4605. $as_echo_n "checking for $ac_word... " >&6; }
  4606. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4607. $as_echo_n "(cached) " >&6
  4608. else
  4609. if test -n "$ac_ct_AR"; then
  4610. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4611. else
  4612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4613. for as_dir in $PATH
  4614. do
  4615. IFS=$as_save_IFS
  4616. test -z "$as_dir" && as_dir=.
  4617. for ac_exec_ext in '' $ac_executable_extensions; do
  4618. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4619. ac_cv_prog_ac_ct_AR="ar"
  4620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4621. break 2
  4622. fi
  4623. done
  4624. done
  4625. IFS=$as_save_IFS
  4626. fi
  4627. fi
  4628. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4629. if test -n "$ac_ct_AR"; then
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4631. $as_echo "$ac_ct_AR" >&6; }
  4632. else
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4634. $as_echo "no" >&6; }
  4635. fi
  4636. if test "x$ac_ct_AR" = x; then
  4637. AR="false"
  4638. else
  4639. case $cross_compiling:$ac_tool_warned in
  4640. yes:)
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4642. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4643. ac_tool_warned=yes ;;
  4644. esac
  4645. AR=$ac_ct_AR
  4646. fi
  4647. else
  4648. AR="$ac_cv_prog_AR"
  4649. fi
  4650. test -z "$AR" && AR=ar
  4651. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4652. if test -n "$ac_tool_prefix"; then
  4653. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4654. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4656. $as_echo_n "checking for $ac_word... " >&6; }
  4657. if test "${ac_cv_prog_STRIP+set}" = set; then :
  4658. $as_echo_n "(cached) " >&6
  4659. else
  4660. if test -n "$STRIP"; then
  4661. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4662. else
  4663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4664. for as_dir in $PATH
  4665. do
  4666. IFS=$as_save_IFS
  4667. test -z "$as_dir" && as_dir=.
  4668. for ac_exec_ext in '' $ac_executable_extensions; do
  4669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4670. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4672. break 2
  4673. fi
  4674. done
  4675. done
  4676. IFS=$as_save_IFS
  4677. fi
  4678. fi
  4679. STRIP=$ac_cv_prog_STRIP
  4680. if test -n "$STRIP"; then
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4682. $as_echo "$STRIP" >&6; }
  4683. else
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4685. $as_echo "no" >&6; }
  4686. fi
  4687. fi
  4688. if test -z "$ac_cv_prog_STRIP"; then
  4689. ac_ct_STRIP=$STRIP
  4690. # Extract the first word of "strip", so it can be a program name with args.
  4691. set dummy strip; ac_word=$2
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4693. $as_echo_n "checking for $ac_word... " >&6; }
  4694. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  4695. $as_echo_n "(cached) " >&6
  4696. else
  4697. if test -n "$ac_ct_STRIP"; then
  4698. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4699. else
  4700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4701. for as_dir in $PATH
  4702. do
  4703. IFS=$as_save_IFS
  4704. test -z "$as_dir" && as_dir=.
  4705. for ac_exec_ext in '' $ac_executable_extensions; do
  4706. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4707. ac_cv_prog_ac_ct_STRIP="strip"
  4708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4709. break 2
  4710. fi
  4711. done
  4712. done
  4713. IFS=$as_save_IFS
  4714. fi
  4715. fi
  4716. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4717. if test -n "$ac_ct_STRIP"; then
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4719. $as_echo "$ac_ct_STRIP" >&6; }
  4720. else
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4722. $as_echo "no" >&6; }
  4723. fi
  4724. if test "x$ac_ct_STRIP" = x; then
  4725. STRIP=":"
  4726. else
  4727. case $cross_compiling:$ac_tool_warned in
  4728. yes:)
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4730. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4731. ac_tool_warned=yes ;;
  4732. esac
  4733. STRIP=$ac_ct_STRIP
  4734. fi
  4735. else
  4736. STRIP="$ac_cv_prog_STRIP"
  4737. fi
  4738. test -z "$STRIP" && STRIP=:
  4739. if test -n "$ac_tool_prefix"; then
  4740. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4741. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4743. $as_echo_n "checking for $ac_word... " >&6; }
  4744. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4745. $as_echo_n "(cached) " >&6
  4746. else
  4747. if test -n "$RANLIB"; then
  4748. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4749. else
  4750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4751. for as_dir in $PATH
  4752. do
  4753. IFS=$as_save_IFS
  4754. test -z "$as_dir" && as_dir=.
  4755. for ac_exec_ext in '' $ac_executable_extensions; do
  4756. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4757. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4759. break 2
  4760. fi
  4761. done
  4762. done
  4763. IFS=$as_save_IFS
  4764. fi
  4765. fi
  4766. RANLIB=$ac_cv_prog_RANLIB
  4767. if test -n "$RANLIB"; then
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4769. $as_echo "$RANLIB" >&6; }
  4770. else
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4772. $as_echo "no" >&6; }
  4773. fi
  4774. fi
  4775. if test -z "$ac_cv_prog_RANLIB"; then
  4776. ac_ct_RANLIB=$RANLIB
  4777. # Extract the first word of "ranlib", so it can be a program name with args.
  4778. set dummy ranlib; ac_word=$2
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4780. $as_echo_n "checking for $ac_word... " >&6; }
  4781. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4782. $as_echo_n "(cached) " >&6
  4783. else
  4784. if test -n "$ac_ct_RANLIB"; then
  4785. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4786. else
  4787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4788. for as_dir in $PATH
  4789. do
  4790. IFS=$as_save_IFS
  4791. test -z "$as_dir" && as_dir=.
  4792. for ac_exec_ext in '' $ac_executable_extensions; do
  4793. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4794. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4796. break 2
  4797. fi
  4798. done
  4799. done
  4800. IFS=$as_save_IFS
  4801. fi
  4802. fi
  4803. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4804. if test -n "$ac_ct_RANLIB"; then
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4806. $as_echo "$ac_ct_RANLIB" >&6; }
  4807. else
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4809. $as_echo "no" >&6; }
  4810. fi
  4811. if test "x$ac_ct_RANLIB" = x; then
  4812. RANLIB=":"
  4813. else
  4814. case $cross_compiling:$ac_tool_warned in
  4815. yes:)
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4817. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4818. ac_tool_warned=yes ;;
  4819. esac
  4820. RANLIB=$ac_ct_RANLIB
  4821. fi
  4822. else
  4823. RANLIB="$ac_cv_prog_RANLIB"
  4824. fi
  4825. test -z "$RANLIB" && RANLIB=:
  4826. # Determine commands to create old-style static archives.
  4827. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4828. old_postinstall_cmds='chmod 644 $oldlib'
  4829. old_postuninstall_cmds=
  4830. if test -n "$RANLIB"; then
  4831. case $host_os in
  4832. openbsd*)
  4833. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4834. ;;
  4835. *)
  4836. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4837. ;;
  4838. esac
  4839. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4840. fi
  4841. case $host_os in
  4842. darwin*)
  4843. lock_old_archive_extraction=yes ;;
  4844. *)
  4845. lock_old_archive_extraction=no ;;
  4846. esac
  4847. # If no C compiler was specified, use CC.
  4848. LTCC=${LTCC-"$CC"}
  4849. # If no C compiler flags were specified, use CFLAGS.
  4850. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4851. # Allow CC to be a program name with arguments.
  4852. compiler=$CC
  4853. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4855. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4856. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  4857. $as_echo_n "(cached) " >&6
  4858. else
  4859. # These are sane defaults that work on at least a few old systems.
  4860. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4861. # Character class describing NM global symbol codes.
  4862. symcode='[BCDEGRST]'
  4863. # Regexp to match symbols that can be accessed directly from C.
  4864. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4865. # Define system-specific variables.
  4866. case $host_os in
  4867. aix*)
  4868. symcode='[BCDT]'
  4869. ;;
  4870. cygwin* | mingw* | pw32* | cegcc*)
  4871. symcode='[ABCDGISTW]'
  4872. ;;
  4873. hpux*)
  4874. if test "$host_cpu" = ia64; then
  4875. symcode='[ABCDEGRST]'
  4876. fi
  4877. ;;
  4878. irix* | nonstopux*)
  4879. symcode='[BCDEGRST]'
  4880. ;;
  4881. osf*)
  4882. symcode='[BCDEGQRST]'
  4883. ;;
  4884. solaris*)
  4885. symcode='[BDRT]'
  4886. ;;
  4887. sco3.2v5*)
  4888. symcode='[DT]'
  4889. ;;
  4890. sysv4.2uw2*)
  4891. symcode='[DT]'
  4892. ;;
  4893. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4894. symcode='[ABDT]'
  4895. ;;
  4896. sysv4)
  4897. symcode='[DFNSTU]'
  4898. ;;
  4899. esac
  4900. # If we're using GNU nm, then use its standard symbol codes.
  4901. case `$NM -V 2>&1` in
  4902. *GNU* | *'with BFD'*)
  4903. symcode='[ABCDGIRSTW]' ;;
  4904. esac
  4905. # Transform an extracted symbol line into a proper C declaration.
  4906. # Some systems (esp. on ia64) link data and code symbols differently,
  4907. # so use this general approach.
  4908. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4909. # Transform an extracted symbol line into symbol name and symbol address
  4910. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4911. 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'"
  4912. # Handle CRLF in mingw tool chain
  4913. opt_cr=
  4914. case $build_os in
  4915. mingw*)
  4916. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4917. ;;
  4918. esac
  4919. # Try without a prefix underscore, then with it.
  4920. for ac_symprfx in "" "_"; do
  4921. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4922. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4923. # Write the raw and C identifiers.
  4924. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4925. # Fake it for dumpbin and say T for any non-static function
  4926. # and D for any global variable.
  4927. # Also find C++ and __fastcall symbols from MSVC++,
  4928. # which start with @ or ?.
  4929. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4930. " {last_section=section; section=\$ 3};"\
  4931. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4932. " \$ 0!~/External *\|/{next};"\
  4933. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4934. " {if(hide[section]) next};"\
  4935. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4936. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4937. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4938. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4939. " ' prfx=^$ac_symprfx"
  4940. else
  4941. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4942. fi
  4943. # Check to see that the pipe works correctly.
  4944. pipe_works=no
  4945. rm -f conftest*
  4946. cat > conftest.$ac_ext <<_LT_EOF
  4947. #ifdef __cplusplus
  4948. extern "C" {
  4949. #endif
  4950. char nm_test_var;
  4951. void nm_test_func(void);
  4952. void nm_test_func(void){}
  4953. #ifdef __cplusplus
  4954. }
  4955. #endif
  4956. int main(){nm_test_var='a';nm_test_func();return(0);}
  4957. _LT_EOF
  4958. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4959. (eval $ac_compile) 2>&5
  4960. ac_status=$?
  4961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4962. test $ac_status = 0; }; then
  4963. # Now try to grab the symbols.
  4964. nlist=conftest.nm
  4965. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  4966. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  4967. ac_status=$?
  4968. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4969. test $ac_status = 0; } && test -s "$nlist"; then
  4970. # Try sorting and uniquifying the output.
  4971. if sort "$nlist" | uniq > "$nlist"T; then
  4972. mv -f "$nlist"T "$nlist"
  4973. else
  4974. rm -f "$nlist"T
  4975. fi
  4976. # Make sure that we snagged all the symbols we need.
  4977. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4978. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4979. cat <<_LT_EOF > conftest.$ac_ext
  4980. #ifdef __cplusplus
  4981. extern "C" {
  4982. #endif
  4983. _LT_EOF
  4984. # Now generate the symbol file.
  4985. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4986. cat <<_LT_EOF >> conftest.$ac_ext
  4987. /* The mapping between symbol names and symbols. */
  4988. const struct {
  4989. const char *name;
  4990. void *address;
  4991. }
  4992. lt__PROGRAM__LTX_preloaded_symbols[] =
  4993. {
  4994. { "@PROGRAM@", (void *) 0 },
  4995. _LT_EOF
  4996. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4997. cat <<\_LT_EOF >> conftest.$ac_ext
  4998. {0, (void *) 0}
  4999. };
  5000. /* This works around a problem in FreeBSD linker */
  5001. #ifdef FREEBSD_WORKAROUND
  5002. static const void *lt_preloaded_setup() {
  5003. return lt__PROGRAM__LTX_preloaded_symbols;
  5004. }
  5005. #endif
  5006. #ifdef __cplusplus
  5007. }
  5008. #endif
  5009. _LT_EOF
  5010. # Now try linking the two files.
  5011. mv conftest.$ac_objext conftstm.$ac_objext
  5012. lt_save_LIBS="$LIBS"
  5013. lt_save_CFLAGS="$CFLAGS"
  5014. LIBS="conftstm.$ac_objext"
  5015. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5016. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5017. (eval $ac_link) 2>&5
  5018. ac_status=$?
  5019. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5020. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5021. pipe_works=yes
  5022. fi
  5023. LIBS="$lt_save_LIBS"
  5024. CFLAGS="$lt_save_CFLAGS"
  5025. else
  5026. echo "cannot find nm_test_func in $nlist" >&5
  5027. fi
  5028. else
  5029. echo "cannot find nm_test_var in $nlist" >&5
  5030. fi
  5031. else
  5032. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5033. fi
  5034. else
  5035. echo "$progname: failed program was:" >&5
  5036. cat conftest.$ac_ext >&5
  5037. fi
  5038. rm -rf conftest* conftst*
  5039. # Do not use the global_symbol_pipe unless it works.
  5040. if test "$pipe_works" = yes; then
  5041. break
  5042. else
  5043. lt_cv_sys_global_symbol_pipe=
  5044. fi
  5045. done
  5046. fi
  5047. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5048. lt_cv_sys_global_symbol_to_cdecl=
  5049. fi
  5050. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5052. $as_echo "failed" >&6; }
  5053. else
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5055. $as_echo "ok" >&6; }
  5056. fi
  5057. # Check whether --enable-libtool-lock was given.
  5058. if test "${enable_libtool_lock+set}" = set; then :
  5059. enableval=$enable_libtool_lock;
  5060. fi
  5061. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5062. # Some flags need to be propagated to the compiler or linker for good
  5063. # libtool support.
  5064. case $host in
  5065. ia64-*-hpux*)
  5066. # Find out which ABI we are using.
  5067. echo 'int i;' > conftest.$ac_ext
  5068. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5069. (eval $ac_compile) 2>&5
  5070. ac_status=$?
  5071. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5072. test $ac_status = 0; }; then
  5073. case `/usr/bin/file conftest.$ac_objext` in
  5074. *ELF-32*)
  5075. HPUX_IA64_MODE="32"
  5076. ;;
  5077. *ELF-64*)
  5078. HPUX_IA64_MODE="64"
  5079. ;;
  5080. esac
  5081. fi
  5082. rm -rf conftest*
  5083. ;;
  5084. *-*-irix6*)
  5085. # Find out which ABI we are using.
  5086. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5087. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5088. (eval $ac_compile) 2>&5
  5089. ac_status=$?
  5090. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5091. test $ac_status = 0; }; then
  5092. if test "$lt_cv_prog_gnu_ld" = yes; then
  5093. case `/usr/bin/file conftest.$ac_objext` in
  5094. *32-bit*)
  5095. LD="${LD-ld} -melf32bsmip"
  5096. ;;
  5097. *N32*)
  5098. LD="${LD-ld} -melf32bmipn32"
  5099. ;;
  5100. *64-bit*)
  5101. LD="${LD-ld} -melf64bmip"
  5102. ;;
  5103. esac
  5104. else
  5105. case `/usr/bin/file conftest.$ac_objext` in
  5106. *32-bit*)
  5107. LD="${LD-ld} -32"
  5108. ;;
  5109. *N32*)
  5110. LD="${LD-ld} -n32"
  5111. ;;
  5112. *64-bit*)
  5113. LD="${LD-ld} -64"
  5114. ;;
  5115. esac
  5116. fi
  5117. fi
  5118. rm -rf conftest*
  5119. ;;
  5120. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5121. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5122. # Find out which ABI we are using.
  5123. echo 'int i;' > conftest.$ac_ext
  5124. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5125. (eval $ac_compile) 2>&5
  5126. ac_status=$?
  5127. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5128. test $ac_status = 0; }; then
  5129. case `/usr/bin/file conftest.o` in
  5130. *32-bit*)
  5131. case $host in
  5132. x86_64-*kfreebsd*-gnu)
  5133. LD="${LD-ld} -m elf_i386_fbsd"
  5134. ;;
  5135. x86_64-*linux*)
  5136. case `/usr/bin/file conftest.o` in
  5137. *x86-64*)
  5138. LD="${LD-ld} -m elf32_x86_64"
  5139. ;;
  5140. *)
  5141. LD="${LD-ld} -m elf_i386"
  5142. ;;
  5143. esac
  5144. ;;
  5145. powerpc64le-*linux*)
  5146. LD="${LD-ld} -m elf32lppclinux"
  5147. ;;
  5148. powerpc64-*linux*)
  5149. LD="${LD-ld} -m elf32ppclinux"
  5150. ;;
  5151. s390x-*linux*)
  5152. LD="${LD-ld} -m elf_s390"
  5153. ;;
  5154. sparc64-*linux*)
  5155. LD="${LD-ld} -m elf32_sparc"
  5156. ;;
  5157. esac
  5158. ;;
  5159. *64-bit*)
  5160. case $host in
  5161. x86_64-*kfreebsd*-gnu)
  5162. LD="${LD-ld} -m elf_x86_64_fbsd"
  5163. ;;
  5164. x86_64-*linux*)
  5165. LD="${LD-ld} -m elf_x86_64"
  5166. ;;
  5167. powerpcle-*linux*)
  5168. LD="${LD-ld} -m elf64lppc"
  5169. ;;
  5170. powerpc-*linux*)
  5171. LD="${LD-ld} -m elf64ppc"
  5172. ;;
  5173. s390*-*linux*|s390*-*tpf*)
  5174. LD="${LD-ld} -m elf64_s390"
  5175. ;;
  5176. sparc*-*linux*)
  5177. LD="${LD-ld} -m elf64_sparc"
  5178. ;;
  5179. esac
  5180. ;;
  5181. esac
  5182. fi
  5183. rm -rf conftest*
  5184. ;;
  5185. *-*-sco3.2v5*)
  5186. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5187. SAVE_CFLAGS="$CFLAGS"
  5188. CFLAGS="$CFLAGS -belf"
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5190. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5191. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5192. $as_echo_n "(cached) " >&6
  5193. else
  5194. ac_ext=c
  5195. ac_cpp='$CPP $CPPFLAGS'
  5196. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5197. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5198. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5199. if test x$gcc_no_link = xyes; then
  5200. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5201. fi
  5202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5203. /* end confdefs.h. */
  5204. int
  5205. main ()
  5206. {
  5207. ;
  5208. return 0;
  5209. }
  5210. _ACEOF
  5211. if ac_fn_c_try_link "$LINENO"; then :
  5212. lt_cv_cc_needs_belf=yes
  5213. else
  5214. lt_cv_cc_needs_belf=no
  5215. fi
  5216. rm -f core conftest.err conftest.$ac_objext \
  5217. conftest$ac_exeext conftest.$ac_ext
  5218. ac_ext=c
  5219. ac_cpp='$CPP $CPPFLAGS'
  5220. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5221. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5222. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5223. fi
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5225. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5226. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5227. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5228. CFLAGS="$SAVE_CFLAGS"
  5229. fi
  5230. ;;
  5231. sparc*-*solaris*)
  5232. # Find out which ABI we are using.
  5233. echo 'int i;' > conftest.$ac_ext
  5234. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5235. (eval $ac_compile) 2>&5
  5236. ac_status=$?
  5237. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5238. test $ac_status = 0; }; then
  5239. case `/usr/bin/file conftest.o` in
  5240. *64-bit*)
  5241. case $lt_cv_prog_gnu_ld in
  5242. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5243. *)
  5244. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5245. LD="${LD-ld} -64"
  5246. fi
  5247. ;;
  5248. esac
  5249. ;;
  5250. esac
  5251. fi
  5252. rm -rf conftest*
  5253. ;;
  5254. esac
  5255. need_locks="$enable_libtool_lock"
  5256. case $host_os in
  5257. rhapsody* | darwin*)
  5258. if test -n "$ac_tool_prefix"; then
  5259. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5260. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5262. $as_echo_n "checking for $ac_word... " >&6; }
  5263. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5264. $as_echo_n "(cached) " >&6
  5265. else
  5266. if test -n "$DSYMUTIL"; then
  5267. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5268. else
  5269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5270. for as_dir in $PATH
  5271. do
  5272. IFS=$as_save_IFS
  5273. test -z "$as_dir" && as_dir=.
  5274. for ac_exec_ext in '' $ac_executable_extensions; do
  5275. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5276. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5277. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5278. break 2
  5279. fi
  5280. done
  5281. done
  5282. IFS=$as_save_IFS
  5283. fi
  5284. fi
  5285. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5286. if test -n "$DSYMUTIL"; then
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5288. $as_echo "$DSYMUTIL" >&6; }
  5289. else
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5291. $as_echo "no" >&6; }
  5292. fi
  5293. fi
  5294. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5295. ac_ct_DSYMUTIL=$DSYMUTIL
  5296. # Extract the first word of "dsymutil", so it can be a program name with args.
  5297. set dummy dsymutil; ac_word=$2
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5299. $as_echo_n "checking for $ac_word... " >&6; }
  5300. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5301. $as_echo_n "(cached) " >&6
  5302. else
  5303. if test -n "$ac_ct_DSYMUTIL"; then
  5304. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5305. else
  5306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5307. for as_dir in $PATH
  5308. do
  5309. IFS=$as_save_IFS
  5310. test -z "$as_dir" && as_dir=.
  5311. for ac_exec_ext in '' $ac_executable_extensions; do
  5312. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5313. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5315. break 2
  5316. fi
  5317. done
  5318. done
  5319. IFS=$as_save_IFS
  5320. fi
  5321. fi
  5322. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5323. if test -n "$ac_ct_DSYMUTIL"; then
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5325. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5326. else
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5328. $as_echo "no" >&6; }
  5329. fi
  5330. if test "x$ac_ct_DSYMUTIL" = x; then
  5331. DSYMUTIL=":"
  5332. else
  5333. case $cross_compiling:$ac_tool_warned in
  5334. yes:)
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5336. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5337. ac_tool_warned=yes ;;
  5338. esac
  5339. DSYMUTIL=$ac_ct_DSYMUTIL
  5340. fi
  5341. else
  5342. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5343. fi
  5344. if test -n "$ac_tool_prefix"; then
  5345. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5346. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5348. $as_echo_n "checking for $ac_word... " >&6; }
  5349. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5350. $as_echo_n "(cached) " >&6
  5351. else
  5352. if test -n "$NMEDIT"; then
  5353. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5354. else
  5355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5356. for as_dir in $PATH
  5357. do
  5358. IFS=$as_save_IFS
  5359. test -z "$as_dir" && as_dir=.
  5360. for ac_exec_ext in '' $ac_executable_extensions; do
  5361. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5362. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5363. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5364. break 2
  5365. fi
  5366. done
  5367. done
  5368. IFS=$as_save_IFS
  5369. fi
  5370. fi
  5371. NMEDIT=$ac_cv_prog_NMEDIT
  5372. if test -n "$NMEDIT"; then
  5373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5374. $as_echo "$NMEDIT" >&6; }
  5375. else
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5377. $as_echo "no" >&6; }
  5378. fi
  5379. fi
  5380. if test -z "$ac_cv_prog_NMEDIT"; then
  5381. ac_ct_NMEDIT=$NMEDIT
  5382. # Extract the first word of "nmedit", so it can be a program name with args.
  5383. set dummy nmedit; ac_word=$2
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5385. $as_echo_n "checking for $ac_word... " >&6; }
  5386. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5387. $as_echo_n "(cached) " >&6
  5388. else
  5389. if test -n "$ac_ct_NMEDIT"; then
  5390. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5391. else
  5392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5393. for as_dir in $PATH
  5394. do
  5395. IFS=$as_save_IFS
  5396. test -z "$as_dir" && as_dir=.
  5397. for ac_exec_ext in '' $ac_executable_extensions; do
  5398. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5399. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5401. break 2
  5402. fi
  5403. done
  5404. done
  5405. IFS=$as_save_IFS
  5406. fi
  5407. fi
  5408. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5409. if test -n "$ac_ct_NMEDIT"; then
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5411. $as_echo "$ac_ct_NMEDIT" >&6; }
  5412. else
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5414. $as_echo "no" >&6; }
  5415. fi
  5416. if test "x$ac_ct_NMEDIT" = x; then
  5417. NMEDIT=":"
  5418. else
  5419. case $cross_compiling:$ac_tool_warned in
  5420. yes:)
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5422. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5423. ac_tool_warned=yes ;;
  5424. esac
  5425. NMEDIT=$ac_ct_NMEDIT
  5426. fi
  5427. else
  5428. NMEDIT="$ac_cv_prog_NMEDIT"
  5429. fi
  5430. if test -n "$ac_tool_prefix"; then
  5431. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5432. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5434. $as_echo_n "checking for $ac_word... " >&6; }
  5435. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5436. $as_echo_n "(cached) " >&6
  5437. else
  5438. if test -n "$LIPO"; then
  5439. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5440. else
  5441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5442. for as_dir in $PATH
  5443. do
  5444. IFS=$as_save_IFS
  5445. test -z "$as_dir" && as_dir=.
  5446. for ac_exec_ext in '' $ac_executable_extensions; do
  5447. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5448. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5449. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5450. break 2
  5451. fi
  5452. done
  5453. done
  5454. IFS=$as_save_IFS
  5455. fi
  5456. fi
  5457. LIPO=$ac_cv_prog_LIPO
  5458. if test -n "$LIPO"; then
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5460. $as_echo "$LIPO" >&6; }
  5461. else
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5463. $as_echo "no" >&6; }
  5464. fi
  5465. fi
  5466. if test -z "$ac_cv_prog_LIPO"; then
  5467. ac_ct_LIPO=$LIPO
  5468. # Extract the first word of "lipo", so it can be a program name with args.
  5469. set dummy lipo; ac_word=$2
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5471. $as_echo_n "checking for $ac_word... " >&6; }
  5472. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5473. $as_echo_n "(cached) " >&6
  5474. else
  5475. if test -n "$ac_ct_LIPO"; then
  5476. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5477. else
  5478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5479. for as_dir in $PATH
  5480. do
  5481. IFS=$as_save_IFS
  5482. test -z "$as_dir" && as_dir=.
  5483. for ac_exec_ext in '' $ac_executable_extensions; do
  5484. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5485. ac_cv_prog_ac_ct_LIPO="lipo"
  5486. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5487. break 2
  5488. fi
  5489. done
  5490. done
  5491. IFS=$as_save_IFS
  5492. fi
  5493. fi
  5494. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5495. if test -n "$ac_ct_LIPO"; then
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5497. $as_echo "$ac_ct_LIPO" >&6; }
  5498. else
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5500. $as_echo "no" >&6; }
  5501. fi
  5502. if test "x$ac_ct_LIPO" = x; then
  5503. LIPO=":"
  5504. else
  5505. case $cross_compiling:$ac_tool_warned in
  5506. yes:)
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5508. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5509. ac_tool_warned=yes ;;
  5510. esac
  5511. LIPO=$ac_ct_LIPO
  5512. fi
  5513. else
  5514. LIPO="$ac_cv_prog_LIPO"
  5515. fi
  5516. if test -n "$ac_tool_prefix"; then
  5517. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5518. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5520. $as_echo_n "checking for $ac_word... " >&6; }
  5521. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5522. $as_echo_n "(cached) " >&6
  5523. else
  5524. if test -n "$OTOOL"; then
  5525. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5526. else
  5527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5528. for as_dir in $PATH
  5529. do
  5530. IFS=$as_save_IFS
  5531. test -z "$as_dir" && as_dir=.
  5532. for ac_exec_ext in '' $ac_executable_extensions; do
  5533. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5534. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5536. break 2
  5537. fi
  5538. done
  5539. done
  5540. IFS=$as_save_IFS
  5541. fi
  5542. fi
  5543. OTOOL=$ac_cv_prog_OTOOL
  5544. if test -n "$OTOOL"; then
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5546. $as_echo "$OTOOL" >&6; }
  5547. else
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5549. $as_echo "no" >&6; }
  5550. fi
  5551. fi
  5552. if test -z "$ac_cv_prog_OTOOL"; then
  5553. ac_ct_OTOOL=$OTOOL
  5554. # Extract the first word of "otool", so it can be a program name with args.
  5555. set dummy otool; ac_word=$2
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5557. $as_echo_n "checking for $ac_word... " >&6; }
  5558. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5559. $as_echo_n "(cached) " >&6
  5560. else
  5561. if test -n "$ac_ct_OTOOL"; then
  5562. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5563. else
  5564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5565. for as_dir in $PATH
  5566. do
  5567. IFS=$as_save_IFS
  5568. test -z "$as_dir" && as_dir=.
  5569. for ac_exec_ext in '' $ac_executable_extensions; do
  5570. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5571. ac_cv_prog_ac_ct_OTOOL="otool"
  5572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5573. break 2
  5574. fi
  5575. done
  5576. done
  5577. IFS=$as_save_IFS
  5578. fi
  5579. fi
  5580. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5581. if test -n "$ac_ct_OTOOL"; then
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5583. $as_echo "$ac_ct_OTOOL" >&6; }
  5584. else
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5586. $as_echo "no" >&6; }
  5587. fi
  5588. if test "x$ac_ct_OTOOL" = x; then
  5589. OTOOL=":"
  5590. else
  5591. case $cross_compiling:$ac_tool_warned in
  5592. yes:)
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5594. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5595. ac_tool_warned=yes ;;
  5596. esac
  5597. OTOOL=$ac_ct_OTOOL
  5598. fi
  5599. else
  5600. OTOOL="$ac_cv_prog_OTOOL"
  5601. fi
  5602. if test -n "$ac_tool_prefix"; then
  5603. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5604. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5606. $as_echo_n "checking for $ac_word... " >&6; }
  5607. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  5608. $as_echo_n "(cached) " >&6
  5609. else
  5610. if test -n "$OTOOL64"; then
  5611. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5612. else
  5613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5614. for as_dir in $PATH
  5615. do
  5616. IFS=$as_save_IFS
  5617. test -z "$as_dir" && as_dir=.
  5618. for ac_exec_ext in '' $ac_executable_extensions; do
  5619. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5620. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5622. break 2
  5623. fi
  5624. done
  5625. done
  5626. IFS=$as_save_IFS
  5627. fi
  5628. fi
  5629. OTOOL64=$ac_cv_prog_OTOOL64
  5630. if test -n "$OTOOL64"; then
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5632. $as_echo "$OTOOL64" >&6; }
  5633. else
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5635. $as_echo "no" >&6; }
  5636. fi
  5637. fi
  5638. if test -z "$ac_cv_prog_OTOOL64"; then
  5639. ac_ct_OTOOL64=$OTOOL64
  5640. # Extract the first word of "otool64", so it can be a program name with args.
  5641. set dummy otool64; ac_word=$2
  5642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5643. $as_echo_n "checking for $ac_word... " >&6; }
  5644. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  5645. $as_echo_n "(cached) " >&6
  5646. else
  5647. if test -n "$ac_ct_OTOOL64"; then
  5648. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5649. else
  5650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5651. for as_dir in $PATH
  5652. do
  5653. IFS=$as_save_IFS
  5654. test -z "$as_dir" && as_dir=.
  5655. for ac_exec_ext in '' $ac_executable_extensions; do
  5656. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5657. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5659. break 2
  5660. fi
  5661. done
  5662. done
  5663. IFS=$as_save_IFS
  5664. fi
  5665. fi
  5666. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5667. if test -n "$ac_ct_OTOOL64"; then
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5669. $as_echo "$ac_ct_OTOOL64" >&6; }
  5670. else
  5671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5672. $as_echo "no" >&6; }
  5673. fi
  5674. if test "x$ac_ct_OTOOL64" = x; then
  5675. OTOOL64=":"
  5676. else
  5677. case $cross_compiling:$ac_tool_warned in
  5678. yes:)
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5680. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5681. ac_tool_warned=yes ;;
  5682. esac
  5683. OTOOL64=$ac_ct_OTOOL64
  5684. fi
  5685. else
  5686. OTOOL64="$ac_cv_prog_OTOOL64"
  5687. fi
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5689. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5690. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  5691. $as_echo_n "(cached) " >&6
  5692. else
  5693. lt_cv_apple_cc_single_mod=no
  5694. if test -z "${LT_MULTI_MODULE}"; then
  5695. # By default we will add the -single_module flag. You can override
  5696. # by either setting the environment variable LT_MULTI_MODULE
  5697. # non-empty at configure time, or by adding -multi_module to the
  5698. # link flags.
  5699. rm -rf libconftest.dylib*
  5700. echo "int foo(void){return 1;}" > conftest.c
  5701. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5702. -dynamiclib -Wl,-single_module conftest.c" >&5
  5703. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5704. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5705. _lt_result=$?
  5706. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5707. lt_cv_apple_cc_single_mod=yes
  5708. else
  5709. cat conftest.err >&5
  5710. fi
  5711. rm -rf libconftest.dylib*
  5712. rm -f conftest.*
  5713. fi
  5714. fi
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5716. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5718. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5719. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  5720. $as_echo_n "(cached) " >&6
  5721. else
  5722. lt_cv_ld_exported_symbols_list=no
  5723. save_LDFLAGS=$LDFLAGS
  5724. echo "_main" > conftest.sym
  5725. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5726. if test x$gcc_no_link = xyes; then
  5727. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5728. fi
  5729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5730. /* end confdefs.h. */
  5731. int
  5732. main ()
  5733. {
  5734. ;
  5735. return 0;
  5736. }
  5737. _ACEOF
  5738. if ac_fn_c_try_link "$LINENO"; then :
  5739. lt_cv_ld_exported_symbols_list=yes
  5740. else
  5741. lt_cv_ld_exported_symbols_list=no
  5742. fi
  5743. rm -f core conftest.err conftest.$ac_objext \
  5744. conftest$ac_exeext conftest.$ac_ext
  5745. LDFLAGS="$save_LDFLAGS"
  5746. fi
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5748. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5750. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5751. if test "${lt_cv_ld_force_load+set}" = set; then :
  5752. $as_echo_n "(cached) " >&6
  5753. else
  5754. lt_cv_ld_force_load=no
  5755. cat > conftest.c << _LT_EOF
  5756. int forced_loaded() { return 2;}
  5757. _LT_EOF
  5758. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5759. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5760. echo "$AR cru libconftest.a conftest.o" >&5
  5761. $AR cru libconftest.a conftest.o 2>&5
  5762. cat > conftest.c << _LT_EOF
  5763. int main() { return 0;}
  5764. _LT_EOF
  5765. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5766. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5767. _lt_result=$?
  5768. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  5769. lt_cv_ld_force_load=yes
  5770. else
  5771. cat conftest.err >&5
  5772. fi
  5773. rm -f conftest.err libconftest.a conftest conftest.c
  5774. rm -rf conftest.dSYM
  5775. fi
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5777. $as_echo "$lt_cv_ld_force_load" >&6; }
  5778. case $host_os in
  5779. rhapsody* | darwin1.[012])
  5780. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5781. darwin1.*)
  5782. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5783. darwin*) # darwin 5.x on
  5784. # if running on 10.5 or later, the deployment target defaults
  5785. # to the OS version, if on x86, and 10.4, the deployment
  5786. # target defaults to 10.4. Don't you love it?
  5787. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5788. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5789. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5790. 10.[012][,.]*)
  5791. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5792. 10.*)
  5793. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5794. esac
  5795. ;;
  5796. esac
  5797. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5798. _lt_dar_single_mod='$single_module'
  5799. fi
  5800. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5801. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5802. else
  5803. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5804. fi
  5805. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  5806. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5807. else
  5808. _lt_dsymutil=
  5809. fi
  5810. ;;
  5811. esac
  5812. ac_ext=c
  5813. ac_cpp='$CPP $CPPFLAGS'
  5814. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5815. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5816. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5818. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5819. # On Suns, sometimes $CPP names a directory.
  5820. if test -n "$CPP" && test -d "$CPP"; then
  5821. CPP=
  5822. fi
  5823. if test -z "$CPP"; then
  5824. if test "${ac_cv_prog_CPP+set}" = set; then :
  5825. $as_echo_n "(cached) " >&6
  5826. else
  5827. # Double quotes because CPP needs to be expanded
  5828. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5829. do
  5830. ac_preproc_ok=false
  5831. for ac_c_preproc_warn_flag in '' yes
  5832. do
  5833. # Use a header file that comes with gcc, so configuring glibc
  5834. # with a fresh cross-compiler works.
  5835. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5836. # <limits.h> exists even on freestanding compilers.
  5837. # On the NeXT, cc -E runs the code through the compiler's parser,
  5838. # not just through cpp. "Syntax error" is here to catch this case.
  5839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5840. /* end confdefs.h. */
  5841. #ifdef __STDC__
  5842. # include <limits.h>
  5843. #else
  5844. # include <assert.h>
  5845. #endif
  5846. Syntax error
  5847. _ACEOF
  5848. if ac_fn_c_try_cpp "$LINENO"; then :
  5849. else
  5850. # Broken: fails on valid input.
  5851. continue
  5852. fi
  5853. rm -f conftest.err conftest.$ac_ext
  5854. # OK, works on sane cases. Now check whether nonexistent headers
  5855. # can be detected and how.
  5856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5857. /* end confdefs.h. */
  5858. #include <ac_nonexistent.h>
  5859. _ACEOF
  5860. if ac_fn_c_try_cpp "$LINENO"; then :
  5861. # Broken: success on invalid input.
  5862. continue
  5863. else
  5864. # Passes both tests.
  5865. ac_preproc_ok=:
  5866. break
  5867. fi
  5868. rm -f conftest.err conftest.$ac_ext
  5869. done
  5870. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5871. rm -f conftest.err conftest.$ac_ext
  5872. if $ac_preproc_ok; then :
  5873. break
  5874. fi
  5875. done
  5876. ac_cv_prog_CPP=$CPP
  5877. fi
  5878. CPP=$ac_cv_prog_CPP
  5879. else
  5880. ac_cv_prog_CPP=$CPP
  5881. fi
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5883. $as_echo "$CPP" >&6; }
  5884. ac_preproc_ok=false
  5885. for ac_c_preproc_warn_flag in '' yes
  5886. do
  5887. # Use a header file that comes with gcc, so configuring glibc
  5888. # with a fresh cross-compiler works.
  5889. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5890. # <limits.h> exists even on freestanding compilers.
  5891. # On the NeXT, cc -E runs the code through the compiler's parser,
  5892. # not just through cpp. "Syntax error" is here to catch this case.
  5893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5894. /* end confdefs.h. */
  5895. #ifdef __STDC__
  5896. # include <limits.h>
  5897. #else
  5898. # include <assert.h>
  5899. #endif
  5900. Syntax error
  5901. _ACEOF
  5902. if ac_fn_c_try_cpp "$LINENO"; then :
  5903. else
  5904. # Broken: fails on valid input.
  5905. continue
  5906. fi
  5907. rm -f conftest.err conftest.$ac_ext
  5908. # OK, works on sane cases. Now check whether nonexistent headers
  5909. # can be detected and how.
  5910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5911. /* end confdefs.h. */
  5912. #include <ac_nonexistent.h>
  5913. _ACEOF
  5914. if ac_fn_c_try_cpp "$LINENO"; then :
  5915. # Broken: success on invalid input.
  5916. continue
  5917. else
  5918. # Passes both tests.
  5919. ac_preproc_ok=:
  5920. break
  5921. fi
  5922. rm -f conftest.err conftest.$ac_ext
  5923. done
  5924. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5925. rm -f conftest.err conftest.$ac_ext
  5926. if $ac_preproc_ok; then :
  5927. else
  5928. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5929. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5930. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  5931. See \`config.log' for more details." "$LINENO" 5; }
  5932. fi
  5933. ac_ext=c
  5934. ac_cpp='$CPP $CPPFLAGS'
  5935. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5936. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5937. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5939. $as_echo_n "checking for ANSI C header files... " >&6; }
  5940. if test "${ac_cv_header_stdc+set}" = set; then :
  5941. $as_echo_n "(cached) " >&6
  5942. else
  5943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5944. /* end confdefs.h. */
  5945. #include <stdlib.h>
  5946. #include <stdarg.h>
  5947. #include <string.h>
  5948. #include <float.h>
  5949. int
  5950. main ()
  5951. {
  5952. ;
  5953. return 0;
  5954. }
  5955. _ACEOF
  5956. if ac_fn_c_try_compile "$LINENO"; then :
  5957. ac_cv_header_stdc=yes
  5958. else
  5959. ac_cv_header_stdc=no
  5960. fi
  5961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5962. if test $ac_cv_header_stdc = yes; then
  5963. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5965. /* end confdefs.h. */
  5966. #include <string.h>
  5967. _ACEOF
  5968. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5969. $EGREP "memchr" >/dev/null 2>&1; then :
  5970. else
  5971. ac_cv_header_stdc=no
  5972. fi
  5973. rm -f conftest*
  5974. fi
  5975. if test $ac_cv_header_stdc = yes; then
  5976. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5978. /* end confdefs.h. */
  5979. #include <stdlib.h>
  5980. _ACEOF
  5981. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5982. $EGREP "free" >/dev/null 2>&1; then :
  5983. else
  5984. ac_cv_header_stdc=no
  5985. fi
  5986. rm -f conftest*
  5987. fi
  5988. if test $ac_cv_header_stdc = yes; then
  5989. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5990. if test "$cross_compiling" = yes; then :
  5991. :
  5992. else
  5993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5994. /* end confdefs.h. */
  5995. #include <ctype.h>
  5996. #include <stdlib.h>
  5997. #if ((' ' & 0x0FF) == 0x020)
  5998. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5999. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6000. #else
  6001. # define ISLOWER(c) \
  6002. (('a' <= (c) && (c) <= 'i') \
  6003. || ('j' <= (c) && (c) <= 'r') \
  6004. || ('s' <= (c) && (c) <= 'z'))
  6005. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6006. #endif
  6007. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6008. int
  6009. main ()
  6010. {
  6011. int i;
  6012. for (i = 0; i < 256; i++)
  6013. if (XOR (islower (i), ISLOWER (i))
  6014. || toupper (i) != TOUPPER (i))
  6015. return 2;
  6016. return 0;
  6017. }
  6018. _ACEOF
  6019. if ac_fn_c_try_run "$LINENO"; then :
  6020. else
  6021. ac_cv_header_stdc=no
  6022. fi
  6023. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6024. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6025. fi
  6026. fi
  6027. fi
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6029. $as_echo "$ac_cv_header_stdc" >&6; }
  6030. if test $ac_cv_header_stdc = yes; then
  6031. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6032. fi
  6033. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6034. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6035. inttypes.h stdint.h unistd.h
  6036. do :
  6037. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6038. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6039. "
  6040. eval as_val=\$$as_ac_Header
  6041. if test "x$as_val" = x""yes; then :
  6042. cat >>confdefs.h <<_ACEOF
  6043. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6044. _ACEOF
  6045. fi
  6046. done
  6047. for ac_header in dlfcn.h
  6048. do :
  6049. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6050. "
  6051. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6052. cat >>confdefs.h <<_ACEOF
  6053. #define HAVE_DLFCN_H 1
  6054. _ACEOF
  6055. fi
  6056. done
  6057. # Set options
  6058. enable_dlopen=no
  6059. enable_win32_dll=no
  6060. # Check whether --enable-shared was given.
  6061. if test "${enable_shared+set}" = set; then :
  6062. enableval=$enable_shared; p=${PACKAGE-default}
  6063. case $enableval in
  6064. yes) enable_shared=yes ;;
  6065. no) enable_shared=no ;;
  6066. *)
  6067. enable_shared=no
  6068. # Look at the argument we got. We use all the common list separators.
  6069. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6070. for pkg in $enableval; do
  6071. IFS="$lt_save_ifs"
  6072. if test "X$pkg" = "X$p"; then
  6073. enable_shared=yes
  6074. fi
  6075. done
  6076. IFS="$lt_save_ifs"
  6077. ;;
  6078. esac
  6079. else
  6080. enable_shared=yes
  6081. fi
  6082. # Check whether --enable-static was given.
  6083. if test "${enable_static+set}" = set; then :
  6084. enableval=$enable_static; p=${PACKAGE-default}
  6085. case $enableval in
  6086. yes) enable_static=yes ;;
  6087. no) enable_static=no ;;
  6088. *)
  6089. enable_static=no
  6090. # Look at the argument we got. We use all the common list separators.
  6091. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6092. for pkg in $enableval; do
  6093. IFS="$lt_save_ifs"
  6094. if test "X$pkg" = "X$p"; then
  6095. enable_static=yes
  6096. fi
  6097. done
  6098. IFS="$lt_save_ifs"
  6099. ;;
  6100. esac
  6101. else
  6102. enable_static=yes
  6103. fi
  6104. # Check whether --with-pic was given.
  6105. if test "${with_pic+set}" = set; then :
  6106. withval=$with_pic; pic_mode="$withval"
  6107. else
  6108. pic_mode=default
  6109. fi
  6110. test -z "$pic_mode" && pic_mode=default
  6111. # Check whether --enable-fast-install was given.
  6112. if test "${enable_fast_install+set}" = set; then :
  6113. enableval=$enable_fast_install; p=${PACKAGE-default}
  6114. case $enableval in
  6115. yes) enable_fast_install=yes ;;
  6116. no) enable_fast_install=no ;;
  6117. *)
  6118. enable_fast_install=no
  6119. # Look at the argument we got. We use all the common list separators.
  6120. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6121. for pkg in $enableval; do
  6122. IFS="$lt_save_ifs"
  6123. if test "X$pkg" = "X$p"; then
  6124. enable_fast_install=yes
  6125. fi
  6126. done
  6127. IFS="$lt_save_ifs"
  6128. ;;
  6129. esac
  6130. else
  6131. enable_fast_install=yes
  6132. fi
  6133. # This can be used to rebuild libtool when needed
  6134. LIBTOOL_DEPS="$ltmain"
  6135. # Always use our own libtool.
  6136. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6137. test -z "$LN_S" && LN_S="ln -s"
  6138. if test -n "${ZSH_VERSION+set}" ; then
  6139. setopt NO_GLOB_SUBST
  6140. fi
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6142. $as_echo_n "checking for objdir... " >&6; }
  6143. if test "${lt_cv_objdir+set}" = set; then :
  6144. $as_echo_n "(cached) " >&6
  6145. else
  6146. rm -f .libs 2>/dev/null
  6147. mkdir .libs 2>/dev/null
  6148. if test -d .libs; then
  6149. lt_cv_objdir=.libs
  6150. else
  6151. # MS-DOS does not allow filenames that begin with a dot.
  6152. lt_cv_objdir=_libs
  6153. fi
  6154. rmdir .libs 2>/dev/null
  6155. fi
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6157. $as_echo "$lt_cv_objdir" >&6; }
  6158. objdir=$lt_cv_objdir
  6159. cat >>confdefs.h <<_ACEOF
  6160. #define LT_OBJDIR "$lt_cv_objdir/"
  6161. _ACEOF
  6162. case $host_os in
  6163. aix3*)
  6164. # AIX sometimes has problems with the GCC collect2 program. For some
  6165. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6166. # vanish in a puff of smoke.
  6167. if test "X${COLLECT_NAMES+set}" != Xset; then
  6168. COLLECT_NAMES=
  6169. export COLLECT_NAMES
  6170. fi
  6171. ;;
  6172. esac
  6173. # Global variables:
  6174. ofile=libtool
  6175. can_build_shared=yes
  6176. # All known linkers require a `.a' archive for static linking (except MSVC,
  6177. # which needs '.lib').
  6178. libext=a
  6179. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6180. old_CC="$CC"
  6181. old_CFLAGS="$CFLAGS"
  6182. # Set sane defaults for various variables
  6183. test -z "$CC" && CC=cc
  6184. test -z "$LTCC" && LTCC=$CC
  6185. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6186. test -z "$LD" && LD=ld
  6187. test -z "$ac_objext" && ac_objext=o
  6188. for cc_temp in $compiler""; do
  6189. case $cc_temp in
  6190. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6191. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6192. \-*) ;;
  6193. *) break;;
  6194. esac
  6195. done
  6196. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6197. # Only perform the check for file, if the check method requires it
  6198. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6199. case $deplibs_check_method in
  6200. file_magic*)
  6201. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6203. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6204. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6205. $as_echo_n "(cached) " >&6
  6206. else
  6207. case $MAGIC_CMD in
  6208. [\\/*] | ?:[\\/]*)
  6209. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6210. ;;
  6211. *)
  6212. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6213. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6214. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6215. for ac_dir in $ac_dummy; do
  6216. IFS="$lt_save_ifs"
  6217. test -z "$ac_dir" && ac_dir=.
  6218. if test -f $ac_dir/${ac_tool_prefix}file; then
  6219. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6220. if test -n "$file_magic_test_file"; then
  6221. case $deplibs_check_method in
  6222. "file_magic "*)
  6223. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6224. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6225. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6226. $EGREP "$file_magic_regex" > /dev/null; then
  6227. :
  6228. else
  6229. cat <<_LT_EOF 1>&2
  6230. *** Warning: the command libtool uses to detect shared libraries,
  6231. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6232. *** The result is that libtool may fail to recognize shared libraries
  6233. *** as such. This will affect the creation of libtool libraries that
  6234. *** depend on shared libraries, but programs linked with such libtool
  6235. *** libraries will work regardless of this problem. Nevertheless, you
  6236. *** may want to report the problem to your system manager and/or to
  6237. *** bug-libtool@gnu.org
  6238. _LT_EOF
  6239. fi ;;
  6240. esac
  6241. fi
  6242. break
  6243. fi
  6244. done
  6245. IFS="$lt_save_ifs"
  6246. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6247. ;;
  6248. esac
  6249. fi
  6250. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6251. if test -n "$MAGIC_CMD"; then
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6253. $as_echo "$MAGIC_CMD" >&6; }
  6254. else
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6256. $as_echo "no" >&6; }
  6257. fi
  6258. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6259. if test -n "$ac_tool_prefix"; then
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6261. $as_echo_n "checking for file... " >&6; }
  6262. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6263. $as_echo_n "(cached) " >&6
  6264. else
  6265. case $MAGIC_CMD in
  6266. [\\/*] | ?:[\\/]*)
  6267. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6268. ;;
  6269. *)
  6270. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6271. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6272. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6273. for ac_dir in $ac_dummy; do
  6274. IFS="$lt_save_ifs"
  6275. test -z "$ac_dir" && ac_dir=.
  6276. if test -f $ac_dir/file; then
  6277. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6278. if test -n "$file_magic_test_file"; then
  6279. case $deplibs_check_method in
  6280. "file_magic "*)
  6281. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6282. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6283. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6284. $EGREP "$file_magic_regex" > /dev/null; then
  6285. :
  6286. else
  6287. cat <<_LT_EOF 1>&2
  6288. *** Warning: the command libtool uses to detect shared libraries,
  6289. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6290. *** The result is that libtool may fail to recognize shared libraries
  6291. *** as such. This will affect the creation of libtool libraries that
  6292. *** depend on shared libraries, but programs linked with such libtool
  6293. *** libraries will work regardless of this problem. Nevertheless, you
  6294. *** may want to report the problem to your system manager and/or to
  6295. *** bug-libtool@gnu.org
  6296. _LT_EOF
  6297. fi ;;
  6298. esac
  6299. fi
  6300. break
  6301. fi
  6302. done
  6303. IFS="$lt_save_ifs"
  6304. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6305. ;;
  6306. esac
  6307. fi
  6308. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6309. if test -n "$MAGIC_CMD"; then
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6311. $as_echo "$MAGIC_CMD" >&6; }
  6312. else
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6314. $as_echo "no" >&6; }
  6315. fi
  6316. else
  6317. MAGIC_CMD=:
  6318. fi
  6319. fi
  6320. fi
  6321. ;;
  6322. esac
  6323. # Use C for the default configuration in the libtool script
  6324. lt_save_CC="$CC"
  6325. ac_ext=c
  6326. ac_cpp='$CPP $CPPFLAGS'
  6327. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6328. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6329. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6330. # Source file extension for C test sources.
  6331. ac_ext=c
  6332. # Object file extension for compiled C test sources.
  6333. objext=o
  6334. objext=$objext
  6335. # Code to be used in simple compile tests
  6336. lt_simple_compile_test_code="int some_variable = 0;"
  6337. # Code to be used in simple link tests
  6338. lt_simple_link_test_code='int main(){return(0);}'
  6339. # If no C compiler was specified, use CC.
  6340. LTCC=${LTCC-"$CC"}
  6341. # If no C compiler flags were specified, use CFLAGS.
  6342. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6343. # Allow CC to be a program name with arguments.
  6344. compiler=$CC
  6345. # Save the default compiler, since it gets overwritten when the other
  6346. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6347. compiler_DEFAULT=$CC
  6348. # save warnings/boilerplate of simple test code
  6349. ac_outfile=conftest.$ac_objext
  6350. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6351. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6352. _lt_compiler_boilerplate=`cat conftest.err`
  6353. $RM conftest*
  6354. ac_outfile=conftest.$ac_objext
  6355. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6356. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6357. _lt_linker_boilerplate=`cat conftest.err`
  6358. $RM -r conftest*
  6359. ## CAVEAT EMPTOR:
  6360. ## There is no encapsulation within the following macros, do not change
  6361. ## the running order or otherwise move them around unless you know exactly
  6362. ## what you are doing...
  6363. if test -n "$compiler"; then
  6364. lt_prog_compiler_no_builtin_flag=
  6365. if test "$GCC" = yes; then
  6366. case $cc_basename in
  6367. nvcc*)
  6368. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6369. *)
  6370. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6371. esac
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6373. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6374. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6375. $as_echo_n "(cached) " >&6
  6376. else
  6377. lt_cv_prog_compiler_rtti_exceptions=no
  6378. ac_outfile=conftest.$ac_objext
  6379. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6380. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6381. # Insert the option either (1) after the last *FLAGS variable, or
  6382. # (2) before a word containing "conftest.", or (3) at the end.
  6383. # Note that $ac_compile itself does not contain backslashes and begins
  6384. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6385. # The option is referenced via a variable to avoid confusing sed.
  6386. lt_compile=`echo "$ac_compile" | $SED \
  6387. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6388. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6389. -e 's:$: $lt_compiler_flag:'`
  6390. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6391. (eval "$lt_compile" 2>conftest.err)
  6392. ac_status=$?
  6393. cat conftest.err >&5
  6394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6395. if (exit $ac_status) && test -s "$ac_outfile"; then
  6396. # The compiler can only warn and ignore the option if not recognized
  6397. # So say no if there are warnings other than the usual output.
  6398. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6399. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6400. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6401. lt_cv_prog_compiler_rtti_exceptions=yes
  6402. fi
  6403. fi
  6404. $RM conftest*
  6405. fi
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6407. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6408. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6409. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6410. else
  6411. :
  6412. fi
  6413. fi
  6414. lt_prog_compiler_wl=
  6415. lt_prog_compiler_pic=
  6416. lt_prog_compiler_static=
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6418. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6419. if test "$GCC" = yes; then
  6420. lt_prog_compiler_wl='-Wl,'
  6421. lt_prog_compiler_static='-static'
  6422. case $host_os in
  6423. aix*)
  6424. # All AIX code is PIC.
  6425. if test "$host_cpu" = ia64; then
  6426. # AIX 5 now supports IA64 processor
  6427. lt_prog_compiler_static='-Bstatic'
  6428. fi
  6429. lt_prog_compiler_pic='-fPIC'
  6430. ;;
  6431. amigaos*)
  6432. case $host_cpu in
  6433. powerpc)
  6434. # see comment about AmigaOS4 .so support
  6435. lt_prog_compiler_pic='-fPIC'
  6436. ;;
  6437. m68k)
  6438. # FIXME: we need at least 68020 code to build shared libraries, but
  6439. # adding the `-m68020' flag to GCC prevents building anything better,
  6440. # like `-m68040'.
  6441. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6442. ;;
  6443. esac
  6444. ;;
  6445. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6446. # PIC is the default for these OSes.
  6447. ;;
  6448. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6449. # This hack is so that the source file can tell whether it is being
  6450. # built for inclusion in a dll (and should export symbols for example).
  6451. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6452. # (--disable-auto-import) libraries
  6453. lt_prog_compiler_pic='-DDLL_EXPORT'
  6454. ;;
  6455. darwin* | rhapsody*)
  6456. # PIC is the default on this platform
  6457. # Common symbols not allowed in MH_DYLIB files
  6458. lt_prog_compiler_pic='-fno-common'
  6459. ;;
  6460. haiku*)
  6461. # PIC is the default for Haiku.
  6462. # The "-static" flag exists, but is broken.
  6463. lt_prog_compiler_static=
  6464. ;;
  6465. hpux*)
  6466. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6467. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6468. # sets the default TLS model and affects inlining.
  6469. case $host_cpu in
  6470. hppa*64*)
  6471. # +Z the default
  6472. ;;
  6473. *)
  6474. lt_prog_compiler_pic='-fPIC'
  6475. ;;
  6476. esac
  6477. ;;
  6478. interix[3-9]*)
  6479. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6480. # Instead, we relocate shared libraries at runtime.
  6481. ;;
  6482. msdosdjgpp*)
  6483. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6484. # on systems that don't support them.
  6485. lt_prog_compiler_can_build_shared=no
  6486. enable_shared=no
  6487. ;;
  6488. *nto* | *qnx*)
  6489. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6490. # it will coredump.
  6491. lt_prog_compiler_pic='-fPIC -shared'
  6492. ;;
  6493. sysv4*MP*)
  6494. if test -d /usr/nec; then
  6495. lt_prog_compiler_pic=-Kconform_pic
  6496. fi
  6497. ;;
  6498. *)
  6499. lt_prog_compiler_pic='-fPIC'
  6500. ;;
  6501. esac
  6502. case $cc_basename in
  6503. nvcc*) # Cuda Compiler Driver 2.2
  6504. lt_prog_compiler_wl='-Xlinker '
  6505. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6506. ;;
  6507. esac
  6508. else
  6509. # PORTME Check for flag to pass linker flags through the system compiler.
  6510. case $host_os in
  6511. aix*)
  6512. lt_prog_compiler_wl='-Wl,'
  6513. if test "$host_cpu" = ia64; then
  6514. # AIX 5 now supports IA64 processor
  6515. lt_prog_compiler_static='-Bstatic'
  6516. else
  6517. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6518. fi
  6519. ;;
  6520. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6521. # This hack is so that the source file can tell whether it is being
  6522. # built for inclusion in a dll (and should export symbols for example).
  6523. lt_prog_compiler_pic='-DDLL_EXPORT'
  6524. ;;
  6525. hpux9* | hpux10* | hpux11*)
  6526. lt_prog_compiler_wl='-Wl,'
  6527. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6528. # not for PA HP-UX.
  6529. case $host_cpu in
  6530. hppa*64*|ia64*)
  6531. # +Z the default
  6532. ;;
  6533. *)
  6534. lt_prog_compiler_pic='+Z'
  6535. ;;
  6536. esac
  6537. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6538. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6539. ;;
  6540. irix5* | irix6* | nonstopux*)
  6541. lt_prog_compiler_wl='-Wl,'
  6542. # PIC (with -KPIC) is the default.
  6543. lt_prog_compiler_static='-non_shared'
  6544. ;;
  6545. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6546. case $cc_basename in
  6547. # old Intel for x86_64 which still supported -KPIC.
  6548. ecc*)
  6549. lt_prog_compiler_wl='-Wl,'
  6550. lt_prog_compiler_pic='-KPIC'
  6551. lt_prog_compiler_static='-static'
  6552. ;;
  6553. # icc used to be incompatible with GCC.
  6554. # ICC 10 doesn't accept -KPIC any more.
  6555. icc* | ifort*)
  6556. lt_prog_compiler_wl='-Wl,'
  6557. lt_prog_compiler_pic='-fPIC'
  6558. lt_prog_compiler_static='-static'
  6559. ;;
  6560. # Lahey Fortran 8.1.
  6561. lf95*)
  6562. lt_prog_compiler_wl='-Wl,'
  6563. lt_prog_compiler_pic='--shared'
  6564. lt_prog_compiler_static='--static'
  6565. ;;
  6566. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6567. # Portland Group compilers (*not* the Pentium gcc compiler,
  6568. # which looks to be a dead project)
  6569. lt_prog_compiler_wl='-Wl,'
  6570. lt_prog_compiler_pic='-fpic'
  6571. lt_prog_compiler_static='-Bstatic'
  6572. ;;
  6573. ccc*)
  6574. lt_prog_compiler_wl='-Wl,'
  6575. # All Alpha code is PIC.
  6576. lt_prog_compiler_static='-non_shared'
  6577. ;;
  6578. xl* | bgxl* | bgf* | mpixl*)
  6579. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6580. lt_prog_compiler_wl='-Wl,'
  6581. lt_prog_compiler_pic='-qpic'
  6582. lt_prog_compiler_static='-qstaticlink'
  6583. ;;
  6584. *)
  6585. case `$CC -V 2>&1 | sed 5q` in
  6586. *Sun\ F* | *Sun*Fortran*)
  6587. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6588. lt_prog_compiler_pic='-KPIC'
  6589. lt_prog_compiler_static='-Bstatic'
  6590. lt_prog_compiler_wl=''
  6591. ;;
  6592. *Sun\ C*)
  6593. # Sun C 5.9
  6594. lt_prog_compiler_pic='-KPIC'
  6595. lt_prog_compiler_static='-Bstatic'
  6596. lt_prog_compiler_wl='-Wl,'
  6597. ;;
  6598. esac
  6599. ;;
  6600. esac
  6601. ;;
  6602. newsos6)
  6603. lt_prog_compiler_pic='-KPIC'
  6604. lt_prog_compiler_static='-Bstatic'
  6605. ;;
  6606. *nto* | *qnx*)
  6607. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6608. # it will coredump.
  6609. lt_prog_compiler_pic='-fPIC -shared'
  6610. ;;
  6611. osf3* | osf4* | osf5*)
  6612. lt_prog_compiler_wl='-Wl,'
  6613. # All OSF/1 code is PIC.
  6614. lt_prog_compiler_static='-non_shared'
  6615. ;;
  6616. rdos*)
  6617. lt_prog_compiler_static='-non_shared'
  6618. ;;
  6619. solaris*)
  6620. lt_prog_compiler_pic='-KPIC'
  6621. lt_prog_compiler_static='-Bstatic'
  6622. case $cc_basename in
  6623. f77* | f90* | f95*)
  6624. lt_prog_compiler_wl='-Qoption ld ';;
  6625. *)
  6626. lt_prog_compiler_wl='-Wl,';;
  6627. esac
  6628. ;;
  6629. sunos4*)
  6630. lt_prog_compiler_wl='-Qoption ld '
  6631. lt_prog_compiler_pic='-PIC'
  6632. lt_prog_compiler_static='-Bstatic'
  6633. ;;
  6634. sysv4 | sysv4.2uw2* | sysv4.3*)
  6635. lt_prog_compiler_wl='-Wl,'
  6636. lt_prog_compiler_pic='-KPIC'
  6637. lt_prog_compiler_static='-Bstatic'
  6638. ;;
  6639. sysv4*MP*)
  6640. if test -d /usr/nec ;then
  6641. lt_prog_compiler_pic='-Kconform_pic'
  6642. lt_prog_compiler_static='-Bstatic'
  6643. fi
  6644. ;;
  6645. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6646. lt_prog_compiler_wl='-Wl,'
  6647. lt_prog_compiler_pic='-KPIC'
  6648. lt_prog_compiler_static='-Bstatic'
  6649. ;;
  6650. unicos*)
  6651. lt_prog_compiler_wl='-Wl,'
  6652. lt_prog_compiler_can_build_shared=no
  6653. ;;
  6654. uts4*)
  6655. lt_prog_compiler_pic='-pic'
  6656. lt_prog_compiler_static='-Bstatic'
  6657. ;;
  6658. *)
  6659. lt_prog_compiler_can_build_shared=no
  6660. ;;
  6661. esac
  6662. fi
  6663. case $host_os in
  6664. # For platforms which do not support PIC, -DPIC is meaningless:
  6665. *djgpp*)
  6666. lt_prog_compiler_pic=
  6667. ;;
  6668. *)
  6669. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6670. ;;
  6671. esac
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6673. $as_echo "$lt_prog_compiler_pic" >&6; }
  6674. #
  6675. # Check to make sure the PIC flag actually works.
  6676. #
  6677. if test -n "$lt_prog_compiler_pic"; then
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6679. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6680. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  6681. $as_echo_n "(cached) " >&6
  6682. else
  6683. lt_cv_prog_compiler_pic_works=no
  6684. ac_outfile=conftest.$ac_objext
  6685. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6686. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6687. # Insert the option either (1) after the last *FLAGS variable, or
  6688. # (2) before a word containing "conftest.", or (3) at the end.
  6689. # Note that $ac_compile itself does not contain backslashes and begins
  6690. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6691. # The option is referenced via a variable to avoid confusing sed.
  6692. lt_compile=`echo "$ac_compile" | $SED \
  6693. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6694. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6695. -e 's:$: $lt_compiler_flag:'`
  6696. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6697. (eval "$lt_compile" 2>conftest.err)
  6698. ac_status=$?
  6699. cat conftest.err >&5
  6700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6701. if (exit $ac_status) && test -s "$ac_outfile"; then
  6702. # The compiler can only warn and ignore the option if not recognized
  6703. # So say no if there are warnings other than the usual output.
  6704. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6705. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6706. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6707. lt_cv_prog_compiler_pic_works=yes
  6708. fi
  6709. fi
  6710. $RM conftest*
  6711. fi
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6713. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6714. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6715. case $lt_prog_compiler_pic in
  6716. "" | " "*) ;;
  6717. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6718. esac
  6719. else
  6720. lt_prog_compiler_pic=
  6721. lt_prog_compiler_can_build_shared=no
  6722. fi
  6723. fi
  6724. #
  6725. # Check to make sure the static flag actually works.
  6726. #
  6727. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6729. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6730. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  6731. $as_echo_n "(cached) " >&6
  6732. else
  6733. lt_cv_prog_compiler_static_works=no
  6734. save_LDFLAGS="$LDFLAGS"
  6735. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6736. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6737. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6738. # The linker can only warn and ignore the option if not recognized
  6739. # So say no if there are warnings
  6740. if test -s conftest.err; then
  6741. # Append any errors to the config.log.
  6742. cat conftest.err 1>&5
  6743. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  6744. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6745. if diff conftest.exp conftest.er2 >/dev/null; then
  6746. lt_cv_prog_compiler_static_works=yes
  6747. fi
  6748. else
  6749. lt_cv_prog_compiler_static_works=yes
  6750. fi
  6751. fi
  6752. $RM -r conftest*
  6753. LDFLAGS="$save_LDFLAGS"
  6754. fi
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6756. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6757. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6758. :
  6759. else
  6760. lt_prog_compiler_static=
  6761. fi
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6763. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6764. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6765. $as_echo_n "(cached) " >&6
  6766. else
  6767. lt_cv_prog_compiler_c_o=no
  6768. $RM -r conftest 2>/dev/null
  6769. mkdir conftest
  6770. cd conftest
  6771. mkdir out
  6772. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6773. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6774. # Insert the option either (1) after the last *FLAGS variable, or
  6775. # (2) before a word containing "conftest.", or (3) at the end.
  6776. # Note that $ac_compile itself does not contain backslashes and begins
  6777. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6778. lt_compile=`echo "$ac_compile" | $SED \
  6779. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6780. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6781. -e 's:$: $lt_compiler_flag:'`
  6782. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6783. (eval "$lt_compile" 2>out/conftest.err)
  6784. ac_status=$?
  6785. cat out/conftest.err >&5
  6786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6787. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6788. then
  6789. # The compiler can only warn and ignore the option if not recognized
  6790. # So say no if there are warnings
  6791. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6792. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6793. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6794. lt_cv_prog_compiler_c_o=yes
  6795. fi
  6796. fi
  6797. chmod u+w . 2>&5
  6798. $RM conftest*
  6799. # SGI C++ compiler will create directory out/ii_files/ for
  6800. # template instantiation
  6801. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6802. $RM out/* && rmdir out
  6803. cd ..
  6804. $RM -r conftest
  6805. $RM conftest*
  6806. fi
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6808. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6810. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6811. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6812. $as_echo_n "(cached) " >&6
  6813. else
  6814. lt_cv_prog_compiler_c_o=no
  6815. $RM -r conftest 2>/dev/null
  6816. mkdir conftest
  6817. cd conftest
  6818. mkdir out
  6819. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6820. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6821. # Insert the option either (1) after the last *FLAGS variable, or
  6822. # (2) before a word containing "conftest.", or (3) at the end.
  6823. # Note that $ac_compile itself does not contain backslashes and begins
  6824. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6825. lt_compile=`echo "$ac_compile" | $SED \
  6826. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6827. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6828. -e 's:$: $lt_compiler_flag:'`
  6829. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6830. (eval "$lt_compile" 2>out/conftest.err)
  6831. ac_status=$?
  6832. cat out/conftest.err >&5
  6833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6834. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6835. then
  6836. # The compiler can only warn and ignore the option if not recognized
  6837. # So say no if there are warnings
  6838. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6839. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6840. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6841. lt_cv_prog_compiler_c_o=yes
  6842. fi
  6843. fi
  6844. chmod u+w . 2>&5
  6845. $RM conftest*
  6846. # SGI C++ compiler will create directory out/ii_files/ for
  6847. # template instantiation
  6848. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6849. $RM out/* && rmdir out
  6850. cd ..
  6851. $RM -r conftest
  6852. $RM conftest*
  6853. fi
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6855. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6856. hard_links="nottested"
  6857. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6858. # do not overwrite the value of need_locks provided by the user
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  6860. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6861. hard_links=yes
  6862. $RM conftest*
  6863. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6864. touch conftest.a
  6865. ln conftest.a conftest.b 2>&5 || hard_links=no
  6866. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  6868. $as_echo "$hard_links" >&6; }
  6869. if test "$hard_links" = no; then
  6870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6871. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6872. need_locks=warn
  6873. fi
  6874. else
  6875. need_locks=no
  6876. fi
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6878. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6879. runpath_var=
  6880. allow_undefined_flag=
  6881. always_export_symbols=no
  6882. archive_cmds=
  6883. archive_expsym_cmds=
  6884. compiler_needs_object=no
  6885. enable_shared_with_static_runtimes=no
  6886. export_dynamic_flag_spec=
  6887. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6888. hardcode_automatic=no
  6889. hardcode_direct=no
  6890. hardcode_direct_absolute=no
  6891. hardcode_libdir_flag_spec=
  6892. hardcode_libdir_flag_spec_ld=
  6893. hardcode_libdir_separator=
  6894. hardcode_minus_L=no
  6895. hardcode_shlibpath_var=unsupported
  6896. inherit_rpath=no
  6897. link_all_deplibs=unknown
  6898. module_cmds=
  6899. module_expsym_cmds=
  6900. old_archive_from_new_cmds=
  6901. old_archive_from_expsyms_cmds=
  6902. thread_safe_flag_spec=
  6903. whole_archive_flag_spec=
  6904. # include_expsyms should be a list of space-separated symbols to be *always*
  6905. # included in the symbol list
  6906. include_expsyms=
  6907. # exclude_expsyms can be an extended regexp of symbols to exclude
  6908. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6909. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6910. # as well as any symbol that contains `d'.
  6911. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  6912. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6913. # platforms (ab)use it in PIC code, but their linkers get confused if
  6914. # the symbol is explicitly referenced. Since portable code cannot
  6915. # rely on this symbol name, it's probably fine to never include it in
  6916. # preloaded symbol tables.
  6917. # Exclude shared library initialization/finalization symbols.
  6918. extract_expsyms_cmds=
  6919. case $host_os in
  6920. cygwin* | mingw* | pw32* | cegcc*)
  6921. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6922. # When not using gcc, we currently assume that we are using
  6923. # Microsoft Visual C++.
  6924. if test "$GCC" != yes; then
  6925. with_gnu_ld=no
  6926. fi
  6927. ;;
  6928. interix*)
  6929. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6930. with_gnu_ld=yes
  6931. ;;
  6932. openbsd*)
  6933. with_gnu_ld=no
  6934. ;;
  6935. esac
  6936. ld_shlibs=yes
  6937. # On some targets, GNU ld is compatible enough with the native linker
  6938. # that we're better off using the native interface for both.
  6939. lt_use_gnu_ld_interface=no
  6940. if test "$with_gnu_ld" = yes; then
  6941. case $host_os in
  6942. aix*)
  6943. # The AIX port of GNU ld has always aspired to compatibility
  6944. # with the native linker. However, as the warning in the GNU ld
  6945. # block says, versions before 2.19.5* couldn't really create working
  6946. # shared libraries, regardless of the interface used.
  6947. case `$LD -v 2>&1` in
  6948. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  6949. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  6950. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  6951. *)
  6952. lt_use_gnu_ld_interface=yes
  6953. ;;
  6954. esac
  6955. ;;
  6956. *)
  6957. lt_use_gnu_ld_interface=yes
  6958. ;;
  6959. esac
  6960. fi
  6961. if test "$lt_use_gnu_ld_interface" = yes; then
  6962. # If archive_cmds runs LD, not CC, wlarc should be empty
  6963. wlarc='${wl}'
  6964. # Set some defaults for GNU ld with shared library support. These
  6965. # are reset later if shared libraries are not supported. Putting them
  6966. # here allows them to be overridden if necessary.
  6967. runpath_var=LD_RUN_PATH
  6968. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6969. export_dynamic_flag_spec='${wl}--export-dynamic'
  6970. # ancient GNU ld didn't support --whole-archive et. al.
  6971. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6972. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6973. else
  6974. whole_archive_flag_spec=
  6975. fi
  6976. supports_anon_versioning=no
  6977. case `$LD -v 2>&1` in
  6978. *GNU\ gold*) supports_anon_versioning=yes ;;
  6979. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6980. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6981. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6982. *\ 2.11.*) ;; # other 2.11 versions
  6983. *) supports_anon_versioning=yes ;;
  6984. esac
  6985. # See if GNU ld supports shared libraries.
  6986. case $host_os in
  6987. aix[3-9]*)
  6988. # On AIX/PPC, the GNU linker is very broken
  6989. if test "$host_cpu" != ia64; then
  6990. ld_shlibs=no
  6991. cat <<_LT_EOF 1>&2
  6992. *** Warning: the GNU linker, at least up to release 2.19, is reported
  6993. *** to be unable to reliably create shared libraries on AIX.
  6994. *** Therefore, libtool is disabling shared libraries support. If you
  6995. *** really care for shared libraries, you may want to install binutils
  6996. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  6997. *** You will then need to restart the configuration process.
  6998. _LT_EOF
  6999. fi
  7000. ;;
  7001. amigaos*)
  7002. case $host_cpu in
  7003. powerpc)
  7004. # see comment about AmigaOS4 .so support
  7005. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7006. archive_expsym_cmds=''
  7007. ;;
  7008. m68k)
  7009. 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)'
  7010. hardcode_libdir_flag_spec='-L$libdir'
  7011. hardcode_minus_L=yes
  7012. ;;
  7013. esac
  7014. ;;
  7015. beos*)
  7016. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7017. allow_undefined_flag=unsupported
  7018. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7019. # support --undefined. This deserves some investigation. FIXME
  7020. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7021. else
  7022. ld_shlibs=no
  7023. fi
  7024. ;;
  7025. cygwin* | mingw* | pw32* | cegcc*)
  7026. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7027. # as there is no search path for DLLs.
  7028. hardcode_libdir_flag_spec='-L$libdir'
  7029. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7030. allow_undefined_flag=unsupported
  7031. always_export_symbols=no
  7032. enable_shared_with_static_runtimes=yes
  7033. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7034. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7035. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7036. # If the export-symbols file already is a .def file (1st line
  7037. # is EXPORTS), use it as is; otherwise, prepend...
  7038. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7039. cp $export_symbols $output_objdir/$soname.def;
  7040. else
  7041. echo EXPORTS > $output_objdir/$soname.def;
  7042. cat $export_symbols >> $output_objdir/$soname.def;
  7043. fi~
  7044. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7045. else
  7046. ld_shlibs=no
  7047. fi
  7048. ;;
  7049. haiku*)
  7050. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7051. link_all_deplibs=yes
  7052. ;;
  7053. interix[3-9]*)
  7054. hardcode_direct=no
  7055. hardcode_shlibpath_var=no
  7056. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7057. export_dynamic_flag_spec='${wl}-E'
  7058. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7059. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7060. # default) and relocated if they conflict, which is a slow very memory
  7061. # consuming and fragmenting process. To avoid this, we pick a random,
  7062. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7063. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7064. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7065. 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'
  7066. ;;
  7067. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7068. tmp_diet=no
  7069. if test "$host_os" = linux-dietlibc; then
  7070. case $cc_basename in
  7071. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7072. esac
  7073. fi
  7074. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7075. && test "$tmp_diet" = no
  7076. then
  7077. tmp_addflag=' $pic_flag'
  7078. tmp_sharedflag='-shared'
  7079. case $cc_basename,$host_cpu in
  7080. pgcc*) # Portland Group C compiler
  7081. 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'
  7082. tmp_addflag=' $pic_flag'
  7083. ;;
  7084. pgf77* | pgf90* | pgf95* | pgfortran*)
  7085. # Portland Group f77 and f90 compilers
  7086. 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'
  7087. tmp_addflag=' $pic_flag -Mnomain' ;;
  7088. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7089. tmp_addflag=' -i_dynamic' ;;
  7090. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7091. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7092. ifc* | ifort*) # Intel Fortran compiler
  7093. tmp_addflag=' -nofor_main' ;;
  7094. lf95*) # Lahey Fortran 8.1
  7095. whole_archive_flag_spec=
  7096. tmp_sharedflag='--shared' ;;
  7097. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7098. tmp_sharedflag='-qmkshrobj'
  7099. tmp_addflag= ;;
  7100. nvcc*) # Cuda Compiler Driver 2.2
  7101. 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'
  7102. compiler_needs_object=yes
  7103. ;;
  7104. esac
  7105. case `$CC -V 2>&1 | sed 5q` in
  7106. *Sun\ C*) # Sun C 5.9
  7107. 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'
  7108. compiler_needs_object=yes
  7109. tmp_sharedflag='-G' ;;
  7110. *Sun\ F*) # Sun Fortran 8.3
  7111. tmp_sharedflag='-G' ;;
  7112. esac
  7113. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7114. if test "x$supports_anon_versioning" = xyes; then
  7115. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7116. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7117. echo "local: *; };" >> $output_objdir/$libname.ver~
  7118. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7119. fi
  7120. case $cc_basename in
  7121. xlf* | bgf* | bgxlf* | mpixlf*)
  7122. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7123. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7124. hardcode_libdir_flag_spec=
  7125. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7126. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7127. if test "x$supports_anon_versioning" = xyes; then
  7128. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7129. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7130. echo "local: *; };" >> $output_objdir/$libname.ver~
  7131. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7132. fi
  7133. ;;
  7134. esac
  7135. else
  7136. ld_shlibs=no
  7137. fi
  7138. ;;
  7139. netbsd*)
  7140. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7141. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7142. wlarc=
  7143. else
  7144. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7145. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7146. fi
  7147. ;;
  7148. solaris*)
  7149. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7150. ld_shlibs=no
  7151. cat <<_LT_EOF 1>&2
  7152. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7153. *** create shared libraries on Solaris systems. Therefore, libtool
  7154. *** is disabling shared libraries support. We urge you to upgrade GNU
  7155. *** binutils to release 2.9.1 or newer. Another option is to modify
  7156. *** your PATH or compiler configuration so that the native linker is
  7157. *** used, and then restart.
  7158. _LT_EOF
  7159. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7160. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7161. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7162. else
  7163. ld_shlibs=no
  7164. fi
  7165. ;;
  7166. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7167. case `$LD -v 2>&1` in
  7168. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7169. ld_shlibs=no
  7170. cat <<_LT_EOF 1>&2
  7171. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7172. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7173. *** is disabling shared libraries support. We urge you to upgrade GNU
  7174. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7175. *** your PATH or compiler configuration so that the native linker is
  7176. *** used, and then restart.
  7177. _LT_EOF
  7178. ;;
  7179. *)
  7180. # For security reasons, it is highly recommended that you always
  7181. # use absolute paths for naming shared libraries, and exclude the
  7182. # DT_RUNPATH tag from executables and libraries. But doing so
  7183. # requires that you compile everything twice, which is a pain.
  7184. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7185. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7186. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7187. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7188. else
  7189. ld_shlibs=no
  7190. fi
  7191. ;;
  7192. esac
  7193. ;;
  7194. sunos4*)
  7195. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7196. wlarc=
  7197. hardcode_direct=yes
  7198. hardcode_shlibpath_var=no
  7199. ;;
  7200. *)
  7201. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7202. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7203. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7204. else
  7205. ld_shlibs=no
  7206. fi
  7207. ;;
  7208. esac
  7209. if test "$ld_shlibs" = no; then
  7210. runpath_var=
  7211. hardcode_libdir_flag_spec=
  7212. export_dynamic_flag_spec=
  7213. whole_archive_flag_spec=
  7214. fi
  7215. else
  7216. # PORTME fill in a description of your system's linker (not GNU ld)
  7217. case $host_os in
  7218. aix3*)
  7219. allow_undefined_flag=unsupported
  7220. always_export_symbols=yes
  7221. 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'
  7222. # Note: this linker hardcodes the directories in LIBPATH if there
  7223. # are no directories specified by -L.
  7224. hardcode_minus_L=yes
  7225. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7226. # Neither direct hardcoding nor static linking is supported with a
  7227. # broken collect2.
  7228. hardcode_direct=unsupported
  7229. fi
  7230. ;;
  7231. aix[4-9]*)
  7232. if test "$host_cpu" = ia64; then
  7233. # On IA64, the linker does run time linking by default, so we don't
  7234. # have to do anything special.
  7235. aix_use_runtimelinking=no
  7236. exp_sym_flag='-Bexport'
  7237. no_entry_flag=""
  7238. else
  7239. # If we're using GNU nm, then we don't want the "-C" option.
  7240. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7241. # Also, AIX nm treats weak defined symbols like other global
  7242. # defined symbols, whereas GNU nm marks them as "W".
  7243. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7244. 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'
  7245. else
  7246. 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'
  7247. fi
  7248. aix_use_runtimelinking=no
  7249. # Test if we are trying to use run time linking or normal
  7250. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7251. # need to do runtime linking.
  7252. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7253. for ld_flag in $LDFLAGS; do
  7254. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7255. aix_use_runtimelinking=yes
  7256. break
  7257. fi
  7258. done
  7259. ;;
  7260. esac
  7261. exp_sym_flag='-bexport'
  7262. no_entry_flag='-bnoentry'
  7263. fi
  7264. # When large executables or shared objects are built, AIX ld can
  7265. # have problems creating the table of contents. If linking a library
  7266. # or program results in "error TOC overflow" add -mminimal-toc to
  7267. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7268. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7269. archive_cmds=''
  7270. hardcode_direct=yes
  7271. hardcode_direct_absolute=yes
  7272. hardcode_libdir_separator=':'
  7273. link_all_deplibs=yes
  7274. file_list_spec='${wl}-f,'
  7275. if test "$GCC" = yes; then
  7276. case $host_os in aix4.[012]|aix4.[012].*)
  7277. # We only want to do this on AIX 4.2 and lower, the check
  7278. # below for broken collect2 doesn't work under 4.3+
  7279. collect2name=`${CC} -print-prog-name=collect2`
  7280. if test -f "$collect2name" &&
  7281. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7282. then
  7283. # We have reworked collect2
  7284. :
  7285. else
  7286. # We have old collect2
  7287. hardcode_direct=unsupported
  7288. # It fails to find uninstalled libraries when the uninstalled
  7289. # path is not listed in the libpath. Setting hardcode_minus_L
  7290. # to unsupported forces relinking
  7291. hardcode_minus_L=yes
  7292. hardcode_libdir_flag_spec='-L$libdir'
  7293. hardcode_libdir_separator=
  7294. fi
  7295. ;;
  7296. esac
  7297. shared_flag='-shared'
  7298. if test "$aix_use_runtimelinking" = yes; then
  7299. shared_flag="$shared_flag "'${wl}-G'
  7300. fi
  7301. else
  7302. # not using gcc
  7303. if test "$host_cpu" = ia64; then
  7304. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7305. # chokes on -Wl,-G. The following line is correct:
  7306. shared_flag='-G'
  7307. else
  7308. if test "$aix_use_runtimelinking" = yes; then
  7309. shared_flag='${wl}-G'
  7310. else
  7311. shared_flag='${wl}-bM:SRE'
  7312. fi
  7313. fi
  7314. fi
  7315. export_dynamic_flag_spec='${wl}-bexpall'
  7316. # It seems that -bexpall does not export symbols beginning with
  7317. # underscore (_), so it is better to generate a list of symbols to export.
  7318. always_export_symbols=yes
  7319. if test "$aix_use_runtimelinking" = yes; then
  7320. # Warning - without using the other runtime loading flags (-brtl),
  7321. # -berok will link without error, but may produce a broken library.
  7322. allow_undefined_flag='-berok'
  7323. # Determine the default libpath from the value encoded in an
  7324. # empty executable.
  7325. if test x$gcc_no_link = xyes; then
  7326. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7327. fi
  7328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7329. /* end confdefs.h. */
  7330. int
  7331. main ()
  7332. {
  7333. ;
  7334. return 0;
  7335. }
  7336. _ACEOF
  7337. if ac_fn_c_try_link "$LINENO"; then :
  7338. lt_aix_libpath_sed='
  7339. /Import File Strings/,/^$/ {
  7340. /^0/ {
  7341. s/^0 *\(.*\)$/\1/
  7342. p
  7343. }
  7344. }'
  7345. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7346. # Check for a 64-bit object if we didn't find anything.
  7347. if test -z "$aix_libpath"; then
  7348. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7349. fi
  7350. fi
  7351. rm -f core conftest.err conftest.$ac_objext \
  7352. conftest$ac_exeext conftest.$ac_ext
  7353. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7354. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7355. 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"
  7356. else
  7357. if test "$host_cpu" = ia64; then
  7358. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7359. allow_undefined_flag="-z nodefs"
  7360. 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"
  7361. else
  7362. # Determine the default libpath from the value encoded in an
  7363. # empty executable.
  7364. if test x$gcc_no_link = xyes; then
  7365. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7366. fi
  7367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7368. /* end confdefs.h. */
  7369. int
  7370. main ()
  7371. {
  7372. ;
  7373. return 0;
  7374. }
  7375. _ACEOF
  7376. if ac_fn_c_try_link "$LINENO"; then :
  7377. lt_aix_libpath_sed='
  7378. /Import File Strings/,/^$/ {
  7379. /^0/ {
  7380. s/^0 *\(.*\)$/\1/
  7381. p
  7382. }
  7383. }'
  7384. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7385. # Check for a 64-bit object if we didn't find anything.
  7386. if test -z "$aix_libpath"; then
  7387. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7388. fi
  7389. fi
  7390. rm -f core conftest.err conftest.$ac_objext \
  7391. conftest$ac_exeext conftest.$ac_ext
  7392. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7393. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7394. # Warning - without using the other run time loading flags,
  7395. # -berok will link without error, but may produce a broken library.
  7396. no_undefined_flag=' ${wl}-bernotok'
  7397. allow_undefined_flag=' ${wl}-berok'
  7398. if test "$with_gnu_ld" = yes; then
  7399. # We only use this code for GNU lds that support --whole-archive.
  7400. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7401. else
  7402. # Exported symbols can be pulled into shared objects from archives
  7403. whole_archive_flag_spec='$convenience'
  7404. fi
  7405. archive_cmds_need_lc=yes
  7406. # This is similar to how AIX traditionally builds its shared libraries.
  7407. 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'
  7408. fi
  7409. fi
  7410. ;;
  7411. amigaos*)
  7412. case $host_cpu in
  7413. powerpc)
  7414. # see comment about AmigaOS4 .so support
  7415. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7416. archive_expsym_cmds=''
  7417. ;;
  7418. m68k)
  7419. 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)'
  7420. hardcode_libdir_flag_spec='-L$libdir'
  7421. hardcode_minus_L=yes
  7422. ;;
  7423. esac
  7424. ;;
  7425. bsdi[45]*)
  7426. export_dynamic_flag_spec=-rdynamic
  7427. ;;
  7428. cygwin* | mingw* | pw32* | cegcc*)
  7429. # When not using gcc, we currently assume that we are using
  7430. # Microsoft Visual C++.
  7431. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7432. # no search path for DLLs.
  7433. hardcode_libdir_flag_spec=' '
  7434. allow_undefined_flag=unsupported
  7435. # Tell ltmain to make .lib files, not .a files.
  7436. libext=lib
  7437. # Tell ltmain to make .dll files, not .so files.
  7438. shrext_cmds=".dll"
  7439. # FIXME: Setting linknames here is a bad hack.
  7440. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7441. # The linker will automatically build a .lib file if we build a DLL.
  7442. old_archive_from_new_cmds='true'
  7443. # FIXME: Should let the user specify the lib program.
  7444. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7445. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7446. enable_shared_with_static_runtimes=yes
  7447. ;;
  7448. darwin* | rhapsody*)
  7449. archive_cmds_need_lc=no
  7450. hardcode_direct=no
  7451. hardcode_automatic=yes
  7452. hardcode_shlibpath_var=unsupported
  7453. if test "$lt_cv_ld_force_load" = "yes"; then
  7454. 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\"`'
  7455. else
  7456. whole_archive_flag_spec=''
  7457. fi
  7458. link_all_deplibs=yes
  7459. allow_undefined_flag="$_lt_dar_allow_undefined"
  7460. case $cc_basename in
  7461. ifort*) _lt_dar_can_shared=yes ;;
  7462. *) _lt_dar_can_shared=$GCC ;;
  7463. esac
  7464. if test "$_lt_dar_can_shared" = "yes"; then
  7465. output_verbose_link_cmd=func_echo_all
  7466. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7467. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7468. 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}"
  7469. 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}"
  7470. else
  7471. ld_shlibs=no
  7472. fi
  7473. ;;
  7474. dgux*)
  7475. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7476. hardcode_libdir_flag_spec='-L$libdir'
  7477. hardcode_shlibpath_var=no
  7478. ;;
  7479. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7480. # support. Future versions do this automatically, but an explicit c++rt0.o
  7481. # does not break anything, and helps significantly (at the cost of a little
  7482. # extra space).
  7483. freebsd2.2*)
  7484. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7485. hardcode_libdir_flag_spec='-R$libdir'
  7486. hardcode_direct=yes
  7487. hardcode_shlibpath_var=no
  7488. ;;
  7489. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7490. freebsd2.*)
  7491. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7492. hardcode_direct=yes
  7493. hardcode_minus_L=yes
  7494. hardcode_shlibpath_var=no
  7495. ;;
  7496. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7497. freebsd* | dragonfly*)
  7498. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7499. hardcode_libdir_flag_spec='-R$libdir'
  7500. hardcode_direct=yes
  7501. hardcode_shlibpath_var=no
  7502. ;;
  7503. hpux9*)
  7504. if test "$GCC" = yes; then
  7505. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7506. else
  7507. 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'
  7508. fi
  7509. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7510. hardcode_libdir_separator=:
  7511. hardcode_direct=yes
  7512. # hardcode_minus_L: Not really in the search PATH,
  7513. # but as the default location of the library.
  7514. hardcode_minus_L=yes
  7515. export_dynamic_flag_spec='${wl}-E'
  7516. ;;
  7517. hpux10*)
  7518. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7519. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7520. else
  7521. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7522. fi
  7523. if test "$with_gnu_ld" = no; then
  7524. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7525. hardcode_libdir_flag_spec_ld='+b $libdir'
  7526. hardcode_libdir_separator=:
  7527. hardcode_direct=yes
  7528. hardcode_direct_absolute=yes
  7529. export_dynamic_flag_spec='${wl}-E'
  7530. # hardcode_minus_L: Not really in the search PATH,
  7531. # but as the default location of the library.
  7532. hardcode_minus_L=yes
  7533. fi
  7534. ;;
  7535. hpux11*)
  7536. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7537. case $host_cpu in
  7538. hppa*64*)
  7539. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7540. ;;
  7541. ia64*)
  7542. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7543. ;;
  7544. *)
  7545. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7546. ;;
  7547. esac
  7548. else
  7549. case $host_cpu in
  7550. hppa*64*)
  7551. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7552. ;;
  7553. ia64*)
  7554. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7555. ;;
  7556. *)
  7557. # Older versions of the 11.00 compiler do not understand -b yet
  7558. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7560. $as_echo_n "checking if $CC understands -b... " >&6; }
  7561. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  7562. $as_echo_n "(cached) " >&6
  7563. else
  7564. lt_cv_prog_compiler__b=no
  7565. save_LDFLAGS="$LDFLAGS"
  7566. LDFLAGS="$LDFLAGS -b"
  7567. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7568. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7569. # The linker can only warn and ignore the option if not recognized
  7570. # So say no if there are warnings
  7571. if test -s conftest.err; then
  7572. # Append any errors to the config.log.
  7573. cat conftest.err 1>&5
  7574. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7575. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7576. if diff conftest.exp conftest.er2 >/dev/null; then
  7577. lt_cv_prog_compiler__b=yes
  7578. fi
  7579. else
  7580. lt_cv_prog_compiler__b=yes
  7581. fi
  7582. fi
  7583. $RM -r conftest*
  7584. LDFLAGS="$save_LDFLAGS"
  7585. fi
  7586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7587. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7588. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7589. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7590. else
  7591. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7592. fi
  7593. ;;
  7594. esac
  7595. fi
  7596. if test "$with_gnu_ld" = no; then
  7597. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7598. hardcode_libdir_separator=:
  7599. case $host_cpu in
  7600. hppa*64*|ia64*)
  7601. hardcode_direct=no
  7602. hardcode_shlibpath_var=no
  7603. ;;
  7604. *)
  7605. hardcode_direct=yes
  7606. hardcode_direct_absolute=yes
  7607. export_dynamic_flag_spec='${wl}-E'
  7608. # hardcode_minus_L: Not really in the search PATH,
  7609. # but as the default location of the library.
  7610. hardcode_minus_L=yes
  7611. ;;
  7612. esac
  7613. fi
  7614. ;;
  7615. irix5* | irix6* | nonstopux*)
  7616. if test "$GCC" = yes; then
  7617. archive_cmds='$CC -shared $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'
  7618. # Try to use the -exported_symbol ld option, if it does not
  7619. # work, assume that -exports_file does not work either and
  7620. # implicitly export all symbols.
  7621. save_LDFLAGS="$LDFLAGS"
  7622. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7623. if test x$gcc_no_link = xyes; then
  7624. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7625. fi
  7626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7627. /* end confdefs.h. */
  7628. int foo(void) {}
  7629. _ACEOF
  7630. if ac_fn_c_try_link "$LINENO"; then :
  7631. archive_expsym_cmds='$CC -shared $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'
  7632. fi
  7633. rm -f core conftest.err conftest.$ac_objext \
  7634. conftest$ac_exeext conftest.$ac_ext
  7635. LDFLAGS="$save_LDFLAGS"
  7636. else
  7637. 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'
  7638. 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'
  7639. fi
  7640. archive_cmds_need_lc='no'
  7641. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7642. hardcode_libdir_separator=:
  7643. inherit_rpath=yes
  7644. link_all_deplibs=yes
  7645. ;;
  7646. netbsd*)
  7647. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7648. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7649. else
  7650. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7651. fi
  7652. hardcode_libdir_flag_spec='-R$libdir'
  7653. hardcode_direct=yes
  7654. hardcode_shlibpath_var=no
  7655. ;;
  7656. newsos6)
  7657. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7658. hardcode_direct=yes
  7659. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7660. hardcode_libdir_separator=:
  7661. hardcode_shlibpath_var=no
  7662. ;;
  7663. *nto* | *qnx*)
  7664. ;;
  7665. openbsd*)
  7666. if test -f /usr/libexec/ld.so; then
  7667. hardcode_direct=yes
  7668. hardcode_shlibpath_var=no
  7669. hardcode_direct_absolute=yes
  7670. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7671. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7672. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7673. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7674. export_dynamic_flag_spec='${wl}-E'
  7675. else
  7676. case $host_os in
  7677. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7678. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7679. hardcode_libdir_flag_spec='-R$libdir'
  7680. ;;
  7681. *)
  7682. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7683. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7684. ;;
  7685. esac
  7686. fi
  7687. else
  7688. ld_shlibs=no
  7689. fi
  7690. ;;
  7691. os2*)
  7692. hardcode_libdir_flag_spec='-L$libdir'
  7693. hardcode_minus_L=yes
  7694. allow_undefined_flag=unsupported
  7695. 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'
  7696. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7697. ;;
  7698. osf3*)
  7699. if test "$GCC" = yes; then
  7700. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7701. 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'
  7702. else
  7703. allow_undefined_flag=' -expect_unresolved \*'
  7704. 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'
  7705. fi
  7706. archive_cmds_need_lc='no'
  7707. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7708. hardcode_libdir_separator=:
  7709. ;;
  7710. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7711. if test "$GCC" = yes; then
  7712. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7713. archive_cmds='$CC -shared${allow_undefined_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'
  7714. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7715. else
  7716. allow_undefined_flag=' -expect_unresolved \*'
  7717. 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'
  7718. 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~
  7719. $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'
  7720. # Both c and cxx compiler support -rpath directly
  7721. hardcode_libdir_flag_spec='-rpath $libdir'
  7722. fi
  7723. archive_cmds_need_lc='no'
  7724. hardcode_libdir_separator=:
  7725. ;;
  7726. solaris*)
  7727. no_undefined_flag=' -z defs'
  7728. if test "$GCC" = yes; then
  7729. wlarc='${wl}'
  7730. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7731. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7732. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7733. else
  7734. case `$CC -V 2>&1` in
  7735. *"Compilers 5.0"*)
  7736. wlarc=''
  7737. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7738. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7739. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7740. ;;
  7741. *)
  7742. wlarc='${wl}'
  7743. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7744. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7745. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7746. ;;
  7747. esac
  7748. fi
  7749. hardcode_libdir_flag_spec='-R$libdir'
  7750. hardcode_shlibpath_var=no
  7751. case $host_os in
  7752. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7753. *)
  7754. # The compiler driver will combine and reorder linker options,
  7755. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7756. # but is careful enough not to reorder.
  7757. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7758. if test "$GCC" = yes; then
  7759. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7760. else
  7761. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7762. fi
  7763. ;;
  7764. esac
  7765. link_all_deplibs=yes
  7766. ;;
  7767. sunos4*)
  7768. if test "x$host_vendor" = xsequent; then
  7769. # Use $CC to link under sequent, because it throws in some extra .o
  7770. # files that make .init and .fini sections work.
  7771. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7772. else
  7773. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7774. fi
  7775. hardcode_libdir_flag_spec='-L$libdir'
  7776. hardcode_direct=yes
  7777. hardcode_minus_L=yes
  7778. hardcode_shlibpath_var=no
  7779. ;;
  7780. sysv4)
  7781. case $host_vendor in
  7782. sni)
  7783. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7784. hardcode_direct=yes # is this really true???
  7785. ;;
  7786. siemens)
  7787. ## LD is ld it makes a PLAMLIB
  7788. ## CC just makes a GrossModule.
  7789. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7790. reload_cmds='$CC -r -o $output$reload_objs'
  7791. hardcode_direct=no
  7792. ;;
  7793. motorola)
  7794. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7795. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7796. ;;
  7797. esac
  7798. runpath_var='LD_RUN_PATH'
  7799. hardcode_shlibpath_var=no
  7800. ;;
  7801. sysv4.3*)
  7802. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7803. hardcode_shlibpath_var=no
  7804. export_dynamic_flag_spec='-Bexport'
  7805. ;;
  7806. sysv4*MP*)
  7807. if test -d /usr/nec; then
  7808. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7809. hardcode_shlibpath_var=no
  7810. runpath_var=LD_RUN_PATH
  7811. hardcode_runpath_var=yes
  7812. ld_shlibs=yes
  7813. fi
  7814. ;;
  7815. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7816. no_undefined_flag='${wl}-z,text'
  7817. archive_cmds_need_lc=no
  7818. hardcode_shlibpath_var=no
  7819. runpath_var='LD_RUN_PATH'
  7820. if test "$GCC" = yes; then
  7821. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7822. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7823. else
  7824. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7825. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7826. fi
  7827. ;;
  7828. sysv5* | sco3.2v5* | sco5v6*)
  7829. # Note: We can NOT use -z defs as we might desire, because we do not
  7830. # link with -lc, and that would cause any symbols used from libc to
  7831. # always be unresolved, which means just about no library would
  7832. # ever link correctly. If we're not using GNU ld we use -z text
  7833. # though, which does catch some bad symbols but isn't as heavy-handed
  7834. # as -z defs.
  7835. no_undefined_flag='${wl}-z,text'
  7836. allow_undefined_flag='${wl}-z,nodefs'
  7837. archive_cmds_need_lc=no
  7838. hardcode_shlibpath_var=no
  7839. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7840. hardcode_libdir_separator=':'
  7841. link_all_deplibs=yes
  7842. export_dynamic_flag_spec='${wl}-Bexport'
  7843. runpath_var='LD_RUN_PATH'
  7844. if test "$GCC" = yes; then
  7845. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7846. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7847. else
  7848. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7849. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7850. fi
  7851. ;;
  7852. uts4*)
  7853. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7854. hardcode_libdir_flag_spec='-L$libdir'
  7855. hardcode_shlibpath_var=no
  7856. ;;
  7857. *)
  7858. ld_shlibs=no
  7859. ;;
  7860. esac
  7861. if test x$host_vendor = xsni; then
  7862. case $host in
  7863. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7864. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7865. ;;
  7866. esac
  7867. fi
  7868. fi
  7869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  7870. $as_echo "$ld_shlibs" >&6; }
  7871. test "$ld_shlibs" = no && can_build_shared=no
  7872. with_gnu_ld=$with_gnu_ld
  7873. #
  7874. # Do we need to explicitly link libc?
  7875. #
  7876. case "x$archive_cmds_need_lc" in
  7877. x|xyes)
  7878. # Assume -lc should be added
  7879. archive_cmds_need_lc=yes
  7880. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7881. case $archive_cmds in
  7882. *'~'*)
  7883. # FIXME: we may have to deal with multi-command sequences.
  7884. ;;
  7885. '$CC '*)
  7886. # Test whether the compiler implicitly links with -lc since on some
  7887. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7888. # to ld, don't add -lc before -lgcc.
  7889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  7890. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  7891. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  7892. $as_echo_n "(cached) " >&6
  7893. else
  7894. $RM conftest*
  7895. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7896. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7897. (eval $ac_compile) 2>&5
  7898. ac_status=$?
  7899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7900. test $ac_status = 0; } 2>conftest.err; then
  7901. soname=conftest
  7902. lib=conftest
  7903. libobjs=conftest.$ac_objext
  7904. deplibs=
  7905. wl=$lt_prog_compiler_wl
  7906. pic_flag=$lt_prog_compiler_pic
  7907. compiler_flags=-v
  7908. linker_flags=-v
  7909. verstring=
  7910. output_objdir=.
  7911. libname=conftest
  7912. lt_save_allow_undefined_flag=$allow_undefined_flag
  7913. allow_undefined_flag=
  7914. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  7915. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7916. ac_status=$?
  7917. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7918. test $ac_status = 0; }
  7919. then
  7920. lt_cv_archive_cmds_need_lc=no
  7921. else
  7922. lt_cv_archive_cmds_need_lc=yes
  7923. fi
  7924. allow_undefined_flag=$lt_save_allow_undefined_flag
  7925. else
  7926. cat conftest.err 1>&5
  7927. fi
  7928. $RM conftest*
  7929. fi
  7930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  7931. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  7932. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  7933. ;;
  7934. esac
  7935. fi
  7936. ;;
  7937. esac
  7938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  7939. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  7940. if test "$GCC" = yes; then
  7941. case $host_os in
  7942. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7943. *) lt_awk_arg="/^libraries:/" ;;
  7944. esac
  7945. case $host_os in
  7946. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  7947. *) lt_sed_strip_eq="s,=/,/,g" ;;
  7948. esac
  7949. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  7950. case $lt_search_path_spec in
  7951. *\;*)
  7952. # if the path contains ";" then we assume it to be the separator
  7953. # otherwise default to the standard path separator (i.e. ":") - it is
  7954. # assumed that no part of a normal pathname contains ";" but that should
  7955. # okay in the real world where ";" in dirpaths is itself problematic.
  7956. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  7957. ;;
  7958. *)
  7959. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  7960. ;;
  7961. esac
  7962. # Ok, now we have the path, separated by spaces, we can step through it
  7963. # and add multilib dir if necessary.
  7964. lt_tmp_lt_search_path_spec=
  7965. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7966. for lt_sys_path in $lt_search_path_spec; do
  7967. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7968. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7969. else
  7970. test -d "$lt_sys_path" && \
  7971. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7972. fi
  7973. done
  7974. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  7975. BEGIN {RS=" "; FS="/|\n";} {
  7976. lt_foo="";
  7977. lt_count=0;
  7978. for (lt_i = NF; lt_i > 0; lt_i--) {
  7979. if ($lt_i != "" && $lt_i != ".") {
  7980. if ($lt_i == "..") {
  7981. lt_count++;
  7982. } else {
  7983. if (lt_count == 0) {
  7984. lt_foo="/" $lt_i lt_foo;
  7985. } else {
  7986. lt_count--;
  7987. }
  7988. }
  7989. }
  7990. }
  7991. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7992. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7993. }'`
  7994. # AWK program above erroneously prepends '/' to C:/dos/paths
  7995. # for these hosts.
  7996. case $host_os in
  7997. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  7998. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  7999. esac
  8000. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8001. else
  8002. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8003. fi
  8004. library_names_spec=
  8005. libname_spec='lib$name'
  8006. soname_spec=
  8007. shrext_cmds=".so"
  8008. postinstall_cmds=
  8009. postuninstall_cmds=
  8010. finish_cmds=
  8011. finish_eval=
  8012. shlibpath_var=
  8013. shlibpath_overrides_runpath=unknown
  8014. version_type=none
  8015. dynamic_linker="$host_os ld.so"
  8016. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8017. need_lib_prefix=unknown
  8018. hardcode_into_libs=no
  8019. # when you set need_version to no, make sure it does not cause -set_version
  8020. # flags to be left without arguments
  8021. need_version=unknown
  8022. case $host_os in
  8023. aix3*)
  8024. version_type=linux
  8025. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8026. shlibpath_var=LIBPATH
  8027. # AIX 3 has no versioning support, so we append a major version to the name.
  8028. soname_spec='${libname}${release}${shared_ext}$major'
  8029. ;;
  8030. aix[4-9]*)
  8031. version_type=linux
  8032. need_lib_prefix=no
  8033. need_version=no
  8034. hardcode_into_libs=yes
  8035. if test "$host_cpu" = ia64; then
  8036. # AIX 5 supports IA64
  8037. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8038. shlibpath_var=LD_LIBRARY_PATH
  8039. else
  8040. # With GCC up to 2.95.x, collect2 would create an import file
  8041. # for dependence libraries. The import file would start with
  8042. # the line `#! .'. This would cause the generated library to
  8043. # depend on `.', always an invalid library. This was fixed in
  8044. # development snapshots of GCC prior to 3.0.
  8045. case $host_os in
  8046. aix4 | aix4.[01] | aix4.[01].*)
  8047. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8048. echo ' yes '
  8049. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8050. :
  8051. else
  8052. can_build_shared=no
  8053. fi
  8054. ;;
  8055. esac
  8056. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8057. # soname into executable. Probably we can add versioning support to
  8058. # collect2, so additional links can be useful in future.
  8059. if test "$aix_use_runtimelinking" = yes; then
  8060. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8061. # instead of lib<name>.a to let people know that these are not
  8062. # typical AIX shared libraries.
  8063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8064. else
  8065. # We preserve .a as extension for shared libraries through AIX4.2
  8066. # and later when we are not doing run time linking.
  8067. library_names_spec='${libname}${release}.a $libname.a'
  8068. soname_spec='${libname}${release}${shared_ext}$major'
  8069. fi
  8070. shlibpath_var=LIBPATH
  8071. fi
  8072. ;;
  8073. amigaos*)
  8074. case $host_cpu in
  8075. powerpc)
  8076. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8077. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8079. ;;
  8080. m68k)
  8081. library_names_spec='$libname.ixlibrary $libname.a'
  8082. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8083. 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'
  8084. ;;
  8085. esac
  8086. ;;
  8087. beos*)
  8088. library_names_spec='${libname}${shared_ext}'
  8089. dynamic_linker="$host_os ld.so"
  8090. shlibpath_var=LIBRARY_PATH
  8091. ;;
  8092. bsdi[45]*)
  8093. version_type=linux
  8094. need_version=no
  8095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8096. soname_spec='${libname}${release}${shared_ext}$major'
  8097. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8098. shlibpath_var=LD_LIBRARY_PATH
  8099. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8100. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8101. # the default ld.so.conf also contains /usr/contrib/lib and
  8102. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8103. # libtool to hard-code these into programs
  8104. ;;
  8105. cygwin* | mingw* | pw32* | cegcc*)
  8106. version_type=windows
  8107. shrext_cmds=".dll"
  8108. need_version=no
  8109. need_lib_prefix=no
  8110. case $GCC,$host_os in
  8111. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8112. library_names_spec='$libname.dll.a'
  8113. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8114. postinstall_cmds='base_file=`basename \${file}`~
  8115. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8116. dldir=$destdir/`dirname \$dlpath`~
  8117. test -d \$dldir || mkdir -p \$dldir~
  8118. $install_prog $dir/$dlname \$dldir/$dlname~
  8119. chmod a+x \$dldir/$dlname~
  8120. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8121. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8122. fi'
  8123. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8124. dlpath=$dir/\$dldll~
  8125. $RM \$dlpath'
  8126. shlibpath_overrides_runpath=yes
  8127. case $host_os in
  8128. cygwin*)
  8129. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8130. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8131. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8132. ;;
  8133. mingw* | cegcc*)
  8134. # MinGW DLLs use traditional 'lib' prefix
  8135. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8136. ;;
  8137. pw32*)
  8138. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8139. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8140. ;;
  8141. esac
  8142. ;;
  8143. *)
  8144. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8145. ;;
  8146. esac
  8147. dynamic_linker='Win32 ld.exe'
  8148. # FIXME: first we should search . and the directory the executable is in
  8149. shlibpath_var=PATH
  8150. ;;
  8151. darwin* | rhapsody*)
  8152. dynamic_linker="$host_os dyld"
  8153. version_type=darwin
  8154. need_lib_prefix=no
  8155. need_version=no
  8156. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8157. soname_spec='${libname}${release}${major}$shared_ext'
  8158. shlibpath_overrides_runpath=yes
  8159. shlibpath_var=DYLD_LIBRARY_PATH
  8160. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8161. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8162. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8163. ;;
  8164. dgux*)
  8165. version_type=linux
  8166. need_lib_prefix=no
  8167. need_version=no
  8168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8169. soname_spec='${libname}${release}${shared_ext}$major'
  8170. shlibpath_var=LD_LIBRARY_PATH
  8171. ;;
  8172. freebsd* | dragonfly*)
  8173. # DragonFly does not have aout. When/if they implement a new
  8174. # versioning mechanism, adjust this.
  8175. if test -x /usr/bin/objformat; then
  8176. objformat=`/usr/bin/objformat`
  8177. else
  8178. case $host_os in
  8179. freebsd[23].*) objformat=aout ;;
  8180. *) objformat=elf ;;
  8181. esac
  8182. fi
  8183. version_type=freebsd-$objformat
  8184. case $version_type in
  8185. freebsd-elf*)
  8186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8187. need_version=no
  8188. need_lib_prefix=no
  8189. ;;
  8190. freebsd-*)
  8191. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8192. need_version=yes
  8193. ;;
  8194. esac
  8195. shlibpath_var=LD_LIBRARY_PATH
  8196. case $host_os in
  8197. freebsd2.*)
  8198. shlibpath_overrides_runpath=yes
  8199. ;;
  8200. freebsd3.[01]* | freebsdelf3.[01]*)
  8201. shlibpath_overrides_runpath=yes
  8202. hardcode_into_libs=yes
  8203. ;;
  8204. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8205. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8206. shlibpath_overrides_runpath=no
  8207. hardcode_into_libs=yes
  8208. ;;
  8209. *) # from 4.6 on, and DragonFly
  8210. shlibpath_overrides_runpath=yes
  8211. hardcode_into_libs=yes
  8212. ;;
  8213. esac
  8214. ;;
  8215. gnu*)
  8216. version_type=linux
  8217. need_lib_prefix=no
  8218. need_version=no
  8219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8220. soname_spec='${libname}${release}${shared_ext}$major'
  8221. shlibpath_var=LD_LIBRARY_PATH
  8222. hardcode_into_libs=yes
  8223. ;;
  8224. haiku*)
  8225. version_type=linux
  8226. need_lib_prefix=no
  8227. need_version=no
  8228. dynamic_linker="$host_os runtime_loader"
  8229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8230. soname_spec='${libname}${release}${shared_ext}$major'
  8231. shlibpath_var=LIBRARY_PATH
  8232. shlibpath_overrides_runpath=yes
  8233. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8234. hardcode_into_libs=yes
  8235. ;;
  8236. hpux9* | hpux10* | hpux11*)
  8237. # Give a soname corresponding to the major version so that dld.sl refuses to
  8238. # link against other versions.
  8239. version_type=sunos
  8240. need_lib_prefix=no
  8241. need_version=no
  8242. case $host_cpu in
  8243. ia64*)
  8244. shrext_cmds='.so'
  8245. hardcode_into_libs=yes
  8246. dynamic_linker="$host_os dld.so"
  8247. shlibpath_var=LD_LIBRARY_PATH
  8248. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8250. soname_spec='${libname}${release}${shared_ext}$major'
  8251. if test "X$HPUX_IA64_MODE" = X32; then
  8252. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8253. else
  8254. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8255. fi
  8256. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8257. ;;
  8258. hppa*64*)
  8259. shrext_cmds='.sl'
  8260. hardcode_into_libs=yes
  8261. dynamic_linker="$host_os dld.sl"
  8262. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8263. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8265. soname_spec='${libname}${release}${shared_ext}$major'
  8266. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8267. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8268. ;;
  8269. *)
  8270. shrext_cmds='.sl'
  8271. dynamic_linker="$host_os dld.sl"
  8272. shlibpath_var=SHLIB_PATH
  8273. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8275. soname_spec='${libname}${release}${shared_ext}$major'
  8276. ;;
  8277. esac
  8278. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8279. postinstall_cmds='chmod 555 $lib'
  8280. # or fails outright, so override atomically:
  8281. install_override_mode=555
  8282. ;;
  8283. interix[3-9]*)
  8284. version_type=linux
  8285. need_lib_prefix=no
  8286. need_version=no
  8287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8288. soname_spec='${libname}${release}${shared_ext}$major'
  8289. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8290. shlibpath_var=LD_LIBRARY_PATH
  8291. shlibpath_overrides_runpath=no
  8292. hardcode_into_libs=yes
  8293. ;;
  8294. irix5* | irix6* | nonstopux*)
  8295. case $host_os in
  8296. nonstopux*) version_type=nonstopux ;;
  8297. *)
  8298. if test "$lt_cv_prog_gnu_ld" = yes; then
  8299. version_type=linux
  8300. else
  8301. version_type=irix
  8302. fi ;;
  8303. esac
  8304. need_lib_prefix=no
  8305. need_version=no
  8306. soname_spec='${libname}${release}${shared_ext}$major'
  8307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8308. case $host_os in
  8309. irix5* | nonstopux*)
  8310. libsuff= shlibsuff=
  8311. ;;
  8312. *)
  8313. case $LD in # libtool.m4 will add one of these switches to LD
  8314. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8315. libsuff= shlibsuff= libmagic=32-bit;;
  8316. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8317. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8318. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8319. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8320. *) libsuff= shlibsuff= libmagic=never-match;;
  8321. esac
  8322. ;;
  8323. esac
  8324. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8325. shlibpath_overrides_runpath=no
  8326. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8327. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8328. hardcode_into_libs=yes
  8329. ;;
  8330. # No shared lib support for Linux oldld, aout, or coff.
  8331. linux*oldld* | linux*aout* | linux*coff*)
  8332. dynamic_linker=no
  8333. ;;
  8334. # This must be Linux ELF.
  8335. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8336. version_type=linux
  8337. need_lib_prefix=no
  8338. need_version=no
  8339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8340. soname_spec='${libname}${release}${shared_ext}$major'
  8341. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8342. shlibpath_var=LD_LIBRARY_PATH
  8343. shlibpath_overrides_runpath=no
  8344. # Some binutils ld are patched to set DT_RUNPATH
  8345. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  8346. $as_echo_n "(cached) " >&6
  8347. else
  8348. lt_cv_shlibpath_overrides_runpath=no
  8349. save_LDFLAGS=$LDFLAGS
  8350. save_libdir=$libdir
  8351. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8352. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8353. if test x$gcc_no_link = xyes; then
  8354. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8355. fi
  8356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8357. /* end confdefs.h. */
  8358. int
  8359. main ()
  8360. {
  8361. ;
  8362. return 0;
  8363. }
  8364. _ACEOF
  8365. if ac_fn_c_try_link "$LINENO"; then :
  8366. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8367. lt_cv_shlibpath_overrides_runpath=yes
  8368. fi
  8369. fi
  8370. rm -f core conftest.err conftest.$ac_objext \
  8371. conftest$ac_exeext conftest.$ac_ext
  8372. LDFLAGS=$save_LDFLAGS
  8373. libdir=$save_libdir
  8374. fi
  8375. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8376. # This implies no fast_install, which is unacceptable.
  8377. # Some rework will be needed to allow for fast_install
  8378. # before this can be enabled.
  8379. hardcode_into_libs=yes
  8380. # Append ld.so.conf contents to the search path
  8381. if test -f /etc/ld.so.conf; then
  8382. 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' ' '`
  8383. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8384. fi
  8385. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8386. # powerpc, because MkLinux only supported shared libraries with the
  8387. # GNU dynamic linker. Since this was broken with cross compilers,
  8388. # most powerpc-linux boxes support dynamic linking these days and
  8389. # people can always --disable-shared, the test was removed, and we
  8390. # assume the GNU/Linux dynamic linker is in use.
  8391. dynamic_linker='GNU/Linux ld.so'
  8392. ;;
  8393. netbsd*)
  8394. version_type=sunos
  8395. need_lib_prefix=no
  8396. need_version=no
  8397. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8398. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8399. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8400. dynamic_linker='NetBSD (a.out) ld.so'
  8401. else
  8402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8403. soname_spec='${libname}${release}${shared_ext}$major'
  8404. dynamic_linker='NetBSD ld.elf_so'
  8405. fi
  8406. shlibpath_var=LD_LIBRARY_PATH
  8407. shlibpath_overrides_runpath=yes
  8408. hardcode_into_libs=yes
  8409. ;;
  8410. newsos6)
  8411. version_type=linux
  8412. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8413. shlibpath_var=LD_LIBRARY_PATH
  8414. shlibpath_overrides_runpath=yes
  8415. ;;
  8416. *nto* | *qnx*)
  8417. version_type=qnx
  8418. need_lib_prefix=no
  8419. need_version=no
  8420. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8421. soname_spec='${libname}${release}${shared_ext}$major'
  8422. shlibpath_var=LD_LIBRARY_PATH
  8423. shlibpath_overrides_runpath=no
  8424. hardcode_into_libs=yes
  8425. dynamic_linker='ldqnx.so'
  8426. ;;
  8427. openbsd*)
  8428. version_type=sunos
  8429. sys_lib_dlsearch_path_spec="/usr/lib"
  8430. need_lib_prefix=no
  8431. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8432. case $host_os in
  8433. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8434. *) need_version=no ;;
  8435. esac
  8436. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8437. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8438. shlibpath_var=LD_LIBRARY_PATH
  8439. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8440. case $host_os in
  8441. openbsd2.[89] | openbsd2.[89].*)
  8442. shlibpath_overrides_runpath=no
  8443. ;;
  8444. *)
  8445. shlibpath_overrides_runpath=yes
  8446. ;;
  8447. esac
  8448. else
  8449. shlibpath_overrides_runpath=yes
  8450. fi
  8451. ;;
  8452. os2*)
  8453. libname_spec='$name'
  8454. shrext_cmds=".dll"
  8455. need_lib_prefix=no
  8456. library_names_spec='$libname${shared_ext} $libname.a'
  8457. dynamic_linker='OS/2 ld.exe'
  8458. shlibpath_var=LIBPATH
  8459. ;;
  8460. osf3* | osf4* | osf5*)
  8461. version_type=osf
  8462. need_lib_prefix=no
  8463. need_version=no
  8464. soname_spec='${libname}${release}${shared_ext}$major'
  8465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8466. shlibpath_var=LD_LIBRARY_PATH
  8467. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8468. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8469. ;;
  8470. rdos*)
  8471. dynamic_linker=no
  8472. ;;
  8473. solaris*)
  8474. version_type=linux
  8475. need_lib_prefix=no
  8476. need_version=no
  8477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8478. soname_spec='${libname}${release}${shared_ext}$major'
  8479. shlibpath_var=LD_LIBRARY_PATH
  8480. shlibpath_overrides_runpath=yes
  8481. hardcode_into_libs=yes
  8482. # ldd complains unless libraries are executable
  8483. postinstall_cmds='chmod +x $lib'
  8484. ;;
  8485. sunos4*)
  8486. version_type=sunos
  8487. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8488. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8489. shlibpath_var=LD_LIBRARY_PATH
  8490. shlibpath_overrides_runpath=yes
  8491. if test "$with_gnu_ld" = yes; then
  8492. need_lib_prefix=no
  8493. fi
  8494. need_version=yes
  8495. ;;
  8496. sysv4 | sysv4.3*)
  8497. version_type=linux
  8498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8499. soname_spec='${libname}${release}${shared_ext}$major'
  8500. shlibpath_var=LD_LIBRARY_PATH
  8501. case $host_vendor in
  8502. sni)
  8503. shlibpath_overrides_runpath=no
  8504. need_lib_prefix=no
  8505. runpath_var=LD_RUN_PATH
  8506. ;;
  8507. siemens)
  8508. need_lib_prefix=no
  8509. ;;
  8510. motorola)
  8511. need_lib_prefix=no
  8512. need_version=no
  8513. shlibpath_overrides_runpath=no
  8514. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8515. ;;
  8516. esac
  8517. ;;
  8518. sysv4*MP*)
  8519. if test -d /usr/nec ;then
  8520. version_type=linux
  8521. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8522. soname_spec='$libname${shared_ext}.$major'
  8523. shlibpath_var=LD_LIBRARY_PATH
  8524. fi
  8525. ;;
  8526. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8527. version_type=freebsd-elf
  8528. need_lib_prefix=no
  8529. need_version=no
  8530. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8531. soname_spec='${libname}${release}${shared_ext}$major'
  8532. shlibpath_var=LD_LIBRARY_PATH
  8533. shlibpath_overrides_runpath=yes
  8534. hardcode_into_libs=yes
  8535. if test "$with_gnu_ld" = yes; then
  8536. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8537. else
  8538. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8539. case $host_os in
  8540. sco3.2v5*)
  8541. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8542. ;;
  8543. esac
  8544. fi
  8545. sys_lib_dlsearch_path_spec='/usr/lib'
  8546. ;;
  8547. tpf*)
  8548. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8549. version_type=linux
  8550. need_lib_prefix=no
  8551. need_version=no
  8552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8553. shlibpath_var=LD_LIBRARY_PATH
  8554. shlibpath_overrides_runpath=no
  8555. hardcode_into_libs=yes
  8556. ;;
  8557. uts4*)
  8558. version_type=linux
  8559. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8560. soname_spec='${libname}${release}${shared_ext}$major'
  8561. shlibpath_var=LD_LIBRARY_PATH
  8562. ;;
  8563. *)
  8564. dynamic_linker=no
  8565. ;;
  8566. esac
  8567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8568. $as_echo "$dynamic_linker" >&6; }
  8569. test "$dynamic_linker" = no && can_build_shared=no
  8570. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8571. if test "$GCC" = yes; then
  8572. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8573. fi
  8574. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8575. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8576. fi
  8577. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8578. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8579. fi
  8580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8581. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8582. hardcode_action=
  8583. if test -n "$hardcode_libdir_flag_spec" ||
  8584. test -n "$runpath_var" ||
  8585. test "X$hardcode_automatic" = "Xyes" ; then
  8586. # We can hardcode non-existent directories.
  8587. if test "$hardcode_direct" != no &&
  8588. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8589. # have to relink, otherwise we might link with an installed library
  8590. # when we should be linking with a yet-to-be-installed one
  8591. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8592. test "$hardcode_minus_L" != no; then
  8593. # Linking always hardcodes the temporary library directory.
  8594. hardcode_action=relink
  8595. else
  8596. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8597. hardcode_action=immediate
  8598. fi
  8599. else
  8600. # We cannot hardcode anything, or else we can only hardcode existing
  8601. # directories.
  8602. hardcode_action=unsupported
  8603. fi
  8604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8605. $as_echo "$hardcode_action" >&6; }
  8606. if test "$hardcode_action" = relink ||
  8607. test "$inherit_rpath" = yes; then
  8608. # Fast installation is not supported
  8609. enable_fast_install=no
  8610. elif test "$shlibpath_overrides_runpath" = yes ||
  8611. test "$enable_shared" = no; then
  8612. # Fast installation is not necessary
  8613. enable_fast_install=needless
  8614. fi
  8615. if test "x$enable_dlopen" != xyes; then
  8616. enable_dlopen=unknown
  8617. enable_dlopen_self=unknown
  8618. enable_dlopen_self_static=unknown
  8619. else
  8620. lt_cv_dlopen=no
  8621. lt_cv_dlopen_libs=
  8622. case $host_os in
  8623. beos*)
  8624. lt_cv_dlopen="load_add_on"
  8625. lt_cv_dlopen_libs=
  8626. lt_cv_dlopen_self=yes
  8627. ;;
  8628. mingw* | pw32* | cegcc*)
  8629. lt_cv_dlopen="LoadLibrary"
  8630. lt_cv_dlopen_libs=
  8631. ;;
  8632. cygwin*)
  8633. lt_cv_dlopen="dlopen"
  8634. lt_cv_dlopen_libs=
  8635. ;;
  8636. darwin*)
  8637. # if libdl is installed we need to link against it
  8638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8639. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8640. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8641. $as_echo_n "(cached) " >&6
  8642. else
  8643. ac_check_lib_save_LIBS=$LIBS
  8644. LIBS="-ldl $LIBS"
  8645. if test x$gcc_no_link = xyes; then
  8646. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8647. fi
  8648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8649. /* end confdefs.h. */
  8650. /* Override any GCC internal prototype to avoid an error.
  8651. Use char because int might match the return type of a GCC
  8652. builtin and then its argument prototype would still apply. */
  8653. #ifdef __cplusplus
  8654. extern "C"
  8655. #endif
  8656. char dlopen ();
  8657. int
  8658. main ()
  8659. {
  8660. return dlopen ();
  8661. ;
  8662. return 0;
  8663. }
  8664. _ACEOF
  8665. if ac_fn_c_try_link "$LINENO"; then :
  8666. ac_cv_lib_dl_dlopen=yes
  8667. else
  8668. ac_cv_lib_dl_dlopen=no
  8669. fi
  8670. rm -f core conftest.err conftest.$ac_objext \
  8671. conftest$ac_exeext conftest.$ac_ext
  8672. LIBS=$ac_check_lib_save_LIBS
  8673. fi
  8674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8675. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8676. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8677. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8678. else
  8679. lt_cv_dlopen="dyld"
  8680. lt_cv_dlopen_libs=
  8681. lt_cv_dlopen_self=yes
  8682. fi
  8683. ;;
  8684. *)
  8685. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8686. if test "x$ac_cv_func_shl_load" = x""yes; then :
  8687. lt_cv_dlopen="shl_load"
  8688. else
  8689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8690. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8691. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  8692. $as_echo_n "(cached) " >&6
  8693. else
  8694. ac_check_lib_save_LIBS=$LIBS
  8695. LIBS="-ldld $LIBS"
  8696. if test x$gcc_no_link = xyes; then
  8697. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8698. fi
  8699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8700. /* end confdefs.h. */
  8701. /* Override any GCC internal prototype to avoid an error.
  8702. Use char because int might match the return type of a GCC
  8703. builtin and then its argument prototype would still apply. */
  8704. #ifdef __cplusplus
  8705. extern "C"
  8706. #endif
  8707. char shl_load ();
  8708. int
  8709. main ()
  8710. {
  8711. return shl_load ();
  8712. ;
  8713. return 0;
  8714. }
  8715. _ACEOF
  8716. if ac_fn_c_try_link "$LINENO"; then :
  8717. ac_cv_lib_dld_shl_load=yes
  8718. else
  8719. ac_cv_lib_dld_shl_load=no
  8720. fi
  8721. rm -f core conftest.err conftest.$ac_objext \
  8722. conftest$ac_exeext conftest.$ac_ext
  8723. LIBS=$ac_check_lib_save_LIBS
  8724. fi
  8725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8726. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8727. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  8728. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8729. else
  8730. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8731. if test "x$ac_cv_func_dlopen" = x""yes; then :
  8732. lt_cv_dlopen="dlopen"
  8733. else
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8735. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8736. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8737. $as_echo_n "(cached) " >&6
  8738. else
  8739. ac_check_lib_save_LIBS=$LIBS
  8740. LIBS="-ldl $LIBS"
  8741. if test x$gcc_no_link = xyes; then
  8742. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8743. fi
  8744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8745. /* end confdefs.h. */
  8746. /* Override any GCC internal prototype to avoid an error.
  8747. Use char because int might match the return type of a GCC
  8748. builtin and then its argument prototype would still apply. */
  8749. #ifdef __cplusplus
  8750. extern "C"
  8751. #endif
  8752. char dlopen ();
  8753. int
  8754. main ()
  8755. {
  8756. return dlopen ();
  8757. ;
  8758. return 0;
  8759. }
  8760. _ACEOF
  8761. if ac_fn_c_try_link "$LINENO"; then :
  8762. ac_cv_lib_dl_dlopen=yes
  8763. else
  8764. ac_cv_lib_dl_dlopen=no
  8765. fi
  8766. rm -f core conftest.err conftest.$ac_objext \
  8767. conftest$ac_exeext conftest.$ac_ext
  8768. LIBS=$ac_check_lib_save_LIBS
  8769. fi
  8770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8771. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8772. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8773. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8774. else
  8775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8776. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8777. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  8778. $as_echo_n "(cached) " >&6
  8779. else
  8780. ac_check_lib_save_LIBS=$LIBS
  8781. LIBS="-lsvld $LIBS"
  8782. if test x$gcc_no_link = xyes; then
  8783. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8784. fi
  8785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8786. /* end confdefs.h. */
  8787. /* Override any GCC internal prototype to avoid an error.
  8788. Use char because int might match the return type of a GCC
  8789. builtin and then its argument prototype would still apply. */
  8790. #ifdef __cplusplus
  8791. extern "C"
  8792. #endif
  8793. char dlopen ();
  8794. int
  8795. main ()
  8796. {
  8797. return dlopen ();
  8798. ;
  8799. return 0;
  8800. }
  8801. _ACEOF
  8802. if ac_fn_c_try_link "$LINENO"; then :
  8803. ac_cv_lib_svld_dlopen=yes
  8804. else
  8805. ac_cv_lib_svld_dlopen=no
  8806. fi
  8807. rm -f core conftest.err conftest.$ac_objext \
  8808. conftest$ac_exeext conftest.$ac_ext
  8809. LIBS=$ac_check_lib_save_LIBS
  8810. fi
  8811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  8812. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  8813. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  8814. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8815. else
  8816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  8817. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  8818. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  8819. $as_echo_n "(cached) " >&6
  8820. else
  8821. ac_check_lib_save_LIBS=$LIBS
  8822. LIBS="-ldld $LIBS"
  8823. if test x$gcc_no_link = xyes; then
  8824. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8825. fi
  8826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8827. /* end confdefs.h. */
  8828. /* Override any GCC internal prototype to avoid an error.
  8829. Use char because int might match the return type of a GCC
  8830. builtin and then its argument prototype would still apply. */
  8831. #ifdef __cplusplus
  8832. extern "C"
  8833. #endif
  8834. char dld_link ();
  8835. int
  8836. main ()
  8837. {
  8838. return dld_link ();
  8839. ;
  8840. return 0;
  8841. }
  8842. _ACEOF
  8843. if ac_fn_c_try_link "$LINENO"; then :
  8844. ac_cv_lib_dld_dld_link=yes
  8845. else
  8846. ac_cv_lib_dld_dld_link=no
  8847. fi
  8848. rm -f core conftest.err conftest.$ac_objext \
  8849. conftest$ac_exeext conftest.$ac_ext
  8850. LIBS=$ac_check_lib_save_LIBS
  8851. fi
  8852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  8853. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  8854. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  8855. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  8856. fi
  8857. fi
  8858. fi
  8859. fi
  8860. fi
  8861. fi
  8862. ;;
  8863. esac
  8864. if test "x$lt_cv_dlopen" != xno; then
  8865. enable_dlopen=yes
  8866. else
  8867. enable_dlopen=no
  8868. fi
  8869. case $lt_cv_dlopen in
  8870. dlopen)
  8871. save_CPPFLAGS="$CPPFLAGS"
  8872. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8873. save_LDFLAGS="$LDFLAGS"
  8874. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8875. save_LIBS="$LIBS"
  8876. LIBS="$lt_cv_dlopen_libs $LIBS"
  8877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  8878. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  8879. if test "${lt_cv_dlopen_self+set}" = set; then :
  8880. $as_echo_n "(cached) " >&6
  8881. else
  8882. if test "$cross_compiling" = yes; then :
  8883. lt_cv_dlopen_self=cross
  8884. else
  8885. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8886. lt_status=$lt_dlunknown
  8887. cat > conftest.$ac_ext <<_LT_EOF
  8888. #line 10406 "configure"
  8889. #include "confdefs.h"
  8890. #if HAVE_DLFCN_H
  8891. #include <dlfcn.h>
  8892. #endif
  8893. #include <stdio.h>
  8894. #ifdef RTLD_GLOBAL
  8895. # define LT_DLGLOBAL RTLD_GLOBAL
  8896. #else
  8897. # ifdef DL_GLOBAL
  8898. # define LT_DLGLOBAL DL_GLOBAL
  8899. # else
  8900. # define LT_DLGLOBAL 0
  8901. # endif
  8902. #endif
  8903. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8904. find out it does not work in some platform. */
  8905. #ifndef LT_DLLAZY_OR_NOW
  8906. # ifdef RTLD_LAZY
  8907. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8908. # else
  8909. # ifdef DL_LAZY
  8910. # define LT_DLLAZY_OR_NOW DL_LAZY
  8911. # else
  8912. # ifdef RTLD_NOW
  8913. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8914. # else
  8915. # ifdef DL_NOW
  8916. # define LT_DLLAZY_OR_NOW DL_NOW
  8917. # else
  8918. # define LT_DLLAZY_OR_NOW 0
  8919. # endif
  8920. # endif
  8921. # endif
  8922. # endif
  8923. #endif
  8924. /* When -fvisbility=hidden is used, assume the code has been annotated
  8925. correspondingly for the symbols needed. */
  8926. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  8927. void fnord () __attribute__((visibility("default")));
  8928. #endif
  8929. void fnord () { int i=42; }
  8930. int main ()
  8931. {
  8932. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8933. int status = $lt_dlunknown;
  8934. if (self)
  8935. {
  8936. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8937. else
  8938. {
  8939. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8940. else puts (dlerror ());
  8941. }
  8942. /* dlclose (self); */
  8943. }
  8944. else
  8945. puts (dlerror ());
  8946. return status;
  8947. }
  8948. _LT_EOF
  8949. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8950. (eval $ac_link) 2>&5
  8951. ac_status=$?
  8952. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8953. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  8954. (./conftest; exit; ) >&5 2>/dev/null
  8955. lt_status=$?
  8956. case x$lt_status in
  8957. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8958. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8959. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8960. esac
  8961. else :
  8962. # compilation failed
  8963. lt_cv_dlopen_self=no
  8964. fi
  8965. fi
  8966. rm -fr conftest*
  8967. fi
  8968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  8969. $as_echo "$lt_cv_dlopen_self" >&6; }
  8970. if test "x$lt_cv_dlopen_self" = xyes; then
  8971. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  8973. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  8974. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  8975. $as_echo_n "(cached) " >&6
  8976. else
  8977. if test "$cross_compiling" = yes; then :
  8978. lt_cv_dlopen_self_static=cross
  8979. else
  8980. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8981. lt_status=$lt_dlunknown
  8982. cat > conftest.$ac_ext <<_LT_EOF
  8983. #line 10512 "configure"
  8984. #include "confdefs.h"
  8985. #if HAVE_DLFCN_H
  8986. #include <dlfcn.h>
  8987. #endif
  8988. #include <stdio.h>
  8989. #ifdef RTLD_GLOBAL
  8990. # define LT_DLGLOBAL RTLD_GLOBAL
  8991. #else
  8992. # ifdef DL_GLOBAL
  8993. # define LT_DLGLOBAL DL_GLOBAL
  8994. # else
  8995. # define LT_DLGLOBAL 0
  8996. # endif
  8997. #endif
  8998. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8999. find out it does not work in some platform. */
  9000. #ifndef LT_DLLAZY_OR_NOW
  9001. # ifdef RTLD_LAZY
  9002. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9003. # else
  9004. # ifdef DL_LAZY
  9005. # define LT_DLLAZY_OR_NOW DL_LAZY
  9006. # else
  9007. # ifdef RTLD_NOW
  9008. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9009. # else
  9010. # ifdef DL_NOW
  9011. # define LT_DLLAZY_OR_NOW DL_NOW
  9012. # else
  9013. # define LT_DLLAZY_OR_NOW 0
  9014. # endif
  9015. # endif
  9016. # endif
  9017. # endif
  9018. #endif
  9019. /* When -fvisbility=hidden is used, assume the code has been annotated
  9020. correspondingly for the symbols needed. */
  9021. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9022. void fnord () __attribute__((visibility("default")));
  9023. #endif
  9024. void fnord () { int i=42; }
  9025. int main ()
  9026. {
  9027. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9028. int status = $lt_dlunknown;
  9029. if (self)
  9030. {
  9031. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9032. else
  9033. {
  9034. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9035. else puts (dlerror ());
  9036. }
  9037. /* dlclose (self); */
  9038. }
  9039. else
  9040. puts (dlerror ());
  9041. return status;
  9042. }
  9043. _LT_EOF
  9044. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9045. (eval $ac_link) 2>&5
  9046. ac_status=$?
  9047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9048. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9049. (./conftest; exit; ) >&5 2>/dev/null
  9050. lt_status=$?
  9051. case x$lt_status in
  9052. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9053. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9054. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9055. esac
  9056. else :
  9057. # compilation failed
  9058. lt_cv_dlopen_self_static=no
  9059. fi
  9060. fi
  9061. rm -fr conftest*
  9062. fi
  9063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9064. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9065. fi
  9066. CPPFLAGS="$save_CPPFLAGS"
  9067. LDFLAGS="$save_LDFLAGS"
  9068. LIBS="$save_LIBS"
  9069. ;;
  9070. esac
  9071. case $lt_cv_dlopen_self in
  9072. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9073. *) enable_dlopen_self=unknown ;;
  9074. esac
  9075. case $lt_cv_dlopen_self_static in
  9076. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9077. *) enable_dlopen_self_static=unknown ;;
  9078. esac
  9079. fi
  9080. striplib=
  9081. old_striplib=
  9082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9083. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9084. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9085. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9086. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9088. $as_echo "yes" >&6; }
  9089. else
  9090. # FIXME - insert some real tests, host_os isn't really good enough
  9091. case $host_os in
  9092. darwin*)
  9093. if test -n "$STRIP" ; then
  9094. striplib="$STRIP -x"
  9095. old_striplib="$STRIP -S"
  9096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9097. $as_echo "yes" >&6; }
  9098. else
  9099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9100. $as_echo "no" >&6; }
  9101. fi
  9102. ;;
  9103. *)
  9104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9105. $as_echo "no" >&6; }
  9106. ;;
  9107. esac
  9108. fi
  9109. # Report which library types will actually be built
  9110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9111. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9113. $as_echo "$can_build_shared" >&6; }
  9114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9115. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9116. test "$can_build_shared" = "no" && enable_shared=no
  9117. # On AIX, shared libraries and static libraries use the same namespace, and
  9118. # are all built from PIC.
  9119. case $host_os in
  9120. aix3*)
  9121. test "$enable_shared" = yes && enable_static=no
  9122. if test -n "$RANLIB"; then
  9123. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9124. postinstall_cmds='$RANLIB $lib'
  9125. fi
  9126. ;;
  9127. aix[4-9]*)
  9128. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9129. test "$enable_shared" = yes && enable_static=no
  9130. fi
  9131. ;;
  9132. esac
  9133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9134. $as_echo "$enable_shared" >&6; }
  9135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9136. $as_echo_n "checking whether to build static libraries... " >&6; }
  9137. # Make sure either enable_shared or enable_static is yes.
  9138. test "$enable_shared" = yes || enable_static=yes
  9139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9140. $as_echo "$enable_static" >&6; }
  9141. fi
  9142. ac_ext=c
  9143. ac_cpp='$CPP $CPPFLAGS'
  9144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9147. CC="$lt_save_CC"
  9148. ac_config_commands="$ac_config_commands libtool"
  9149. # Only expand once:
  9150. # Find CPP now so that any conditional tests below won't do it and
  9151. # thereby make the resulting definitions conditional.
  9152. ac_ext=c
  9153. ac_cpp='$CPP $CPPFLAGS'
  9154. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9155. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9156. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  9158. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  9159. # On Suns, sometimes $CPP names a directory.
  9160. if test -n "$CPP" && test -d "$CPP"; then
  9161. CPP=
  9162. fi
  9163. if test -z "$CPP"; then
  9164. if test "${ac_cv_prog_CPP+set}" = set; then :
  9165. $as_echo_n "(cached) " >&6
  9166. else
  9167. # Double quotes because CPP needs to be expanded
  9168. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  9169. do
  9170. ac_preproc_ok=false
  9171. for ac_c_preproc_warn_flag in '' yes
  9172. do
  9173. # Use a header file that comes with gcc, so configuring glibc
  9174. # with a fresh cross-compiler works.
  9175. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9176. # <limits.h> exists even on freestanding compilers.
  9177. # On the NeXT, cc -E runs the code through the compiler's parser,
  9178. # not just through cpp. "Syntax error" is here to catch this case.
  9179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9180. /* end confdefs.h. */
  9181. #ifdef __STDC__
  9182. # include <limits.h>
  9183. #else
  9184. # include <assert.h>
  9185. #endif
  9186. Syntax error
  9187. _ACEOF
  9188. if ac_fn_c_try_cpp "$LINENO"; then :
  9189. else
  9190. # Broken: fails on valid input.
  9191. continue
  9192. fi
  9193. rm -f conftest.err conftest.$ac_ext
  9194. # OK, works on sane cases. Now check whether nonexistent headers
  9195. # can be detected and how.
  9196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9197. /* end confdefs.h. */
  9198. #include <ac_nonexistent.h>
  9199. _ACEOF
  9200. if ac_fn_c_try_cpp "$LINENO"; then :
  9201. # Broken: success on invalid input.
  9202. continue
  9203. else
  9204. # Passes both tests.
  9205. ac_preproc_ok=:
  9206. break
  9207. fi
  9208. rm -f conftest.err conftest.$ac_ext
  9209. done
  9210. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9211. rm -f conftest.err conftest.$ac_ext
  9212. if $ac_preproc_ok; then :
  9213. break
  9214. fi
  9215. done
  9216. ac_cv_prog_CPP=$CPP
  9217. fi
  9218. CPP=$ac_cv_prog_CPP
  9219. else
  9220. ac_cv_prog_CPP=$CPP
  9221. fi
  9222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  9223. $as_echo "$CPP" >&6; }
  9224. ac_preproc_ok=false
  9225. for ac_c_preproc_warn_flag in '' yes
  9226. do
  9227. # Use a header file that comes with gcc, so configuring glibc
  9228. # with a fresh cross-compiler works.
  9229. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9230. # <limits.h> exists even on freestanding compilers.
  9231. # On the NeXT, cc -E runs the code through the compiler's parser,
  9232. # not just through cpp. "Syntax error" is here to catch this case.
  9233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9234. /* end confdefs.h. */
  9235. #ifdef __STDC__
  9236. # include <limits.h>
  9237. #else
  9238. # include <assert.h>
  9239. #endif
  9240. Syntax error
  9241. _ACEOF
  9242. if ac_fn_c_try_cpp "$LINENO"; then :
  9243. else
  9244. # Broken: fails on valid input.
  9245. continue
  9246. fi
  9247. rm -f conftest.err conftest.$ac_ext
  9248. # OK, works on sane cases. Now check whether nonexistent headers
  9249. # can be detected and how.
  9250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9251. /* end confdefs.h. */
  9252. #include <ac_nonexistent.h>
  9253. _ACEOF
  9254. if ac_fn_c_try_cpp "$LINENO"; then :
  9255. # Broken: success on invalid input.
  9256. continue
  9257. else
  9258. # Passes both tests.
  9259. ac_preproc_ok=:
  9260. break
  9261. fi
  9262. rm -f conftest.err conftest.$ac_ext
  9263. done
  9264. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9265. rm -f conftest.err conftest.$ac_ext
  9266. if $ac_preproc_ok; then :
  9267. else
  9268. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9269. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9270. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  9271. See \`config.log' for more details." "$LINENO" 5; }
  9272. fi
  9273. ac_ext=c
  9274. ac_cpp='$CPP $CPPFLAGS'
  9275. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9276. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9277. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9278. if test -n "$with_cross_host"; then
  9279. # We are being configured with a cross compiler. AC_REPLACE_FUNCS
  9280. # may not work correctly, because the compiler may not be able to
  9281. # link executables.
  9282. # We assume newlib. This lets us hard-code the functions we know
  9283. # we'll have.
  9284. $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
  9285. $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
  9286. # We ignore --with-system-zlib in this case.
  9287. target_all=libzgcj.la
  9288. else
  9289. if test x$gcc_no_link = xyes; then
  9290. if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
  9291. ac_cv_func_mmap_fixed_mapped=no
  9292. fi
  9293. fi
  9294. if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
  9295. for ac_header in stdlib.h unistd.h
  9296. do :
  9297. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9298. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9299. eval as_val=\$$as_ac_Header
  9300. if test "x$as_val" = x""yes; then :
  9301. cat >>confdefs.h <<_ACEOF
  9302. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9303. _ACEOF
  9304. fi
  9305. done
  9306. for ac_func in getpagesize
  9307. do :
  9308. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  9309. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  9310. cat >>confdefs.h <<_ACEOF
  9311. #define HAVE_GETPAGESIZE 1
  9312. _ACEOF
  9313. fi
  9314. done
  9315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  9316. $as_echo_n "checking for working mmap... " >&6; }
  9317. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  9318. $as_echo_n "(cached) " >&6
  9319. else
  9320. if test "$cross_compiling" = yes; then :
  9321. ac_cv_func_mmap_fixed_mapped=no
  9322. else
  9323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9324. /* end confdefs.h. */
  9325. $ac_includes_default
  9326. /* malloc might have been renamed as rpl_malloc. */
  9327. #undef malloc
  9328. /* Thanks to Mike Haertel and Jim Avera for this test.
  9329. Here is a matrix of mmap possibilities:
  9330. mmap private not fixed
  9331. mmap private fixed at somewhere currently unmapped
  9332. mmap private fixed at somewhere already mapped
  9333. mmap shared not fixed
  9334. mmap shared fixed at somewhere currently unmapped
  9335. mmap shared fixed at somewhere already mapped
  9336. For private mappings, we should verify that changes cannot be read()
  9337. back from the file, nor mmap's back from the file at a different
  9338. address. (There have been systems where private was not correctly
  9339. implemented like the infamous i386 svr4.0, and systems where the
  9340. VM page cache was not coherent with the file system buffer cache
  9341. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9342. For shared mappings, we should conversely verify that changes get
  9343. propagated back to all the places they're supposed to be.
  9344. Grep wants private fixed already mapped.
  9345. The main things grep needs to know about mmap are:
  9346. * does it exist and is it safe to write into the mmap'd area
  9347. * how to use it (BSD variants) */
  9348. #include <fcntl.h>
  9349. #include <sys/mman.h>
  9350. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9351. char *malloc ();
  9352. #endif
  9353. /* This mess was copied from the GNU getpagesize.h. */
  9354. #ifndef HAVE_GETPAGESIZE
  9355. /* Assume that all systems that can run configure have sys/param.h. */
  9356. # ifndef HAVE_SYS_PARAM_H
  9357. # define HAVE_SYS_PARAM_H 1
  9358. # endif
  9359. # ifdef _SC_PAGESIZE
  9360. # define getpagesize() sysconf(_SC_PAGESIZE)
  9361. # else /* no _SC_PAGESIZE */
  9362. # ifdef HAVE_SYS_PARAM_H
  9363. # include <sys/param.h>
  9364. # ifdef EXEC_PAGESIZE
  9365. # define getpagesize() EXEC_PAGESIZE
  9366. # else /* no EXEC_PAGESIZE */
  9367. # ifdef NBPG
  9368. # define getpagesize() NBPG * CLSIZE
  9369. # ifndef CLSIZE
  9370. # define CLSIZE 1
  9371. # endif /* no CLSIZE */
  9372. # else /* no NBPG */
  9373. # ifdef NBPC
  9374. # define getpagesize() NBPC
  9375. # else /* no NBPC */
  9376. # ifdef PAGESIZE
  9377. # define getpagesize() PAGESIZE
  9378. # endif /* PAGESIZE */
  9379. # endif /* no NBPC */
  9380. # endif /* no NBPG */
  9381. # endif /* no EXEC_PAGESIZE */
  9382. # else /* no HAVE_SYS_PARAM_H */
  9383. # define getpagesize() 8192 /* punt totally */
  9384. # endif /* no HAVE_SYS_PARAM_H */
  9385. # endif /* no _SC_PAGESIZE */
  9386. #endif /* no HAVE_GETPAGESIZE */
  9387. int
  9388. main ()
  9389. {
  9390. char *data, *data2, *data3;
  9391. int i, pagesize;
  9392. int fd;
  9393. pagesize = getpagesize ();
  9394. /* First, make a file with some known garbage in it. */
  9395. data = (char *) malloc (pagesize);
  9396. if (!data)
  9397. return 1;
  9398. for (i = 0; i < pagesize; ++i)
  9399. *(data + i) = rand ();
  9400. umask (0);
  9401. fd = creat ("conftest.mmap", 0600);
  9402. if (fd < 0)
  9403. return 1;
  9404. if (write (fd, data, pagesize) != pagesize)
  9405. return 1;
  9406. close (fd);
  9407. /* Next, try to mmap the file at a fixed address which already has
  9408. something else allocated at it. If we can, also make sure that
  9409. we see the same garbage. */
  9410. fd = open ("conftest.mmap", O_RDWR);
  9411. if (fd < 0)
  9412. return 1;
  9413. data2 = (char *) malloc (2 * pagesize);
  9414. if (!data2)
  9415. return 1;
  9416. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9417. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9418. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9419. return 1;
  9420. for (i = 0; i < pagesize; ++i)
  9421. if (*(data + i) != *(data2 + i))
  9422. return 1;
  9423. /* Finally, make sure that changes to the mapped area do not
  9424. percolate back to the file as seen by read(). (This is a bug on
  9425. some variants of i386 svr4.0.) */
  9426. for (i = 0; i < pagesize; ++i)
  9427. *(data2 + i) = *(data2 + i) + 1;
  9428. data3 = (char *) malloc (pagesize);
  9429. if (!data3)
  9430. return 1;
  9431. if (read (fd, data3, pagesize) != pagesize)
  9432. return 1;
  9433. for (i = 0; i < pagesize; ++i)
  9434. if (*(data + i) != *(data3 + i))
  9435. return 1;
  9436. close (fd);
  9437. return 0;
  9438. }
  9439. _ACEOF
  9440. if ac_fn_c_try_run "$LINENO"; then :
  9441. ac_cv_func_mmap_fixed_mapped=yes
  9442. else
  9443. ac_cv_func_mmap_fixed_mapped=no
  9444. fi
  9445. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9446. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9447. fi
  9448. fi
  9449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9450. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  9451. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9452. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  9453. fi
  9454. rm -f conftest.mmap
  9455. fi
  9456. for ac_func in memcpy strerror
  9457. do :
  9458. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9459. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9460. eval as_val=\$$as_ac_var
  9461. if test "x$as_val" = x""yes; then :
  9462. cat >>confdefs.h <<_ACEOF
  9463. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9464. _ACEOF
  9465. fi
  9466. done
  9467. if test "$with_system_zlib" = yes; then
  9468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  9469. $as_echo_n "checking for deflate in -lz... " >&6; }
  9470. if test "${ac_cv_lib_z_deflate+set}" = set; then :
  9471. $as_echo_n "(cached) " >&6
  9472. else
  9473. ac_check_lib_save_LIBS=$LIBS
  9474. LIBS="-lz $LIBS"
  9475. if test x$gcc_no_link = xyes; then
  9476. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9477. fi
  9478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9479. /* end confdefs.h. */
  9480. /* Override any GCC internal prototype to avoid an error.
  9481. Use char because int might match the return type of a GCC
  9482. builtin and then its argument prototype would still apply. */
  9483. #ifdef __cplusplus
  9484. extern "C"
  9485. #endif
  9486. char deflate ();
  9487. int
  9488. main ()
  9489. {
  9490. return deflate ();
  9491. ;
  9492. return 0;
  9493. }
  9494. _ACEOF
  9495. if ac_fn_c_try_link "$LINENO"; then :
  9496. ac_cv_lib_z_deflate=yes
  9497. else
  9498. ac_cv_lib_z_deflate=no
  9499. fi
  9500. rm -f core conftest.err conftest.$ac_objext \
  9501. conftest$ac_exeext conftest.$ac_ext
  9502. LIBS=$ac_check_lib_save_LIBS
  9503. fi
  9504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  9505. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  9506. if test "x$ac_cv_lib_z_deflate" = x""yes; then :
  9507. target_all=
  9508. else
  9509. target_all=libzgcj.la
  9510. fi
  9511. else
  9512. target_all=libzgcj.la
  9513. fi
  9514. fi
  9515. for ac_header in unistd.h
  9516. do :
  9517. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  9518. if test "x$ac_cv_header_unistd_h" = x""yes; then :
  9519. cat >>confdefs.h <<_ACEOF
  9520. #define HAVE_UNISTD_H 1
  9521. _ACEOF
  9522. fi
  9523. done
  9524. if test -n "$with_cross_host" &&
  9525. test x"$with_cross_host" != x"no"; then
  9526. toolexecdir='$(exec_prefix)/$(target_alias)'
  9527. toolexeclibdir='$(toolexecdir)/lib'
  9528. else
  9529. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  9530. toolexeclibdir='$(libdir)'
  9531. fi
  9532. if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
  9533. multiosdir=/`$CC -print-multi-os-directory`
  9534. case $multiosdir in
  9535. /.) multiosdir= ;; # Avoid trailing /.
  9536. esac
  9537. else
  9538. multiosdir=
  9539. fi
  9540. toolexeclibdir=${toolexeclibdir}${multiosdir}
  9541. if test -n "$with_target_subdir"; then
  9542. TARGET_LIBRARY_TRUE=
  9543. TARGET_LIBRARY_FALSE='#'
  9544. else
  9545. TARGET_LIBRARY_TRUE='#'
  9546. TARGET_LIBRARY_FALSE=
  9547. fi
  9548. if test "${multilib}" = "yes"; then
  9549. multilib_arg="--enable-multilib"
  9550. else
  9551. multilib_arg=
  9552. fi
  9553. # Check whether --enable-host-shared was given.
  9554. if test "${enable_host_shared+set}" = set; then :
  9555. enableval=$enable_host_shared; PICFLAG=-fPIC
  9556. else
  9557. PICFLAG=
  9558. fi
  9559. ac_config_files="$ac_config_files Makefile"
  9560. cat >confcache <<\_ACEOF
  9561. # This file is a shell script that caches the results of configure
  9562. # tests run on this system so they can be shared between configure
  9563. # scripts and configure runs, see configure's option --config-cache.
  9564. # It is not useful on other systems. If it contains results you don't
  9565. # want to keep, you may remove or edit it.
  9566. #
  9567. # config.status only pays attention to the cache file if you give it
  9568. # the --recheck option to rerun configure.
  9569. #
  9570. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9571. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9572. # following values.
  9573. _ACEOF
  9574. # The following way of writing the cache mishandles newlines in values,
  9575. # but we know of no workaround that is simple, portable, and efficient.
  9576. # So, we kill variables containing newlines.
  9577. # Ultrix sh set writes to stderr and can't be redirected directly,
  9578. # and sets the high bit in the cache file unless we assign to the vars.
  9579. (
  9580. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9581. eval ac_val=\$$ac_var
  9582. case $ac_val in #(
  9583. *${as_nl}*)
  9584. case $ac_var in #(
  9585. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9586. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9587. esac
  9588. case $ac_var in #(
  9589. _ | IFS | as_nl) ;; #(
  9590. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9591. *) { eval $ac_var=; unset $ac_var;} ;;
  9592. esac ;;
  9593. esac
  9594. done
  9595. (set) 2>&1 |
  9596. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9597. *${as_nl}ac_space=\ *)
  9598. # `set' does not quote correctly, so add quotes: double-quote
  9599. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9600. sed -n \
  9601. "s/'/'\\\\''/g;
  9602. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9603. ;; #(
  9604. *)
  9605. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9606. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9607. ;;
  9608. esac |
  9609. sort
  9610. ) |
  9611. sed '
  9612. /^ac_cv_env_/b end
  9613. t clear
  9614. :clear
  9615. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9616. t end
  9617. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9618. :end' >>confcache
  9619. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9620. if test -w "$cache_file"; then
  9621. test "x$cache_file" != "x/dev/null" &&
  9622. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9623. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9624. cat confcache >$cache_file
  9625. else
  9626. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9627. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9628. fi
  9629. fi
  9630. rm -f confcache
  9631. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9632. # Let make expand exec_prefix.
  9633. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9634. # Transform confdefs.h into DEFS.
  9635. # Protect against shell expansion while executing Makefile rules.
  9636. # Protect against Makefile macro expansion.
  9637. #
  9638. # If the first sed substitution is executed (which looks for macros that
  9639. # take arguments), then branch to the quote section. Otherwise,
  9640. # look for a macro that doesn't take arguments.
  9641. ac_script='
  9642. :mline
  9643. /\\$/{
  9644. N
  9645. s,\\\n,,
  9646. b mline
  9647. }
  9648. t clear
  9649. :clear
  9650. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  9651. t quote
  9652. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  9653. t quote
  9654. b any
  9655. :quote
  9656. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  9657. s/\[/\\&/g
  9658. s/\]/\\&/g
  9659. s/\$/$$/g
  9660. H
  9661. :any
  9662. ${
  9663. g
  9664. s/^\n//
  9665. s/\n/ /g
  9666. p
  9667. }
  9668. '
  9669. DEFS=`sed -n "$ac_script" confdefs.h`
  9670. ac_libobjs=
  9671. ac_ltlibobjs=
  9672. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9673. # 1. Remove the extension, and $U if already installed.
  9674. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9675. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9676. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9677. # will be set to the directory where LIBOBJS objects are built.
  9678. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9679. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9680. done
  9681. LIBOBJS=$ac_libobjs
  9682. LTLIBOBJS=$ac_ltlibobjs
  9683. if test -n "$EXEEXT"; then
  9684. am__EXEEXT_TRUE=
  9685. am__EXEEXT_FALSE='#'
  9686. else
  9687. am__EXEEXT_TRUE='#'
  9688. am__EXEEXT_FALSE=
  9689. fi
  9690. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  9691. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  9692. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9693. fi
  9694. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9695. as_fn_error "conditional \"AMDEP\" was never defined.
  9696. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9697. fi
  9698. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9699. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  9700. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9701. fi
  9702. if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
  9703. as_fn_error "conditional \"TARGET_LIBRARY\" was never defined.
  9704. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9705. fi
  9706. : ${CONFIG_STATUS=./config.status}
  9707. ac_write_fail=0
  9708. ac_clean_files_save=$ac_clean_files
  9709. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9710. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9711. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9712. as_write_fail=0
  9713. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9714. #! $SHELL
  9715. # Generated by $as_me.
  9716. # Run this file to recreate the current configuration.
  9717. # Compiler output produced by configure, useful for debugging
  9718. # configure, is in config.log if it exists.
  9719. debug=false
  9720. ac_cs_recheck=false
  9721. ac_cs_silent=false
  9722. SHELL=\${CONFIG_SHELL-$SHELL}
  9723. export SHELL
  9724. _ASEOF
  9725. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9726. ## -------------------- ##
  9727. ## M4sh Initialization. ##
  9728. ## -------------------- ##
  9729. # Be more Bourne compatible
  9730. DUALCASE=1; export DUALCASE # for MKS sh
  9731. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9732. emulate sh
  9733. NULLCMD=:
  9734. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9735. # is contrary to our usage. Disable this feature.
  9736. alias -g '${1+"$@"}'='"$@"'
  9737. setopt NO_GLOB_SUBST
  9738. else
  9739. case `(set -o) 2>/dev/null` in #(
  9740. *posix*) :
  9741. set -o posix ;; #(
  9742. *) :
  9743. ;;
  9744. esac
  9745. fi
  9746. as_nl='
  9747. '
  9748. export as_nl
  9749. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9750. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9751. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9752. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9753. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9754. # but without wasting forks for bash or zsh.
  9755. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9756. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9757. as_echo='print -r --'
  9758. as_echo_n='print -rn --'
  9759. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9760. as_echo='printf %s\n'
  9761. as_echo_n='printf %s'
  9762. else
  9763. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9764. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9765. as_echo_n='/usr/ucb/echo -n'
  9766. else
  9767. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9768. as_echo_n_body='eval
  9769. arg=$1;
  9770. case $arg in #(
  9771. *"$as_nl"*)
  9772. expr "X$arg" : "X\\(.*\\)$as_nl";
  9773. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9774. esac;
  9775. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9776. '
  9777. export as_echo_n_body
  9778. as_echo_n='sh -c $as_echo_n_body as_echo'
  9779. fi
  9780. export as_echo_body
  9781. as_echo='sh -c $as_echo_body as_echo'
  9782. fi
  9783. # The user is always right.
  9784. if test "${PATH_SEPARATOR+set}" != set; then
  9785. PATH_SEPARATOR=:
  9786. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9787. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9788. PATH_SEPARATOR=';'
  9789. }
  9790. fi
  9791. # IFS
  9792. # We need space, tab and new line, in precisely that order. Quoting is
  9793. # there to prevent editors from complaining about space-tab.
  9794. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9795. # splitting by setting IFS to empty value.)
  9796. IFS=" "" $as_nl"
  9797. # Find who we are. Look in the path if we contain no directory separator.
  9798. case $0 in #((
  9799. *[\\/]* ) as_myself=$0 ;;
  9800. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9801. for as_dir in $PATH
  9802. do
  9803. IFS=$as_save_IFS
  9804. test -z "$as_dir" && as_dir=.
  9805. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9806. done
  9807. IFS=$as_save_IFS
  9808. ;;
  9809. esac
  9810. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9811. # in which case we are not to be found in the path.
  9812. if test "x$as_myself" = x; then
  9813. as_myself=$0
  9814. fi
  9815. if test ! -f "$as_myself"; then
  9816. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9817. exit 1
  9818. fi
  9819. # Unset variables that we do not need and which cause bugs (e.g. in
  9820. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9821. # suppresses any "Segmentation fault" message there. '((' could
  9822. # trigger a bug in pdksh 5.2.14.
  9823. for as_var in BASH_ENV ENV MAIL MAILPATH
  9824. do eval test x\${$as_var+set} = xset \
  9825. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9826. done
  9827. PS1='$ '
  9828. PS2='> '
  9829. PS4='+ '
  9830. # NLS nuisances.
  9831. LC_ALL=C
  9832. export LC_ALL
  9833. LANGUAGE=C
  9834. export LANGUAGE
  9835. # CDPATH.
  9836. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9837. # as_fn_error ERROR [LINENO LOG_FD]
  9838. # ---------------------------------
  9839. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9840. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9841. # script with status $?, using 1 if that was 0.
  9842. as_fn_error ()
  9843. {
  9844. as_status=$?; test $as_status -eq 0 && as_status=1
  9845. if test "$3"; then
  9846. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9847. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  9848. fi
  9849. $as_echo "$as_me: error: $1" >&2
  9850. as_fn_exit $as_status
  9851. } # as_fn_error
  9852. # as_fn_set_status STATUS
  9853. # -----------------------
  9854. # Set $? to STATUS, without forking.
  9855. as_fn_set_status ()
  9856. {
  9857. return $1
  9858. } # as_fn_set_status
  9859. # as_fn_exit STATUS
  9860. # -----------------
  9861. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9862. as_fn_exit ()
  9863. {
  9864. set +e
  9865. as_fn_set_status $1
  9866. exit $1
  9867. } # as_fn_exit
  9868. # as_fn_unset VAR
  9869. # ---------------
  9870. # Portably unset VAR.
  9871. as_fn_unset ()
  9872. {
  9873. { eval $1=; unset $1;}
  9874. }
  9875. as_unset=as_fn_unset
  9876. # as_fn_append VAR VALUE
  9877. # ----------------------
  9878. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9879. # advantage of any shell optimizations that allow amortized linear growth over
  9880. # repeated appends, instead of the typical quadratic growth present in naive
  9881. # implementations.
  9882. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9883. eval 'as_fn_append ()
  9884. {
  9885. eval $1+=\$2
  9886. }'
  9887. else
  9888. as_fn_append ()
  9889. {
  9890. eval $1=\$$1\$2
  9891. }
  9892. fi # as_fn_append
  9893. # as_fn_arith ARG...
  9894. # ------------------
  9895. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9896. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9897. # must be portable across $(()) and expr.
  9898. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9899. eval 'as_fn_arith ()
  9900. {
  9901. as_val=$(( $* ))
  9902. }'
  9903. else
  9904. as_fn_arith ()
  9905. {
  9906. as_val=`expr "$@" || test $? -eq 1`
  9907. }
  9908. fi # as_fn_arith
  9909. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9910. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9911. as_expr=expr
  9912. else
  9913. as_expr=false
  9914. fi
  9915. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9916. as_basename=basename
  9917. else
  9918. as_basename=false
  9919. fi
  9920. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9921. as_dirname=dirname
  9922. else
  9923. as_dirname=false
  9924. fi
  9925. as_me=`$as_basename -- "$0" ||
  9926. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9927. X"$0" : 'X\(//\)$' \| \
  9928. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9929. $as_echo X/"$0" |
  9930. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9931. s//\1/
  9932. q
  9933. }
  9934. /^X\/\(\/\/\)$/{
  9935. s//\1/
  9936. q
  9937. }
  9938. /^X\/\(\/\).*/{
  9939. s//\1/
  9940. q
  9941. }
  9942. s/.*/./; q'`
  9943. # Avoid depending upon Character Ranges.
  9944. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9945. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9946. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9947. as_cr_digits='0123456789'
  9948. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9949. ECHO_C= ECHO_N= ECHO_T=
  9950. case `echo -n x` in #(((((
  9951. -n*)
  9952. case `echo 'xy\c'` in
  9953. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9954. xy) ECHO_C='\c';;
  9955. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9956. ECHO_T=' ';;
  9957. esac;;
  9958. *)
  9959. ECHO_N='-n';;
  9960. esac
  9961. rm -f conf$$ conf$$.exe conf$$.file
  9962. if test -d conf$$.dir; then
  9963. rm -f conf$$.dir/conf$$.file
  9964. else
  9965. rm -f conf$$.dir
  9966. mkdir conf$$.dir 2>/dev/null
  9967. fi
  9968. if (echo >conf$$.file) 2>/dev/null; then
  9969. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9970. as_ln_s='ln -s'
  9971. # ... but there are two gotchas:
  9972. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9973. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9974. # In both cases, we have to default to `cp -p'.
  9975. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9976. as_ln_s='cp -p'
  9977. elif ln conf$$.file conf$$ 2>/dev/null; then
  9978. as_ln_s=ln
  9979. else
  9980. as_ln_s='cp -p'
  9981. fi
  9982. else
  9983. as_ln_s='cp -p'
  9984. fi
  9985. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9986. rmdir conf$$.dir 2>/dev/null
  9987. # as_fn_mkdir_p
  9988. # -------------
  9989. # Create "$as_dir" as a directory, including parents if necessary.
  9990. as_fn_mkdir_p ()
  9991. {
  9992. case $as_dir in #(
  9993. -*) as_dir=./$as_dir;;
  9994. esac
  9995. test -d "$as_dir" || eval $as_mkdir_p || {
  9996. as_dirs=
  9997. while :; do
  9998. case $as_dir in #(
  9999. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10000. *) as_qdir=$as_dir;;
  10001. esac
  10002. as_dirs="'$as_qdir' $as_dirs"
  10003. as_dir=`$as_dirname -- "$as_dir" ||
  10004. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10005. X"$as_dir" : 'X\(//\)[^/]' \| \
  10006. X"$as_dir" : 'X\(//\)$' \| \
  10007. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10008. $as_echo X"$as_dir" |
  10009. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10010. s//\1/
  10011. q
  10012. }
  10013. /^X\(\/\/\)[^/].*/{
  10014. s//\1/
  10015. q
  10016. }
  10017. /^X\(\/\/\)$/{
  10018. s//\1/
  10019. q
  10020. }
  10021. /^X\(\/\).*/{
  10022. s//\1/
  10023. q
  10024. }
  10025. s/.*/./; q'`
  10026. test -d "$as_dir" && break
  10027. done
  10028. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10029. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  10030. } # as_fn_mkdir_p
  10031. if mkdir -p . 2>/dev/null; then
  10032. as_mkdir_p='mkdir -p "$as_dir"'
  10033. else
  10034. test -d ./-p && rmdir ./-p
  10035. as_mkdir_p=false
  10036. fi
  10037. if test -x / >/dev/null 2>&1; then
  10038. as_test_x='test -x'
  10039. else
  10040. if ls -dL / >/dev/null 2>&1; then
  10041. as_ls_L_option=L
  10042. else
  10043. as_ls_L_option=
  10044. fi
  10045. as_test_x='
  10046. eval sh -c '\''
  10047. if test -d "$1"; then
  10048. test -d "$1/.";
  10049. else
  10050. case $1 in #(
  10051. -*)set "./$1";;
  10052. esac;
  10053. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  10054. ???[sx]*):;;*)false;;esac;fi
  10055. '\'' sh
  10056. '
  10057. fi
  10058. as_executable_p=$as_test_x
  10059. # Sed expression to map a string onto a valid CPP name.
  10060. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10061. # Sed expression to map a string onto a valid variable name.
  10062. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10063. exec 6>&1
  10064. ## ----------------------------------- ##
  10065. ## Main body of $CONFIG_STATUS script. ##
  10066. ## ----------------------------------- ##
  10067. _ASEOF
  10068. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10069. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10070. # Save the log message, to keep $0 and so on meaningful, and to
  10071. # report actual input values of CONFIG_FILES etc. instead of their
  10072. # values after options handling.
  10073. ac_log="
  10074. This file was extended by $as_me, which was
  10075. generated by GNU Autoconf 2.64. Invocation command line was
  10076. CONFIG_FILES = $CONFIG_FILES
  10077. CONFIG_HEADERS = $CONFIG_HEADERS
  10078. CONFIG_LINKS = $CONFIG_LINKS
  10079. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10080. $ $0 $@
  10081. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10082. "
  10083. _ACEOF
  10084. case $ac_config_files in *"
  10085. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10086. esac
  10087. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10088. # Files that config.status was made for.
  10089. config_files="$ac_config_files"
  10090. config_commands="$ac_config_commands"
  10091. _ACEOF
  10092. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10093. ac_cs_usage="\
  10094. \`$as_me' instantiates files and other configuration actions
  10095. from templates according to the current configuration. Unless the files
  10096. and actions are specified as TAGs, all are instantiated by default.
  10097. Usage: $0 [OPTION]... [TAG]...
  10098. -h, --help print this help, then exit
  10099. -V, --version print version number and configuration settings, then exit
  10100. -q, --quiet, --silent
  10101. do not print progress messages
  10102. -d, --debug don't remove temporary files
  10103. --recheck update $as_me by reconfiguring in the same conditions
  10104. --file=FILE[:TEMPLATE]
  10105. instantiate the configuration file FILE
  10106. Configuration files:
  10107. $config_files
  10108. Configuration commands:
  10109. $config_commands
  10110. Report bugs to the package provider."
  10111. _ACEOF
  10112. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10113. ac_cs_version="\\
  10114. config.status
  10115. configured by $0, generated by GNU Autoconf 2.64,
  10116. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  10117. Copyright (C) 2009 Free Software Foundation, Inc.
  10118. This config.status script is free software; the Free Software Foundation
  10119. gives unlimited permission to copy, distribute and modify it."
  10120. ac_pwd='$ac_pwd'
  10121. srcdir='$srcdir'
  10122. INSTALL='$INSTALL'
  10123. MKDIR_P='$MKDIR_P'
  10124. AWK='$AWK'
  10125. test -n "\$AWK" || AWK=awk
  10126. _ACEOF
  10127. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10128. # The default lists apply if the user does not specify any file.
  10129. ac_need_defaults=:
  10130. while test $# != 0
  10131. do
  10132. case $1 in
  10133. --*=*)
  10134. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10135. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10136. ac_shift=:
  10137. ;;
  10138. *)
  10139. ac_option=$1
  10140. ac_optarg=$2
  10141. ac_shift=shift
  10142. ;;
  10143. esac
  10144. case $ac_option in
  10145. # Handling of the options.
  10146. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10147. ac_cs_recheck=: ;;
  10148. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10149. $as_echo "$ac_cs_version"; exit ;;
  10150. --debug | --debu | --deb | --de | --d | -d )
  10151. debug=: ;;
  10152. --file | --fil | --fi | --f )
  10153. $ac_shift
  10154. case $ac_optarg in
  10155. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10156. esac
  10157. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10158. ac_need_defaults=false;;
  10159. --he | --h | --help | --hel | -h )
  10160. $as_echo "$ac_cs_usage"; exit ;;
  10161. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10162. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10163. ac_cs_silent=: ;;
  10164. # This is an error.
  10165. -*) as_fn_error "unrecognized option: \`$1'
  10166. Try \`$0 --help' for more information." ;;
  10167. *) as_fn_append ac_config_targets " $1"
  10168. ac_need_defaults=false ;;
  10169. esac
  10170. shift
  10171. done
  10172. ac_configure_extra_args=
  10173. if $ac_cs_silent; then
  10174. exec 6>/dev/null
  10175. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10176. fi
  10177. _ACEOF
  10178. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10179. if \$ac_cs_recheck; then
  10180. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10181. shift
  10182. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10183. CONFIG_SHELL='$SHELL'
  10184. export CONFIG_SHELL
  10185. exec "\$@"
  10186. fi
  10187. _ACEOF
  10188. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10189. exec 5>>config.log
  10190. {
  10191. echo
  10192. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10193. ## Running $as_me. ##
  10194. _ASBOX
  10195. $as_echo "$ac_log"
  10196. } >&5
  10197. _ACEOF
  10198. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10199. #
  10200. # INIT-COMMANDS
  10201. #
  10202. srcdir="$srcdir"
  10203. host="$host"
  10204. target="$target"
  10205. with_multisubdir="$with_multisubdir"
  10206. with_multisrctop="$with_multisrctop"
  10207. with_target_subdir="$with_target_subdir"
  10208. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  10209. multi_basedir="$multi_basedir"
  10210. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  10211. CC="$CC"
  10212. CXX="$CXX"
  10213. GFORTRAN="$GFORTRAN"
  10214. GCJ="$GCJ"
  10215. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10216. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10217. # if CDPATH is set.
  10218. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10219. sed_quote_subst='$sed_quote_subst'
  10220. double_quote_subst='$double_quote_subst'
  10221. delay_variable_subst='$delay_variable_subst'
  10222. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10223. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10224. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10225. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10226. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10227. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10228. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10229. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10230. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10231. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10232. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10233. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10234. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10235. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10236. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10237. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10238. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10239. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10240. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10241. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10242. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10243. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10244. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10245. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10246. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10247. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10248. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10249. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10250. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10251. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10252. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10253. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10254. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10255. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10256. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10257. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10258. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10259. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10260. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10261. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10262. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10263. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10264. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10265. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10266. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10267. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10268. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10269. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10270. 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"`'
  10271. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10272. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10273. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10274. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10275. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10276. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10277. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10278. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10279. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10280. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10281. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10282. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10283. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10284. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10285. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10286. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10287. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10288. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10289. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10290. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10291. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10292. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10293. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10294. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10295. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10296. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10297. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10298. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10299. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10300. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10301. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10302. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  10303. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10304. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10305. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10306. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10307. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10308. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10309. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10310. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10311. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  10312. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10313. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10314. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10315. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10316. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10317. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10318. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10319. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10320. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10321. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10322. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10323. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10324. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10325. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10326. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10327. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10328. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10329. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10330. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10331. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10332. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10333. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10334. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10335. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10336. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10337. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10338. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10339. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10340. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10341. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10342. LTCC='$LTCC'
  10343. LTCFLAGS='$LTCFLAGS'
  10344. compiler='$compiler_DEFAULT'
  10345. # A function that is used when there is no print builtin or printf.
  10346. func_fallback_echo ()
  10347. {
  10348. eval 'cat <<_LTECHO_EOF
  10349. \$1
  10350. _LTECHO_EOF'
  10351. }
  10352. # Quote evaled strings.
  10353. for var in SHELL \
  10354. ECHO \
  10355. SED \
  10356. GREP \
  10357. EGREP \
  10358. FGREP \
  10359. LD \
  10360. NM \
  10361. LN_S \
  10362. lt_SP2NL \
  10363. lt_NL2SP \
  10364. reload_flag \
  10365. OBJDUMP \
  10366. deplibs_check_method \
  10367. file_magic_cmd \
  10368. AR \
  10369. AR_FLAGS \
  10370. STRIP \
  10371. RANLIB \
  10372. CC \
  10373. CFLAGS \
  10374. compiler \
  10375. lt_cv_sys_global_symbol_pipe \
  10376. lt_cv_sys_global_symbol_to_cdecl \
  10377. lt_cv_sys_global_symbol_to_c_name_address \
  10378. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10379. lt_prog_compiler_no_builtin_flag \
  10380. lt_prog_compiler_wl \
  10381. lt_prog_compiler_pic \
  10382. lt_prog_compiler_static \
  10383. lt_cv_prog_compiler_c_o \
  10384. need_locks \
  10385. DSYMUTIL \
  10386. NMEDIT \
  10387. LIPO \
  10388. OTOOL \
  10389. OTOOL64 \
  10390. shrext_cmds \
  10391. export_dynamic_flag_spec \
  10392. whole_archive_flag_spec \
  10393. compiler_needs_object \
  10394. with_gnu_ld \
  10395. allow_undefined_flag \
  10396. no_undefined_flag \
  10397. hardcode_libdir_flag_spec \
  10398. hardcode_libdir_flag_spec_ld \
  10399. hardcode_libdir_separator \
  10400. fix_srcfile_path \
  10401. exclude_expsyms \
  10402. include_expsyms \
  10403. file_list_spec \
  10404. variables_saved_for_relink \
  10405. libname_spec \
  10406. library_names_spec \
  10407. soname_spec \
  10408. install_override_mode \
  10409. finish_eval \
  10410. old_striplib \
  10411. striplib; do
  10412. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10413. *[\\\\\\\`\\"\\\$]*)
  10414. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10415. ;;
  10416. *)
  10417. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10418. ;;
  10419. esac
  10420. done
  10421. # Double-quote double-evaled strings.
  10422. for var in reload_cmds \
  10423. old_postinstall_cmds \
  10424. old_postuninstall_cmds \
  10425. old_archive_cmds \
  10426. extract_expsyms_cmds \
  10427. old_archive_from_new_cmds \
  10428. old_archive_from_expsyms_cmds \
  10429. archive_cmds \
  10430. archive_expsym_cmds \
  10431. module_cmds \
  10432. module_expsym_cmds \
  10433. export_symbols_cmds \
  10434. prelink_cmds \
  10435. postinstall_cmds \
  10436. postuninstall_cmds \
  10437. finish_cmds \
  10438. sys_lib_search_path_spec \
  10439. sys_lib_dlsearch_path_spec; do
  10440. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10441. *[\\\\\\\`\\"\\\$]*)
  10442. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10443. ;;
  10444. *)
  10445. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10446. ;;
  10447. esac
  10448. done
  10449. ac_aux_dir='$ac_aux_dir'
  10450. xsi_shell='$xsi_shell'
  10451. lt_shell_append='$lt_shell_append'
  10452. # See if we are running on zsh, and set the options which allow our
  10453. # commands through without removal of \ escapes INIT.
  10454. if test -n "\${ZSH_VERSION+set}" ; then
  10455. setopt NO_GLOB_SUBST
  10456. fi
  10457. PACKAGE='$PACKAGE'
  10458. VERSION='$VERSION'
  10459. TIMESTAMP='$TIMESTAMP'
  10460. RM='$RM'
  10461. ofile='$ofile'
  10462. _ACEOF
  10463. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10464. # Handling of arguments.
  10465. for ac_config_target in $ac_config_targets
  10466. do
  10467. case $ac_config_target in
  10468. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10469. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10470. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10471. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10472. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10473. esac
  10474. done
  10475. # If the user did not use the arguments to specify the items to instantiate,
  10476. # then the envvar interface is used. Set only those that are not.
  10477. # We use the long form for the default assignment because of an extremely
  10478. # bizarre bug on SunOS 4.1.3.
  10479. if $ac_need_defaults; then
  10480. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10481. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10482. fi
  10483. # Have a temporary directory for convenience. Make it in the build tree
  10484. # simply because there is no reason against having it here, and in addition,
  10485. # creating and moving files from /tmp can sometimes cause problems.
  10486. # Hook for its removal unless debugging.
  10487. # Note that there is a small window in which the directory will not be cleaned:
  10488. # after its creation but before its name has been assigned to `$tmp'.
  10489. $debug ||
  10490. {
  10491. tmp=
  10492. trap 'exit_status=$?
  10493. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  10494. ' 0
  10495. trap 'as_fn_exit 1' 1 2 13 15
  10496. }
  10497. # Create a (secure) tmp directory for tmp files.
  10498. {
  10499. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10500. test -n "$tmp" && test -d "$tmp"
  10501. } ||
  10502. {
  10503. tmp=./conf$$-$RANDOM
  10504. (umask 077 && mkdir "$tmp")
  10505. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  10506. # Set up the scripts for CONFIG_FILES section.
  10507. # No need to generate them if there are no CONFIG_FILES.
  10508. # This happens for instance with `./config.status config.h'.
  10509. if test -n "$CONFIG_FILES"; then
  10510. ac_cr=`echo X | tr X '\015'`
  10511. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10512. # But we know of no other shell where ac_cr would be empty at this
  10513. # point, so we can use a bashism as a fallback.
  10514. if test "x$ac_cr" = x; then
  10515. eval ac_cr=\$\'\\r\'
  10516. fi
  10517. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10518. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10519. ac_cs_awk_cr='\r'
  10520. else
  10521. ac_cs_awk_cr=$ac_cr
  10522. fi
  10523. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  10524. _ACEOF
  10525. {
  10526. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10527. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10528. echo "_ACEOF"
  10529. } >conf$$subs.sh ||
  10530. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10531. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  10532. ac_delim='%!_!# '
  10533. for ac_last_try in false false false false false :; do
  10534. . ./conf$$subs.sh ||
  10535. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10536. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10537. if test $ac_delim_n = $ac_delim_num; then
  10538. break
  10539. elif $ac_last_try; then
  10540. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10541. else
  10542. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10543. fi
  10544. done
  10545. rm -f conf$$subs.sh
  10546. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10547. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  10548. _ACEOF
  10549. sed -n '
  10550. h
  10551. s/^/S["/; s/!.*/"]=/
  10552. p
  10553. g
  10554. s/^[^!]*!//
  10555. :repl
  10556. t repl
  10557. s/'"$ac_delim"'$//
  10558. t delim
  10559. :nl
  10560. h
  10561. s/\(.\{148\}\).*/\1/
  10562. t more1
  10563. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10564. p
  10565. n
  10566. b repl
  10567. :more1
  10568. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10569. p
  10570. g
  10571. s/.\{148\}//
  10572. t nl
  10573. :delim
  10574. h
  10575. s/\(.\{148\}\).*/\1/
  10576. t more2
  10577. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10578. p
  10579. b
  10580. :more2
  10581. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10582. p
  10583. g
  10584. s/.\{148\}//
  10585. t delim
  10586. ' <conf$$subs.awk | sed '
  10587. /^[^""]/{
  10588. N
  10589. s/\n//
  10590. }
  10591. ' >>$CONFIG_STATUS || ac_write_fail=1
  10592. rm -f conf$$subs.awk
  10593. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10594. _ACAWK
  10595. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  10596. for (key in S) S_is_set[key] = 1
  10597. FS = ""
  10598. }
  10599. {
  10600. line = $ 0
  10601. nfields = split(line, field, "@")
  10602. substed = 0
  10603. len = length(field[1])
  10604. for (i = 2; i < nfields; i++) {
  10605. key = field[i]
  10606. keylen = length(key)
  10607. if (S_is_set[key]) {
  10608. value = S[key]
  10609. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10610. len += length(value) + length(field[++i])
  10611. substed = 1
  10612. } else
  10613. len += 1 + keylen
  10614. }
  10615. print line
  10616. }
  10617. _ACAWK
  10618. _ACEOF
  10619. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10620. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10621. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10622. else
  10623. cat
  10624. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  10625. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  10626. _ACEOF
  10627. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10628. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10629. # trailing colons and then remove the whole line if VPATH becomes empty
  10630. # (actually we leave an empty line to preserve line numbers).
  10631. if test "x$srcdir" = x.; then
  10632. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10633. s/:*\$(srcdir):*/:/
  10634. s/:*\${srcdir}:*/:/
  10635. s/:*@srcdir@:*/:/
  10636. s/^\([^=]*=[ ]*\):*/\1/
  10637. s/:*$//
  10638. s/^[^=]*=[ ]*$//
  10639. }'
  10640. fi
  10641. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10642. fi # test -n "$CONFIG_FILES"
  10643. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  10644. shift
  10645. for ac_tag
  10646. do
  10647. case $ac_tag in
  10648. :[FHLC]) ac_mode=$ac_tag; continue;;
  10649. esac
  10650. case $ac_mode$ac_tag in
  10651. :[FHL]*:*);;
  10652. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10653. :[FH]-) ac_tag=-:-;;
  10654. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10655. esac
  10656. ac_save_IFS=$IFS
  10657. IFS=:
  10658. set x $ac_tag
  10659. IFS=$ac_save_IFS
  10660. shift
  10661. ac_file=$1
  10662. shift
  10663. case $ac_mode in
  10664. :L) ac_source=$1;;
  10665. :[FH])
  10666. ac_file_inputs=
  10667. for ac_f
  10668. do
  10669. case $ac_f in
  10670. -) ac_f="$tmp/stdin";;
  10671. *) # Look for the file first in the build tree, then in the source tree
  10672. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10673. # because $ac_f cannot contain `:'.
  10674. test -f "$ac_f" ||
  10675. case $ac_f in
  10676. [\\/$]*) false;;
  10677. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10678. esac ||
  10679. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10680. esac
  10681. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10682. as_fn_append ac_file_inputs " '$ac_f'"
  10683. done
  10684. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10685. # use $as_me), people would be surprised to read:
  10686. # /* config.h. Generated by config.status. */
  10687. configure_input='Generated from '`
  10688. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10689. `' by configure.'
  10690. if test x"$ac_file" != x-; then
  10691. configure_input="$ac_file. $configure_input"
  10692. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10693. $as_echo "$as_me: creating $ac_file" >&6;}
  10694. fi
  10695. # Neutralize special characters interpreted by sed in replacement strings.
  10696. case $configure_input in #(
  10697. *\&* | *\|* | *\\* )
  10698. ac_sed_conf_input=`$as_echo "$configure_input" |
  10699. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10700. *) ac_sed_conf_input=$configure_input;;
  10701. esac
  10702. case $ac_tag in
  10703. *:-:* | *:-) cat >"$tmp/stdin" \
  10704. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  10705. esac
  10706. ;;
  10707. esac
  10708. ac_dir=`$as_dirname -- "$ac_file" ||
  10709. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10710. X"$ac_file" : 'X\(//\)[^/]' \| \
  10711. X"$ac_file" : 'X\(//\)$' \| \
  10712. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10713. $as_echo X"$ac_file" |
  10714. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10715. s//\1/
  10716. q
  10717. }
  10718. /^X\(\/\/\)[^/].*/{
  10719. s//\1/
  10720. q
  10721. }
  10722. /^X\(\/\/\)$/{
  10723. s//\1/
  10724. q
  10725. }
  10726. /^X\(\/\).*/{
  10727. s//\1/
  10728. q
  10729. }
  10730. s/.*/./; q'`
  10731. as_dir="$ac_dir"; as_fn_mkdir_p
  10732. ac_builddir=.
  10733. case "$ac_dir" in
  10734. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10735. *)
  10736. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10737. # A ".." for each directory in $ac_dir_suffix.
  10738. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10739. case $ac_top_builddir_sub in
  10740. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10741. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10742. esac ;;
  10743. esac
  10744. ac_abs_top_builddir=$ac_pwd
  10745. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10746. # for backward compatibility:
  10747. ac_top_builddir=$ac_top_build_prefix
  10748. case $srcdir in
  10749. .) # We are building in place.
  10750. ac_srcdir=.
  10751. ac_top_srcdir=$ac_top_builddir_sub
  10752. ac_abs_top_srcdir=$ac_pwd ;;
  10753. [\\/]* | ?:[\\/]* ) # Absolute name.
  10754. ac_srcdir=$srcdir$ac_dir_suffix;
  10755. ac_top_srcdir=$srcdir
  10756. ac_abs_top_srcdir=$srcdir ;;
  10757. *) # Relative name.
  10758. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10759. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10760. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10761. esac
  10762. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10763. case $ac_mode in
  10764. :F)
  10765. #
  10766. # CONFIG_FILE
  10767. #
  10768. case $INSTALL in
  10769. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10770. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10771. esac
  10772. ac_MKDIR_P=$MKDIR_P
  10773. case $MKDIR_P in
  10774. [\\/$]* | ?:[\\/]* ) ;;
  10775. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10776. esac
  10777. _ACEOF
  10778. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10779. # If the template does not know about datarootdir, expand it.
  10780. # FIXME: This hack should be removed a few years after 2.60.
  10781. ac_datarootdir_hack=; ac_datarootdir_seen=
  10782. ac_sed_dataroot='
  10783. /datarootdir/ {
  10784. p
  10785. q
  10786. }
  10787. /@datadir@/p
  10788. /@docdir@/p
  10789. /@infodir@/p
  10790. /@localedir@/p
  10791. /@mandir@/p'
  10792. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10793. *datarootdir*) ac_datarootdir_seen=yes;;
  10794. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10796. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10797. _ACEOF
  10798. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10799. ac_datarootdir_hack='
  10800. s&@datadir@&$datadir&g
  10801. s&@docdir@&$docdir&g
  10802. s&@infodir@&$infodir&g
  10803. s&@localedir@&$localedir&g
  10804. s&@mandir@&$mandir&g
  10805. s&\\\${datarootdir}&$datarootdir&g' ;;
  10806. esac
  10807. _ACEOF
  10808. # Neutralize VPATH when `$srcdir' = `.'.
  10809. # Shell code in configure.ac might set extrasub.
  10810. # FIXME: do we really want to maintain this feature?
  10811. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10812. ac_sed_extra="$ac_vpsub
  10813. $extrasub
  10814. _ACEOF
  10815. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10816. :t
  10817. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10818. s|@configure_input@|$ac_sed_conf_input|;t t
  10819. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10820. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10821. s&@srcdir@&$ac_srcdir&;t t
  10822. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10823. s&@top_srcdir@&$ac_top_srcdir&;t t
  10824. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10825. s&@builddir@&$ac_builddir&;t t
  10826. s&@abs_builddir@&$ac_abs_builddir&;t t
  10827. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10828. s&@INSTALL@&$ac_INSTALL&;t t
  10829. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10830. $ac_datarootdir_hack
  10831. "
  10832. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  10833. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10834. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10835. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  10836. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  10837. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10838. which seems to be undefined. Please make sure it is defined." >&5
  10839. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10840. which seems to be undefined. Please make sure it is defined." >&2;}
  10841. rm -f "$tmp/stdin"
  10842. case $ac_file in
  10843. -) cat "$tmp/out" && rm -f "$tmp/out";;
  10844. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  10845. esac \
  10846. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10847. ;;
  10848. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10849. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10850. ;;
  10851. esac
  10852. case $ac_file$ac_mode in
  10853. "default-1":C)
  10854. # Only add multilib support code if we just rebuilt the top-level
  10855. # Makefile.
  10856. case " $CONFIG_FILES " in
  10857. *" Makefile "*)
  10858. ac_file=Makefile . ${multi_basedir}/config-ml.in
  10859. ;;
  10860. esac ;;
  10861. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10862. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10863. # are listed without --file. Let's play safe and only enable the eval
  10864. # if we detect the quoting.
  10865. case $CONFIG_FILES in
  10866. *\'*) eval set x "$CONFIG_FILES" ;;
  10867. *) set x $CONFIG_FILES ;;
  10868. esac
  10869. shift
  10870. for mf
  10871. do
  10872. # Strip MF so we end up with the name of the file.
  10873. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10874. # Check whether this is an Automake generated Makefile or not.
  10875. # We used to match only the files named `Makefile.in', but
  10876. # some people rename them; so instead we look at the file content.
  10877. # Grep'ing the first line is not enough: some people post-process
  10878. # each Makefile.in and add a new line on top of each file to say so.
  10879. # Grep'ing the whole file is not good either: AIX grep has a line
  10880. # limit of 2048, but all sed's we know have understand at least 4000.
  10881. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10882. dirpart=`$as_dirname -- "$mf" ||
  10883. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10884. X"$mf" : 'X\(//\)[^/]' \| \
  10885. X"$mf" : 'X\(//\)$' \| \
  10886. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10887. $as_echo X"$mf" |
  10888. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10889. s//\1/
  10890. q
  10891. }
  10892. /^X\(\/\/\)[^/].*/{
  10893. s//\1/
  10894. q
  10895. }
  10896. /^X\(\/\/\)$/{
  10897. s//\1/
  10898. q
  10899. }
  10900. /^X\(\/\).*/{
  10901. s//\1/
  10902. q
  10903. }
  10904. s/.*/./; q'`
  10905. else
  10906. continue
  10907. fi
  10908. # Extract the definition of DEPDIR, am__include, and am__quote
  10909. # from the Makefile without running `make'.
  10910. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10911. test -z "$DEPDIR" && continue
  10912. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10913. test -z "am__include" && continue
  10914. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10915. # When using ansi2knr, U may be empty or an underscore; expand it
  10916. U=`sed -n 's/^U = //p' < "$mf"`
  10917. # Find all dependency output files, they are included files with
  10918. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10919. # simplest approach to changing $(DEPDIR) to its actual value in the
  10920. # expansion.
  10921. for file in `sed -n "
  10922. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10923. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  10924. # Make sure the directory exists.
  10925. test -f "$dirpart/$file" && continue
  10926. fdir=`$as_dirname -- "$file" ||
  10927. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10928. X"$file" : 'X\(//\)[^/]' \| \
  10929. X"$file" : 'X\(//\)$' \| \
  10930. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10931. $as_echo X"$file" |
  10932. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10933. s//\1/
  10934. q
  10935. }
  10936. /^X\(\/\/\)[^/].*/{
  10937. s//\1/
  10938. q
  10939. }
  10940. /^X\(\/\/\)$/{
  10941. s//\1/
  10942. q
  10943. }
  10944. /^X\(\/\).*/{
  10945. s//\1/
  10946. q
  10947. }
  10948. s/.*/./; q'`
  10949. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10950. # echo "creating $dirpart/$file"
  10951. echo '# dummy' > "$dirpart/$file"
  10952. done
  10953. done
  10954. }
  10955. ;;
  10956. "libtool":C)
  10957. # See if we are running on zsh, and set the options which allow our
  10958. # commands through without removal of \ escapes.
  10959. if test -n "${ZSH_VERSION+set}" ; then
  10960. setopt NO_GLOB_SUBST
  10961. fi
  10962. cfgfile="${ofile}T"
  10963. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  10964. $RM "$cfgfile"
  10965. cat <<_LT_EOF >> "$cfgfile"
  10966. #! $SHELL
  10967. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  10968. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  10969. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10970. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  10971. #
  10972. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  10973. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  10974. # Written by Gordon Matzigkeit, 1996
  10975. #
  10976. # This file is part of GNU Libtool.
  10977. #
  10978. # GNU Libtool is free software; you can redistribute it and/or
  10979. # modify it under the terms of the GNU General Public License as
  10980. # published by the Free Software Foundation; either version 2 of
  10981. # the License, or (at your option) any later version.
  10982. #
  10983. # As a special exception to the GNU General Public License,
  10984. # if you distribute this file as part of a program or library that
  10985. # is built using GNU Libtool, you may include this file under the
  10986. # same distribution terms that you use for the rest of that program.
  10987. #
  10988. # GNU Libtool is distributed in the hope that it will be useful,
  10989. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10990. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10991. # GNU General Public License for more details.
  10992. #
  10993. # You should have received a copy of the GNU General Public License
  10994. # along with GNU Libtool; see the file COPYING. If not, a copy
  10995. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  10996. # obtained by writing to the Free Software Foundation, Inc.,
  10997. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  10998. # The names of the tagged configurations supported by this script.
  10999. available_tags=""
  11000. # ### BEGIN LIBTOOL CONFIG
  11001. # Which release of libtool.m4 was used?
  11002. macro_version=$macro_version
  11003. macro_revision=$macro_revision
  11004. # Whether or not to build shared libraries.
  11005. build_libtool_libs=$enable_shared
  11006. # Whether or not to build static libraries.
  11007. build_old_libs=$enable_static
  11008. # What type of objects to build.
  11009. pic_mode=$pic_mode
  11010. # Whether or not to optimize for fast installation.
  11011. fast_install=$enable_fast_install
  11012. # Shell to use when invoking shell scripts.
  11013. SHELL=$lt_SHELL
  11014. # An echo program that protects backslashes.
  11015. ECHO=$lt_ECHO
  11016. # The host system.
  11017. host_alias=$host_alias
  11018. host=$host
  11019. host_os=$host_os
  11020. # The build system.
  11021. build_alias=$build_alias
  11022. build=$build
  11023. build_os=$build_os
  11024. # A sed program that does not truncate output.
  11025. SED=$lt_SED
  11026. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11027. Xsed="\$SED -e 1s/^X//"
  11028. # A grep program that handles long lines.
  11029. GREP=$lt_GREP
  11030. # An ERE matcher.
  11031. EGREP=$lt_EGREP
  11032. # A literal string matcher.
  11033. FGREP=$lt_FGREP
  11034. # A BSD- or MS-compatible name lister.
  11035. NM=$lt_NM
  11036. # Whether we need soft or hard links.
  11037. LN_S=$lt_LN_S
  11038. # What is the maximum length of a command?
  11039. max_cmd_len=$max_cmd_len
  11040. # Object file suffix (normally "o").
  11041. objext=$ac_objext
  11042. # Executable file suffix (normally "").
  11043. exeext=$exeext
  11044. # whether the shell understands "unset".
  11045. lt_unset=$lt_unset
  11046. # turn spaces into newlines.
  11047. SP2NL=$lt_lt_SP2NL
  11048. # turn newlines into spaces.
  11049. NL2SP=$lt_lt_NL2SP
  11050. # An object symbol dumper.
  11051. OBJDUMP=$lt_OBJDUMP
  11052. # Method to check whether dependent libraries are shared objects.
  11053. deplibs_check_method=$lt_deplibs_check_method
  11054. # Command to use when deplibs_check_method == "file_magic".
  11055. file_magic_cmd=$lt_file_magic_cmd
  11056. # The archiver.
  11057. AR=$lt_AR
  11058. AR_FLAGS=$lt_AR_FLAGS
  11059. # A symbol stripping program.
  11060. STRIP=$lt_STRIP
  11061. # Commands used to install an old-style archive.
  11062. RANLIB=$lt_RANLIB
  11063. old_postinstall_cmds=$lt_old_postinstall_cmds
  11064. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11065. # Whether to use a lock for old archive extraction.
  11066. lock_old_archive_extraction=$lock_old_archive_extraction
  11067. # A C compiler.
  11068. LTCC=$lt_CC
  11069. # LTCC compiler flags.
  11070. LTCFLAGS=$lt_CFLAGS
  11071. # Take the output of nm and produce a listing of raw symbols and C names.
  11072. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11073. # Transform the output of nm in a proper C declaration.
  11074. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11075. # Transform the output of nm in a C name address pair.
  11076. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11077. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11078. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11079. # The name of the directory that contains temporary libtool files.
  11080. objdir=$objdir
  11081. # Used to examine libraries when file_magic_cmd begins with "file".
  11082. MAGIC_CMD=$MAGIC_CMD
  11083. # Must we lock files when doing compilation?
  11084. need_locks=$lt_need_locks
  11085. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11086. DSYMUTIL=$lt_DSYMUTIL
  11087. # Tool to change global to local symbols on Mac OS X.
  11088. NMEDIT=$lt_NMEDIT
  11089. # Tool to manipulate fat objects and archives on Mac OS X.
  11090. LIPO=$lt_LIPO
  11091. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11092. OTOOL=$lt_OTOOL
  11093. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11094. OTOOL64=$lt_OTOOL64
  11095. # Old archive suffix (normally "a").
  11096. libext=$libext
  11097. # Shared library suffix (normally ".so").
  11098. shrext_cmds=$lt_shrext_cmds
  11099. # The commands to extract the exported symbol list from a shared archive.
  11100. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11101. # Variables whose values should be saved in libtool wrapper scripts and
  11102. # restored at link time.
  11103. variables_saved_for_relink=$lt_variables_saved_for_relink
  11104. # Do we need the "lib" prefix for modules?
  11105. need_lib_prefix=$need_lib_prefix
  11106. # Do we need a version for libraries?
  11107. need_version=$need_version
  11108. # Library versioning type.
  11109. version_type=$version_type
  11110. # Shared library runtime path variable.
  11111. runpath_var=$runpath_var
  11112. # Shared library path variable.
  11113. shlibpath_var=$shlibpath_var
  11114. # Is shlibpath searched before the hard-coded library search path?
  11115. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11116. # Format of library name prefix.
  11117. libname_spec=$lt_libname_spec
  11118. # List of archive names. First name is the real one, the rest are links.
  11119. # The last name is the one that the linker finds with -lNAME
  11120. library_names_spec=$lt_library_names_spec
  11121. # The coded name of the library, if different from the real name.
  11122. soname_spec=$lt_soname_spec
  11123. # Permission mode override for installation of shared libraries.
  11124. install_override_mode=$lt_install_override_mode
  11125. # Command to use after installation of a shared archive.
  11126. postinstall_cmds=$lt_postinstall_cmds
  11127. # Command to use after uninstallation of a shared archive.
  11128. postuninstall_cmds=$lt_postuninstall_cmds
  11129. # Commands used to finish a libtool library installation in a directory.
  11130. finish_cmds=$lt_finish_cmds
  11131. # As "finish_cmds", except a single script fragment to be evaled but
  11132. # not shown.
  11133. finish_eval=$lt_finish_eval
  11134. # Whether we should hardcode library paths into libraries.
  11135. hardcode_into_libs=$hardcode_into_libs
  11136. # Compile-time system search path for libraries.
  11137. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11138. # Run-time system search path for libraries.
  11139. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11140. # Whether dlopen is supported.
  11141. dlopen_support=$enable_dlopen
  11142. # Whether dlopen of programs is supported.
  11143. dlopen_self=$enable_dlopen_self
  11144. # Whether dlopen of statically linked programs is supported.
  11145. dlopen_self_static=$enable_dlopen_self_static
  11146. # Commands to strip libraries.
  11147. old_striplib=$lt_old_striplib
  11148. striplib=$lt_striplib
  11149. # The linker used to build libraries.
  11150. LD=$lt_LD
  11151. # How to create reloadable object files.
  11152. reload_flag=$lt_reload_flag
  11153. reload_cmds=$lt_reload_cmds
  11154. # Commands used to build an old-style archive.
  11155. old_archive_cmds=$lt_old_archive_cmds
  11156. # A language specific compiler.
  11157. CC=$lt_compiler
  11158. # Is the compiler the GNU compiler?
  11159. with_gcc=$GCC
  11160. # Compiler flag to turn off builtin functions.
  11161. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11162. # How to pass a linker flag through the compiler.
  11163. wl=$lt_lt_prog_compiler_wl
  11164. # Additional compiler flags for building library objects.
  11165. pic_flag=$lt_lt_prog_compiler_pic
  11166. # Compiler flag to prevent dynamic linking.
  11167. link_static_flag=$lt_lt_prog_compiler_static
  11168. # Does compiler simultaneously support -c and -o options?
  11169. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11170. # Whether or not to add -lc for building shared libraries.
  11171. build_libtool_need_lc=$archive_cmds_need_lc
  11172. # Whether or not to disallow shared libs when runtime libs are static.
  11173. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11174. # Compiler flag to allow reflexive dlopens.
  11175. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11176. # Compiler flag to generate shared objects directly from archives.
  11177. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11178. # Whether the compiler copes with passing no objects directly.
  11179. compiler_needs_object=$lt_compiler_needs_object
  11180. # Create an old-style archive from a shared archive.
  11181. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11182. # Create a temporary old-style archive to link instead of a shared archive.
  11183. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11184. # Commands used to build a shared archive.
  11185. archive_cmds=$lt_archive_cmds
  11186. archive_expsym_cmds=$lt_archive_expsym_cmds
  11187. # Commands used to build a loadable module if different from building
  11188. # a shared archive.
  11189. module_cmds=$lt_module_cmds
  11190. module_expsym_cmds=$lt_module_expsym_cmds
  11191. # Whether we are building with GNU ld or not.
  11192. with_gnu_ld=$lt_with_gnu_ld
  11193. # Flag that allows shared libraries with undefined symbols to be built.
  11194. allow_undefined_flag=$lt_allow_undefined_flag
  11195. # Flag that enforces no undefined symbols.
  11196. no_undefined_flag=$lt_no_undefined_flag
  11197. # Flag to hardcode \$libdir into a binary during linking.
  11198. # This must work even if \$libdir does not exist
  11199. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11200. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11201. # during linking. This must work even if \$libdir does not exist.
  11202. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11203. # Whether we need a single "-rpath" flag with a separated argument.
  11204. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11205. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11206. # DIR into the resulting binary.
  11207. hardcode_direct=$hardcode_direct
  11208. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11209. # DIR into the resulting binary and the resulting library dependency is
  11210. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11211. # library is relocated.
  11212. hardcode_direct_absolute=$hardcode_direct_absolute
  11213. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11214. # into the resulting binary.
  11215. hardcode_minus_L=$hardcode_minus_L
  11216. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11217. # into the resulting binary.
  11218. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11219. # Set to "yes" if building a shared library automatically hardcodes DIR
  11220. # into the library and all subsequent libraries and executables linked
  11221. # against it.
  11222. hardcode_automatic=$hardcode_automatic
  11223. # Set to yes if linker adds runtime paths of dependent libraries
  11224. # to runtime path list.
  11225. inherit_rpath=$inherit_rpath
  11226. # Whether libtool must link a program against all its dependency libraries.
  11227. link_all_deplibs=$link_all_deplibs
  11228. # Fix the shell variable \$srcfile for the compiler.
  11229. fix_srcfile_path=$lt_fix_srcfile_path
  11230. # Set to "yes" if exported symbols are required.
  11231. always_export_symbols=$always_export_symbols
  11232. # The commands to list exported symbols.
  11233. export_symbols_cmds=$lt_export_symbols_cmds
  11234. # Symbols that should not be listed in the preloaded symbols.
  11235. exclude_expsyms=$lt_exclude_expsyms
  11236. # Symbols that must always be exported.
  11237. include_expsyms=$lt_include_expsyms
  11238. # Commands necessary for linking programs (against libraries) with templates.
  11239. prelink_cmds=$lt_prelink_cmds
  11240. # Specify filename containing input files.
  11241. file_list_spec=$lt_file_list_spec
  11242. # How to hardcode a shared library path into an executable.
  11243. hardcode_action=$hardcode_action
  11244. # ### END LIBTOOL CONFIG
  11245. _LT_EOF
  11246. case $host_os in
  11247. aix3*)
  11248. cat <<\_LT_EOF >> "$cfgfile"
  11249. # AIX sometimes has problems with the GCC collect2 program. For some
  11250. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11251. # vanish in a puff of smoke.
  11252. if test "X${COLLECT_NAMES+set}" != Xset; then
  11253. COLLECT_NAMES=
  11254. export COLLECT_NAMES
  11255. fi
  11256. _LT_EOF
  11257. ;;
  11258. esac
  11259. ltmain="$ac_aux_dir/ltmain.sh"
  11260. # We use sed instead of cat because bash on DJGPP gets confused if
  11261. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11262. # text mode, it properly converts lines to CR/LF. This bash problem
  11263. # is reportedly fixed, but why not run on old versions too?
  11264. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11265. || (rm -f "$cfgfile"; exit 1)
  11266. case $xsi_shell in
  11267. yes)
  11268. cat << \_LT_EOF >> "$cfgfile"
  11269. # func_dirname file append nondir_replacement
  11270. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11271. # otherwise set result to NONDIR_REPLACEMENT.
  11272. func_dirname ()
  11273. {
  11274. case ${1} in
  11275. */*) func_dirname_result="${1%/*}${2}" ;;
  11276. * ) func_dirname_result="${3}" ;;
  11277. esac
  11278. }
  11279. # func_basename file
  11280. func_basename ()
  11281. {
  11282. func_basename_result="${1##*/}"
  11283. }
  11284. # func_dirname_and_basename file append nondir_replacement
  11285. # perform func_basename and func_dirname in a single function
  11286. # call:
  11287. # dirname: Compute the dirname of FILE. If nonempty,
  11288. # add APPEND to the result, otherwise set result
  11289. # to NONDIR_REPLACEMENT.
  11290. # value returned in "$func_dirname_result"
  11291. # basename: Compute filename of FILE.
  11292. # value retuned in "$func_basename_result"
  11293. # Implementation must be kept synchronized with func_dirname
  11294. # and func_basename. For efficiency, we do not delegate to
  11295. # those functions but instead duplicate the functionality here.
  11296. func_dirname_and_basename ()
  11297. {
  11298. case ${1} in
  11299. */*) func_dirname_result="${1%/*}${2}" ;;
  11300. * ) func_dirname_result="${3}" ;;
  11301. esac
  11302. func_basename_result="${1##*/}"
  11303. }
  11304. # func_stripname prefix suffix name
  11305. # strip PREFIX and SUFFIX off of NAME.
  11306. # PREFIX and SUFFIX must not contain globbing or regex special
  11307. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11308. # dot (in which case that matches only a dot).
  11309. func_stripname ()
  11310. {
  11311. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11312. # positional parameters, so assign one to ordinary parameter first.
  11313. func_stripname_result=${3}
  11314. func_stripname_result=${func_stripname_result#"${1}"}
  11315. func_stripname_result=${func_stripname_result%"${2}"}
  11316. }
  11317. # func_opt_split
  11318. func_opt_split ()
  11319. {
  11320. func_opt_split_opt=${1%%=*}
  11321. func_opt_split_arg=${1#*=}
  11322. }
  11323. # func_lo2o object
  11324. func_lo2o ()
  11325. {
  11326. case ${1} in
  11327. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11328. *) func_lo2o_result=${1} ;;
  11329. esac
  11330. }
  11331. # func_xform libobj-or-source
  11332. func_xform ()
  11333. {
  11334. func_xform_result=${1%.*}.lo
  11335. }
  11336. # func_arith arithmetic-term...
  11337. func_arith ()
  11338. {
  11339. func_arith_result=$(( $* ))
  11340. }
  11341. # func_len string
  11342. # STRING may not start with a hyphen.
  11343. func_len ()
  11344. {
  11345. func_len_result=${#1}
  11346. }
  11347. _LT_EOF
  11348. ;;
  11349. *) # Bourne compatible functions.
  11350. cat << \_LT_EOF >> "$cfgfile"
  11351. # func_dirname file append nondir_replacement
  11352. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11353. # otherwise set result to NONDIR_REPLACEMENT.
  11354. func_dirname ()
  11355. {
  11356. # Extract subdirectory from the argument.
  11357. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  11358. if test "X$func_dirname_result" = "X${1}"; then
  11359. func_dirname_result="${3}"
  11360. else
  11361. func_dirname_result="$func_dirname_result${2}"
  11362. fi
  11363. }
  11364. # func_basename file
  11365. func_basename ()
  11366. {
  11367. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  11368. }
  11369. # func_stripname prefix suffix name
  11370. # strip PREFIX and SUFFIX off of NAME.
  11371. # PREFIX and SUFFIX must not contain globbing or regex special
  11372. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11373. # dot (in which case that matches only a dot).
  11374. # func_strip_suffix prefix name
  11375. func_stripname ()
  11376. {
  11377. case ${2} in
  11378. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  11379. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  11380. esac
  11381. }
  11382. # sed scripts:
  11383. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11384. my_sed_long_arg='1s/^-[^=]*=//'
  11385. # func_opt_split
  11386. func_opt_split ()
  11387. {
  11388. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  11389. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  11390. }
  11391. # func_lo2o object
  11392. func_lo2o ()
  11393. {
  11394. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  11395. }
  11396. # func_xform libobj-or-source
  11397. func_xform ()
  11398. {
  11399. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  11400. }
  11401. # func_arith arithmetic-term...
  11402. func_arith ()
  11403. {
  11404. func_arith_result=`expr "$@"`
  11405. }
  11406. # func_len string
  11407. # STRING may not start with a hyphen.
  11408. func_len ()
  11409. {
  11410. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11411. }
  11412. _LT_EOF
  11413. esac
  11414. case $lt_shell_append in
  11415. yes)
  11416. cat << \_LT_EOF >> "$cfgfile"
  11417. # func_append var value
  11418. # Append VALUE to the end of shell variable VAR.
  11419. func_append ()
  11420. {
  11421. eval "$1+=\$2"
  11422. }
  11423. _LT_EOF
  11424. ;;
  11425. *)
  11426. cat << \_LT_EOF >> "$cfgfile"
  11427. # func_append var value
  11428. # Append VALUE to the end of shell variable VAR.
  11429. func_append ()
  11430. {
  11431. eval "$1=\$$1\$2"
  11432. }
  11433. _LT_EOF
  11434. ;;
  11435. esac
  11436. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11437. || (rm -f "$cfgfile"; exit 1)
  11438. mv -f "$cfgfile" "$ofile" ||
  11439. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11440. chmod +x "$ofile"
  11441. ;;
  11442. esac
  11443. done # for ac_tag
  11444. as_fn_exit 0
  11445. _ACEOF
  11446. ac_clean_files=$ac_clean_files_save
  11447. test $ac_write_fail = 0 ||
  11448. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11449. # configure is writing to config.log, and then calls config.status.
  11450. # config.status does its own redirection, appending to config.log.
  11451. # Unfortunately, on DOS this fails, as config.log is still kept open
  11452. # by configure, so config.status won't be able to write to it; its
  11453. # output is simply discarded. So we exec the FD to /dev/null,
  11454. # effectively closing config.log, so it can be properly (re)opened and
  11455. # appended to by config.status. When coming back to configure, we
  11456. # need to make the FD available again.
  11457. if test "$no_create" != yes; then
  11458. ac_cs_success=:
  11459. ac_config_status_args=
  11460. test "$silent" = yes &&
  11461. ac_config_status_args="$ac_config_status_args --quiet"
  11462. exec 5>/dev/null
  11463. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11464. exec 5>>config.log
  11465. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11466. # would make configure fail if this is the last instruction.
  11467. $ac_cs_success || as_fn_exit $?
  11468. fi
  11469. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11471. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11472. fi