configure 419 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for gprof 2.38.50.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  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. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='gprof'
  539. PACKAGE_TARNAME='gprof'
  540. PACKAGE_VERSION='2.38.50'
  541. PACKAGE_STRING='gprof 2.38.50'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="gprof.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. WARN_WRITE_STRINGS
  585. NO_WERROR
  586. WARN_CFLAGS_FOR_BUILD
  587. WARN_CFLAGS
  588. GENINSRC_NEVER_FALSE
  589. GENINSRC_NEVER_TRUE
  590. MAINT
  591. MAINTAINER_MODE_FALSE
  592. MAINTAINER_MODE_TRUE
  593. MSGMERGE
  594. MSGFMT
  595. MKINSTALLDIRS
  596. CATOBJEXT
  597. GENCAT
  598. INSTOBJEXT
  599. DATADIRNAME
  600. CATALOGS
  601. POSUB
  602. GMSGFMT
  603. XGETTEXT
  604. INCINTL
  605. LIBINTL_DEP
  606. LIBINTL
  607. USE_NLS
  608. LARGEFILE_CPPFLAGS
  609. OTOOL64
  610. OTOOL
  611. LIPO
  612. NMEDIT
  613. DSYMUTIL
  614. RANLIB
  615. AR
  616. OBJDUMP
  617. LN_S
  618. NM
  619. ac_ct_DUMPBIN
  620. DUMPBIN
  621. LD
  622. FGREP
  623. SED
  624. LIBTOOL
  625. EGREP
  626. GREP
  627. CPP
  628. am__fastdepCC_FALSE
  629. am__fastdepCC_TRUE
  630. CCDEPMODE
  631. am__nodep
  632. AMDEPBACKSLASH
  633. AMDEP_FALSE
  634. AMDEP_TRUE
  635. am__quote
  636. am__include
  637. DEPDIR
  638. OBJEXT
  639. EXEEXT
  640. ac_ct_CC
  641. CPPFLAGS
  642. LDFLAGS
  643. CFLAGS
  644. CC
  645. AM_BACKSLASH
  646. AM_DEFAULT_VERBOSITY
  647. AM_DEFAULT_V
  648. AM_V
  649. am__untar
  650. am__tar
  651. AMTAR
  652. am__leading_dot
  653. SET_MAKE
  654. AWK
  655. mkdir_p
  656. MKDIR_P
  657. INSTALL_STRIP_PROGRAM
  658. STRIP
  659. install_sh
  660. MAKEINFO
  661. AUTOHEADER
  662. AUTOMAKE
  663. AUTOCONF
  664. ACLOCAL
  665. VERSION
  666. PACKAGE
  667. CYGPATH_W
  668. am__isrc
  669. INSTALL_DATA
  670. INSTALL_SCRIPT
  671. INSTALL_PROGRAM
  672. target_os
  673. target_vendor
  674. target_cpu
  675. target
  676. host_os
  677. host_vendor
  678. host_cpu
  679. host
  680. build_os
  681. build_vendor
  682. build_cpu
  683. build
  684. target_alias
  685. host_alias
  686. build_alias
  687. LIBS
  688. ECHO_T
  689. ECHO_N
  690. ECHO_C
  691. DEFS
  692. mandir
  693. localedir
  694. libdir
  695. psdir
  696. pdfdir
  697. dvidir
  698. htmldir
  699. infodir
  700. docdir
  701. oldincludedir
  702. includedir
  703. localstatedir
  704. sharedstatedir
  705. sysconfdir
  706. datadir
  707. datarootdir
  708. libexecdir
  709. sbindir
  710. bindir
  711. program_transform_name
  712. prefix
  713. exec_prefix
  714. PACKAGE_URL
  715. PACKAGE_BUGREPORT
  716. PACKAGE_STRING
  717. PACKAGE_VERSION
  718. PACKAGE_TARNAME
  719. PACKAGE_NAME
  720. PATH_SEPARATOR
  721. SHELL'
  722. ac_subst_files=''
  723. ac_user_opts='
  724. enable_option_checking
  725. enable_silent_rules
  726. enable_dependency_tracking
  727. enable_shared
  728. enable_static
  729. with_pic
  730. enable_fast_install
  731. with_gnu_ld
  732. enable_libtool_lock
  733. enable_plugins
  734. enable_largefile
  735. enable_nls
  736. enable_maintainer_mode
  737. enable_werror
  738. enable_build_warnings
  739. '
  740. ac_precious_vars='build_alias
  741. host_alias
  742. target_alias
  743. CC
  744. CFLAGS
  745. LDFLAGS
  746. LIBS
  747. CPPFLAGS
  748. CPP'
  749. # Initialize some variables set by options.
  750. ac_init_help=
  751. ac_init_version=false
  752. ac_unrecognized_opts=
  753. ac_unrecognized_sep=
  754. # The variables have the same names as the options, with
  755. # dashes changed to underlines.
  756. cache_file=/dev/null
  757. exec_prefix=NONE
  758. no_create=
  759. no_recursion=
  760. prefix=NONE
  761. program_prefix=NONE
  762. program_suffix=NONE
  763. program_transform_name=s,x,x,
  764. silent=
  765. site=
  766. srcdir=
  767. verbose=
  768. x_includes=NONE
  769. x_libraries=NONE
  770. # Installation directory options.
  771. # These are left unexpanded so users can "make install exec_prefix=/foo"
  772. # and all the variables that are supposed to be based on exec_prefix
  773. # by default will actually change.
  774. # Use braces instead of parens because sh, perl, etc. also accept them.
  775. # (The list follows the same order as the GNU Coding Standards.)
  776. bindir='${exec_prefix}/bin'
  777. sbindir='${exec_prefix}/sbin'
  778. libexecdir='${exec_prefix}/libexec'
  779. datarootdir='${prefix}/share'
  780. datadir='${datarootdir}'
  781. sysconfdir='${prefix}/etc'
  782. sharedstatedir='${prefix}/com'
  783. localstatedir='${prefix}/var'
  784. includedir='${prefix}/include'
  785. oldincludedir='/usr/include'
  786. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  787. infodir='${datarootdir}/info'
  788. htmldir='${docdir}'
  789. dvidir='${docdir}'
  790. pdfdir='${docdir}'
  791. psdir='${docdir}'
  792. libdir='${exec_prefix}/lib'
  793. localedir='${datarootdir}/locale'
  794. mandir='${datarootdir}/man'
  795. ac_prev=
  796. ac_dashdash=
  797. for ac_option
  798. do
  799. # If the previous option needs an argument, assign it.
  800. if test -n "$ac_prev"; then
  801. eval $ac_prev=\$ac_option
  802. ac_prev=
  803. continue
  804. fi
  805. case $ac_option in
  806. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  807. *=) ac_optarg= ;;
  808. *) ac_optarg=yes ;;
  809. esac
  810. # Accept the important Cygnus configure options, so we can diagnose typos.
  811. case $ac_dashdash$ac_option in
  812. --)
  813. ac_dashdash=yes ;;
  814. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  815. ac_prev=bindir ;;
  816. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  817. bindir=$ac_optarg ;;
  818. -build | --build | --buil | --bui | --bu)
  819. ac_prev=build_alias ;;
  820. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  821. build_alias=$ac_optarg ;;
  822. -cache-file | --cache-file | --cache-fil | --cache-fi \
  823. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  824. ac_prev=cache_file ;;
  825. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  826. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  827. cache_file=$ac_optarg ;;
  828. --config-cache | -C)
  829. cache_file=config.cache ;;
  830. -datadir | --datadir | --datadi | --datad)
  831. ac_prev=datadir ;;
  832. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  833. datadir=$ac_optarg ;;
  834. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  835. | --dataroo | --dataro | --datar)
  836. ac_prev=datarootdir ;;
  837. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  838. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  839. datarootdir=$ac_optarg ;;
  840. -disable-* | --disable-*)
  841. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  842. # Reject names that are not valid shell variable names.
  843. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  844. as_fn_error $? "invalid feature name: $ac_useropt"
  845. ac_useropt_orig=$ac_useropt
  846. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  847. case $ac_user_opts in
  848. *"
  849. "enable_$ac_useropt"
  850. "*) ;;
  851. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  852. ac_unrecognized_sep=', ';;
  853. esac
  854. eval enable_$ac_useropt=no ;;
  855. -docdir | --docdir | --docdi | --doc | --do)
  856. ac_prev=docdir ;;
  857. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  858. docdir=$ac_optarg ;;
  859. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  860. ac_prev=dvidir ;;
  861. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  862. dvidir=$ac_optarg ;;
  863. -enable-* | --enable-*)
  864. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  865. # Reject names that are not valid shell variable names.
  866. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  867. as_fn_error $? "invalid feature name: $ac_useropt"
  868. ac_useropt_orig=$ac_useropt
  869. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  870. case $ac_user_opts in
  871. *"
  872. "enable_$ac_useropt"
  873. "*) ;;
  874. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  875. ac_unrecognized_sep=', ';;
  876. esac
  877. eval enable_$ac_useropt=\$ac_optarg ;;
  878. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  879. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  880. | --exec | --exe | --ex)
  881. ac_prev=exec_prefix ;;
  882. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  883. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  884. | --exec=* | --exe=* | --ex=*)
  885. exec_prefix=$ac_optarg ;;
  886. -gas | --gas | --ga | --g)
  887. # Obsolete; use --with-gas.
  888. with_gas=yes ;;
  889. -help | --help | --hel | --he | -h)
  890. ac_init_help=long ;;
  891. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  892. ac_init_help=recursive ;;
  893. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  894. ac_init_help=short ;;
  895. -host | --host | --hos | --ho)
  896. ac_prev=host_alias ;;
  897. -host=* | --host=* | --hos=* | --ho=*)
  898. host_alias=$ac_optarg ;;
  899. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  900. ac_prev=htmldir ;;
  901. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  902. | --ht=*)
  903. htmldir=$ac_optarg ;;
  904. -includedir | --includedir | --includedi | --included | --include \
  905. | --includ | --inclu | --incl | --inc)
  906. ac_prev=includedir ;;
  907. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  908. | --includ=* | --inclu=* | --incl=* | --inc=*)
  909. includedir=$ac_optarg ;;
  910. -infodir | --infodir | --infodi | --infod | --info | --inf)
  911. ac_prev=infodir ;;
  912. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  913. infodir=$ac_optarg ;;
  914. -libdir | --libdir | --libdi | --libd)
  915. ac_prev=libdir ;;
  916. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  917. libdir=$ac_optarg ;;
  918. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  919. | --libexe | --libex | --libe)
  920. ac_prev=libexecdir ;;
  921. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  922. | --libexe=* | --libex=* | --libe=*)
  923. libexecdir=$ac_optarg ;;
  924. -localedir | --localedir | --localedi | --localed | --locale)
  925. ac_prev=localedir ;;
  926. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  927. localedir=$ac_optarg ;;
  928. -localstatedir | --localstatedir | --localstatedi | --localstated \
  929. | --localstate | --localstat | --localsta | --localst | --locals)
  930. ac_prev=localstatedir ;;
  931. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  932. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  933. localstatedir=$ac_optarg ;;
  934. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  935. ac_prev=mandir ;;
  936. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  937. mandir=$ac_optarg ;;
  938. -nfp | --nfp | --nf)
  939. # Obsolete; use --without-fp.
  940. with_fp=no ;;
  941. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  942. | --no-cr | --no-c | -n)
  943. no_create=yes ;;
  944. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  945. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  946. no_recursion=yes ;;
  947. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  948. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  949. | --oldin | --oldi | --old | --ol | --o)
  950. ac_prev=oldincludedir ;;
  951. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  952. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  953. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  954. oldincludedir=$ac_optarg ;;
  955. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  956. ac_prev=prefix ;;
  957. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  958. prefix=$ac_optarg ;;
  959. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  960. | --program-pre | --program-pr | --program-p)
  961. ac_prev=program_prefix ;;
  962. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  963. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  964. program_prefix=$ac_optarg ;;
  965. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  966. | --program-suf | --program-su | --program-s)
  967. ac_prev=program_suffix ;;
  968. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  969. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  970. program_suffix=$ac_optarg ;;
  971. -program-transform-name | --program-transform-name \
  972. | --program-transform-nam | --program-transform-na \
  973. | --program-transform-n | --program-transform- \
  974. | --program-transform | --program-transfor \
  975. | --program-transfo | --program-transf \
  976. | --program-trans | --program-tran \
  977. | --progr-tra | --program-tr | --program-t)
  978. ac_prev=program_transform_name ;;
  979. -program-transform-name=* | --program-transform-name=* \
  980. | --program-transform-nam=* | --program-transform-na=* \
  981. | --program-transform-n=* | --program-transform-=* \
  982. | --program-transform=* | --program-transfor=* \
  983. | --program-transfo=* | --program-transf=* \
  984. | --program-trans=* | --program-tran=* \
  985. | --progr-tra=* | --program-tr=* | --program-t=*)
  986. program_transform_name=$ac_optarg ;;
  987. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  988. ac_prev=pdfdir ;;
  989. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  990. pdfdir=$ac_optarg ;;
  991. -psdir | --psdir | --psdi | --psd | --ps)
  992. ac_prev=psdir ;;
  993. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  994. psdir=$ac_optarg ;;
  995. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  996. | -silent | --silent | --silen | --sile | --sil)
  997. silent=yes ;;
  998. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  999. ac_prev=sbindir ;;
  1000. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1001. | --sbi=* | --sb=*)
  1002. sbindir=$ac_optarg ;;
  1003. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1004. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1005. | --sharedst | --shareds | --shared | --share | --shar \
  1006. | --sha | --sh)
  1007. ac_prev=sharedstatedir ;;
  1008. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1009. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1010. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1011. | --sha=* | --sh=*)
  1012. sharedstatedir=$ac_optarg ;;
  1013. -site | --site | --sit)
  1014. ac_prev=site ;;
  1015. -site=* | --site=* | --sit=*)
  1016. site=$ac_optarg ;;
  1017. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1018. ac_prev=srcdir ;;
  1019. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1020. srcdir=$ac_optarg ;;
  1021. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1022. | --syscon | --sysco | --sysc | --sys | --sy)
  1023. ac_prev=sysconfdir ;;
  1024. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1025. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1026. sysconfdir=$ac_optarg ;;
  1027. -target | --target | --targe | --targ | --tar | --ta | --t)
  1028. ac_prev=target_alias ;;
  1029. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1030. target_alias=$ac_optarg ;;
  1031. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1032. verbose=yes ;;
  1033. -version | --version | --versio | --versi | --vers | -V)
  1034. ac_init_version=: ;;
  1035. -with-* | --with-*)
  1036. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1037. # Reject names that are not valid shell variable names.
  1038. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1039. as_fn_error $? "invalid package name: $ac_useropt"
  1040. ac_useropt_orig=$ac_useropt
  1041. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1042. case $ac_user_opts in
  1043. *"
  1044. "with_$ac_useropt"
  1045. "*) ;;
  1046. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1047. ac_unrecognized_sep=', ';;
  1048. esac
  1049. eval with_$ac_useropt=\$ac_optarg ;;
  1050. -without-* | --without-*)
  1051. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1052. # Reject names that are not valid shell variable names.
  1053. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1054. as_fn_error $? "invalid package name: $ac_useropt"
  1055. ac_useropt_orig=$ac_useropt
  1056. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1057. case $ac_user_opts in
  1058. *"
  1059. "with_$ac_useropt"
  1060. "*) ;;
  1061. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1062. ac_unrecognized_sep=', ';;
  1063. esac
  1064. eval with_$ac_useropt=no ;;
  1065. --x)
  1066. # Obsolete; use --with-x.
  1067. with_x=yes ;;
  1068. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1069. | --x-incl | --x-inc | --x-in | --x-i)
  1070. ac_prev=x_includes ;;
  1071. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1072. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1073. x_includes=$ac_optarg ;;
  1074. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1075. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1076. ac_prev=x_libraries ;;
  1077. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1078. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1079. x_libraries=$ac_optarg ;;
  1080. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1081. Try \`$0 --help' for more information"
  1082. ;;
  1083. *=*)
  1084. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1085. # Reject names that are not valid shell variable names.
  1086. case $ac_envvar in #(
  1087. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1088. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1089. esac
  1090. eval $ac_envvar=\$ac_optarg
  1091. export $ac_envvar ;;
  1092. *)
  1093. # FIXME: should be removed in autoconf 3.0.
  1094. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1095. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1096. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1097. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1098. ;;
  1099. esac
  1100. done
  1101. if test -n "$ac_prev"; then
  1102. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1103. as_fn_error $? "missing argument to $ac_option"
  1104. fi
  1105. if test -n "$ac_unrecognized_opts"; then
  1106. case $enable_option_checking in
  1107. no) ;;
  1108. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1109. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1110. esac
  1111. fi
  1112. # Check all directory arguments for consistency.
  1113. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1114. datadir sysconfdir sharedstatedir localstatedir includedir \
  1115. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1116. libdir localedir mandir
  1117. do
  1118. eval ac_val=\$$ac_var
  1119. # Remove trailing slashes.
  1120. case $ac_val in
  1121. */ )
  1122. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1123. eval $ac_var=\$ac_val;;
  1124. esac
  1125. # Be sure to have absolute directory names.
  1126. case $ac_val in
  1127. [\\/$]* | ?:[\\/]* ) continue;;
  1128. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1129. esac
  1130. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1131. done
  1132. # There might be people who depend on the old broken behavior: `$host'
  1133. # used to hold the argument of --host etc.
  1134. # FIXME: To remove some day.
  1135. build=$build_alias
  1136. host=$host_alias
  1137. target=$target_alias
  1138. # FIXME: To remove some day.
  1139. if test "x$host_alias" != x; then
  1140. if test "x$build_alias" = x; then
  1141. cross_compiling=maybe
  1142. elif test "x$build_alias" != "x$host_alias"; then
  1143. cross_compiling=yes
  1144. fi
  1145. fi
  1146. ac_tool_prefix=
  1147. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1148. test "$silent" = yes && exec 6>/dev/null
  1149. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1150. ac_ls_di=`ls -di .` &&
  1151. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1152. as_fn_error $? "working directory cannot be determined"
  1153. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1154. as_fn_error $? "pwd does not report name of working directory"
  1155. # Find the source files, if location was not specified.
  1156. if test -z "$srcdir"; then
  1157. ac_srcdir_defaulted=yes
  1158. # Try the directory containing this script, then the parent directory.
  1159. ac_confdir=`$as_dirname -- "$as_myself" ||
  1160. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1161. X"$as_myself" : 'X\(//\)[^/]' \| \
  1162. X"$as_myself" : 'X\(//\)$' \| \
  1163. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1164. $as_echo X"$as_myself" |
  1165. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1166. s//\1/
  1167. q
  1168. }
  1169. /^X\(\/\/\)[^/].*/{
  1170. s//\1/
  1171. q
  1172. }
  1173. /^X\(\/\/\)$/{
  1174. s//\1/
  1175. q
  1176. }
  1177. /^X\(\/\).*/{
  1178. s//\1/
  1179. q
  1180. }
  1181. s/.*/./; q'`
  1182. srcdir=$ac_confdir
  1183. if test ! -r "$srcdir/$ac_unique_file"; then
  1184. srcdir=..
  1185. fi
  1186. else
  1187. ac_srcdir_defaulted=no
  1188. fi
  1189. if test ! -r "$srcdir/$ac_unique_file"; then
  1190. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1191. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1192. fi
  1193. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1194. ac_abs_confdir=`(
  1195. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1196. pwd)`
  1197. # When building in place, set srcdir=.
  1198. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1199. srcdir=.
  1200. fi
  1201. # Remove unnecessary trailing slashes from srcdir.
  1202. # Double slashes in file names in object file debugging info
  1203. # mess up M-x gdb in Emacs.
  1204. case $srcdir in
  1205. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1206. esac
  1207. for ac_var in $ac_precious_vars; do
  1208. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1209. eval ac_env_${ac_var}_value=\$${ac_var}
  1210. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1211. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1212. done
  1213. #
  1214. # Report the --help message.
  1215. #
  1216. if test "$ac_init_help" = "long"; then
  1217. # Omit some internal or obsolete options to make the list less imposing.
  1218. # This message is too long to be a string in the A/UX 3.1 sh.
  1219. cat <<_ACEOF
  1220. \`configure' configures gprof 2.38.50 to adapt to many kinds of systems.
  1221. Usage: $0 [OPTION]... [VAR=VALUE]...
  1222. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1223. VAR=VALUE. See below for descriptions of some of the useful variables.
  1224. Defaults for the options are specified in brackets.
  1225. Configuration:
  1226. -h, --help display this help and exit
  1227. --help=short display options specific to this package
  1228. --help=recursive display the short help of all the included packages
  1229. -V, --version display version information and exit
  1230. -q, --quiet, --silent do not print \`checking ...' messages
  1231. --cache-file=FILE cache test results in FILE [disabled]
  1232. -C, --config-cache alias for \`--cache-file=config.cache'
  1233. -n, --no-create do not create output files
  1234. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1235. Installation directories:
  1236. --prefix=PREFIX install architecture-independent files in PREFIX
  1237. [$ac_default_prefix]
  1238. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1239. [PREFIX]
  1240. By default, \`make install' will install all the files in
  1241. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1242. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1243. for instance \`--prefix=\$HOME'.
  1244. For better control, use the options below.
  1245. Fine tuning of the installation directories:
  1246. --bindir=DIR user executables [EPREFIX/bin]
  1247. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1248. --libexecdir=DIR program executables [EPREFIX/libexec]
  1249. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1250. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1251. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1252. --libdir=DIR object code libraries [EPREFIX/lib]
  1253. --includedir=DIR C header files [PREFIX/include]
  1254. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1255. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1256. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1257. --infodir=DIR info documentation [DATAROOTDIR/info]
  1258. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1259. --mandir=DIR man documentation [DATAROOTDIR/man]
  1260. --docdir=DIR documentation root [DATAROOTDIR/doc/gprof]
  1261. --htmldir=DIR html documentation [DOCDIR]
  1262. --dvidir=DIR dvi documentation [DOCDIR]
  1263. --pdfdir=DIR pdf documentation [DOCDIR]
  1264. --psdir=DIR ps documentation [DOCDIR]
  1265. _ACEOF
  1266. cat <<\_ACEOF
  1267. Program names:
  1268. --program-prefix=PREFIX prepend PREFIX to installed program names
  1269. --program-suffix=SUFFIX append SUFFIX to installed program names
  1270. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1271. System types:
  1272. --build=BUILD configure for building on BUILD [guessed]
  1273. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1274. --target=TARGET configure for building compilers for TARGET [HOST]
  1275. _ACEOF
  1276. fi
  1277. if test -n "$ac_init_help"; then
  1278. case $ac_init_help in
  1279. short | recursive ) echo "Configuration of gprof 2.38.50:";;
  1280. esac
  1281. cat <<\_ACEOF
  1282. Optional Features:
  1283. --disable-option-checking ignore unrecognized --enable/--with options
  1284. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1285. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1286. --enable-silent-rules less verbose build output (undo: "make V=1")
  1287. --disable-silent-rules verbose build output (undo: "make V=0")
  1288. --enable-dependency-tracking
  1289. do not reject slow dependency extractors
  1290. --disable-dependency-tracking
  1291. speeds up one-time build
  1292. --enable-shared[=PKGS] build shared libraries [default=yes]
  1293. --enable-static[=PKGS] build static libraries [default=yes]
  1294. --enable-fast-install[=PKGS]
  1295. optimize for fast installation [default=yes]
  1296. --disable-libtool-lock avoid locking (might break parallel builds)
  1297. --enable-plugins Enable support for plugins
  1298. --disable-largefile omit support for large files
  1299. --disable-nls do not use Native Language Support
  1300. --enable-maintainer-mode
  1301. enable make rules and dependencies not useful (and
  1302. sometimes confusing) to the casual installer
  1303. --enable-werror treat compile warnings as errors
  1304. --enable-build-warnings enable build-time compiler warnings
  1305. Optional Packages:
  1306. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1307. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1308. --with-pic try to use only PIC/non-PIC objects [default=use
  1309. both]
  1310. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1311. Some influential environment variables:
  1312. CC C compiler command
  1313. CFLAGS C compiler flags
  1314. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1315. nonstandard directory <lib dir>
  1316. LIBS libraries to pass to the linker, e.g. -l<library>
  1317. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1318. you have headers in a nonstandard directory <include dir>
  1319. CPP C preprocessor
  1320. Use these variables to override the choices made by `configure' or to help
  1321. it to find libraries and programs with nonstandard names/locations.
  1322. Report bugs to the package provider.
  1323. _ACEOF
  1324. ac_status=$?
  1325. fi
  1326. if test "$ac_init_help" = "recursive"; then
  1327. # If there are subdirs, report their specific --help.
  1328. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1329. test -d "$ac_dir" ||
  1330. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1331. continue
  1332. ac_builddir=.
  1333. case "$ac_dir" in
  1334. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1335. *)
  1336. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1337. # A ".." for each directory in $ac_dir_suffix.
  1338. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1339. case $ac_top_builddir_sub in
  1340. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1341. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1342. esac ;;
  1343. esac
  1344. ac_abs_top_builddir=$ac_pwd
  1345. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1346. # for backward compatibility:
  1347. ac_top_builddir=$ac_top_build_prefix
  1348. case $srcdir in
  1349. .) # We are building in place.
  1350. ac_srcdir=.
  1351. ac_top_srcdir=$ac_top_builddir_sub
  1352. ac_abs_top_srcdir=$ac_pwd ;;
  1353. [\\/]* | ?:[\\/]* ) # Absolute name.
  1354. ac_srcdir=$srcdir$ac_dir_suffix;
  1355. ac_top_srcdir=$srcdir
  1356. ac_abs_top_srcdir=$srcdir ;;
  1357. *) # Relative name.
  1358. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1359. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1360. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1361. esac
  1362. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1363. cd "$ac_dir" || { ac_status=$?; continue; }
  1364. # Check for guested configure.
  1365. if test -f "$ac_srcdir/configure.gnu"; then
  1366. echo &&
  1367. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1368. elif test -f "$ac_srcdir/configure"; then
  1369. echo &&
  1370. $SHELL "$ac_srcdir/configure" --help=recursive
  1371. else
  1372. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1373. fi || ac_status=$?
  1374. cd "$ac_pwd" || { ac_status=$?; break; }
  1375. done
  1376. fi
  1377. test -n "$ac_init_help" && exit $ac_status
  1378. if $ac_init_version; then
  1379. cat <<\_ACEOF
  1380. gprof configure 2.38.50
  1381. generated by GNU Autoconf 2.69
  1382. Copyright (C) 2012 Free Software Foundation, Inc.
  1383. This configure script is free software; the Free Software Foundation
  1384. gives unlimited permission to copy, distribute and modify it.
  1385. _ACEOF
  1386. exit
  1387. fi
  1388. ## ------------------------ ##
  1389. ## Autoconf initialization. ##
  1390. ## ------------------------ ##
  1391. # ac_fn_c_try_compile LINENO
  1392. # --------------------------
  1393. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1394. ac_fn_c_try_compile ()
  1395. {
  1396. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1397. rm -f conftest.$ac_objext
  1398. if { { ac_try="$ac_compile"
  1399. case "(($ac_try" in
  1400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1401. *) ac_try_echo=$ac_try;;
  1402. esac
  1403. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1404. $as_echo "$ac_try_echo"; } >&5
  1405. (eval "$ac_compile") 2>conftest.err
  1406. ac_status=$?
  1407. if test -s conftest.err; then
  1408. grep -v '^ *+' conftest.err >conftest.er1
  1409. cat conftest.er1 >&5
  1410. mv -f conftest.er1 conftest.err
  1411. fi
  1412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1413. test $ac_status = 0; } && {
  1414. test -z "$ac_c_werror_flag" ||
  1415. test ! -s conftest.err
  1416. } && test -s conftest.$ac_objext; then :
  1417. ac_retval=0
  1418. else
  1419. $as_echo "$as_me: failed program was:" >&5
  1420. sed 's/^/| /' conftest.$ac_ext >&5
  1421. ac_retval=1
  1422. fi
  1423. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1424. as_fn_set_status $ac_retval
  1425. } # ac_fn_c_try_compile
  1426. # ac_fn_c_try_cpp LINENO
  1427. # ----------------------
  1428. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1429. ac_fn_c_try_cpp ()
  1430. {
  1431. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1432. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1433. case "(($ac_try" in
  1434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1435. *) ac_try_echo=$ac_try;;
  1436. esac
  1437. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1438. $as_echo "$ac_try_echo"; } >&5
  1439. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1440. ac_status=$?
  1441. if test -s conftest.err; then
  1442. grep -v '^ *+' conftest.err >conftest.er1
  1443. cat conftest.er1 >&5
  1444. mv -f conftest.er1 conftest.err
  1445. fi
  1446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1447. test $ac_status = 0; } > conftest.i && {
  1448. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1449. test ! -s conftest.err
  1450. }; then :
  1451. ac_retval=0
  1452. else
  1453. $as_echo "$as_me: failed program was:" >&5
  1454. sed 's/^/| /' conftest.$ac_ext >&5
  1455. ac_retval=1
  1456. fi
  1457. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1458. as_fn_set_status $ac_retval
  1459. } # ac_fn_c_try_cpp
  1460. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1461. # -------------------------------------------------------
  1462. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1463. # the include files in INCLUDES and setting the cache variable VAR
  1464. # accordingly.
  1465. ac_fn_c_check_header_mongrel ()
  1466. {
  1467. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1468. if eval \${$3+:} false; then :
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1470. $as_echo_n "checking for $2... " >&6; }
  1471. if eval \${$3+:} false; then :
  1472. $as_echo_n "(cached) " >&6
  1473. fi
  1474. eval ac_res=\$$3
  1475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1476. $as_echo "$ac_res" >&6; }
  1477. else
  1478. # Is the header compilable?
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1480. $as_echo_n "checking $2 usability... " >&6; }
  1481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1482. /* end confdefs.h. */
  1483. $4
  1484. #include <$2>
  1485. _ACEOF
  1486. if ac_fn_c_try_compile "$LINENO"; then :
  1487. ac_header_compiler=yes
  1488. else
  1489. ac_header_compiler=no
  1490. fi
  1491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1493. $as_echo "$ac_header_compiler" >&6; }
  1494. # Is the header present?
  1495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1496. $as_echo_n "checking $2 presence... " >&6; }
  1497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1498. /* end confdefs.h. */
  1499. #include <$2>
  1500. _ACEOF
  1501. if ac_fn_c_try_cpp "$LINENO"; then :
  1502. ac_header_preproc=yes
  1503. else
  1504. ac_header_preproc=no
  1505. fi
  1506. rm -f conftest.err conftest.i conftest.$ac_ext
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1508. $as_echo "$ac_header_preproc" >&6; }
  1509. # So? What about this header?
  1510. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1511. yes:no: )
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1513. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1515. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1516. ;;
  1517. no:yes:* )
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1519. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1521. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1523. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1525. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1527. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1528. ;;
  1529. esac
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1531. $as_echo_n "checking for $2... " >&6; }
  1532. if eval \${$3+:} false; then :
  1533. $as_echo_n "(cached) " >&6
  1534. else
  1535. eval "$3=\$ac_header_compiler"
  1536. fi
  1537. eval ac_res=\$$3
  1538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1539. $as_echo "$ac_res" >&6; }
  1540. fi
  1541. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1542. } # ac_fn_c_check_header_mongrel
  1543. # ac_fn_c_try_run LINENO
  1544. # ----------------------
  1545. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1546. # that executables *can* be run.
  1547. ac_fn_c_try_run ()
  1548. {
  1549. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1550. if { { ac_try="$ac_link"
  1551. case "(($ac_try" in
  1552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1553. *) ac_try_echo=$ac_try;;
  1554. esac
  1555. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1556. $as_echo "$ac_try_echo"; } >&5
  1557. (eval "$ac_link") 2>&5
  1558. ac_status=$?
  1559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1560. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1561. { { case "(($ac_try" in
  1562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1563. *) ac_try_echo=$ac_try;;
  1564. esac
  1565. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1566. $as_echo "$ac_try_echo"; } >&5
  1567. (eval "$ac_try") 2>&5
  1568. ac_status=$?
  1569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1570. test $ac_status = 0; }; }; then :
  1571. ac_retval=0
  1572. else
  1573. $as_echo "$as_me: program exited with status $ac_status" >&5
  1574. $as_echo "$as_me: failed program was:" >&5
  1575. sed 's/^/| /' conftest.$ac_ext >&5
  1576. ac_retval=$ac_status
  1577. fi
  1578. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1579. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1580. as_fn_set_status $ac_retval
  1581. } # ac_fn_c_try_run
  1582. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1583. # -------------------------------------------------------
  1584. # Tests whether HEADER exists and can be compiled using the include files in
  1585. # INCLUDES, setting the cache variable VAR accordingly.
  1586. ac_fn_c_check_header_compile ()
  1587. {
  1588. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1590. $as_echo_n "checking for $2... " >&6; }
  1591. if eval \${$3+:} false; then :
  1592. $as_echo_n "(cached) " >&6
  1593. else
  1594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1595. /* end confdefs.h. */
  1596. $4
  1597. #include <$2>
  1598. _ACEOF
  1599. if ac_fn_c_try_compile "$LINENO"; then :
  1600. eval "$3=yes"
  1601. else
  1602. eval "$3=no"
  1603. fi
  1604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1605. fi
  1606. eval ac_res=\$$3
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1608. $as_echo "$ac_res" >&6; }
  1609. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1610. } # ac_fn_c_check_header_compile
  1611. # ac_fn_c_try_link LINENO
  1612. # -----------------------
  1613. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1614. ac_fn_c_try_link ()
  1615. {
  1616. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1617. rm -f conftest.$ac_objext conftest$ac_exeext
  1618. if { { ac_try="$ac_link"
  1619. case "(($ac_try" in
  1620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1621. *) ac_try_echo=$ac_try;;
  1622. esac
  1623. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1624. $as_echo "$ac_try_echo"; } >&5
  1625. (eval "$ac_link") 2>conftest.err
  1626. ac_status=$?
  1627. if test -s conftest.err; then
  1628. grep -v '^ *+' conftest.err >conftest.er1
  1629. cat conftest.er1 >&5
  1630. mv -f conftest.er1 conftest.err
  1631. fi
  1632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1633. test $ac_status = 0; } && {
  1634. test -z "$ac_c_werror_flag" ||
  1635. test ! -s conftest.err
  1636. } && test -s conftest$ac_exeext && {
  1637. test "$cross_compiling" = yes ||
  1638. test -x conftest$ac_exeext
  1639. }; then :
  1640. ac_retval=0
  1641. else
  1642. $as_echo "$as_me: failed program was:" >&5
  1643. sed 's/^/| /' conftest.$ac_ext >&5
  1644. ac_retval=1
  1645. fi
  1646. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1647. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1648. # interfere with the next link command; also delete a directory that is
  1649. # left behind by Apple's compiler. We do this before executing the actions.
  1650. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1651. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1652. as_fn_set_status $ac_retval
  1653. } # ac_fn_c_try_link
  1654. # ac_fn_c_check_func LINENO FUNC VAR
  1655. # ----------------------------------
  1656. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1657. ac_fn_c_check_func ()
  1658. {
  1659. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1661. $as_echo_n "checking for $2... " >&6; }
  1662. if eval \${$3+:} false; then :
  1663. $as_echo_n "(cached) " >&6
  1664. else
  1665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1666. /* end confdefs.h. */
  1667. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1668. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1669. #define $2 innocuous_$2
  1670. /* System header to define __stub macros and hopefully few prototypes,
  1671. which can conflict with char $2 (); below.
  1672. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1673. <limits.h> exists even on freestanding compilers. */
  1674. #ifdef __STDC__
  1675. # include <limits.h>
  1676. #else
  1677. # include <assert.h>
  1678. #endif
  1679. #undef $2
  1680. /* Override any GCC internal prototype to avoid an error.
  1681. Use char because int might match the return type of a GCC
  1682. builtin and then its argument prototype would still apply. */
  1683. #ifdef __cplusplus
  1684. extern "C"
  1685. #endif
  1686. char $2 ();
  1687. /* The GNU C library defines this for functions which it implements
  1688. to always fail with ENOSYS. Some functions are actually named
  1689. something starting with __ and the normal name is an alias. */
  1690. #if defined __stub_$2 || defined __stub___$2
  1691. choke me
  1692. #endif
  1693. int
  1694. main ()
  1695. {
  1696. return $2 ();
  1697. ;
  1698. return 0;
  1699. }
  1700. _ACEOF
  1701. if ac_fn_c_try_link "$LINENO"; then :
  1702. eval "$3=yes"
  1703. else
  1704. eval "$3=no"
  1705. fi
  1706. rm -f core conftest.err conftest.$ac_objext \
  1707. conftest$ac_exeext conftest.$ac_ext
  1708. fi
  1709. eval ac_res=\$$3
  1710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1711. $as_echo "$ac_res" >&6; }
  1712. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1713. } # ac_fn_c_check_func
  1714. cat >config.log <<_ACEOF
  1715. This file contains any messages produced by compilers while
  1716. running configure, to aid debugging if configure makes a mistake.
  1717. It was created by gprof $as_me 2.38.50, which was
  1718. generated by GNU Autoconf 2.69. Invocation command line was
  1719. $ $0 $@
  1720. _ACEOF
  1721. exec 5>>config.log
  1722. {
  1723. cat <<_ASUNAME
  1724. ## --------- ##
  1725. ## Platform. ##
  1726. ## --------- ##
  1727. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1728. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1729. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1730. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1731. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1732. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1733. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1734. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1735. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1736. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1737. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1738. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1739. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1740. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1741. _ASUNAME
  1742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1743. for as_dir in $PATH
  1744. do
  1745. IFS=$as_save_IFS
  1746. test -z "$as_dir" && as_dir=.
  1747. $as_echo "PATH: $as_dir"
  1748. done
  1749. IFS=$as_save_IFS
  1750. } >&5
  1751. cat >&5 <<_ACEOF
  1752. ## ----------- ##
  1753. ## Core tests. ##
  1754. ## ----------- ##
  1755. _ACEOF
  1756. # Keep a trace of the command line.
  1757. # Strip out --no-create and --no-recursion so they do not pile up.
  1758. # Strip out --silent because we don't want to record it for future runs.
  1759. # Also quote any args containing shell meta-characters.
  1760. # Make two passes to allow for proper duplicate-argument suppression.
  1761. ac_configure_args=
  1762. ac_configure_args0=
  1763. ac_configure_args1=
  1764. ac_must_keep_next=false
  1765. for ac_pass in 1 2
  1766. do
  1767. for ac_arg
  1768. do
  1769. case $ac_arg in
  1770. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1771. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1772. | -silent | --silent | --silen | --sile | --sil)
  1773. continue ;;
  1774. *\'*)
  1775. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1776. esac
  1777. case $ac_pass in
  1778. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1779. 2)
  1780. as_fn_append ac_configure_args1 " '$ac_arg'"
  1781. if test $ac_must_keep_next = true; then
  1782. ac_must_keep_next=false # Got value, back to normal.
  1783. else
  1784. case $ac_arg in
  1785. *=* | --config-cache | -C | -disable-* | --disable-* \
  1786. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1787. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1788. | -with-* | --with-* | -without-* | --without-* | --x)
  1789. case "$ac_configure_args0 " in
  1790. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1791. esac
  1792. ;;
  1793. -* ) ac_must_keep_next=true ;;
  1794. esac
  1795. fi
  1796. as_fn_append ac_configure_args " '$ac_arg'"
  1797. ;;
  1798. esac
  1799. done
  1800. done
  1801. { ac_configure_args0=; unset ac_configure_args0;}
  1802. { ac_configure_args1=; unset ac_configure_args1;}
  1803. # When interrupted or exit'd, cleanup temporary files, and complete
  1804. # config.log. We remove comments because anyway the quotes in there
  1805. # would cause problems or look ugly.
  1806. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1807. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1808. trap 'exit_status=$?
  1809. # Save into config.log some information that might help in debugging.
  1810. {
  1811. echo
  1812. $as_echo "## ---------------- ##
  1813. ## Cache variables. ##
  1814. ## ---------------- ##"
  1815. echo
  1816. # The following way of writing the cache mishandles newlines in values,
  1817. (
  1818. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1819. eval ac_val=\$$ac_var
  1820. case $ac_val in #(
  1821. *${as_nl}*)
  1822. case $ac_var in #(
  1823. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1824. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1825. esac
  1826. case $ac_var in #(
  1827. _ | IFS | as_nl) ;; #(
  1828. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1829. *) { eval $ac_var=; unset $ac_var;} ;;
  1830. esac ;;
  1831. esac
  1832. done
  1833. (set) 2>&1 |
  1834. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1835. *${as_nl}ac_space=\ *)
  1836. sed -n \
  1837. "s/'\''/'\''\\\\'\'''\''/g;
  1838. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1839. ;; #(
  1840. *)
  1841. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1842. ;;
  1843. esac |
  1844. sort
  1845. )
  1846. echo
  1847. $as_echo "## ----------------- ##
  1848. ## Output variables. ##
  1849. ## ----------------- ##"
  1850. echo
  1851. for ac_var in $ac_subst_vars
  1852. do
  1853. eval ac_val=\$$ac_var
  1854. case $ac_val in
  1855. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1856. esac
  1857. $as_echo "$ac_var='\''$ac_val'\''"
  1858. done | sort
  1859. echo
  1860. if test -n "$ac_subst_files"; then
  1861. $as_echo "## ------------------- ##
  1862. ## File substitutions. ##
  1863. ## ------------------- ##"
  1864. echo
  1865. for ac_var in $ac_subst_files
  1866. do
  1867. eval ac_val=\$$ac_var
  1868. case $ac_val in
  1869. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1870. esac
  1871. $as_echo "$ac_var='\''$ac_val'\''"
  1872. done | sort
  1873. echo
  1874. fi
  1875. if test -s confdefs.h; then
  1876. $as_echo "## ----------- ##
  1877. ## confdefs.h. ##
  1878. ## ----------- ##"
  1879. echo
  1880. cat confdefs.h
  1881. echo
  1882. fi
  1883. test "$ac_signal" != 0 &&
  1884. $as_echo "$as_me: caught signal $ac_signal"
  1885. $as_echo "$as_me: exit $exit_status"
  1886. } >&5
  1887. rm -f core *.core core.conftest.* &&
  1888. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1889. exit $exit_status
  1890. ' 0
  1891. for ac_signal in 1 2 13 15; do
  1892. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1893. done
  1894. ac_signal=0
  1895. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1896. rm -f -r conftest* confdefs.h
  1897. $as_echo "/* confdefs.h */" > confdefs.h
  1898. # Predefined preprocessor variables.
  1899. cat >>confdefs.h <<_ACEOF
  1900. #define PACKAGE_NAME "$PACKAGE_NAME"
  1901. _ACEOF
  1902. cat >>confdefs.h <<_ACEOF
  1903. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1904. _ACEOF
  1905. cat >>confdefs.h <<_ACEOF
  1906. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1907. _ACEOF
  1908. cat >>confdefs.h <<_ACEOF
  1909. #define PACKAGE_STRING "$PACKAGE_STRING"
  1910. _ACEOF
  1911. cat >>confdefs.h <<_ACEOF
  1912. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1913. _ACEOF
  1914. cat >>confdefs.h <<_ACEOF
  1915. #define PACKAGE_URL "$PACKAGE_URL"
  1916. _ACEOF
  1917. # Let the site file select an alternate cache file if it wants to.
  1918. # Prefer an explicitly selected file to automatically selected ones.
  1919. ac_site_file1=NONE
  1920. ac_site_file2=NONE
  1921. if test -n "$CONFIG_SITE"; then
  1922. # We do not want a PATH search for config.site.
  1923. case $CONFIG_SITE in #((
  1924. -*) ac_site_file1=./$CONFIG_SITE;;
  1925. */*) ac_site_file1=$CONFIG_SITE;;
  1926. *) ac_site_file1=./$CONFIG_SITE;;
  1927. esac
  1928. elif test "x$prefix" != xNONE; then
  1929. ac_site_file1=$prefix/share/config.site
  1930. ac_site_file2=$prefix/etc/config.site
  1931. else
  1932. ac_site_file1=$ac_default_prefix/share/config.site
  1933. ac_site_file2=$ac_default_prefix/etc/config.site
  1934. fi
  1935. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1936. do
  1937. test "x$ac_site_file" = xNONE && continue
  1938. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1940. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1941. sed 's/^/| /' "$ac_site_file" >&5
  1942. . "$ac_site_file" \
  1943. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1944. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1945. as_fn_error $? "failed to load site script $ac_site_file
  1946. See \`config.log' for more details" "$LINENO" 5; }
  1947. fi
  1948. done
  1949. if test -r "$cache_file"; then
  1950. # Some versions of bash will fail to source /dev/null (special files
  1951. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1952. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1954. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1955. case $cache_file in
  1956. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1957. *) . "./$cache_file";;
  1958. esac
  1959. fi
  1960. else
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1962. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1963. >$cache_file
  1964. fi
  1965. # Check that the precious variables saved in the cache have kept the same
  1966. # value.
  1967. ac_cache_corrupted=false
  1968. for ac_var in $ac_precious_vars; do
  1969. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1970. eval ac_new_set=\$ac_env_${ac_var}_set
  1971. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1972. eval ac_new_val=\$ac_env_${ac_var}_value
  1973. case $ac_old_set,$ac_new_set in
  1974. set,)
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1976. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1977. ac_cache_corrupted=: ;;
  1978. ,set)
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1980. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1981. ac_cache_corrupted=: ;;
  1982. ,);;
  1983. *)
  1984. if test "x$ac_old_val" != "x$ac_new_val"; then
  1985. # differences in whitespace do not lead to failure.
  1986. ac_old_val_w=`echo x $ac_old_val`
  1987. ac_new_val_w=`echo x $ac_new_val`
  1988. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1989. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1990. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1991. ac_cache_corrupted=:
  1992. else
  1993. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1994. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1995. eval $ac_var=\$ac_old_val
  1996. fi
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1998. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2000. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2001. fi;;
  2002. esac
  2003. # Pass precious variables to config.status.
  2004. if test "$ac_new_set" = set; then
  2005. case $ac_new_val in
  2006. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2007. *) ac_arg=$ac_var=$ac_new_val ;;
  2008. esac
  2009. case " $ac_configure_args " in
  2010. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2011. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2012. esac
  2013. fi
  2014. done
  2015. if $ac_cache_corrupted; then
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2017. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2019. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2020. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2021. fi
  2022. ## -------------------- ##
  2023. ## Main body of script. ##
  2024. ## -------------------- ##
  2025. ac_ext=c
  2026. ac_cpp='$CPP $CPPFLAGS'
  2027. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2028. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2029. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2030. ac_aux_dir=
  2031. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2032. if test -f "$ac_dir/install-sh"; then
  2033. ac_aux_dir=$ac_dir
  2034. ac_install_sh="$ac_aux_dir/install-sh -c"
  2035. break
  2036. elif test -f "$ac_dir/install.sh"; then
  2037. ac_aux_dir=$ac_dir
  2038. ac_install_sh="$ac_aux_dir/install.sh -c"
  2039. break
  2040. elif test -f "$ac_dir/shtool"; then
  2041. ac_aux_dir=$ac_dir
  2042. ac_install_sh="$ac_aux_dir/shtool install -c"
  2043. break
  2044. fi
  2045. done
  2046. if test -z "$ac_aux_dir"; then
  2047. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2048. fi
  2049. # These three variables are undocumented and unsupported,
  2050. # and are intended to be withdrawn in a future Autoconf release.
  2051. # They can cause serious problems if a builder's source tree is in a directory
  2052. # whose full name contains unusual characters.
  2053. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2054. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2055. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2056. # Make sure we can run config.sub.
  2057. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2058. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2060. $as_echo_n "checking build system type... " >&6; }
  2061. if ${ac_cv_build+:} false; then :
  2062. $as_echo_n "(cached) " >&6
  2063. else
  2064. ac_build_alias=$build_alias
  2065. test "x$ac_build_alias" = x &&
  2066. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2067. test "x$ac_build_alias" = x &&
  2068. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2069. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2070. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2071. fi
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2073. $as_echo "$ac_cv_build" >&6; }
  2074. case $ac_cv_build in
  2075. *-*-*) ;;
  2076. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2077. esac
  2078. build=$ac_cv_build
  2079. ac_save_IFS=$IFS; IFS='-'
  2080. set x $ac_cv_build
  2081. shift
  2082. build_cpu=$1
  2083. build_vendor=$2
  2084. shift; shift
  2085. # Remember, the first character of IFS is used to create $*,
  2086. # except with old shells:
  2087. build_os=$*
  2088. IFS=$ac_save_IFS
  2089. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2091. $as_echo_n "checking host system type... " >&6; }
  2092. if ${ac_cv_host+:} false; then :
  2093. $as_echo_n "(cached) " >&6
  2094. else
  2095. if test "x$host_alias" = x; then
  2096. ac_cv_host=$ac_cv_build
  2097. else
  2098. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2099. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2100. fi
  2101. fi
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2103. $as_echo "$ac_cv_host" >&6; }
  2104. case $ac_cv_host in
  2105. *-*-*) ;;
  2106. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2107. esac
  2108. host=$ac_cv_host
  2109. ac_save_IFS=$IFS; IFS='-'
  2110. set x $ac_cv_host
  2111. shift
  2112. host_cpu=$1
  2113. host_vendor=$2
  2114. shift; shift
  2115. # Remember, the first character of IFS is used to create $*,
  2116. # except with old shells:
  2117. host_os=$*
  2118. IFS=$ac_save_IFS
  2119. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2121. $as_echo_n "checking target system type... " >&6; }
  2122. if ${ac_cv_target+:} false; then :
  2123. $as_echo_n "(cached) " >&6
  2124. else
  2125. if test "x$target_alias" = x; then
  2126. ac_cv_target=$ac_cv_host
  2127. else
  2128. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2129. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2130. fi
  2131. fi
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2133. $as_echo "$ac_cv_target" >&6; }
  2134. case $ac_cv_target in
  2135. *-*-*) ;;
  2136. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2137. esac
  2138. target=$ac_cv_target
  2139. ac_save_IFS=$IFS; IFS='-'
  2140. set x $ac_cv_target
  2141. shift
  2142. target_cpu=$1
  2143. target_vendor=$2
  2144. shift; shift
  2145. # Remember, the first character of IFS is used to create $*,
  2146. # except with old shells:
  2147. target_os=$*
  2148. IFS=$ac_save_IFS
  2149. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2150. # The aliases save the names the user supplied, while $host etc.
  2151. # will get canonicalized.
  2152. test -n "$target_alias" &&
  2153. test "$program_prefix$program_suffix$program_transform_name" = \
  2154. NONENONEs,x,x, &&
  2155. program_prefix=${target_alias}-
  2156. am__api_version='1.15'
  2157. # Find a good install program. We prefer a C program (faster),
  2158. # so one script is as good as another. But avoid the broken or
  2159. # incompatible versions:
  2160. # SysV /etc/install, /usr/sbin/install
  2161. # SunOS /usr/etc/install
  2162. # IRIX /sbin/install
  2163. # AIX /bin/install
  2164. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2165. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2166. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2167. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2168. # OS/2's system install, which has a completely different semantic
  2169. # ./install, which can be erroneously created by make from ./install.sh.
  2170. # Reject install programs that cannot install multiple files.
  2171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2172. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2173. if test -z "$INSTALL"; then
  2174. if ${ac_cv_path_install+:} false; then :
  2175. $as_echo_n "(cached) " >&6
  2176. else
  2177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2178. for as_dir in $PATH
  2179. do
  2180. IFS=$as_save_IFS
  2181. test -z "$as_dir" && as_dir=.
  2182. # Account for people who put trailing slashes in PATH elements.
  2183. case $as_dir/ in #((
  2184. ./ | .// | /[cC]/* | \
  2185. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2186. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2187. /usr/ucb/* ) ;;
  2188. *)
  2189. # OSF1 and SCO ODT 3.0 have their own names for install.
  2190. # Don't use installbsd from OSF since it installs stuff as root
  2191. # by default.
  2192. for ac_prog in ginstall scoinst install; do
  2193. for ac_exec_ext in '' $ac_executable_extensions; do
  2194. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2195. if test $ac_prog = install &&
  2196. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2197. # AIX install. It has an incompatible calling convention.
  2198. :
  2199. elif test $ac_prog = install &&
  2200. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2201. # program-specific install script used by HP pwplus--don't use.
  2202. :
  2203. else
  2204. rm -rf conftest.one conftest.two conftest.dir
  2205. echo one > conftest.one
  2206. echo two > conftest.two
  2207. mkdir conftest.dir
  2208. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2209. test -s conftest.one && test -s conftest.two &&
  2210. test -s conftest.dir/conftest.one &&
  2211. test -s conftest.dir/conftest.two
  2212. then
  2213. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2214. break 3
  2215. fi
  2216. fi
  2217. fi
  2218. done
  2219. done
  2220. ;;
  2221. esac
  2222. done
  2223. IFS=$as_save_IFS
  2224. rm -rf conftest.one conftest.two conftest.dir
  2225. fi
  2226. if test "${ac_cv_path_install+set}" = set; then
  2227. INSTALL=$ac_cv_path_install
  2228. else
  2229. # As a last resort, use the slow shell script. Don't cache a
  2230. # value for INSTALL within a source directory, because that will
  2231. # break other packages using the cache if that directory is
  2232. # removed, or if the value is a relative name.
  2233. INSTALL=$ac_install_sh
  2234. fi
  2235. fi
  2236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2237. $as_echo "$INSTALL" >&6; }
  2238. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2239. # It thinks the first close brace ends the variable substitution.
  2240. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2241. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2242. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2244. $as_echo_n "checking whether build environment is sane... " >&6; }
  2245. # Reject unsafe characters in $srcdir or the absolute working directory
  2246. # name. Accept space and tab only in the latter.
  2247. am_lf='
  2248. '
  2249. case `pwd` in
  2250. *[\\\"\#\$\&\'\`$am_lf]*)
  2251. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2252. esac
  2253. case $srcdir in
  2254. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2255. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2256. esac
  2257. # Do 'set' in a subshell so we don't clobber the current shell's
  2258. # arguments. Must try -L first in case configure is actually a
  2259. # symlink; some systems play weird games with the mod time of symlinks
  2260. # (eg FreeBSD returns the mod time of the symlink's containing
  2261. # directory).
  2262. if (
  2263. am_has_slept=no
  2264. for am_try in 1 2; do
  2265. echo "timestamp, slept: $am_has_slept" > conftest.file
  2266. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2267. if test "$*" = "X"; then
  2268. # -L didn't work.
  2269. set X `ls -t "$srcdir/configure" conftest.file`
  2270. fi
  2271. if test "$*" != "X $srcdir/configure conftest.file" \
  2272. && test "$*" != "X conftest.file $srcdir/configure"; then
  2273. # If neither matched, then we have a broken ls. This can happen
  2274. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2275. # broken ls alias from the environment. This has actually
  2276. # happened. Such a system could not be considered "sane".
  2277. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2278. alias in your environment" "$LINENO" 5
  2279. fi
  2280. if test "$2" = conftest.file || test $am_try -eq 2; then
  2281. break
  2282. fi
  2283. # Just in case.
  2284. sleep 1
  2285. am_has_slept=yes
  2286. done
  2287. test "$2" = conftest.file
  2288. )
  2289. then
  2290. # Ok.
  2291. :
  2292. else
  2293. as_fn_error $? "newly created file is older than distributed files!
  2294. Check your system clock" "$LINENO" 5
  2295. fi
  2296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2297. $as_echo "yes" >&6; }
  2298. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2299. # generated files are strictly newer.
  2300. am_sleep_pid=
  2301. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2302. ( sleep 1 ) &
  2303. am_sleep_pid=$!
  2304. fi
  2305. rm -f conftest.file
  2306. test "$program_prefix" != NONE &&
  2307. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2308. # Use a double $ so make ignores it.
  2309. test "$program_suffix" != NONE &&
  2310. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2311. # Double any \ or $.
  2312. # By default was `s,x,x', remove it if useless.
  2313. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2314. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2315. # Expand $ac_aux_dir to an absolute path.
  2316. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2317. if test x"${MISSING+set}" != xset; then
  2318. case $am_aux_dir in
  2319. *\ * | *\ *)
  2320. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2321. *)
  2322. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2323. esac
  2324. fi
  2325. # Use eval to expand $SHELL
  2326. if eval "$MISSING --is-lightweight"; then
  2327. am_missing_run="$MISSING "
  2328. else
  2329. am_missing_run=
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2331. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2332. fi
  2333. if test x"${install_sh+set}" != xset; then
  2334. case $am_aux_dir in
  2335. *\ * | *\ *)
  2336. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2337. *)
  2338. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2339. esac
  2340. fi
  2341. # Installed binaries are usually stripped using 'strip' when the user
  2342. # run "make install-strip". However 'strip' might not be the right
  2343. # tool to use in cross-compilation environments, therefore Automake
  2344. # will honor the 'STRIP' environment variable to overrule this program.
  2345. if test "$cross_compiling" != no; then
  2346. if test -n "$ac_tool_prefix"; then
  2347. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2348. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2350. $as_echo_n "checking for $ac_word... " >&6; }
  2351. if ${ac_cv_prog_STRIP+:} false; then :
  2352. $as_echo_n "(cached) " >&6
  2353. else
  2354. if test -n "$STRIP"; then
  2355. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2356. else
  2357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2358. for as_dir in $PATH
  2359. do
  2360. IFS=$as_save_IFS
  2361. test -z "$as_dir" && as_dir=.
  2362. for ac_exec_ext in '' $ac_executable_extensions; do
  2363. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2364. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2366. break 2
  2367. fi
  2368. done
  2369. done
  2370. IFS=$as_save_IFS
  2371. fi
  2372. fi
  2373. STRIP=$ac_cv_prog_STRIP
  2374. if test -n "$STRIP"; then
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2376. $as_echo "$STRIP" >&6; }
  2377. else
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2379. $as_echo "no" >&6; }
  2380. fi
  2381. fi
  2382. if test -z "$ac_cv_prog_STRIP"; then
  2383. ac_ct_STRIP=$STRIP
  2384. # Extract the first word of "strip", so it can be a program name with args.
  2385. set dummy strip; ac_word=$2
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2387. $as_echo_n "checking for $ac_word... " >&6; }
  2388. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2389. $as_echo_n "(cached) " >&6
  2390. else
  2391. if test -n "$ac_ct_STRIP"; then
  2392. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2393. else
  2394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2395. for as_dir in $PATH
  2396. do
  2397. IFS=$as_save_IFS
  2398. test -z "$as_dir" && as_dir=.
  2399. for ac_exec_ext in '' $ac_executable_extensions; do
  2400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2401. ac_cv_prog_ac_ct_STRIP="strip"
  2402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2403. break 2
  2404. fi
  2405. done
  2406. done
  2407. IFS=$as_save_IFS
  2408. fi
  2409. fi
  2410. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2411. if test -n "$ac_ct_STRIP"; then
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2413. $as_echo "$ac_ct_STRIP" >&6; }
  2414. else
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2416. $as_echo "no" >&6; }
  2417. fi
  2418. if test "x$ac_ct_STRIP" = x; then
  2419. STRIP=":"
  2420. else
  2421. case $cross_compiling:$ac_tool_warned in
  2422. yes:)
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2424. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2425. ac_tool_warned=yes ;;
  2426. esac
  2427. STRIP=$ac_ct_STRIP
  2428. fi
  2429. else
  2430. STRIP="$ac_cv_prog_STRIP"
  2431. fi
  2432. fi
  2433. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2435. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2436. if test -z "$MKDIR_P"; then
  2437. if ${ac_cv_path_mkdir+:} false; then :
  2438. $as_echo_n "(cached) " >&6
  2439. else
  2440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2441. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2442. do
  2443. IFS=$as_save_IFS
  2444. test -z "$as_dir" && as_dir=.
  2445. for ac_prog in mkdir gmkdir; do
  2446. for ac_exec_ext in '' $ac_executable_extensions; do
  2447. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2448. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2449. 'mkdir (GNU coreutils) '* | \
  2450. 'mkdir (coreutils) '* | \
  2451. 'mkdir (fileutils) '4.1*)
  2452. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2453. break 3;;
  2454. esac
  2455. done
  2456. done
  2457. done
  2458. IFS=$as_save_IFS
  2459. fi
  2460. test -d ./--version && rmdir ./--version
  2461. if test "${ac_cv_path_mkdir+set}" = set; then
  2462. MKDIR_P="$ac_cv_path_mkdir -p"
  2463. else
  2464. # As a last resort, use the slow shell script. Don't cache a
  2465. # value for MKDIR_P within a source directory, because that will
  2466. # break other packages using the cache if that directory is
  2467. # removed, or if the value is a relative name.
  2468. MKDIR_P="$ac_install_sh -d"
  2469. fi
  2470. fi
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2472. $as_echo "$MKDIR_P" >&6; }
  2473. for ac_prog in gawk mawk nawk awk
  2474. do
  2475. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2476. set dummy $ac_prog; ac_word=$2
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2478. $as_echo_n "checking for $ac_word... " >&6; }
  2479. if ${ac_cv_prog_AWK+:} false; then :
  2480. $as_echo_n "(cached) " >&6
  2481. else
  2482. if test -n "$AWK"; then
  2483. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2484. else
  2485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2486. for as_dir in $PATH
  2487. do
  2488. IFS=$as_save_IFS
  2489. test -z "$as_dir" && as_dir=.
  2490. for ac_exec_ext in '' $ac_executable_extensions; do
  2491. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2492. ac_cv_prog_AWK="$ac_prog"
  2493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2494. break 2
  2495. fi
  2496. done
  2497. done
  2498. IFS=$as_save_IFS
  2499. fi
  2500. fi
  2501. AWK=$ac_cv_prog_AWK
  2502. if test -n "$AWK"; then
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2504. $as_echo "$AWK" >&6; }
  2505. else
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2507. $as_echo "no" >&6; }
  2508. fi
  2509. test -n "$AWK" && break
  2510. done
  2511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2512. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2513. set x ${MAKE-make}
  2514. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2515. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2516. $as_echo_n "(cached) " >&6
  2517. else
  2518. cat >conftest.make <<\_ACEOF
  2519. SHELL = /bin/sh
  2520. all:
  2521. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2522. _ACEOF
  2523. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2524. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2525. *@@@%%%=?*=@@@%%%*)
  2526. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2527. *)
  2528. eval ac_cv_prog_make_${ac_make}_set=no;;
  2529. esac
  2530. rm -f conftest.make
  2531. fi
  2532. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2534. $as_echo "yes" >&6; }
  2535. SET_MAKE=
  2536. else
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2538. $as_echo "no" >&6; }
  2539. SET_MAKE="MAKE=${MAKE-make}"
  2540. fi
  2541. rm -rf .tst 2>/dev/null
  2542. mkdir .tst 2>/dev/null
  2543. if test -d .tst; then
  2544. am__leading_dot=.
  2545. else
  2546. am__leading_dot=_
  2547. fi
  2548. rmdir .tst 2>/dev/null
  2549. # Check whether --enable-silent-rules was given.
  2550. if test "${enable_silent_rules+set}" = set; then :
  2551. enableval=$enable_silent_rules;
  2552. fi
  2553. case $enable_silent_rules in # (((
  2554. yes) AM_DEFAULT_VERBOSITY=0;;
  2555. no) AM_DEFAULT_VERBOSITY=1;;
  2556. *) AM_DEFAULT_VERBOSITY=1;;
  2557. esac
  2558. am_make=${MAKE-make}
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2560. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2561. if ${am_cv_make_support_nested_variables+:} false; then :
  2562. $as_echo_n "(cached) " >&6
  2563. else
  2564. if $as_echo 'TRUE=$(BAR$(V))
  2565. BAR0=false
  2566. BAR1=true
  2567. V=1
  2568. am__doit:
  2569. @$(TRUE)
  2570. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2571. am_cv_make_support_nested_variables=yes
  2572. else
  2573. am_cv_make_support_nested_variables=no
  2574. fi
  2575. fi
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2577. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2578. if test $am_cv_make_support_nested_variables = yes; then
  2579. AM_V='$(V)'
  2580. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2581. else
  2582. AM_V=$AM_DEFAULT_VERBOSITY
  2583. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2584. fi
  2585. AM_BACKSLASH='\'
  2586. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2587. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2588. # is not polluted with repeated "-I."
  2589. am__isrc=' -I$(srcdir)'
  2590. # test to see if srcdir already configured
  2591. if test -f $srcdir/config.status; then
  2592. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2593. fi
  2594. fi
  2595. # test whether we have cygpath
  2596. if test -z "$CYGPATH_W"; then
  2597. if (cygpath --version) >/dev/null 2>/dev/null; then
  2598. CYGPATH_W='cygpath -w'
  2599. else
  2600. CYGPATH_W=echo
  2601. fi
  2602. fi
  2603. # Define the identity of the package.
  2604. PACKAGE='gprof'
  2605. VERSION='2.38.50'
  2606. cat >>confdefs.h <<_ACEOF
  2607. #define PACKAGE "$PACKAGE"
  2608. _ACEOF
  2609. cat >>confdefs.h <<_ACEOF
  2610. #define VERSION "$VERSION"
  2611. _ACEOF
  2612. # Some tools Automake needs.
  2613. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2614. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2615. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2616. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2617. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2618. # For better backward compatibility. To be removed once Automake 1.9.x
  2619. # dies out for good. For more background, see:
  2620. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2621. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2622. mkdir_p='$(MKDIR_P)'
  2623. # We need awk for the "check" target (and possibly the TAP driver). The
  2624. # system "awk" is bad on some platforms.
  2625. # Always define AMTAR for backward compatibility. Yes, it's still used
  2626. # in the wild :-( We should find a proper way to deprecate it ...
  2627. AMTAR='$${TAR-tar}'
  2628. # We'll loop over all known methods to create a tar archive until one works.
  2629. _am_tools='gnutar pax cpio none'
  2630. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2631. # POSIX will say in a future version that running "rm -f" with no argument
  2632. # is OK; and we want to be able to make that assumption in our Makefile
  2633. # recipes. So use an aggressive probe to check that the usage we want is
  2634. # actually supported "in the wild" to an acceptable degree.
  2635. # See automake bug#10828.
  2636. # To make any issue more visible, cause the running configure to be aborted
  2637. # by default if the 'rm' program in use doesn't match our expectations; the
  2638. # user can still override this though.
  2639. if rm -f && rm -fr && rm -rf; then : OK; else
  2640. cat >&2 <<'END'
  2641. Oops!
  2642. Your 'rm' program seems unable to run without file operands specified
  2643. on the command line, even when the '-f' option is present. This is contrary
  2644. to the behaviour of most rm programs out there, and not conforming with
  2645. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2646. Please tell bug-automake@gnu.org about your system, including the value
  2647. of your $PATH and any error possibly output before this message. This
  2648. can help us improve future automake versions.
  2649. END
  2650. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2651. echo 'Configuration will proceed anyway, since you have set the' >&2
  2652. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2653. echo >&2
  2654. else
  2655. cat >&2 <<'END'
  2656. Aborting the configuration process, to ensure you take notice of the issue.
  2657. You can download and install GNU coreutils to get an 'rm' implementation
  2658. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2659. If you want to complete the configuration process using your problematic
  2660. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2661. to "yes", and re-run configure.
  2662. END
  2663. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2664. fi
  2665. fi
  2666. # Check whether --enable-silent-rules was given.
  2667. if test "${enable_silent_rules+set}" = set; then :
  2668. enableval=$enable_silent_rules;
  2669. fi
  2670. case $enable_silent_rules in # (((
  2671. yes) AM_DEFAULT_VERBOSITY=0;;
  2672. no) AM_DEFAULT_VERBOSITY=1;;
  2673. *) AM_DEFAULT_VERBOSITY=0;;
  2674. esac
  2675. am_make=${MAKE-make}
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2677. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2678. if ${am_cv_make_support_nested_variables+:} false; then :
  2679. $as_echo_n "(cached) " >&6
  2680. else
  2681. if $as_echo 'TRUE=$(BAR$(V))
  2682. BAR0=false
  2683. BAR1=true
  2684. V=1
  2685. am__doit:
  2686. @$(TRUE)
  2687. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2688. am_cv_make_support_nested_variables=yes
  2689. else
  2690. am_cv_make_support_nested_variables=no
  2691. fi
  2692. fi
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2694. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2695. if test $am_cv_make_support_nested_variables = yes; then
  2696. AM_V='$(V)'
  2697. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2698. else
  2699. AM_V=$AM_DEFAULT_VERBOSITY
  2700. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2701. fi
  2702. AM_BACKSLASH='\'
  2703. ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
  2704. ac_ext=c
  2705. ac_cpp='$CPP $CPPFLAGS'
  2706. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2707. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2708. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2709. if test -n "$ac_tool_prefix"; then
  2710. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2711. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2713. $as_echo_n "checking for $ac_word... " >&6; }
  2714. if ${ac_cv_prog_CC+:} false; then :
  2715. $as_echo_n "(cached) " >&6
  2716. else
  2717. if test -n "$CC"; then
  2718. ac_cv_prog_CC="$CC" # Let the user override the test.
  2719. else
  2720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2721. for as_dir in $PATH
  2722. do
  2723. IFS=$as_save_IFS
  2724. test -z "$as_dir" && as_dir=.
  2725. for ac_exec_ext in '' $ac_executable_extensions; do
  2726. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2727. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2728. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2729. break 2
  2730. fi
  2731. done
  2732. done
  2733. IFS=$as_save_IFS
  2734. fi
  2735. fi
  2736. CC=$ac_cv_prog_CC
  2737. if test -n "$CC"; then
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2739. $as_echo "$CC" >&6; }
  2740. else
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2742. $as_echo "no" >&6; }
  2743. fi
  2744. fi
  2745. if test -z "$ac_cv_prog_CC"; then
  2746. ac_ct_CC=$CC
  2747. # Extract the first word of "gcc", so it can be a program name with args.
  2748. set dummy gcc; ac_word=$2
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2750. $as_echo_n "checking for $ac_word... " >&6; }
  2751. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2752. $as_echo_n "(cached) " >&6
  2753. else
  2754. if test -n "$ac_ct_CC"; then
  2755. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2756. else
  2757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2758. for as_dir in $PATH
  2759. do
  2760. IFS=$as_save_IFS
  2761. test -z "$as_dir" && as_dir=.
  2762. for ac_exec_ext in '' $ac_executable_extensions; do
  2763. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2764. ac_cv_prog_ac_ct_CC="gcc"
  2765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2766. break 2
  2767. fi
  2768. done
  2769. done
  2770. IFS=$as_save_IFS
  2771. fi
  2772. fi
  2773. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2774. if test -n "$ac_ct_CC"; then
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2776. $as_echo "$ac_ct_CC" >&6; }
  2777. else
  2778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2779. $as_echo "no" >&6; }
  2780. fi
  2781. if test "x$ac_ct_CC" = x; then
  2782. CC=""
  2783. else
  2784. case $cross_compiling:$ac_tool_warned in
  2785. yes:)
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2787. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2788. ac_tool_warned=yes ;;
  2789. esac
  2790. CC=$ac_ct_CC
  2791. fi
  2792. else
  2793. CC="$ac_cv_prog_CC"
  2794. fi
  2795. if test -z "$CC"; then
  2796. if test -n "$ac_tool_prefix"; then
  2797. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2798. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2800. $as_echo_n "checking for $ac_word... " >&6; }
  2801. if ${ac_cv_prog_CC+:} false; then :
  2802. $as_echo_n "(cached) " >&6
  2803. else
  2804. if test -n "$CC"; then
  2805. ac_cv_prog_CC="$CC" # Let the user override the test.
  2806. else
  2807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2808. for as_dir in $PATH
  2809. do
  2810. IFS=$as_save_IFS
  2811. test -z "$as_dir" && as_dir=.
  2812. for ac_exec_ext in '' $ac_executable_extensions; do
  2813. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2814. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2816. break 2
  2817. fi
  2818. done
  2819. done
  2820. IFS=$as_save_IFS
  2821. fi
  2822. fi
  2823. CC=$ac_cv_prog_CC
  2824. if test -n "$CC"; then
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2826. $as_echo "$CC" >&6; }
  2827. else
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2829. $as_echo "no" >&6; }
  2830. fi
  2831. fi
  2832. fi
  2833. if test -z "$CC"; then
  2834. # Extract the first word of "cc", so it can be a program name with args.
  2835. set dummy cc; ac_word=$2
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2837. $as_echo_n "checking for $ac_word... " >&6; }
  2838. if ${ac_cv_prog_CC+:} false; then :
  2839. $as_echo_n "(cached) " >&6
  2840. else
  2841. if test -n "$CC"; then
  2842. ac_cv_prog_CC="$CC" # Let the user override the test.
  2843. else
  2844. ac_prog_rejected=no
  2845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2846. for as_dir in $PATH
  2847. do
  2848. IFS=$as_save_IFS
  2849. test -z "$as_dir" && as_dir=.
  2850. for ac_exec_ext in '' $ac_executable_extensions; do
  2851. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2852. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2853. ac_prog_rejected=yes
  2854. continue
  2855. fi
  2856. ac_cv_prog_CC="cc"
  2857. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2858. break 2
  2859. fi
  2860. done
  2861. done
  2862. IFS=$as_save_IFS
  2863. if test $ac_prog_rejected = yes; then
  2864. # We found a bogon in the path, so make sure we never use it.
  2865. set dummy $ac_cv_prog_CC
  2866. shift
  2867. if test $# != 0; then
  2868. # We chose a different compiler from the bogus one.
  2869. # However, it has the same basename, so the bogon will be chosen
  2870. # first if we set CC to just the basename; use the full file name.
  2871. shift
  2872. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2873. fi
  2874. fi
  2875. fi
  2876. fi
  2877. CC=$ac_cv_prog_CC
  2878. if test -n "$CC"; then
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2880. $as_echo "$CC" >&6; }
  2881. else
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2883. $as_echo "no" >&6; }
  2884. fi
  2885. fi
  2886. if test -z "$CC"; then
  2887. if test -n "$ac_tool_prefix"; then
  2888. for ac_prog in cl.exe
  2889. do
  2890. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2891. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2893. $as_echo_n "checking for $ac_word... " >&6; }
  2894. if ${ac_cv_prog_CC+:} false; then :
  2895. $as_echo_n "(cached) " >&6
  2896. else
  2897. if test -n "$CC"; then
  2898. ac_cv_prog_CC="$CC" # Let the user override the test.
  2899. else
  2900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2901. for as_dir in $PATH
  2902. do
  2903. IFS=$as_save_IFS
  2904. test -z "$as_dir" && as_dir=.
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2907. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2909. break 2
  2910. fi
  2911. done
  2912. done
  2913. IFS=$as_save_IFS
  2914. fi
  2915. fi
  2916. CC=$ac_cv_prog_CC
  2917. if test -n "$CC"; then
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2919. $as_echo "$CC" >&6; }
  2920. else
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2922. $as_echo "no" >&6; }
  2923. fi
  2924. test -n "$CC" && break
  2925. done
  2926. fi
  2927. if test -z "$CC"; then
  2928. ac_ct_CC=$CC
  2929. for ac_prog in cl.exe
  2930. do
  2931. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2932. set dummy $ac_prog; ac_word=$2
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2934. $as_echo_n "checking for $ac_word... " >&6; }
  2935. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2936. $as_echo_n "(cached) " >&6
  2937. else
  2938. if test -n "$ac_ct_CC"; then
  2939. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2940. else
  2941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2942. for as_dir in $PATH
  2943. do
  2944. IFS=$as_save_IFS
  2945. test -z "$as_dir" && as_dir=.
  2946. for ac_exec_ext in '' $ac_executable_extensions; do
  2947. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2948. ac_cv_prog_ac_ct_CC="$ac_prog"
  2949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2950. break 2
  2951. fi
  2952. done
  2953. done
  2954. IFS=$as_save_IFS
  2955. fi
  2956. fi
  2957. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2958. if test -n "$ac_ct_CC"; then
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2960. $as_echo "$ac_ct_CC" >&6; }
  2961. else
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2963. $as_echo "no" >&6; }
  2964. fi
  2965. test -n "$ac_ct_CC" && break
  2966. done
  2967. if test "x$ac_ct_CC" = x; then
  2968. CC=""
  2969. else
  2970. case $cross_compiling:$ac_tool_warned in
  2971. yes:)
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2973. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2974. ac_tool_warned=yes ;;
  2975. esac
  2976. CC=$ac_ct_CC
  2977. fi
  2978. fi
  2979. fi
  2980. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2981. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2982. as_fn_error $? "no acceptable C compiler found in \$PATH
  2983. See \`config.log' for more details" "$LINENO" 5; }
  2984. # Provide some information about the compiler.
  2985. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2986. set X $ac_compile
  2987. ac_compiler=$2
  2988. for ac_option in --version -v -V -qversion; do
  2989. { { ac_try="$ac_compiler $ac_option >&5"
  2990. case "(($ac_try" in
  2991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2992. *) ac_try_echo=$ac_try;;
  2993. esac
  2994. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2995. $as_echo "$ac_try_echo"; } >&5
  2996. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2997. ac_status=$?
  2998. if test -s conftest.err; then
  2999. sed '10a\
  3000. ... rest of stderr output deleted ...
  3001. 10q' conftest.err >conftest.er1
  3002. cat conftest.er1 >&5
  3003. fi
  3004. rm -f conftest.er1 conftest.err
  3005. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3006. test $ac_status = 0; }
  3007. done
  3008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3009. /* end confdefs.h. */
  3010. int
  3011. main ()
  3012. {
  3013. ;
  3014. return 0;
  3015. }
  3016. _ACEOF
  3017. ac_clean_files_save=$ac_clean_files
  3018. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3019. # Try to create an executable without -o first, disregard a.out.
  3020. # It will help us diagnose broken compilers, and finding out an intuition
  3021. # of exeext.
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3023. $as_echo_n "checking whether the C compiler works... " >&6; }
  3024. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3025. # The possible output files:
  3026. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3027. ac_rmfiles=
  3028. for ac_file in $ac_files
  3029. do
  3030. case $ac_file in
  3031. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3032. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3033. esac
  3034. done
  3035. rm -f $ac_rmfiles
  3036. if { { ac_try="$ac_link_default"
  3037. case "(($ac_try" in
  3038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3039. *) ac_try_echo=$ac_try;;
  3040. esac
  3041. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3042. $as_echo "$ac_try_echo"; } >&5
  3043. (eval "$ac_link_default") 2>&5
  3044. ac_status=$?
  3045. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3046. test $ac_status = 0; }; then :
  3047. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3048. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3049. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3050. # so that the user can short-circuit this test for compilers unknown to
  3051. # Autoconf.
  3052. for ac_file in $ac_files ''
  3053. do
  3054. test -f "$ac_file" || continue
  3055. case $ac_file in
  3056. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3057. ;;
  3058. [ab].out )
  3059. # We found the default executable, but exeext='' is most
  3060. # certainly right.
  3061. break;;
  3062. *.* )
  3063. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3064. then :; else
  3065. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3066. fi
  3067. # We set ac_cv_exeext here because the later test for it is not
  3068. # safe: cross compilers may not add the suffix if given an `-o'
  3069. # argument, so we may need to know it at that point already.
  3070. # Even if this section looks crufty: it has the advantage of
  3071. # actually working.
  3072. break;;
  3073. * )
  3074. break;;
  3075. esac
  3076. done
  3077. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3078. else
  3079. ac_file=''
  3080. fi
  3081. if test -z "$ac_file"; then :
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3083. $as_echo "no" >&6; }
  3084. $as_echo "$as_me: failed program was:" >&5
  3085. sed 's/^/| /' conftest.$ac_ext >&5
  3086. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3087. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3088. as_fn_error 77 "C compiler cannot create executables
  3089. See \`config.log' for more details" "$LINENO" 5; }
  3090. else
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3092. $as_echo "yes" >&6; }
  3093. fi
  3094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3095. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3097. $as_echo "$ac_file" >&6; }
  3098. ac_exeext=$ac_cv_exeext
  3099. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3100. ac_clean_files=$ac_clean_files_save
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3102. $as_echo_n "checking for suffix of executables... " >&6; }
  3103. if { { ac_try="$ac_link"
  3104. case "(($ac_try" in
  3105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3106. *) ac_try_echo=$ac_try;;
  3107. esac
  3108. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3109. $as_echo "$ac_try_echo"; } >&5
  3110. (eval "$ac_link") 2>&5
  3111. ac_status=$?
  3112. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3113. test $ac_status = 0; }; then :
  3114. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3115. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3116. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3117. # `rm'.
  3118. for ac_file in conftest.exe conftest conftest.*; do
  3119. test -f "$ac_file" || continue
  3120. case $ac_file in
  3121. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3122. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3123. break;;
  3124. * ) break;;
  3125. esac
  3126. done
  3127. else
  3128. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3129. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3130. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3131. See \`config.log' for more details" "$LINENO" 5; }
  3132. fi
  3133. rm -f conftest conftest$ac_cv_exeext
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3135. $as_echo "$ac_cv_exeext" >&6; }
  3136. rm -f conftest.$ac_ext
  3137. EXEEXT=$ac_cv_exeext
  3138. ac_exeext=$EXEEXT
  3139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3140. /* end confdefs.h. */
  3141. #include <stdio.h>
  3142. int
  3143. main ()
  3144. {
  3145. FILE *f = fopen ("conftest.out", "w");
  3146. return ferror (f) || fclose (f) != 0;
  3147. ;
  3148. return 0;
  3149. }
  3150. _ACEOF
  3151. ac_clean_files="$ac_clean_files conftest.out"
  3152. # Check that the compiler produces executables we can run. If not, either
  3153. # the compiler is broken, or we cross compile.
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3155. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3156. if test "$cross_compiling" != yes; then
  3157. { { ac_try="$ac_link"
  3158. case "(($ac_try" in
  3159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3160. *) ac_try_echo=$ac_try;;
  3161. esac
  3162. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3163. $as_echo "$ac_try_echo"; } >&5
  3164. (eval "$ac_link") 2>&5
  3165. ac_status=$?
  3166. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3167. test $ac_status = 0; }
  3168. if { ac_try='./conftest$ac_cv_exeext'
  3169. { { case "(($ac_try" in
  3170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3171. *) ac_try_echo=$ac_try;;
  3172. esac
  3173. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3174. $as_echo "$ac_try_echo"; } >&5
  3175. (eval "$ac_try") 2>&5
  3176. ac_status=$?
  3177. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3178. test $ac_status = 0; }; }; then
  3179. cross_compiling=no
  3180. else
  3181. if test "$cross_compiling" = maybe; then
  3182. cross_compiling=yes
  3183. else
  3184. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3185. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3186. as_fn_error $? "cannot run C compiled programs.
  3187. If you meant to cross compile, use \`--host'.
  3188. See \`config.log' for more details" "$LINENO" 5; }
  3189. fi
  3190. fi
  3191. fi
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3193. $as_echo "$cross_compiling" >&6; }
  3194. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3195. ac_clean_files=$ac_clean_files_save
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3197. $as_echo_n "checking for suffix of object files... " >&6; }
  3198. if ${ac_cv_objext+:} false; then :
  3199. $as_echo_n "(cached) " >&6
  3200. else
  3201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3202. /* end confdefs.h. */
  3203. int
  3204. main ()
  3205. {
  3206. ;
  3207. return 0;
  3208. }
  3209. _ACEOF
  3210. rm -f conftest.o conftest.obj
  3211. if { { ac_try="$ac_compile"
  3212. case "(($ac_try" in
  3213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3214. *) ac_try_echo=$ac_try;;
  3215. esac
  3216. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3217. $as_echo "$ac_try_echo"; } >&5
  3218. (eval "$ac_compile") 2>&5
  3219. ac_status=$?
  3220. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3221. test $ac_status = 0; }; then :
  3222. for ac_file in conftest.o conftest.obj conftest.*; do
  3223. test -f "$ac_file" || continue;
  3224. case $ac_file in
  3225. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3226. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3227. break;;
  3228. esac
  3229. done
  3230. else
  3231. $as_echo "$as_me: failed program was:" >&5
  3232. sed 's/^/| /' conftest.$ac_ext >&5
  3233. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3234. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3235. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3236. See \`config.log' for more details" "$LINENO" 5; }
  3237. fi
  3238. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3239. fi
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3241. $as_echo "$ac_cv_objext" >&6; }
  3242. OBJEXT=$ac_cv_objext
  3243. ac_objext=$OBJEXT
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3245. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3246. if ${ac_cv_c_compiler_gnu+:} false; then :
  3247. $as_echo_n "(cached) " >&6
  3248. else
  3249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3250. /* end confdefs.h. */
  3251. int
  3252. main ()
  3253. {
  3254. #ifndef __GNUC__
  3255. choke me
  3256. #endif
  3257. ;
  3258. return 0;
  3259. }
  3260. _ACEOF
  3261. if ac_fn_c_try_compile "$LINENO"; then :
  3262. ac_compiler_gnu=yes
  3263. else
  3264. ac_compiler_gnu=no
  3265. fi
  3266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3267. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3268. fi
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3270. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3271. if test $ac_compiler_gnu = yes; then
  3272. GCC=yes
  3273. else
  3274. GCC=
  3275. fi
  3276. ac_test_CFLAGS=${CFLAGS+set}
  3277. ac_save_CFLAGS=$CFLAGS
  3278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3279. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3280. if ${ac_cv_prog_cc_g+:} false; then :
  3281. $as_echo_n "(cached) " >&6
  3282. else
  3283. ac_save_c_werror_flag=$ac_c_werror_flag
  3284. ac_c_werror_flag=yes
  3285. ac_cv_prog_cc_g=no
  3286. CFLAGS="-g"
  3287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3288. /* end confdefs.h. */
  3289. int
  3290. main ()
  3291. {
  3292. ;
  3293. return 0;
  3294. }
  3295. _ACEOF
  3296. if ac_fn_c_try_compile "$LINENO"; then :
  3297. ac_cv_prog_cc_g=yes
  3298. else
  3299. CFLAGS=""
  3300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3301. /* end confdefs.h. */
  3302. int
  3303. main ()
  3304. {
  3305. ;
  3306. return 0;
  3307. }
  3308. _ACEOF
  3309. if ac_fn_c_try_compile "$LINENO"; then :
  3310. else
  3311. ac_c_werror_flag=$ac_save_c_werror_flag
  3312. CFLAGS="-g"
  3313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3314. /* end confdefs.h. */
  3315. int
  3316. main ()
  3317. {
  3318. ;
  3319. return 0;
  3320. }
  3321. _ACEOF
  3322. if ac_fn_c_try_compile "$LINENO"; then :
  3323. ac_cv_prog_cc_g=yes
  3324. fi
  3325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3326. fi
  3327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3328. fi
  3329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3330. ac_c_werror_flag=$ac_save_c_werror_flag
  3331. fi
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3333. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3334. if test "$ac_test_CFLAGS" = set; then
  3335. CFLAGS=$ac_save_CFLAGS
  3336. elif test $ac_cv_prog_cc_g = yes; then
  3337. if test "$GCC" = yes; then
  3338. CFLAGS="-g -O2"
  3339. else
  3340. CFLAGS="-g"
  3341. fi
  3342. else
  3343. if test "$GCC" = yes; then
  3344. CFLAGS="-O2"
  3345. else
  3346. CFLAGS=
  3347. fi
  3348. fi
  3349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3350. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3351. if ${ac_cv_prog_cc_c89+:} false; then :
  3352. $as_echo_n "(cached) " >&6
  3353. else
  3354. ac_cv_prog_cc_c89=no
  3355. ac_save_CC=$CC
  3356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3357. /* end confdefs.h. */
  3358. #include <stdarg.h>
  3359. #include <stdio.h>
  3360. struct stat;
  3361. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3362. struct buf { int x; };
  3363. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3364. static char *e (p, i)
  3365. char **p;
  3366. int i;
  3367. {
  3368. return p[i];
  3369. }
  3370. static char *f (char * (*g) (char **, int), char **p, ...)
  3371. {
  3372. char *s;
  3373. va_list v;
  3374. va_start (v,p);
  3375. s = g (p, va_arg (v,int));
  3376. va_end (v);
  3377. return s;
  3378. }
  3379. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3380. function prototypes and stuff, but not '\xHH' hex character constants.
  3381. These don't provoke an error unfortunately, instead are silently treated
  3382. as 'x'. The following induces an error, until -std is added to get
  3383. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3384. array size at least. It's necessary to write '\x00'==0 to get something
  3385. that's true only with -std. */
  3386. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3387. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3388. inside strings and character constants. */
  3389. #define FOO(x) 'x'
  3390. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3391. int test (int i, double x);
  3392. struct s1 {int (*f) (int a);};
  3393. struct s2 {int (*f) (double a);};
  3394. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3395. int argc;
  3396. char **argv;
  3397. int
  3398. main ()
  3399. {
  3400. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3401. ;
  3402. return 0;
  3403. }
  3404. _ACEOF
  3405. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3406. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3407. do
  3408. CC="$ac_save_CC $ac_arg"
  3409. if ac_fn_c_try_compile "$LINENO"; then :
  3410. ac_cv_prog_cc_c89=$ac_arg
  3411. fi
  3412. rm -f core conftest.err conftest.$ac_objext
  3413. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3414. done
  3415. rm -f conftest.$ac_ext
  3416. CC=$ac_save_CC
  3417. fi
  3418. # AC_CACHE_VAL
  3419. case "x$ac_cv_prog_cc_c89" in
  3420. x)
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3422. $as_echo "none needed" >&6; } ;;
  3423. xno)
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3425. $as_echo "unsupported" >&6; } ;;
  3426. *)
  3427. CC="$CC $ac_cv_prog_cc_c89"
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3429. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3430. esac
  3431. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3432. fi
  3433. ac_ext=c
  3434. ac_cpp='$CPP $CPPFLAGS'
  3435. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3436. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3437. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3438. ac_ext=c
  3439. ac_cpp='$CPP $CPPFLAGS'
  3440. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3441. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3442. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3444. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3445. if ${am_cv_prog_cc_c_o+:} false; then :
  3446. $as_echo_n "(cached) " >&6
  3447. else
  3448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3449. /* end confdefs.h. */
  3450. int
  3451. main ()
  3452. {
  3453. ;
  3454. return 0;
  3455. }
  3456. _ACEOF
  3457. # Make sure it works both with $CC and with simple cc.
  3458. # Following AC_PROG_CC_C_O, we do the test twice because some
  3459. # compilers refuse to overwrite an existing .o file with -o,
  3460. # though they will create one.
  3461. am_cv_prog_cc_c_o=yes
  3462. for am_i in 1 2; do
  3463. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3464. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3465. ac_status=$?
  3466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3467. (exit $ac_status); } \
  3468. && test -f conftest2.$ac_objext; then
  3469. : OK
  3470. else
  3471. am_cv_prog_cc_c_o=no
  3472. break
  3473. fi
  3474. done
  3475. rm -f core conftest*
  3476. unset am_i
  3477. fi
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3479. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3480. if test "$am_cv_prog_cc_c_o" != yes; then
  3481. # Losing compiler, so override with the script.
  3482. # FIXME: It is wrong to rewrite CC.
  3483. # But if we don't then we get into trouble of one sort or another.
  3484. # A longer-term fix would be to have automake use am__CC in this case,
  3485. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3486. CC="$am_aux_dir/compile $CC"
  3487. fi
  3488. ac_ext=c
  3489. ac_cpp='$CPP $CPPFLAGS'
  3490. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3491. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3492. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3493. DEPDIR="${am__leading_dot}deps"
  3494. ac_config_commands="$ac_config_commands depfiles"
  3495. am_make=${MAKE-make}
  3496. cat > confinc << 'END'
  3497. am__doit:
  3498. @echo this is the am__doit target
  3499. .PHONY: am__doit
  3500. END
  3501. # If we don't find an include directive, just comment out the code.
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3503. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3504. am__include="#"
  3505. am__quote=
  3506. _am_result=none
  3507. # First try GNU make style include.
  3508. echo "include confinc" > confmf
  3509. # Ignore all kinds of additional output from 'make'.
  3510. case `$am_make -s -f confmf 2> /dev/null` in #(
  3511. *the\ am__doit\ target*)
  3512. am__include=include
  3513. am__quote=
  3514. _am_result=GNU
  3515. ;;
  3516. esac
  3517. # Now try BSD make style include.
  3518. if test "$am__include" = "#"; then
  3519. echo '.include "confinc"' > confmf
  3520. case `$am_make -s -f confmf 2> /dev/null` in #(
  3521. *the\ am__doit\ target*)
  3522. am__include=.include
  3523. am__quote="\""
  3524. _am_result=BSD
  3525. ;;
  3526. esac
  3527. fi
  3528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3529. $as_echo "$_am_result" >&6; }
  3530. rm -f confinc confmf
  3531. # Check whether --enable-dependency-tracking was given.
  3532. if test "${enable_dependency_tracking+set}" = set; then :
  3533. enableval=$enable_dependency_tracking;
  3534. fi
  3535. if test "x$enable_dependency_tracking" != xno; then
  3536. am_depcomp="$ac_aux_dir/depcomp"
  3537. AMDEPBACKSLASH='\'
  3538. am__nodep='_no'
  3539. fi
  3540. if test "x$enable_dependency_tracking" != xno; then
  3541. AMDEP_TRUE=
  3542. AMDEP_FALSE='#'
  3543. else
  3544. AMDEP_TRUE='#'
  3545. AMDEP_FALSE=
  3546. fi
  3547. depcc="$CC" am_compiler_list=
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3549. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3550. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3551. $as_echo_n "(cached) " >&6
  3552. else
  3553. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3554. # We make a subdir and do the tests there. Otherwise we can end up
  3555. # making bogus files that we don't know about and never remove. For
  3556. # instance it was reported that on HP-UX the gcc test will end up
  3557. # making a dummy file named 'D' -- because '-MD' means "put the output
  3558. # in D".
  3559. rm -rf conftest.dir
  3560. mkdir conftest.dir
  3561. # Copy depcomp to subdir because otherwise we won't find it if we're
  3562. # using a relative directory.
  3563. cp "$am_depcomp" conftest.dir
  3564. cd conftest.dir
  3565. # We will build objects and dependencies in a subdirectory because
  3566. # it helps to detect inapplicable dependency modes. For instance
  3567. # both Tru64's cc and ICC support -MD to output dependencies as a
  3568. # side effect of compilation, but ICC will put the dependencies in
  3569. # the current directory while Tru64 will put them in the object
  3570. # directory.
  3571. mkdir sub
  3572. am_cv_CC_dependencies_compiler_type=none
  3573. if test "$am_compiler_list" = ""; then
  3574. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3575. fi
  3576. am__universal=false
  3577. case " $depcc " in #(
  3578. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3579. esac
  3580. for depmode in $am_compiler_list; do
  3581. # Setup a source with many dependencies, because some compilers
  3582. # like to wrap large dependency lists on column 80 (with \), and
  3583. # we should not choose a depcomp mode which is confused by this.
  3584. #
  3585. # We need to recreate these files for each test, as the compiler may
  3586. # overwrite some of them when testing with obscure command lines.
  3587. # This happens at least with the AIX C compiler.
  3588. : > sub/conftest.c
  3589. for i in 1 2 3 4 5 6; do
  3590. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3591. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3592. # Solaris 10 /bin/sh.
  3593. echo '/* dummy */' > sub/conftst$i.h
  3594. done
  3595. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3596. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3597. # mode. It turns out that the SunPro C++ compiler does not properly
  3598. # handle '-M -o', and we need to detect this. Also, some Intel
  3599. # versions had trouble with output in subdirs.
  3600. am__obj=sub/conftest.${OBJEXT-o}
  3601. am__minus_obj="-o $am__obj"
  3602. case $depmode in
  3603. gcc)
  3604. # This depmode causes a compiler race in universal mode.
  3605. test "$am__universal" = false || continue
  3606. ;;
  3607. nosideeffect)
  3608. # After this tag, mechanisms are not by side-effect, so they'll
  3609. # only be used when explicitly requested.
  3610. if test "x$enable_dependency_tracking" = xyes; then
  3611. continue
  3612. else
  3613. break
  3614. fi
  3615. ;;
  3616. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3617. # This compiler won't grok '-c -o', but also, the minuso test has
  3618. # not run yet. These depmodes are late enough in the game, and
  3619. # so weak that their functioning should not be impacted.
  3620. am__obj=conftest.${OBJEXT-o}
  3621. am__minus_obj=
  3622. ;;
  3623. none) break ;;
  3624. esac
  3625. if depmode=$depmode \
  3626. source=sub/conftest.c object=$am__obj \
  3627. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3628. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3629. >/dev/null 2>conftest.err &&
  3630. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3631. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3632. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3633. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3634. # icc doesn't choke on unknown options, it will just issue warnings
  3635. # or remarks (even with -Werror). So we grep stderr for any message
  3636. # that says an option was ignored or not supported.
  3637. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3638. # icc: Command line warning: ignoring option '-M'; no argument required
  3639. # The diagnosis changed in icc 8.0:
  3640. # icc: Command line remark: option '-MP' not supported
  3641. if (grep 'ignoring option' conftest.err ||
  3642. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3643. am_cv_CC_dependencies_compiler_type=$depmode
  3644. break
  3645. fi
  3646. fi
  3647. done
  3648. cd ..
  3649. rm -rf conftest.dir
  3650. else
  3651. am_cv_CC_dependencies_compiler_type=none
  3652. fi
  3653. fi
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3655. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3656. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3657. if
  3658. test "x$enable_dependency_tracking" != xno \
  3659. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3660. am__fastdepCC_TRUE=
  3661. am__fastdepCC_FALSE='#'
  3662. else
  3663. am__fastdepCC_TRUE='#'
  3664. am__fastdepCC_FALSE=
  3665. fi
  3666. ac_ext=c
  3667. ac_cpp='$CPP $CPPFLAGS'
  3668. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3669. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3670. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3672. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3673. # On Suns, sometimes $CPP names a directory.
  3674. if test -n "$CPP" && test -d "$CPP"; then
  3675. CPP=
  3676. fi
  3677. if test -z "$CPP"; then
  3678. if ${ac_cv_prog_CPP+:} false; then :
  3679. $as_echo_n "(cached) " >&6
  3680. else
  3681. # Double quotes because CPP needs to be expanded
  3682. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3683. do
  3684. ac_preproc_ok=false
  3685. for ac_c_preproc_warn_flag in '' yes
  3686. do
  3687. # Use a header file that comes with gcc, so configuring glibc
  3688. # with a fresh cross-compiler works.
  3689. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3690. # <limits.h> exists even on freestanding compilers.
  3691. # On the NeXT, cc -E runs the code through the compiler's parser,
  3692. # not just through cpp. "Syntax error" is here to catch this case.
  3693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3694. /* end confdefs.h. */
  3695. #ifdef __STDC__
  3696. # include <limits.h>
  3697. #else
  3698. # include <assert.h>
  3699. #endif
  3700. Syntax error
  3701. _ACEOF
  3702. if ac_fn_c_try_cpp "$LINENO"; then :
  3703. else
  3704. # Broken: fails on valid input.
  3705. continue
  3706. fi
  3707. rm -f conftest.err conftest.i conftest.$ac_ext
  3708. # OK, works on sane cases. Now check whether nonexistent headers
  3709. # can be detected and how.
  3710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3711. /* end confdefs.h. */
  3712. #include <ac_nonexistent.h>
  3713. _ACEOF
  3714. if ac_fn_c_try_cpp "$LINENO"; then :
  3715. # Broken: success on invalid input.
  3716. continue
  3717. else
  3718. # Passes both tests.
  3719. ac_preproc_ok=:
  3720. break
  3721. fi
  3722. rm -f conftest.err conftest.i conftest.$ac_ext
  3723. done
  3724. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3725. rm -f conftest.i conftest.err conftest.$ac_ext
  3726. if $ac_preproc_ok; then :
  3727. break
  3728. fi
  3729. done
  3730. ac_cv_prog_CPP=$CPP
  3731. fi
  3732. CPP=$ac_cv_prog_CPP
  3733. else
  3734. ac_cv_prog_CPP=$CPP
  3735. fi
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3737. $as_echo "$CPP" >&6; }
  3738. ac_preproc_ok=false
  3739. for ac_c_preproc_warn_flag in '' yes
  3740. do
  3741. # Use a header file that comes with gcc, so configuring glibc
  3742. # with a fresh cross-compiler works.
  3743. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3744. # <limits.h> exists even on freestanding compilers.
  3745. # On the NeXT, cc -E runs the code through the compiler's parser,
  3746. # not just through cpp. "Syntax error" is here to catch this case.
  3747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3748. /* end confdefs.h. */
  3749. #ifdef __STDC__
  3750. # include <limits.h>
  3751. #else
  3752. # include <assert.h>
  3753. #endif
  3754. Syntax error
  3755. _ACEOF
  3756. if ac_fn_c_try_cpp "$LINENO"; then :
  3757. else
  3758. # Broken: fails on valid input.
  3759. continue
  3760. fi
  3761. rm -f conftest.err conftest.i conftest.$ac_ext
  3762. # OK, works on sane cases. Now check whether nonexistent headers
  3763. # can be detected and how.
  3764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3765. /* end confdefs.h. */
  3766. #include <ac_nonexistent.h>
  3767. _ACEOF
  3768. if ac_fn_c_try_cpp "$LINENO"; then :
  3769. # Broken: success on invalid input.
  3770. continue
  3771. else
  3772. # Passes both tests.
  3773. ac_preproc_ok=:
  3774. break
  3775. fi
  3776. rm -f conftest.err conftest.i conftest.$ac_ext
  3777. done
  3778. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3779. rm -f conftest.i conftest.err conftest.$ac_ext
  3780. if $ac_preproc_ok; then :
  3781. else
  3782. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3783. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3784. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3785. See \`config.log' for more details" "$LINENO" 5; }
  3786. fi
  3787. ac_ext=c
  3788. ac_cpp='$CPP $CPPFLAGS'
  3789. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3790. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3791. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3793. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3794. if ${ac_cv_path_GREP+:} false; then :
  3795. $as_echo_n "(cached) " >&6
  3796. else
  3797. if test -z "$GREP"; then
  3798. ac_path_GREP_found=false
  3799. # Loop through the user's path and test for each of PROGNAME-LIST
  3800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3801. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3802. do
  3803. IFS=$as_save_IFS
  3804. test -z "$as_dir" && as_dir=.
  3805. for ac_prog in grep ggrep; do
  3806. for ac_exec_ext in '' $ac_executable_extensions; do
  3807. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3808. as_fn_executable_p "$ac_path_GREP" || continue
  3809. # Check for GNU ac_path_GREP and select it if it is found.
  3810. # Check for GNU $ac_path_GREP
  3811. case `"$ac_path_GREP" --version 2>&1` in
  3812. *GNU*)
  3813. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3814. *)
  3815. ac_count=0
  3816. $as_echo_n 0123456789 >"conftest.in"
  3817. while :
  3818. do
  3819. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3820. mv "conftest.tmp" "conftest.in"
  3821. cp "conftest.in" "conftest.nl"
  3822. $as_echo 'GREP' >> "conftest.nl"
  3823. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3824. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3825. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3826. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3827. # Best one so far, save it but keep looking for a better one
  3828. ac_cv_path_GREP="$ac_path_GREP"
  3829. ac_path_GREP_max=$ac_count
  3830. fi
  3831. # 10*(2^10) chars as input seems more than enough
  3832. test $ac_count -gt 10 && break
  3833. done
  3834. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3835. esac
  3836. $ac_path_GREP_found && break 3
  3837. done
  3838. done
  3839. done
  3840. IFS=$as_save_IFS
  3841. if test -z "$ac_cv_path_GREP"; then
  3842. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3843. fi
  3844. else
  3845. ac_cv_path_GREP=$GREP
  3846. fi
  3847. fi
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3849. $as_echo "$ac_cv_path_GREP" >&6; }
  3850. GREP="$ac_cv_path_GREP"
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3852. $as_echo_n "checking for egrep... " >&6; }
  3853. if ${ac_cv_path_EGREP+:} false; then :
  3854. $as_echo_n "(cached) " >&6
  3855. else
  3856. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3857. then ac_cv_path_EGREP="$GREP -E"
  3858. else
  3859. if test -z "$EGREP"; then
  3860. ac_path_EGREP_found=false
  3861. # Loop through the user's path and test for each of PROGNAME-LIST
  3862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3863. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3864. do
  3865. IFS=$as_save_IFS
  3866. test -z "$as_dir" && as_dir=.
  3867. for ac_prog in egrep; do
  3868. for ac_exec_ext in '' $ac_executable_extensions; do
  3869. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3870. as_fn_executable_p "$ac_path_EGREP" || continue
  3871. # Check for GNU ac_path_EGREP and select it if it is found.
  3872. # Check for GNU $ac_path_EGREP
  3873. case `"$ac_path_EGREP" --version 2>&1` in
  3874. *GNU*)
  3875. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3876. *)
  3877. ac_count=0
  3878. $as_echo_n 0123456789 >"conftest.in"
  3879. while :
  3880. do
  3881. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3882. mv "conftest.tmp" "conftest.in"
  3883. cp "conftest.in" "conftest.nl"
  3884. $as_echo 'EGREP' >> "conftest.nl"
  3885. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3886. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3887. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3888. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3889. # Best one so far, save it but keep looking for a better one
  3890. ac_cv_path_EGREP="$ac_path_EGREP"
  3891. ac_path_EGREP_max=$ac_count
  3892. fi
  3893. # 10*(2^10) chars as input seems more than enough
  3894. test $ac_count -gt 10 && break
  3895. done
  3896. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3897. esac
  3898. $ac_path_EGREP_found && break 3
  3899. done
  3900. done
  3901. done
  3902. IFS=$as_save_IFS
  3903. if test -z "$ac_cv_path_EGREP"; then
  3904. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3905. fi
  3906. else
  3907. ac_cv_path_EGREP=$EGREP
  3908. fi
  3909. fi
  3910. fi
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3912. $as_echo "$ac_cv_path_EGREP" >&6; }
  3913. EGREP="$ac_cv_path_EGREP"
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3915. $as_echo_n "checking for ANSI C header files... " >&6; }
  3916. if ${ac_cv_header_stdc+:} false; then :
  3917. $as_echo_n "(cached) " >&6
  3918. else
  3919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3920. /* end confdefs.h. */
  3921. #include <stdlib.h>
  3922. #include <stdarg.h>
  3923. #include <string.h>
  3924. #include <float.h>
  3925. int
  3926. main ()
  3927. {
  3928. ;
  3929. return 0;
  3930. }
  3931. _ACEOF
  3932. if ac_fn_c_try_compile "$LINENO"; then :
  3933. ac_cv_header_stdc=yes
  3934. else
  3935. ac_cv_header_stdc=no
  3936. fi
  3937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3938. if test $ac_cv_header_stdc = yes; then
  3939. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3941. /* end confdefs.h. */
  3942. #include <string.h>
  3943. _ACEOF
  3944. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3945. $EGREP "memchr" >/dev/null 2>&1; then :
  3946. else
  3947. ac_cv_header_stdc=no
  3948. fi
  3949. rm -f conftest*
  3950. fi
  3951. if test $ac_cv_header_stdc = yes; then
  3952. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3954. /* end confdefs.h. */
  3955. #include <stdlib.h>
  3956. _ACEOF
  3957. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3958. $EGREP "free" >/dev/null 2>&1; then :
  3959. else
  3960. ac_cv_header_stdc=no
  3961. fi
  3962. rm -f conftest*
  3963. fi
  3964. if test $ac_cv_header_stdc = yes; then
  3965. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3966. if test "$cross_compiling" = yes; then :
  3967. :
  3968. else
  3969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3970. /* end confdefs.h. */
  3971. #include <ctype.h>
  3972. #include <stdlib.h>
  3973. #if ((' ' & 0x0FF) == 0x020)
  3974. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3975. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3976. #else
  3977. # define ISLOWER(c) \
  3978. (('a' <= (c) && (c) <= 'i') \
  3979. || ('j' <= (c) && (c) <= 'r') \
  3980. || ('s' <= (c) && (c) <= 'z'))
  3981. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3982. #endif
  3983. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3984. int
  3985. main ()
  3986. {
  3987. int i;
  3988. for (i = 0; i < 256; i++)
  3989. if (XOR (islower (i), ISLOWER (i))
  3990. || toupper (i) != TOUPPER (i))
  3991. return 2;
  3992. return 0;
  3993. }
  3994. _ACEOF
  3995. if ac_fn_c_try_run "$LINENO"; then :
  3996. else
  3997. ac_cv_header_stdc=no
  3998. fi
  3999. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4000. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4001. fi
  4002. fi
  4003. fi
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4005. $as_echo "$ac_cv_header_stdc" >&6; }
  4006. if test $ac_cv_header_stdc = yes; then
  4007. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4008. fi
  4009. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4010. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4011. inttypes.h stdint.h unistd.h
  4012. do :
  4013. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4014. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4015. "
  4016. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4017. cat >>confdefs.h <<_ACEOF
  4018. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4019. _ACEOF
  4020. fi
  4021. done
  4022. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4023. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4024. MINIX=yes
  4025. else
  4026. MINIX=
  4027. fi
  4028. if test "$MINIX" = yes; then
  4029. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4030. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4031. $as_echo "#define _MINIX 1" >>confdefs.h
  4032. fi
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4034. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4035. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4036. $as_echo_n "(cached) " >&6
  4037. else
  4038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4039. /* end confdefs.h. */
  4040. # define __EXTENSIONS__ 1
  4041. $ac_includes_default
  4042. int
  4043. main ()
  4044. {
  4045. ;
  4046. return 0;
  4047. }
  4048. _ACEOF
  4049. if ac_fn_c_try_compile "$LINENO"; then :
  4050. ac_cv_safe_to_define___extensions__=yes
  4051. else
  4052. ac_cv_safe_to_define___extensions__=no
  4053. fi
  4054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4055. fi
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4057. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4058. test $ac_cv_safe_to_define___extensions__ = yes &&
  4059. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4060. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4061. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4062. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4063. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4064. case `pwd` in
  4065. *\ * | *\ *)
  4066. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4067. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4068. esac
  4069. macro_version='2.2.7a'
  4070. macro_revision='1.3134'
  4071. ltmain="$ac_aux_dir/ltmain.sh"
  4072. # Backslashify metacharacters that are still active within
  4073. # double-quoted strings.
  4074. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4075. # Same as above, but do not quote variable references.
  4076. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4077. # Sed substitution to delay expansion of an escaped shell variable in a
  4078. # double_quote_subst'ed string.
  4079. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4080. # Sed substitution to delay expansion of an escaped single quote.
  4081. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4082. # Sed substitution to avoid accidental globbing in evaled expressions
  4083. no_glob_subst='s/\*/\\\*/g'
  4084. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4085. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4086. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4088. $as_echo_n "checking how to print strings... " >&6; }
  4089. # Test print first, because it will be a builtin if present.
  4090. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4091. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4092. ECHO='print -r --'
  4093. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4094. ECHO='printf %s\n'
  4095. else
  4096. # Use this function as a fallback that always works.
  4097. func_fallback_echo ()
  4098. {
  4099. eval 'cat <<_LTECHO_EOF
  4100. $1
  4101. _LTECHO_EOF'
  4102. }
  4103. ECHO='func_fallback_echo'
  4104. fi
  4105. # func_echo_all arg...
  4106. # Invoke $ECHO with all args, space-separated.
  4107. func_echo_all ()
  4108. {
  4109. $ECHO ""
  4110. }
  4111. case "$ECHO" in
  4112. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4113. $as_echo "printf" >&6; } ;;
  4114. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4115. $as_echo "print -r" >&6; } ;;
  4116. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4117. $as_echo "cat" >&6; } ;;
  4118. esac
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4120. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4121. if ${ac_cv_path_SED+:} false; then :
  4122. $as_echo_n "(cached) " >&6
  4123. else
  4124. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4125. for ac_i in 1 2 3 4 5 6 7; do
  4126. ac_script="$ac_script$as_nl$ac_script"
  4127. done
  4128. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4129. { ac_script=; unset ac_script;}
  4130. if test -z "$SED"; then
  4131. ac_path_SED_found=false
  4132. # Loop through the user's path and test for each of PROGNAME-LIST
  4133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4134. for as_dir in $PATH
  4135. do
  4136. IFS=$as_save_IFS
  4137. test -z "$as_dir" && as_dir=.
  4138. for ac_prog in sed gsed; do
  4139. for ac_exec_ext in '' $ac_executable_extensions; do
  4140. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4141. as_fn_executable_p "$ac_path_SED" || continue
  4142. # Check for GNU ac_path_SED and select it if it is found.
  4143. # Check for GNU $ac_path_SED
  4144. case `"$ac_path_SED" --version 2>&1` in
  4145. *GNU*)
  4146. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4147. *)
  4148. ac_count=0
  4149. $as_echo_n 0123456789 >"conftest.in"
  4150. while :
  4151. do
  4152. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4153. mv "conftest.tmp" "conftest.in"
  4154. cp "conftest.in" "conftest.nl"
  4155. $as_echo '' >> "conftest.nl"
  4156. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4157. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4158. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4159. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4160. # Best one so far, save it but keep looking for a better one
  4161. ac_cv_path_SED="$ac_path_SED"
  4162. ac_path_SED_max=$ac_count
  4163. fi
  4164. # 10*(2^10) chars as input seems more than enough
  4165. test $ac_count -gt 10 && break
  4166. done
  4167. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4168. esac
  4169. $ac_path_SED_found && break 3
  4170. done
  4171. done
  4172. done
  4173. IFS=$as_save_IFS
  4174. if test -z "$ac_cv_path_SED"; then
  4175. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4176. fi
  4177. else
  4178. ac_cv_path_SED=$SED
  4179. fi
  4180. fi
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4182. $as_echo "$ac_cv_path_SED" >&6; }
  4183. SED="$ac_cv_path_SED"
  4184. rm -f conftest.sed
  4185. test -z "$SED" && SED=sed
  4186. Xsed="$SED -e 1s/^X//"
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4188. $as_echo_n "checking for fgrep... " >&6; }
  4189. if ${ac_cv_path_FGREP+:} false; then :
  4190. $as_echo_n "(cached) " >&6
  4191. else
  4192. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4193. then ac_cv_path_FGREP="$GREP -F"
  4194. else
  4195. if test -z "$FGREP"; then
  4196. ac_path_FGREP_found=false
  4197. # Loop through the user's path and test for each of PROGNAME-LIST
  4198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4199. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4200. do
  4201. IFS=$as_save_IFS
  4202. test -z "$as_dir" && as_dir=.
  4203. for ac_prog in fgrep; do
  4204. for ac_exec_ext in '' $ac_executable_extensions; do
  4205. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4206. as_fn_executable_p "$ac_path_FGREP" || continue
  4207. # Check for GNU ac_path_FGREP and select it if it is found.
  4208. # Check for GNU $ac_path_FGREP
  4209. case `"$ac_path_FGREP" --version 2>&1` in
  4210. *GNU*)
  4211. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4212. *)
  4213. ac_count=0
  4214. $as_echo_n 0123456789 >"conftest.in"
  4215. while :
  4216. do
  4217. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4218. mv "conftest.tmp" "conftest.in"
  4219. cp "conftest.in" "conftest.nl"
  4220. $as_echo 'FGREP' >> "conftest.nl"
  4221. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4222. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4223. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4224. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4225. # Best one so far, save it but keep looking for a better one
  4226. ac_cv_path_FGREP="$ac_path_FGREP"
  4227. ac_path_FGREP_max=$ac_count
  4228. fi
  4229. # 10*(2^10) chars as input seems more than enough
  4230. test $ac_count -gt 10 && break
  4231. done
  4232. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4233. esac
  4234. $ac_path_FGREP_found && break 3
  4235. done
  4236. done
  4237. done
  4238. IFS=$as_save_IFS
  4239. if test -z "$ac_cv_path_FGREP"; then
  4240. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4241. fi
  4242. else
  4243. ac_cv_path_FGREP=$FGREP
  4244. fi
  4245. fi
  4246. fi
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4248. $as_echo "$ac_cv_path_FGREP" >&6; }
  4249. FGREP="$ac_cv_path_FGREP"
  4250. test -z "$GREP" && GREP=grep
  4251. # Check whether --with-gnu-ld was given.
  4252. if test "${with_gnu_ld+set}" = set; then :
  4253. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4254. else
  4255. with_gnu_ld=no
  4256. fi
  4257. ac_prog=ld
  4258. if test "$GCC" = yes; then
  4259. # Check if gcc -print-prog-name=ld gives a path.
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4261. $as_echo_n "checking for ld used by $CC... " >&6; }
  4262. case $host in
  4263. *-*-mingw*)
  4264. # gcc leaves a trailing carriage return which upsets mingw
  4265. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4266. *)
  4267. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4268. esac
  4269. case $ac_prog in
  4270. # Accept absolute paths.
  4271. [\\/]* | ?:[\\/]*)
  4272. re_direlt='/[^/][^/]*/\.\./'
  4273. # Canonicalize the pathname of ld
  4274. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4275. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4276. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4277. done
  4278. test -z "$LD" && LD="$ac_prog"
  4279. ;;
  4280. "")
  4281. # If it fails, then pretend we aren't using GCC.
  4282. ac_prog=ld
  4283. ;;
  4284. *)
  4285. # If it is relative, then search for the first ld in PATH.
  4286. with_gnu_ld=unknown
  4287. ;;
  4288. esac
  4289. elif test "$with_gnu_ld" = yes; then
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4291. $as_echo_n "checking for GNU ld... " >&6; }
  4292. else
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4294. $as_echo_n "checking for non-GNU ld... " >&6; }
  4295. fi
  4296. if ${lt_cv_path_LD+:} false; then :
  4297. $as_echo_n "(cached) " >&6
  4298. else
  4299. if test -z "$LD"; then
  4300. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4301. for ac_dir in $PATH; do
  4302. IFS="$lt_save_ifs"
  4303. test -z "$ac_dir" && ac_dir=.
  4304. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4305. lt_cv_path_LD="$ac_dir/$ac_prog"
  4306. # Check to see if the program is GNU ld. I'd rather use --version,
  4307. # but apparently some variants of GNU ld only accept -v.
  4308. # Break only if it was the GNU/non-GNU ld that we prefer.
  4309. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4310. *GNU* | *'with BFD'*)
  4311. test "$with_gnu_ld" != no && break
  4312. ;;
  4313. *)
  4314. test "$with_gnu_ld" != yes && break
  4315. ;;
  4316. esac
  4317. fi
  4318. done
  4319. IFS="$lt_save_ifs"
  4320. else
  4321. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4322. fi
  4323. fi
  4324. LD="$lt_cv_path_LD"
  4325. if test -n "$LD"; then
  4326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4327. $as_echo "$LD" >&6; }
  4328. else
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4330. $as_echo "no" >&6; }
  4331. fi
  4332. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4334. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4335. if ${lt_cv_prog_gnu_ld+:} false; then :
  4336. $as_echo_n "(cached) " >&6
  4337. else
  4338. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4339. case `$LD -v 2>&1 </dev/null` in
  4340. *GNU* | *'with BFD'*)
  4341. lt_cv_prog_gnu_ld=yes
  4342. ;;
  4343. *)
  4344. lt_cv_prog_gnu_ld=no
  4345. ;;
  4346. esac
  4347. fi
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4349. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4350. with_gnu_ld=$lt_cv_prog_gnu_ld
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4352. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4353. if ${lt_cv_path_NM+:} false; then :
  4354. $as_echo_n "(cached) " >&6
  4355. else
  4356. if test -n "$NM"; then
  4357. # Let the user override the nm to test.
  4358. lt_nm_to_check="$NM"
  4359. else
  4360. lt_nm_to_check="${ac_tool_prefix}nm"
  4361. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4362. lt_nm_to_check="$lt_nm_to_check nm"
  4363. fi
  4364. fi
  4365. for lt_tmp_nm in "$lt_nm_to_check"; do
  4366. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4367. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4368. IFS="$lt_save_ifs"
  4369. test -z "$ac_dir" && ac_dir=.
  4370. # Strip out any user-provided options from the nm to test twice,
  4371. # the first time to test to see if nm (rather than its options) has
  4372. # an explicit path, the second time to yield a file which can be
  4373. # nm'ed itself.
  4374. tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
  4375. case "$tmp_nm_path" in
  4376. */*|*\\*) tmp_nm="$lt_tmp_nm";;
  4377. *) tmp_nm="$ac_dir/$lt_tmp_nm";;
  4378. esac
  4379. tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
  4380. if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
  4381. # Check to see if the nm accepts a BSD-compat flag.
  4382. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4383. # nm: unknown option "B" ignored
  4384. case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  4385. *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
  4386. break
  4387. ;;
  4388. *)
  4389. case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  4390. *$tmp_nm*)
  4391. lt_cv_path_NM="$tmp_nm -p"
  4392. break
  4393. ;;
  4394. *)
  4395. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4396. continue # so that we can try to find one that supports BSD flags
  4397. ;;
  4398. esac
  4399. ;;
  4400. esac
  4401. fi
  4402. done
  4403. IFS="$lt_save_ifs"
  4404. done
  4405. : ${lt_cv_path_NM=no}
  4406. fi
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4408. $as_echo "$lt_cv_path_NM" >&6; }
  4409. if test "$lt_cv_path_NM" != "no"; then
  4410. NM="$lt_cv_path_NM"
  4411. else
  4412. # Didn't find any BSD compatible name lister, look for dumpbin.
  4413. if test -n "$DUMPBIN"; then :
  4414. # Let the user override the test.
  4415. else
  4416. if test -n "$ac_tool_prefix"; then
  4417. for ac_prog in dumpbin "link -dump"
  4418. do
  4419. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4420. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4422. $as_echo_n "checking for $ac_word... " >&6; }
  4423. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4424. $as_echo_n "(cached) " >&6
  4425. else
  4426. if test -n "$DUMPBIN"; then
  4427. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4428. else
  4429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4430. for as_dir in $PATH
  4431. do
  4432. IFS=$as_save_IFS
  4433. test -z "$as_dir" && as_dir=.
  4434. for ac_exec_ext in '' $ac_executable_extensions; do
  4435. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4436. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4438. break 2
  4439. fi
  4440. done
  4441. done
  4442. IFS=$as_save_IFS
  4443. fi
  4444. fi
  4445. DUMPBIN=$ac_cv_prog_DUMPBIN
  4446. if test -n "$DUMPBIN"; then
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4448. $as_echo "$DUMPBIN" >&6; }
  4449. else
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4451. $as_echo "no" >&6; }
  4452. fi
  4453. test -n "$DUMPBIN" && break
  4454. done
  4455. fi
  4456. if test -z "$DUMPBIN"; then
  4457. ac_ct_DUMPBIN=$DUMPBIN
  4458. for ac_prog in dumpbin "link -dump"
  4459. do
  4460. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4461. set dummy $ac_prog; ac_word=$2
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4463. $as_echo_n "checking for $ac_word... " >&6; }
  4464. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4465. $as_echo_n "(cached) " >&6
  4466. else
  4467. if test -n "$ac_ct_DUMPBIN"; then
  4468. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4469. else
  4470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4471. for as_dir in $PATH
  4472. do
  4473. IFS=$as_save_IFS
  4474. test -z "$as_dir" && as_dir=.
  4475. for ac_exec_ext in '' $ac_executable_extensions; do
  4476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4477. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4479. break 2
  4480. fi
  4481. done
  4482. done
  4483. IFS=$as_save_IFS
  4484. fi
  4485. fi
  4486. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4487. if test -n "$ac_ct_DUMPBIN"; then
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4489. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4490. else
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4492. $as_echo "no" >&6; }
  4493. fi
  4494. test -n "$ac_ct_DUMPBIN" && break
  4495. done
  4496. if test "x$ac_ct_DUMPBIN" = x; then
  4497. DUMPBIN=":"
  4498. else
  4499. case $cross_compiling:$ac_tool_warned in
  4500. yes:)
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4502. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4503. ac_tool_warned=yes ;;
  4504. esac
  4505. DUMPBIN=$ac_ct_DUMPBIN
  4506. fi
  4507. fi
  4508. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4509. *COFF*)
  4510. DUMPBIN="$DUMPBIN -symbols"
  4511. ;;
  4512. *)
  4513. DUMPBIN=:
  4514. ;;
  4515. esac
  4516. fi
  4517. if test "$DUMPBIN" != ":"; then
  4518. NM="$DUMPBIN"
  4519. fi
  4520. fi
  4521. test -z "$NM" && NM=nm
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4523. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4524. if ${lt_cv_nm_interface+:} false; then :
  4525. $as_echo_n "(cached) " >&6
  4526. else
  4527. lt_cv_nm_interface="BSD nm"
  4528. echo "int some_variable = 0;" > conftest.$ac_ext
  4529. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4530. (eval "$ac_compile" 2>conftest.err)
  4531. cat conftest.err >&5
  4532. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4533. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4534. cat conftest.err >&5
  4535. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4536. cat conftest.out >&5
  4537. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4538. lt_cv_nm_interface="MS dumpbin"
  4539. fi
  4540. rm -f conftest*
  4541. fi
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4543. $as_echo "$lt_cv_nm_interface" >&6; }
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4545. $as_echo_n "checking whether ln -s works... " >&6; }
  4546. LN_S=$as_ln_s
  4547. if test "$LN_S" = "ln -s"; then
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4549. $as_echo "yes" >&6; }
  4550. else
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4552. $as_echo "no, using $LN_S" >&6; }
  4553. fi
  4554. # find the maximum length of command line arguments
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4556. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4557. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4558. $as_echo_n "(cached) " >&6
  4559. else
  4560. i=0
  4561. teststring="ABCD"
  4562. case $build_os in
  4563. msdosdjgpp*)
  4564. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4565. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4566. # during glob expansion). Even if it were fixed, the result of this
  4567. # check would be larger than it should be.
  4568. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4569. ;;
  4570. gnu*)
  4571. # Under GNU Hurd, this test is not required because there is
  4572. # no limit to the length of command line arguments.
  4573. # Libtool will interpret -1 as no limit whatsoever
  4574. lt_cv_sys_max_cmd_len=-1;
  4575. ;;
  4576. cygwin* | mingw* | cegcc*)
  4577. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4578. # about 5 minutes as the teststring grows exponentially.
  4579. # Worse, since 9x/ME are not pre-emptively multitasking,
  4580. # you end up with a "frozen" computer, even though with patience
  4581. # the test eventually succeeds (with a max line length of 256k).
  4582. # Instead, let's just punt: use the minimum linelength reported by
  4583. # all of the supported platforms: 8192 (on NT/2K/XP).
  4584. lt_cv_sys_max_cmd_len=8192;
  4585. ;;
  4586. mint*)
  4587. # On MiNT this can take a long time and run out of memory.
  4588. lt_cv_sys_max_cmd_len=8192;
  4589. ;;
  4590. amigaos*)
  4591. # On AmigaOS with pdksh, this test takes hours, literally.
  4592. # So we just punt and use a minimum line length of 8192.
  4593. lt_cv_sys_max_cmd_len=8192;
  4594. ;;
  4595. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4596. # This has been around since 386BSD, at least. Likely further.
  4597. if test -x /sbin/sysctl; then
  4598. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4599. elif test -x /usr/sbin/sysctl; then
  4600. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4601. else
  4602. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4603. fi
  4604. # And add a safety zone
  4605. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4606. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4607. ;;
  4608. interix*)
  4609. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4610. lt_cv_sys_max_cmd_len=196608
  4611. ;;
  4612. osf*)
  4613. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4614. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4615. # nice to cause kernel panics so lets avoid the loop below.
  4616. # First set a reasonable default.
  4617. lt_cv_sys_max_cmd_len=16384
  4618. #
  4619. if test -x /sbin/sysconfig; then
  4620. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4621. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4622. esac
  4623. fi
  4624. ;;
  4625. sco3.2v5*)
  4626. lt_cv_sys_max_cmd_len=102400
  4627. ;;
  4628. sysv5* | sco5v6* | sysv4.2uw2*)
  4629. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4630. if test -n "$kargmax"; then
  4631. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4632. else
  4633. lt_cv_sys_max_cmd_len=32768
  4634. fi
  4635. ;;
  4636. *)
  4637. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4638. if test -n "$lt_cv_sys_max_cmd_len"; then
  4639. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4640. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4641. else
  4642. # Make teststring a little bigger before we do anything with it.
  4643. # a 1K string should be a reasonable start.
  4644. for i in 1 2 3 4 5 6 7 8 ; do
  4645. teststring=$teststring$teststring
  4646. done
  4647. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4648. # If test is not a shell built-in, we'll probably end up computing a
  4649. # maximum length that is only half of the actual maximum length, but
  4650. # we can't tell.
  4651. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4652. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4653. test $i != 17 # 1/2 MB should be enough
  4654. do
  4655. i=`expr $i + 1`
  4656. teststring=$teststring$teststring
  4657. done
  4658. # Only check the string length outside the loop.
  4659. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4660. teststring=
  4661. # Add a significant safety factor because C++ compilers can tack on
  4662. # massive amounts of additional arguments before passing them to the
  4663. # linker. It appears as though 1/2 is a usable value.
  4664. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4665. fi
  4666. ;;
  4667. esac
  4668. fi
  4669. if test -n $lt_cv_sys_max_cmd_len ; then
  4670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4671. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4672. else
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4674. $as_echo "none" >&6; }
  4675. fi
  4676. max_cmd_len=$lt_cv_sys_max_cmd_len
  4677. : ${CP="cp -f"}
  4678. : ${MV="mv -f"}
  4679. : ${RM="rm -f"}
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4681. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4682. # Try some XSI features
  4683. xsi_shell=no
  4684. ( _lt_dummy="a/b/c"
  4685. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4686. = c,a/b,, \
  4687. && eval 'test $(( 1 + 1 )) -eq 2 \
  4688. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4689. && xsi_shell=yes
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4691. $as_echo "$xsi_shell" >&6; }
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4693. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4694. lt_shell_append=no
  4695. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4696. >/dev/null 2>&1 \
  4697. && lt_shell_append=yes
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4699. $as_echo "$lt_shell_append" >&6; }
  4700. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4701. lt_unset=unset
  4702. else
  4703. lt_unset=false
  4704. fi
  4705. # test EBCDIC or ASCII
  4706. case `echo X|tr X '\101'` in
  4707. A) # ASCII based system
  4708. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4709. lt_SP2NL='tr \040 \012'
  4710. lt_NL2SP='tr \015\012 \040\040'
  4711. ;;
  4712. *) # EBCDIC based system
  4713. lt_SP2NL='tr \100 \n'
  4714. lt_NL2SP='tr \r\n \100\100'
  4715. ;;
  4716. esac
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4718. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4719. if ${lt_cv_ld_reload_flag+:} false; then :
  4720. $as_echo_n "(cached) " >&6
  4721. else
  4722. lt_cv_ld_reload_flag='-r'
  4723. fi
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4725. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4726. reload_flag=$lt_cv_ld_reload_flag
  4727. case $reload_flag in
  4728. "" | " "*) ;;
  4729. *) reload_flag=" $reload_flag" ;;
  4730. esac
  4731. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4732. case $host_os in
  4733. darwin*)
  4734. if test "$GCC" = yes; then
  4735. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4736. else
  4737. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4738. fi
  4739. ;;
  4740. esac
  4741. if test -n "$ac_tool_prefix"; then
  4742. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4743. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4745. $as_echo_n "checking for $ac_word... " >&6; }
  4746. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4747. $as_echo_n "(cached) " >&6
  4748. else
  4749. if test -n "$OBJDUMP"; then
  4750. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4751. else
  4752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4753. for as_dir in $PATH
  4754. do
  4755. IFS=$as_save_IFS
  4756. test -z "$as_dir" && as_dir=.
  4757. for ac_exec_ext in '' $ac_executable_extensions; do
  4758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4759. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4761. break 2
  4762. fi
  4763. done
  4764. done
  4765. IFS=$as_save_IFS
  4766. fi
  4767. fi
  4768. OBJDUMP=$ac_cv_prog_OBJDUMP
  4769. if test -n "$OBJDUMP"; then
  4770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4771. $as_echo "$OBJDUMP" >&6; }
  4772. else
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4774. $as_echo "no" >&6; }
  4775. fi
  4776. fi
  4777. if test -z "$ac_cv_prog_OBJDUMP"; then
  4778. ac_ct_OBJDUMP=$OBJDUMP
  4779. # Extract the first word of "objdump", so it can be a program name with args.
  4780. set dummy objdump; ac_word=$2
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4782. $as_echo_n "checking for $ac_word... " >&6; }
  4783. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4784. $as_echo_n "(cached) " >&6
  4785. else
  4786. if test -n "$ac_ct_OBJDUMP"; then
  4787. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4788. else
  4789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4790. for as_dir in $PATH
  4791. do
  4792. IFS=$as_save_IFS
  4793. test -z "$as_dir" && as_dir=.
  4794. for ac_exec_ext in '' $ac_executable_extensions; do
  4795. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4796. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4798. break 2
  4799. fi
  4800. done
  4801. done
  4802. IFS=$as_save_IFS
  4803. fi
  4804. fi
  4805. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4806. if test -n "$ac_ct_OBJDUMP"; then
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4808. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4809. else
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4811. $as_echo "no" >&6; }
  4812. fi
  4813. if test "x$ac_ct_OBJDUMP" = x; then
  4814. OBJDUMP="false"
  4815. else
  4816. case $cross_compiling:$ac_tool_warned in
  4817. yes:)
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4819. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4820. ac_tool_warned=yes ;;
  4821. esac
  4822. OBJDUMP=$ac_ct_OBJDUMP
  4823. fi
  4824. else
  4825. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4826. fi
  4827. test -z "$OBJDUMP" && OBJDUMP=objdump
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4829. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4830. if ${lt_cv_deplibs_check_method+:} false; then :
  4831. $as_echo_n "(cached) " >&6
  4832. else
  4833. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4834. lt_cv_file_magic_test_file=
  4835. lt_cv_deplibs_check_method='unknown'
  4836. # Need to set the preceding variable on all platforms that support
  4837. # interlibrary dependencies.
  4838. # 'none' -- dependencies not supported.
  4839. # `unknown' -- same as none, but documents that we really don't know.
  4840. # 'pass_all' -- all dependencies passed with no checks.
  4841. # 'test_compile' -- check by making test program.
  4842. # 'file_magic [[regex]]' -- check by looking for files in library path
  4843. # which responds to the $file_magic_cmd with a given extended regex.
  4844. # If you have `file' or equivalent on your system and you're not sure
  4845. # whether `pass_all' will *always* work, you probably want this one.
  4846. case $host_os in
  4847. aix[4-9]*)
  4848. lt_cv_deplibs_check_method=pass_all
  4849. ;;
  4850. beos*)
  4851. lt_cv_deplibs_check_method=pass_all
  4852. ;;
  4853. bsdi[45]*)
  4854. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4855. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4856. lt_cv_file_magic_test_file=/shlib/libc.so
  4857. ;;
  4858. cygwin*)
  4859. # func_win32_libid is a shell function defined in ltmain.sh
  4860. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4861. lt_cv_file_magic_cmd='func_win32_libid'
  4862. ;;
  4863. mingw* | pw32*)
  4864. # Base MSYS/MinGW do not provide the 'file' command needed by
  4865. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4866. # unless we find 'file', for example because we are cross-compiling.
  4867. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4868. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4869. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4870. lt_cv_file_magic_cmd='func_win32_libid'
  4871. else
  4872. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4873. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4874. fi
  4875. ;;
  4876. cegcc*)
  4877. # use the weaker test based on 'objdump'. See mingw*.
  4878. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4879. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4880. ;;
  4881. darwin* | rhapsody*)
  4882. lt_cv_deplibs_check_method=pass_all
  4883. ;;
  4884. freebsd* | dragonfly*)
  4885. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4886. case $host_cpu in
  4887. i*86 )
  4888. # Not sure whether the presence of OpenBSD here was a mistake.
  4889. # Let's accept both of them until this is cleared up.
  4890. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4891. lt_cv_file_magic_cmd=/usr/bin/file
  4892. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4893. ;;
  4894. esac
  4895. else
  4896. lt_cv_deplibs_check_method=pass_all
  4897. fi
  4898. ;;
  4899. gnu*)
  4900. lt_cv_deplibs_check_method=pass_all
  4901. ;;
  4902. haiku*)
  4903. lt_cv_deplibs_check_method=pass_all
  4904. ;;
  4905. hpux10.20* | hpux11*)
  4906. lt_cv_file_magic_cmd=/usr/bin/file
  4907. case $host_cpu in
  4908. ia64*)
  4909. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4910. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4911. ;;
  4912. hppa*64*)
  4913. 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]'
  4914. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4915. ;;
  4916. *)
  4917. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4918. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4919. ;;
  4920. esac
  4921. ;;
  4922. interix[3-9]*)
  4923. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4924. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4925. ;;
  4926. irix5* | irix6* | nonstopux*)
  4927. case $LD in
  4928. *-32|*"-32 ") libmagic=32-bit;;
  4929. *-n32|*"-n32 ") libmagic=N32;;
  4930. *-64|*"-64 ") libmagic=64-bit;;
  4931. *) libmagic=never-match;;
  4932. esac
  4933. lt_cv_deplibs_check_method=pass_all
  4934. ;;
  4935. # This must be Linux ELF.
  4936. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4937. lt_cv_deplibs_check_method=pass_all
  4938. ;;
  4939. netbsd*)
  4940. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4941. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4942. else
  4943. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4944. fi
  4945. ;;
  4946. newos6*)
  4947. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4948. lt_cv_file_magic_cmd=/usr/bin/file
  4949. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4950. ;;
  4951. *nto* | *qnx*)
  4952. lt_cv_deplibs_check_method=pass_all
  4953. ;;
  4954. openbsd*)
  4955. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4956. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4957. else
  4958. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4959. fi
  4960. ;;
  4961. osf3* | osf4* | osf5*)
  4962. lt_cv_deplibs_check_method=pass_all
  4963. ;;
  4964. rdos*)
  4965. lt_cv_deplibs_check_method=pass_all
  4966. ;;
  4967. solaris*)
  4968. lt_cv_deplibs_check_method=pass_all
  4969. ;;
  4970. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4971. lt_cv_deplibs_check_method=pass_all
  4972. ;;
  4973. sysv4 | sysv4.3*)
  4974. case $host_vendor in
  4975. motorola)
  4976. 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]'
  4977. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4978. ;;
  4979. ncr)
  4980. lt_cv_deplibs_check_method=pass_all
  4981. ;;
  4982. sequent)
  4983. lt_cv_file_magic_cmd='/bin/file'
  4984. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4985. ;;
  4986. sni)
  4987. lt_cv_file_magic_cmd='/bin/file'
  4988. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4989. lt_cv_file_magic_test_file=/lib/libc.so
  4990. ;;
  4991. siemens)
  4992. lt_cv_deplibs_check_method=pass_all
  4993. ;;
  4994. pc)
  4995. lt_cv_deplibs_check_method=pass_all
  4996. ;;
  4997. esac
  4998. ;;
  4999. tpf*)
  5000. lt_cv_deplibs_check_method=pass_all
  5001. ;;
  5002. esac
  5003. fi
  5004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5005. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5006. file_magic_cmd=$lt_cv_file_magic_cmd
  5007. deplibs_check_method=$lt_cv_deplibs_check_method
  5008. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5009. plugin_option=
  5010. plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
  5011. for plugin in $plugin_names; do
  5012. plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
  5013. if test x$plugin_so = x$plugin; then
  5014. plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
  5015. fi
  5016. if test x$plugin_so != x$plugin; then
  5017. plugin_option="--plugin $plugin_so"
  5018. break
  5019. fi
  5020. done
  5021. if test -n "$ac_tool_prefix"; then
  5022. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5023. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5025. $as_echo_n "checking for $ac_word... " >&6; }
  5026. if ${ac_cv_prog_AR+:} false; then :
  5027. $as_echo_n "(cached) " >&6
  5028. else
  5029. if test -n "$AR"; then
  5030. ac_cv_prog_AR="$AR" # Let the user override the test.
  5031. else
  5032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5033. for as_dir in $PATH
  5034. do
  5035. IFS=$as_save_IFS
  5036. test -z "$as_dir" && as_dir=.
  5037. for ac_exec_ext in '' $ac_executable_extensions; do
  5038. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5039. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5041. break 2
  5042. fi
  5043. done
  5044. done
  5045. IFS=$as_save_IFS
  5046. fi
  5047. fi
  5048. AR=$ac_cv_prog_AR
  5049. if test -n "$AR"; then
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5051. $as_echo "$AR" >&6; }
  5052. else
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5054. $as_echo "no" >&6; }
  5055. fi
  5056. fi
  5057. if test -z "$ac_cv_prog_AR"; then
  5058. ac_ct_AR=$AR
  5059. # Extract the first word of "ar", so it can be a program name with args.
  5060. set dummy ar; ac_word=$2
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5062. $as_echo_n "checking for $ac_word... " >&6; }
  5063. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5064. $as_echo_n "(cached) " >&6
  5065. else
  5066. if test -n "$ac_ct_AR"; then
  5067. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5068. else
  5069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5070. for as_dir in $PATH
  5071. do
  5072. IFS=$as_save_IFS
  5073. test -z "$as_dir" && as_dir=.
  5074. for ac_exec_ext in '' $ac_executable_extensions; do
  5075. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5076. ac_cv_prog_ac_ct_AR="ar"
  5077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5078. break 2
  5079. fi
  5080. done
  5081. done
  5082. IFS=$as_save_IFS
  5083. fi
  5084. fi
  5085. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5086. if test -n "$ac_ct_AR"; then
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5088. $as_echo "$ac_ct_AR" >&6; }
  5089. else
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5091. $as_echo "no" >&6; }
  5092. fi
  5093. if test "x$ac_ct_AR" = x; then
  5094. AR="false"
  5095. else
  5096. case $cross_compiling:$ac_tool_warned in
  5097. yes:)
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5099. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5100. ac_tool_warned=yes ;;
  5101. esac
  5102. AR=$ac_ct_AR
  5103. fi
  5104. else
  5105. AR="$ac_cv_prog_AR"
  5106. fi
  5107. test -z "$AR" && AR=ar
  5108. if test -n "$plugin_option"; then
  5109. if $AR --help 2>&1 | grep -q "\--plugin"; then
  5110. touch conftest.c
  5111. $AR $plugin_option rc conftest.a conftest.c
  5112. if test "$?" != 0; then
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
  5114. $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
  5115. else
  5116. AR="$AR $plugin_option"
  5117. fi
  5118. rm -f conftest.*
  5119. fi
  5120. fi
  5121. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5122. if test -n "$ac_tool_prefix"; then
  5123. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5124. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5126. $as_echo_n "checking for $ac_word... " >&6; }
  5127. if ${ac_cv_prog_STRIP+:} false; then :
  5128. $as_echo_n "(cached) " >&6
  5129. else
  5130. if test -n "$STRIP"; then
  5131. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5132. else
  5133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5134. for as_dir in $PATH
  5135. do
  5136. IFS=$as_save_IFS
  5137. test -z "$as_dir" && as_dir=.
  5138. for ac_exec_ext in '' $ac_executable_extensions; do
  5139. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5140. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5142. break 2
  5143. fi
  5144. done
  5145. done
  5146. IFS=$as_save_IFS
  5147. fi
  5148. fi
  5149. STRIP=$ac_cv_prog_STRIP
  5150. if test -n "$STRIP"; then
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5152. $as_echo "$STRIP" >&6; }
  5153. else
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5155. $as_echo "no" >&6; }
  5156. fi
  5157. fi
  5158. if test -z "$ac_cv_prog_STRIP"; then
  5159. ac_ct_STRIP=$STRIP
  5160. # Extract the first word of "strip", so it can be a program name with args.
  5161. set dummy strip; ac_word=$2
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5163. $as_echo_n "checking for $ac_word... " >&6; }
  5164. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5165. $as_echo_n "(cached) " >&6
  5166. else
  5167. if test -n "$ac_ct_STRIP"; then
  5168. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5169. else
  5170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5171. for as_dir in $PATH
  5172. do
  5173. IFS=$as_save_IFS
  5174. test -z "$as_dir" && as_dir=.
  5175. for ac_exec_ext in '' $ac_executable_extensions; do
  5176. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5177. ac_cv_prog_ac_ct_STRIP="strip"
  5178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5179. break 2
  5180. fi
  5181. done
  5182. done
  5183. IFS=$as_save_IFS
  5184. fi
  5185. fi
  5186. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5187. if test -n "$ac_ct_STRIP"; then
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5189. $as_echo "$ac_ct_STRIP" >&6; }
  5190. else
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5192. $as_echo "no" >&6; }
  5193. fi
  5194. if test "x$ac_ct_STRIP" = x; then
  5195. STRIP=":"
  5196. else
  5197. case $cross_compiling:$ac_tool_warned in
  5198. yes:)
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5200. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5201. ac_tool_warned=yes ;;
  5202. esac
  5203. STRIP=$ac_ct_STRIP
  5204. fi
  5205. else
  5206. STRIP="$ac_cv_prog_STRIP"
  5207. fi
  5208. test -z "$STRIP" && STRIP=:
  5209. if test -n "$ac_tool_prefix"; then
  5210. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5211. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5213. $as_echo_n "checking for $ac_word... " >&6; }
  5214. if ${ac_cv_prog_RANLIB+:} false; then :
  5215. $as_echo_n "(cached) " >&6
  5216. else
  5217. if test -n "$RANLIB"; then
  5218. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5219. else
  5220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5221. for as_dir in $PATH
  5222. do
  5223. IFS=$as_save_IFS
  5224. test -z "$as_dir" && as_dir=.
  5225. for ac_exec_ext in '' $ac_executable_extensions; do
  5226. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5227. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5229. break 2
  5230. fi
  5231. done
  5232. done
  5233. IFS=$as_save_IFS
  5234. fi
  5235. fi
  5236. RANLIB=$ac_cv_prog_RANLIB
  5237. if test -n "$RANLIB"; then
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5239. $as_echo "$RANLIB" >&6; }
  5240. else
  5241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5242. $as_echo "no" >&6; }
  5243. fi
  5244. fi
  5245. if test -z "$ac_cv_prog_RANLIB"; then
  5246. ac_ct_RANLIB=$RANLIB
  5247. # Extract the first word of "ranlib", so it can be a program name with args.
  5248. set dummy ranlib; ac_word=$2
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5250. $as_echo_n "checking for $ac_word... " >&6; }
  5251. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5252. $as_echo_n "(cached) " >&6
  5253. else
  5254. if test -n "$ac_ct_RANLIB"; then
  5255. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5256. else
  5257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5258. for as_dir in $PATH
  5259. do
  5260. IFS=$as_save_IFS
  5261. test -z "$as_dir" && as_dir=.
  5262. for ac_exec_ext in '' $ac_executable_extensions; do
  5263. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5264. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5266. break 2
  5267. fi
  5268. done
  5269. done
  5270. IFS=$as_save_IFS
  5271. fi
  5272. fi
  5273. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5274. if test -n "$ac_ct_RANLIB"; then
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5276. $as_echo "$ac_ct_RANLIB" >&6; }
  5277. else
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5279. $as_echo "no" >&6; }
  5280. fi
  5281. if test "x$ac_ct_RANLIB" = x; then
  5282. RANLIB=":"
  5283. else
  5284. case $cross_compiling:$ac_tool_warned in
  5285. yes:)
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5287. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5288. ac_tool_warned=yes ;;
  5289. esac
  5290. RANLIB=$ac_ct_RANLIB
  5291. fi
  5292. else
  5293. RANLIB="$ac_cv_prog_RANLIB"
  5294. fi
  5295. test -z "$RANLIB" && RANLIB=:
  5296. if test -n "$plugin_option" && test "$RANLIB" != ":"; then
  5297. if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
  5298. RANLIB="$RANLIB $plugin_option"
  5299. fi
  5300. fi
  5301. # Determine commands to create old-style static archives.
  5302. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5303. old_postinstall_cmds='chmod 644 $oldlib'
  5304. old_postuninstall_cmds=
  5305. if test -n "$RANLIB"; then
  5306. case $host_os in
  5307. openbsd*)
  5308. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5309. ;;
  5310. *)
  5311. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5312. ;;
  5313. esac
  5314. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5315. fi
  5316. case $host_os in
  5317. darwin*)
  5318. lock_old_archive_extraction=yes ;;
  5319. *)
  5320. lock_old_archive_extraction=no ;;
  5321. esac
  5322. # If no C compiler was specified, use CC.
  5323. LTCC=${LTCC-"$CC"}
  5324. # If no C compiler flags were specified, use CFLAGS.
  5325. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5326. # Allow CC to be a program name with arguments.
  5327. compiler=$CC
  5328. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5330. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5331. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5332. $as_echo_n "(cached) " >&6
  5333. else
  5334. # These are sane defaults that work on at least a few old systems.
  5335. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5336. # Character class describing NM global symbol codes.
  5337. symcode='[BCDEGRST]'
  5338. # Regexp to match symbols that can be accessed directly from C.
  5339. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5340. # Define system-specific variables.
  5341. case $host_os in
  5342. aix*)
  5343. symcode='[BCDT]'
  5344. ;;
  5345. cygwin* | mingw* | pw32* | cegcc*)
  5346. symcode='[ABCDGISTW]'
  5347. ;;
  5348. hpux*)
  5349. if test "$host_cpu" = ia64; then
  5350. symcode='[ABCDEGRST]'
  5351. fi
  5352. ;;
  5353. irix* | nonstopux*)
  5354. symcode='[BCDEGRST]'
  5355. ;;
  5356. osf*)
  5357. symcode='[BCDEGQRST]'
  5358. ;;
  5359. solaris*)
  5360. symcode='[BCDRT]'
  5361. ;;
  5362. sco3.2v5*)
  5363. symcode='[DT]'
  5364. ;;
  5365. sysv4.2uw2*)
  5366. symcode='[DT]'
  5367. ;;
  5368. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5369. symcode='[ABDT]'
  5370. ;;
  5371. sysv4)
  5372. symcode='[DFNSTU]'
  5373. ;;
  5374. esac
  5375. # If we're using GNU nm, then use its standard symbol codes.
  5376. case `$NM -V 2>&1` in
  5377. *GNU* | *'with BFD'*)
  5378. symcode='[ABCDGIRSTW]' ;;
  5379. esac
  5380. # Transform an extracted symbol line into a proper C declaration.
  5381. # Some systems (esp. on ia64) link data and code symbols differently,
  5382. # so use this general approach.
  5383. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5384. # Transform an extracted symbol line into symbol name and symbol address
  5385. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5386. 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'"
  5387. # Handle CRLF in mingw tool chain
  5388. opt_cr=
  5389. case $build_os in
  5390. mingw*)
  5391. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5392. ;;
  5393. esac
  5394. # Try without a prefix underscore, then with it.
  5395. for ac_symprfx in "" "_"; do
  5396. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5397. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5398. # Write the raw and C identifiers.
  5399. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5400. # Fake it for dumpbin and say T for any non-static function
  5401. # and D for any global variable.
  5402. # Also find C++ and __fastcall symbols from MSVC++,
  5403. # which start with @ or ?.
  5404. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5405. " {last_section=section; section=\$ 3};"\
  5406. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5407. " \$ 0!~/External *\|/{next};"\
  5408. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5409. " {if(hide[section]) next};"\
  5410. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5411. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5412. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5413. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5414. " ' prfx=^$ac_symprfx"
  5415. else
  5416. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5417. fi
  5418. # Check to see that the pipe works correctly.
  5419. pipe_works=no
  5420. rm -f conftest*
  5421. cat > conftest.$ac_ext <<_LT_EOF
  5422. #ifdef __cplusplus
  5423. extern "C" {
  5424. #endif
  5425. char nm_test_var;
  5426. void nm_test_func(void);
  5427. void nm_test_func(void){}
  5428. #ifdef __cplusplus
  5429. }
  5430. #endif
  5431. int main(){nm_test_var='a';nm_test_func();return(0);}
  5432. _LT_EOF
  5433. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5434. (eval $ac_compile) 2>&5
  5435. ac_status=$?
  5436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5437. test $ac_status = 0; }; then
  5438. # Now try to grab the symbols.
  5439. nlist=conftest.nm
  5440. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5441. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5442. ac_status=$?
  5443. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5444. test $ac_status = 0; } && test -s "$nlist"; then
  5445. # Try sorting and uniquifying the output.
  5446. if sort "$nlist" | uniq > "$nlist"T; then
  5447. mv -f "$nlist"T "$nlist"
  5448. else
  5449. rm -f "$nlist"T
  5450. fi
  5451. # Make sure that we snagged all the symbols we need.
  5452. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5453. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5454. cat <<_LT_EOF > conftest.$ac_ext
  5455. #ifdef __cplusplus
  5456. extern "C" {
  5457. #endif
  5458. _LT_EOF
  5459. # Now generate the symbol file.
  5460. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5461. cat <<_LT_EOF >> conftest.$ac_ext
  5462. /* The mapping between symbol names and symbols. */
  5463. const struct {
  5464. const char *name;
  5465. void *address;
  5466. }
  5467. lt__PROGRAM__LTX_preloaded_symbols[] =
  5468. {
  5469. { "@PROGRAM@", (void *) 0 },
  5470. _LT_EOF
  5471. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5472. cat <<\_LT_EOF >> conftest.$ac_ext
  5473. {0, (void *) 0}
  5474. };
  5475. /* This works around a problem in FreeBSD linker */
  5476. #ifdef FREEBSD_WORKAROUND
  5477. static const void *lt_preloaded_setup() {
  5478. return lt__PROGRAM__LTX_preloaded_symbols;
  5479. }
  5480. #endif
  5481. #ifdef __cplusplus
  5482. }
  5483. #endif
  5484. _LT_EOF
  5485. # Now try linking the two files.
  5486. mv conftest.$ac_objext conftstm.$ac_objext
  5487. lt_save_LIBS="$LIBS"
  5488. lt_save_CFLAGS="$CFLAGS"
  5489. LIBS="conftstm.$ac_objext"
  5490. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5491. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5492. (eval $ac_link) 2>&5
  5493. ac_status=$?
  5494. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5495. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5496. pipe_works=yes
  5497. fi
  5498. LIBS="$lt_save_LIBS"
  5499. CFLAGS="$lt_save_CFLAGS"
  5500. else
  5501. echo "cannot find nm_test_func in $nlist" >&5
  5502. fi
  5503. else
  5504. echo "cannot find nm_test_var in $nlist" >&5
  5505. fi
  5506. else
  5507. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5508. fi
  5509. else
  5510. echo "$progname: failed program was:" >&5
  5511. cat conftest.$ac_ext >&5
  5512. fi
  5513. rm -rf conftest* conftst*
  5514. # Do not use the global_symbol_pipe unless it works.
  5515. if test "$pipe_works" = yes; then
  5516. break
  5517. else
  5518. lt_cv_sys_global_symbol_pipe=
  5519. fi
  5520. done
  5521. fi
  5522. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5523. lt_cv_sys_global_symbol_to_cdecl=
  5524. fi
  5525. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5527. $as_echo "failed" >&6; }
  5528. else
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5530. $as_echo "ok" >&6; }
  5531. fi
  5532. # Check whether --enable-libtool-lock was given.
  5533. if test "${enable_libtool_lock+set}" = set; then :
  5534. enableval=$enable_libtool_lock;
  5535. fi
  5536. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5537. # Some flags need to be propagated to the compiler or linker for good
  5538. # libtool support.
  5539. case $host in
  5540. ia64-*-hpux*)
  5541. # Find out which ABI we are using.
  5542. echo 'int i;' > conftest.$ac_ext
  5543. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5544. (eval $ac_compile) 2>&5
  5545. ac_status=$?
  5546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5547. test $ac_status = 0; }; then
  5548. case `/usr/bin/file conftest.$ac_objext` in
  5549. *ELF-32*)
  5550. HPUX_IA64_MODE="32"
  5551. ;;
  5552. *ELF-64*)
  5553. HPUX_IA64_MODE="64"
  5554. ;;
  5555. esac
  5556. fi
  5557. rm -rf conftest*
  5558. ;;
  5559. *-*-irix6*)
  5560. # Find out which ABI we are using.
  5561. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5562. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5563. (eval $ac_compile) 2>&5
  5564. ac_status=$?
  5565. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5566. test $ac_status = 0; }; then
  5567. if test "$lt_cv_prog_gnu_ld" = yes; then
  5568. case `/usr/bin/file conftest.$ac_objext` in
  5569. *32-bit*)
  5570. LD="${LD-ld} -melf32bsmip"
  5571. ;;
  5572. *N32*)
  5573. LD="${LD-ld} -melf32bmipn32"
  5574. ;;
  5575. *64-bit*)
  5576. LD="${LD-ld} -melf64bmip"
  5577. ;;
  5578. esac
  5579. else
  5580. case `/usr/bin/file conftest.$ac_objext` in
  5581. *32-bit*)
  5582. LD="${LD-ld} -32"
  5583. ;;
  5584. *N32*)
  5585. LD="${LD-ld} -n32"
  5586. ;;
  5587. *64-bit*)
  5588. LD="${LD-ld} -64"
  5589. ;;
  5590. esac
  5591. fi
  5592. fi
  5593. rm -rf conftest*
  5594. ;;
  5595. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5596. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5597. # Find out which ABI we are using.
  5598. echo 'int i;' > conftest.$ac_ext
  5599. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5600. (eval $ac_compile) 2>&5
  5601. ac_status=$?
  5602. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5603. test $ac_status = 0; }; then
  5604. case `/usr/bin/file conftest.o` in
  5605. *32-bit*)
  5606. case $host in
  5607. x86_64-*kfreebsd*-gnu)
  5608. LD="${LD-ld} -m elf_i386_fbsd"
  5609. ;;
  5610. x86_64-*linux*)
  5611. case `/usr/bin/file conftest.o` in
  5612. *x86-64*)
  5613. LD="${LD-ld} -m elf32_x86_64"
  5614. ;;
  5615. *)
  5616. LD="${LD-ld} -m elf_i386"
  5617. ;;
  5618. esac
  5619. ;;
  5620. powerpc64le-*linux*)
  5621. LD="${LD-ld} -m elf32lppclinux"
  5622. ;;
  5623. powerpc64-*linux*)
  5624. LD="${LD-ld} -m elf32ppclinux"
  5625. ;;
  5626. s390x-*linux*)
  5627. LD="${LD-ld} -m elf_s390"
  5628. ;;
  5629. sparc64-*linux*)
  5630. LD="${LD-ld} -m elf32_sparc"
  5631. ;;
  5632. esac
  5633. ;;
  5634. *64-bit*)
  5635. case $host in
  5636. x86_64-*kfreebsd*-gnu)
  5637. LD="${LD-ld} -m elf_x86_64_fbsd"
  5638. ;;
  5639. x86_64-*linux*)
  5640. LD="${LD-ld} -m elf_x86_64"
  5641. ;;
  5642. powerpcle-*linux*)
  5643. LD="${LD-ld} -m elf64lppc"
  5644. ;;
  5645. powerpc-*linux*)
  5646. LD="${LD-ld} -m elf64ppc"
  5647. ;;
  5648. s390*-*linux*|s390*-*tpf*)
  5649. LD="${LD-ld} -m elf64_s390"
  5650. ;;
  5651. sparc*-*linux*)
  5652. LD="${LD-ld} -m elf64_sparc"
  5653. ;;
  5654. esac
  5655. ;;
  5656. esac
  5657. fi
  5658. rm -rf conftest*
  5659. ;;
  5660. *-*-sco3.2v5*)
  5661. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5662. SAVE_CFLAGS="$CFLAGS"
  5663. CFLAGS="$CFLAGS -belf"
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5665. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5666. if ${lt_cv_cc_needs_belf+:} false; then :
  5667. $as_echo_n "(cached) " >&6
  5668. else
  5669. ac_ext=c
  5670. ac_cpp='$CPP $CPPFLAGS'
  5671. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5672. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5673. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5675. /* end confdefs.h. */
  5676. int
  5677. main ()
  5678. {
  5679. ;
  5680. return 0;
  5681. }
  5682. _ACEOF
  5683. if ac_fn_c_try_link "$LINENO"; then :
  5684. lt_cv_cc_needs_belf=yes
  5685. else
  5686. lt_cv_cc_needs_belf=no
  5687. fi
  5688. rm -f core conftest.err conftest.$ac_objext \
  5689. conftest$ac_exeext conftest.$ac_ext
  5690. ac_ext=c
  5691. ac_cpp='$CPP $CPPFLAGS'
  5692. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5693. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5694. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5695. fi
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5697. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5698. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5699. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5700. CFLAGS="$SAVE_CFLAGS"
  5701. fi
  5702. ;;
  5703. sparc*-*solaris*)
  5704. # Find out which ABI we are using.
  5705. echo 'int i;' > conftest.$ac_ext
  5706. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5707. (eval $ac_compile) 2>&5
  5708. ac_status=$?
  5709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5710. test $ac_status = 0; }; then
  5711. case `/usr/bin/file conftest.o` in
  5712. *64-bit*)
  5713. case $lt_cv_prog_gnu_ld in
  5714. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5715. *)
  5716. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5717. LD="${LD-ld} -64"
  5718. fi
  5719. ;;
  5720. esac
  5721. ;;
  5722. esac
  5723. fi
  5724. rm -rf conftest*
  5725. ;;
  5726. esac
  5727. need_locks="$enable_libtool_lock"
  5728. case $host_os in
  5729. rhapsody* | darwin*)
  5730. if test -n "$ac_tool_prefix"; then
  5731. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5732. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5734. $as_echo_n "checking for $ac_word... " >&6; }
  5735. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5736. $as_echo_n "(cached) " >&6
  5737. else
  5738. if test -n "$DSYMUTIL"; then
  5739. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5740. else
  5741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5742. for as_dir in $PATH
  5743. do
  5744. IFS=$as_save_IFS
  5745. test -z "$as_dir" && as_dir=.
  5746. for ac_exec_ext in '' $ac_executable_extensions; do
  5747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5748. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5750. break 2
  5751. fi
  5752. done
  5753. done
  5754. IFS=$as_save_IFS
  5755. fi
  5756. fi
  5757. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5758. if test -n "$DSYMUTIL"; then
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5760. $as_echo "$DSYMUTIL" >&6; }
  5761. else
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5763. $as_echo "no" >&6; }
  5764. fi
  5765. fi
  5766. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5767. ac_ct_DSYMUTIL=$DSYMUTIL
  5768. # Extract the first word of "dsymutil", so it can be a program name with args.
  5769. set dummy dsymutil; ac_word=$2
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5771. $as_echo_n "checking for $ac_word... " >&6; }
  5772. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5773. $as_echo_n "(cached) " >&6
  5774. else
  5775. if test -n "$ac_ct_DSYMUTIL"; then
  5776. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5777. else
  5778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5779. for as_dir in $PATH
  5780. do
  5781. IFS=$as_save_IFS
  5782. test -z "$as_dir" && as_dir=.
  5783. for ac_exec_ext in '' $ac_executable_extensions; do
  5784. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5785. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5787. break 2
  5788. fi
  5789. done
  5790. done
  5791. IFS=$as_save_IFS
  5792. fi
  5793. fi
  5794. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5795. if test -n "$ac_ct_DSYMUTIL"; then
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5797. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5798. else
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5800. $as_echo "no" >&6; }
  5801. fi
  5802. if test "x$ac_ct_DSYMUTIL" = x; then
  5803. DSYMUTIL=":"
  5804. else
  5805. case $cross_compiling:$ac_tool_warned in
  5806. yes:)
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5808. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5809. ac_tool_warned=yes ;;
  5810. esac
  5811. DSYMUTIL=$ac_ct_DSYMUTIL
  5812. fi
  5813. else
  5814. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5815. fi
  5816. if test -n "$ac_tool_prefix"; then
  5817. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5818. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5820. $as_echo_n "checking for $ac_word... " >&6; }
  5821. if ${ac_cv_prog_NMEDIT+:} false; then :
  5822. $as_echo_n "(cached) " >&6
  5823. else
  5824. if test -n "$NMEDIT"; then
  5825. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5826. else
  5827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5828. for as_dir in $PATH
  5829. do
  5830. IFS=$as_save_IFS
  5831. test -z "$as_dir" && as_dir=.
  5832. for ac_exec_ext in '' $ac_executable_extensions; do
  5833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5834. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5836. break 2
  5837. fi
  5838. done
  5839. done
  5840. IFS=$as_save_IFS
  5841. fi
  5842. fi
  5843. NMEDIT=$ac_cv_prog_NMEDIT
  5844. if test -n "$NMEDIT"; then
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5846. $as_echo "$NMEDIT" >&6; }
  5847. else
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5849. $as_echo "no" >&6; }
  5850. fi
  5851. fi
  5852. if test -z "$ac_cv_prog_NMEDIT"; then
  5853. ac_ct_NMEDIT=$NMEDIT
  5854. # Extract the first word of "nmedit", so it can be a program name with args.
  5855. set dummy nmedit; ac_word=$2
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5857. $as_echo_n "checking for $ac_word... " >&6; }
  5858. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5859. $as_echo_n "(cached) " >&6
  5860. else
  5861. if test -n "$ac_ct_NMEDIT"; then
  5862. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5863. else
  5864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5865. for as_dir in $PATH
  5866. do
  5867. IFS=$as_save_IFS
  5868. test -z "$as_dir" && as_dir=.
  5869. for ac_exec_ext in '' $ac_executable_extensions; do
  5870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5871. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5873. break 2
  5874. fi
  5875. done
  5876. done
  5877. IFS=$as_save_IFS
  5878. fi
  5879. fi
  5880. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5881. if test -n "$ac_ct_NMEDIT"; then
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5883. $as_echo "$ac_ct_NMEDIT" >&6; }
  5884. else
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5886. $as_echo "no" >&6; }
  5887. fi
  5888. if test "x$ac_ct_NMEDIT" = x; then
  5889. NMEDIT=":"
  5890. else
  5891. case $cross_compiling:$ac_tool_warned in
  5892. yes:)
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5894. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5895. ac_tool_warned=yes ;;
  5896. esac
  5897. NMEDIT=$ac_ct_NMEDIT
  5898. fi
  5899. else
  5900. NMEDIT="$ac_cv_prog_NMEDIT"
  5901. fi
  5902. if test -n "$ac_tool_prefix"; then
  5903. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5904. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5906. $as_echo_n "checking for $ac_word... " >&6; }
  5907. if ${ac_cv_prog_LIPO+:} false; then :
  5908. $as_echo_n "(cached) " >&6
  5909. else
  5910. if test -n "$LIPO"; then
  5911. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5912. else
  5913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5914. for as_dir in $PATH
  5915. do
  5916. IFS=$as_save_IFS
  5917. test -z "$as_dir" && as_dir=.
  5918. for ac_exec_ext in '' $ac_executable_extensions; do
  5919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5920. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5922. break 2
  5923. fi
  5924. done
  5925. done
  5926. IFS=$as_save_IFS
  5927. fi
  5928. fi
  5929. LIPO=$ac_cv_prog_LIPO
  5930. if test -n "$LIPO"; then
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5932. $as_echo "$LIPO" >&6; }
  5933. else
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5935. $as_echo "no" >&6; }
  5936. fi
  5937. fi
  5938. if test -z "$ac_cv_prog_LIPO"; then
  5939. ac_ct_LIPO=$LIPO
  5940. # Extract the first word of "lipo", so it can be a program name with args.
  5941. set dummy lipo; ac_word=$2
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5943. $as_echo_n "checking for $ac_word... " >&6; }
  5944. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5945. $as_echo_n "(cached) " >&6
  5946. else
  5947. if test -n "$ac_ct_LIPO"; then
  5948. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5949. else
  5950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5951. for as_dir in $PATH
  5952. do
  5953. IFS=$as_save_IFS
  5954. test -z "$as_dir" && as_dir=.
  5955. for ac_exec_ext in '' $ac_executable_extensions; do
  5956. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5957. ac_cv_prog_ac_ct_LIPO="lipo"
  5958. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5959. break 2
  5960. fi
  5961. done
  5962. done
  5963. IFS=$as_save_IFS
  5964. fi
  5965. fi
  5966. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5967. if test -n "$ac_ct_LIPO"; then
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5969. $as_echo "$ac_ct_LIPO" >&6; }
  5970. else
  5971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5972. $as_echo "no" >&6; }
  5973. fi
  5974. if test "x$ac_ct_LIPO" = x; then
  5975. LIPO=":"
  5976. else
  5977. case $cross_compiling:$ac_tool_warned in
  5978. yes:)
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5980. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5981. ac_tool_warned=yes ;;
  5982. esac
  5983. LIPO=$ac_ct_LIPO
  5984. fi
  5985. else
  5986. LIPO="$ac_cv_prog_LIPO"
  5987. fi
  5988. if test -n "$ac_tool_prefix"; then
  5989. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5990. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5992. $as_echo_n "checking for $ac_word... " >&6; }
  5993. if ${ac_cv_prog_OTOOL+:} false; then :
  5994. $as_echo_n "(cached) " >&6
  5995. else
  5996. if test -n "$OTOOL"; then
  5997. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5998. else
  5999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6000. for as_dir in $PATH
  6001. do
  6002. IFS=$as_save_IFS
  6003. test -z "$as_dir" && as_dir=.
  6004. for ac_exec_ext in '' $ac_executable_extensions; do
  6005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6006. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6008. break 2
  6009. fi
  6010. done
  6011. done
  6012. IFS=$as_save_IFS
  6013. fi
  6014. fi
  6015. OTOOL=$ac_cv_prog_OTOOL
  6016. if test -n "$OTOOL"; then
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6018. $as_echo "$OTOOL" >&6; }
  6019. else
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6021. $as_echo "no" >&6; }
  6022. fi
  6023. fi
  6024. if test -z "$ac_cv_prog_OTOOL"; then
  6025. ac_ct_OTOOL=$OTOOL
  6026. # Extract the first word of "otool", so it can be a program name with args.
  6027. set dummy otool; ac_word=$2
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6029. $as_echo_n "checking for $ac_word... " >&6; }
  6030. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6031. $as_echo_n "(cached) " >&6
  6032. else
  6033. if test -n "$ac_ct_OTOOL"; then
  6034. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6035. else
  6036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6037. for as_dir in $PATH
  6038. do
  6039. IFS=$as_save_IFS
  6040. test -z "$as_dir" && as_dir=.
  6041. for ac_exec_ext in '' $ac_executable_extensions; do
  6042. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6043. ac_cv_prog_ac_ct_OTOOL="otool"
  6044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6045. break 2
  6046. fi
  6047. done
  6048. done
  6049. IFS=$as_save_IFS
  6050. fi
  6051. fi
  6052. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6053. if test -n "$ac_ct_OTOOL"; then
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6055. $as_echo "$ac_ct_OTOOL" >&6; }
  6056. else
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6058. $as_echo "no" >&6; }
  6059. fi
  6060. if test "x$ac_ct_OTOOL" = x; then
  6061. OTOOL=":"
  6062. else
  6063. case $cross_compiling:$ac_tool_warned in
  6064. yes:)
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6066. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6067. ac_tool_warned=yes ;;
  6068. esac
  6069. OTOOL=$ac_ct_OTOOL
  6070. fi
  6071. else
  6072. OTOOL="$ac_cv_prog_OTOOL"
  6073. fi
  6074. if test -n "$ac_tool_prefix"; then
  6075. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6076. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6078. $as_echo_n "checking for $ac_word... " >&6; }
  6079. if ${ac_cv_prog_OTOOL64+:} false; then :
  6080. $as_echo_n "(cached) " >&6
  6081. else
  6082. if test -n "$OTOOL64"; then
  6083. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6084. else
  6085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6086. for as_dir in $PATH
  6087. do
  6088. IFS=$as_save_IFS
  6089. test -z "$as_dir" && as_dir=.
  6090. for ac_exec_ext in '' $ac_executable_extensions; do
  6091. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6092. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6094. break 2
  6095. fi
  6096. done
  6097. done
  6098. IFS=$as_save_IFS
  6099. fi
  6100. fi
  6101. OTOOL64=$ac_cv_prog_OTOOL64
  6102. if test -n "$OTOOL64"; then
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6104. $as_echo "$OTOOL64" >&6; }
  6105. else
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6107. $as_echo "no" >&6; }
  6108. fi
  6109. fi
  6110. if test -z "$ac_cv_prog_OTOOL64"; then
  6111. ac_ct_OTOOL64=$OTOOL64
  6112. # Extract the first word of "otool64", so it can be a program name with args.
  6113. set dummy otool64; ac_word=$2
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6115. $as_echo_n "checking for $ac_word... " >&6; }
  6116. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6117. $as_echo_n "(cached) " >&6
  6118. else
  6119. if test -n "$ac_ct_OTOOL64"; then
  6120. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6121. else
  6122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6123. for as_dir in $PATH
  6124. do
  6125. IFS=$as_save_IFS
  6126. test -z "$as_dir" && as_dir=.
  6127. for ac_exec_ext in '' $ac_executable_extensions; do
  6128. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6129. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6131. break 2
  6132. fi
  6133. done
  6134. done
  6135. IFS=$as_save_IFS
  6136. fi
  6137. fi
  6138. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6139. if test -n "$ac_ct_OTOOL64"; then
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6141. $as_echo "$ac_ct_OTOOL64" >&6; }
  6142. else
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6144. $as_echo "no" >&6; }
  6145. fi
  6146. if test "x$ac_ct_OTOOL64" = x; then
  6147. OTOOL64=":"
  6148. else
  6149. case $cross_compiling:$ac_tool_warned in
  6150. yes:)
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6152. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6153. ac_tool_warned=yes ;;
  6154. esac
  6155. OTOOL64=$ac_ct_OTOOL64
  6156. fi
  6157. else
  6158. OTOOL64="$ac_cv_prog_OTOOL64"
  6159. fi
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6161. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6162. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6163. $as_echo_n "(cached) " >&6
  6164. else
  6165. lt_cv_apple_cc_single_mod=no
  6166. if test -z "${LT_MULTI_MODULE}"; then
  6167. # By default we will add the -single_module flag. You can override
  6168. # by either setting the environment variable LT_MULTI_MODULE
  6169. # non-empty at configure time, or by adding -multi_module to the
  6170. # link flags.
  6171. rm -rf libconftest.dylib*
  6172. echo "int foo(void){return 1;}" > conftest.c
  6173. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6174. -dynamiclib -Wl,-single_module conftest.c" >&5
  6175. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6176. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6177. _lt_result=$?
  6178. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6179. lt_cv_apple_cc_single_mod=yes
  6180. else
  6181. cat conftest.err >&5
  6182. fi
  6183. rm -rf libconftest.dylib*
  6184. rm -f conftest.*
  6185. fi
  6186. fi
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6188. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6190. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6191. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6192. $as_echo_n "(cached) " >&6
  6193. else
  6194. lt_cv_ld_exported_symbols_list=no
  6195. save_LDFLAGS=$LDFLAGS
  6196. echo "_main" > conftest.sym
  6197. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6199. /* end confdefs.h. */
  6200. int
  6201. main ()
  6202. {
  6203. ;
  6204. return 0;
  6205. }
  6206. _ACEOF
  6207. if ac_fn_c_try_link "$LINENO"; then :
  6208. lt_cv_ld_exported_symbols_list=yes
  6209. else
  6210. lt_cv_ld_exported_symbols_list=no
  6211. fi
  6212. rm -f core conftest.err conftest.$ac_objext \
  6213. conftest$ac_exeext conftest.$ac_ext
  6214. LDFLAGS="$save_LDFLAGS"
  6215. fi
  6216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6217. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6219. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6220. if ${lt_cv_ld_force_load+:} false; then :
  6221. $as_echo_n "(cached) " >&6
  6222. else
  6223. lt_cv_ld_force_load=no
  6224. cat > conftest.c << _LT_EOF
  6225. int forced_loaded() { return 2;}
  6226. _LT_EOF
  6227. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6228. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6229. echo "$AR cru libconftest.a conftest.o" >&5
  6230. $AR cru libconftest.a conftest.o 2>&5
  6231. cat > conftest.c << _LT_EOF
  6232. int main() { return 0;}
  6233. _LT_EOF
  6234. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6235. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6236. _lt_result=$?
  6237. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6238. lt_cv_ld_force_load=yes
  6239. else
  6240. cat conftest.err >&5
  6241. fi
  6242. rm -f conftest.err libconftest.a conftest conftest.c
  6243. rm -rf conftest.dSYM
  6244. fi
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6246. $as_echo "$lt_cv_ld_force_load" >&6; }
  6247. case $host_os in
  6248. rhapsody* | darwin1.[012])
  6249. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6250. darwin1.*)
  6251. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6252. darwin*) # darwin 5.x on
  6253. # if running on 10.5 or later, the deployment target defaults
  6254. # to the OS version, if on x86, and 10.4, the deployment
  6255. # target defaults to 10.4. Don't you love it?
  6256. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6257. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6258. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6259. 10.[012][,.]*)
  6260. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6261. 10.*)
  6262. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6263. esac
  6264. ;;
  6265. esac
  6266. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6267. _lt_dar_single_mod='$single_module'
  6268. fi
  6269. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6270. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6271. else
  6272. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6273. fi
  6274. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6275. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6276. else
  6277. _lt_dsymutil=
  6278. fi
  6279. ;;
  6280. esac
  6281. for ac_header in dlfcn.h
  6282. do :
  6283. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6284. "
  6285. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6286. cat >>confdefs.h <<_ACEOF
  6287. #define HAVE_DLFCN_H 1
  6288. _ACEOF
  6289. fi
  6290. done
  6291. # Set options
  6292. enable_dlopen=no
  6293. enable_win32_dll=no
  6294. # Check whether --enable-shared was given.
  6295. if test "${enable_shared+set}" = set; then :
  6296. enableval=$enable_shared; p=${PACKAGE-default}
  6297. case $enableval in
  6298. yes) enable_shared=yes ;;
  6299. no) enable_shared=no ;;
  6300. *)
  6301. enable_shared=no
  6302. # Look at the argument we got. We use all the common list separators.
  6303. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6304. for pkg in $enableval; do
  6305. IFS="$lt_save_ifs"
  6306. if test "X$pkg" = "X$p"; then
  6307. enable_shared=yes
  6308. fi
  6309. done
  6310. IFS="$lt_save_ifs"
  6311. ;;
  6312. esac
  6313. else
  6314. enable_shared=yes
  6315. fi
  6316. # Check whether --enable-static was given.
  6317. if test "${enable_static+set}" = set; then :
  6318. enableval=$enable_static; p=${PACKAGE-default}
  6319. case $enableval in
  6320. yes) enable_static=yes ;;
  6321. no) enable_static=no ;;
  6322. *)
  6323. enable_static=no
  6324. # Look at the argument we got. We use all the common list separators.
  6325. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6326. for pkg in $enableval; do
  6327. IFS="$lt_save_ifs"
  6328. if test "X$pkg" = "X$p"; then
  6329. enable_static=yes
  6330. fi
  6331. done
  6332. IFS="$lt_save_ifs"
  6333. ;;
  6334. esac
  6335. else
  6336. enable_static=yes
  6337. fi
  6338. # Check whether --with-pic was given.
  6339. if test "${with_pic+set}" = set; then :
  6340. withval=$with_pic; pic_mode="$withval"
  6341. else
  6342. pic_mode=default
  6343. fi
  6344. test -z "$pic_mode" && pic_mode=default
  6345. # Check whether --enable-fast-install was given.
  6346. if test "${enable_fast_install+set}" = set; then :
  6347. enableval=$enable_fast_install; p=${PACKAGE-default}
  6348. case $enableval in
  6349. yes) enable_fast_install=yes ;;
  6350. no) enable_fast_install=no ;;
  6351. *)
  6352. enable_fast_install=no
  6353. # Look at the argument we got. We use all the common list separators.
  6354. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6355. for pkg in $enableval; do
  6356. IFS="$lt_save_ifs"
  6357. if test "X$pkg" = "X$p"; then
  6358. enable_fast_install=yes
  6359. fi
  6360. done
  6361. IFS="$lt_save_ifs"
  6362. ;;
  6363. esac
  6364. else
  6365. enable_fast_install=yes
  6366. fi
  6367. # This can be used to rebuild libtool when needed
  6368. LIBTOOL_DEPS="$ltmain"
  6369. # Always use our own libtool.
  6370. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6371. test -z "$LN_S" && LN_S="ln -s"
  6372. if test -n "${ZSH_VERSION+set}" ; then
  6373. setopt NO_GLOB_SUBST
  6374. fi
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6376. $as_echo_n "checking for objdir... " >&6; }
  6377. if ${lt_cv_objdir+:} false; then :
  6378. $as_echo_n "(cached) " >&6
  6379. else
  6380. rm -f .libs 2>/dev/null
  6381. mkdir .libs 2>/dev/null
  6382. if test -d .libs; then
  6383. lt_cv_objdir=.libs
  6384. else
  6385. # MS-DOS does not allow filenames that begin with a dot.
  6386. lt_cv_objdir=_libs
  6387. fi
  6388. rmdir .libs 2>/dev/null
  6389. fi
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6391. $as_echo "$lt_cv_objdir" >&6; }
  6392. objdir=$lt_cv_objdir
  6393. cat >>confdefs.h <<_ACEOF
  6394. #define LT_OBJDIR "$lt_cv_objdir/"
  6395. _ACEOF
  6396. case $host_os in
  6397. aix3*)
  6398. # AIX sometimes has problems with the GCC collect2 program. For some
  6399. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6400. # vanish in a puff of smoke.
  6401. if test "X${COLLECT_NAMES+set}" != Xset; then
  6402. COLLECT_NAMES=
  6403. export COLLECT_NAMES
  6404. fi
  6405. ;;
  6406. esac
  6407. # Global variables:
  6408. ofile=libtool
  6409. can_build_shared=yes
  6410. # All known linkers require a `.a' archive for static linking (except MSVC,
  6411. # which needs '.lib').
  6412. libext=a
  6413. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6414. old_CC="$CC"
  6415. old_CFLAGS="$CFLAGS"
  6416. # Set sane defaults for various variables
  6417. test -z "$CC" && CC=cc
  6418. test -z "$LTCC" && LTCC=$CC
  6419. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6420. test -z "$LD" && LD=ld
  6421. test -z "$ac_objext" && ac_objext=o
  6422. for cc_temp in $compiler""; do
  6423. case $cc_temp in
  6424. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6425. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6426. \-*) ;;
  6427. *) break;;
  6428. esac
  6429. done
  6430. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6431. # Only perform the check for file, if the check method requires it
  6432. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6433. case $deplibs_check_method in
  6434. file_magic*)
  6435. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6437. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6438. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6439. $as_echo_n "(cached) " >&6
  6440. else
  6441. case $MAGIC_CMD in
  6442. [\\/*] | ?:[\\/]*)
  6443. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6444. ;;
  6445. *)
  6446. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6447. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6448. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6449. for ac_dir in $ac_dummy; do
  6450. IFS="$lt_save_ifs"
  6451. test -z "$ac_dir" && ac_dir=.
  6452. if test -f $ac_dir/${ac_tool_prefix}file; then
  6453. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6454. if test -n "$file_magic_test_file"; then
  6455. case $deplibs_check_method in
  6456. "file_magic "*)
  6457. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6458. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6459. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6460. $EGREP "$file_magic_regex" > /dev/null; then
  6461. :
  6462. else
  6463. cat <<_LT_EOF 1>&2
  6464. *** Warning: the command libtool uses to detect shared libraries,
  6465. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6466. *** The result is that libtool may fail to recognize shared libraries
  6467. *** as such. This will affect the creation of libtool libraries that
  6468. *** depend on shared libraries, but programs linked with such libtool
  6469. *** libraries will work regardless of this problem. Nevertheless, you
  6470. *** may want to report the problem to your system manager and/or to
  6471. *** bug-libtool@gnu.org
  6472. _LT_EOF
  6473. fi ;;
  6474. esac
  6475. fi
  6476. break
  6477. fi
  6478. done
  6479. IFS="$lt_save_ifs"
  6480. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6481. ;;
  6482. esac
  6483. fi
  6484. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6485. if test -n "$MAGIC_CMD"; then
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6487. $as_echo "$MAGIC_CMD" >&6; }
  6488. else
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6490. $as_echo "no" >&6; }
  6491. fi
  6492. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6493. if test -n "$ac_tool_prefix"; then
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6495. $as_echo_n "checking for file... " >&6; }
  6496. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6497. $as_echo_n "(cached) " >&6
  6498. else
  6499. case $MAGIC_CMD in
  6500. [\\/*] | ?:[\\/]*)
  6501. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6502. ;;
  6503. *)
  6504. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6505. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6506. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6507. for ac_dir in $ac_dummy; do
  6508. IFS="$lt_save_ifs"
  6509. test -z "$ac_dir" && ac_dir=.
  6510. if test -f $ac_dir/file; then
  6511. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6512. if test -n "$file_magic_test_file"; then
  6513. case $deplibs_check_method in
  6514. "file_magic "*)
  6515. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6516. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6517. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6518. $EGREP "$file_magic_regex" > /dev/null; then
  6519. :
  6520. else
  6521. cat <<_LT_EOF 1>&2
  6522. *** Warning: the command libtool uses to detect shared libraries,
  6523. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6524. *** The result is that libtool may fail to recognize shared libraries
  6525. *** as such. This will affect the creation of libtool libraries that
  6526. *** depend on shared libraries, but programs linked with such libtool
  6527. *** libraries will work regardless of this problem. Nevertheless, you
  6528. *** may want to report the problem to your system manager and/or to
  6529. *** bug-libtool@gnu.org
  6530. _LT_EOF
  6531. fi ;;
  6532. esac
  6533. fi
  6534. break
  6535. fi
  6536. done
  6537. IFS="$lt_save_ifs"
  6538. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6539. ;;
  6540. esac
  6541. fi
  6542. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6543. if test -n "$MAGIC_CMD"; then
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6545. $as_echo "$MAGIC_CMD" >&6; }
  6546. else
  6547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6548. $as_echo "no" >&6; }
  6549. fi
  6550. else
  6551. MAGIC_CMD=:
  6552. fi
  6553. fi
  6554. fi
  6555. ;;
  6556. esac
  6557. # Use C for the default configuration in the libtool script
  6558. lt_save_CC="$CC"
  6559. ac_ext=c
  6560. ac_cpp='$CPP $CPPFLAGS'
  6561. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6562. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6563. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6564. # Source file extension for C test sources.
  6565. ac_ext=c
  6566. # Object file extension for compiled C test sources.
  6567. objext=o
  6568. objext=$objext
  6569. # Code to be used in simple compile tests
  6570. lt_simple_compile_test_code="int some_variable = 0;"
  6571. # Code to be used in simple link tests
  6572. lt_simple_link_test_code='int main(){return(0);}'
  6573. # If no C compiler was specified, use CC.
  6574. LTCC=${LTCC-"$CC"}
  6575. # If no C compiler flags were specified, use CFLAGS.
  6576. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6577. # Allow CC to be a program name with arguments.
  6578. compiler=$CC
  6579. # Save the default compiler, since it gets overwritten when the other
  6580. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6581. compiler_DEFAULT=$CC
  6582. # save warnings/boilerplate of simple test code
  6583. ac_outfile=conftest.$ac_objext
  6584. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6585. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6586. _lt_compiler_boilerplate=`cat conftest.err`
  6587. $RM conftest*
  6588. ac_outfile=conftest.$ac_objext
  6589. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6590. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6591. _lt_linker_boilerplate=`cat conftest.err`
  6592. $RM -r conftest*
  6593. ## CAVEAT EMPTOR:
  6594. ## There is no encapsulation within the following macros, do not change
  6595. ## the running order or otherwise move them around unless you know exactly
  6596. ## what you are doing...
  6597. if test -n "$compiler"; then
  6598. lt_prog_compiler_no_builtin_flag=
  6599. if test "$GCC" = yes; then
  6600. case $cc_basename in
  6601. nvcc*)
  6602. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6603. *)
  6604. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6605. esac
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6607. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6608. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6609. $as_echo_n "(cached) " >&6
  6610. else
  6611. lt_cv_prog_compiler_rtti_exceptions=no
  6612. ac_outfile=conftest.$ac_objext
  6613. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6614. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6615. # Insert the option either (1) after the last *FLAGS variable, or
  6616. # (2) before a word containing "conftest.", or (3) at the end.
  6617. # Note that $ac_compile itself does not contain backslashes and begins
  6618. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6619. # The option is referenced via a variable to avoid confusing sed.
  6620. lt_compile=`echo "$ac_compile" | $SED \
  6621. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6622. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6623. -e 's:$: $lt_compiler_flag:'`
  6624. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6625. (eval "$lt_compile" 2>conftest.err)
  6626. ac_status=$?
  6627. cat conftest.err >&5
  6628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6629. if (exit $ac_status) && test -s "$ac_outfile"; then
  6630. # The compiler can only warn and ignore the option if not recognized
  6631. # So say no if there are warnings other than the usual output.
  6632. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6633. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6634. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6635. lt_cv_prog_compiler_rtti_exceptions=yes
  6636. fi
  6637. fi
  6638. $RM conftest*
  6639. fi
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6641. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6642. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6643. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6644. else
  6645. :
  6646. fi
  6647. fi
  6648. lt_prog_compiler_wl=
  6649. lt_prog_compiler_pic=
  6650. lt_prog_compiler_static=
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6652. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6653. if test "$GCC" = yes; then
  6654. lt_prog_compiler_wl='-Wl,'
  6655. lt_prog_compiler_static='-static'
  6656. case $host_os in
  6657. aix*)
  6658. # All AIX code is PIC.
  6659. if test "$host_cpu" = ia64; then
  6660. # AIX 5 now supports IA64 processor
  6661. lt_prog_compiler_static='-Bstatic'
  6662. fi
  6663. lt_prog_compiler_pic='-fPIC'
  6664. ;;
  6665. amigaos*)
  6666. case $host_cpu in
  6667. powerpc)
  6668. # see comment about AmigaOS4 .so support
  6669. lt_prog_compiler_pic='-fPIC'
  6670. ;;
  6671. m68k)
  6672. # FIXME: we need at least 68020 code to build shared libraries, but
  6673. # adding the `-m68020' flag to GCC prevents building anything better,
  6674. # like `-m68040'.
  6675. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6676. ;;
  6677. esac
  6678. ;;
  6679. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6680. # PIC is the default for these OSes.
  6681. ;;
  6682. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6683. # This hack is so that the source file can tell whether it is being
  6684. # built for inclusion in a dll (and should export symbols for example).
  6685. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6686. # (--disable-auto-import) libraries
  6687. lt_prog_compiler_pic='-DDLL_EXPORT'
  6688. ;;
  6689. darwin* | rhapsody*)
  6690. # PIC is the default on this platform
  6691. # Common symbols not allowed in MH_DYLIB files
  6692. lt_prog_compiler_pic='-fno-common'
  6693. ;;
  6694. haiku*)
  6695. # PIC is the default for Haiku.
  6696. # The "-static" flag exists, but is broken.
  6697. lt_prog_compiler_static=
  6698. ;;
  6699. hpux*)
  6700. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6701. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6702. # sets the default TLS model and affects inlining.
  6703. case $host_cpu in
  6704. hppa*64*)
  6705. # +Z the default
  6706. ;;
  6707. *)
  6708. lt_prog_compiler_pic='-fPIC'
  6709. ;;
  6710. esac
  6711. ;;
  6712. interix[3-9]*)
  6713. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6714. # Instead, we relocate shared libraries at runtime.
  6715. ;;
  6716. msdosdjgpp*)
  6717. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6718. # on systems that don't support them.
  6719. lt_prog_compiler_can_build_shared=no
  6720. enable_shared=no
  6721. ;;
  6722. *nto* | *qnx*)
  6723. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6724. # it will coredump.
  6725. lt_prog_compiler_pic='-fPIC -shared'
  6726. ;;
  6727. sysv4*MP*)
  6728. if test -d /usr/nec; then
  6729. lt_prog_compiler_pic=-Kconform_pic
  6730. fi
  6731. ;;
  6732. *)
  6733. lt_prog_compiler_pic='-fPIC'
  6734. ;;
  6735. esac
  6736. case $cc_basename in
  6737. nvcc*) # Cuda Compiler Driver 2.2
  6738. lt_prog_compiler_wl='-Xlinker '
  6739. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6740. ;;
  6741. esac
  6742. else
  6743. # PORTME Check for flag to pass linker flags through the system compiler.
  6744. case $host_os in
  6745. aix*)
  6746. lt_prog_compiler_wl='-Wl,'
  6747. if test "$host_cpu" = ia64; then
  6748. # AIX 5 now supports IA64 processor
  6749. lt_prog_compiler_static='-Bstatic'
  6750. else
  6751. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6752. fi
  6753. ;;
  6754. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6755. # This hack is so that the source file can tell whether it is being
  6756. # built for inclusion in a dll (and should export symbols for example).
  6757. lt_prog_compiler_pic='-DDLL_EXPORT'
  6758. ;;
  6759. hpux9* | hpux10* | hpux11*)
  6760. lt_prog_compiler_wl='-Wl,'
  6761. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6762. # not for PA HP-UX.
  6763. case $host_cpu in
  6764. hppa*64*|ia64*)
  6765. # +Z the default
  6766. ;;
  6767. *)
  6768. lt_prog_compiler_pic='+Z'
  6769. ;;
  6770. esac
  6771. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6772. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6773. ;;
  6774. irix5* | irix6* | nonstopux*)
  6775. lt_prog_compiler_wl='-Wl,'
  6776. # PIC (with -KPIC) is the default.
  6777. lt_prog_compiler_static='-non_shared'
  6778. ;;
  6779. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6780. case $cc_basename in
  6781. # old Intel for x86_64 which still supported -KPIC.
  6782. ecc*)
  6783. lt_prog_compiler_wl='-Wl,'
  6784. lt_prog_compiler_pic='-KPIC'
  6785. lt_prog_compiler_static='-static'
  6786. ;;
  6787. # icc used to be incompatible with GCC.
  6788. # ICC 10 doesn't accept -KPIC any more.
  6789. icc* | ifort*)
  6790. lt_prog_compiler_wl='-Wl,'
  6791. lt_prog_compiler_pic='-fPIC'
  6792. lt_prog_compiler_static='-static'
  6793. ;;
  6794. # Lahey Fortran 8.1.
  6795. lf95*)
  6796. lt_prog_compiler_wl='-Wl,'
  6797. lt_prog_compiler_pic='--shared'
  6798. lt_prog_compiler_static='--static'
  6799. ;;
  6800. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6801. # Portland Group compilers (*not* the Pentium gcc compiler,
  6802. # which looks to be a dead project)
  6803. lt_prog_compiler_wl='-Wl,'
  6804. lt_prog_compiler_pic='-fpic'
  6805. lt_prog_compiler_static='-Bstatic'
  6806. ;;
  6807. ccc*)
  6808. lt_prog_compiler_wl='-Wl,'
  6809. # All Alpha code is PIC.
  6810. lt_prog_compiler_static='-non_shared'
  6811. ;;
  6812. xl* | bgxl* | bgf* | mpixl*)
  6813. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6814. lt_prog_compiler_wl='-Wl,'
  6815. lt_prog_compiler_pic='-qpic'
  6816. lt_prog_compiler_static='-qstaticlink'
  6817. ;;
  6818. *)
  6819. case `$CC -V 2>&1 | sed 5q` in
  6820. *Sun\ F* | *Sun*Fortran*)
  6821. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6822. lt_prog_compiler_pic='-KPIC'
  6823. lt_prog_compiler_static='-Bstatic'
  6824. lt_prog_compiler_wl=''
  6825. ;;
  6826. *Sun\ C*)
  6827. # Sun C 5.9
  6828. lt_prog_compiler_pic='-KPIC'
  6829. lt_prog_compiler_static='-Bstatic'
  6830. lt_prog_compiler_wl='-Wl,'
  6831. ;;
  6832. esac
  6833. ;;
  6834. esac
  6835. ;;
  6836. newsos6)
  6837. lt_prog_compiler_pic='-KPIC'
  6838. lt_prog_compiler_static='-Bstatic'
  6839. ;;
  6840. *nto* | *qnx*)
  6841. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6842. # it will coredump.
  6843. lt_prog_compiler_pic='-fPIC -shared'
  6844. ;;
  6845. osf3* | osf4* | osf5*)
  6846. lt_prog_compiler_wl='-Wl,'
  6847. # All OSF/1 code is PIC.
  6848. lt_prog_compiler_static='-non_shared'
  6849. ;;
  6850. rdos*)
  6851. lt_prog_compiler_static='-non_shared'
  6852. ;;
  6853. solaris*)
  6854. lt_prog_compiler_pic='-KPIC'
  6855. lt_prog_compiler_static='-Bstatic'
  6856. case $cc_basename in
  6857. f77* | f90* | f95*)
  6858. lt_prog_compiler_wl='-Qoption ld ';;
  6859. *)
  6860. lt_prog_compiler_wl='-Wl,';;
  6861. esac
  6862. ;;
  6863. sunos4*)
  6864. lt_prog_compiler_wl='-Qoption ld '
  6865. lt_prog_compiler_pic='-PIC'
  6866. lt_prog_compiler_static='-Bstatic'
  6867. ;;
  6868. sysv4 | sysv4.2uw2* | sysv4.3*)
  6869. lt_prog_compiler_wl='-Wl,'
  6870. lt_prog_compiler_pic='-KPIC'
  6871. lt_prog_compiler_static='-Bstatic'
  6872. ;;
  6873. sysv4*MP*)
  6874. if test -d /usr/nec ;then
  6875. lt_prog_compiler_pic='-Kconform_pic'
  6876. lt_prog_compiler_static='-Bstatic'
  6877. fi
  6878. ;;
  6879. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6880. lt_prog_compiler_wl='-Wl,'
  6881. lt_prog_compiler_pic='-KPIC'
  6882. lt_prog_compiler_static='-Bstatic'
  6883. ;;
  6884. unicos*)
  6885. lt_prog_compiler_wl='-Wl,'
  6886. lt_prog_compiler_can_build_shared=no
  6887. ;;
  6888. uts4*)
  6889. lt_prog_compiler_pic='-pic'
  6890. lt_prog_compiler_static='-Bstatic'
  6891. ;;
  6892. *)
  6893. lt_prog_compiler_can_build_shared=no
  6894. ;;
  6895. esac
  6896. fi
  6897. case $host_os in
  6898. # For platforms which do not support PIC, -DPIC is meaningless:
  6899. *djgpp*)
  6900. lt_prog_compiler_pic=
  6901. ;;
  6902. *)
  6903. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6904. ;;
  6905. esac
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6907. $as_echo "$lt_prog_compiler_pic" >&6; }
  6908. #
  6909. # Check to make sure the PIC flag actually works.
  6910. #
  6911. if test -n "$lt_prog_compiler_pic"; then
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6913. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6914. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  6915. $as_echo_n "(cached) " >&6
  6916. else
  6917. lt_cv_prog_compiler_pic_works=no
  6918. ac_outfile=conftest.$ac_objext
  6919. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6920. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6921. # Insert the option either (1) after the last *FLAGS variable, or
  6922. # (2) before a word containing "conftest.", or (3) at the end.
  6923. # Note that $ac_compile itself does not contain backslashes and begins
  6924. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6925. # The option is referenced via a variable to avoid confusing sed.
  6926. lt_compile=`echo "$ac_compile" | $SED \
  6927. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6928. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6929. -e 's:$: $lt_compiler_flag:'`
  6930. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6931. (eval "$lt_compile" 2>conftest.err)
  6932. ac_status=$?
  6933. cat conftest.err >&5
  6934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6935. if (exit $ac_status) && test -s "$ac_outfile"; then
  6936. # The compiler can only warn and ignore the option if not recognized
  6937. # So say no if there are warnings other than the usual output.
  6938. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6939. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6940. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6941. lt_cv_prog_compiler_pic_works=yes
  6942. fi
  6943. fi
  6944. $RM conftest*
  6945. fi
  6946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6947. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6948. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6949. case $lt_prog_compiler_pic in
  6950. "" | " "*) ;;
  6951. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6952. esac
  6953. else
  6954. lt_prog_compiler_pic=
  6955. lt_prog_compiler_can_build_shared=no
  6956. fi
  6957. fi
  6958. #
  6959. # Check to make sure the static flag actually works.
  6960. #
  6961. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6963. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6964. if ${lt_cv_prog_compiler_static_works+:} false; then :
  6965. $as_echo_n "(cached) " >&6
  6966. else
  6967. lt_cv_prog_compiler_static_works=no
  6968. save_LDFLAGS="$LDFLAGS"
  6969. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6970. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6971. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6972. # The linker can only warn and ignore the option if not recognized
  6973. # So say no if there are warnings
  6974. if test -s conftest.err; then
  6975. # Append any errors to the config.log.
  6976. cat conftest.err 1>&5
  6977. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  6978. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6979. if diff conftest.exp conftest.er2 >/dev/null; then
  6980. lt_cv_prog_compiler_static_works=yes
  6981. fi
  6982. else
  6983. lt_cv_prog_compiler_static_works=yes
  6984. fi
  6985. fi
  6986. $RM -r conftest*
  6987. LDFLAGS="$save_LDFLAGS"
  6988. fi
  6989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6990. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6991. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6992. :
  6993. else
  6994. lt_prog_compiler_static=
  6995. fi
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6997. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6998. if ${lt_cv_prog_compiler_c_o+:} false; then :
  6999. $as_echo_n "(cached) " >&6
  7000. else
  7001. lt_cv_prog_compiler_c_o=no
  7002. $RM -r conftest 2>/dev/null
  7003. mkdir conftest
  7004. cd conftest
  7005. mkdir out
  7006. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7007. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7008. # Insert the option either (1) after the last *FLAGS variable, or
  7009. # (2) before a word containing "conftest.", or (3) at the end.
  7010. # Note that $ac_compile itself does not contain backslashes and begins
  7011. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7012. lt_compile=`echo "$ac_compile" | $SED \
  7013. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7014. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7015. -e 's:$: $lt_compiler_flag:'`
  7016. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7017. (eval "$lt_compile" 2>out/conftest.err)
  7018. ac_status=$?
  7019. cat out/conftest.err >&5
  7020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7021. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7022. then
  7023. # The compiler can only warn and ignore the option if not recognized
  7024. # So say no if there are warnings
  7025. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7026. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7027. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7028. lt_cv_prog_compiler_c_o=yes
  7029. fi
  7030. fi
  7031. chmod u+w . 2>&5
  7032. $RM conftest*
  7033. # SGI C++ compiler will create directory out/ii_files/ for
  7034. # template instantiation
  7035. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7036. $RM out/* && rmdir out
  7037. cd ..
  7038. $RM -r conftest
  7039. $RM conftest*
  7040. fi
  7041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7042. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7044. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7045. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7046. $as_echo_n "(cached) " >&6
  7047. else
  7048. lt_cv_prog_compiler_c_o=no
  7049. $RM -r conftest 2>/dev/null
  7050. mkdir conftest
  7051. cd conftest
  7052. mkdir out
  7053. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7054. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7055. # Insert the option either (1) after the last *FLAGS variable, or
  7056. # (2) before a word containing "conftest.", or (3) at the end.
  7057. # Note that $ac_compile itself does not contain backslashes and begins
  7058. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7059. lt_compile=`echo "$ac_compile" | $SED \
  7060. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7061. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7062. -e 's:$: $lt_compiler_flag:'`
  7063. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7064. (eval "$lt_compile" 2>out/conftest.err)
  7065. ac_status=$?
  7066. cat out/conftest.err >&5
  7067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7068. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7069. then
  7070. # The compiler can only warn and ignore the option if not recognized
  7071. # So say no if there are warnings
  7072. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7073. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7074. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7075. lt_cv_prog_compiler_c_o=yes
  7076. fi
  7077. fi
  7078. chmod u+w . 2>&5
  7079. $RM conftest*
  7080. # SGI C++ compiler will create directory out/ii_files/ for
  7081. # template instantiation
  7082. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7083. $RM out/* && rmdir out
  7084. cd ..
  7085. $RM -r conftest
  7086. $RM conftest*
  7087. fi
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7089. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7090. hard_links="nottested"
  7091. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7092. # do not overwrite the value of need_locks provided by the user
  7093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7094. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7095. hard_links=yes
  7096. $RM conftest*
  7097. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7098. touch conftest.a
  7099. ln conftest.a conftest.b 2>&5 || hard_links=no
  7100. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7102. $as_echo "$hard_links" >&6; }
  7103. if test "$hard_links" = no; then
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7105. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7106. need_locks=warn
  7107. fi
  7108. else
  7109. need_locks=no
  7110. fi
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7112. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7113. runpath_var=
  7114. allow_undefined_flag=
  7115. always_export_symbols=no
  7116. archive_cmds=
  7117. archive_expsym_cmds=
  7118. compiler_needs_object=no
  7119. enable_shared_with_static_runtimes=no
  7120. export_dynamic_flag_spec=
  7121. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7122. hardcode_automatic=no
  7123. hardcode_direct=no
  7124. hardcode_direct_absolute=no
  7125. hardcode_libdir_flag_spec=
  7126. hardcode_libdir_flag_spec_ld=
  7127. hardcode_libdir_separator=
  7128. hardcode_minus_L=no
  7129. hardcode_shlibpath_var=unsupported
  7130. inherit_rpath=no
  7131. link_all_deplibs=unknown
  7132. module_cmds=
  7133. module_expsym_cmds=
  7134. old_archive_from_new_cmds=
  7135. old_archive_from_expsyms_cmds=
  7136. thread_safe_flag_spec=
  7137. whole_archive_flag_spec=
  7138. # include_expsyms should be a list of space-separated symbols to be *always*
  7139. # included in the symbol list
  7140. include_expsyms=
  7141. # exclude_expsyms can be an extended regexp of symbols to exclude
  7142. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7143. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7144. # as well as any symbol that contains `d'.
  7145. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7146. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7147. # platforms (ab)use it in PIC code, but their linkers get confused if
  7148. # the symbol is explicitly referenced. Since portable code cannot
  7149. # rely on this symbol name, it's probably fine to never include it in
  7150. # preloaded symbol tables.
  7151. # Exclude shared library initialization/finalization symbols.
  7152. extract_expsyms_cmds=
  7153. case $host_os in
  7154. cygwin* | mingw* | pw32* | cegcc*)
  7155. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7156. # When not using gcc, we currently assume that we are using
  7157. # Microsoft Visual C++.
  7158. if test "$GCC" != yes; then
  7159. with_gnu_ld=no
  7160. fi
  7161. ;;
  7162. interix*)
  7163. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7164. with_gnu_ld=yes
  7165. ;;
  7166. openbsd*)
  7167. with_gnu_ld=no
  7168. ;;
  7169. esac
  7170. ld_shlibs=yes
  7171. # On some targets, GNU ld is compatible enough with the native linker
  7172. # that we're better off using the native interface for both.
  7173. lt_use_gnu_ld_interface=no
  7174. if test "$with_gnu_ld" = yes; then
  7175. case $host_os in
  7176. aix*)
  7177. # The AIX port of GNU ld has always aspired to compatibility
  7178. # with the native linker. However, as the warning in the GNU ld
  7179. # block says, versions before 2.19.5* couldn't really create working
  7180. # shared libraries, regardless of the interface used.
  7181. case `$LD -v 2>&1` in
  7182. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7183. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7184. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7185. *)
  7186. lt_use_gnu_ld_interface=yes
  7187. ;;
  7188. esac
  7189. ;;
  7190. *)
  7191. lt_use_gnu_ld_interface=yes
  7192. ;;
  7193. esac
  7194. fi
  7195. if test "$lt_use_gnu_ld_interface" = yes; then
  7196. # If archive_cmds runs LD, not CC, wlarc should be empty
  7197. wlarc='${wl}'
  7198. # Set some defaults for GNU ld with shared library support. These
  7199. # are reset later if shared libraries are not supported. Putting them
  7200. # here allows them to be overridden if necessary.
  7201. runpath_var=LD_RUN_PATH
  7202. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7203. export_dynamic_flag_spec='${wl}--export-dynamic'
  7204. # ancient GNU ld didn't support --whole-archive et. al.
  7205. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7206. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7207. else
  7208. whole_archive_flag_spec=
  7209. fi
  7210. supports_anon_versioning=no
  7211. case `$LD -v 2>&1` in
  7212. *GNU\ gold*) supports_anon_versioning=yes ;;
  7213. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7214. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7215. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7216. *\ 2.11.*) ;; # other 2.11 versions
  7217. *) supports_anon_versioning=yes ;;
  7218. esac
  7219. # See if GNU ld supports shared libraries.
  7220. case $host_os in
  7221. aix[3-9]*)
  7222. # On AIX/PPC, the GNU linker is very broken
  7223. if test "$host_cpu" != ia64; then
  7224. ld_shlibs=no
  7225. cat <<_LT_EOF 1>&2
  7226. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7227. *** to be unable to reliably create shared libraries on AIX.
  7228. *** Therefore, libtool is disabling shared libraries support. If you
  7229. *** really care for shared libraries, you may want to install binutils
  7230. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7231. *** You will then need to restart the configuration process.
  7232. _LT_EOF
  7233. fi
  7234. ;;
  7235. amigaos*)
  7236. case $host_cpu in
  7237. powerpc)
  7238. # see comment about AmigaOS4 .so support
  7239. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7240. archive_expsym_cmds=''
  7241. ;;
  7242. m68k)
  7243. 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)'
  7244. hardcode_libdir_flag_spec='-L$libdir'
  7245. hardcode_minus_L=yes
  7246. ;;
  7247. esac
  7248. ;;
  7249. beos*)
  7250. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7251. allow_undefined_flag=unsupported
  7252. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7253. # support --undefined. This deserves some investigation. FIXME
  7254. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7255. else
  7256. ld_shlibs=no
  7257. fi
  7258. ;;
  7259. cygwin* | mingw* | pw32* | cegcc*)
  7260. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7261. # as there is no search path for DLLs.
  7262. hardcode_libdir_flag_spec='-L$libdir'
  7263. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7264. allow_undefined_flag=unsupported
  7265. always_export_symbols=no
  7266. enable_shared_with_static_runtimes=yes
  7267. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7268. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7269. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7270. # If the export-symbols file already is a .def file (1st line
  7271. # is EXPORTS), use it as is; otherwise, prepend...
  7272. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7273. cp $export_symbols $output_objdir/$soname.def;
  7274. else
  7275. echo EXPORTS > $output_objdir/$soname.def;
  7276. cat $export_symbols >> $output_objdir/$soname.def;
  7277. fi~
  7278. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7279. else
  7280. ld_shlibs=no
  7281. fi
  7282. ;;
  7283. haiku*)
  7284. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7285. link_all_deplibs=yes
  7286. ;;
  7287. interix[3-9]*)
  7288. hardcode_direct=no
  7289. hardcode_shlibpath_var=no
  7290. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7291. export_dynamic_flag_spec='${wl}-E'
  7292. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7293. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7294. # default) and relocated if they conflict, which is a slow very memory
  7295. # consuming and fragmenting process. To avoid this, we pick a random,
  7296. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7297. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7298. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7299. 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'
  7300. ;;
  7301. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7302. tmp_diet=no
  7303. if test "$host_os" = linux-dietlibc; then
  7304. case $cc_basename in
  7305. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7306. esac
  7307. fi
  7308. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7309. && test "$tmp_diet" = no
  7310. then
  7311. tmp_addflag=' $pic_flag'
  7312. tmp_sharedflag='-shared'
  7313. case $cc_basename,$host_cpu in
  7314. pgcc*) # Portland Group C compiler
  7315. 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'
  7316. tmp_addflag=' $pic_flag'
  7317. ;;
  7318. pgf77* | pgf90* | pgf95* | pgfortran*)
  7319. # Portland Group f77 and f90 compilers
  7320. 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'
  7321. tmp_addflag=' $pic_flag -Mnomain' ;;
  7322. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7323. tmp_addflag=' -i_dynamic' ;;
  7324. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7325. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7326. ifc* | ifort*) # Intel Fortran compiler
  7327. tmp_addflag=' -nofor_main' ;;
  7328. lf95*) # Lahey Fortran 8.1
  7329. whole_archive_flag_spec=
  7330. tmp_sharedflag='--shared' ;;
  7331. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7332. tmp_sharedflag='-qmkshrobj'
  7333. tmp_addflag= ;;
  7334. nvcc*) # Cuda Compiler Driver 2.2
  7335. 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'
  7336. compiler_needs_object=yes
  7337. ;;
  7338. esac
  7339. case `$CC -V 2>&1 | sed 5q` in
  7340. *Sun\ C*) # Sun C 5.9
  7341. 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'
  7342. compiler_needs_object=yes
  7343. tmp_sharedflag='-G' ;;
  7344. *Sun\ F*) # Sun Fortran 8.3
  7345. tmp_sharedflag='-G' ;;
  7346. esac
  7347. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7348. if test "x$supports_anon_versioning" = xyes; then
  7349. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7350. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7351. echo "local: *; };" >> $output_objdir/$libname.ver~
  7352. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7353. fi
  7354. case $cc_basename in
  7355. xlf* | bgf* | bgxlf* | mpixlf*)
  7356. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7357. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7358. hardcode_libdir_flag_spec=
  7359. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7360. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7361. if test "x$supports_anon_versioning" = xyes; then
  7362. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7363. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7364. echo "local: *; };" >> $output_objdir/$libname.ver~
  7365. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7366. fi
  7367. ;;
  7368. esac
  7369. else
  7370. ld_shlibs=no
  7371. fi
  7372. ;;
  7373. netbsd*)
  7374. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7375. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7376. wlarc=
  7377. else
  7378. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7379. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7380. fi
  7381. ;;
  7382. solaris*)
  7383. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7384. ld_shlibs=no
  7385. cat <<_LT_EOF 1>&2
  7386. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7387. *** create shared libraries on Solaris systems. Therefore, libtool
  7388. *** is disabling shared libraries support. We urge you to upgrade GNU
  7389. *** binutils to release 2.9.1 or newer. Another option is to modify
  7390. *** your PATH or compiler configuration so that the native linker is
  7391. *** used, and then restart.
  7392. _LT_EOF
  7393. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7394. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7395. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7396. else
  7397. ld_shlibs=no
  7398. fi
  7399. ;;
  7400. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7401. case `$LD -v 2>&1` in
  7402. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7403. ld_shlibs=no
  7404. cat <<_LT_EOF 1>&2
  7405. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7406. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7407. *** is disabling shared libraries support. We urge you to upgrade GNU
  7408. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7409. *** your PATH or compiler configuration so that the native linker is
  7410. *** used, and then restart.
  7411. _LT_EOF
  7412. ;;
  7413. *)
  7414. # For security reasons, it is highly recommended that you always
  7415. # use absolute paths for naming shared libraries, and exclude the
  7416. # DT_RUNPATH tag from executables and libraries. But doing so
  7417. # requires that you compile everything twice, which is a pain.
  7418. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7419. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7420. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7421. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7422. else
  7423. ld_shlibs=no
  7424. fi
  7425. ;;
  7426. esac
  7427. ;;
  7428. sunos4*)
  7429. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7430. wlarc=
  7431. hardcode_direct=yes
  7432. hardcode_shlibpath_var=no
  7433. ;;
  7434. *)
  7435. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7436. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7437. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7438. else
  7439. ld_shlibs=no
  7440. fi
  7441. ;;
  7442. esac
  7443. if test "$ld_shlibs" = no; then
  7444. runpath_var=
  7445. hardcode_libdir_flag_spec=
  7446. export_dynamic_flag_spec=
  7447. whole_archive_flag_spec=
  7448. fi
  7449. else
  7450. # PORTME fill in a description of your system's linker (not GNU ld)
  7451. case $host_os in
  7452. aix3*)
  7453. allow_undefined_flag=unsupported
  7454. always_export_symbols=yes
  7455. 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'
  7456. # Note: this linker hardcodes the directories in LIBPATH if there
  7457. # are no directories specified by -L.
  7458. hardcode_minus_L=yes
  7459. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7460. # Neither direct hardcoding nor static linking is supported with a
  7461. # broken collect2.
  7462. hardcode_direct=unsupported
  7463. fi
  7464. ;;
  7465. aix[4-9]*)
  7466. if test "$host_cpu" = ia64; then
  7467. # On IA64, the linker does run time linking by default, so we don't
  7468. # have to do anything special.
  7469. aix_use_runtimelinking=no
  7470. exp_sym_flag='-Bexport'
  7471. no_entry_flag=""
  7472. else
  7473. # If we're using GNU nm, then we don't want the "-C" option.
  7474. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7475. # Also, AIX nm treats weak defined symbols like other global
  7476. # defined symbols, whereas GNU nm marks them as "W".
  7477. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7478. 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'
  7479. else
  7480. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7481. fi
  7482. aix_use_runtimelinking=no
  7483. # Test if we are trying to use run time linking or normal
  7484. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7485. # need to do runtime linking.
  7486. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7487. for ld_flag in $LDFLAGS; do
  7488. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7489. aix_use_runtimelinking=yes
  7490. break
  7491. fi
  7492. done
  7493. ;;
  7494. esac
  7495. exp_sym_flag='-bexport'
  7496. no_entry_flag='-bnoentry'
  7497. fi
  7498. # When large executables or shared objects are built, AIX ld can
  7499. # have problems creating the table of contents. If linking a library
  7500. # or program results in "error TOC overflow" add -mminimal-toc to
  7501. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7502. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7503. archive_cmds=''
  7504. hardcode_direct=yes
  7505. hardcode_direct_absolute=yes
  7506. hardcode_libdir_separator=':'
  7507. link_all_deplibs=yes
  7508. file_list_spec='${wl}-f,'
  7509. if test "$GCC" = yes; then
  7510. case $host_os in aix4.[012]|aix4.[012].*)
  7511. # We only want to do this on AIX 4.2 and lower, the check
  7512. # below for broken collect2 doesn't work under 4.3+
  7513. collect2name=`${CC} -print-prog-name=collect2`
  7514. if test -f "$collect2name" &&
  7515. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7516. then
  7517. # We have reworked collect2
  7518. :
  7519. else
  7520. # We have old collect2
  7521. hardcode_direct=unsupported
  7522. # It fails to find uninstalled libraries when the uninstalled
  7523. # path is not listed in the libpath. Setting hardcode_minus_L
  7524. # to unsupported forces relinking
  7525. hardcode_minus_L=yes
  7526. hardcode_libdir_flag_spec='-L$libdir'
  7527. hardcode_libdir_separator=
  7528. fi
  7529. ;;
  7530. esac
  7531. shared_flag='-shared'
  7532. if test "$aix_use_runtimelinking" = yes; then
  7533. shared_flag="$shared_flag "'${wl}-G'
  7534. fi
  7535. else
  7536. # not using gcc
  7537. if test "$host_cpu" = ia64; then
  7538. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7539. # chokes on -Wl,-G. The following line is correct:
  7540. shared_flag='-G'
  7541. else
  7542. if test "$aix_use_runtimelinking" = yes; then
  7543. shared_flag='${wl}-G'
  7544. else
  7545. shared_flag='${wl}-bM:SRE'
  7546. fi
  7547. fi
  7548. fi
  7549. export_dynamic_flag_spec='${wl}-bexpall'
  7550. # It seems that -bexpall does not export symbols beginning with
  7551. # underscore (_), so it is better to generate a list of symbols to export.
  7552. always_export_symbols=yes
  7553. if test "$aix_use_runtimelinking" = yes; then
  7554. # Warning - without using the other runtime loading flags (-brtl),
  7555. # -berok will link without error, but may produce a broken library.
  7556. allow_undefined_flag='-berok'
  7557. # Determine the default libpath from the value encoded in an
  7558. # empty executable.
  7559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7560. /* end confdefs.h. */
  7561. int
  7562. main ()
  7563. {
  7564. ;
  7565. return 0;
  7566. }
  7567. _ACEOF
  7568. if ac_fn_c_try_link "$LINENO"; then :
  7569. lt_aix_libpath_sed='
  7570. /Import File Strings/,/^$/ {
  7571. /^0/ {
  7572. s/^0 *\(.*\)$/\1/
  7573. p
  7574. }
  7575. }'
  7576. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7577. # Check for a 64-bit object if we didn't find anything.
  7578. if test -z "$aix_libpath"; then
  7579. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7580. fi
  7581. fi
  7582. rm -f core conftest.err conftest.$ac_objext \
  7583. conftest$ac_exeext conftest.$ac_ext
  7584. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7585. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7586. 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"
  7587. else
  7588. if test "$host_cpu" = ia64; then
  7589. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7590. allow_undefined_flag="-z nodefs"
  7591. 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"
  7592. else
  7593. # Determine the default libpath from the value encoded in an
  7594. # empty executable.
  7595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7596. /* end confdefs.h. */
  7597. int
  7598. main ()
  7599. {
  7600. ;
  7601. return 0;
  7602. }
  7603. _ACEOF
  7604. if ac_fn_c_try_link "$LINENO"; then :
  7605. lt_aix_libpath_sed='
  7606. /Import File Strings/,/^$/ {
  7607. /^0/ {
  7608. s/^0 *\(.*\)$/\1/
  7609. p
  7610. }
  7611. }'
  7612. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7613. # Check for a 64-bit object if we didn't find anything.
  7614. if test -z "$aix_libpath"; then
  7615. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7616. fi
  7617. fi
  7618. rm -f core conftest.err conftest.$ac_objext \
  7619. conftest$ac_exeext conftest.$ac_ext
  7620. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7621. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7622. # Warning - without using the other run time loading flags,
  7623. # -berok will link without error, but may produce a broken library.
  7624. no_undefined_flag=' ${wl}-bernotok'
  7625. allow_undefined_flag=' ${wl}-berok'
  7626. if test "$with_gnu_ld" = yes; then
  7627. # We only use this code for GNU lds that support --whole-archive.
  7628. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7629. else
  7630. # Exported symbols can be pulled into shared objects from archives
  7631. whole_archive_flag_spec='$convenience'
  7632. fi
  7633. archive_cmds_need_lc=yes
  7634. # This is similar to how AIX traditionally builds its shared libraries.
  7635. 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'
  7636. fi
  7637. fi
  7638. ;;
  7639. amigaos*)
  7640. case $host_cpu in
  7641. powerpc)
  7642. # see comment about AmigaOS4 .so support
  7643. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7644. archive_expsym_cmds=''
  7645. ;;
  7646. m68k)
  7647. 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)'
  7648. hardcode_libdir_flag_spec='-L$libdir'
  7649. hardcode_minus_L=yes
  7650. ;;
  7651. esac
  7652. ;;
  7653. bsdi[45]*)
  7654. export_dynamic_flag_spec=-rdynamic
  7655. ;;
  7656. cygwin* | mingw* | pw32* | cegcc*)
  7657. # When not using gcc, we currently assume that we are using
  7658. # Microsoft Visual C++.
  7659. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7660. # no search path for DLLs.
  7661. hardcode_libdir_flag_spec=' '
  7662. allow_undefined_flag=unsupported
  7663. # Tell ltmain to make .lib files, not .a files.
  7664. libext=lib
  7665. # Tell ltmain to make .dll files, not .so files.
  7666. shrext_cmds=".dll"
  7667. # FIXME: Setting linknames here is a bad hack.
  7668. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7669. # The linker will automatically build a .lib file if we build a DLL.
  7670. old_archive_from_new_cmds='true'
  7671. # FIXME: Should let the user specify the lib program.
  7672. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7673. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7674. enable_shared_with_static_runtimes=yes
  7675. ;;
  7676. darwin* | rhapsody*)
  7677. archive_cmds_need_lc=no
  7678. hardcode_direct=no
  7679. hardcode_automatic=yes
  7680. hardcode_shlibpath_var=unsupported
  7681. if test "$lt_cv_ld_force_load" = "yes"; then
  7682. 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\"`'
  7683. else
  7684. whole_archive_flag_spec=''
  7685. fi
  7686. link_all_deplibs=yes
  7687. allow_undefined_flag="$_lt_dar_allow_undefined"
  7688. case $cc_basename in
  7689. ifort*) _lt_dar_can_shared=yes ;;
  7690. *) _lt_dar_can_shared=$GCC ;;
  7691. esac
  7692. if test "$_lt_dar_can_shared" = "yes"; then
  7693. output_verbose_link_cmd=func_echo_all
  7694. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7695. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7696. 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}"
  7697. 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}"
  7698. else
  7699. ld_shlibs=no
  7700. fi
  7701. ;;
  7702. dgux*)
  7703. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7704. hardcode_libdir_flag_spec='-L$libdir'
  7705. hardcode_shlibpath_var=no
  7706. ;;
  7707. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7708. # support. Future versions do this automatically, but an explicit c++rt0.o
  7709. # does not break anything, and helps significantly (at the cost of a little
  7710. # extra space).
  7711. freebsd2.2*)
  7712. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7713. hardcode_libdir_flag_spec='-R$libdir'
  7714. hardcode_direct=yes
  7715. hardcode_shlibpath_var=no
  7716. ;;
  7717. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7718. freebsd2.*)
  7719. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7720. hardcode_direct=yes
  7721. hardcode_minus_L=yes
  7722. hardcode_shlibpath_var=no
  7723. ;;
  7724. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7725. freebsd* | dragonfly*)
  7726. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7727. hardcode_libdir_flag_spec='-R$libdir'
  7728. hardcode_direct=yes
  7729. hardcode_shlibpath_var=no
  7730. ;;
  7731. hpux9*)
  7732. if test "$GCC" = yes; then
  7733. 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'
  7734. else
  7735. 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'
  7736. fi
  7737. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7738. hardcode_libdir_separator=:
  7739. hardcode_direct=yes
  7740. # hardcode_minus_L: Not really in the search PATH,
  7741. # but as the default location of the library.
  7742. hardcode_minus_L=yes
  7743. export_dynamic_flag_spec='${wl}-E'
  7744. ;;
  7745. hpux10*)
  7746. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7747. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7748. else
  7749. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7750. fi
  7751. if test "$with_gnu_ld" = no; then
  7752. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7753. hardcode_libdir_flag_spec_ld='+b $libdir'
  7754. hardcode_libdir_separator=:
  7755. hardcode_direct=yes
  7756. hardcode_direct_absolute=yes
  7757. export_dynamic_flag_spec='${wl}-E'
  7758. # hardcode_minus_L: Not really in the search PATH,
  7759. # but as the default location of the library.
  7760. hardcode_minus_L=yes
  7761. fi
  7762. ;;
  7763. hpux11*)
  7764. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7765. case $host_cpu in
  7766. hppa*64*)
  7767. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7768. ;;
  7769. ia64*)
  7770. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7771. ;;
  7772. *)
  7773. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7774. ;;
  7775. esac
  7776. else
  7777. case $host_cpu in
  7778. hppa*64*)
  7779. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7780. ;;
  7781. ia64*)
  7782. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7783. ;;
  7784. *)
  7785. # Older versions of the 11.00 compiler do not understand -b yet
  7786. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7788. $as_echo_n "checking if $CC understands -b... " >&6; }
  7789. if ${lt_cv_prog_compiler__b+:} false; then :
  7790. $as_echo_n "(cached) " >&6
  7791. else
  7792. lt_cv_prog_compiler__b=no
  7793. save_LDFLAGS="$LDFLAGS"
  7794. LDFLAGS="$LDFLAGS -b"
  7795. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7796. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7797. # The linker can only warn and ignore the option if not recognized
  7798. # So say no if there are warnings
  7799. if test -s conftest.err; then
  7800. # Append any errors to the config.log.
  7801. cat conftest.err 1>&5
  7802. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7803. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7804. if diff conftest.exp conftest.er2 >/dev/null; then
  7805. lt_cv_prog_compiler__b=yes
  7806. fi
  7807. else
  7808. lt_cv_prog_compiler__b=yes
  7809. fi
  7810. fi
  7811. $RM -r conftest*
  7812. LDFLAGS="$save_LDFLAGS"
  7813. fi
  7814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7815. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7816. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7817. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7818. else
  7819. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7820. fi
  7821. ;;
  7822. esac
  7823. fi
  7824. if test "$with_gnu_ld" = no; then
  7825. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7826. hardcode_libdir_separator=:
  7827. case $host_cpu in
  7828. hppa*64*|ia64*)
  7829. hardcode_direct=no
  7830. hardcode_shlibpath_var=no
  7831. ;;
  7832. *)
  7833. hardcode_direct=yes
  7834. hardcode_direct_absolute=yes
  7835. export_dynamic_flag_spec='${wl}-E'
  7836. # hardcode_minus_L: Not really in the search PATH,
  7837. # but as the default location of the library.
  7838. hardcode_minus_L=yes
  7839. ;;
  7840. esac
  7841. fi
  7842. ;;
  7843. irix5* | irix6* | nonstopux*)
  7844. if test "$GCC" = yes; then
  7845. 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'
  7846. # Try to use the -exported_symbol ld option, if it does not
  7847. # work, assume that -exports_file does not work either and
  7848. # implicitly export all symbols.
  7849. save_LDFLAGS="$LDFLAGS"
  7850. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7852. /* end confdefs.h. */
  7853. int foo(void) {}
  7854. _ACEOF
  7855. if ac_fn_c_try_link "$LINENO"; then :
  7856. 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'
  7857. fi
  7858. rm -f core conftest.err conftest.$ac_objext \
  7859. conftest$ac_exeext conftest.$ac_ext
  7860. LDFLAGS="$save_LDFLAGS"
  7861. else
  7862. 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'
  7863. 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'
  7864. fi
  7865. archive_cmds_need_lc='no'
  7866. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7867. hardcode_libdir_separator=:
  7868. inherit_rpath=yes
  7869. link_all_deplibs=yes
  7870. ;;
  7871. netbsd*)
  7872. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7873. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7874. else
  7875. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7876. fi
  7877. hardcode_libdir_flag_spec='-R$libdir'
  7878. hardcode_direct=yes
  7879. hardcode_shlibpath_var=no
  7880. ;;
  7881. newsos6)
  7882. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7883. hardcode_direct=yes
  7884. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7885. hardcode_libdir_separator=:
  7886. hardcode_shlibpath_var=no
  7887. ;;
  7888. *nto* | *qnx*)
  7889. ;;
  7890. openbsd*)
  7891. if test -f /usr/libexec/ld.so; then
  7892. hardcode_direct=yes
  7893. hardcode_shlibpath_var=no
  7894. hardcode_direct_absolute=yes
  7895. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7896. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7897. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7898. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7899. export_dynamic_flag_spec='${wl}-E'
  7900. else
  7901. case $host_os in
  7902. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7903. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7904. hardcode_libdir_flag_spec='-R$libdir'
  7905. ;;
  7906. *)
  7907. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7908. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7909. ;;
  7910. esac
  7911. fi
  7912. else
  7913. ld_shlibs=no
  7914. fi
  7915. ;;
  7916. os2*)
  7917. hardcode_libdir_flag_spec='-L$libdir'
  7918. hardcode_minus_L=yes
  7919. allow_undefined_flag=unsupported
  7920. 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'
  7921. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7922. ;;
  7923. osf3*)
  7924. if test "$GCC" = yes; then
  7925. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7926. 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'
  7927. else
  7928. allow_undefined_flag=' -expect_unresolved \*'
  7929. 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'
  7930. fi
  7931. archive_cmds_need_lc='no'
  7932. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7933. hardcode_libdir_separator=:
  7934. ;;
  7935. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7936. if test "$GCC" = yes; then
  7937. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7938. 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'
  7939. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7940. else
  7941. allow_undefined_flag=' -expect_unresolved \*'
  7942. 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'
  7943. 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~
  7944. $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'
  7945. # Both c and cxx compiler support -rpath directly
  7946. hardcode_libdir_flag_spec='-rpath $libdir'
  7947. fi
  7948. archive_cmds_need_lc='no'
  7949. hardcode_libdir_separator=:
  7950. ;;
  7951. solaris*)
  7952. no_undefined_flag=' -z defs'
  7953. if test "$GCC" = yes; then
  7954. wlarc='${wl}'
  7955. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7956. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7957. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7958. else
  7959. case `$CC -V 2>&1` in
  7960. *"Compilers 5.0"*)
  7961. wlarc=''
  7962. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7963. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7964. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7965. ;;
  7966. *)
  7967. wlarc='${wl}'
  7968. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7969. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7970. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7971. ;;
  7972. esac
  7973. fi
  7974. hardcode_libdir_flag_spec='-R$libdir'
  7975. hardcode_shlibpath_var=no
  7976. case $host_os in
  7977. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7978. *)
  7979. # The compiler driver will combine and reorder linker options,
  7980. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7981. # but is careful enough not to reorder.
  7982. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7983. if test "$GCC" = yes; then
  7984. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7985. else
  7986. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7987. fi
  7988. ;;
  7989. esac
  7990. link_all_deplibs=yes
  7991. ;;
  7992. sunos4*)
  7993. if test "x$host_vendor" = xsequent; then
  7994. # Use $CC to link under sequent, because it throws in some extra .o
  7995. # files that make .init and .fini sections work.
  7996. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7997. else
  7998. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7999. fi
  8000. hardcode_libdir_flag_spec='-L$libdir'
  8001. hardcode_direct=yes
  8002. hardcode_minus_L=yes
  8003. hardcode_shlibpath_var=no
  8004. ;;
  8005. sysv4)
  8006. case $host_vendor in
  8007. sni)
  8008. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8009. hardcode_direct=yes # is this really true???
  8010. ;;
  8011. siemens)
  8012. ## LD is ld it makes a PLAMLIB
  8013. ## CC just makes a GrossModule.
  8014. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8015. reload_cmds='$CC -r -o $output$reload_objs'
  8016. hardcode_direct=no
  8017. ;;
  8018. motorola)
  8019. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8020. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8021. ;;
  8022. esac
  8023. runpath_var='LD_RUN_PATH'
  8024. hardcode_shlibpath_var=no
  8025. ;;
  8026. sysv4.3*)
  8027. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8028. hardcode_shlibpath_var=no
  8029. export_dynamic_flag_spec='-Bexport'
  8030. ;;
  8031. sysv4*MP*)
  8032. if test -d /usr/nec; then
  8033. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8034. hardcode_shlibpath_var=no
  8035. runpath_var=LD_RUN_PATH
  8036. hardcode_runpath_var=yes
  8037. ld_shlibs=yes
  8038. fi
  8039. ;;
  8040. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8041. no_undefined_flag='${wl}-z,text'
  8042. archive_cmds_need_lc=no
  8043. hardcode_shlibpath_var=no
  8044. runpath_var='LD_RUN_PATH'
  8045. if test "$GCC" = yes; then
  8046. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8047. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8048. else
  8049. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8050. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8051. fi
  8052. ;;
  8053. sysv5* | sco3.2v5* | sco5v6*)
  8054. # Note: We can NOT use -z defs as we might desire, because we do not
  8055. # link with -lc, and that would cause any symbols used from libc to
  8056. # always be unresolved, which means just about no library would
  8057. # ever link correctly. If we're not using GNU ld we use -z text
  8058. # though, which does catch some bad symbols but isn't as heavy-handed
  8059. # as -z defs.
  8060. no_undefined_flag='${wl}-z,text'
  8061. allow_undefined_flag='${wl}-z,nodefs'
  8062. archive_cmds_need_lc=no
  8063. hardcode_shlibpath_var=no
  8064. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8065. hardcode_libdir_separator=':'
  8066. link_all_deplibs=yes
  8067. export_dynamic_flag_spec='${wl}-Bexport'
  8068. runpath_var='LD_RUN_PATH'
  8069. if test "$GCC" = yes; then
  8070. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8071. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8072. else
  8073. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8074. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8075. fi
  8076. ;;
  8077. uts4*)
  8078. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8079. hardcode_libdir_flag_spec='-L$libdir'
  8080. hardcode_shlibpath_var=no
  8081. ;;
  8082. *)
  8083. ld_shlibs=no
  8084. ;;
  8085. esac
  8086. if test x$host_vendor = xsni; then
  8087. case $host in
  8088. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8089. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8090. ;;
  8091. esac
  8092. fi
  8093. fi
  8094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8095. $as_echo "$ld_shlibs" >&6; }
  8096. test "$ld_shlibs" = no && can_build_shared=no
  8097. with_gnu_ld=$with_gnu_ld
  8098. #
  8099. # Do we need to explicitly link libc?
  8100. #
  8101. case "x$archive_cmds_need_lc" in
  8102. x|xyes)
  8103. # Assume -lc should be added
  8104. archive_cmds_need_lc=yes
  8105. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8106. case $archive_cmds in
  8107. *'~'*)
  8108. # FIXME: we may have to deal with multi-command sequences.
  8109. ;;
  8110. '$CC '*)
  8111. # Test whether the compiler implicitly links with -lc since on some
  8112. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8113. # to ld, don't add -lc before -lgcc.
  8114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8115. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8116. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8117. $as_echo_n "(cached) " >&6
  8118. else
  8119. $RM conftest*
  8120. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8121. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8122. (eval $ac_compile) 2>&5
  8123. ac_status=$?
  8124. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8125. test $ac_status = 0; } 2>conftest.err; then
  8126. soname=conftest
  8127. lib=conftest
  8128. libobjs=conftest.$ac_objext
  8129. deplibs=
  8130. wl=$lt_prog_compiler_wl
  8131. pic_flag=$lt_prog_compiler_pic
  8132. compiler_flags=-v
  8133. linker_flags=-v
  8134. verstring=
  8135. output_objdir=.
  8136. libname=conftest
  8137. lt_save_allow_undefined_flag=$allow_undefined_flag
  8138. allow_undefined_flag=
  8139. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8140. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8141. ac_status=$?
  8142. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8143. test $ac_status = 0; }
  8144. then
  8145. lt_cv_archive_cmds_need_lc=no
  8146. else
  8147. lt_cv_archive_cmds_need_lc=yes
  8148. fi
  8149. allow_undefined_flag=$lt_save_allow_undefined_flag
  8150. else
  8151. cat conftest.err 1>&5
  8152. fi
  8153. $RM conftest*
  8154. fi
  8155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8156. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8157. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8158. ;;
  8159. esac
  8160. fi
  8161. ;;
  8162. esac
  8163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8164. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8165. if test "$GCC" = yes; then
  8166. case $host_os in
  8167. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8168. *) lt_awk_arg="/^libraries:/" ;;
  8169. esac
  8170. case $host_os in
  8171. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8172. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8173. esac
  8174. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8175. case $lt_search_path_spec in
  8176. *\;*)
  8177. # if the path contains ";" then we assume it to be the separator
  8178. # otherwise default to the standard path separator (i.e. ":") - it is
  8179. # assumed that no part of a normal pathname contains ";" but that should
  8180. # okay in the real world where ";" in dirpaths is itself problematic.
  8181. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8182. ;;
  8183. *)
  8184. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8185. ;;
  8186. esac
  8187. # Ok, now we have the path, separated by spaces, we can step through it
  8188. # and add multilib dir if necessary.
  8189. lt_tmp_lt_search_path_spec=
  8190. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8191. for lt_sys_path in $lt_search_path_spec; do
  8192. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8193. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8194. else
  8195. test -d "$lt_sys_path" && \
  8196. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8197. fi
  8198. done
  8199. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8200. BEGIN {RS=" "; FS="/|\n";} {
  8201. lt_foo="";
  8202. lt_count=0;
  8203. for (lt_i = NF; lt_i > 0; lt_i--) {
  8204. if ($lt_i != "" && $lt_i != ".") {
  8205. if ($lt_i == "..") {
  8206. lt_count++;
  8207. } else {
  8208. if (lt_count == 0) {
  8209. lt_foo="/" $lt_i lt_foo;
  8210. } else {
  8211. lt_count--;
  8212. }
  8213. }
  8214. }
  8215. }
  8216. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8217. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8218. }'`
  8219. # AWK program above erroneously prepends '/' to C:/dos/paths
  8220. # for these hosts.
  8221. case $host_os in
  8222. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8223. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8224. esac
  8225. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8226. else
  8227. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8228. fi
  8229. library_names_spec=
  8230. libname_spec='lib$name'
  8231. soname_spec=
  8232. shrext_cmds=".so"
  8233. postinstall_cmds=
  8234. postuninstall_cmds=
  8235. finish_cmds=
  8236. finish_eval=
  8237. shlibpath_var=
  8238. shlibpath_overrides_runpath=unknown
  8239. version_type=none
  8240. dynamic_linker="$host_os ld.so"
  8241. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8242. need_lib_prefix=unknown
  8243. hardcode_into_libs=no
  8244. # when you set need_version to no, make sure it does not cause -set_version
  8245. # flags to be left without arguments
  8246. need_version=unknown
  8247. case $host_os in
  8248. aix3*)
  8249. version_type=linux
  8250. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8251. shlibpath_var=LIBPATH
  8252. # AIX 3 has no versioning support, so we append a major version to the name.
  8253. soname_spec='${libname}${release}${shared_ext}$major'
  8254. ;;
  8255. aix[4-9]*)
  8256. version_type=linux
  8257. need_lib_prefix=no
  8258. need_version=no
  8259. hardcode_into_libs=yes
  8260. if test "$host_cpu" = ia64; then
  8261. # AIX 5 supports IA64
  8262. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8263. shlibpath_var=LD_LIBRARY_PATH
  8264. else
  8265. # With GCC up to 2.95.x, collect2 would create an import file
  8266. # for dependence libraries. The import file would start with
  8267. # the line `#! .'. This would cause the generated library to
  8268. # depend on `.', always an invalid library. This was fixed in
  8269. # development snapshots of GCC prior to 3.0.
  8270. case $host_os in
  8271. aix4 | aix4.[01] | aix4.[01].*)
  8272. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8273. echo ' yes '
  8274. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8275. :
  8276. else
  8277. can_build_shared=no
  8278. fi
  8279. ;;
  8280. esac
  8281. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8282. # soname into executable. Probably we can add versioning support to
  8283. # collect2, so additional links can be useful in future.
  8284. if test "$aix_use_runtimelinking" = yes; then
  8285. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8286. # instead of lib<name>.a to let people know that these are not
  8287. # typical AIX shared libraries.
  8288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8289. else
  8290. # We preserve .a as extension for shared libraries through AIX4.2
  8291. # and later when we are not doing run time linking.
  8292. library_names_spec='${libname}${release}.a $libname.a'
  8293. soname_spec='${libname}${release}${shared_ext}$major'
  8294. fi
  8295. shlibpath_var=LIBPATH
  8296. fi
  8297. ;;
  8298. amigaos*)
  8299. case $host_cpu in
  8300. powerpc)
  8301. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8302. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8304. ;;
  8305. m68k)
  8306. library_names_spec='$libname.ixlibrary $libname.a'
  8307. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8308. 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'
  8309. ;;
  8310. esac
  8311. ;;
  8312. beos*)
  8313. library_names_spec='${libname}${shared_ext}'
  8314. dynamic_linker="$host_os ld.so"
  8315. shlibpath_var=LIBRARY_PATH
  8316. ;;
  8317. bsdi[45]*)
  8318. version_type=linux
  8319. need_version=no
  8320. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8321. soname_spec='${libname}${release}${shared_ext}$major'
  8322. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8323. shlibpath_var=LD_LIBRARY_PATH
  8324. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8325. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8326. # the default ld.so.conf also contains /usr/contrib/lib and
  8327. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8328. # libtool to hard-code these into programs
  8329. ;;
  8330. cygwin* | mingw* | pw32* | cegcc*)
  8331. version_type=windows
  8332. shrext_cmds=".dll"
  8333. need_version=no
  8334. need_lib_prefix=no
  8335. case $GCC,$host_os in
  8336. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8337. library_names_spec='$libname.dll.a'
  8338. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8339. postinstall_cmds='base_file=`basename \${file}`~
  8340. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8341. dldir=$destdir/`dirname \$dlpath`~
  8342. test -d \$dldir || mkdir -p \$dldir~
  8343. $install_prog $dir/$dlname \$dldir/$dlname~
  8344. chmod a+x \$dldir/$dlname~
  8345. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8346. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8347. fi'
  8348. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8349. dlpath=$dir/\$dldll~
  8350. $RM \$dlpath'
  8351. shlibpath_overrides_runpath=yes
  8352. case $host_os in
  8353. cygwin*)
  8354. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8355. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8356. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8357. ;;
  8358. mingw* | cegcc*)
  8359. # MinGW DLLs use traditional 'lib' prefix
  8360. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8361. ;;
  8362. pw32*)
  8363. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8364. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8365. ;;
  8366. esac
  8367. ;;
  8368. *)
  8369. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8370. ;;
  8371. esac
  8372. dynamic_linker='Win32 ld.exe'
  8373. # FIXME: first we should search . and the directory the executable is in
  8374. shlibpath_var=PATH
  8375. ;;
  8376. darwin* | rhapsody*)
  8377. dynamic_linker="$host_os dyld"
  8378. version_type=darwin
  8379. need_lib_prefix=no
  8380. need_version=no
  8381. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8382. soname_spec='${libname}${release}${major}$shared_ext'
  8383. shlibpath_overrides_runpath=yes
  8384. shlibpath_var=DYLD_LIBRARY_PATH
  8385. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8386. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8387. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8388. ;;
  8389. dgux*)
  8390. version_type=linux
  8391. need_lib_prefix=no
  8392. need_version=no
  8393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8394. soname_spec='${libname}${release}${shared_ext}$major'
  8395. shlibpath_var=LD_LIBRARY_PATH
  8396. ;;
  8397. freebsd* | dragonfly*)
  8398. # DragonFly does not have aout. When/if they implement a new
  8399. # versioning mechanism, adjust this.
  8400. if test -x /usr/bin/objformat; then
  8401. objformat=`/usr/bin/objformat`
  8402. else
  8403. case $host_os in
  8404. freebsd[23].*) objformat=aout ;;
  8405. *) objformat=elf ;;
  8406. esac
  8407. fi
  8408. version_type=freebsd-$objformat
  8409. case $version_type in
  8410. freebsd-elf*)
  8411. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8412. need_version=no
  8413. need_lib_prefix=no
  8414. ;;
  8415. freebsd-*)
  8416. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8417. need_version=yes
  8418. ;;
  8419. esac
  8420. shlibpath_var=LD_LIBRARY_PATH
  8421. case $host_os in
  8422. freebsd2.*)
  8423. shlibpath_overrides_runpath=yes
  8424. ;;
  8425. freebsd3.[01]* | freebsdelf3.[01]*)
  8426. shlibpath_overrides_runpath=yes
  8427. hardcode_into_libs=yes
  8428. ;;
  8429. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8430. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8431. shlibpath_overrides_runpath=no
  8432. hardcode_into_libs=yes
  8433. ;;
  8434. *) # from 4.6 on, and DragonFly
  8435. shlibpath_overrides_runpath=yes
  8436. hardcode_into_libs=yes
  8437. ;;
  8438. esac
  8439. ;;
  8440. haiku*)
  8441. version_type=linux
  8442. need_lib_prefix=no
  8443. need_version=no
  8444. dynamic_linker="$host_os runtime_loader"
  8445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8446. soname_spec='${libname}${release}${shared_ext}$major'
  8447. shlibpath_var=LIBRARY_PATH
  8448. shlibpath_overrides_runpath=yes
  8449. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8450. hardcode_into_libs=yes
  8451. ;;
  8452. hpux9* | hpux10* | hpux11*)
  8453. # Give a soname corresponding to the major version so that dld.sl refuses to
  8454. # link against other versions.
  8455. version_type=sunos
  8456. need_lib_prefix=no
  8457. need_version=no
  8458. case $host_cpu in
  8459. ia64*)
  8460. shrext_cmds='.so'
  8461. hardcode_into_libs=yes
  8462. dynamic_linker="$host_os dld.so"
  8463. shlibpath_var=LD_LIBRARY_PATH
  8464. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8466. soname_spec='${libname}${release}${shared_ext}$major'
  8467. if test "X$HPUX_IA64_MODE" = X32; then
  8468. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8469. else
  8470. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8471. fi
  8472. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8473. ;;
  8474. hppa*64*)
  8475. shrext_cmds='.sl'
  8476. hardcode_into_libs=yes
  8477. dynamic_linker="$host_os dld.sl"
  8478. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8479. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8481. soname_spec='${libname}${release}${shared_ext}$major'
  8482. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8483. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8484. ;;
  8485. *)
  8486. shrext_cmds='.sl'
  8487. dynamic_linker="$host_os dld.sl"
  8488. shlibpath_var=SHLIB_PATH
  8489. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8490. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8491. soname_spec='${libname}${release}${shared_ext}$major'
  8492. ;;
  8493. esac
  8494. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8495. postinstall_cmds='chmod 555 $lib'
  8496. # or fails outright, so override atomically:
  8497. install_override_mode=555
  8498. ;;
  8499. interix[3-9]*)
  8500. version_type=linux
  8501. need_lib_prefix=no
  8502. need_version=no
  8503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8504. soname_spec='${libname}${release}${shared_ext}$major'
  8505. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8506. shlibpath_var=LD_LIBRARY_PATH
  8507. shlibpath_overrides_runpath=no
  8508. hardcode_into_libs=yes
  8509. ;;
  8510. irix5* | irix6* | nonstopux*)
  8511. case $host_os in
  8512. nonstopux*) version_type=nonstopux ;;
  8513. *)
  8514. if test "$lt_cv_prog_gnu_ld" = yes; then
  8515. version_type=linux
  8516. else
  8517. version_type=irix
  8518. fi ;;
  8519. esac
  8520. need_lib_prefix=no
  8521. need_version=no
  8522. soname_spec='${libname}${release}${shared_ext}$major'
  8523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8524. case $host_os in
  8525. irix5* | nonstopux*)
  8526. libsuff= shlibsuff=
  8527. ;;
  8528. *)
  8529. case $LD in # libtool.m4 will add one of these switches to LD
  8530. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8531. libsuff= shlibsuff= libmagic=32-bit;;
  8532. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8533. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8534. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8535. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8536. *) libsuff= shlibsuff= libmagic=never-match;;
  8537. esac
  8538. ;;
  8539. esac
  8540. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8541. shlibpath_overrides_runpath=no
  8542. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8543. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8544. hardcode_into_libs=yes
  8545. ;;
  8546. # No shared lib support for Linux oldld, aout, or coff.
  8547. linux*oldld* | linux*aout* | linux*coff*)
  8548. dynamic_linker=no
  8549. ;;
  8550. # This must be Linux ELF.
  8551. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8552. version_type=linux
  8553. need_lib_prefix=no
  8554. need_version=no
  8555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8556. soname_spec='${libname}${release}${shared_ext}$major'
  8557. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8558. shlibpath_var=LD_LIBRARY_PATH
  8559. shlibpath_overrides_runpath=no
  8560. # Some binutils ld are patched to set DT_RUNPATH
  8561. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8562. $as_echo_n "(cached) " >&6
  8563. else
  8564. lt_cv_shlibpath_overrides_runpath=no
  8565. save_LDFLAGS=$LDFLAGS
  8566. save_libdir=$libdir
  8567. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8568. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8570. /* end confdefs.h. */
  8571. int
  8572. main ()
  8573. {
  8574. ;
  8575. return 0;
  8576. }
  8577. _ACEOF
  8578. if ac_fn_c_try_link "$LINENO"; then :
  8579. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8580. lt_cv_shlibpath_overrides_runpath=yes
  8581. fi
  8582. fi
  8583. rm -f core conftest.err conftest.$ac_objext \
  8584. conftest$ac_exeext conftest.$ac_ext
  8585. LDFLAGS=$save_LDFLAGS
  8586. libdir=$save_libdir
  8587. fi
  8588. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8589. # This implies no fast_install, which is unacceptable.
  8590. # Some rework will be needed to allow for fast_install
  8591. # before this can be enabled.
  8592. hardcode_into_libs=yes
  8593. # Append ld.so.conf contents to the search path
  8594. if test -f /etc/ld.so.conf; then
  8595. 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' ' '`
  8596. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8597. fi
  8598. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8599. # powerpc, because MkLinux only supported shared libraries with the
  8600. # GNU dynamic linker. Since this was broken with cross compilers,
  8601. # most powerpc-linux boxes support dynamic linking these days and
  8602. # people can always --disable-shared, the test was removed, and we
  8603. # assume the GNU/Linux dynamic linker is in use.
  8604. dynamic_linker='GNU/Linux ld.so'
  8605. ;;
  8606. netbsd*)
  8607. version_type=sunos
  8608. need_lib_prefix=no
  8609. need_version=no
  8610. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8612. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8613. dynamic_linker='NetBSD (a.out) ld.so'
  8614. else
  8615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8616. soname_spec='${libname}${release}${shared_ext}$major'
  8617. dynamic_linker='NetBSD ld.elf_so'
  8618. fi
  8619. shlibpath_var=LD_LIBRARY_PATH
  8620. shlibpath_overrides_runpath=yes
  8621. hardcode_into_libs=yes
  8622. ;;
  8623. newsos6)
  8624. version_type=linux
  8625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8626. shlibpath_var=LD_LIBRARY_PATH
  8627. shlibpath_overrides_runpath=yes
  8628. ;;
  8629. *nto* | *qnx*)
  8630. version_type=qnx
  8631. need_lib_prefix=no
  8632. need_version=no
  8633. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8634. soname_spec='${libname}${release}${shared_ext}$major'
  8635. shlibpath_var=LD_LIBRARY_PATH
  8636. shlibpath_overrides_runpath=no
  8637. hardcode_into_libs=yes
  8638. dynamic_linker='ldqnx.so'
  8639. ;;
  8640. openbsd*)
  8641. version_type=sunos
  8642. sys_lib_dlsearch_path_spec="/usr/lib"
  8643. need_lib_prefix=no
  8644. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8645. case $host_os in
  8646. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8647. *) need_version=no ;;
  8648. esac
  8649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8650. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8651. shlibpath_var=LD_LIBRARY_PATH
  8652. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8653. case $host_os in
  8654. openbsd2.[89] | openbsd2.[89].*)
  8655. shlibpath_overrides_runpath=no
  8656. ;;
  8657. *)
  8658. shlibpath_overrides_runpath=yes
  8659. ;;
  8660. esac
  8661. else
  8662. shlibpath_overrides_runpath=yes
  8663. fi
  8664. ;;
  8665. os2*)
  8666. libname_spec='$name'
  8667. shrext_cmds=".dll"
  8668. need_lib_prefix=no
  8669. library_names_spec='$libname${shared_ext} $libname.a'
  8670. dynamic_linker='OS/2 ld.exe'
  8671. shlibpath_var=LIBPATH
  8672. ;;
  8673. osf3* | osf4* | osf5*)
  8674. version_type=osf
  8675. need_lib_prefix=no
  8676. need_version=no
  8677. soname_spec='${libname}${release}${shared_ext}$major'
  8678. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8679. shlibpath_var=LD_LIBRARY_PATH
  8680. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8681. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8682. ;;
  8683. rdos*)
  8684. dynamic_linker=no
  8685. ;;
  8686. solaris*)
  8687. version_type=linux
  8688. need_lib_prefix=no
  8689. need_version=no
  8690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8691. soname_spec='${libname}${release}${shared_ext}$major'
  8692. shlibpath_var=LD_LIBRARY_PATH
  8693. shlibpath_overrides_runpath=yes
  8694. hardcode_into_libs=yes
  8695. # ldd complains unless libraries are executable
  8696. postinstall_cmds='chmod +x $lib'
  8697. ;;
  8698. sunos4*)
  8699. version_type=sunos
  8700. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8701. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8702. shlibpath_var=LD_LIBRARY_PATH
  8703. shlibpath_overrides_runpath=yes
  8704. if test "$with_gnu_ld" = yes; then
  8705. need_lib_prefix=no
  8706. fi
  8707. need_version=yes
  8708. ;;
  8709. sysv4 | sysv4.3*)
  8710. version_type=linux
  8711. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8712. soname_spec='${libname}${release}${shared_ext}$major'
  8713. shlibpath_var=LD_LIBRARY_PATH
  8714. case $host_vendor in
  8715. sni)
  8716. shlibpath_overrides_runpath=no
  8717. need_lib_prefix=no
  8718. runpath_var=LD_RUN_PATH
  8719. ;;
  8720. siemens)
  8721. need_lib_prefix=no
  8722. ;;
  8723. motorola)
  8724. need_lib_prefix=no
  8725. need_version=no
  8726. shlibpath_overrides_runpath=no
  8727. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8728. ;;
  8729. esac
  8730. ;;
  8731. sysv4*MP*)
  8732. if test -d /usr/nec ;then
  8733. version_type=linux
  8734. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8735. soname_spec='$libname${shared_ext}.$major'
  8736. shlibpath_var=LD_LIBRARY_PATH
  8737. fi
  8738. ;;
  8739. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8740. version_type=freebsd-elf
  8741. need_lib_prefix=no
  8742. need_version=no
  8743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8744. soname_spec='${libname}${release}${shared_ext}$major'
  8745. shlibpath_var=LD_LIBRARY_PATH
  8746. shlibpath_overrides_runpath=yes
  8747. hardcode_into_libs=yes
  8748. if test "$with_gnu_ld" = yes; then
  8749. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8750. else
  8751. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8752. case $host_os in
  8753. sco3.2v5*)
  8754. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8755. ;;
  8756. esac
  8757. fi
  8758. sys_lib_dlsearch_path_spec='/usr/lib'
  8759. ;;
  8760. tpf*)
  8761. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8762. version_type=linux
  8763. need_lib_prefix=no
  8764. need_version=no
  8765. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8766. shlibpath_var=LD_LIBRARY_PATH
  8767. shlibpath_overrides_runpath=no
  8768. hardcode_into_libs=yes
  8769. ;;
  8770. uts4*)
  8771. version_type=linux
  8772. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8773. soname_spec='${libname}${release}${shared_ext}$major'
  8774. shlibpath_var=LD_LIBRARY_PATH
  8775. ;;
  8776. *)
  8777. dynamic_linker=no
  8778. ;;
  8779. esac
  8780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8781. $as_echo "$dynamic_linker" >&6; }
  8782. test "$dynamic_linker" = no && can_build_shared=no
  8783. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8784. if test "$GCC" = yes; then
  8785. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8786. fi
  8787. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8788. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8789. fi
  8790. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8791. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8792. fi
  8793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8794. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8795. hardcode_action=
  8796. if test -n "$hardcode_libdir_flag_spec" ||
  8797. test -n "$runpath_var" ||
  8798. test "X$hardcode_automatic" = "Xyes" ; then
  8799. # We can hardcode non-existent directories.
  8800. if test "$hardcode_direct" != no &&
  8801. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8802. # have to relink, otherwise we might link with an installed library
  8803. # when we should be linking with a yet-to-be-installed one
  8804. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8805. test "$hardcode_minus_L" != no; then
  8806. # Linking always hardcodes the temporary library directory.
  8807. hardcode_action=relink
  8808. else
  8809. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8810. hardcode_action=immediate
  8811. fi
  8812. else
  8813. # We cannot hardcode anything, or else we can only hardcode existing
  8814. # directories.
  8815. hardcode_action=unsupported
  8816. fi
  8817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8818. $as_echo "$hardcode_action" >&6; }
  8819. if test "$hardcode_action" = relink ||
  8820. test "$inherit_rpath" = yes; then
  8821. # Fast installation is not supported
  8822. enable_fast_install=no
  8823. elif test "$shlibpath_overrides_runpath" = yes ||
  8824. test "$enable_shared" = no; then
  8825. # Fast installation is not necessary
  8826. enable_fast_install=needless
  8827. fi
  8828. if test "x$enable_dlopen" != xyes; then
  8829. enable_dlopen=unknown
  8830. enable_dlopen_self=unknown
  8831. enable_dlopen_self_static=unknown
  8832. else
  8833. lt_cv_dlopen=no
  8834. lt_cv_dlopen_libs=
  8835. case $host_os in
  8836. beos*)
  8837. lt_cv_dlopen="load_add_on"
  8838. lt_cv_dlopen_libs=
  8839. lt_cv_dlopen_self=yes
  8840. ;;
  8841. mingw* | pw32* | cegcc*)
  8842. lt_cv_dlopen="LoadLibrary"
  8843. lt_cv_dlopen_libs=
  8844. ;;
  8845. cygwin*)
  8846. lt_cv_dlopen="dlopen"
  8847. lt_cv_dlopen_libs=
  8848. ;;
  8849. darwin*)
  8850. # if libdl is installed we need to link against it
  8851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8852. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8853. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8854. $as_echo_n "(cached) " >&6
  8855. else
  8856. ac_check_lib_save_LIBS=$LIBS
  8857. LIBS="-ldl $LIBS"
  8858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8859. /* end confdefs.h. */
  8860. /* Override any GCC internal prototype to avoid an error.
  8861. Use char because int might match the return type of a GCC
  8862. builtin and then its argument prototype would still apply. */
  8863. #ifdef __cplusplus
  8864. extern "C"
  8865. #endif
  8866. char dlopen ();
  8867. int
  8868. main ()
  8869. {
  8870. return dlopen ();
  8871. ;
  8872. return 0;
  8873. }
  8874. _ACEOF
  8875. if ac_fn_c_try_link "$LINENO"; then :
  8876. ac_cv_lib_dl_dlopen=yes
  8877. else
  8878. ac_cv_lib_dl_dlopen=no
  8879. fi
  8880. rm -f core conftest.err conftest.$ac_objext \
  8881. conftest$ac_exeext conftest.$ac_ext
  8882. LIBS=$ac_check_lib_save_LIBS
  8883. fi
  8884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8885. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8886. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  8887. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8888. else
  8889. lt_cv_dlopen="dyld"
  8890. lt_cv_dlopen_libs=
  8891. lt_cv_dlopen_self=yes
  8892. fi
  8893. ;;
  8894. *)
  8895. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8896. if test "x$ac_cv_func_shl_load" = xyes; then :
  8897. lt_cv_dlopen="shl_load"
  8898. else
  8899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8900. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8901. if ${ac_cv_lib_dld_shl_load+:} false; then :
  8902. $as_echo_n "(cached) " >&6
  8903. else
  8904. ac_check_lib_save_LIBS=$LIBS
  8905. LIBS="-ldld $LIBS"
  8906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8907. /* end confdefs.h. */
  8908. /* Override any GCC internal prototype to avoid an error.
  8909. Use char because int might match the return type of a GCC
  8910. builtin and then its argument prototype would still apply. */
  8911. #ifdef __cplusplus
  8912. extern "C"
  8913. #endif
  8914. char shl_load ();
  8915. int
  8916. main ()
  8917. {
  8918. return shl_load ();
  8919. ;
  8920. return 0;
  8921. }
  8922. _ACEOF
  8923. if ac_fn_c_try_link "$LINENO"; then :
  8924. ac_cv_lib_dld_shl_load=yes
  8925. else
  8926. ac_cv_lib_dld_shl_load=no
  8927. fi
  8928. rm -f core conftest.err conftest.$ac_objext \
  8929. conftest$ac_exeext conftest.$ac_ext
  8930. LIBS=$ac_check_lib_save_LIBS
  8931. fi
  8932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8933. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8934. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  8935. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8936. else
  8937. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8938. if test "x$ac_cv_func_dlopen" = xyes; then :
  8939. lt_cv_dlopen="dlopen"
  8940. else
  8941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8942. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8943. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8944. $as_echo_n "(cached) " >&6
  8945. else
  8946. ac_check_lib_save_LIBS=$LIBS
  8947. LIBS="-ldl $LIBS"
  8948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8949. /* end confdefs.h. */
  8950. /* Override any GCC internal prototype to avoid an error.
  8951. Use char because int might match the return type of a GCC
  8952. builtin and then its argument prototype would still apply. */
  8953. #ifdef __cplusplus
  8954. extern "C"
  8955. #endif
  8956. char dlopen ();
  8957. int
  8958. main ()
  8959. {
  8960. return dlopen ();
  8961. ;
  8962. return 0;
  8963. }
  8964. _ACEOF
  8965. if ac_fn_c_try_link "$LINENO"; then :
  8966. ac_cv_lib_dl_dlopen=yes
  8967. else
  8968. ac_cv_lib_dl_dlopen=no
  8969. fi
  8970. rm -f core conftest.err conftest.$ac_objext \
  8971. conftest$ac_exeext conftest.$ac_ext
  8972. LIBS=$ac_check_lib_save_LIBS
  8973. fi
  8974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8975. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8976. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  8977. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8978. else
  8979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8980. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8981. if ${ac_cv_lib_svld_dlopen+:} false; then :
  8982. $as_echo_n "(cached) " >&6
  8983. else
  8984. ac_check_lib_save_LIBS=$LIBS
  8985. LIBS="-lsvld $LIBS"
  8986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8987. /* end confdefs.h. */
  8988. /* Override any GCC internal prototype to avoid an error.
  8989. Use char because int might match the return type of a GCC
  8990. builtin and then its argument prototype would still apply. */
  8991. #ifdef __cplusplus
  8992. extern "C"
  8993. #endif
  8994. char dlopen ();
  8995. int
  8996. main ()
  8997. {
  8998. return dlopen ();
  8999. ;
  9000. return 0;
  9001. }
  9002. _ACEOF
  9003. if ac_fn_c_try_link "$LINENO"; then :
  9004. ac_cv_lib_svld_dlopen=yes
  9005. else
  9006. ac_cv_lib_svld_dlopen=no
  9007. fi
  9008. rm -f core conftest.err conftest.$ac_objext \
  9009. conftest$ac_exeext conftest.$ac_ext
  9010. LIBS=$ac_check_lib_save_LIBS
  9011. fi
  9012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9013. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9014. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9015. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9016. else
  9017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9018. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9019. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9020. $as_echo_n "(cached) " >&6
  9021. else
  9022. ac_check_lib_save_LIBS=$LIBS
  9023. LIBS="-ldld $LIBS"
  9024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9025. /* end confdefs.h. */
  9026. /* Override any GCC internal prototype to avoid an error.
  9027. Use char because int might match the return type of a GCC
  9028. builtin and then its argument prototype would still apply. */
  9029. #ifdef __cplusplus
  9030. extern "C"
  9031. #endif
  9032. char dld_link ();
  9033. int
  9034. main ()
  9035. {
  9036. return dld_link ();
  9037. ;
  9038. return 0;
  9039. }
  9040. _ACEOF
  9041. if ac_fn_c_try_link "$LINENO"; then :
  9042. ac_cv_lib_dld_dld_link=yes
  9043. else
  9044. ac_cv_lib_dld_dld_link=no
  9045. fi
  9046. rm -f core conftest.err conftest.$ac_objext \
  9047. conftest$ac_exeext conftest.$ac_ext
  9048. LIBS=$ac_check_lib_save_LIBS
  9049. fi
  9050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9051. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9052. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9053. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9054. fi
  9055. fi
  9056. fi
  9057. fi
  9058. fi
  9059. fi
  9060. ;;
  9061. esac
  9062. if test "x$lt_cv_dlopen" != xno; then
  9063. enable_dlopen=yes
  9064. else
  9065. enable_dlopen=no
  9066. fi
  9067. case $lt_cv_dlopen in
  9068. dlopen)
  9069. save_CPPFLAGS="$CPPFLAGS"
  9070. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9071. save_LDFLAGS="$LDFLAGS"
  9072. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9073. save_LIBS="$LIBS"
  9074. LIBS="$lt_cv_dlopen_libs $LIBS"
  9075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9076. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9077. if ${lt_cv_dlopen_self+:} false; then :
  9078. $as_echo_n "(cached) " >&6
  9079. else
  9080. if test "$cross_compiling" = yes; then :
  9081. lt_cv_dlopen_self=cross
  9082. else
  9083. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9084. lt_status=$lt_dlunknown
  9085. cat > conftest.$ac_ext <<_LT_EOF
  9086. #line 10607 "configure"
  9087. #include "confdefs.h"
  9088. #if HAVE_DLFCN_H
  9089. #include <dlfcn.h>
  9090. #endif
  9091. #include <stdio.h>
  9092. #ifdef RTLD_GLOBAL
  9093. # define LT_DLGLOBAL RTLD_GLOBAL
  9094. #else
  9095. # ifdef DL_GLOBAL
  9096. # define LT_DLGLOBAL DL_GLOBAL
  9097. # else
  9098. # define LT_DLGLOBAL 0
  9099. # endif
  9100. #endif
  9101. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9102. find out it does not work in some platform. */
  9103. #ifndef LT_DLLAZY_OR_NOW
  9104. # ifdef RTLD_LAZY
  9105. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9106. # else
  9107. # ifdef DL_LAZY
  9108. # define LT_DLLAZY_OR_NOW DL_LAZY
  9109. # else
  9110. # ifdef RTLD_NOW
  9111. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9112. # else
  9113. # ifdef DL_NOW
  9114. # define LT_DLLAZY_OR_NOW DL_NOW
  9115. # else
  9116. # define LT_DLLAZY_OR_NOW 0
  9117. # endif
  9118. # endif
  9119. # endif
  9120. # endif
  9121. #endif
  9122. /* When -fvisbility=hidden is used, assume the code has been annotated
  9123. correspondingly for the symbols needed. */
  9124. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9125. void fnord () __attribute__((visibility("default")));
  9126. #endif
  9127. void fnord () { int i=42; }
  9128. int main ()
  9129. {
  9130. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9131. int status = $lt_dlunknown;
  9132. if (self)
  9133. {
  9134. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9135. else
  9136. {
  9137. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9138. else puts (dlerror ());
  9139. }
  9140. /* dlclose (self); */
  9141. }
  9142. else
  9143. puts (dlerror ());
  9144. return status;
  9145. }
  9146. _LT_EOF
  9147. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9148. (eval $ac_link) 2>&5
  9149. ac_status=$?
  9150. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9151. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9152. (./conftest; exit; ) >&5 2>/dev/null
  9153. lt_status=$?
  9154. case x$lt_status in
  9155. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9156. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9157. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9158. esac
  9159. else :
  9160. # compilation failed
  9161. lt_cv_dlopen_self=no
  9162. fi
  9163. fi
  9164. rm -fr conftest*
  9165. fi
  9166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9167. $as_echo "$lt_cv_dlopen_self" >&6; }
  9168. if test "x$lt_cv_dlopen_self" = xyes; then
  9169. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9171. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9172. if ${lt_cv_dlopen_self_static+:} false; then :
  9173. $as_echo_n "(cached) " >&6
  9174. else
  9175. if test "$cross_compiling" = yes; then :
  9176. lt_cv_dlopen_self_static=cross
  9177. else
  9178. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9179. lt_status=$lt_dlunknown
  9180. cat > conftest.$ac_ext <<_LT_EOF
  9181. #line 10713 "configure"
  9182. #include "confdefs.h"
  9183. #if HAVE_DLFCN_H
  9184. #include <dlfcn.h>
  9185. #endif
  9186. #include <stdio.h>
  9187. #ifdef RTLD_GLOBAL
  9188. # define LT_DLGLOBAL RTLD_GLOBAL
  9189. #else
  9190. # ifdef DL_GLOBAL
  9191. # define LT_DLGLOBAL DL_GLOBAL
  9192. # else
  9193. # define LT_DLGLOBAL 0
  9194. # endif
  9195. #endif
  9196. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9197. find out it does not work in some platform. */
  9198. #ifndef LT_DLLAZY_OR_NOW
  9199. # ifdef RTLD_LAZY
  9200. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9201. # else
  9202. # ifdef DL_LAZY
  9203. # define LT_DLLAZY_OR_NOW DL_LAZY
  9204. # else
  9205. # ifdef RTLD_NOW
  9206. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9207. # else
  9208. # ifdef DL_NOW
  9209. # define LT_DLLAZY_OR_NOW DL_NOW
  9210. # else
  9211. # define LT_DLLAZY_OR_NOW 0
  9212. # endif
  9213. # endif
  9214. # endif
  9215. # endif
  9216. #endif
  9217. /* When -fvisbility=hidden is used, assume the code has been annotated
  9218. correspondingly for the symbols needed. */
  9219. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9220. void fnord () __attribute__((visibility("default")));
  9221. #endif
  9222. void fnord () { int i=42; }
  9223. int main ()
  9224. {
  9225. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9226. int status = $lt_dlunknown;
  9227. if (self)
  9228. {
  9229. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9230. else
  9231. {
  9232. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9233. else puts (dlerror ());
  9234. }
  9235. /* dlclose (self); */
  9236. }
  9237. else
  9238. puts (dlerror ());
  9239. return status;
  9240. }
  9241. _LT_EOF
  9242. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9243. (eval $ac_link) 2>&5
  9244. ac_status=$?
  9245. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9246. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9247. (./conftest; exit; ) >&5 2>/dev/null
  9248. lt_status=$?
  9249. case x$lt_status in
  9250. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9251. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9252. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9253. esac
  9254. else :
  9255. # compilation failed
  9256. lt_cv_dlopen_self_static=no
  9257. fi
  9258. fi
  9259. rm -fr conftest*
  9260. fi
  9261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9262. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9263. fi
  9264. CPPFLAGS="$save_CPPFLAGS"
  9265. LDFLAGS="$save_LDFLAGS"
  9266. LIBS="$save_LIBS"
  9267. ;;
  9268. esac
  9269. case $lt_cv_dlopen_self in
  9270. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9271. *) enable_dlopen_self=unknown ;;
  9272. esac
  9273. case $lt_cv_dlopen_self_static in
  9274. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9275. *) enable_dlopen_self_static=unknown ;;
  9276. esac
  9277. fi
  9278. striplib=
  9279. old_striplib=
  9280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9281. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9282. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9283. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9284. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9286. $as_echo "yes" >&6; }
  9287. else
  9288. # FIXME - insert some real tests, host_os isn't really good enough
  9289. case $host_os in
  9290. darwin*)
  9291. if test -n "$STRIP" ; then
  9292. striplib="$STRIP -x"
  9293. old_striplib="$STRIP -S"
  9294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9295. $as_echo "yes" >&6; }
  9296. else
  9297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9298. $as_echo "no" >&6; }
  9299. fi
  9300. ;;
  9301. *)
  9302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9303. $as_echo "no" >&6; }
  9304. ;;
  9305. esac
  9306. fi
  9307. # Report which library types will actually be built
  9308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9309. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9311. $as_echo "$can_build_shared" >&6; }
  9312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9313. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9314. test "$can_build_shared" = "no" && enable_shared=no
  9315. # On AIX, shared libraries and static libraries use the same namespace, and
  9316. # are all built from PIC.
  9317. case $host_os in
  9318. aix3*)
  9319. test "$enable_shared" = yes && enable_static=no
  9320. if test -n "$RANLIB"; then
  9321. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9322. postinstall_cmds='$RANLIB $lib'
  9323. fi
  9324. ;;
  9325. aix[4-9]*)
  9326. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9327. test "$enable_shared" = yes && enable_static=no
  9328. fi
  9329. ;;
  9330. esac
  9331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9332. $as_echo "$enable_shared" >&6; }
  9333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9334. $as_echo_n "checking whether to build static libraries... " >&6; }
  9335. # Make sure either enable_shared or enable_static is yes.
  9336. test "$enable_shared" = yes || enable_static=yes
  9337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9338. $as_echo "$enable_static" >&6; }
  9339. fi
  9340. ac_ext=c
  9341. ac_cpp='$CPP $CPPFLAGS'
  9342. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9343. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9344. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9345. CC="$lt_save_CC"
  9346. ac_config_commands="$ac_config_commands libtool"
  9347. # Only expand once:
  9348. # The tests for host and target for $enable_largefile require
  9349. # canonical names.
  9350. # As the $enable_largefile decision depends on --enable-plugins we must set it
  9351. # even in directories otherwise not depending on the $plugins option.
  9352. maybe_plugins=no
  9353. for ac_header in dlfcn.h
  9354. do :
  9355. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9356. "
  9357. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  9358. cat >>confdefs.h <<_ACEOF
  9359. #define HAVE_DLFCN_H 1
  9360. _ACEOF
  9361. maybe_plugins=yes
  9362. fi
  9363. done
  9364. for ac_header in windows.h
  9365. do :
  9366. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  9367. "
  9368. if test "x$ac_cv_header_windows_h" = xyes; then :
  9369. cat >>confdefs.h <<_ACEOF
  9370. #define HAVE_WINDOWS_H 1
  9371. _ACEOF
  9372. maybe_plugins=yes
  9373. fi
  9374. done
  9375. # Check whether --enable-plugins was given.
  9376. if test "${enable_plugins+set}" = set; then :
  9377. enableval=$enable_plugins; case "${enableval}" in
  9378. no) plugins=no ;;
  9379. *) plugins=yes
  9380. if test "$maybe_plugins" != "yes" ; then
  9381. as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  9382. fi ;;
  9383. esac
  9384. else
  9385. plugins=$maybe_plugins
  9386. fi
  9387. if test "$plugins" = "yes"; then
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
  9389. $as_echo_n "checking for library containing dlsym... " >&6; }
  9390. if ${ac_cv_search_dlsym+:} false; then :
  9391. $as_echo_n "(cached) " >&6
  9392. else
  9393. ac_func_search_save_LIBS=$LIBS
  9394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9395. /* end confdefs.h. */
  9396. /* Override any GCC internal prototype to avoid an error.
  9397. Use char because int might match the return type of a GCC
  9398. builtin and then its argument prototype would still apply. */
  9399. #ifdef __cplusplus
  9400. extern "C"
  9401. #endif
  9402. char dlsym ();
  9403. int
  9404. main ()
  9405. {
  9406. return dlsym ();
  9407. ;
  9408. return 0;
  9409. }
  9410. _ACEOF
  9411. for ac_lib in '' dl; do
  9412. if test -z "$ac_lib"; then
  9413. ac_res="none required"
  9414. else
  9415. ac_res=-l$ac_lib
  9416. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9417. fi
  9418. if ac_fn_c_try_link "$LINENO"; then :
  9419. ac_cv_search_dlsym=$ac_res
  9420. fi
  9421. rm -f core conftest.err conftest.$ac_objext \
  9422. conftest$ac_exeext
  9423. if ${ac_cv_search_dlsym+:} false; then :
  9424. break
  9425. fi
  9426. done
  9427. if ${ac_cv_search_dlsym+:} false; then :
  9428. else
  9429. ac_cv_search_dlsym=no
  9430. fi
  9431. rm conftest.$ac_ext
  9432. LIBS=$ac_func_search_save_LIBS
  9433. fi
  9434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
  9435. $as_echo "$ac_cv_search_dlsym" >&6; }
  9436. ac_res=$ac_cv_search_dlsym
  9437. if test "$ac_res" != no; then :
  9438. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9439. fi
  9440. fi
  9441. case "${host}" in
  9442. sparc-*-solaris*|i?86-*-solaris*)
  9443. # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
  9444. # were mutually exclusive until Solaris 11.3. Without procfs support,
  9445. # the bfd/ elf module cannot provide certain routines such as
  9446. # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
  9447. # explicitly requested large-file support through the
  9448. # --enable-largefile switch, disable large-file support in favor of
  9449. # procfs support.
  9450. #
  9451. # Check if <sys/procfs.h> is incompatible with large-file support.
  9452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9453. /* end confdefs.h. */
  9454. #define _FILE_OFFSET_BITS 64
  9455. #define _STRUCTURED_PROC 1
  9456. #include <sys/procfs.h>
  9457. int
  9458. main ()
  9459. {
  9460. ;
  9461. return 0;
  9462. }
  9463. _ACEOF
  9464. if ac_fn_c_try_compile "$LINENO"; then :
  9465. acx_cv_procfs_lfs=yes
  9466. else
  9467. acx_cv_procfs_lfs=no
  9468. fi
  9469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9470. #
  9471. # Forcefully disable large-file support only if necessary, gdb is in
  9472. # tree and enabled.
  9473. if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
  9474. -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
  9475. : ${enable_largefile="no"}
  9476. if test "$plugins" = yes; then
  9477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  9478. plugin support disabled; require large-file support which is incompatible with GDB." >&5
  9479. $as_echo "$as_me: WARNING:
  9480. plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
  9481. plugins=no
  9482. fi
  9483. fi
  9484. #
  9485. # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
  9486. # benefit of g++ 9+ which predefines it on Solaris.
  9487. if test "$enable_largefile" = no; then
  9488. LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
  9489. fi
  9490. ;;
  9491. esac
  9492. # Check whether --enable-largefile was given.
  9493. if test "${enable_largefile+set}" = set; then :
  9494. enableval=$enable_largefile;
  9495. fi
  9496. if test "$enable_largefile" != no; then
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  9498. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  9499. if ${ac_cv_sys_largefile_CC+:} false; then :
  9500. $as_echo_n "(cached) " >&6
  9501. else
  9502. ac_cv_sys_largefile_CC=no
  9503. if test "$GCC" != yes; then
  9504. ac_save_CC=$CC
  9505. while :; do
  9506. # IRIX 6.2 and later do not support large files by default,
  9507. # so use the C compiler's -n32 option if that helps.
  9508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9509. /* end confdefs.h. */
  9510. #include <sys/types.h>
  9511. /* Check that off_t can represent 2**63 - 1 correctly.
  9512. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9513. since some C++ compilers masquerading as C compilers
  9514. incorrectly reject 9223372036854775807. */
  9515. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9516. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9517. && LARGE_OFF_T % 2147483647 == 1)
  9518. ? 1 : -1];
  9519. int
  9520. main ()
  9521. {
  9522. ;
  9523. return 0;
  9524. }
  9525. _ACEOF
  9526. if ac_fn_c_try_compile "$LINENO"; then :
  9527. break
  9528. fi
  9529. rm -f core conftest.err conftest.$ac_objext
  9530. CC="$CC -n32"
  9531. if ac_fn_c_try_compile "$LINENO"; then :
  9532. ac_cv_sys_largefile_CC=' -n32'; break
  9533. fi
  9534. rm -f core conftest.err conftest.$ac_objext
  9535. break
  9536. done
  9537. CC=$ac_save_CC
  9538. rm -f conftest.$ac_ext
  9539. fi
  9540. fi
  9541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  9542. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  9543. if test "$ac_cv_sys_largefile_CC" != no; then
  9544. CC=$CC$ac_cv_sys_largefile_CC
  9545. fi
  9546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9547. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  9548. if ${ac_cv_sys_file_offset_bits+:} false; then :
  9549. $as_echo_n "(cached) " >&6
  9550. else
  9551. while :; do
  9552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9553. /* end confdefs.h. */
  9554. #include <sys/types.h>
  9555. /* Check that off_t can represent 2**63 - 1 correctly.
  9556. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9557. since some C++ compilers masquerading as C compilers
  9558. incorrectly reject 9223372036854775807. */
  9559. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9560. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9561. && LARGE_OFF_T % 2147483647 == 1)
  9562. ? 1 : -1];
  9563. int
  9564. main ()
  9565. {
  9566. ;
  9567. return 0;
  9568. }
  9569. _ACEOF
  9570. if ac_fn_c_try_compile "$LINENO"; then :
  9571. ac_cv_sys_file_offset_bits=no; break
  9572. fi
  9573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9575. /* end confdefs.h. */
  9576. #define _FILE_OFFSET_BITS 64
  9577. #include <sys/types.h>
  9578. /* Check that off_t can represent 2**63 - 1 correctly.
  9579. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9580. since some C++ compilers masquerading as C compilers
  9581. incorrectly reject 9223372036854775807. */
  9582. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9583. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9584. && LARGE_OFF_T % 2147483647 == 1)
  9585. ? 1 : -1];
  9586. int
  9587. main ()
  9588. {
  9589. ;
  9590. return 0;
  9591. }
  9592. _ACEOF
  9593. if ac_fn_c_try_compile "$LINENO"; then :
  9594. ac_cv_sys_file_offset_bits=64; break
  9595. fi
  9596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9597. ac_cv_sys_file_offset_bits=unknown
  9598. break
  9599. done
  9600. fi
  9601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  9602. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  9603. case $ac_cv_sys_file_offset_bits in #(
  9604. no | unknown) ;;
  9605. *)
  9606. cat >>confdefs.h <<_ACEOF
  9607. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9608. _ACEOF
  9609. ;;
  9610. esac
  9611. rm -rf conftest*
  9612. if test $ac_cv_sys_file_offset_bits = unknown; then
  9613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  9614. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  9615. if ${ac_cv_sys_large_files+:} false; then :
  9616. $as_echo_n "(cached) " >&6
  9617. else
  9618. while :; do
  9619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9620. /* end confdefs.h. */
  9621. #include <sys/types.h>
  9622. /* Check that off_t can represent 2**63 - 1 correctly.
  9623. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9624. since some C++ compilers masquerading as C compilers
  9625. incorrectly reject 9223372036854775807. */
  9626. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9627. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9628. && LARGE_OFF_T % 2147483647 == 1)
  9629. ? 1 : -1];
  9630. int
  9631. main ()
  9632. {
  9633. ;
  9634. return 0;
  9635. }
  9636. _ACEOF
  9637. if ac_fn_c_try_compile "$LINENO"; then :
  9638. ac_cv_sys_large_files=no; break
  9639. fi
  9640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9642. /* end confdefs.h. */
  9643. #define _LARGE_FILES 1
  9644. #include <sys/types.h>
  9645. /* Check that off_t can represent 2**63 - 1 correctly.
  9646. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9647. since some C++ compilers masquerading as C compilers
  9648. incorrectly reject 9223372036854775807. */
  9649. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9650. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9651. && LARGE_OFF_T % 2147483647 == 1)
  9652. ? 1 : -1];
  9653. int
  9654. main ()
  9655. {
  9656. ;
  9657. return 0;
  9658. }
  9659. _ACEOF
  9660. if ac_fn_c_try_compile "$LINENO"; then :
  9661. ac_cv_sys_large_files=1; break
  9662. fi
  9663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9664. ac_cv_sys_large_files=unknown
  9665. break
  9666. done
  9667. fi
  9668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  9669. $as_echo "$ac_cv_sys_large_files" >&6; }
  9670. case $ac_cv_sys_large_files in #(
  9671. no | unknown) ;;
  9672. *)
  9673. cat >>confdefs.h <<_ACEOF
  9674. #define _LARGE_FILES $ac_cv_sys_large_files
  9675. _ACEOF
  9676. ;;
  9677. esac
  9678. rm -rf conftest*
  9679. fi
  9680. fi
  9681. # These are in addition to what is made available in bfd/.
  9682. for ac_header in sys/time.h
  9683. do :
  9684. ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  9685. if test "x$ac_cv_header_sys_time_h" = xyes; then :
  9686. cat >>confdefs.h <<_ACEOF
  9687. #define HAVE_SYS_TIME_H 1
  9688. _ACEOF
  9689. fi
  9690. done
  9691. for ac_func in setitimer
  9692. do :
  9693. ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
  9694. if test "x$ac_cv_func_setitimer" = xyes; then :
  9695. cat >>confdefs.h <<_ACEOF
  9696. #define HAVE_SETITIMER 1
  9697. _ACEOF
  9698. fi
  9699. done
  9700. ALL_LINGUAS="bg da de eo es fi fr ga hu id it ja ms nl pt_BR ro ru rw sr sv tr uk vi"
  9701. # If we haven't got the data from the intl directory,
  9702. # assume NLS is disabled.
  9703. USE_NLS=no
  9704. LIBINTL=
  9705. LIBINTL_DEP=
  9706. INCINTL=
  9707. XGETTEXT=
  9708. GMSGFMT=
  9709. POSUB=
  9710. if test -f ../intl/config.intl; then
  9711. . ../intl/config.intl
  9712. fi
  9713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  9714. $as_echo_n "checking whether NLS is requested... " >&6; }
  9715. if test x"$USE_NLS" != xyes; then
  9716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9717. $as_echo "no" >&6; }
  9718. else
  9719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9720. $as_echo "yes" >&6; }
  9721. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  9722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  9723. $as_echo_n "checking for catalogs to be installed... " >&6; }
  9724. # Look for .po and .gmo files in the source directory.
  9725. CATALOGS=
  9726. XLINGUAS=
  9727. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  9728. # If there aren't any .gmo files the shell will give us the
  9729. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  9730. # weeded out.
  9731. case "$cat" in *\**)
  9732. continue;;
  9733. esac
  9734. # The quadruple backslash is collapsed to a double backslash
  9735. # by the backticks, then collapsed again by the double quotes,
  9736. # leaving us with one backslash in the sed expression (right
  9737. # before the dot that mustn't act as a wildcard).
  9738. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  9739. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  9740. # The user is allowed to set LINGUAS to a list of languages to
  9741. # install catalogs for. If it's empty that means "all of them."
  9742. if test "x$LINGUAS" = x; then
  9743. CATALOGS="$CATALOGS $cat"
  9744. XLINGUAS="$XLINGUAS $lang"
  9745. else
  9746. case "$LINGUAS" in *$lang*)
  9747. CATALOGS="$CATALOGS $cat"
  9748. XLINGUAS="$XLINGUAS $lang"
  9749. ;;
  9750. esac
  9751. fi
  9752. done
  9753. LINGUAS="$XLINGUAS"
  9754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  9755. $as_echo "$LINGUAS" >&6; }
  9756. DATADIRNAME=share
  9757. INSTOBJEXT=.mo
  9758. GENCAT=gencat
  9759. CATOBJEXT=.gmo
  9760. fi
  9761. MKINSTALLDIRS=
  9762. if test -n "$ac_aux_dir"; then
  9763. case "$ac_aux_dir" in
  9764. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  9765. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  9766. esac
  9767. fi
  9768. if test -z "$MKINSTALLDIRS"; then
  9769. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  9770. fi
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  9772. $as_echo_n "checking whether NLS is requested... " >&6; }
  9773. # Check whether --enable-nls was given.
  9774. if test "${enable_nls+set}" = set; then :
  9775. enableval=$enable_nls; USE_NLS=$enableval
  9776. else
  9777. USE_NLS=yes
  9778. fi
  9779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  9780. $as_echo "$USE_NLS" >&6; }
  9781. # Prepare PATH_SEPARATOR.
  9782. # The user is always right.
  9783. if test "${PATH_SEPARATOR+set}" != set; then
  9784. echo "#! /bin/sh" >conf$$.sh
  9785. echo "exit 0" >>conf$$.sh
  9786. chmod +x conf$$.sh
  9787. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9788. PATH_SEPARATOR=';'
  9789. else
  9790. PATH_SEPARATOR=:
  9791. fi
  9792. rm -f conf$$.sh
  9793. fi
  9794. # Find out how to test for executable files. Don't use a zero-byte file,
  9795. # as systems may use methods other than mode bits to determine executability.
  9796. cat >conf$$.file <<_ASEOF
  9797. #! /bin/sh
  9798. exit 0
  9799. _ASEOF
  9800. chmod +x conf$$.file
  9801. if test -x conf$$.file >/dev/null 2>&1; then
  9802. ac_executable_p="test -x"
  9803. else
  9804. ac_executable_p="test -f"
  9805. fi
  9806. rm -f conf$$.file
  9807. # Extract the first word of "msgfmt", so it can be a program name with args.
  9808. set dummy msgfmt; ac_word=$2
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9810. $as_echo_n "checking for $ac_word... " >&6; }
  9811. if ${ac_cv_path_MSGFMT+:} false; then :
  9812. $as_echo_n "(cached) " >&6
  9813. else
  9814. case "$MSGFMT" in
  9815. [\\/]* | ?:[\\/]*)
  9816. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9817. ;;
  9818. *)
  9819. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9820. for ac_dir in $PATH; do
  9821. IFS="$ac_save_IFS"
  9822. test -z "$ac_dir" && ac_dir=.
  9823. for ac_exec_ext in '' $ac_executable_extensions; do
  9824. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9825. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  9826. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9827. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  9828. break 2
  9829. fi
  9830. fi
  9831. done
  9832. done
  9833. IFS="$ac_save_IFS"
  9834. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  9835. ;;
  9836. esac
  9837. fi
  9838. MSGFMT="$ac_cv_path_MSGFMT"
  9839. if test "$MSGFMT" != ":"; then
  9840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  9841. $as_echo "$MSGFMT" >&6; }
  9842. else
  9843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9844. $as_echo "no" >&6; }
  9845. fi
  9846. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9847. set dummy gmsgfmt; ac_word=$2
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9849. $as_echo_n "checking for $ac_word... " >&6; }
  9850. if ${ac_cv_path_GMSGFMT+:} false; then :
  9851. $as_echo_n "(cached) " >&6
  9852. else
  9853. case $GMSGFMT in
  9854. [\\/]* | ?:[\\/]*)
  9855. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9856. ;;
  9857. *)
  9858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9859. for as_dir in $PATH
  9860. do
  9861. IFS=$as_save_IFS
  9862. test -z "$as_dir" && as_dir=.
  9863. for ac_exec_ext in '' $ac_executable_extensions; do
  9864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9865. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9867. break 2
  9868. fi
  9869. done
  9870. done
  9871. IFS=$as_save_IFS
  9872. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9873. ;;
  9874. esac
  9875. fi
  9876. GMSGFMT=$ac_cv_path_GMSGFMT
  9877. if test -n "$GMSGFMT"; then
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  9879. $as_echo "$GMSGFMT" >&6; }
  9880. else
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9882. $as_echo "no" >&6; }
  9883. fi
  9884. # Prepare PATH_SEPARATOR.
  9885. # The user is always right.
  9886. if test "${PATH_SEPARATOR+set}" != set; then
  9887. echo "#! /bin/sh" >conf$$.sh
  9888. echo "exit 0" >>conf$$.sh
  9889. chmod +x conf$$.sh
  9890. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9891. PATH_SEPARATOR=';'
  9892. else
  9893. PATH_SEPARATOR=:
  9894. fi
  9895. rm -f conf$$.sh
  9896. fi
  9897. # Find out how to test for executable files. Don't use a zero-byte file,
  9898. # as systems may use methods other than mode bits to determine executability.
  9899. cat >conf$$.file <<_ASEOF
  9900. #! /bin/sh
  9901. exit 0
  9902. _ASEOF
  9903. chmod +x conf$$.file
  9904. if test -x conf$$.file >/dev/null 2>&1; then
  9905. ac_executable_p="test -x"
  9906. else
  9907. ac_executable_p="test -f"
  9908. fi
  9909. rm -f conf$$.file
  9910. # Extract the first word of "xgettext", so it can be a program name with args.
  9911. set dummy xgettext; ac_word=$2
  9912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9913. $as_echo_n "checking for $ac_word... " >&6; }
  9914. if ${ac_cv_path_XGETTEXT+:} false; then :
  9915. $as_echo_n "(cached) " >&6
  9916. else
  9917. case "$XGETTEXT" in
  9918. [\\/]* | ?:[\\/]*)
  9919. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9920. ;;
  9921. *)
  9922. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9923. for ac_dir in $PATH; do
  9924. IFS="$ac_save_IFS"
  9925. test -z "$ac_dir" && ac_dir=.
  9926. for ac_exec_ext in '' $ac_executable_extensions; do
  9927. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9928. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  9929. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9930. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  9931. break 2
  9932. fi
  9933. fi
  9934. done
  9935. done
  9936. IFS="$ac_save_IFS"
  9937. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9938. ;;
  9939. esac
  9940. fi
  9941. XGETTEXT="$ac_cv_path_XGETTEXT"
  9942. if test "$XGETTEXT" != ":"; then
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  9944. $as_echo "$XGETTEXT" >&6; }
  9945. else
  9946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9947. $as_echo "no" >&6; }
  9948. fi
  9949. rm -f messages.po
  9950. # Prepare PATH_SEPARATOR.
  9951. # The user is always right.
  9952. if test "${PATH_SEPARATOR+set}" != set; then
  9953. echo "#! /bin/sh" >conf$$.sh
  9954. echo "exit 0" >>conf$$.sh
  9955. chmod +x conf$$.sh
  9956. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9957. PATH_SEPARATOR=';'
  9958. else
  9959. PATH_SEPARATOR=:
  9960. fi
  9961. rm -f conf$$.sh
  9962. fi
  9963. # Find out how to test for executable files. Don't use a zero-byte file,
  9964. # as systems may use methods other than mode bits to determine executability.
  9965. cat >conf$$.file <<_ASEOF
  9966. #! /bin/sh
  9967. exit 0
  9968. _ASEOF
  9969. chmod +x conf$$.file
  9970. if test -x conf$$.file >/dev/null 2>&1; then
  9971. ac_executable_p="test -x"
  9972. else
  9973. ac_executable_p="test -f"
  9974. fi
  9975. rm -f conf$$.file
  9976. # Extract the first word of "msgmerge", so it can be a program name with args.
  9977. set dummy msgmerge; ac_word=$2
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9979. $as_echo_n "checking for $ac_word... " >&6; }
  9980. if ${ac_cv_path_MSGMERGE+:} false; then :
  9981. $as_echo_n "(cached) " >&6
  9982. else
  9983. case "$MSGMERGE" in
  9984. [\\/]* | ?:[\\/]*)
  9985. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9986. ;;
  9987. *)
  9988. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9989. for ac_dir in $PATH; do
  9990. IFS="$ac_save_IFS"
  9991. test -z "$ac_dir" && ac_dir=.
  9992. for ac_exec_ext in '' $ac_executable_extensions; do
  9993. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9994. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  9995. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9996. break 2
  9997. fi
  9998. fi
  9999. done
  10000. done
  10001. IFS="$ac_save_IFS"
  10002. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  10003. ;;
  10004. esac
  10005. fi
  10006. MSGMERGE="$ac_cv_path_MSGMERGE"
  10007. if test "$MSGMERGE" != ":"; then
  10008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  10009. $as_echo "$MSGMERGE" >&6; }
  10010. else
  10011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10012. $as_echo "no" >&6; }
  10013. fi
  10014. if test "$GMSGFMT" != ":"; then
  10015. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  10016. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10017. : ;
  10018. else
  10019. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  10020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  10021. $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  10022. GMSGFMT=":"
  10023. fi
  10024. fi
  10025. if test "$XGETTEXT" != ":"; then
  10026. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  10027. (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10028. : ;
  10029. else
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  10031. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  10032. XGETTEXT=":"
  10033. fi
  10034. rm -f messages.po
  10035. fi
  10036. ac_config_commands="$ac_config_commands default-1"
  10037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10038. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10039. # Check whether --enable-maintainer-mode was given.
  10040. if test "${enable_maintainer_mode+set}" = set; then :
  10041. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10042. else
  10043. USE_MAINTAINER_MODE=no
  10044. fi
  10045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10046. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10047. if test $USE_MAINTAINER_MODE = yes; then
  10048. MAINTAINER_MODE_TRUE=
  10049. MAINTAINER_MODE_FALSE='#'
  10050. else
  10051. MAINTAINER_MODE_TRUE='#'
  10052. MAINTAINER_MODE_FALSE=
  10053. fi
  10054. MAINT=$MAINTAINER_MODE_TRUE
  10055. if false; then
  10056. GENINSRC_NEVER_TRUE=
  10057. GENINSRC_NEVER_FALSE='#'
  10058. else
  10059. GENINSRC_NEVER_TRUE='#'
  10060. GENINSRC_NEVER_FALSE=
  10061. fi
  10062. for ac_header in sys/gmon_out.h
  10063. do :
  10064. ac_fn_c_check_header_mongrel "$LINENO" "sys/gmon_out.h" "ac_cv_header_sys_gmon_out_h" "$ac_includes_default"
  10065. if test "x$ac_cv_header_sys_gmon_out_h" = xyes; then :
  10066. cat >>confdefs.h <<_ACEOF
  10067. #define HAVE_SYS_GMON_OUT_H 1
  10068. _ACEOF
  10069. fi
  10070. done
  10071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
  10072. $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
  10073. if ${gprof_cv_decl_getopt_unistd_h+:} false; then :
  10074. $as_echo_n "(cached) " >&6
  10075. else
  10076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10077. /* end confdefs.h. */
  10078. #include <unistd.h>
  10079. int
  10080. main ()
  10081. {
  10082. extern int getopt (int, char *const*, const char *);
  10083. ;
  10084. return 0;
  10085. }
  10086. _ACEOF
  10087. if ac_fn_c_try_compile "$LINENO"; then :
  10088. gprof_cv_decl_getopt_unistd_h=yes
  10089. else
  10090. gprof_cv_decl_getopt_unistd_h=no
  10091. fi
  10092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10093. fi
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gprof_cv_decl_getopt_unistd_h" >&5
  10095. $as_echo "$gprof_cv_decl_getopt_unistd_h" >&6; }
  10096. if test $gprof_cv_decl_getopt_unistd_h = yes; then
  10097. $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
  10098. fi
  10099. # Some systems have fabs only in -lm, not in -lc.
  10100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
  10101. $as_echo_n "checking for library containing fabs... " >&6; }
  10102. if ${ac_cv_search_fabs+:} false; then :
  10103. $as_echo_n "(cached) " >&6
  10104. else
  10105. ac_func_search_save_LIBS=$LIBS
  10106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10107. /* end confdefs.h. */
  10108. /* Override any GCC internal prototype to avoid an error.
  10109. Use char because int might match the return type of a GCC
  10110. builtin and then its argument prototype would still apply. */
  10111. #ifdef __cplusplus
  10112. extern "C"
  10113. #endif
  10114. char fabs ();
  10115. int
  10116. main ()
  10117. {
  10118. return fabs ();
  10119. ;
  10120. return 0;
  10121. }
  10122. _ACEOF
  10123. for ac_lib in '' m; do
  10124. if test -z "$ac_lib"; then
  10125. ac_res="none required"
  10126. else
  10127. ac_res=-l$ac_lib
  10128. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10129. fi
  10130. if ac_fn_c_try_link "$LINENO"; then :
  10131. ac_cv_search_fabs=$ac_res
  10132. fi
  10133. rm -f core conftest.err conftest.$ac_objext \
  10134. conftest$ac_exeext
  10135. if ${ac_cv_search_fabs+:} false; then :
  10136. break
  10137. fi
  10138. done
  10139. if ${ac_cv_search_fabs+:} false; then :
  10140. else
  10141. ac_cv_search_fabs=no
  10142. fi
  10143. rm conftest.$ac_ext
  10144. LIBS=$ac_func_search_save_LIBS
  10145. fi
  10146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
  10147. $as_echo "$ac_cv_search_fabs" >&6; }
  10148. ac_res=$ac_cv_search_fabs
  10149. if test "$ac_res" != no; then :
  10150. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10151. fi
  10152. # Set the 'development' global.
  10153. . $srcdir/../bfd/development.sh
  10154. # Set acp_cpp_for_build variable
  10155. ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
  10156. # Default set of GCC warnings to enable.
  10157. GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  10158. GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  10159. # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
  10160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10161. /* end confdefs.h. */
  10162. __GNUC__
  10163. _ACEOF
  10164. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10165. $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
  10166. else
  10167. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
  10168. fi
  10169. rm -f conftest*
  10170. # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
  10171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10172. /* end confdefs.h. */
  10173. __GNUC__
  10174. _ACEOF
  10175. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10176. $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
  10177. else
  10178. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
  10179. fi
  10180. rm -f conftest*
  10181. # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
  10182. WARN_WRITE_STRINGS=""
  10183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10184. /* end confdefs.h. */
  10185. __GNUC__
  10186. _ACEOF
  10187. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10188. $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
  10189. else
  10190. WARN_WRITE_STRINGS="-Wwrite-strings"
  10191. fi
  10192. rm -f conftest*
  10193. # Verify CC_FOR_BUILD to be compatible with warning flags
  10194. # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
  10195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10196. /* end confdefs.h. */
  10197. __GNUC__
  10198. _ACEOF
  10199. if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
  10200. $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
  10201. else
  10202. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
  10203. fi
  10204. rm -f conftest*
  10205. # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
  10206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10207. /* end confdefs.h. */
  10208. __GNUC__
  10209. _ACEOF
  10210. if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
  10211. $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
  10212. else
  10213. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
  10214. fi
  10215. rm -f conftest*
  10216. # Check whether --enable-werror was given.
  10217. if test "${enable_werror+set}" = set; then :
  10218. enableval=$enable_werror; case "${enableval}" in
  10219. yes | y) ERROR_ON_WARNING="yes" ;;
  10220. no | n) ERROR_ON_WARNING="no" ;;
  10221. *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  10222. esac
  10223. fi
  10224. # Disable -Wformat by default when using gcc on mingw
  10225. case "${host}" in
  10226. *-*-mingw32*)
  10227. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  10228. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
  10229. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
  10230. fi
  10231. ;;
  10232. *) ;;
  10233. esac
  10234. # Enable -Werror by default when using gcc. Turn it off for releases.
  10235. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
  10236. ERROR_ON_WARNING=yes
  10237. fi
  10238. NO_WERROR=
  10239. if test "${ERROR_ON_WARNING}" = yes ; then
  10240. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
  10241. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
  10242. NO_WERROR="-Wno-error"
  10243. fi
  10244. if test "${GCC}" = yes ; then
  10245. WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  10246. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
  10247. fi
  10248. # Check whether --enable-build-warnings was given.
  10249. if test "${enable_build_warnings+set}" = set; then :
  10250. enableval=$enable_build_warnings; case "${enableval}" in
  10251. yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  10252. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
  10253. no) if test "${GCC}" = yes ; then
  10254. WARN_CFLAGS="-w"
  10255. WARN_CFLAGS_FOR_BUILD="-w"
  10256. fi;;
  10257. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10258. WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
  10259. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
  10260. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10261. WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
  10262. WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
  10263. *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
  10264. WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10265. esac
  10266. fi
  10267. if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
  10268. echo "Setting warning flags = $WARN_CFLAGS" 6>&1
  10269. fi
  10270. ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
  10271. cat >confcache <<\_ACEOF
  10272. # This file is a shell script that caches the results of configure
  10273. # tests run on this system so they can be shared between configure
  10274. # scripts and configure runs, see configure's option --config-cache.
  10275. # It is not useful on other systems. If it contains results you don't
  10276. # want to keep, you may remove or edit it.
  10277. #
  10278. # config.status only pays attention to the cache file if you give it
  10279. # the --recheck option to rerun configure.
  10280. #
  10281. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10282. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10283. # following values.
  10284. _ACEOF
  10285. # The following way of writing the cache mishandles newlines in values,
  10286. # but we know of no workaround that is simple, portable, and efficient.
  10287. # So, we kill variables containing newlines.
  10288. # Ultrix sh set writes to stderr and can't be redirected directly,
  10289. # and sets the high bit in the cache file unless we assign to the vars.
  10290. (
  10291. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10292. eval ac_val=\$$ac_var
  10293. case $ac_val in #(
  10294. *${as_nl}*)
  10295. case $ac_var in #(
  10296. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10297. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10298. esac
  10299. case $ac_var in #(
  10300. _ | IFS | as_nl) ;; #(
  10301. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10302. *) { eval $ac_var=; unset $ac_var;} ;;
  10303. esac ;;
  10304. esac
  10305. done
  10306. (set) 2>&1 |
  10307. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10308. *${as_nl}ac_space=\ *)
  10309. # `set' does not quote correctly, so add quotes: double-quote
  10310. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10311. sed -n \
  10312. "s/'/'\\\\''/g;
  10313. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10314. ;; #(
  10315. *)
  10316. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10317. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10318. ;;
  10319. esac |
  10320. sort
  10321. ) |
  10322. sed '
  10323. /^ac_cv_env_/b end
  10324. t clear
  10325. :clear
  10326. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10327. t end
  10328. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10329. :end' >>confcache
  10330. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10331. if test -w "$cache_file"; then
  10332. if test "x$cache_file" != "x/dev/null"; then
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10334. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10335. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10336. cat confcache >"$cache_file"
  10337. else
  10338. case $cache_file in #(
  10339. */* | ?:*)
  10340. mv -f confcache "$cache_file"$$ &&
  10341. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10342. *)
  10343. mv -f confcache "$cache_file" ;;
  10344. esac
  10345. fi
  10346. fi
  10347. else
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10349. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10350. fi
  10351. fi
  10352. rm -f confcache
  10353. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10354. # Let make expand exec_prefix.
  10355. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10356. DEFS=-DHAVE_CONFIG_H
  10357. ac_libobjs=
  10358. ac_ltlibobjs=
  10359. U=
  10360. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10361. # 1. Remove the extension, and $U if already installed.
  10362. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10363. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10364. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10365. # will be set to the directory where LIBOBJS objects are built.
  10366. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10367. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10368. done
  10369. LIBOBJS=$ac_libobjs
  10370. LTLIBOBJS=$ac_ltlibobjs
  10371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  10372. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  10373. if test -n "$am_sleep_pid"; then
  10374. # Hide warnings about reused PIDs.
  10375. wait $am_sleep_pid 2>/dev/null
  10376. fi
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  10378. $as_echo "done" >&6; }
  10379. if test -n "$EXEEXT"; then
  10380. am__EXEEXT_TRUE=
  10381. am__EXEEXT_FALSE='#'
  10382. else
  10383. am__EXEEXT_TRUE='#'
  10384. am__EXEEXT_FALSE=
  10385. fi
  10386. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10387. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10388. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10389. fi
  10390. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10391. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10392. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10393. fi
  10394. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  10395. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  10396. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10397. fi
  10398. if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
  10399. as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
  10400. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10401. fi
  10402. : "${CONFIG_STATUS=./config.status}"
  10403. ac_write_fail=0
  10404. ac_clean_files_save=$ac_clean_files
  10405. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10406. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10407. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10408. as_write_fail=0
  10409. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10410. #! $SHELL
  10411. # Generated by $as_me.
  10412. # Run this file to recreate the current configuration.
  10413. # Compiler output produced by configure, useful for debugging
  10414. # configure, is in config.log if it exists.
  10415. debug=false
  10416. ac_cs_recheck=false
  10417. ac_cs_silent=false
  10418. SHELL=\${CONFIG_SHELL-$SHELL}
  10419. export SHELL
  10420. _ASEOF
  10421. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10422. ## -------------------- ##
  10423. ## M4sh Initialization. ##
  10424. ## -------------------- ##
  10425. # Be more Bourne compatible
  10426. DUALCASE=1; export DUALCASE # for MKS sh
  10427. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10428. emulate sh
  10429. NULLCMD=:
  10430. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10431. # is contrary to our usage. Disable this feature.
  10432. alias -g '${1+"$@"}'='"$@"'
  10433. setopt NO_GLOB_SUBST
  10434. else
  10435. case `(set -o) 2>/dev/null` in #(
  10436. *posix*) :
  10437. set -o posix ;; #(
  10438. *) :
  10439. ;;
  10440. esac
  10441. fi
  10442. as_nl='
  10443. '
  10444. export as_nl
  10445. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10446. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10447. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10448. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10449. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10450. # but without wasting forks for bash or zsh.
  10451. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10452. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10453. as_echo='print -r --'
  10454. as_echo_n='print -rn --'
  10455. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10456. as_echo='printf %s\n'
  10457. as_echo_n='printf %s'
  10458. else
  10459. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10460. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10461. as_echo_n='/usr/ucb/echo -n'
  10462. else
  10463. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10464. as_echo_n_body='eval
  10465. arg=$1;
  10466. case $arg in #(
  10467. *"$as_nl"*)
  10468. expr "X$arg" : "X\\(.*\\)$as_nl";
  10469. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10470. esac;
  10471. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10472. '
  10473. export as_echo_n_body
  10474. as_echo_n='sh -c $as_echo_n_body as_echo'
  10475. fi
  10476. export as_echo_body
  10477. as_echo='sh -c $as_echo_body as_echo'
  10478. fi
  10479. # The user is always right.
  10480. if test "${PATH_SEPARATOR+set}" != set; then
  10481. PATH_SEPARATOR=:
  10482. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10483. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10484. PATH_SEPARATOR=';'
  10485. }
  10486. fi
  10487. # IFS
  10488. # We need space, tab and new line, in precisely that order. Quoting is
  10489. # there to prevent editors from complaining about space-tab.
  10490. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10491. # splitting by setting IFS to empty value.)
  10492. IFS=" "" $as_nl"
  10493. # Find who we are. Look in the path if we contain no directory separator.
  10494. as_myself=
  10495. case $0 in #((
  10496. *[\\/]* ) as_myself=$0 ;;
  10497. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10498. for as_dir in $PATH
  10499. do
  10500. IFS=$as_save_IFS
  10501. test -z "$as_dir" && as_dir=.
  10502. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10503. done
  10504. IFS=$as_save_IFS
  10505. ;;
  10506. esac
  10507. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10508. # in which case we are not to be found in the path.
  10509. if test "x$as_myself" = x; then
  10510. as_myself=$0
  10511. fi
  10512. if test ! -f "$as_myself"; then
  10513. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10514. exit 1
  10515. fi
  10516. # Unset variables that we do not need and which cause bugs (e.g. in
  10517. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10518. # suppresses any "Segmentation fault" message there. '((' could
  10519. # trigger a bug in pdksh 5.2.14.
  10520. for as_var in BASH_ENV ENV MAIL MAILPATH
  10521. do eval test x\${$as_var+set} = xset \
  10522. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10523. done
  10524. PS1='$ '
  10525. PS2='> '
  10526. PS4='+ '
  10527. # NLS nuisances.
  10528. LC_ALL=C
  10529. export LC_ALL
  10530. LANGUAGE=C
  10531. export LANGUAGE
  10532. # CDPATH.
  10533. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10534. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10535. # ----------------------------------------
  10536. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10537. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10538. # script with STATUS, using 1 if that was 0.
  10539. as_fn_error ()
  10540. {
  10541. as_status=$1; test $as_status -eq 0 && as_status=1
  10542. if test "$4"; then
  10543. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10544. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10545. fi
  10546. $as_echo "$as_me: error: $2" >&2
  10547. as_fn_exit $as_status
  10548. } # as_fn_error
  10549. # as_fn_set_status STATUS
  10550. # -----------------------
  10551. # Set $? to STATUS, without forking.
  10552. as_fn_set_status ()
  10553. {
  10554. return $1
  10555. } # as_fn_set_status
  10556. # as_fn_exit STATUS
  10557. # -----------------
  10558. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10559. as_fn_exit ()
  10560. {
  10561. set +e
  10562. as_fn_set_status $1
  10563. exit $1
  10564. } # as_fn_exit
  10565. # as_fn_unset VAR
  10566. # ---------------
  10567. # Portably unset VAR.
  10568. as_fn_unset ()
  10569. {
  10570. { eval $1=; unset $1;}
  10571. }
  10572. as_unset=as_fn_unset
  10573. # as_fn_append VAR VALUE
  10574. # ----------------------
  10575. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10576. # advantage of any shell optimizations that allow amortized linear growth over
  10577. # repeated appends, instead of the typical quadratic growth present in naive
  10578. # implementations.
  10579. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10580. eval 'as_fn_append ()
  10581. {
  10582. eval $1+=\$2
  10583. }'
  10584. else
  10585. as_fn_append ()
  10586. {
  10587. eval $1=\$$1\$2
  10588. }
  10589. fi # as_fn_append
  10590. # as_fn_arith ARG...
  10591. # ------------------
  10592. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10593. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10594. # must be portable across $(()) and expr.
  10595. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10596. eval 'as_fn_arith ()
  10597. {
  10598. as_val=$(( $* ))
  10599. }'
  10600. else
  10601. as_fn_arith ()
  10602. {
  10603. as_val=`expr "$@" || test $? -eq 1`
  10604. }
  10605. fi # as_fn_arith
  10606. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10607. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10608. as_expr=expr
  10609. else
  10610. as_expr=false
  10611. fi
  10612. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10613. as_basename=basename
  10614. else
  10615. as_basename=false
  10616. fi
  10617. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10618. as_dirname=dirname
  10619. else
  10620. as_dirname=false
  10621. fi
  10622. as_me=`$as_basename -- "$0" ||
  10623. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10624. X"$0" : 'X\(//\)$' \| \
  10625. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10626. $as_echo X/"$0" |
  10627. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10628. s//\1/
  10629. q
  10630. }
  10631. /^X\/\(\/\/\)$/{
  10632. s//\1/
  10633. q
  10634. }
  10635. /^X\/\(\/\).*/{
  10636. s//\1/
  10637. q
  10638. }
  10639. s/.*/./; q'`
  10640. # Avoid depending upon Character Ranges.
  10641. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10642. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10643. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10644. as_cr_digits='0123456789'
  10645. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10646. ECHO_C= ECHO_N= ECHO_T=
  10647. case `echo -n x` in #(((((
  10648. -n*)
  10649. case `echo 'xy\c'` in
  10650. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10651. xy) ECHO_C='\c';;
  10652. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10653. ECHO_T=' ';;
  10654. esac;;
  10655. *)
  10656. ECHO_N='-n';;
  10657. esac
  10658. rm -f conf$$ conf$$.exe conf$$.file
  10659. if test -d conf$$.dir; then
  10660. rm -f conf$$.dir/conf$$.file
  10661. else
  10662. rm -f conf$$.dir
  10663. mkdir conf$$.dir 2>/dev/null
  10664. fi
  10665. if (echo >conf$$.file) 2>/dev/null; then
  10666. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10667. as_ln_s='ln -s'
  10668. # ... but there are two gotchas:
  10669. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10670. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10671. # In both cases, we have to default to `cp -pR'.
  10672. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10673. as_ln_s='cp -pR'
  10674. elif ln conf$$.file conf$$ 2>/dev/null; then
  10675. as_ln_s=ln
  10676. else
  10677. as_ln_s='cp -pR'
  10678. fi
  10679. else
  10680. as_ln_s='cp -pR'
  10681. fi
  10682. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10683. rmdir conf$$.dir 2>/dev/null
  10684. # as_fn_mkdir_p
  10685. # -------------
  10686. # Create "$as_dir" as a directory, including parents if necessary.
  10687. as_fn_mkdir_p ()
  10688. {
  10689. case $as_dir in #(
  10690. -*) as_dir=./$as_dir;;
  10691. esac
  10692. test -d "$as_dir" || eval $as_mkdir_p || {
  10693. as_dirs=
  10694. while :; do
  10695. case $as_dir in #(
  10696. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10697. *) as_qdir=$as_dir;;
  10698. esac
  10699. as_dirs="'$as_qdir' $as_dirs"
  10700. as_dir=`$as_dirname -- "$as_dir" ||
  10701. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10702. X"$as_dir" : 'X\(//\)[^/]' \| \
  10703. X"$as_dir" : 'X\(//\)$' \| \
  10704. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10705. $as_echo X"$as_dir" |
  10706. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10707. s//\1/
  10708. q
  10709. }
  10710. /^X\(\/\/\)[^/].*/{
  10711. s//\1/
  10712. q
  10713. }
  10714. /^X\(\/\/\)$/{
  10715. s//\1/
  10716. q
  10717. }
  10718. /^X\(\/\).*/{
  10719. s//\1/
  10720. q
  10721. }
  10722. s/.*/./; q'`
  10723. test -d "$as_dir" && break
  10724. done
  10725. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10726. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10727. } # as_fn_mkdir_p
  10728. if mkdir -p . 2>/dev/null; then
  10729. as_mkdir_p='mkdir -p "$as_dir"'
  10730. else
  10731. test -d ./-p && rmdir ./-p
  10732. as_mkdir_p=false
  10733. fi
  10734. # as_fn_executable_p FILE
  10735. # -----------------------
  10736. # Test if FILE is an executable regular file.
  10737. as_fn_executable_p ()
  10738. {
  10739. test -f "$1" && test -x "$1"
  10740. } # as_fn_executable_p
  10741. as_test_x='test -x'
  10742. as_executable_p=as_fn_executable_p
  10743. # Sed expression to map a string onto a valid CPP name.
  10744. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10745. # Sed expression to map a string onto a valid variable name.
  10746. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10747. exec 6>&1
  10748. ## ----------------------------------- ##
  10749. ## Main body of $CONFIG_STATUS script. ##
  10750. ## ----------------------------------- ##
  10751. _ASEOF
  10752. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10753. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10754. # Save the log message, to keep $0 and so on meaningful, and to
  10755. # report actual input values of CONFIG_FILES etc. instead of their
  10756. # values after options handling.
  10757. ac_log="
  10758. This file was extended by gprof $as_me 2.38.50, which was
  10759. generated by GNU Autoconf 2.69. Invocation command line was
  10760. CONFIG_FILES = $CONFIG_FILES
  10761. CONFIG_HEADERS = $CONFIG_HEADERS
  10762. CONFIG_LINKS = $CONFIG_LINKS
  10763. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10764. $ $0 $@
  10765. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10766. "
  10767. _ACEOF
  10768. case $ac_config_files in *"
  10769. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10770. esac
  10771. case $ac_config_headers in *"
  10772. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10773. esac
  10774. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10775. # Files that config.status was made for.
  10776. config_files="$ac_config_files"
  10777. config_headers="$ac_config_headers"
  10778. config_commands="$ac_config_commands"
  10779. _ACEOF
  10780. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10781. ac_cs_usage="\
  10782. \`$as_me' instantiates files and other configuration actions
  10783. from templates according to the current configuration. Unless the files
  10784. and actions are specified as TAGs, all are instantiated by default.
  10785. Usage: $0 [OPTION]... [TAG]...
  10786. -h, --help print this help, then exit
  10787. -V, --version print version number and configuration settings, then exit
  10788. --config print configuration, then exit
  10789. -q, --quiet, --silent
  10790. do not print progress messages
  10791. -d, --debug don't remove temporary files
  10792. --recheck update $as_me by reconfiguring in the same conditions
  10793. --file=FILE[:TEMPLATE]
  10794. instantiate the configuration file FILE
  10795. --header=FILE[:TEMPLATE]
  10796. instantiate the configuration header FILE
  10797. Configuration files:
  10798. $config_files
  10799. Configuration headers:
  10800. $config_headers
  10801. Configuration commands:
  10802. $config_commands
  10803. Report bugs to the package provider."
  10804. _ACEOF
  10805. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10806. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10807. ac_cs_version="\\
  10808. gprof config.status 2.38.50
  10809. configured by $0, generated by GNU Autoconf 2.69,
  10810. with options \\"\$ac_cs_config\\"
  10811. Copyright (C) 2012 Free Software Foundation, Inc.
  10812. This config.status script is free software; the Free Software Foundation
  10813. gives unlimited permission to copy, distribute and modify it."
  10814. ac_pwd='$ac_pwd'
  10815. srcdir='$srcdir'
  10816. INSTALL='$INSTALL'
  10817. MKDIR_P='$MKDIR_P'
  10818. AWK='$AWK'
  10819. test -n "\$AWK" || AWK=awk
  10820. _ACEOF
  10821. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10822. # The default lists apply if the user does not specify any file.
  10823. ac_need_defaults=:
  10824. while test $# != 0
  10825. do
  10826. case $1 in
  10827. --*=?*)
  10828. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10829. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10830. ac_shift=:
  10831. ;;
  10832. --*=)
  10833. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10834. ac_optarg=
  10835. ac_shift=:
  10836. ;;
  10837. *)
  10838. ac_option=$1
  10839. ac_optarg=$2
  10840. ac_shift=shift
  10841. ;;
  10842. esac
  10843. case $ac_option in
  10844. # Handling of the options.
  10845. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10846. ac_cs_recheck=: ;;
  10847. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10848. $as_echo "$ac_cs_version"; exit ;;
  10849. --config | --confi | --conf | --con | --co | --c )
  10850. $as_echo "$ac_cs_config"; exit ;;
  10851. --debug | --debu | --deb | --de | --d | -d )
  10852. debug=: ;;
  10853. --file | --fil | --fi | --f )
  10854. $ac_shift
  10855. case $ac_optarg in
  10856. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10857. '') as_fn_error $? "missing file argument" ;;
  10858. esac
  10859. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10860. ac_need_defaults=false;;
  10861. --header | --heade | --head | --hea )
  10862. $ac_shift
  10863. case $ac_optarg in
  10864. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10865. esac
  10866. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10867. ac_need_defaults=false;;
  10868. --he | --h)
  10869. # Conflict between --help and --header
  10870. as_fn_error $? "ambiguous option: \`$1'
  10871. Try \`$0 --help' for more information.";;
  10872. --help | --hel | -h )
  10873. $as_echo "$ac_cs_usage"; exit ;;
  10874. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10875. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10876. ac_cs_silent=: ;;
  10877. # This is an error.
  10878. -*) as_fn_error $? "unrecognized option: \`$1'
  10879. Try \`$0 --help' for more information." ;;
  10880. *) as_fn_append ac_config_targets " $1"
  10881. ac_need_defaults=false ;;
  10882. esac
  10883. shift
  10884. done
  10885. ac_configure_extra_args=
  10886. if $ac_cs_silent; then
  10887. exec 6>/dev/null
  10888. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10889. fi
  10890. _ACEOF
  10891. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10892. if \$ac_cs_recheck; then
  10893. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10894. shift
  10895. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10896. CONFIG_SHELL='$SHELL'
  10897. export CONFIG_SHELL
  10898. exec "\$@"
  10899. fi
  10900. _ACEOF
  10901. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10902. exec 5>>config.log
  10903. {
  10904. echo
  10905. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10906. ## Running $as_me. ##
  10907. _ASBOX
  10908. $as_echo "$ac_log"
  10909. } >&5
  10910. _ACEOF
  10911. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10912. #
  10913. # INIT-COMMANDS
  10914. #
  10915. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10916. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10917. # if CDPATH is set.
  10918. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10919. sed_quote_subst='$sed_quote_subst'
  10920. double_quote_subst='$double_quote_subst'
  10921. delay_variable_subst='$delay_variable_subst'
  10922. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10923. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10924. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10925. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10926. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10927. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10928. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10929. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10930. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10931. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10932. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10933. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10934. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10935. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10936. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10937. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10938. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10939. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10940. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10941. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10942. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10943. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10944. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10945. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10946. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10947. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10948. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10949. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10950. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10951. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10952. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10953. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10954. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10955. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10956. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10957. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10958. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10959. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10960. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10961. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10962. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10963. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10964. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10965. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10966. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10967. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10968. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10969. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10970. 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"`'
  10971. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10972. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10973. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10974. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10975. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10976. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10977. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10978. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10979. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10980. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10981. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10982. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10983. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10984. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10985. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10986. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10987. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10988. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10989. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10990. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10991. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10992. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10993. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10994. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10995. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10996. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10997. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10998. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10999. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11000. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11001. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11002. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  11003. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11004. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11005. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11006. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11007. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11008. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11009. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11010. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11011. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  11012. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11013. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11014. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11015. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11016. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11017. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11018. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11019. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11020. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11021. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11022. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11023. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11024. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11025. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11026. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11027. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11028. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11029. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11030. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11031. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11032. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11033. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11034. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11035. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11036. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11037. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11038. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11039. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11040. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11041. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11042. LTCC='$LTCC'
  11043. LTCFLAGS='$LTCFLAGS'
  11044. compiler='$compiler_DEFAULT'
  11045. # A function that is used when there is no print builtin or printf.
  11046. func_fallback_echo ()
  11047. {
  11048. eval 'cat <<_LTECHO_EOF
  11049. \$1
  11050. _LTECHO_EOF'
  11051. }
  11052. # Quote evaled strings.
  11053. for var in SHELL \
  11054. ECHO \
  11055. SED \
  11056. GREP \
  11057. EGREP \
  11058. FGREP \
  11059. LD \
  11060. NM \
  11061. LN_S \
  11062. lt_SP2NL \
  11063. lt_NL2SP \
  11064. reload_flag \
  11065. OBJDUMP \
  11066. deplibs_check_method \
  11067. file_magic_cmd \
  11068. AR \
  11069. AR_FLAGS \
  11070. STRIP \
  11071. RANLIB \
  11072. CC \
  11073. CFLAGS \
  11074. compiler \
  11075. lt_cv_sys_global_symbol_pipe \
  11076. lt_cv_sys_global_symbol_to_cdecl \
  11077. lt_cv_sys_global_symbol_to_c_name_address \
  11078. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11079. lt_prog_compiler_no_builtin_flag \
  11080. lt_prog_compiler_wl \
  11081. lt_prog_compiler_pic \
  11082. lt_prog_compiler_static \
  11083. lt_cv_prog_compiler_c_o \
  11084. need_locks \
  11085. DSYMUTIL \
  11086. NMEDIT \
  11087. LIPO \
  11088. OTOOL \
  11089. OTOOL64 \
  11090. shrext_cmds \
  11091. export_dynamic_flag_spec \
  11092. whole_archive_flag_spec \
  11093. compiler_needs_object \
  11094. with_gnu_ld \
  11095. allow_undefined_flag \
  11096. no_undefined_flag \
  11097. hardcode_libdir_flag_spec \
  11098. hardcode_libdir_flag_spec_ld \
  11099. hardcode_libdir_separator \
  11100. fix_srcfile_path \
  11101. exclude_expsyms \
  11102. include_expsyms \
  11103. file_list_spec \
  11104. variables_saved_for_relink \
  11105. libname_spec \
  11106. library_names_spec \
  11107. soname_spec \
  11108. install_override_mode \
  11109. finish_eval \
  11110. old_striplib \
  11111. striplib; do
  11112. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11113. *[\\\\\\\`\\"\\\$]*)
  11114. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11115. ;;
  11116. *)
  11117. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11118. ;;
  11119. esac
  11120. done
  11121. # Double-quote double-evaled strings.
  11122. for var in reload_cmds \
  11123. old_postinstall_cmds \
  11124. old_postuninstall_cmds \
  11125. old_archive_cmds \
  11126. extract_expsyms_cmds \
  11127. old_archive_from_new_cmds \
  11128. old_archive_from_expsyms_cmds \
  11129. archive_cmds \
  11130. archive_expsym_cmds \
  11131. module_cmds \
  11132. module_expsym_cmds \
  11133. export_symbols_cmds \
  11134. prelink_cmds \
  11135. postinstall_cmds \
  11136. postuninstall_cmds \
  11137. finish_cmds \
  11138. sys_lib_search_path_spec \
  11139. sys_lib_dlsearch_path_spec; do
  11140. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11141. *[\\\\\\\`\\"\\\$]*)
  11142. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11143. ;;
  11144. *)
  11145. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11146. ;;
  11147. esac
  11148. done
  11149. ac_aux_dir='$ac_aux_dir'
  11150. xsi_shell='$xsi_shell'
  11151. lt_shell_append='$lt_shell_append'
  11152. # See if we are running on zsh, and set the options which allow our
  11153. # commands through without removal of \ escapes INIT.
  11154. if test -n "\${ZSH_VERSION+set}" ; then
  11155. setopt NO_GLOB_SUBST
  11156. fi
  11157. PACKAGE='$PACKAGE'
  11158. VERSION='$VERSION'
  11159. TIMESTAMP='$TIMESTAMP'
  11160. RM='$RM'
  11161. ofile='$ofile'
  11162. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  11163. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  11164. # from automake.
  11165. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  11166. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  11167. LINGUAS="${LINGUAS-%UNSET%}"
  11168. _ACEOF
  11169. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11170. # Handling of arguments.
  11171. for ac_config_target in $ac_config_targets
  11172. do
  11173. case $ac_config_target in
  11174. "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
  11175. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11176. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11177. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  11178. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11179. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
  11180. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11181. esac
  11182. done
  11183. # If the user did not use the arguments to specify the items to instantiate,
  11184. # then the envvar interface is used. Set only those that are not.
  11185. # We use the long form for the default assignment because of an extremely
  11186. # bizarre bug on SunOS 4.1.3.
  11187. if $ac_need_defaults; then
  11188. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11189. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11190. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11191. fi
  11192. # Have a temporary directory for convenience. Make it in the build tree
  11193. # simply because there is no reason against having it here, and in addition,
  11194. # creating and moving files from /tmp can sometimes cause problems.
  11195. # Hook for its removal unless debugging.
  11196. # Note that there is a small window in which the directory will not be cleaned:
  11197. # after its creation but before its name has been assigned to `$tmp'.
  11198. $debug ||
  11199. {
  11200. tmp= ac_tmp=
  11201. trap 'exit_status=$?
  11202. : "${ac_tmp:=$tmp}"
  11203. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11204. ' 0
  11205. trap 'as_fn_exit 1' 1 2 13 15
  11206. }
  11207. # Create a (secure) tmp directory for tmp files.
  11208. {
  11209. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11210. test -d "$tmp"
  11211. } ||
  11212. {
  11213. tmp=./conf$$-$RANDOM
  11214. (umask 077 && mkdir "$tmp")
  11215. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11216. ac_tmp=$tmp
  11217. # Set up the scripts for CONFIG_FILES section.
  11218. # No need to generate them if there are no CONFIG_FILES.
  11219. # This happens for instance with `./config.status config.h'.
  11220. if test -n "$CONFIG_FILES"; then
  11221. ac_cr=`echo X | tr X '\015'`
  11222. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11223. # But we know of no other shell where ac_cr would be empty at this
  11224. # point, so we can use a bashism as a fallback.
  11225. if test "x$ac_cr" = x; then
  11226. eval ac_cr=\$\'\\r\'
  11227. fi
  11228. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11229. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11230. ac_cs_awk_cr='\\r'
  11231. else
  11232. ac_cs_awk_cr=$ac_cr
  11233. fi
  11234. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11235. _ACEOF
  11236. {
  11237. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11238. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11239. echo "_ACEOF"
  11240. } >conf$$subs.sh ||
  11241. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11242. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11243. ac_delim='%!_!# '
  11244. for ac_last_try in false false false false false :; do
  11245. . ./conf$$subs.sh ||
  11246. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11247. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11248. if test $ac_delim_n = $ac_delim_num; then
  11249. break
  11250. elif $ac_last_try; then
  11251. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11252. else
  11253. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11254. fi
  11255. done
  11256. rm -f conf$$subs.sh
  11257. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11258. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11259. _ACEOF
  11260. sed -n '
  11261. h
  11262. s/^/S["/; s/!.*/"]=/
  11263. p
  11264. g
  11265. s/^[^!]*!//
  11266. :repl
  11267. t repl
  11268. s/'"$ac_delim"'$//
  11269. t delim
  11270. :nl
  11271. h
  11272. s/\(.\{148\}\)..*/\1/
  11273. t more1
  11274. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11275. p
  11276. n
  11277. b repl
  11278. :more1
  11279. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11280. p
  11281. g
  11282. s/.\{148\}//
  11283. t nl
  11284. :delim
  11285. h
  11286. s/\(.\{148\}\)..*/\1/
  11287. t more2
  11288. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11289. p
  11290. b
  11291. :more2
  11292. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11293. p
  11294. g
  11295. s/.\{148\}//
  11296. t delim
  11297. ' <conf$$subs.awk | sed '
  11298. /^[^""]/{
  11299. N
  11300. s/\n//
  11301. }
  11302. ' >>$CONFIG_STATUS || ac_write_fail=1
  11303. rm -f conf$$subs.awk
  11304. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11305. _ACAWK
  11306. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11307. for (key in S) S_is_set[key] = 1
  11308. FS = ""
  11309. }
  11310. {
  11311. line = $ 0
  11312. nfields = split(line, field, "@")
  11313. substed = 0
  11314. len = length(field[1])
  11315. for (i = 2; i < nfields; i++) {
  11316. key = field[i]
  11317. keylen = length(key)
  11318. if (S_is_set[key]) {
  11319. value = S[key]
  11320. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11321. len += length(value) + length(field[++i])
  11322. substed = 1
  11323. } else
  11324. len += 1 + keylen
  11325. }
  11326. print line
  11327. }
  11328. _ACAWK
  11329. _ACEOF
  11330. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11331. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11332. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11333. else
  11334. cat
  11335. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11336. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11337. _ACEOF
  11338. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11339. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11340. # trailing colons and then remove the whole line if VPATH becomes empty
  11341. # (actually we leave an empty line to preserve line numbers).
  11342. if test "x$srcdir" = x.; then
  11343. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11344. h
  11345. s///
  11346. s/^/:/
  11347. s/[ ]*$/:/
  11348. s/:\$(srcdir):/:/g
  11349. s/:\${srcdir}:/:/g
  11350. s/:@srcdir@:/:/g
  11351. s/^:*//
  11352. s/:*$//
  11353. x
  11354. s/\(=[ ]*\).*/\1/
  11355. G
  11356. s/\n//
  11357. s/^[^=]*=[ ]*$//
  11358. }'
  11359. fi
  11360. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11361. fi # test -n "$CONFIG_FILES"
  11362. # Set up the scripts for CONFIG_HEADERS section.
  11363. # No need to generate them if there are no CONFIG_HEADERS.
  11364. # This happens for instance with `./config.status Makefile'.
  11365. if test -n "$CONFIG_HEADERS"; then
  11366. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11367. BEGIN {
  11368. _ACEOF
  11369. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11370. # here-document in config.status, that substitutes the proper values into
  11371. # config.h.in to produce config.h.
  11372. # Create a delimiter string that does not exist in confdefs.h, to ease
  11373. # handling of long lines.
  11374. ac_delim='%!_!# '
  11375. for ac_last_try in false false :; do
  11376. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11377. if test -z "$ac_tt"; then
  11378. break
  11379. elif $ac_last_try; then
  11380. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11381. else
  11382. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11383. fi
  11384. done
  11385. # For the awk script, D is an array of macro values keyed by name,
  11386. # likewise P contains macro parameters if any. Preserve backslash
  11387. # newline sequences.
  11388. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11389. sed -n '
  11390. s/.\{148\}/&'"$ac_delim"'/g
  11391. t rset
  11392. :rset
  11393. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11394. t def
  11395. d
  11396. :def
  11397. s/\\$//
  11398. t bsnl
  11399. s/["\\]/\\&/g
  11400. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11401. D["\1"]=" \3"/p
  11402. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11403. d
  11404. :bsnl
  11405. s/["\\]/\\&/g
  11406. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11407. D["\1"]=" \3\\\\\\n"\\/p
  11408. t cont
  11409. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11410. t cont
  11411. d
  11412. :cont
  11413. n
  11414. s/.\{148\}/&'"$ac_delim"'/g
  11415. t clear
  11416. :clear
  11417. s/\\$//
  11418. t bsnlc
  11419. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11420. d
  11421. :bsnlc
  11422. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11423. b cont
  11424. ' <confdefs.h | sed '
  11425. s/'"$ac_delim"'/"\\\
  11426. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11427. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11428. for (key in D) D_is_set[key] = 1
  11429. FS = ""
  11430. }
  11431. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11432. line = \$ 0
  11433. split(line, arg, " ")
  11434. if (arg[1] == "#") {
  11435. defundef = arg[2]
  11436. mac1 = arg[3]
  11437. } else {
  11438. defundef = substr(arg[1], 2)
  11439. mac1 = arg[2]
  11440. }
  11441. split(mac1, mac2, "(") #)
  11442. macro = mac2[1]
  11443. prefix = substr(line, 1, index(line, defundef) - 1)
  11444. if (D_is_set[macro]) {
  11445. # Preserve the white space surrounding the "#".
  11446. print prefix "define", macro P[macro] D[macro]
  11447. next
  11448. } else {
  11449. # Replace #undef with comments. This is necessary, for example,
  11450. # in the case of _POSIX_SOURCE, which is predefined and required
  11451. # on some systems where configure will not decide to define it.
  11452. if (defundef == "undef") {
  11453. print "/*", prefix defundef, macro, "*/"
  11454. next
  11455. }
  11456. }
  11457. }
  11458. { print }
  11459. _ACAWK
  11460. _ACEOF
  11461. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11462. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11463. fi # test -n "$CONFIG_HEADERS"
  11464. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11465. shift
  11466. for ac_tag
  11467. do
  11468. case $ac_tag in
  11469. :[FHLC]) ac_mode=$ac_tag; continue;;
  11470. esac
  11471. case $ac_mode$ac_tag in
  11472. :[FHL]*:*);;
  11473. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11474. :[FH]-) ac_tag=-:-;;
  11475. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11476. esac
  11477. ac_save_IFS=$IFS
  11478. IFS=:
  11479. set x $ac_tag
  11480. IFS=$ac_save_IFS
  11481. shift
  11482. ac_file=$1
  11483. shift
  11484. case $ac_mode in
  11485. :L) ac_source=$1;;
  11486. :[FH])
  11487. ac_file_inputs=
  11488. for ac_f
  11489. do
  11490. case $ac_f in
  11491. -) ac_f="$ac_tmp/stdin";;
  11492. *) # Look for the file first in the build tree, then in the source tree
  11493. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11494. # because $ac_f cannot contain `:'.
  11495. test -f "$ac_f" ||
  11496. case $ac_f in
  11497. [\\/$]*) false;;
  11498. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11499. esac ||
  11500. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11501. esac
  11502. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11503. as_fn_append ac_file_inputs " '$ac_f'"
  11504. done
  11505. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11506. # use $as_me), people would be surprised to read:
  11507. # /* config.h. Generated by config.status. */
  11508. configure_input='Generated from '`
  11509. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11510. `' by configure.'
  11511. if test x"$ac_file" != x-; then
  11512. configure_input="$ac_file. $configure_input"
  11513. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11514. $as_echo "$as_me: creating $ac_file" >&6;}
  11515. fi
  11516. # Neutralize special characters interpreted by sed in replacement strings.
  11517. case $configure_input in #(
  11518. *\&* | *\|* | *\\* )
  11519. ac_sed_conf_input=`$as_echo "$configure_input" |
  11520. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11521. *) ac_sed_conf_input=$configure_input;;
  11522. esac
  11523. case $ac_tag in
  11524. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11525. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11526. esac
  11527. ;;
  11528. esac
  11529. ac_dir=`$as_dirname -- "$ac_file" ||
  11530. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11531. X"$ac_file" : 'X\(//\)[^/]' \| \
  11532. X"$ac_file" : 'X\(//\)$' \| \
  11533. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11534. $as_echo X"$ac_file" |
  11535. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11536. s//\1/
  11537. q
  11538. }
  11539. /^X\(\/\/\)[^/].*/{
  11540. s//\1/
  11541. q
  11542. }
  11543. /^X\(\/\/\)$/{
  11544. s//\1/
  11545. q
  11546. }
  11547. /^X\(\/\).*/{
  11548. s//\1/
  11549. q
  11550. }
  11551. s/.*/./; q'`
  11552. as_dir="$ac_dir"; as_fn_mkdir_p
  11553. ac_builddir=.
  11554. case "$ac_dir" in
  11555. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11556. *)
  11557. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11558. # A ".." for each directory in $ac_dir_suffix.
  11559. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11560. case $ac_top_builddir_sub in
  11561. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11562. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11563. esac ;;
  11564. esac
  11565. ac_abs_top_builddir=$ac_pwd
  11566. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11567. # for backward compatibility:
  11568. ac_top_builddir=$ac_top_build_prefix
  11569. case $srcdir in
  11570. .) # We are building in place.
  11571. ac_srcdir=.
  11572. ac_top_srcdir=$ac_top_builddir_sub
  11573. ac_abs_top_srcdir=$ac_pwd ;;
  11574. [\\/]* | ?:[\\/]* ) # Absolute name.
  11575. ac_srcdir=$srcdir$ac_dir_suffix;
  11576. ac_top_srcdir=$srcdir
  11577. ac_abs_top_srcdir=$srcdir ;;
  11578. *) # Relative name.
  11579. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11580. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11581. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11582. esac
  11583. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11584. case $ac_mode in
  11585. :F)
  11586. #
  11587. # CONFIG_FILE
  11588. #
  11589. case $INSTALL in
  11590. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11591. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11592. esac
  11593. ac_MKDIR_P=$MKDIR_P
  11594. case $MKDIR_P in
  11595. [\\/$]* | ?:[\\/]* ) ;;
  11596. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11597. esac
  11598. _ACEOF
  11599. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11600. # If the template does not know about datarootdir, expand it.
  11601. # FIXME: This hack should be removed a few years after 2.60.
  11602. ac_datarootdir_hack=; ac_datarootdir_seen=
  11603. ac_sed_dataroot='
  11604. /datarootdir/ {
  11605. p
  11606. q
  11607. }
  11608. /@datadir@/p
  11609. /@docdir@/p
  11610. /@infodir@/p
  11611. /@localedir@/p
  11612. /@mandir@/p'
  11613. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11614. *datarootdir*) ac_datarootdir_seen=yes;;
  11615. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11617. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11618. _ACEOF
  11619. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11620. ac_datarootdir_hack='
  11621. s&@datadir@&$datadir&g
  11622. s&@docdir@&$docdir&g
  11623. s&@infodir@&$infodir&g
  11624. s&@localedir@&$localedir&g
  11625. s&@mandir@&$mandir&g
  11626. s&\\\${datarootdir}&$datarootdir&g' ;;
  11627. esac
  11628. _ACEOF
  11629. # Neutralize VPATH when `$srcdir' = `.'.
  11630. # Shell code in configure.ac might set extrasub.
  11631. # FIXME: do we really want to maintain this feature?
  11632. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11633. ac_sed_extra="$ac_vpsub
  11634. $extrasub
  11635. _ACEOF
  11636. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11637. :t
  11638. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11639. s|@configure_input@|$ac_sed_conf_input|;t t
  11640. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11641. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11642. s&@srcdir@&$ac_srcdir&;t t
  11643. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11644. s&@top_srcdir@&$ac_top_srcdir&;t t
  11645. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11646. s&@builddir@&$ac_builddir&;t t
  11647. s&@abs_builddir@&$ac_abs_builddir&;t t
  11648. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11649. s&@INSTALL@&$ac_INSTALL&;t t
  11650. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11651. $ac_datarootdir_hack
  11652. "
  11653. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11654. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11655. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11656. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11657. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11658. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11659. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11660. which seems to be undefined. Please make sure it is defined" >&5
  11661. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11662. which seems to be undefined. Please make sure it is defined" >&2;}
  11663. rm -f "$ac_tmp/stdin"
  11664. case $ac_file in
  11665. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11666. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11667. esac \
  11668. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11669. ;;
  11670. :H)
  11671. #
  11672. # CONFIG_HEADER
  11673. #
  11674. if test x"$ac_file" != x-; then
  11675. {
  11676. $as_echo "/* $configure_input */" \
  11677. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  11678. } >"$ac_tmp/config.h" \
  11679. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11680. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  11681. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11682. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11683. else
  11684. rm -f "$ac_file"
  11685. mv "$ac_tmp/config.h" "$ac_file" \
  11686. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11687. fi
  11688. else
  11689. $as_echo "/* $configure_input */" \
  11690. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  11691. || as_fn_error $? "could not create -" "$LINENO" 5
  11692. fi
  11693. # Compute "$ac_file"'s index in $config_headers.
  11694. _am_arg="$ac_file"
  11695. _am_stamp_count=1
  11696. for _am_header in $config_headers :; do
  11697. case $_am_header in
  11698. $_am_arg | $_am_arg:* )
  11699. break ;;
  11700. * )
  11701. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11702. esac
  11703. done
  11704. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11705. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11706. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11707. X"$_am_arg" : 'X\(//\)$' \| \
  11708. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11709. $as_echo X"$_am_arg" |
  11710. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11711. s//\1/
  11712. q
  11713. }
  11714. /^X\(\/\/\)[^/].*/{
  11715. s//\1/
  11716. q
  11717. }
  11718. /^X\(\/\/\)$/{
  11719. s//\1/
  11720. q
  11721. }
  11722. /^X\(\/\).*/{
  11723. s//\1/
  11724. q
  11725. }
  11726. s/.*/./; q'`/stamp-h$_am_stamp_count
  11727. ;;
  11728. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11729. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11730. ;;
  11731. esac
  11732. case $ac_file$ac_mode in
  11733. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11734. # Older Autoconf quotes --file arguments for eval, but not when files
  11735. # are listed without --file. Let's play safe and only enable the eval
  11736. # if we detect the quoting.
  11737. case $CONFIG_FILES in
  11738. *\'*) eval set x "$CONFIG_FILES" ;;
  11739. *) set x $CONFIG_FILES ;;
  11740. esac
  11741. shift
  11742. for mf
  11743. do
  11744. # Strip MF so we end up with the name of the file.
  11745. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11746. # Check whether this is an Automake generated Makefile or not.
  11747. # We used to match only the files named 'Makefile.in', but
  11748. # some people rename them; so instead we look at the file content.
  11749. # Grep'ing the first line is not enough: some people post-process
  11750. # each Makefile.in and add a new line on top of each file to say so.
  11751. # Grep'ing the whole file is not good either: AIX grep has a line
  11752. # limit of 2048, but all sed's we know have understand at least 4000.
  11753. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11754. dirpart=`$as_dirname -- "$mf" ||
  11755. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11756. X"$mf" : 'X\(//\)[^/]' \| \
  11757. X"$mf" : 'X\(//\)$' \| \
  11758. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11759. $as_echo X"$mf" |
  11760. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11761. s//\1/
  11762. q
  11763. }
  11764. /^X\(\/\/\)[^/].*/{
  11765. s//\1/
  11766. q
  11767. }
  11768. /^X\(\/\/\)$/{
  11769. s//\1/
  11770. q
  11771. }
  11772. /^X\(\/\).*/{
  11773. s//\1/
  11774. q
  11775. }
  11776. s/.*/./; q'`
  11777. else
  11778. continue
  11779. fi
  11780. # Extract the definition of DEPDIR, am__include, and am__quote
  11781. # from the Makefile without running 'make'.
  11782. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11783. test -z "$DEPDIR" && continue
  11784. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11785. test -z "$am__include" && continue
  11786. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11787. # Find all dependency output files, they are included files with
  11788. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11789. # simplest approach to changing $(DEPDIR) to its actual value in the
  11790. # expansion.
  11791. for file in `sed -n "
  11792. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11793. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  11794. # Make sure the directory exists.
  11795. test -f "$dirpart/$file" && continue
  11796. fdir=`$as_dirname -- "$file" ||
  11797. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11798. X"$file" : 'X\(//\)[^/]' \| \
  11799. X"$file" : 'X\(//\)$' \| \
  11800. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11801. $as_echo X"$file" |
  11802. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11803. s//\1/
  11804. q
  11805. }
  11806. /^X\(\/\/\)[^/].*/{
  11807. s//\1/
  11808. q
  11809. }
  11810. /^X\(\/\/\)$/{
  11811. s//\1/
  11812. q
  11813. }
  11814. /^X\(\/\).*/{
  11815. s//\1/
  11816. q
  11817. }
  11818. s/.*/./; q'`
  11819. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11820. # echo "creating $dirpart/$file"
  11821. echo '# dummy' > "$dirpart/$file"
  11822. done
  11823. done
  11824. }
  11825. ;;
  11826. "libtool":C)
  11827. # See if we are running on zsh, and set the options which allow our
  11828. # commands through without removal of \ escapes.
  11829. if test -n "${ZSH_VERSION+set}" ; then
  11830. setopt NO_GLOB_SUBST
  11831. fi
  11832. cfgfile="${ofile}T"
  11833. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11834. $RM "$cfgfile"
  11835. cat <<_LT_EOF >> "$cfgfile"
  11836. #! $SHELL
  11837. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11838. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11839. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11840. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11841. #
  11842. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11843. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  11844. # Written by Gordon Matzigkeit, 1996
  11845. #
  11846. # This file is part of GNU Libtool.
  11847. #
  11848. # GNU Libtool is free software; you can redistribute it and/or
  11849. # modify it under the terms of the GNU General Public License as
  11850. # published by the Free Software Foundation; either version 2 of
  11851. # the License, or (at your option) any later version.
  11852. #
  11853. # As a special exception to the GNU General Public License,
  11854. # if you distribute this file as part of a program or library that
  11855. # is built using GNU Libtool, you may include this file under the
  11856. # same distribution terms that you use for the rest of that program.
  11857. #
  11858. # GNU Libtool is distributed in the hope that it will be useful,
  11859. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11860. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11861. # GNU General Public License for more details.
  11862. #
  11863. # You should have received a copy of the GNU General Public License
  11864. # along with GNU Libtool; see the file COPYING. If not, a copy
  11865. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11866. # obtained by writing to the Free Software Foundation, Inc.,
  11867. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11868. # The names of the tagged configurations supported by this script.
  11869. available_tags=""
  11870. # ### BEGIN LIBTOOL CONFIG
  11871. # Which release of libtool.m4 was used?
  11872. macro_version=$macro_version
  11873. macro_revision=$macro_revision
  11874. # Whether or not to build shared libraries.
  11875. build_libtool_libs=$enable_shared
  11876. # Whether or not to build static libraries.
  11877. build_old_libs=$enable_static
  11878. # What type of objects to build.
  11879. pic_mode=$pic_mode
  11880. # Whether or not to optimize for fast installation.
  11881. fast_install=$enable_fast_install
  11882. # Shell to use when invoking shell scripts.
  11883. SHELL=$lt_SHELL
  11884. # An echo program that protects backslashes.
  11885. ECHO=$lt_ECHO
  11886. # The host system.
  11887. host_alias=$host_alias
  11888. host=$host
  11889. host_os=$host_os
  11890. # The build system.
  11891. build_alias=$build_alias
  11892. build=$build
  11893. build_os=$build_os
  11894. # A sed program that does not truncate output.
  11895. SED=$lt_SED
  11896. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11897. Xsed="\$SED -e 1s/^X//"
  11898. # A grep program that handles long lines.
  11899. GREP=$lt_GREP
  11900. # An ERE matcher.
  11901. EGREP=$lt_EGREP
  11902. # A literal string matcher.
  11903. FGREP=$lt_FGREP
  11904. # A BSD- or MS-compatible name lister.
  11905. NM=$lt_NM
  11906. # Whether we need soft or hard links.
  11907. LN_S=$lt_LN_S
  11908. # What is the maximum length of a command?
  11909. max_cmd_len=$max_cmd_len
  11910. # Object file suffix (normally "o").
  11911. objext=$ac_objext
  11912. # Executable file suffix (normally "").
  11913. exeext=$exeext
  11914. # whether the shell understands "unset".
  11915. lt_unset=$lt_unset
  11916. # turn spaces into newlines.
  11917. SP2NL=$lt_lt_SP2NL
  11918. # turn newlines into spaces.
  11919. NL2SP=$lt_lt_NL2SP
  11920. # An object symbol dumper.
  11921. OBJDUMP=$lt_OBJDUMP
  11922. # Method to check whether dependent libraries are shared objects.
  11923. deplibs_check_method=$lt_deplibs_check_method
  11924. # Command to use when deplibs_check_method == "file_magic".
  11925. file_magic_cmd=$lt_file_magic_cmd
  11926. # The archiver.
  11927. AR=$lt_AR
  11928. AR_FLAGS=$lt_AR_FLAGS
  11929. # A symbol stripping program.
  11930. STRIP=$lt_STRIP
  11931. # Commands used to install an old-style archive.
  11932. RANLIB=$lt_RANLIB
  11933. old_postinstall_cmds=$lt_old_postinstall_cmds
  11934. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11935. # Whether to use a lock for old archive extraction.
  11936. lock_old_archive_extraction=$lock_old_archive_extraction
  11937. # A C compiler.
  11938. LTCC=$lt_CC
  11939. # LTCC compiler flags.
  11940. LTCFLAGS=$lt_CFLAGS
  11941. # Take the output of nm and produce a listing of raw symbols and C names.
  11942. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11943. # Transform the output of nm in a proper C declaration.
  11944. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11945. # Transform the output of nm in a C name address pair.
  11946. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11947. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11948. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11949. # The name of the directory that contains temporary libtool files.
  11950. objdir=$objdir
  11951. # Used to examine libraries when file_magic_cmd begins with "file".
  11952. MAGIC_CMD=$MAGIC_CMD
  11953. # Must we lock files when doing compilation?
  11954. need_locks=$lt_need_locks
  11955. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11956. DSYMUTIL=$lt_DSYMUTIL
  11957. # Tool to change global to local symbols on Mac OS X.
  11958. NMEDIT=$lt_NMEDIT
  11959. # Tool to manipulate fat objects and archives on Mac OS X.
  11960. LIPO=$lt_LIPO
  11961. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11962. OTOOL=$lt_OTOOL
  11963. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11964. OTOOL64=$lt_OTOOL64
  11965. # Old archive suffix (normally "a").
  11966. libext=$libext
  11967. # Shared library suffix (normally ".so").
  11968. shrext_cmds=$lt_shrext_cmds
  11969. # The commands to extract the exported symbol list from a shared archive.
  11970. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11971. # Variables whose values should be saved in libtool wrapper scripts and
  11972. # restored at link time.
  11973. variables_saved_for_relink=$lt_variables_saved_for_relink
  11974. # Do we need the "lib" prefix for modules?
  11975. need_lib_prefix=$need_lib_prefix
  11976. # Do we need a version for libraries?
  11977. need_version=$need_version
  11978. # Library versioning type.
  11979. version_type=$version_type
  11980. # Shared library runtime path variable.
  11981. runpath_var=$runpath_var
  11982. # Shared library path variable.
  11983. shlibpath_var=$shlibpath_var
  11984. # Is shlibpath searched before the hard-coded library search path?
  11985. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11986. # Format of library name prefix.
  11987. libname_spec=$lt_libname_spec
  11988. # List of archive names. First name is the real one, the rest are links.
  11989. # The last name is the one that the linker finds with -lNAME
  11990. library_names_spec=$lt_library_names_spec
  11991. # The coded name of the library, if different from the real name.
  11992. soname_spec=$lt_soname_spec
  11993. # Permission mode override for installation of shared libraries.
  11994. install_override_mode=$lt_install_override_mode
  11995. # Command to use after installation of a shared archive.
  11996. postinstall_cmds=$lt_postinstall_cmds
  11997. # Command to use after uninstallation of a shared archive.
  11998. postuninstall_cmds=$lt_postuninstall_cmds
  11999. # Commands used to finish a libtool library installation in a directory.
  12000. finish_cmds=$lt_finish_cmds
  12001. # As "finish_cmds", except a single script fragment to be evaled but
  12002. # not shown.
  12003. finish_eval=$lt_finish_eval
  12004. # Whether we should hardcode library paths into libraries.
  12005. hardcode_into_libs=$hardcode_into_libs
  12006. # Compile-time system search path for libraries.
  12007. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12008. # Run-time system search path for libraries.
  12009. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12010. # Whether dlopen is supported.
  12011. dlopen_support=$enable_dlopen
  12012. # Whether dlopen of programs is supported.
  12013. dlopen_self=$enable_dlopen_self
  12014. # Whether dlopen of statically linked programs is supported.
  12015. dlopen_self_static=$enable_dlopen_self_static
  12016. # Commands to strip libraries.
  12017. old_striplib=$lt_old_striplib
  12018. striplib=$lt_striplib
  12019. # The linker used to build libraries.
  12020. LD=$lt_LD
  12021. # How to create reloadable object files.
  12022. reload_flag=$lt_reload_flag
  12023. reload_cmds=$lt_reload_cmds
  12024. # Commands used to build an old-style archive.
  12025. old_archive_cmds=$lt_old_archive_cmds
  12026. # A language specific compiler.
  12027. CC=$lt_compiler
  12028. # Is the compiler the GNU compiler?
  12029. with_gcc=$GCC
  12030. # Compiler flag to turn off builtin functions.
  12031. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12032. # How to pass a linker flag through the compiler.
  12033. wl=$lt_lt_prog_compiler_wl
  12034. # Additional compiler flags for building library objects.
  12035. pic_flag=$lt_lt_prog_compiler_pic
  12036. # Compiler flag to prevent dynamic linking.
  12037. link_static_flag=$lt_lt_prog_compiler_static
  12038. # Does compiler simultaneously support -c and -o options?
  12039. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12040. # Whether or not to add -lc for building shared libraries.
  12041. build_libtool_need_lc=$archive_cmds_need_lc
  12042. # Whether or not to disallow shared libs when runtime libs are static.
  12043. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12044. # Compiler flag to allow reflexive dlopens.
  12045. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12046. # Compiler flag to generate shared objects directly from archives.
  12047. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12048. # Whether the compiler copes with passing no objects directly.
  12049. compiler_needs_object=$lt_compiler_needs_object
  12050. # Create an old-style archive from a shared archive.
  12051. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12052. # Create a temporary old-style archive to link instead of a shared archive.
  12053. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12054. # Commands used to build a shared archive.
  12055. archive_cmds=$lt_archive_cmds
  12056. archive_expsym_cmds=$lt_archive_expsym_cmds
  12057. # Commands used to build a loadable module if different from building
  12058. # a shared archive.
  12059. module_cmds=$lt_module_cmds
  12060. module_expsym_cmds=$lt_module_expsym_cmds
  12061. # Whether we are building with GNU ld or not.
  12062. with_gnu_ld=$lt_with_gnu_ld
  12063. # Flag that allows shared libraries with undefined symbols to be built.
  12064. allow_undefined_flag=$lt_allow_undefined_flag
  12065. # Flag that enforces no undefined symbols.
  12066. no_undefined_flag=$lt_no_undefined_flag
  12067. # Flag to hardcode \$libdir into a binary during linking.
  12068. # This must work even if \$libdir does not exist
  12069. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12070. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12071. # during linking. This must work even if \$libdir does not exist.
  12072. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12073. # Whether we need a single "-rpath" flag with a separated argument.
  12074. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12075. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12076. # DIR into the resulting binary.
  12077. hardcode_direct=$hardcode_direct
  12078. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12079. # DIR into the resulting binary and the resulting library dependency is
  12080. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12081. # library is relocated.
  12082. hardcode_direct_absolute=$hardcode_direct_absolute
  12083. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12084. # into the resulting binary.
  12085. hardcode_minus_L=$hardcode_minus_L
  12086. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12087. # into the resulting binary.
  12088. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12089. # Set to "yes" if building a shared library automatically hardcodes DIR
  12090. # into the library and all subsequent libraries and executables linked
  12091. # against it.
  12092. hardcode_automatic=$hardcode_automatic
  12093. # Set to yes if linker adds runtime paths of dependent libraries
  12094. # to runtime path list.
  12095. inherit_rpath=$inherit_rpath
  12096. # Whether libtool must link a program against all its dependency libraries.
  12097. link_all_deplibs=$link_all_deplibs
  12098. # Fix the shell variable \$srcfile for the compiler.
  12099. fix_srcfile_path=$lt_fix_srcfile_path
  12100. # Set to "yes" if exported symbols are required.
  12101. always_export_symbols=$always_export_symbols
  12102. # The commands to list exported symbols.
  12103. export_symbols_cmds=$lt_export_symbols_cmds
  12104. # Symbols that should not be listed in the preloaded symbols.
  12105. exclude_expsyms=$lt_exclude_expsyms
  12106. # Symbols that must always be exported.
  12107. include_expsyms=$lt_include_expsyms
  12108. # Commands necessary for linking programs (against libraries) with templates.
  12109. prelink_cmds=$lt_prelink_cmds
  12110. # Specify filename containing input files.
  12111. file_list_spec=$lt_file_list_spec
  12112. # How to hardcode a shared library path into an executable.
  12113. hardcode_action=$hardcode_action
  12114. # ### END LIBTOOL CONFIG
  12115. _LT_EOF
  12116. case $host_os in
  12117. aix3*)
  12118. cat <<\_LT_EOF >> "$cfgfile"
  12119. # AIX sometimes has problems with the GCC collect2 program. For some
  12120. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12121. # vanish in a puff of smoke.
  12122. if test "X${COLLECT_NAMES+set}" != Xset; then
  12123. COLLECT_NAMES=
  12124. export COLLECT_NAMES
  12125. fi
  12126. _LT_EOF
  12127. ;;
  12128. esac
  12129. ltmain="$ac_aux_dir/ltmain.sh"
  12130. # We use sed instead of cat because bash on DJGPP gets confused if
  12131. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12132. # text mode, it properly converts lines to CR/LF. This bash problem
  12133. # is reportedly fixed, but why not run on old versions too?
  12134. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12135. || (rm -f "$cfgfile"; exit 1)
  12136. case $xsi_shell in
  12137. yes)
  12138. cat << \_LT_EOF >> "$cfgfile"
  12139. # func_dirname file append nondir_replacement
  12140. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12141. # otherwise set result to NONDIR_REPLACEMENT.
  12142. func_dirname ()
  12143. {
  12144. case ${1} in
  12145. */*) func_dirname_result="${1%/*}${2}" ;;
  12146. * ) func_dirname_result="${3}" ;;
  12147. esac
  12148. }
  12149. # func_basename file
  12150. func_basename ()
  12151. {
  12152. func_basename_result="${1##*/}"
  12153. }
  12154. # func_dirname_and_basename file append nondir_replacement
  12155. # perform func_basename and func_dirname in a single function
  12156. # call:
  12157. # dirname: Compute the dirname of FILE. If nonempty,
  12158. # add APPEND to the result, otherwise set result
  12159. # to NONDIR_REPLACEMENT.
  12160. # value returned in "$func_dirname_result"
  12161. # basename: Compute filename of FILE.
  12162. # value retuned in "$func_basename_result"
  12163. # Implementation must be kept synchronized with func_dirname
  12164. # and func_basename. For efficiency, we do not delegate to
  12165. # those functions but instead duplicate the functionality here.
  12166. func_dirname_and_basename ()
  12167. {
  12168. case ${1} in
  12169. */*) func_dirname_result="${1%/*}${2}" ;;
  12170. * ) func_dirname_result="${3}" ;;
  12171. esac
  12172. func_basename_result="${1##*/}"
  12173. }
  12174. # func_stripname prefix suffix name
  12175. # strip PREFIX and SUFFIX off of NAME.
  12176. # PREFIX and SUFFIX must not contain globbing or regex special
  12177. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12178. # dot (in which case that matches only a dot).
  12179. func_stripname ()
  12180. {
  12181. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12182. # positional parameters, so assign one to ordinary parameter first.
  12183. func_stripname_result=${3}
  12184. func_stripname_result=${func_stripname_result#"${1}"}
  12185. func_stripname_result=${func_stripname_result%"${2}"}
  12186. }
  12187. # func_opt_split
  12188. func_opt_split ()
  12189. {
  12190. func_opt_split_opt=${1%%=*}
  12191. func_opt_split_arg=${1#*=}
  12192. }
  12193. # func_lo2o object
  12194. func_lo2o ()
  12195. {
  12196. case ${1} in
  12197. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12198. *) func_lo2o_result=${1} ;;
  12199. esac
  12200. }
  12201. # func_xform libobj-or-source
  12202. func_xform ()
  12203. {
  12204. func_xform_result=${1%.*}.lo
  12205. }
  12206. # func_arith arithmetic-term...
  12207. func_arith ()
  12208. {
  12209. func_arith_result=$(( $* ))
  12210. }
  12211. # func_len string
  12212. # STRING may not start with a hyphen.
  12213. func_len ()
  12214. {
  12215. func_len_result=${#1}
  12216. }
  12217. _LT_EOF
  12218. ;;
  12219. *) # Bourne compatible functions.
  12220. cat << \_LT_EOF >> "$cfgfile"
  12221. # func_dirname file append nondir_replacement
  12222. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12223. # otherwise set result to NONDIR_REPLACEMENT.
  12224. func_dirname ()
  12225. {
  12226. # Extract subdirectory from the argument.
  12227. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  12228. if test "X$func_dirname_result" = "X${1}"; then
  12229. func_dirname_result="${3}"
  12230. else
  12231. func_dirname_result="$func_dirname_result${2}"
  12232. fi
  12233. }
  12234. # func_basename file
  12235. func_basename ()
  12236. {
  12237. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  12238. }
  12239. # func_stripname prefix suffix name
  12240. # strip PREFIX and SUFFIX off of NAME.
  12241. # PREFIX and SUFFIX must not contain globbing or regex special
  12242. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12243. # dot (in which case that matches only a dot).
  12244. # func_strip_suffix prefix name
  12245. func_stripname ()
  12246. {
  12247. case ${2} in
  12248. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  12249. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  12250. esac
  12251. }
  12252. # sed scripts:
  12253. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  12254. my_sed_long_arg='1s/^-[^=]*=//'
  12255. # func_opt_split
  12256. func_opt_split ()
  12257. {
  12258. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  12259. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  12260. }
  12261. # func_lo2o object
  12262. func_lo2o ()
  12263. {
  12264. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  12265. }
  12266. # func_xform libobj-or-source
  12267. func_xform ()
  12268. {
  12269. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  12270. }
  12271. # func_arith arithmetic-term...
  12272. func_arith ()
  12273. {
  12274. func_arith_result=`expr "$@"`
  12275. }
  12276. # func_len string
  12277. # STRING may not start with a hyphen.
  12278. func_len ()
  12279. {
  12280. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  12281. }
  12282. _LT_EOF
  12283. esac
  12284. case $lt_shell_append in
  12285. yes)
  12286. cat << \_LT_EOF >> "$cfgfile"
  12287. # func_append var value
  12288. # Append VALUE to the end of shell variable VAR.
  12289. func_append ()
  12290. {
  12291. eval "$1+=\$2"
  12292. }
  12293. _LT_EOF
  12294. ;;
  12295. *)
  12296. cat << \_LT_EOF >> "$cfgfile"
  12297. # func_append var value
  12298. # Append VALUE to the end of shell variable VAR.
  12299. func_append ()
  12300. {
  12301. eval "$1=\$$1\$2"
  12302. }
  12303. _LT_EOF
  12304. ;;
  12305. esac
  12306. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  12307. || (rm -f "$cfgfile"; exit 1)
  12308. mv -f "$cfgfile" "$ofile" ||
  12309. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12310. chmod +x "$ofile"
  12311. ;;
  12312. "default-1":C)
  12313. for ac_file in $CONFIG_FILES; do
  12314. # Support "outfile[:infile[:infile...]]"
  12315. case "$ac_file" in
  12316. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  12317. esac
  12318. # PO directories have a Makefile.in generated from Makefile.in.in.
  12319. case "$ac_file" in */Makefile.in)
  12320. # Adjust a relative srcdir.
  12321. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  12322. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  12323. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  12324. # In autoconf-2.13 it is called $ac_given_srcdir.
  12325. # In autoconf-2.50 it is called $srcdir.
  12326. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  12327. case "$ac_given_srcdir" in
  12328. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  12329. /*) top_srcdir="$ac_given_srcdir" ;;
  12330. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  12331. esac
  12332. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  12333. rm -f "$ac_dir/POTFILES"
  12334. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  12335. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  12336. POMAKEFILEDEPS="POTFILES.in"
  12337. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  12338. # on $ac_dir but don't depend on user-specified configuration
  12339. # parameters.
  12340. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  12341. # The LINGUAS file contains the set of available languages.
  12342. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  12343. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
  12344. fi
  12345. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  12346. # Hide the ALL_LINGUAS assigment from automake.
  12347. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  12348. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  12349. else
  12350. # The set of available languages was given in configure.ac.
  12351. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  12352. fi
  12353. case "$ac_given_srcdir" in
  12354. .) srcdirpre= ;;
  12355. *) srcdirpre='$(srcdir)/' ;;
  12356. esac
  12357. POFILES=
  12358. GMOFILES=
  12359. UPDATEPOFILES=
  12360. DUMMYPOFILES=
  12361. for lang in $ALL_LINGUAS; do
  12362. POFILES="$POFILES $srcdirpre$lang.po"
  12363. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  12364. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  12365. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  12366. done
  12367. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  12368. # environment variable.
  12369. INST_LINGUAS=
  12370. if test -n "$ALL_LINGUAS"; then
  12371. for presentlang in $ALL_LINGUAS; do
  12372. useit=no
  12373. if test "%UNSET%" != "$LINGUAS"; then
  12374. desiredlanguages="$LINGUAS"
  12375. else
  12376. desiredlanguages="$ALL_LINGUAS"
  12377. fi
  12378. for desiredlang in $desiredlanguages; do
  12379. # Use the presentlang catalog if desiredlang is
  12380. # a. equal to presentlang, or
  12381. # b. a variant of presentlang (because in this case,
  12382. # presentlang can be used as a fallback for messages
  12383. # which are not translated in the desiredlang catalog).
  12384. case "$desiredlang" in
  12385. "$presentlang"*) useit=yes;;
  12386. esac
  12387. done
  12388. if test $useit = yes; then
  12389. INST_LINGUAS="$INST_LINGUAS $presentlang"
  12390. fi
  12391. done
  12392. fi
  12393. CATALOGS=
  12394. if test -n "$INST_LINGUAS"; then
  12395. for lang in $INST_LINGUAS; do
  12396. CATALOGS="$CATALOGS $lang.gmo"
  12397. done
  12398. fi
  12399. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  12400. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  12401. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  12402. if test -f "$f"; then
  12403. case "$f" in
  12404. *.orig | *.bak | *~) ;;
  12405. *) cat "$f" >> "$ac_dir/Makefile" ;;
  12406. esac
  12407. fi
  12408. done
  12409. fi
  12410. ;;
  12411. esac
  12412. done ;;
  12413. esac
  12414. done # for ac_tag
  12415. as_fn_exit 0
  12416. _ACEOF
  12417. ac_clean_files=$ac_clean_files_save
  12418. test $ac_write_fail = 0 ||
  12419. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12420. # configure is writing to config.log, and then calls config.status.
  12421. # config.status does its own redirection, appending to config.log.
  12422. # Unfortunately, on DOS this fails, as config.log is still kept open
  12423. # by configure, so config.status won't be able to write to it; its
  12424. # output is simply discarded. So we exec the FD to /dev/null,
  12425. # effectively closing config.log, so it can be properly (re)opened and
  12426. # appended to by config.status. When coming back to configure, we
  12427. # need to make the FD available again.
  12428. if test "$no_create" != yes; then
  12429. ac_cs_success=:
  12430. ac_config_status_args=
  12431. test "$silent" = yes &&
  12432. ac_config_status_args="$ac_config_status_args --quiet"
  12433. exec 5>/dev/null
  12434. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12435. exec 5>>config.log
  12436. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12437. # would make configure fail if this is the last instruction.
  12438. $ac_cs_success || as_fn_exit 1
  12439. fi
  12440. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12441. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12442. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12443. fi
  12444. touch config.status.tmp
  12445. if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
  12446. sed '/as_fn_exit 0/i \
  12447. sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
  12448. touch --reference=Makefile Makefile.tmp \
  12449. mv Makefile.tmp Makefile \
  12450. ' config.status > config.status.tmp
  12451. touch --reference=config.status config.status.tmp
  12452. mv config.status.tmp config.status
  12453. chmod +x config.status
  12454. sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
  12455. touch --reference=Makefile Makefile.tmp
  12456. mv Makefile.tmp Makefile
  12457. else
  12458. rm -f config.status.tmp
  12459. fi